legalesign-document-viewer 0.10.7 → 0.10.8
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/defaultFieldLabels-BUxtUsF1.js +67 -0
- package/dist/cjs/defaultFieldLabels-BUxtUsF1.js.map +1 -0
- package/dist/cjs/{editorUtils-DNCtWIYh.js → editorUtils-Bwf1xDdc.js} +5 -3
- package/dist/cjs/editorUtils-Bwf1xDdc.js.map +1 -0
- package/dist/cjs/history-W8FR8iDj.js +156 -0
- package/dist/cjs/history-W8FR8iDj.js.map +1 -0
- package/dist/cjs/{i18n-BtiWqT4M.js → i18n-ROQG0wTX.js} +62 -21
- package/dist/cjs/{i18n-BtiWqT4M.js.map → i18n-ROQG0wTX.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ls-add-new-button_20.cjs.entry.js +211 -30
- package/dist/cjs/ls-assignee-select_21.cjs.entry.js +116 -90
- package/dist/cjs/ls-compose-loader_7.cjs.entry.js +54 -26
- package/dist/cjs/ls-compose-manager.cjs.entry.js +1 -1
- package/dist/cjs/ls-document-viewer.cjs.entry.js +151 -11
- package/dist/cjs/ls-document-viewer.cjs.js +1 -1
- package/dist/cjs/ls-field-alignment_3.cjs.entry.js +5 -4
- package/dist/cjs/ls-field-format_2.cjs.entry.js +32 -37
- package/dist/cjs/ls-field-properties-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ls-field-type-display.cjs.entry.js +4 -4
- package/dist/cjs/ls-helper-bar_2.cjs.entry.js +7 -4
- package/dist/cjs/ls-title-input.cjs.entry.js +1 -1
- package/dist/cjs/ls-toolbox-field.cjs.entry.js +3 -3
- package/dist/cjs/{mouseHandlers-BrvcIyzu.js → mouseHandlers-DTV5t8jK.js} +15 -8
- package/dist/cjs/mouseHandlers-DTV5t8jK.js.map +1 -0
- package/dist/collection/components/ls-document-options/ls-document-options.js +5 -1
- package/dist/collection/components/ls-document-options/ls-document-options.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/editorUtils.js +2 -0
- package/dist/collection/components/ls-document-viewer/editorUtils.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/generateRoles.js +2 -2
- package/dist/collection/components/ls-document-viewer/generateRoles.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/history.js +156 -0
- package/dist/collection/components/ls-document-viewer/history.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/keyHandlers.js +31 -0
- package/dist/collection/components/ls-document-viewer/keyHandlers.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js +118 -6
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/mouseHandlers.js +11 -4
- package/dist/collection/components/ls-document-viewer/mouseHandlers.js.map +1 -1
- package/dist/collection/components/ls-editor-field/ls-editor-field.css +5 -0
- package/dist/collection/components/ls-editor-field/ls-editor-field.js +54 -22
- 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 +52 -14
- package/dist/collection/components/ls-field-content/ls-field-content.js.map +1 -1
- package/dist/collection/components/ls-field-format/ls-field-format.css +5 -0
- package/dist/collection/components/ls-field-format/ls-field-format.js +20 -25
- package/dist/collection/components/ls-field-format/ls-field-format.js.map +1 -1
- package/dist/collection/components/ls-field-placement/ls-field-placement.js +1 -1
- package/dist/collection/components/ls-field-properties/ls-field-properties.js +1 -1
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js +2 -2
- package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js +1 -1
- package/dist/collection/components/ls-field-properties-checkbox/ls-field-properties-checkbox.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-multiple/ls-field-properties-multiple.css +15 -0
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js +188 -2
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js.map +1 -1
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js +1 -1
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js +1 -1
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js +1 -1
- package/dist/collection/components/ls-field-size/ls-field-size.js +1 -1
- package/dist/collection/components/ls-field-type-display/ls-field-type-display.js +3 -3
- package/dist/collection/components/ls-field-type-select/ls-field-type-select.js +4 -4
- package/dist/collection/components/ls-helper-bar/ls-helper-bar.js +2 -1
- package/dist/collection/components/ls-helper-bar/ls-helper-bar.js.map +1 -1
- package/dist/collection/components/ls-input-wrapper/ls-input-wrapper.js +1 -1
- package/dist/collection/components/ls-keyboard-shortcuts/ls-keyboard-shortcuts.css +1 -6
- package/dist/collection/components/ls-keyboard-shortcuts/ls-keyboard-shortcuts.js +3 -1
- package/dist/collection/components/ls-keyboard-shortcuts/ls-keyboard-shortcuts.js.map +1 -1
- package/dist/collection/components/ls-left-bar/ls-left-bar.css +12 -0
- package/dist/collection/components/ls-left-bar/ls-left-bar.js +2 -2
- package/dist/collection/components/ls-left-bar/ls-left-bar.js.map +1 -1
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.js +3 -3
- package/dist/collection/components/ls-participant-select/ls-participant-select.js +10 -10
- package/dist/collection/components/ls-props-section/ls-props-section.js +1 -1
- package/dist/collection/components/ls-recipient-card/ls-recipient-card.js +5 -5
- package/dist/collection/components/ls-recipient-manager/ls-recipient-manager.js +1 -1
- package/dist/collection/components/ls-statusbar/ls-statusbar.css +16 -6
- package/dist/collection/components/ls-statusbar/ls-statusbar.js +39 -14
- package/dist/collection/components/ls-statusbar/ls-statusbar.js.map +1 -1
- package/dist/collection/components/ls-title-input/ls-title-input.js +1 -1
- package/dist/collection/components/ls-toggle/ls-toggle.js +3 -2
- package/dist/collection/components/ls-toggle/ls-toggle.js.map +1 -1
- package/dist/collection/components/ls-toolbar/ls-toolbar.css +67 -0
- package/dist/collection/components/ls-toolbar/ls-toolbar.js +8 -5
- package/dist/collection/components/ls-toolbar/ls-toolbar.js.map +1 -1
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js +3 -3
- package/dist/collection/components/ls-validation-manager/ls-validation-manager.js +2 -2
- package/dist/collection/components/ls-validation-tag/ls-validation-tag.js +2 -2
- 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 +193 -52
- 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 +13 -13
- 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 +4 -4
- package/dist/components/ls-field-type-select.js +1 -1
- package/dist/components/ls-helper-bar.js +1 -1
- package/dist/components/ls-input-wrapper.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-props-section.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-title-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-manager.js +1 -1
- package/dist/components/ls-validation-tag.js +1 -1
- package/dist/components/p--oiqur2Y.js +63 -0
- package/dist/components/p--oiqur2Y.js.map +1 -0
- package/dist/components/{p-Bei-kRR8.js → p-4Q3WDLPO.js} +3 -3
- package/dist/components/{p-Bei-kRR8.js.map → p-4Q3WDLPO.js.map} +1 -1
- package/dist/components/{p-4gV4L29s.js → p-B2tOaKjM.js} +14 -11
- package/dist/components/p-B2tOaKjM.js.map +1 -0
- package/dist/components/{p-Cp97dEu1.js → p-B50exKU0.js} +15 -8
- package/dist/components/p-B50exKU0.js.map +1 -0
- package/dist/components/{p-C3EQyJnL.js → p-BAe1pF4V.js} +15 -15
- package/dist/components/{p-C3EQyJnL.js.map → p-BAe1pF4V.js.map} +1 -1
- package/dist/components/{p-BywNjpNj.js → p-BCFyGEc0.js} +3 -3
- package/dist/components/{p-BywNjpNj.js.map → p-BCFyGEc0.js.map} +1 -1
- package/dist/components/{p-SMjYjOpc.js → p-BLyCAsyj.js} +15 -15
- package/dist/components/{p-SMjYjOpc.js.map → p-BLyCAsyj.js.map} +1 -1
- package/dist/components/{p-D6EVaJ8X.js → p-BN-YTiCL.js} +15 -15
- package/dist/components/{p-D6EVaJ8X.js.map → p-BN-YTiCL.js.map} +1 -1
- package/dist/components/{p-CQqYrZK0.js → p-BSjFM6gD.js} +54 -62
- package/dist/components/p-BSjFM6gD.js.map +1 -0
- package/dist/components/{p-CNhwdh1g.js → p-BV-01LA3.js} +5 -5
- package/dist/components/{p-CNhwdh1g.js.map → p-BV-01LA3.js.map} +1 -1
- package/dist/components/{p-BlpHsiTW.js → p-BWD7Q18A.js} +7 -7
- package/dist/components/{p-BlpHsiTW.js.map → p-BWD7Q18A.js.map} +1 -1
- package/dist/components/{p-CwOpOlYM.js → p-BefbdHPA.js} +4 -4
- package/dist/components/{p-CwOpOlYM.js.map → p-BefbdHPA.js.map} +1 -1
- package/dist/components/{p-Cqh5uPur.js → p-BlT6_8qi.js} +15 -15
- package/dist/components/{p-Cqh5uPur.js.map → p-BlT6_8qi.js.map} +1 -1
- package/dist/components/{p-DuK5cRiE.js → p-BrcXCfUL.js} +4 -4
- package/dist/components/{p-DuK5cRiE.js.map → p-BrcXCfUL.js.map} +1 -1
- package/dist/components/{p-BEUe9m-V.js → p-Bt3HoxFC.js} +28 -28
- package/dist/components/{p-BEUe9m-V.js.map → p-Bt3HoxFC.js.map} +1 -1
- package/dist/components/{p-Bbs-s2fr.js → p-Bz8q9PGu.js} +7 -5
- package/dist/components/p-Bz8q9PGu.js.map +1 -0
- package/dist/components/{p-uOPhzhT0.js → p-CASNnWoE.js} +15 -15
- package/dist/components/{p-uOPhzhT0.js.map → p-CASNnWoE.js.map} +1 -1
- package/dist/components/{p-BgifFNcO.js → p-CMMi7oOz.js} +4 -4
- package/dist/components/{p-BgifFNcO.js.map → p-CMMi7oOz.js.map} +1 -1
- package/dist/components/{p-DOyKMEqc.js → p-CTHSflZn.js} +5 -4
- package/dist/components/p-CTHSflZn.js.map +1 -0
- package/dist/components/{p-DRkW9Fmh.js → p-CTVpVzES.js} +4 -4
- package/dist/components/{p-DRkW9Fmh.js.map → p-CTVpVzES.js.map} +1 -1
- package/dist/components/{p-C3NYL36q.js → p-Chd5q8Qg.js} +3 -3
- package/dist/components/{p-C3NYL36q.js.map → p-Chd5q8Qg.js.map} +1 -1
- package/dist/components/p-CjRottqE.js +117 -0
- package/dist/components/p-CjRottqE.js.map +1 -0
- package/dist/components/{p-B8TXLd1r.js → p-CsbnxjD_.js} +5 -5
- package/dist/components/{p-B8TXLd1r.js.map → p-CsbnxjD_.js.map} +1 -1
- package/dist/components/{p-DAKipkhq.js → p-D-UanzXb.js} +215 -31
- package/dist/components/p-D-UanzXb.js.map +1 -0
- package/dist/components/{p-uZtaSDbk.js → p-D9bj8DRO.js} +7 -7
- package/dist/components/{p-uZtaSDbk.js.map → p-D9bj8DRO.js.map} +1 -1
- package/dist/components/{p-FmDHT1uc.js → p-DB1zagxM.js} +3 -3
- package/dist/components/{p-FmDHT1uc.js.map → p-DB1zagxM.js.map} +1 -1
- package/dist/components/{p-Bc8HVPXS.js → p-DB6m1_YD.js} +9 -5
- package/dist/components/p-DB6m1_YD.js.map +1 -0
- package/dist/components/{p-CZgQiWRx.js → p-DJRBibyg.js} +8 -8
- package/dist/components/{p-CZgQiWRx.js.map → p-DJRBibyg.js.map} +1 -1
- package/dist/components/{p-DBgOLxGO.js → p-DOCGlgAr.js} +3 -3
- package/dist/components/{p-DBgOLxGO.js.map → p-DOCGlgAr.js.map} +1 -1
- package/dist/components/p-DQak0VIj.js +150 -0
- package/dist/components/p-DQak0VIj.js.map +1 -0
- package/dist/components/{p-pNCeCFPr.js → p-DUJCLlqw.js} +6 -6
- package/dist/components/{p-pNCeCFPr.js.map → p-DUJCLlqw.js.map} +1 -1
- package/dist/components/{p-BRCeXLTw.js → p-Dahoxblr.js} +6 -6
- package/dist/components/{p-BRCeXLTw.js.map → p-Dahoxblr.js.map} +1 -1
- package/dist/components/{p-DRfaZObI.js → p-DhdKhwId.js} +6 -5
- package/dist/components/p-DhdKhwId.js.map +1 -0
- package/dist/components/{p-BfGTT3mh.js → p-DlcDI6kK.js} +13 -13
- package/dist/components/{p-BfGTT3mh.js.map → p-DlcDI6kK.js.map} +1 -1
- package/dist/components/p-DoyYCoU2.js +305 -0
- package/dist/components/p-DoyYCoU2.js.map +1 -0
- package/dist/components/{p-p1ood2RQ.js → p-Dq09fOyL.js} +60 -26
- package/dist/components/p-Dq09fOyL.js.map +1 -0
- package/dist/components/{p-BR-zVSL4.js → p-DsriRarp.js} +15 -15
- package/dist/components/{p-BR-zVSL4.js.map → p-DsriRarp.js.map} +1 -1
- package/dist/components/{p-B0Dms5e9.js → p-FkIYS3SZ.js} +15 -15
- package/dist/components/{p-B0Dms5e9.js.map → p-FkIYS3SZ.js.map} +1 -1
- package/dist/components/{p-nMyY2vMV.js → p-H_-PkGDt.js} +3 -3
- package/dist/components/{p-nMyY2vMV.js.map → p-H_-PkGDt.js.map} +1 -1
- package/dist/components/{p-ytl98tqC.js → p-MkGn1lk8.js} +3 -3
- package/dist/components/{p-ytl98tqC.js.map → p-MkGn1lk8.js.map} +1 -1
- package/dist/components/{p-D0AJNlSr.js → p-MkVTvl3K.js} +3 -3
- package/dist/components/{p-D0AJNlSr.js.map → p-MkVTvl3K.js.map} +1 -1
- package/dist/components/{p-0fR5VYAY.js → p-gi1f0aTq.js} +41 -41
- package/dist/components/p-gi1f0aTq.js.map +1 -0
- package/dist/components/{p-BHviU9gs.js → p-jGuTbzzv.js} +4 -4
- package/dist/components/{p-BHviU9gs.js.map → p-jGuTbzzv.js.map} +1 -1
- package/dist/components/{p-DNmBAfTc.js → p-nWzKm7OR.js} +15 -15
- package/dist/components/{p-DNmBAfTc.js.map → p-nWzKm7OR.js.map} +1 -1
- package/dist/{esm/i18n-UgyxEpoj.js → components/p-xWlEB8_Z.js} +62 -21
- package/dist/components/{p-UgyxEpoj.js.map → p-xWlEB8_Z.js.map} +1 -1
- package/dist/components/{p-EpPzEZnP.js → p-y2Qq_iKy.js} +9 -9
- package/dist/components/{p-EpPzEZnP.js.map → p-y2Qq_iKy.js.map} +1 -1
- package/dist/esm/defaultFieldLabels-GlbzVGpj.js +63 -0
- package/dist/esm/defaultFieldLabels-GlbzVGpj.js.map +1 -0
- package/dist/esm/{editorUtils-CXgTcK7o.js → editorUtils-DxEtiJLH.js} +6 -4
- package/dist/esm/editorUtils-DxEtiJLH.js.map +1 -0
- package/dist/esm/history-DQak0VIj.js +150 -0
- package/dist/esm/history-DQak0VIj.js.map +1 -0
- package/dist/{components/p-UgyxEpoj.js → esm/i18n-xWlEB8_Z.js} +62 -21
- package/dist/esm/{i18n-UgyxEpoj.js.map → i18n-xWlEB8_Z.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ls-add-new-button_20.entry.js +210 -29
- package/dist/esm/ls-assignee-select_21.entry.js +115 -89
- package/dist/esm/ls-compose-loader_7.entry.js +54 -26
- package/dist/esm/ls-compose-manager.entry.js +1 -1
- package/dist/esm/ls-document-viewer.entry.js +151 -11
- 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 +5 -4
- package/dist/esm/ls-field-format_2.entry.js +32 -37
- package/dist/esm/ls-field-properties-dropdown.entry.js +1 -1
- package/dist/esm/ls-field-type-display.entry.js +4 -4
- package/dist/esm/ls-helper-bar_2.entry.js +7 -4
- package/dist/esm/ls-title-input.entry.js +1 -1
- package/dist/esm/ls-toolbox-field.entry.js +3 -3
- package/dist/esm/{mouseHandlers-D46yjCjC.js → mouseHandlers-bjEdgN0l.js} +15 -8
- package/dist/esm/mouseHandlers-bjEdgN0l.js.map +1 -0
- package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -1
- package/dist/ls-document-viewer/p-59f14d34.entry.js +24 -0
- package/dist/ls-document-viewer/p-59f14d34.entry.js.map +1 -0
- package/dist/ls-document-viewer/{p-ecb9432a.entry.js → p-7f956e56.entry.js} +2 -2
- package/dist/ls-document-viewer/p-8795651c.entry.js +2 -0
- package/dist/ls-document-viewer/p-8795651c.entry.js.map +1 -0
- package/dist/ls-document-viewer/p-8adb2a2b.entry.js +2 -0
- package/dist/ls-document-viewer/p-8adb2a2b.entry.js.map +1 -0
- package/dist/ls-document-viewer/p-8d6d8ce9.entry.js +2 -0
- package/dist/ls-document-viewer/p-933aec9d.entry.js +2 -0
- package/dist/ls-document-viewer/p-933aec9d.entry.js.map +1 -0
- package/dist/ls-document-viewer/p-CUIgrAMe.js +2 -0
- package/dist/ls-document-viewer/p-CUIgrAMe.js.map +1 -0
- package/dist/ls-document-viewer/p-D5ifsF1H.js +2 -0
- package/dist/ls-document-viewer/p-D5ifsF1H.js.map +1 -0
- package/dist/ls-document-viewer/p-DQak0VIj.js +2 -0
- package/dist/ls-document-viewer/p-DQak0VIj.js.map +1 -0
- package/dist/ls-document-viewer/p-GlbzVGpj.js +2 -0
- package/dist/ls-document-viewer/p-GlbzVGpj.js.map +1 -0
- package/dist/ls-document-viewer/{p-f7cb64d9.entry.js → p-aab8f6b4.entry.js} +2 -2
- package/dist/ls-document-viewer/p-af597d06.entry.js +2 -0
- package/dist/ls-document-viewer/p-af597d06.entry.js.map +1 -0
- package/dist/ls-document-viewer/{p-e448f588.entry.js → p-ca0622f2.entry.js} +2 -2
- package/dist/ls-document-viewer/p-d4504d48.entry.js +2 -0
- package/dist/ls-document-viewer/p-d4504d48.entry.js.map +1 -0
- package/dist/ls-document-viewer/p-d922937d.entry.js +2 -0
- package/dist/ls-document-viewer/p-d922937d.entry.js.map +1 -0
- package/dist/ls-document-viewer/{p-8941c996.entry.js → p-fc94af7c.entry.js} +2 -2
- package/dist/ls-document-viewer/p-xWlEB8_Z.js +2 -0
- package/dist/ls-document-viewer/{p-UgyxEpoj.js.map → p-xWlEB8_Z.js.map} +1 -1
- package/dist/types/components/ls-document-viewer/history.d.ts +23 -0
- package/dist/types/components/ls-document-viewer/ls-document-viewer.d.ts +2 -0
- package/dist/types/components/ls-field-content/ls-field-content.d.ts +2 -0
- package/dist/types/components/ls-field-format/ls-field-format.d.ts +2 -2
- package/dist/types/components/ls-field-properties-multiple/ls-field-properties-multiple.d.ts +20 -0
- package/dist/types/components/ls-helper-bar/ls-helper-bar.d.ts +1 -0
- package/dist/types/components/ls-statusbar/ls-statusbar.d.ts +2 -0
- package/dist/types/components/ls-toolbar/ls-toolbar.d.ts +2 -1
- package/package.json +1 -1
- package/dist/cjs/editorUtils-DNCtWIYh.js.map +0 -1
- package/dist/cjs/fieldTypeUtils-XnJkvOqZ.js +0 -28
- package/dist/cjs/fieldTypeUtils-XnJkvOqZ.js.map +0 -1
- package/dist/cjs/mouseHandlers-BrvcIyzu.js.map +0 -1
- package/dist/components/p-0fR5VYAY.js.map +0 -1
- package/dist/components/p-4gV4L29s.js.map +0 -1
- package/dist/components/p-Bbs-s2fr.js.map +0 -1
- package/dist/components/p-Bc8HVPXS.js.map +0 -1
- package/dist/components/p-Bm6GIujP.js +0 -280
- package/dist/components/p-Bm6GIujP.js.map +0 -1
- package/dist/components/p-CQqYrZK0.js.map +0 -1
- package/dist/components/p-Cp97dEu1.js.map +0 -1
- package/dist/components/p-DAKipkhq.js.map +0 -1
- package/dist/components/p-DKOaSs1P.js +0 -26
- package/dist/components/p-DKOaSs1P.js.map +0 -1
- package/dist/components/p-DLEAG9ks.js +0 -122
- package/dist/components/p-DLEAG9ks.js.map +0 -1
- package/dist/components/p-DOyKMEqc.js.map +0 -1
- package/dist/components/p-DRfaZObI.js.map +0 -1
- package/dist/components/p-p1ood2RQ.js.map +0 -1
- package/dist/esm/editorUtils-CXgTcK7o.js.map +0 -1
- package/dist/esm/fieldTypeUtils-DKOaSs1P.js +0 -26
- package/dist/esm/fieldTypeUtils-DKOaSs1P.js.map +0 -1
- package/dist/esm/mouseHandlers-D46yjCjC.js.map +0 -1
- package/dist/ls-document-viewer/p-8b035ab4.entry.js +0 -2
- package/dist/ls-document-viewer/p-8b035ab4.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-C33NzjZH.js +0 -2
- package/dist/ls-document-viewer/p-C33NzjZH.js.map +0 -1
- package/dist/ls-document-viewer/p-DKOaSs1P.js +0 -2
- package/dist/ls-document-viewer/p-DKOaSs1P.js.map +0 -1
- package/dist/ls-document-viewer/p-UgyxEpoj.js +0 -2
- package/dist/ls-document-viewer/p-a0e78518.entry.js +0 -2
- package/dist/ls-document-viewer/p-a0e78518.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-a4f036f7.entry.js +0 -2
- package/dist/ls-document-viewer/p-a4f036f7.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-aaef389a.entry.js +0 -24
- package/dist/ls-document-viewer/p-aaef389a.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-cc9048f1.entry.js +0 -2
- package/dist/ls-document-viewer/p-cc9048f1.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-e6695aa9.entry.js +0 -2
- package/dist/ls-document-viewer/p-ed0572c4.entry.js +0 -2
- package/dist/ls-document-viewer/p-ed0572c4.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-f798fd98.entry.js +0 -2
- package/dist/ls-document-viewer/p-f798fd98.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-xb5eWHAa.js +0 -2
- package/dist/ls-document-viewer/p-xb5eWHAa.js.map +0 -1
- /package/dist/ls-document-viewer/{p-ecb9432a.entry.js.map → p-7f956e56.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-e6695aa9.entry.js.map → p-8d6d8ce9.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-f7cb64d9.entry.js.map → p-aab8f6b4.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-e448f588.entry.js.map → p-ca0622f2.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-8941c996.entry.js.map → p-fc94af7c.entry.js.map} +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, h, a as getElement, c as createEvent, H as Host } from './index-CItPoq74.js';
|
|
2
2
|
import { c as clsx } from './clsx-ChV9xqsO.js';
|
|
3
|
-
import { d as dvI18n } from './i18n-
|
|
4
|
-
import { g as getDefaultValidationForType } from './
|
|
3
|
+
import { d as dvI18n } from './i18n-xWlEB8_Z.js';
|
|
4
|
+
import { g as getDefaultValidationForType, a as getFieldPlaceholder } from './defaultFieldLabels-GlbzVGpj.js';
|
|
5
|
+
import { e as validateFieldValue, f as validationTypes } from './editorUtils-DxEtiJLH.js';
|
|
5
6
|
import { d as defaultRolePalette } from './defaultPalette-CwCWCxsI.js';
|
|
6
7
|
import { F as FIELD_DEFAULTS } from './fieldDefaults-04cXI5GQ.js';
|
|
8
|
+
import './history-DQak0VIj.js';
|
|
7
9
|
|
|
8
10
|
const lsAddNewButtonCss = () => `
|
|
9
11
|
.button {
|
|
@@ -151,9 +153,13 @@ const LsDocumentOptions = class {
|
|
|
151
153
|
}
|
|
152
154
|
render() {
|
|
153
155
|
function formatDate(isoString) {
|
|
156
|
+
if (!isoString)
|
|
157
|
+
return '-';
|
|
154
158
|
const date = new Date(isoString);
|
|
159
|
+
if (isNaN(date.getTime()))
|
|
160
|
+
return '-';
|
|
155
161
|
const day = String(date.getDate()).padStart(2, '0');
|
|
156
|
-
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
162
|
+
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
157
163
|
const year = date.getFullYear();
|
|
158
164
|
const hours = String(date.getHours()).padStart(2, '0');
|
|
159
165
|
const minutes = String(date.getMinutes()).padStart(2, '0');
|
|
@@ -276,7 +282,7 @@ const LsFieldProperties = class {
|
|
|
276
282
|
event.stopPropagation();
|
|
277
283
|
};
|
|
278
284
|
render() {
|
|
279
|
-
return (h(Host, { key: '
|
|
285
|
+
return (h(Host, { key: 'b0b89acc453e22cfa282bb9837568d07f46be1f6', onKeyDown: this.handleKeyDown, onKeyUp: this.handleKeyUp }, this.dataItem && this.renderFields(), h("slot", { key: 'd9f359214a7301e34a92f748b0a713a16d081298' })));
|
|
280
286
|
}
|
|
281
287
|
};
|
|
282
288
|
LsFieldProperties.style = lsFieldPropertiesCss();
|
|
@@ -290,7 +296,7 @@ const LsFieldPropertiesAutosign = class {
|
|
|
290
296
|
dataItem;
|
|
291
297
|
readonly = false;
|
|
292
298
|
render() {
|
|
293
|
-
return (h(Host, { key: '
|
|
299
|
+
return (h(Host, { key: '641cc1dd7678b3840eb18124846ea72d09a059f1' }, h("div", { key: '2582043034afb2386703cb0a0fac7f36fff46261', class: "ls-dv-field-properties-section" }, "Self Sign Field"), h("div", { key: 'de6ccb8911b084b0060f92a26393951aee48216e' }, "Label: ", h("input", { key: 'ba30f2730593784eddfb1a70d2e01987a1eca4c2', value: this.dataItem?.label, width: "30" })), h("ls-field-dimensions", { key: '1b8242eb5a5b1b5d9bafc6fd7e6a30470917b839', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-properties-advanced", { key: 'e961e2ae70a351463a423ab7d4ec6e1a02bcfb1d', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-footer", { key: 'b80f3f6d7d0d1968b5abb8b695749dd6ee28bbf4', dataItem: this.dataItem, readonly: this.readonly }), h("slot", { key: '659818f18eadaf67cb914ce7ab377045088a43f0' })));
|
|
294
300
|
}
|
|
295
301
|
};
|
|
296
302
|
LsFieldPropertiesAutosign.style = lsFieldPropertiesAutosignCss();
|
|
@@ -312,7 +318,7 @@ const LsFieldPropertiesCheckbox = class {
|
|
|
312
318
|
}
|
|
313
319
|
get el() { return getElement(this); }
|
|
314
320
|
render() {
|
|
315
|
-
return (h(Host, { key: '
|
|
321
|
+
return (h(Host, { key: '9e44233a4abaf321e731628f7c921006ba2231d8' }, h("ls-field-properties-container", { key: '1ee10bfe21b53e4619a65bab6dd4601a1629306d', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: '93dad0b07d94f8949682c47bc49530e81cf7b5a4', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: '82ce0d41e856070e5aebd59826852611fdf45fa6', dataItem: this.dataItem, roles: this.roles, showValidationTypes: true, readonly: this.readonly }), h("ls-field-properties-advanced", { key: '3ac7a9cd1238ea715518ab74d7ffa731a6285473', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '92a985c8190ff5c5269651fdac145fe0e9194341', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: 'aa9b7bd1398b82f1fc73be0065493eb4c9d918a3', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: 'c8e773af0bb136b16de9eae037b5cac5227aed14', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: 'f43b7abf633fdbfccddf21a3b2579e6eb53928a4', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: 'cff1d6fce61ecff715215dc843796ecb24a0e922', dataItem: this.dataItem, readonly: this.readonly })));
|
|
316
322
|
}
|
|
317
323
|
};
|
|
318
324
|
LsFieldPropertiesCheckbox.style = lsFieldPropertiesCheckboxCss();
|
|
@@ -327,7 +333,7 @@ const LsFieldPropertiesDate = class {
|
|
|
327
333
|
roles = [];
|
|
328
334
|
readonly = false;
|
|
329
335
|
render() {
|
|
330
|
-
return (h(Host, { key: '
|
|
336
|
+
return (h(Host, { key: 'e61351642fcdbf459521474addf3d1c9fc1bc957' }, h("ls-field-properties-container", { key: '4c3e177015f1ff6f49e2e53ca6f46f046f69d5cf', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: 'aa5f876e65d0094b5ef89f6cf41d3719d408281a', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: '6db302195d8829ef8f35a8c77ef00e4dd4d8c0ce', dataItem: this.dataItem, roles: this.roles, readonly: this.readonly }), h("ls-field-properties-advanced", { key: '02bb9daf6f0d98c091e48f3e2eda57aba010793f', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '667d8e3ba20d8e3c89fc9020bac6606fed4bbf7a', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: 'c9943df8fdf39d64b34e7050bcee2ad53d21ec9f', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: 'f37f079fe060a3a6be2aae8be5631404c5ee2b49', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: 'd7c6151b44937bc178c47217c915243435ad23d0', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: 'f0ff03b2ae936e20c36745e0ca54b39f77bc9725', dataItem: this.dataItem, readonly: this.readonly })));
|
|
331
337
|
}
|
|
332
338
|
};
|
|
333
339
|
LsFieldPropertiesDate.style = lsFieldPropertiesDateCss();
|
|
@@ -342,7 +348,7 @@ const LsFieldPropertiesEmail = class {
|
|
|
342
348
|
roles = [];
|
|
343
349
|
readonly = false;
|
|
344
350
|
render() {
|
|
345
|
-
return (h(Host, { key: '
|
|
351
|
+
return (h(Host, { key: 'b0408e4d13cbaac8491bae6dea42d2d15e7d373e' }, h("ls-field-properties-container", { key: '2a7fe530df5fd06b61ad0733ecc5d83bfea325c7', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: '5b99af9d32e18d40c9ff224a2646d1f2903ba31a', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: '94980046aa83b2aa4fc8585ccd8d21c533e142bd', dataItem: this.dataItem, roles: this.roles, readonly: this.readonly }), h("ls-field-properties-advanced", { key: 'c65d2a9a27d1495ccb3d66b9b620f5e3a9f195cc', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: 'e121f55db5ffc20feb86ab40ec3615527ebfb261', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: '7dbecee20336e9fa2bc4de2d16e201ef63819c30', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '4708308fa18d5c0344dd07a4b6cbf78e556334ae', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: '855824921e3ed423e5aca5065fc0edb81c3f64df', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: 'e4f1454be8b9e97e84f136278b26a6ee0f595556', dataItem: this.dataItem, readonly: this.readonly })));
|
|
346
352
|
}
|
|
347
353
|
};
|
|
348
354
|
LsFieldPropertiesEmail.style = lsFieldPropertiesEmailCss();
|
|
@@ -357,7 +363,7 @@ const LsFieldPropertiesFile = class {
|
|
|
357
363
|
roles = [];
|
|
358
364
|
readonly = false;
|
|
359
365
|
render() {
|
|
360
|
-
return (h(Host, { key: '
|
|
366
|
+
return (h(Host, { key: 'ab0b6ced60036b32e9a5027974ed756b13fdf904' }, h("ls-field-properties-container", { key: '5c021cfec6ed1d052f3b027d18a1c81cc0a6f6e4', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: 'ad274fb15c423969233a1801d3f15bd5db523bde', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: '7c76f0fad62beb869fa05ee062fced11e3da691e', dataItem: this.dataItem, roles: this.roles, readonly: this.readonly }), h("ls-field-properties-advanced", { key: '8049d530ec44df7a896f145441e01e908b34a557', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '086f68431dd3e648ba8a4b4bc20269e3aebd6cdd', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: '0143dd679ff2775a8f7541e22a0f4c47d51294e3', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '3c780f3ea4b6f4cd9bb9bb936b28f14d2e4bcd67', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: '1755163b10e16f16249f51d08126da932f642ba3', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: '64182e4ffeb780cbe749b0a1995dd12cc733b353', dataItem: this.dataItem, readonly: this.readonly })));
|
|
361
367
|
}
|
|
362
368
|
};
|
|
363
369
|
LsFieldPropertiesFile.style = lsFieldPropertiesFileCss();
|
|
@@ -372,12 +378,12 @@ const LsFieldPropertiesGeneral = class {
|
|
|
372
378
|
roles = [];
|
|
373
379
|
readonly = false;
|
|
374
380
|
render() {
|
|
375
|
-
return (h(Host, { key: '
|
|
381
|
+
return (h(Host, { key: '9190845c512c0a86c637b36f629250b9367797f0' }, h("ls-field-properties-container", { key: '248100e296bf44b4c2865f2e1306b15389d4661c', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: '28cc12f82845da0e46f72867cffba61d2815b0e0', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: '0949141174d0b1818b29f453e0d5bf0be13896a0', dataItem: this.dataItem, roles: this.roles, readonly: this.readonly }), h("ls-field-properties-advanced", { key: '532628012bfcad35a89fd0d6b58d31baa3251065', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: 'f9d83e55e8bb2436689aa774c45ae41b14172f54', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: '546c287b29b8c1b5d7281b27db8df09216f829b7', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: 'ad3163bb3ae27c233779aa75f38788f31644ee29', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: '32352a0b668c764bc81d8940378c22776e09a31b', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: 'ab7d4eb83d246a09f0fd15ca5589c0a7ef990069', dataItem: this.dataItem, readonly: this.readonly })));
|
|
376
382
|
}
|
|
377
383
|
};
|
|
378
384
|
LsFieldPropertiesGeneral.style = lsFieldPropertiesGeneralCss();
|
|
379
385
|
|
|
380
|
-
const lsFieldPropertiesMultipleCss = () => `:host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.ls-dv-properties-container{display:flex;flex-direction:column;height:100%}.ls-dv-field-set{display:flex;flex-direction:column;gap:1rem;width:100%}.ls-dv-field-properties-section{display:flex;position:relative;flex-direction:column;gap:0.5rem}.ls-dv-row{flex-direction:row;align-items:center;justify-content:space-between}.ls-dv-field-properties-section-text{display:flex;flex-direction:column;gap:0.25rem;padding:0.25rem}.ls-dv-field-properties-section-title{color:var(--gray-90, #5e6066);font-size:1rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-dv-field-properties-section-description{overflow:hidden;color:var(--gray-80, #6f7176);text-overflow:ellipsis;font-size:0.75rem;font-style:normal;font-weight:400;line-height:0.75rem;}.ls-dv-field-type-wrapper{position:relative;border-radius:0.875rem;padding:0.25rem}.ls-dv-field-type-inner{border-radius:0.625rem;background:var(--white, #ffffff);display:flex;padding:0.25rem 0.5rem 0.25rem 0.25rem;align-items:center;gap:0.875rem;align-self:stretch}.ls-dv-field-type-icon{display:flex;padding:0.5rem;align-items:center;border-radius:0.625rem;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}.ls-dv-field-type-name{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;text-transform:capitalize}.ls-dv-tabs-container{display:grid;grid-template-columns:repeat(3, 1fr);width:100%;gap:0.125rem;padding:0.125rem;border:1px solid var(--gray-30, #e0e2e5);border-radius:0.75rem;background:var(--white, #ffffff)}.ls-dv-tab{all:unset;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:0.5rem;border-radius:0.625rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;color:var(--gray-80, #6f7176)}.ls-dv-tab.ls-dv-active{background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.ls-dv-tab:not(.ls-dv-active):hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-footer{display:flex;padding-top:1rem;border-top:1px solid var(--gray-20, #edeff2);flex-direction:column;justify-content:flex-end;gap:0.75rem;margin-top:auto}.ls-dv-scrolling-container{overflow-y:auto;padding:0 1rem;margin:0 -1rem;height:calc(100% - 10.938rem)}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;width:100%}.ls-dv-input-wrapper{position:relative}.ls-dv-full-width{width:100%}#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:100vh;color:var(--primary-60, #4456f6)}button{display:flex;gap:0.5rem;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;font-weight:500;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)}button.ls-dv-secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #ffffff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.ls-dv-secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-destructive{border:1px solid var(--red-60, #f64a44);background-color:white;color:var(--red-60, #f64a44)}button.ls-dv-destructive:hover{border:1px solid var(--red-70, #dc2721);background:var(--red-10, #fff0f0)}.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)}`;
|
|
386
|
+
const lsFieldPropertiesMultipleCss = () => `:host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.ls-dv-properties-container{display:flex;flex-direction:column;height:100%}.ls-dv-field-set{display:flex;flex-direction:column;gap:1rem;width:100%}.ls-dv-field-properties-section{display:flex;position:relative;flex-direction:column;gap:0.5rem}.ls-dv-row{flex-direction:row;align-items:center;justify-content:space-between}.ls-dv-field-properties-section-text{display:flex;flex-direction:column;gap:0.25rem;padding:0.25rem}.ls-dv-field-properties-section-title{color:var(--gray-90, #5e6066);font-size:1rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-dv-field-properties-section-description{overflow:hidden;color:var(--gray-80, #6f7176);text-overflow:ellipsis;font-size:0.75rem;font-style:normal;font-weight:400;line-height:0.75rem;}.ls-dv-field-type-wrapper{position:relative;border-radius:0.875rem;padding:0.25rem}.ls-dv-field-type-inner{border-radius:0.625rem;background:var(--white, #ffffff);display:flex;padding:0.25rem 0.5rem 0.25rem 0.25rem;align-items:center;gap:0.875rem;align-self:stretch}.ls-dv-field-type-icon{display:flex;padding:0.5rem;align-items:center;border-radius:0.625rem;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}.ls-dv-field-type-name{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;text-transform:capitalize}.ls-dv-tabs-container{display:grid;grid-template-columns:repeat(3, 1fr);width:100%;gap:0.125rem;padding:0.125rem;border:1px solid var(--gray-30, #e0e2e5);border-radius:0.75rem;background:var(--white, #ffffff)}.ls-dv-tab{all:unset;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:0.5rem;border-radius:0.625rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;color:var(--gray-80, #6f7176)}.ls-dv-tab.ls-dv-active{background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.ls-dv-tab:not(.ls-dv-active):hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-footer{display:flex;padding-top:1rem;border-top:1px solid var(--gray-20, #edeff2);flex-direction:column;justify-content:flex-end;gap:0.75rem;margin-top:auto}.ls-dv-scrolling-container{overflow-y:auto;padding:0 1rem;margin:0 -1rem;height:calc(100% - 10.938rem)}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;width:100%}.ls-dv-input-wrapper{position:relative}.ls-dv-full-width{width:100%}#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:100vh;color:var(--primary-60, #4456f6)}button{display:flex;gap:0.5rem;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;font-weight:500;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)}button.ls-dv-secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #ffffff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.ls-dv-secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-destructive{border:1px solid var(--red-60, #f64a44);background-color:white;color:var(--red-60, #f64a44)}button.ls-dv-destructive:hover{border:1px solid var(--red-70, #dc2721);background:var(--red-10, #fff0f0)}.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-input-error{border-color:var(--red-60, #f64a44)}.ls-dv-input-error:focus{box-shadow:0 0 0 0.25rem var(--red-20, #ffe1e0);border-color:var(--red-60, #f64a44)}.ls-dv-error-text{color:var(--red-60, #f64a44);font-size:var(--text-xs);margin-top:0.25rem}`;
|
|
381
387
|
|
|
382
388
|
const LsFieldPropertiesMultiple = class {
|
|
383
389
|
constructor(hostRef) {
|
|
@@ -388,6 +394,18 @@ const LsFieldPropertiesMultiple = class {
|
|
|
388
394
|
dataItem;
|
|
389
395
|
roles = [];
|
|
390
396
|
readonly = false;
|
|
397
|
+
valueError = null;
|
|
398
|
+
validateOnChange() {
|
|
399
|
+
if (this.allFieldTypesSame().isSame && this.supportsValue() && this.allValuesSame().isSame) {
|
|
400
|
+
this.valueError = validateFieldValue(this.allFieldTypesSame().fieldType, this.allValidationsSame().validation, this.allValuesSame().value, this.dataItem[0]?.options);
|
|
401
|
+
}
|
|
402
|
+
else {
|
|
403
|
+
this.valueError = null;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
componentWillLoad() {
|
|
407
|
+
this.validateOnChange();
|
|
408
|
+
}
|
|
391
409
|
mutate;
|
|
392
410
|
update;
|
|
393
411
|
// Send one or more mutations up the chain
|
|
@@ -395,7 +413,20 @@ const LsFieldPropertiesMultiple = class {
|
|
|
395
413
|
// NOTE this alter is debounced to account for typing
|
|
396
414
|
alter(diff) {
|
|
397
415
|
this.dataItem = this.dataItem.map(item => ({ ...item, ...diff }));
|
|
398
|
-
this.
|
|
416
|
+
const evs = this.dataItem.map(item => ({ action: 'update', data: item }));
|
|
417
|
+
this.update.emit(evs);
|
|
418
|
+
this.debounce(diff, 1500);
|
|
419
|
+
}
|
|
420
|
+
// Immediate alter for non-typing actions (toggles, selects)
|
|
421
|
+
alterImmediate(diff) {
|
|
422
|
+
this.dataItem = this.dataItem.map(item => ({ ...item, ...diff }));
|
|
423
|
+
if (this.labeltimer) {
|
|
424
|
+
clearTimeout(this.labeltimer);
|
|
425
|
+
this.labeltimer = null;
|
|
426
|
+
}
|
|
427
|
+
const evs = this.dataItem.map(item => ({ action: 'update', data: item }));
|
|
428
|
+
this.mutate.emit(evs);
|
|
429
|
+
this.update.emit(evs);
|
|
399
430
|
}
|
|
400
431
|
labeltimer;
|
|
401
432
|
debounce(diff, delay) {
|
|
@@ -435,6 +466,133 @@ const LsFieldPropertiesMultiple = class {
|
|
|
435
466
|
const allSame = this.dataItem.every(item => item.formElementType === firstType);
|
|
436
467
|
return { isSame: allSame, fieldType: allSame ? firstType : 'mixed' };
|
|
437
468
|
};
|
|
469
|
+
allValuesSame = () => {
|
|
470
|
+
if (!this.dataItem || this.dataItem.length === 0)
|
|
471
|
+
return { isSame: true, value: '' };
|
|
472
|
+
const firstValue = this.dataItem[0].value || '';
|
|
473
|
+
const allSame = this.dataItem.every(item => (item.value || '') === firstValue);
|
|
474
|
+
return { isSame: allSame, value: allSame ? firstValue : '' };
|
|
475
|
+
};
|
|
476
|
+
supportsValue = () => {
|
|
477
|
+
const typesWithoutValue = ['signature', 'initials', 'file', 'signing', 'autosign', 'signing date', 'auto sign', 'dropdown', 'checkbox', 'drawn field', 'date'];
|
|
478
|
+
const fieldType = this.allFieldTypesSame().fieldType;
|
|
479
|
+
return !typesWithoutValue.includes(fieldType);
|
|
480
|
+
};
|
|
481
|
+
isDateType = () => {
|
|
482
|
+
return this.allFieldTypesSame().fieldType === 'date';
|
|
483
|
+
};
|
|
484
|
+
allValidationsSame = () => {
|
|
485
|
+
if (!this.dataItem || this.dataItem.length === 0)
|
|
486
|
+
return { isSame: true, validation: 0 };
|
|
487
|
+
const firstValidation = this.dataItem[0].validation;
|
|
488
|
+
const allSame = this.dataItem.every(item => item.validation === firstValidation);
|
|
489
|
+
return { isSame: allSame, validation: allSame ? firstValidation : null };
|
|
490
|
+
};
|
|
491
|
+
showContentFormat = () => {
|
|
492
|
+
const fieldType = this.allFieldTypesSame().fieldType;
|
|
493
|
+
const excluded = ['drawn field', 'regular expression', 'initials', 'signature', 'mixed'];
|
|
494
|
+
return this.allFieldTypesSame().isSame && !excluded.includes(fieldType);
|
|
495
|
+
};
|
|
496
|
+
getDateFormatById(validation) {
|
|
497
|
+
const vType = validationTypes.find(v => v.id === validation);
|
|
498
|
+
if (!vType || vType.inputType !== 'date')
|
|
499
|
+
return null;
|
|
500
|
+
return vType.description;
|
|
501
|
+
}
|
|
502
|
+
convertDateValue(currentValue, oldValidation, newValidation) {
|
|
503
|
+
if (!currentValue)
|
|
504
|
+
return '';
|
|
505
|
+
const oldFormat = this.getDateFormatById(oldValidation);
|
|
506
|
+
const newFormat = this.getDateFormatById(newValidation);
|
|
507
|
+
if (!oldFormat || !newFormat)
|
|
508
|
+
return currentValue;
|
|
509
|
+
const sep = oldFormat.match(/[/.-]/)?.[0] || '/';
|
|
510
|
+
const parts = oldFormat.split(/[/.-]/);
|
|
511
|
+
const valueParts = currentValue.split(sep);
|
|
512
|
+
if (valueParts.length < 2)
|
|
513
|
+
return currentValue;
|
|
514
|
+
let y = '', m = '', d = '';
|
|
515
|
+
parts.forEach((p, i) => {
|
|
516
|
+
const v = valueParts[i] || '';
|
|
517
|
+
if (p.startsWith('y'))
|
|
518
|
+
y = v;
|
|
519
|
+
else if (p.startsWith('m'))
|
|
520
|
+
m = v;
|
|
521
|
+
else if (p.startsWith('d'))
|
|
522
|
+
d = v;
|
|
523
|
+
});
|
|
524
|
+
if (y.length === 2)
|
|
525
|
+
y = '20' + y;
|
|
526
|
+
if (!d)
|
|
527
|
+
d = '01';
|
|
528
|
+
return newFormat
|
|
529
|
+
.replace('yyyy', y.padStart(4, '0'))
|
|
530
|
+
.replace('yy', y.slice(-2))
|
|
531
|
+
.replace('mm', m.padStart(2, '0'))
|
|
532
|
+
.replace('dd', d.padStart(2, '0'))
|
|
533
|
+
.replace('d', String(parseInt(d)));
|
|
534
|
+
}
|
|
535
|
+
formatISOToValidation(isoValue, validation) {
|
|
536
|
+
if (!isoValue)
|
|
537
|
+
return '';
|
|
538
|
+
const [y, m, d] = isoValue.split('-');
|
|
539
|
+
const format = this.getDateFormatById(validation);
|
|
540
|
+
if (!format)
|
|
541
|
+
return isoValue;
|
|
542
|
+
return format
|
|
543
|
+
.replace('yyyy', y)
|
|
544
|
+
.replace('yy', y.slice(-2))
|
|
545
|
+
.replace('mm', m)
|
|
546
|
+
.replace('dd', d)
|
|
547
|
+
.replace('d', String(parseInt(d)));
|
|
548
|
+
}
|
|
549
|
+
toISODate(value, validation) {
|
|
550
|
+
if (!value)
|
|
551
|
+
return '';
|
|
552
|
+
const format = this.getDateFormatById(validation);
|
|
553
|
+
if (!format)
|
|
554
|
+
return value;
|
|
555
|
+
const sep = format.match(/[/.-]/)?.[0] || '/';
|
|
556
|
+
const parts = format.split(/[/.-]/);
|
|
557
|
+
const valueParts = value.split(sep);
|
|
558
|
+
if (valueParts.length < 2)
|
|
559
|
+
return value;
|
|
560
|
+
let y = '', m = '', d = '';
|
|
561
|
+
parts.forEach((p, i) => {
|
|
562
|
+
const v = valueParts[i] || '';
|
|
563
|
+
if (p.startsWith('y'))
|
|
564
|
+
y = v;
|
|
565
|
+
else if (p.startsWith('m'))
|
|
566
|
+
m = v;
|
|
567
|
+
else if (p.startsWith('d'))
|
|
568
|
+
d = v;
|
|
569
|
+
});
|
|
570
|
+
if (y.length === 2)
|
|
571
|
+
y = '20' + y;
|
|
572
|
+
if (!d)
|
|
573
|
+
d = '01';
|
|
574
|
+
return `${y.padStart(4, '0')}-${m.padStart(2, '0')}-${d.padStart(2, '0')}`;
|
|
575
|
+
}
|
|
576
|
+
handleFormatChange(newValidation) {
|
|
577
|
+
if (this.isDateType()) {
|
|
578
|
+
// Convert each field's date value to the new format
|
|
579
|
+
this.dataItem = this.dataItem.map(item => ({
|
|
580
|
+
...item,
|
|
581
|
+
validation: newValidation,
|
|
582
|
+
value: this.convertDateValue(item.value || '', item.validation, newValidation),
|
|
583
|
+
}));
|
|
584
|
+
}
|
|
585
|
+
else {
|
|
586
|
+
this.dataItem = this.dataItem.map(item => ({ ...item, validation: newValidation }));
|
|
587
|
+
}
|
|
588
|
+
if (this.labeltimer) {
|
|
589
|
+
clearTimeout(this.labeltimer);
|
|
590
|
+
this.labeltimer = null;
|
|
591
|
+
}
|
|
592
|
+
const evs = this.dataItem.map(item => ({ action: 'update', data: item }));
|
|
593
|
+
this.mutate.emit(evs);
|
|
594
|
+
this.update.emit(evs);
|
|
595
|
+
}
|
|
438
596
|
allFieldsOptional = () => {
|
|
439
597
|
if (!this.dataItem || this.dataItem.length === 0)
|
|
440
598
|
return { isSame: true, optional: false };
|
|
@@ -540,8 +698,31 @@ const LsFieldPropertiesMultiple = class {
|
|
|
540
698
|
}, 500);
|
|
541
699
|
}
|
|
542
700
|
render() {
|
|
543
|
-
return (h(Host, { key: '
|
|
701
|
+
return (h(Host, { key: '144b6d501f79a051e31f193d9bc6c3e549513f65' }, h("ls-field-properties-container", { key: '6b43b2a45293e9134ea32ea99a3c65cadcb2ebb4', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: 'e41dbe3f488ae946179e789bc01e1c35076d3a11', class: 'ls-dv-field-set', slot: "content" }, this.roles?.length > 0 && (h("div", { key: 'adde9f26a2b80ee24fb770b7fa647269353e2e4c', class: 'ls-dv-field-properties-section' }, h("div", { key: '54859095d0041a5e9042bf5975323a00f58c87f6', class: 'ls-dv-field-properties-section-text' }, h("p", { key: '69a0d53f7c5f44d20212a94a8041050349455471', class: 'ls-dv-field-properties-section-title' }, dvI18n.t('fieldproperties.assignee')), h("p", { key: 'b60a963bbebc89b49ec68ce33c0659742563efba', class: 'ls-dv-field-properties-section-description' }, dvI18n.t('fieldproperties.assigneedescription'))), h("ls-assignee-select", { key: '081cbc20a42f846c7ce72690b5c28dd19ebfeb37', signer: this.allSignersSame().signer, roles: this.roles, disabled: this.readonly, disabledSenderReason: this.getSenderDisabledReason(), disabledApproverReason: this.hasSignatureType() ? dvI18n.t('fieldproperties.signaturecannotapprover') : '', mixed: !this.allSignersSame().isSame, onAssigneeChange: ev => this.handleReassign(ev.detail) }))), h("div", { key: '8b3df2e389b53f78a41ce2214474b42b178ea2c3', class: 'ls-dv-field-properties-section' }, h("div", { key: '0ad48abe85081b7bf7b00999ace9213200e1bd46', class: 'ls-dv-field-properties-section-text' }, h("p", { key: '84e7cbc59afe17024ceab996bd70c6724399b3e4', class: 'ls-dv-field-properties-section-title' }, dvI18n.t('fieldproperties.fieldtype')), h("p", { key: 'ee1c108c894cd75c2a5a8b933a41088cdfb0059a', class: 'ls-dv-field-properties-section-description' }, dvI18n.t('fieldproperties.fieldtypedescriptionmultiple'))), h("ls-field-type-select", { key: '5f2d832de1b0a73da603dfeddbb785f2541a1cb3', fieldType: this.allFieldTypesSame().fieldType, assignee: this.allSignersSame().signer, roles: this.roles, roleTypes: this.getAllRoleTypes(), disabled: this.readonly, mixed: !this.allFieldTypesSame().isSame, onFieldTypeChange: ev => this.handleFieldTypeChange(ev.detail) })), h("div", { key: '39fa8649330c1655639ab7dbe9f1e2ce327c9ef9', class: 'ls-dv-field-properties-section ls-dv-row' }, h("div", { key: '5bf3022231ffa8dc4c9a1c90a571d1539568e8d9', class: 'ls-dv-field-properties-section-text' }, h("p", { key: 'bd1e3ea8eb83ce1cdc1bb6f75bf909fad79ee965', class: 'ls-dv-field-properties-section-title' }, dvI18n.t('fieldproperties.requiredfield')), h("p", { key: 'b9a144369d0a4b12dba8e604b61b0c174f020dd5', class: 'ls-dv-field-properties-section-description' }, dvI18n.t('fieldproperties.requiredfielddescription'))), h("ls-toggle", { key: '61cb2443586d548b301ceae02032dde05166a002', onValueChange: (ev) => !this.readonly && this.alterImmediate({ optional: !ev.detail }), checked: !this.allFieldsOptional().optional, indeterminate: this.allFieldsOptional().isSame === false })), h("div", { key: 'b0a0ce67bea23565d986e2947c8db34887343d05', class: 'ls-dv-field-properties-section' }, h("div", { key: 'b13a902bd3736ac46a14a89ea8bf5f70f2539f67', class: 'ls-dv-field-properties-section-text' }, h("p", { key: '28c73a694b9e51336a7166c8ef77185b01eb6e1b', class: 'ls-dv-field-properties-section-title' }, dvI18n.t('fieldproperties.fieldlabel')), h("p", { key: '08164ff0a02e46e56f7761c5439fc4b2132c991b', class: 'ls-dv-field-properties-section-description' }, dvI18n.t('fieldproperties.fieldlabeldescription'))), h("input", { key: 'c45c960be45c45dc8a1d98e438b0de6338afe6b9', value: this.allLabelsSame().label, onInput: (e) => this.alter({ label: e.target.value }), width: "30", placeholder: this.allLabelsSame().isSame ? dvI18n.t('fieldproperties.placeholdersignhere') : dvI18n.t('fieldproperties.mixed'), disabled: this.readonly })), this.allFieldTypesSame().isSame && this.supportsValue() && (h("div", { key: 'c1deadf1a22f8b433493ca2f36021654bd9f45a8', class: 'ls-dv-field-properties-section' }, h("div", { key: 'e6f439cee33b48f2798ec35f0311232463784131', class: 'ls-dv-field-properties-section-text' }, h("p", { key: 'a371104ff14ab63914c85dd09295a7fabcf6f454', class: 'ls-dv-field-properties-section-title' }, dvI18n.t('fieldproperties.value')), h("p", { key: '20ab4e9a3d09491d6dc50540632507494b741a6d', class: 'ls-dv-field-properties-section-description' }, dvI18n.t('fieldproperties.valuedescription'))), h("input", { key: '3424d8bab92eee963317b2c2d35b587df9449df4', value: this.allValuesSame().value, onInput: (e) => {
|
|
702
|
+
const val = e.target.value;
|
|
703
|
+
this.valueError = validateFieldValue(this.allFieldTypesSame().fieldType, this.allValidationsSame().validation, val, this.dataItem[0]?.options);
|
|
704
|
+
this.alter({ value: val });
|
|
705
|
+
}, placeholder: this.allValuesSame().isSame ? getFieldPlaceholder(this.allFieldTypesSame().fieldType) : dvI18n.t('fieldproperties.mixed'), disabled: this.readonly, class: { 'ls-dv-input-error': !!this.valueError } }), this.valueError && h("p", { key: '1e3f365d8a8fba785d14d0548f4a1123c171e9ce', class: 'ls-dv-error-text' }, this.valueError))), this.allFieldTypesSame().isSame && this.isDateType() && (h("div", { key: '2111920bbf4b7d551d1257fe37b90151c584f3fa', class: 'ls-dv-field-properties-section' }, h("div", { key: 'd47ecc7048fae8758a0060f86611981e9241822e', class: 'ls-dv-field-properties-section-text' }, h("p", { key: '612f995f6cb4ab500f31d30c33934b4d822710e2', class: 'ls-dv-field-properties-section-title' }, dvI18n.t('fieldproperties.value'))), h("input", { key: '28eed198d7724518b84a81aafd13bafe079d8cf2', type: "date", value: this.allValuesSame().isSame ? this.toISODate(this.allValuesSame().value, this.dataItem[0].validation) : '', onChange: (e) => {
|
|
706
|
+
const isoValue = e.target.value;
|
|
707
|
+
// Convert ISO to each field's configured format
|
|
708
|
+
this.dataItem = this.dataItem.map(item => ({
|
|
709
|
+
...item,
|
|
710
|
+
value: this.formatISOToValidation(isoValue, item.validation),
|
|
711
|
+
}));
|
|
712
|
+
if (this.labeltimer) {
|
|
713
|
+
clearTimeout(this.labeltimer);
|
|
714
|
+
this.labeltimer = null;
|
|
715
|
+
}
|
|
716
|
+
const evs = this.dataItem.map(item => ({ action: 'update', data: item }));
|
|
717
|
+
this.mutate.emit(evs);
|
|
718
|
+
this.update.emit(evs);
|
|
719
|
+
}, disabled: this.readonly }))), this.showContentFormat() && (h("div", { key: '8f7f788c93871eee1ffee4990a2b0865fc23e639', class: 'ls-dv-field-properties-section' }, h("div", { key: '1346c3c1086daa0a6f060b1877dbec65dbcef64f', class: 'ls-dv-field-properties-section-text' }, h("p", { key: '6f9a0676dccabc4cdd511e90b59462e2102496b6', class: 'ls-dv-field-properties-section-title' }, dvI18n.t('fieldproperties.contentformat')), h("p", { key: '406fbdaa6cd26b3ee9a7e8e359dedf1a6cfb3f8a', class: 'ls-dv-field-properties-section-description' }, dvI18n.t('fieldproperties.contentformatdescription'))), h("ls-input-wrapper", { key: '3c04b23ba855ee6c8281338b4d957cfabec4c40a', select: true }, h("select", { key: 'd2672c8d9a30152fc7914ae0b5e066196f599f3e', onChange: ev => !this.readonly && this.handleFormatChange(parseInt(ev.target.value)), disabled: this.readonly }, !this.allValidationsSame().isSame && (h("option", { key: '47bfb300f938cd20ec637175d83f0f09b36d0cd0', disabled: true, selected: true, value: "" }, dvI18n.t('fieldproperties.mixed'))), validationTypes
|
|
720
|
+
.filter(type => type.formType === this.allFieldTypesSame().fieldType)
|
|
721
|
+
.map(type => (h("option", { selected: this.allValidationsSame().validation === type.id, value: type.id }, type.description)))))))), h("div", { key: 'd0f3ee526f88952292d996bc875b1392c3be20f4', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: 'ccc8f304a87fe10c8b3e770ad170c0c10e349d4c', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-size", { key: '8ddc226638297de6e6ca54754cd20690420b4fc1', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '0c95703f1dcd69144e46429acc470fa24f5e736a', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-alignment", { key: '23f65251c24441a37bf75f1e01343c583e94e1dd', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-placement", { key: '8e3d6f4cb302a3034e6b004196748e60d47ca4ef', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-distribute", { key: 'e09f42cb6fe410ee60956cd99a84df0352067c8a', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: 'b5530498f80e6b23f6b503dab1f29709eb3063e1', dataItem: this.dataItem, readonly: this.readonly }), h("slot", { key: '43ad4029632fd7f2f6eee198b243e824d8bf5ff7' })));
|
|
544
722
|
}
|
|
723
|
+
static get watchers() { return {
|
|
724
|
+
"dataItem": ["validateOnChange"]
|
|
725
|
+
}; }
|
|
545
726
|
};
|
|
546
727
|
LsFieldPropertiesMultiple.style = lsFieldPropertiesMultipleCss();
|
|
547
728
|
|
|
@@ -555,7 +736,7 @@ const LsFieldPropertiesNumber = class {
|
|
|
555
736
|
roles = [];
|
|
556
737
|
readonly = false;
|
|
557
738
|
render() {
|
|
558
|
-
return (h(Host, { key: '
|
|
739
|
+
return (h(Host, { key: 'f7dbcde39487ec52b36db3b1c2b18dd21eca9ae1' }, h("ls-field-properties-container", { key: '323118fab847e28f06c992e9fcdce6513e363cda', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: 'cf7d2650624838380fdffc97f77cff04008c7490', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: 'd75fe6f6ff0bd422f5649bfe7b57010f9e244c77', dataItem: this.dataItem, roles: this.roles, readonly: this.readonly }), h("ls-field-properties-advanced", { key: '8b52151f47503427a623141be525de8f11bfd933', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '2df46efbc4dbd5de266c0f2b803b779d49b2c633', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: 'cea91577b7f8d45076833bea1b34f2cebb41dc8e', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '92fb628625f648929397244782d9bc54518ff7d3', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: '020d6de5a17a89fbf07aabec53ea3e20f25350a8', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: 'dd7b7935d80c936dce1264996603ebca06206afe', dataItem: this.dataItem, readonly: this.readonly })));
|
|
559
740
|
}
|
|
560
741
|
};
|
|
561
742
|
LsFieldPropertiesNumber.style = lsFieldPropertiesNumberCss();
|
|
@@ -571,7 +752,7 @@ const LsFieldPropertiesSignature = class {
|
|
|
571
752
|
roles = [];
|
|
572
753
|
readonly = false;
|
|
573
754
|
render() {
|
|
574
|
-
return (h(Host, { key: '
|
|
755
|
+
return (h(Host, { key: '4c271ffb7b56567bf5f5625ff733b2b2c1048ef4' }, h("ls-field-properties-container", { key: '35783bdfff5b2d6f1b991c6aa3439f51b671654c', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: 'd0b5b66e9f7cceffbc634af363486f2f031559f5', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: '0c141aca962c0926be7d52cc27d7250951b77580', dataItem: this.dataItem, roles: this.roles, showValidationTypes: false, readonly: this.readonly }), h("ls-field-properties-advanced", { key: 'ca9322348323a738b986edf3cd0b485a9fc6f700', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '880d32b295e900f303c4b76373a569cd96f6d26c', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: '7b461353c73859a876571721dd77ae488e69d051', dataItem: this.dataItem, template: this.template, readonly: this.readonly })), h("div", { key: 'ed8b8c297215ff25855eb2c1016b35854d5beadc', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: '70176233a01635a20c2dc083f273972081966089', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: '2efa9f753c52b293c74214bbc05d943e6dba12da', dataItem: this.dataItem, readonly: this.readonly })));
|
|
575
756
|
}
|
|
576
757
|
};
|
|
577
758
|
LsFieldPropertiesSignature.style = lsFieldPropertiesSignatureCss();
|
|
@@ -586,7 +767,7 @@ const LsFieldPropertiesText = class {
|
|
|
586
767
|
roles = [];
|
|
587
768
|
readonly = false;
|
|
588
769
|
render() {
|
|
589
|
-
return (h(Host, { key: '
|
|
770
|
+
return (h(Host, { key: '780e720b9f520dd57d3e0d79269741cc162c08c8' }, h("ls-field-properties-container", { key: '3f6973b7ab1229ecdcd4552d6753b1f179fbf277', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: '39c78c0b5f51865ea028b438bd741c97bedd55a2', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: '6a4411de14d9b8619eaef3f181b2ab6ab838d8b3', dataItem: this.dataItem, roles: this.roles, readonly: this.readonly }), h("ls-field-properties-advanced", { key: '99518b57807f01d27ead618d326e3b4823bf9ca3', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '8f1db51ed3c421ae9594e555897effd9aacc4467', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: 'dccddd1497e909f5e17f6d565062bcbb5e3be70f', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: 'fbdec6c5c9f688fbe2a45ac82e83b7ad7a8a430e', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: '57eecf824ffda1b8088b8a34f8608a961a7097a3', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: '1c0a634f3ddd33eb62ecef0ec22aa71d707036e2', dataItem: this.dataItem, readonly: this.readonly })));
|
|
590
771
|
}
|
|
591
772
|
};
|
|
592
773
|
LsFieldPropertiesText.style = lsFieldPropertiesTextCss();
|
|
@@ -831,7 +1012,7 @@ const LsParticipantManager = class {
|
|
|
831
1012
|
}
|
|
832
1013
|
roleChange;
|
|
833
1014
|
render() {
|
|
834
|
-
return (h(Host, { key: '
|
|
1015
|
+
return (h(Host, { key: '2327956347574215bba089cce3c4648dc1ecc79f' }, h("div", { key: 'e0c7a60a844455faa0a340007597ebbe02b8402e', class: "ls-dv-editor-infobox" }, h("h2", { key: 'dd7d4b6ff98e18c31fe88d47d55f2db62ad02435', class: "ls-dv-toolbox-section-title" }, dvI18n.t('participants.title')), h("p", { key: '830e293e438709c9d0ee835975e860a636739d20', class: "ls-dv-toolbox-section-description" }, dvI18n.t('participants.description'))), h("div", { key: 'b383c37aa64217ea6c4f1b860bf340cd9b7b9af7', class: "ls-dv-participant-list" }, h("div", { key: 'ae0b82cf954f602f93ae5733898cddb9d2731391', class: 'ls-dv-sender-card' + (this.activeSigner === 0 ? ' ls-dv-sender-card-active' : ''), onClick: () => this.roleChange.emit(0) }, h("div", { key: '7e5d38f3cab99d3cb9024104ec58f5a0b1c62d13', class: "ls-dv-sender-card-inner" }, h("div", { key: '6a3616da78d8739253bfedb621481b687df83d9b', class: "ls-dv-sender-card-top-items" }, h("div", { key: 'ce996e3b8a213917e69207347344a2230b06a262', class: "ls-dv-role-label", style: { background: '#edeff2', color: '#5e6066' } }, h("ls-icon", { key: 'a4918a7b6f77c5b96fb719db60f75b01bd218c2d', name: "user-icon" }))), h("div", { key: '8f959301490aabbd48e27a09c43bd1ea60f708c4', class: "ls-dv-sender-card-text" }, h("p", { key: 'fe3c300ed87008802a4406a4e052bdebf7ba500e', class: "ls-dv-sender-name" }, dvI18n.t('toolbar.sender')), h("p", { key: '0cc3740fef0a909cf639f7182ab36042a7c5548b', class: "ls-dv-sender-type" }, dvI18n.t('toolbar.you'))), this.template &&
|
|
835
1016
|
(() => {
|
|
836
1017
|
const senderFields = this.template.elementConnection.templateElements.filter(f => Number(f.signer) === 0) || [];
|
|
837
1018
|
return senderFields.length > 0 ? (h("div", { class: "ls-dv-role-label ls-dv-fields", style: { background: '#edeff2', color: '#5e6066' } }, `${senderFields.length} ${senderFields.length === 1 ? dvI18n.t('common.field') : dvI18n.t('common.fields')}`)) : null;
|
|
@@ -840,12 +1021,12 @@ const LsParticipantManager = class {
|
|
|
840
1021
|
return (h("ls-participant-card", { signer: r, index: index, template: this.template, active: r.signerIndex === this.activeSigner, busy: this.busy, onOpened: event => {
|
|
841
1022
|
this.handleOpened.bind(this)(event);
|
|
842
1023
|
}, onAddParticipant: event => this.handleOpenNewWitness(event) }));
|
|
843
|
-
})), h("div", { key: '
|
|
1024
|
+
})), h("div", { key: '8ac7ff1344159ac1b79a3534cbfd62cac5de020c', class: "ls-dv-add-participant-button" }, h("ls-add-new-button", { key: 'f7167d90e5a9c956d24756a9af01edc2622a2a1e', text: dvI18n.t('participants.addparticipant'), icon: "user-add-icon", loading: this.addingParticipant, disabled: this.addingParticipant, onClick: () => {
|
|
844
1025
|
if (this.addingParticipant)
|
|
845
1026
|
return;
|
|
846
1027
|
this.addingParticipant = true;
|
|
847
1028
|
this.addParticipant.emit({ type: 'SIGNER' });
|
|
848
|
-
} })), h("slot", { key: '
|
|
1029
|
+
} })), h("slot", { key: 'bff570db0baa3e3ce8f5a853fcc8a4d664a0e1f4' })));
|
|
849
1030
|
}
|
|
850
1031
|
static get watchers() { return {
|
|
851
1032
|
"template": ["templateChanged"]
|
|
@@ -925,7 +1106,7 @@ const LsRecipientCard = class {
|
|
|
925
1106
|
const recipientFields = this.template.elementConnection.templateElements.filter(f => f.signer === this.recipient.signerIndex) || [];
|
|
926
1107
|
const recipientSignatures = recipientFields.filter(f => f.elementType === 'signature' || f.elementType === 'auto sign');
|
|
927
1108
|
const dropdownsMissingOptions = recipientFields.filter(f => f.validation === 20 && (!f.options || f.options.length === 0));
|
|
928
|
-
return (h(Host, { key: '
|
|
1109
|
+
return (h(Host, { key: '2b15735e8a21fc48d7b1b99360a8881f69cdefcf' }, h("div", { key: 'a50e547823e09c67ed33dfb606b8dad5d3ac2099', ref: el => (this.cardRef = el), class: `ls-dv-participant-card ls-dv-top-card ls-dv-full-card ${this.activeRecipient === this.recipient.signerIndex ? 'ls-dv-expanded' : ''}`, style: {
|
|
929
1110
|
background: defaultRolePalette[this.recipient?.signerIndex % 100].s10,
|
|
930
1111
|
border: `1px ${this.recipient.roleType === 'WITNESS' ? 'dashed' : 'solid'} ${defaultRolePalette[this.recipient?.signerIndex % 100].s60}`,
|
|
931
1112
|
outline: `${this.recipient.signerIndex === this.activeRecipient ? '4px solid ' + defaultRolePalette[this.recipient?.signerIndex % 100].s40 : 'none'}`,
|
|
@@ -937,14 +1118,14 @@ const LsRecipientCard = class {
|
|
|
937
1118
|
this.setIsHovered(true);
|
|
938
1119
|
}, onMouseLeave: () => {
|
|
939
1120
|
this.setIsHovered(false);
|
|
940
|
-
} }, h("div", { key: '
|
|
1121
|
+
} }, h("div", { key: 'abaec29894217fb06f9c49f299cc2f238bf7cb1d', class: 'ls-dv-participant-card-inner' }, h("div", { key: '2262c11789482158691c3a6c8a3af5fa8540c317', class: 'ls-dv-participant-card-top-items' }, h("div", { key: 'ce802ea653ee5d42df6c4f0e48a9dd0fbbe313e6', class: 'ls-dv-role-label', style: {
|
|
941
1122
|
background: defaultRolePalette[this.recipient?.signerIndex % 100].s20,
|
|
942
1123
|
color: defaultRolePalette[this.recipient?.signerIndex % 100].s90,
|
|
943
|
-
} }, h("ls-icon", { key: '
|
|
1124
|
+
} }, h("ls-icon", { key: '907ebb242632b9db92e4bc4aadd5b03abe0d69a0', name: this.recipient?.roleType === 'APPROVER' ? 'check-circle-icon' : this.recipient?.roleType === 'WITNESS' ? 'eye-icon' : 'signature-icon', size: 16 }), dvI18n.t(`participants.${(this.recipient?.roleType || 'SIGNER').toLowerCase()}`)), h("ls-icon", { key: 'f0a4590e6ae9226e569b066d999099c1ad1e04bf', name: "cursor-click-icon", size: 16, customStyle: { color: defaultRolePalette[this.recipient?.signerIndex % 100].s70 }, solid: true, style: { display: this.isHovered && this.recipient.signerIndex !== this.activeRecipient ? 'block' : 'none' } }), h("div", { key: '213cc1fb000bfd8c7c831a0d49679a3813785cbd', class: "ls-dv-dot", style: { display: (!this.isHovered || this.recipient.signerIndex === this.activeRecipient) && this.validationErrors.filter(v => v?.signerIndex === this.recipient.signerIndex).length > 0 ? 'block' : 'none' } })), h("div", { key: '7367718a28bdfc841c58b914c27855baeb7dc9b9', class: 'ls-dv-participant-card-text' }, h("p", { key: '7bc8be943a1f572031564a3a15280f9a8ab38b78', class: "ls-dv-participant-text-description", style: {
|
|
944
1125
|
color: defaultRolePalette[this.recipient?.signerIndex % 100].s100,
|
|
945
|
-
} }, this.recipient?.previousRecipientDecides ? dvI18n.t('common.tobedecided') : this.recipient?.firstName + ' ' + this.recipient?.lastName), h("p", { key: '
|
|
1126
|
+
} }, this.recipient?.previousRecipientDecides ? dvI18n.t('common.tobedecided') : this.recipient?.firstName + ' ' + this.recipient?.lastName), h("p", { key: '7607df2614795d6d7c7d0cdf035675b8d2057402', class: "ls-dv-participant-text-type", style: {
|
|
946
1127
|
color: defaultRolePalette[this.recipient?.signerIndex % 100].s80,
|
|
947
|
-
} }, this.recipient?.previousRecipientDecides ? dvI18n.t('common.previousrecipientdecidesdetails') : this.recipient.email)), h("div", { key: '
|
|
1128
|
+
} }, this.recipient?.previousRecipientDecides ? dvI18n.t('common.previousrecipientdecidesdetails') : this.recipient.email)), h("div", { key: '1649a45afade6a92850abde9701a841cad2e1201', class: "ls-dv-fields-box", style: { display: this.recipient.signerIndex === this.activeRecipient ? 'flex' : 'hidden' } }, this.recipient.signerIndex > 0 && this.showTool('signature') && this.recipient?.roleType !== 'APPROVER' && (h("ls-toolbox-field", { key: 'c52dc182e49dc85df78481400d3bb28bc78aef54', 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.recipient.signerIndex, redDot: recipientSignatures.length === 0 })), this.recipient.signerIndex === 0 && this.showTool('auto sign') && (h("ls-toolbox-field", { key: '2606ef2f1d56ca6421c245c28399988304222f9d', 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.recipient.signerIndex })), this.showTool('text') && (h("ls-toolbox-field", { key: '002511c7a028a808528b395ea70f6e1b4e89d505', 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.recipient.signerIndex })), this.recipient.signerIndex > 0 && this.showTool('signing date') && (h("ls-toolbox-field", { key: '19c92244a0723c53eba980de6aaec2428e781a8d', 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.recipient.signerIndex })), this.showTool('date') && (h("ls-toolbox-field", { key: '44526da310ee5c0c22619731e88b58f0ae49b66b', 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.recipient.signerIndex })), this.showTool('email') && (h("ls-toolbox-field", { key: 'c57f347a104117e4fa77381522136a85dcb61df8', 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.recipient.signerIndex })), this.showTool('initials') && (h("ls-toolbox-field", { key: '9253d2459b96357e46c342609daa86b9fcfd7dc9', 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.recipient.signerIndex })), this.showTool('number') && (h("ls-toolbox-field", { key: '1e09c4aba31141ec004a4cc0065355c99183d4a3', 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.recipient.signerIndex })), this.showTool('dropdown') && (h("ls-toolbox-field", { key: 'a77bbf85c799c3c05cf1aa261a982482f26bf0ab', 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.recipient.signerIndex, redDot: dropdownsMissingOptions.length > 0 })), this.showTool('checkbox') && (h("ls-toolbox-field", { key: '5a48e184df0cefb048a09344cad431729f201a68', 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.recipient.signerIndex })), this.recipient.signerIndex > 0 && this.showTool('regex') && (h("ls-toolbox-field", { key: '528152453c937c3e844aa7a59625fc0833e8ac2e', 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.recipient.signerIndex })), this.recipient.signerIndex > 0 && this.showTool('file') && (h("ls-toolbox-field", { key: '94f0104ab9440e433fcdb3ce0eaaca41c0ba1027', 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.recipient.signerIndex })), this.recipient.signerIndex > 0 && this.showTool('drawn') && (h("ls-toolbox-field", { key: '89a41eaf95b0ce30b2aa4becbc39c0fb032cf42e', 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.recipient.signerIndex }))))), h("slot", { key: '661d1fd6fe025e7874a96f6990ead9b8be3bd561' }), h("ls-tooltip", { key: 'bbab5f89d3a7a91d97bf7246b184921827761dc7', tooltipId: "ls-dv-tooltip" })));
|
|
948
1129
|
}
|
|
949
1130
|
static get watchers() { return {
|
|
950
1131
|
"activeRecipient": ["handleExpandCollapse"]
|
|
@@ -959,7 +1140,7 @@ const LsRecipientManager = class {
|
|
|
959
1140
|
registerInstance(this, hostRef);
|
|
960
1141
|
}
|
|
961
1142
|
render() {
|
|
962
|
-
return (h(Host, { key: '
|
|
1143
|
+
return (h(Host, { key: '2501a55995734b9ab60f33c837e147af181c2719' }, h("div", { key: 'f9a30b0c7fdbc246974d330451c91ffc495ff682', class: 'ls-dv-editor-infobox' }, h("h2", { key: '7b1b4c03a5ca273a0fe330d6a69452d7ac5ed3bc', class: "ls-dv-toolbox-section-title" }, dvI18n.t('recipients.title')), h("p", { key: 'd5f39396d90ef4c94797149ad246112f544ed36a', class: "ls-dv-toolbox-section-description" }, dvI18n.t('recipients.description'))), h("slot", { key: 'f88536575baf3070d3be49142469adfa4eb76212' })));
|
|
963
1144
|
}
|
|
964
1145
|
};
|
|
965
1146
|
LsRecipientManager.style = lsRecipientManagerCss();
|
|
@@ -978,7 +1159,7 @@ const LsValidationManager = class {
|
|
|
978
1159
|
validationErrors;
|
|
979
1160
|
selectFields;
|
|
980
1161
|
render() {
|
|
981
|
-
return (h(Host, { key: '
|
|
1162
|
+
return (h(Host, { key: '64d6c0e20ecefc990d2065067b261ded4d3ff0d0' }, h("div", { key: '4f2cbfb8d0a2bfc5e8744dc013ec670b89a769df' }, h("div", { key: '1c0852a2cdd16fb99207d81f2bddf5190f0d6e43' }, h("div", { key: '0ae74a2183897a28f79acc9243b547ac9e0811bc', class: 'ls-dv-validation-section-title' }, dvI18n.t('common.actionrequired')), h("p", { key: '5c1458cbab39ccf0fc6fb09778a18958236ae315', class: "ls-dv-toolbox-section-description" }, dvI18n.t('validation.description'))), this.validationErrors && this.validationErrors.map((field, idx) => {
|
|
982
1163
|
const signerIndex = field?.role?.signerIndex ? field?.role?.signerIndex % 100 : null;
|
|
983
1164
|
const pallette = defaultRolePalette[signerIndex || field?.element?.signer || 0];
|
|
984
1165
|
return (h("div", { key: idx, class: 'ls-dv-required-field', style: {
|
|
@@ -994,7 +1175,7 @@ const LsValidationManager = class {
|
|
|
994
1175
|
this.selectFields.emit([field.element]);
|
|
995
1176
|
}
|
|
996
1177
|
} }, h("div", { class: 'ls-dv-required-field-items-left' }, h("div", { class: 'ls-dv-dot', style: { background: pallette.s60 } }), field?.role && (h("div", { class: 'ls-dv-required-field-items-left' }, h("p", { style: { color: pallette.s80 } }, field.role?.name || `Signer ${field?.role?.signerIndex + 1}`), h("div", { class: 'ls-dv-role-label', style: { background: pallette.s30, color: pallette.s70 } }, field.role?.roleType ? dvI18n.t(`participants.${field.role.roleType.toLowerCase()}`) : `Signer ${field.role?.signerIndex + 1}`))), field?.element && (h(h.Fragment, null, 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: field.element.signer }), h("p", { style: { color: pallette.s80 } }, field.role?.name || `${field.element.formElementType} ${field?.element?.label + 1}`), h("div", { class: 'ls-dv-role-label', style: { background: pallette.s30, color: pallette.s70 } }, field.description))))));
|
|
997
|
-
})), h("slot", { key: '
|
|
1178
|
+
})), h("slot", { key: '4bcd057f196dd0995210d07a9d846fa32aabe674' })));
|
|
998
1179
|
}
|
|
999
1180
|
};
|
|
1000
1181
|
LsValidationManager.style = lsValidationManagerCss();
|
|
@@ -1033,7 +1214,7 @@ const LsValidationTag = class {
|
|
|
1033
1214
|
document.removeEventListener('mousedown', this.handleClickOutside);
|
|
1034
1215
|
}
|
|
1035
1216
|
render() {
|
|
1036
|
-
return (h(Host, { key: '
|
|
1217
|
+
return (h(Host, { key: '34c496f90febbfb7bd9318831ff1b807092d0182', ref: el => (this.el = el) }, this.type === 'compose' ? (h("div", { class: `ls-dv-valid-label ls-dv-compose ${this.validationErrors.length === 0 ? 'ls-dv-valid' : 'ls-dv-invalid'}`, onClick: this.validationErrors.length && (() => (this.isExpanded = !this.isExpanded)) }, this.validationErrors.length > 0 && h("div", { class: "ls-dv-field-counter ls-dv-compose" }, this.validationErrors.length), this.validationErrors.length === 0 ? dvI18n.t('common.ready') : dvI18n.t('common.required'), this.validationErrors.length > 0 && h("ls-icon", { name: "cursor-click-icon", solid: true, size: 16, customStyle: { color: 'var(--red-70, #DC2721);' } }), this.validationErrors.length === 0 && h("ls-icon", { name: "check-icon", solid: true, size: 16, customStyle: { marginRight: '-0.125rem' } }))) : (h("div", { class: `ls-dv-valid-label-wrapper`, onClick: () => (this.isExpanded = !this.isExpanded) }, h("div", { class: `ls-dv-valid-label-icon-only ls-dv-default ${this.validationErrors.length === 0 ? 'ls-dv-valid' : 'ls-dv-invalid'}` }, h("ls-icon", { name: this.validationErrors.length > 0 ? 'clipboard-list-icon' : 'check-icon', size: 20 })), this.validationErrors.length > 0 && h("div", { class: "ls-dv-field-counter ls-field-counter-floating ls-dv-default" }, this.validationErrors.length), this.validationErrors.length > 0 && this.showDropDown && (h("ls-icon", { name: this.isExpanded ? 'chevron-up-icon' : 'chevron-down-icon', customStyle: { color: 'var(--gray-70, #4B5563)', marginRight: '0.25rem' } })))), this.isExpanded && this.validationErrors.length !== 0 && this.showDropDown && this.type !== 'compose' && (h("div", { key: '96853488d59d0d483c3005528928a1323854300b', class: 'ls-dv-field-dropdown', style: { top: '3.5rem' } }, (() => {
|
|
1037
1218
|
const signatureErrors = this.validationErrors.filter(f => f?.type === 'signature' || (f?.role && !f?.element && !f?.type));
|
|
1038
1219
|
const elementErrors = this.validationErrors.filter(f => f?.type === 'options' || (f?.element && !f?.type));
|
|
1039
1220
|
const valueErrors = this.validationErrors.filter(f => f?.type === 'value');
|
|
@@ -1094,7 +1275,7 @@ const LsValidationTag = class {
|
|
|
1094
1275
|
} }, h("div", { class: 'ls-dv-required-field-items-left' }, h("div", { class: 'ls-dv-dot', style: { background: pallette.s60 } }), h("div", { class: 'ls-dv-required-field-items-left' }, h("p", { style: { color: pallette.s80 } }, field.title), h("ls-label", { text: field.description, colour: pallette.description, type: "low", size: "sm" })))));
|
|
1095
1276
|
}))),
|
|
1096
1277
|
];
|
|
1097
|
-
})())), this.isExpanded && this.validationErrors.length === 0 && this.type !== 'compose' && this.showDropDown && (h("div", { key: '
|
|
1278
|
+
})())), this.isExpanded && this.validationErrors.length === 0 && this.type !== 'compose' && this.showDropDown && (h("div", { key: '96bbd2873e6e99d2552f0811067d0c101a2a02ae', class: 'ls-dv-field-dropdown ls-dv-field-dropdown-success', style: { top: '3.5rem' } }, h("div", { key: '1657a1d972e3b649de49c864117b1fd47119b7a4', class: "ls-dv-dropdown-success-icon-outer" }, h("div", { key: '4e32de113393f47e0d11050d40f4e0af1443c7b3', class: "ls-dv-dropdown-success-icon-inner" }, h("ls-icon", { key: '844268c4ac5e6b1a0795c84551842f5e2a3ddd5a', name: "check-icon", solid: true, size: 28 }))), h("div", { key: 'ab7169b5f10aa3181a5bb83ef19784e64c4bffa5', class: 'ls-dv-dropdown-header' }, h("h2", { key: '44107f8ba9e0decbd6746580147e7dbd22dfbcf6' }, dvI18n.t('common.templatereadytosend')), h("p", { key: '2d9d900ffc750b850c936fae73c6fb00cb1905f2' }, dvI18n.t('common.allfieldsplaced'))))), this.isExpanded && this.validationErrors.length !== 0 && this.showDropDown && this.type === 'compose' && (h("div", { key: '81925942a10244e9b2bf4c3c2f1742cb8ec30792', class: 'ls-dv-field-dropdown ls-dv-compose' }, (() => {
|
|
1098
1279
|
const signatureErrors = this.validationErrors.filter(f => f?.type === 'signature' || (f?.role && !f?.element && !f?.type));
|
|
1099
1280
|
const elementErrors = this.validationErrors.filter(f => f?.type === 'options' || (f?.element && !f?.type));
|
|
1100
1281
|
const valueErrors = this.validationErrors.filter(f => f?.type === 'value');
|