legalesign-document-viewer 0.1.0 → 0.1.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/index-DqDUg8D7.js +1950 -0
- package/dist/cjs/index-DqDUg8D7.js.map +1 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/ls-document-options_35.cjs.entry.js +33247 -0
- package/dist/cjs/ls-document-options_35.cjs.entry.js.map +1 -0
- package/dist/cjs/ls-document-viewer.cjs.js +27 -0
- package/dist/cjs/ls-document-viewer.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +46 -0
- package/dist/collection/components/interfaces/IToolboxField.js +1 -0
- package/dist/collection/components/interfaces/IToolboxField.js.map +1 -0
- package/dist/collection/components/ls-document-options/ls-document-options.css +334 -0
- package/dist/collection/components/ls-document-options/ls-document-options.js +61 -0
- package/dist/collection/components/ls-document-options/ls-document-options.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/LsDocumentAdapter.js +83 -0
- package/dist/collection/components/ls-document-viewer/adapter/LsDocumentAdapter.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/elementActions.js +72 -0
- package/dist/collection/components/ls-document-viewer/adapter/elementActions.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/parameters.js +16 -0
- package/dist/collection/components/ls-document-viewer/adapter/parameters.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/roleActions.js +53 -0
- package/dist/collection/components/ls-document-viewer/adapter/roleActions.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/templateActions.js +87 -0
- package/dist/collection/components/ls-document-viewer/adapter/templateActions.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/defaultPalette.js +22 -0
- package/dist/collection/components/ls-document-viewer/defaultPalette.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/editorCalculator.js +122 -0
- package/dist/collection/components/ls-document-viewer/editorCalculator.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/editorUtils.js +168 -0
- package/dist/collection/components/ls-document-viewer/editorUtils.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/keyHandlers.js +61 -0
- package/dist/collection/components/ls-document-viewer/keyHandlers.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.css +586 -0
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js +1018 -0
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/mouseHandlers.js +224 -0
- package/dist/collection/components/ls-document-viewer/mouseHandlers.js.map +1 -0
- package/dist/collection/components/ls-editor-field/ls-editor-field.css +73 -0
- package/dist/collection/components/ls-editor-field/ls-editor-field.js +292 -0
- package/dist/collection/components/ls-editor-field/ls-editor-field.js.map +1 -0
- package/dist/collection/components/ls-editor-table/ls-editor-table.css +16 -0
- package/dist/collection/components/ls-editor-table/ls-editor-table.js +70 -0
- package/dist/collection/components/ls-editor-table/ls-editor-table.js.map +1 -0
- package/dist/collection/components/ls-feature-column/ls-feature-column.css +23 -0
- package/dist/collection/components/ls-feature-column/ls-feature-column.js +78 -0
- package/dist/collection/components/ls-feature-column/ls-feature-column.js.map +1 -0
- package/dist/collection/components/ls-field-alignment/ls-field-alignment.css +300 -0
- package/dist/{ls-document-viewer/ls-field-alignment.entry.js → collection/components/ls-field-alignment/ls-field-alignment.js} +90 -18
- package/dist/collection/components/ls-field-alignment/ls-field-alignment.js.map +1 -0
- package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.css +353 -0
- package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js +120 -0
- package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js.map +1 -0
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.css +309 -0
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.js +173 -0
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.js.map +1 -0
- package/dist/collection/components/ls-field-format/ls-field-format.css +291 -0
- package/dist/collection/components/ls-field-format/ls-field-format.js +126 -0
- package/dist/collection/components/ls-field-format/ls-field-format.js.map +1 -0
- package/dist/collection/components/ls-field-placement/ls-field-placement.css +352 -0
- package/dist/collection/components/ls-field-placement/ls-field-placement.js +120 -0
- package/dist/collection/components/ls-field-placement/ls-field-placement.js.map +1 -0
- package/dist/collection/components/ls-field-properties/ls-field-properties.css +285 -0
- package/dist/collection/components/ls-field-properties/ls-field-properties.js +76 -0
- package/dist/collection/components/ls-field-properties/ls-field-properties.js.map +1 -0
- package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.css +284 -0
- package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js +48 -0
- package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js.map +1 -0
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.css +295 -0
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js +48 -0
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js.map +1 -0
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.css +284 -0
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js +48 -0
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js.map +1 -0
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.css +283 -0
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js +48 -0
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js.map +1 -0
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.css +295 -0
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js +48 -0
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js.map +1 -0
- package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.css +283 -0
- package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js +48 -0
- package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js.map +1 -0
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.css +283 -0
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js +48 -0
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js.map +1 -0
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.css +283 -0
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js +48 -0
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js.map +1 -0
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.css +418 -0
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js +69 -0
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js.map +1 -0
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.css +284 -0
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js +48 -0
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js.map +1 -0
- package/dist/collection/components/ls-field-size/ls-field-size.css +301 -0
- package/dist/collection/components/ls-field-size/ls-field-size.js +105 -0
- package/dist/collection/components/ls-field-size/ls-field-size.js.map +1 -0
- package/dist/collection/components/ls-formfield/inputs/ls-number-input/ls-number-input.css +273 -0
- package/dist/collection/components/ls-formfield/inputs/ls-number-input/ls-number-input.js +336 -0
- package/dist/collection/components/ls-formfield/inputs/ls-number-input/ls-number-input.js.map +1 -0
- package/dist/collection/components/ls-formfield/inputs/ls-radio-input/ls-radio-input.css +69 -0
- package/dist/collection/components/ls-formfield/inputs/ls-radio-input/ls-radio-input.js +173 -0
- package/dist/collection/components/ls-formfield/inputs/ls-radio-input/ls-radio-input.js.map +1 -0
- package/dist/collection/components/ls-formfield/inputs/ls-select-input/ls-select-input.css +228 -0
- package/dist/collection/components/ls-formfield/inputs/ls-select-input/ls-select-input.js +288 -0
- package/dist/collection/components/ls-formfield/inputs/ls-select-input/ls-select-input.js.map +1 -0
- package/dist/collection/components/ls-formfield/inputs/ls-text-input/ls-text-input.css +218 -0
- package/dist/collection/components/ls-formfield/inputs/ls-text-input/ls-text-input.js +336 -0
- package/dist/collection/components/ls-formfield/inputs/ls-text-input/ls-text-input.js.map +1 -0
- package/dist/collection/components/ls-formfield/inputs/ls-textarea-input/ls-textarea-input.css +208 -0
- package/dist/collection/components/ls-formfield/inputs/ls-textarea-input/ls-textarea-input.js +326 -0
- package/dist/collection/components/ls-formfield/inputs/ls-textarea-input/ls-textarea-input.js.map +1 -0
- package/dist/collection/components/ls-formfield/ls-formfield.css +98 -0
- package/dist/collection/components/ls-formfield/ls-formfield.js +528 -0
- package/dist/collection/components/ls-formfield/ls-formfield.js.map +1 -0
- package/dist/collection/components/ls-icon/icons.js +6619 -0
- package/dist/collection/components/ls-icon/icons.js.map +1 -0
- package/dist/collection/components/ls-icon/ls-icon.js +125 -0
- package/dist/collection/components/ls-icon/ls-icon.js.map +1 -0
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.css +413 -0
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.js +178 -0
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.js.map +1 -0
- package/dist/collection/components/ls-participant-select/ls-participant-select.css +405 -0
- package/dist/collection/components/ls-participant-select/ls-participant-select.js +189 -0
- package/dist/collection/components/ls-participant-select/ls-participant-select.js.map +1 -0
- package/dist/collection/components/ls-statusbar/ls-statusbar.css +198 -0
- package/dist/collection/components/ls-statusbar/ls-statusbar.js +106 -0
- package/dist/collection/components/ls-statusbar/ls-statusbar.js.map +1 -0
- package/dist/collection/components/ls-toggle/ls-toggle.css +69 -0
- package/dist/collection/components/ls-toggle/ls-toggle.js +19 -0
- package/dist/collection/components/ls-toggle/ls-toggle.js.map +1 -0
- package/dist/collection/components/ls-toolbar/ls-toolbar.css +303 -0
- package/dist/collection/components/ls-toolbar/ls-toolbar.js +169 -0
- package/dist/collection/components/ls-toolbar/ls-toolbar.js.map +1 -0
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.css +311 -0
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js +216 -0
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js.map +1 -0
- package/dist/collection/index.js +11 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/types/Icon.js +368 -0
- package/dist/collection/types/Icon.js.map +1 -0
- package/dist/collection/types/LSApiElement.js +2 -0
- package/dist/collection/types/LSApiElement.js.map +1 -0
- package/dist/collection/types/LSApiElementType.js +16 -0
- package/dist/collection/types/LSApiElementType.js.map +1 -0
- package/dist/collection/types/LSApiRole.js +2 -0
- package/dist/collection/types/LSApiRole.js.map +1 -0
- package/dist/collection/types/LSApiTemplate.js +2 -0
- package/dist/collection/types/LSApiTemplate.js.map +1 -0
- package/dist/collection/types/LSMutateEvent.js +2 -0
- package/dist/collection/types/LSMutateEvent.js.map +1 -0
- package/dist/collection/types/RoleColor.js +2 -0
- package/dist/collection/types/RoleColor.js.map +1 -0
- package/dist/collection/types/ValidationType.js +2 -0
- package/dist/collection/types/ValidationType.js.map +1 -0
- package/dist/collection/utils/utils.js +4 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/index.js +10 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/ls-document-options.js +9 -0
- package/dist/components/ls-document-options.js.map +1 -0
- package/dist/components/ls-document-viewer.js +24979 -0
- package/dist/components/ls-document-viewer.js.map +1 -0
- package/dist/components/ls-editor-field.js +9 -0
- package/dist/components/ls-editor-field.js.map +1 -0
- package/dist/components/ls-editor-table.js +9 -0
- package/dist/components/ls-editor-table.js.map +1 -0
- package/dist/components/ls-feature-column.js +9 -0
- package/dist/components/ls-feature-column.js.map +1 -0
- package/dist/components/ls-field-alignment.js +9 -0
- package/dist/components/ls-field-alignment.js.map +1 -0
- package/dist/components/ls-field-dimensions.js +9 -0
- package/dist/components/ls-field-dimensions.js.map +1 -0
- package/dist/components/ls-field-distribute.js +9 -0
- package/dist/components/ls-field-distribute.js.map +1 -0
- package/dist/components/ls-field-format.js +9 -0
- package/dist/components/ls-field-format.js.map +1 -0
- package/dist/components/ls-field-placement.d.ts +11 -0
- package/dist/components/ls-field-placement.js +9 -0
- package/dist/components/ls-field-placement.js.map +1 -0
- package/dist/components/ls-field-properties-autosign.d.ts +11 -0
- package/dist/components/ls-field-properties-autosign.js +9 -0
- package/dist/components/ls-field-properties-autosign.js.map +1 -0
- package/dist/components/ls-field-properties-date.js +9 -0
- package/dist/components/ls-field-properties-date.js.map +1 -0
- package/dist/components/ls-field-properties-email.d.ts +11 -0
- package/dist/components/ls-field-properties-email.js +9 -0
- package/dist/components/ls-field-properties-email.js.map +1 -0
- package/dist/components/ls-field-properties-file.d.ts +11 -0
- package/dist/components/ls-field-properties-file.js +9 -0
- package/dist/components/ls-field-properties-file.js.map +1 -0
- package/dist/components/ls-field-properties-general.js +9 -0
- package/dist/components/ls-field-properties-general.js.map +1 -0
- package/dist/components/ls-field-properties-image.d.ts +11 -0
- package/dist/components/ls-field-properties-image.js +9 -0
- package/dist/components/ls-field-properties-image.js.map +1 -0
- package/dist/components/ls-field-properties-multiple.js +9 -0
- package/dist/components/ls-field-properties-multiple.js.map +1 -0
- package/dist/components/ls-field-properties-number.js +9 -0
- package/dist/components/ls-field-properties-number.js.map +1 -0
- package/dist/components/ls-field-properties-signature.js +9 -0
- package/dist/components/ls-field-properties-signature.js.map +1 -0
- package/dist/components/ls-field-properties-text.js +9 -0
- package/dist/components/ls-field-properties-text.js.map +1 -0
- package/dist/components/ls-field-properties.js +9 -0
- package/dist/components/ls-field-properties.js.map +1 -0
- package/dist/components/ls-field-size.js +9 -0
- package/dist/components/ls-field-size.js.map +1 -0
- package/dist/components/ls-formfield.js +9 -0
- package/dist/components/ls-formfield.js.map +1 -0
- package/dist/components/ls-icon.js +9 -0
- package/dist/components/ls-icon.js.map +1 -0
- package/dist/components/ls-number-input.js +9 -0
- package/dist/components/ls-number-input.js.map +1 -0
- package/dist/components/ls-participant-manager.js +9 -0
- package/dist/components/ls-participant-manager.js.map +1 -0
- package/dist/components/ls-participant-select.js +9 -0
- package/dist/components/ls-participant-select.js.map +1 -0
- package/dist/components/ls-radio-input.js +9 -0
- package/dist/components/ls-radio-input.js.map +1 -0
- package/dist/components/ls-select-input.js +9 -0
- package/dist/components/ls-select-input.js.map +1 -0
- package/dist/components/ls-statusbar.js +9 -0
- package/dist/components/ls-statusbar.js.map +1 -0
- package/dist/components/ls-text-input.js +9 -0
- package/dist/components/ls-text-input.js.map +1 -0
- package/dist/components/ls-textarea-input.js +9 -0
- package/dist/components/ls-textarea-input.js.map +1 -0
- package/dist/components/ls-toggle.d.ts +11 -0
- package/dist/components/ls-toggle.js +9 -0
- package/dist/components/ls-toggle.js.map +1 -0
- package/dist/components/ls-toolbar.js +9 -0
- package/dist/components/ls-toolbar.js.map +1 -0
- package/dist/components/ls-toolbox-field.js +9 -0
- package/dist/components/ls-toolbox-field.js.map +1 -0
- package/dist/components/p-8QmwtD0L.js +160 -0
- package/dist/components/p-8QmwtD0L.js.map +1 -0
- package/dist/components/p-B1Q1LddX.js +49 -0
- package/dist/components/p-B1Q1LddX.js.map +1 -0
- package/dist/components/p-B1X25Dz_.js +49 -0
- package/dist/components/p-B1X25Dz_.js.map +1 -0
- package/dist/components/p-B9qKX3S0.js +107 -0
- package/dist/components/p-B9qKX3S0.js.map +1 -0
- package/dist/components/p-BI9SKPKN.js +51 -0
- package/dist/components/p-BI9SKPKN.js.map +1 -0
- package/dist/components/p-BNKSb1yR.js +49 -0
- package/dist/components/p-BNKSb1yR.js.map +1 -0
- package/dist/components/p-BlTHDG0s.js +77 -0
- package/dist/components/p-BlTHDG0s.js.map +1 -0
- package/dist/components/p-BxXqIouU.js +49 -0
- package/dist/components/p-BxXqIouU.js.map +1 -0
- package/dist/components/p-C00GqV9f.js +26 -0
- package/dist/components/p-C00GqV9f.js.map +1 -0
- package/dist/components/p-C93Q3D_9.js +49 -0
- package/dist/components/p-C93Q3D_9.js.map +1 -0
- package/dist/components/p-C9AqDCzm.js +58 -0
- package/dist/components/p-C9AqDCzm.js.map +1 -0
- package/dist/{ls-document-viewer/ls-select-input.entry.js → components/p-CEGQ-SIb.js} +45 -11
- package/dist/components/p-CEGQ-SIb.js.map +1 -0
- package/dist/components/p-CF583nkL.js +99 -0
- package/dist/components/p-CF583nkL.js.map +1 -0
- package/dist/components/p-CTraMHE_.js +49 -0
- package/dist/components/p-CTraMHE_.js.map +1 -0
- package/dist/components/p-CgRZ91kw.js +124 -0
- package/dist/components/p-CgRZ91kw.js.map +1 -0
- package/dist/{ls-document-viewer/clsx-ChV9xqsO.js → components/p-ChV9xqsO.js} +2 -2
- package/dist/components/p-ChV9xqsO.js.map +1 -0
- package/dist/{ls-document-viewer/editorUtils-CWtBGPrf.js → components/p-CjicL5jA.js} +13 -8
- package/dist/components/p-CjicL5jA.js.map +1 -0
- package/dist/components/p-CnIzN0a9.js +49 -0
- package/dist/components/p-CnIzN0a9.js.map +1 -0
- package/dist/components/p-CpK4mw5O.js +60 -0
- package/dist/components/p-CpK4mw5O.js.map +1 -0
- package/dist/components/p-Cs6tf1FE.js +34 -0
- package/dist/components/p-Cs6tf1FE.js.map +1 -0
- package/dist/components/p-Ct78kJaE.js +49 -0
- package/dist/components/p-Ct78kJaE.js.map +1 -0
- package/dist/components/p-D1o9mMCC.js +105 -0
- package/dist/components/p-D1o9mMCC.js.map +1 -0
- package/dist/components/p-D2smwTu5.js +82 -0
- package/dist/components/p-D2smwTu5.js.map +1 -0
- package/dist/components/p-D3GPRslH.js +138 -0
- package/dist/components/p-D3GPRslH.js.map +1 -0
- package/dist/{ls-document-viewer/ls-number-input.entry.js → components/p-D3p38qOI.js} +48 -11
- package/dist/components/p-D3p38qOI.js.map +1 -0
- package/dist/components/p-D4wPRNKc.js +86 -0
- package/dist/components/p-D4wPRNKc.js.map +1 -0
- package/dist/components/p-D7KC-w81.js +97 -0
- package/dist/components/p-D7KC-w81.js.map +1 -0
- package/dist/components/p-DC7lKZUf.js +49 -0
- package/dist/components/p-DC7lKZUf.js.map +1 -0
- package/dist/components/p-DTWaVEKo.js +149 -0
- package/dist/components/p-DTWaVEKo.js.map +1 -0
- package/dist/components/p-DjfDnBZ1.js +1720 -0
- package/dist/components/p-DjfDnBZ1.js.map +1 -0
- package/dist/{ls-document-viewer/ls-icon.entry.js → components/p-DtHDNV_x.js} +798 -4775
- package/dist/components/p-DtHDNV_x.js.map +1 -0
- package/dist/components/p-Dxupmj0q.js +63 -0
- package/dist/components/p-Dxupmj0q.js.map +1 -0
- package/dist/{ls-document-viewer/ls-textarea-input.entry.js → components/p-GHcj9VUq.js} +48 -11
- package/dist/components/p-GHcj9VUq.js.map +1 -0
- package/dist/{ls-document-viewer/ls-text-input.entry.js → components/p-IGbuOsUA.js} +49 -11
- package/dist/components/p-IGbuOsUA.js.map +1 -0
- package/dist/components/p-RFw2Bsri.js +72 -0
- package/dist/components/p-RFw2Bsri.js.map +1 -0
- package/dist/components/p-RoGGAmRf.js +57 -0
- package/dist/components/p-RoGGAmRf.js.map +1 -0
- package/dist/components/p-pHw5Xziq.js +154 -0
- package/dist/components/p-pHw5Xziq.js.map +1 -0
- package/dist/components/p-py-rQZsT.js +72 -0
- package/dist/components/p-py-rQZsT.js.map +1 -0
- package/dist/esm/index-BwkWPcyG.js +1940 -0
- package/dist/esm/index-BwkWPcyG.js.map +1 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/ls-document-options_35.entry.js +33211 -0
- package/dist/esm/ls-document-options_35.entry.js.map +1 -0
- package/dist/esm/ls-document-viewer.js +23 -0
- package/dist/esm/ls-document-viewer.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/ls-document-viewer/defaultPalette-C00GqV9f.js.map +1 -0
- package/dist/ls-document-viewer/editorUtils-DbS95k5h.js.map +1 -0
- package/dist/ls-document-viewer/index-Db-CNFwu.js.map +1 -0
- package/dist/ls-document-viewer/index.esm.js +1 -17
- package/dist/ls-document-viewer/ls-document-viewer.css +1 -0
- package/dist/ls-document-viewer/ls-document-viewer.entry.esm.js.map +1 -1
- package/dist/ls-document-viewer/ls-document-viewer.entry.js +4381 -145
- package/dist/ls-document-viewer/ls-document-viewer.entry.js.map +1 -1
- package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -49
- package/dist/ls-document-viewer/p-85c0f6fa.entry.js +4907 -0
- package/dist/ls-document-viewer/p-85c0f6fa.entry.js.map +1 -0
- package/dist/ls-document-viewer/p-BwkWPcyG.js +3 -0
- package/dist/ls-document-viewer/p-BwkWPcyG.js.map +1 -0
- package/dist/types/components/interfaces/IToolboxField.d.ts +3 -1
- package/dist/types/components/ls-document-viewer/adapter/LsDocumentAdapter.d.ts +15 -0
- package/dist/types/components/ls-document-viewer/adapter/elementActions.d.ts +4 -0
- package/dist/types/components/ls-document-viewer/adapter/parameters.d.ts +11 -0
- package/dist/types/components/ls-document-viewer/adapter/roleActions.d.ts +5 -0
- package/dist/types/components/ls-document-viewer/adapter/templateActions.d.ts +3 -0
- package/dist/types/components/ls-document-viewer/defaultPalette.d.ts +1 -2
- package/dist/types/components/ls-document-viewer/editorCalculator.d.ts +1 -1
- package/dist/types/components/ls-document-viewer/editorUtils.d.ts +2 -1
- package/dist/types/components/ls-document-viewer/ls-document-viewer.d.ts +60 -36
- package/dist/types/components/ls-document-viewer/mouseHandlers.d.ts +1 -0
- package/dist/types/components/ls-editor-field/ls-editor-field.d.ts +3 -2
- package/dist/types/components/ls-feature-column/ls-feature-column.d.ts +3 -3
- package/dist/types/components/ls-field-placement/ls-field-placement.d.ts +11 -0
- package/dist/types/components/ls-field-properties-autosign/ls-field-properties-autosign.d.ts +5 -0
- package/dist/types/components/ls-field-properties-email/ls-field-properties-email.d.ts +5 -0
- package/dist/types/components/ls-field-properties-file/ls-field-properties-file.d.ts +5 -0
- package/dist/types/components/ls-field-properties-image/ls-field-properties-image.d.ts +5 -0
- package/dist/types/components/ls-field-properties-signature/ls-field-properties-signature.d.ts +1 -0
- package/dist/types/components/ls-participant-manager/ls-participant-manager.d.ts +4 -3
- package/dist/types/components/ls-participant-select/ls-participant-select.d.ts +28 -0
- package/dist/types/components/ls-statusbar/ls-statusbar.d.ts +6 -6
- package/dist/types/components/ls-toggle/ls-toggle.d.ts +3 -0
- package/dist/types/components/ls-toolbar/ls-toolbar.d.ts +11 -7
- package/dist/types/components/ls-toolbox-field/ls-toolbox-field.d.ts +6 -1
- package/dist/types/components.d.ts +218 -24
- package/dist/types/types/Icon.d.ts +1 -0
- package/dist/types/types/LSApiElement.d.ts +2 -1
- package/dist/types/types/LSApiRole.d.ts +1 -0
- package/package.json +2 -2
- package/dist/ls-document-viewer/editorUtils-CWtBGPrf.js.map +0 -1
- package/dist/ls-document-viewer/index-Cjn1MNt-.js +0 -4334
- package/dist/ls-document-viewer/index-Cjn1MNt-.js.map +0 -1
- package/dist/ls-document-viewer/ls-document-options.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-document-options.entry.js +0 -29
- package/dist/ls-document-viewer/ls-document-options.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-editor-field.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-editor-field.entry.js +0 -120
- package/dist/ls-document-viewer/ls-editor-field.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-editor-table.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-editor-table.entry.js +0 -40
- package/dist/ls-document-viewer/ls-editor-table.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-feature-column.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-feature-column.entry.js +0 -26
- package/dist/ls-document-viewer/ls-feature-column.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-alignment.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-alignment.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-dimensions.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-dimensions.entry.js +0 -50
- package/dist/ls-document-viewer/ls-field-dimensions.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-distribute.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-distribute.entry.js +0 -100
- package/dist/ls-document-viewer/ls-field-distribute.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-format.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-format.entry.js +0 -41
- package/dist/ls-document-viewer/ls-field-format.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-properties-date.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-properties-date.entry.js +0 -19
- package/dist/ls-document-viewer/ls-field-properties-date.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-properties-general.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-properties-general.entry.js +0 -19
- package/dist/ls-document-viewer/ls-field-properties-general.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-properties-multiple.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-properties-multiple.entry.js +0 -19
- package/dist/ls-document-viewer/ls-field-properties-multiple.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-properties-number.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-properties-number.entry.js +0 -19
- package/dist/ls-document-viewer/ls-field-properties-number.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-properties-signature.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-properties-signature.entry.js +0 -19
- package/dist/ls-document-viewer/ls-field-properties-signature.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-properties-text.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-properties-text.entry.js +0 -19
- package/dist/ls-document-viewer/ls-field-properties-text.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-properties.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-properties.entry.js +0 -40
- package/dist/ls-document-viewer/ls-field-properties.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-size.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-field-size.entry.js +0 -33
- package/dist/ls-document-viewer/ls-field-size.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-formfield.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-formfield.entry.js +0 -59
- package/dist/ls-document-viewer/ls-formfield.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-icon.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-icon.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-number-input.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-number-input.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-participant-manager.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-participant-manager.entry.js +0 -59
- package/dist/ls-document-viewer/ls-participant-manager.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-participant-select.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-participant-select.entry.js +0 -18
- package/dist/ls-document-viewer/ls-participant-select.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-radio-input.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-radio-input.entry.js +0 -28
- package/dist/ls-document-viewer/ls-radio-input.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-select-input.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-select-input.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-statusbar.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-statusbar.entry.js +0 -52
- package/dist/ls-document-viewer/ls-statusbar.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-text-input.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-text-input.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-textarea-input.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-textarea-input.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-toolbar.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-toolbar.entry.js +0 -36
- package/dist/ls-document-viewer/ls-toolbar.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-toolbox-field.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/ls-toolbox-field.entry.js +0 -52
- package/dist/ls-document-viewer/ls-toolbox-field.entry.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elementActions.js","sourceRoot":"","sources":["../../../../src/components/ls-document-viewer/adapter/elementActions.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,MAAM,aAAa,GAAG,OAAO,CAAC,EAAE;IAC9B,OAAO;;;qBAGY,OAAO,CAAC,UAAU;YAC3B,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,EAAE;qBACD,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,WAAW,CAAC;;eAEzC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC;cAC9B,OAAO,CAAC,IAAI;oBACN,OAAO,CAAC,UAAU;kBACpB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC;kBAChC,OAAO,CAAC,QAAQ;kBAChB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC;oBAC9B,OAAO,CAAC,UAAU;oBAClB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC;eACvC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC;kBAC1B,OAAO,CAAC,QAAQ;iBACjB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC;qBAC3B,OAAO,CAAC,WAAW;oBACpB,OAAO,CAAC,UAAU;eACvB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC;eAC7B,IAAI,CAAC,SAAS,CAAC,OAAO,CA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AC;AACL,CAAC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC","sourcesContent":["// Construct all mutations for a template element.\nconst createElement = element => {\n return `\n mutation AddField {\n createTemplateElement(input: {\n templateId: \"${element.templateId}\", \n ax: ${element.ax}, \n ay: ${element.ay}, \n bx: ${element.bx}, \n by: ${element.by}, \n elementType: ${JSON.stringify(element.elementType)}, \n role: \"1\",\n label: ${JSON.stringify(element.label)}, \n page: ${element.page}, \n fieldOrder: ${element.fieldOrder}, \n fontName: ${JSON.stringify(element.fontName)}, \n fontSize: ${element.fontSize}, \n helpText: ${JSON.stringify(element.helpText)}, \n hideBorder: ${element.hideBorder}, \n logicGroup: ${JSON.stringify(element.logicGroup)}, \n mapTo: ${JSON.stringify(element.mapTo)}, \n optional: ${element.optional}, \n options: ${JSON.stringify(element.options)}, \n substantive: ${element.substantive}, \n validation: ${element.validation}, \n value: ${JSON.stringify(element.value)}, \n align: ${JSON.stringify(element.align)}, \n signer: ${element.signer}, \n logicAction: ${element.logicAction}, \n labelExtra: ${JSON.stringify(element.labelExtra)}})\n }`;\n};\n\n// Save any changes to an element\nconst updateElement = element => {\n return `mutation ChangeField {\n updateTemplateElement(input: {\n templateElementId: \"${element.id}\", \n ax: ${element.ax}, \n ay: ${element.ay}, \n bx: ${element.bx}, \n by: ${element.by}, \n elementType: ${JSON.stringify(element.elementType)}, \n label: ${JSON.stringify(element.label)}, \n page: ${element.page}, \n fieldOrder: ${element.fieldOrder ? element.fieldOrder : null}, \n fontName: ${JSON.stringify(element.fontName)}, \n fontSize: ${element.fontSize}, \n helpText: \"${element.helpText}\", \n hideBorder: ${element.hideBorder}, \n logicGroup: ${JSON.stringify(element.logicGroup)}, \n mapTo: \"${element.mapTo}\", \n optional: ${element.optional}, \n options: ${JSON.stringify(element.options)}, \n role: \"1\", \n substantive: ${element.substantive}, \n validation: ${element.validation === '0' ? 'null' : element.validation}, \n value: \"${element.value}\", \n align: \"${element.align}\", \n signer: ${element.signer}, \n logicAction: ${element.logicAction}, \n labelExtra: \"${element.labelExtra}\"})\n}`;\n};\n\n// Save any changes to an element\nconst deleteElement = obj => {\n return `mutation DeleteField {\n deleteTemplateElement(input: {\n templateElementId: \"${obj.id}\"})\n }`;\n};\n\nexport { createElement, updateElement, deleteElement };\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
////////////////////////////////////////////////////////////////////////
|
|
2
|
+
/// Parameters used by the default platform (valid for UK/EU processing)
|
|
3
|
+
/// https://docs.aws.amazon.com/appsync/latest/eventapi/event-api-websocket-protocol.html
|
|
4
|
+
////////////////////////////////////////////////////////////////////////
|
|
5
|
+
export const Parameters = {
|
|
6
|
+
endpoints: {
|
|
7
|
+
graphQL: "https://k2howlr3ynfy3lbx7oxz4qyrlq.appsync-api.eu-west-2.amazonaws.com/graphql",
|
|
8
|
+
wssHost: "dypxviim4zgwtpev7valhchaem.appsync-api.eu-west-2.amazonaws.com",
|
|
9
|
+
wssRealTime: 'wss://dypxviim4zgwtpev7valhchaem.appsync-realtime-api.eu-west-2.amazonaws.com/graphql'
|
|
10
|
+
},
|
|
11
|
+
buckets: {
|
|
12
|
+
region: "eu-west-2",
|
|
13
|
+
clearing: "lon-files-clearing",
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=parameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../../src/components/ls-document-viewer/adapter/parameters.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,wEAAwE;AACxE,yFAAyF;AACzF,wEAAwE;AACxE,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,SAAS,EAAE;QACT,OAAO,EACL,gFAAgF;QAClF,OAAO,EAAE,gEAAgE;QACzE,WAAW,EAAE,uFAAuF;KACrG;IACD,OAAO,EAAE;QACP,MAAM,EAAE,WAAW;QACnB,QAAQ,EAAE,oBAAoB;KAC/B;CACF,CAAC","sourcesContent":["////////////////////////////////////////////////////////////////////////\n/// Parameters used by the default platform (valid for UK/EU processing)\n/// https://docs.aws.amazon.com/appsync/latest/eventapi/event-api-websocket-protocol.html\n////////////////////////////////////////////////////////////////////////\nexport const Parameters = {\n endpoints: {\n graphQL:\n \"https://k2howlr3ynfy3lbx7oxz4qyrlq.appsync-api.eu-west-2.amazonaws.com/graphql\",\n wssHost: \"dypxviim4zgwtpev7valhchaem.appsync-api.eu-west-2.amazonaws.com\",\n wssRealTime: 'wss://dypxviim4zgwtpev7valhchaem.appsync-realtime-api.eu-west-2.amazonaws.com/graphql'\n },\n buckets: {\n region: \"eu-west-2\",\n clearing: \"lon-files-clearing\",\n },\n};\n\n"]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// Add a role
|
|
2
|
+
const createRole = (role) => {
|
|
3
|
+
const newParent = role?.signerParent ? `"${role.signerParent}"` : 'null';
|
|
4
|
+
return `
|
|
5
|
+
mutation AddRole {
|
|
6
|
+
createTemplateRole(input: {
|
|
7
|
+
templateId: "${role.templateId}"
|
|
8
|
+
signerIndex: ${role.signerIndex}
|
|
9
|
+
signerParent: ${newParent}
|
|
10
|
+
name: ${JSON.stringify(role.name)}
|
|
11
|
+
ordinal: ${role.ordinal}
|
|
12
|
+
roleType: ${role.roleType}
|
|
13
|
+
experience: "${role.experience}"
|
|
14
|
+
})
|
|
15
|
+
}`;
|
|
16
|
+
};
|
|
17
|
+
// Remove a role
|
|
18
|
+
const deleteRole = (role) => {
|
|
19
|
+
return `
|
|
20
|
+
mutation removeRole {
|
|
21
|
+
deleteTemplateRole(input: {
|
|
22
|
+
templateRoleId: "${role.id}"
|
|
23
|
+
})
|
|
24
|
+
}`;
|
|
25
|
+
};
|
|
26
|
+
// Save any changes to an role
|
|
27
|
+
const updateRole = (role) => {
|
|
28
|
+
const newParent = role?.signerParent ? `"${role.signerParent}"` : 'null';
|
|
29
|
+
return `
|
|
30
|
+
mutation updateRole {
|
|
31
|
+
updateTemplateRole(input: {
|
|
32
|
+
templateRoleId: "${role.id}"
|
|
33
|
+
signerIndex: ${role.signerIndex}
|
|
34
|
+
ordinal: ${role.ordinal}
|
|
35
|
+
signerParent: ${newParent}
|
|
36
|
+
name: ${JSON.stringify(role.name)}
|
|
37
|
+
roleType: ${role.roleType}
|
|
38
|
+
experience: "${role.experience}"
|
|
39
|
+
})
|
|
40
|
+
}`;
|
|
41
|
+
};
|
|
42
|
+
// swap two adjacent roles
|
|
43
|
+
const swapRoles = (roleId1, roleId2) => {
|
|
44
|
+
return `
|
|
45
|
+
mutation swapRole {
|
|
46
|
+
swapRoles(input: {
|
|
47
|
+
roleId1: "${roleId1}"
|
|
48
|
+
roleId2: "${roleId2}"
|
|
49
|
+
})
|
|
50
|
+
}`;
|
|
51
|
+
};
|
|
52
|
+
export { createRole, updateRole, deleteRole, swapRoles };
|
|
53
|
+
//# sourceMappingURL=roleActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roleActions.js","sourceRoot":"","sources":["../../../../src/components/ls-document-viewer/adapter/roleActions.ts"],"names":[],"mappings":"AACA,aAAa;AACb,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,EAAE;IAC1B,MAAM,SAAS,GAAG,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC;IACzE,OAAO;;;qBAGY,IAAI,CAAC,UAAU;uBACb,IAAI,CAAC,WAAW;wBACf,SAAS;gBACjB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;mBACtB,IAAI,CAAC,OAAO;oBACX,IAAI,CAAC,QAAQ;uBACV,IAAI,CAAC,UAAU;;IAElC,CAAA;AACJ,CAAC,CAAC;AAEF,gBAAgB;AAChB,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,EAAE;IAC1B,OAAO;;;2BAGkB,IAAI,CAAC,EAAE;;MAE5B,CAAA;AACN,CAAC,CAAC;AAEF,8BAA8B;AAC9B,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,EAAE;IAC1B,MAAM,SAAS,GAAG,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC;IACzE,OAAO;;;2BAGkB,IAAI,CAAC,EAAE;uBACX,IAAI,CAAC,WAAW;mBACpB,IAAI,CAAC,OAAO;wBACP,SAAS;gBACjB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;oBACrB,IAAI,CAAC,QAAQ;uBACV,IAAI,CAAC,UAAU;;MAEhC,CAAA;AACN,CAAC,CAAC;AAEF,0BAA0B;AAC1B,MAAM,SAAS,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE;IAErC,OAAO;;;oBAGW,OAAO;oBACP,OAAO;;MAErB,CAAC;AAEP,CAAC,CAAC;AAGF,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC","sourcesContent":["\n// Add a role\nconst createRole = (role) => {\n const newParent = role?.signerParent ? `\"${role.signerParent}\"` : 'null';\n return `\n mutation AddRole {\n createTemplateRole(input: {\n templateId: \"${role.templateId}\" \n signerIndex: ${role.signerIndex}\n signerParent: ${newParent}\n name: ${JSON.stringify(role.name)}\n ordinal: ${role.ordinal}\n roleType: ${role.roleType}\n experience: \"${role.experience}\"\n })\n }` \n};\n\n// Remove a role\nconst deleteRole = (role) => {\n return `\n mutation removeRole {\n deleteTemplateRole(input: {\n templateRoleId: \"${role.id}\" \n })\n }`\n};\n\n// Save any changes to an role\nconst updateRole = (role) => {\n const newParent = role?.signerParent ? `\"${role.signerParent}\"` : 'null';\n return `\n mutation updateRole {\n updateTemplateRole(input: {\n templateRoleId: \"${role.id}\" \n signerIndex: ${role.signerIndex}\n ordinal: ${role.ordinal}\n signerParent: ${newParent}\n name: ${JSON.stringify(role.name)}\n roleType: ${role.roleType}\n experience: \"${role.experience}\"\n })\n }`\n};\n\n// swap two adjacent roles\nconst swapRoles = (roleId1, roleId2) => {\n\n return `\n mutation swapRole {\n swapRoles(input: {\n roleId1: \"${roleId1}\" \n roleId2: \"${roleId2}\"\n })\n }`;\n\n};\n\n\nexport { createRole, updateRole, deleteRole, swapRoles };\n"]}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// Add a role
|
|
2
|
+
const updateTemplate = (template) => {
|
|
3
|
+
return `
|
|
4
|
+
mutation updateTemplate {
|
|
5
|
+
updateTemplate(input: {
|
|
6
|
+
templateId: "${template.id}",
|
|
7
|
+
title: "${template.title}",
|
|
8
|
+
locked: ${template.locked},
|
|
9
|
+
autoArchive: ${template.autoArchive},
|
|
10
|
+
fixSignatureScale: ${template.fixSignatureScale ? template.fixSignatureScale : false}
|
|
11
|
+
})
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
};
|
|
15
|
+
const getTemplate = (id) => {
|
|
16
|
+
return `
|
|
17
|
+
query GetTemplate {
|
|
18
|
+
template(id: "${id}") {
|
|
19
|
+
id
|
|
20
|
+
title
|
|
21
|
+
fileName
|
|
22
|
+
pageDimensions
|
|
23
|
+
pageCount
|
|
24
|
+
modified
|
|
25
|
+
link
|
|
26
|
+
valid
|
|
27
|
+
locked
|
|
28
|
+
autoArchive
|
|
29
|
+
archived
|
|
30
|
+
tags
|
|
31
|
+
created
|
|
32
|
+
createdBy
|
|
33
|
+
lastSent
|
|
34
|
+
fixSignatureScale
|
|
35
|
+
roles{
|
|
36
|
+
id
|
|
37
|
+
signerIndex
|
|
38
|
+
}
|
|
39
|
+
elementConnection {
|
|
40
|
+
templateElements {
|
|
41
|
+
align
|
|
42
|
+
ax
|
|
43
|
+
ay
|
|
44
|
+
bx
|
|
45
|
+
by
|
|
46
|
+
elementType
|
|
47
|
+
formElementType
|
|
48
|
+
fieldOrder
|
|
49
|
+
fontName
|
|
50
|
+
fontSize
|
|
51
|
+
helpText
|
|
52
|
+
hideBorder
|
|
53
|
+
id
|
|
54
|
+
label
|
|
55
|
+
labelExtra
|
|
56
|
+
logicAction
|
|
57
|
+
logicGroup
|
|
58
|
+
mapTo
|
|
59
|
+
options
|
|
60
|
+
optional
|
|
61
|
+
page
|
|
62
|
+
role
|
|
63
|
+
signer
|
|
64
|
+
substantive
|
|
65
|
+
validation
|
|
66
|
+
value
|
|
67
|
+
}
|
|
68
|
+
totalCount
|
|
69
|
+
}
|
|
70
|
+
userSignatureConnection {
|
|
71
|
+
userSignatureElements {
|
|
72
|
+
id
|
|
73
|
+
userId
|
|
74
|
+
ax
|
|
75
|
+
ay
|
|
76
|
+
bx
|
|
77
|
+
by
|
|
78
|
+
page
|
|
79
|
+
link
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
85
|
+
};
|
|
86
|
+
export { updateTemplate, getTemplate };
|
|
87
|
+
//# sourceMappingURL=templateActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templateActions.js","sourceRoot":"","sources":["../../../../src/components/ls-document-viewer/adapter/templateActions.ts"],"names":[],"mappings":"AACA,aAAa;AACb,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,EAAE;IAClC,OAAO;;;uBAGc,QAAQ,CAAC,EAAE;kBAChB,QAAQ,CAAC,KAAK;kBACd,QAAQ,CAAC,MAAM;uBACV,QAAQ,CAAC,WAAW;6BACd,QAAQ,CAAC,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,CAAC,KAAK;;;GAGzF,CAAA;AACH,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,EAAU,EAAE,EAAE;IACjC,OAAO;;0BAEiB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkErB,CAAC;AACR,CAAC,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC","sourcesContent":[" \n// Add a role\nconst updateTemplate = (template) => { \n return `\n mutation updateTemplate {\n updateTemplate(input: {\n templateId: \"${template.id}\", \n title: \"${template.title}\",\n locked: ${template.locked},\n autoArchive: ${template.autoArchive},\n fixSignatureScale: ${template.fixSignatureScale ? template.fixSignatureScale : false}\n })\n }\n ` \n};\n\nconst getTemplate = (id: string) => {\n return `\n query GetTemplate {\n template(id: \"${id}\") {\n id\n title\n fileName\n pageDimensions\n pageCount\n modified\n link\n valid\n locked\n autoArchive\n archived\n tags\n created\n createdBy\n lastSent\n fixSignatureScale\n roles{\n id\n signerIndex\n }\n elementConnection {\n templateElements {\n align\n ax\n ay\n bx\n by\n elementType\n formElementType\n fieldOrder\n fontName\n fontSize\n helpText\n hideBorder\n id\n label\n labelExtra\n logicAction\n logicGroup\n mapTo\n options\n optional\n page\n role\n signer\n substantive\n validation\n value\n }\n totalCount\n }\n userSignatureConnection {\n userSignatureElements {\n id\n userId\n ax\n ay\n bx\n by\n page\n link\n }\n }\n }\n }\n `;\n}\n\nexport { updateTemplate, getTemplate };\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// import { RoleColor } from "../../types/RoleColor";
|
|
2
|
+
// export const defaultRolePalette: RoleColor[] = [
|
|
3
|
+
// {primary:'rgb(50, 124, 244)', faded: 'rgb(240, 246, 255)'},
|
|
4
|
+
// {primary:'rgb(70, 219, 170)', faded: 'rgb(239, 255, 249)'},
|
|
5
|
+
// {primary:'rgb(240, 182, 24)', faded: 'rgb(255, 252, 239)'},
|
|
6
|
+
// {primary:'rgb(238, 229, 255)', faded: 'rgb(244, 240, 255)'},
|
|
7
|
+
// {primary:'rgb(240, 86, 178)', faded: 'rgb(255, 240, 249)'},
|
|
8
|
+
// {primary:'rgb(189, 240, 86)', faded: 'rgb(250, 255, 240)'},
|
|
9
|
+
// {primary:'rgb(246, 74, 68)', faded: 'rgb(246, 190, 188)'},
|
|
10
|
+
// {primary:'rgb(58, 0, 166)', faded: 'rgb(188, 169, 240)'},
|
|
11
|
+
// {primary:'rgba(1, 179, 34, 0.69)', faded: 'rgb(135, 173, 158)'},
|
|
12
|
+
// {primary:'rgb(201, 204, 0)', faded: 'rgba(246, 247, 203, 0.77)'},
|
|
13
|
+
// {primary:'rgb(249, 55, 129)', faded: 'rgb(255, 237, 244)'},
|
|
14
|
+
// {primary:'rgb(0, 14, 166)', faded: 'rgb(209, 212, 243)'},
|
|
15
|
+
// {primary:'rgb(135, 173, 158)', faded: 'rgb(205, 244, 228)'} ,
|
|
16
|
+
// {primary:'rgb(86, 199, 240)', faded: 'rgb(202, 236, 248)'},
|
|
17
|
+
// {primary:'rgb(246, 205, 68)', faded: 'rgb(244, 240, 255)'},
|
|
18
|
+
// {primary:'rgb(0, 94, 166)', faded: 'rgb(188, 169, 240)'},
|
|
19
|
+
// {primary:'rgba(179, 1, 63, 0.69)', faded: 'rgb(135, 173, 158)'}
|
|
20
|
+
// ]
|
|
21
|
+
export const defaultRolePalette = ['gray', 'blue', 'green', 'yellow', 'purple', 'teal', 'pink', 'lime', 'red', 'lightblue', 'aubergine', 'burnt', 'trueGreen', 'indigo', 'cyan'];
|
|
22
|
+
//# sourceMappingURL=defaultPalette.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultPalette.js","sourceRoot":"","sources":["../../../src/components/ls-document-viewer/defaultPalette.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,mDAAmD;AACnD,gEAAgE;AAChE,gEAAgE;AAChE,gEAAgE;AAChE,iEAAiE;AACjE,gEAAgE;AAChE,gEAAgE;AAChE,+DAA+D;AAC/D,8DAA8D;AAC9D,qEAAqE;AACrE,uEAAuE;AACvE,gEAAgE;AAChE,8DAA8D;AAC9D,kEAAkE;AAClE,iEAAiE;AACjE,gEAAgE;AAChE,8DAA8D;AAC9D,oEAAoE;AACpE,IAAI;AAEJ,MAAM,CAAC,MAAM,kBAAkB,GAAa,CAAC,MAAM,EAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC","sourcesContent":["// import { RoleColor } from \"../../types/RoleColor\";\n\n// export const defaultRolePalette: RoleColor[] = [\n// {primary:'rgb(50, 124, 244)', faded: 'rgb(240, 246, 255)'},\n// {primary:'rgb(70, 219, 170)', faded: 'rgb(239, 255, 249)'},\n// {primary:'rgb(240, 182, 24)', faded: 'rgb(255, 252, 239)'},\n// {primary:'rgb(238, 229, 255)', faded: 'rgb(244, 240, 255)'},\n// {primary:'rgb(240, 86, 178)', faded: 'rgb(255, 240, 249)'},\n// {primary:'rgb(189, 240, 86)', faded: 'rgb(250, 255, 240)'},\n// {primary:'rgb(246, 74, 68)', faded: 'rgb(246, 190, 188)'},\n// {primary:'rgb(58, 0, 166)', faded: 'rgb(188, 169, 240)'},\n// {primary:'rgba(1, 179, 34, 0.69)', faded: 'rgb(135, 173, 158)'},\n// {primary:'rgb(201, 204, 0)', faded: 'rgba(246, 247, 203, 0.77)'},\n// {primary:'rgb(249, 55, 129)', faded: 'rgb(255, 237, 244)'},\n// {primary:'rgb(0, 14, 166)', faded: 'rgb(209, 212, 243)'},\n// {primary:'rgb(135, 173, 158)', faded: 'rgb(205, 244, 228)'} ,\n// {primary:'rgb(86, 199, 240)', faded: 'rgb(202, 236, 248)'},\n// {primary:'rgb(246, 205, 68)', faded: 'rgb(244, 240, 255)'},\n// {primary:'rgb(0, 94, 166)', faded: 'rgb(188, 169, 240)'},\n// {primary:'rgba(179, 1, 63, 0.69)', faded: 'rgb(135, 173, 158)'}\n// ]\n\nexport const defaultRolePalette: string[] = ['gray','blue', 'green', 'yellow', 'purple', 'teal', 'pink', 'lime', 'red', 'lightblue', 'aubergine', 'burnt', 'trueGreen', 'indigo', 'cyan'];\n"]}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
export const findIn = (fields, selector, restyle = false, additive = false) => {
|
|
2
|
+
const selected = new Array();
|
|
3
|
+
const { top, left, bottom, right } = selector.getBoundingClientRect();
|
|
4
|
+
fields.forEach(f => {
|
|
5
|
+
if (f.getBoundingClientRect().bottom <= bottom && f.getBoundingClientRect().top >= top && f.getBoundingClientRect().left >= left && f.getBoundingClientRect().right <= right) {
|
|
6
|
+
if (restyle)
|
|
7
|
+
f.selected = true;
|
|
8
|
+
selected.push(f);
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
if (restyle && !additive)
|
|
12
|
+
f.selected = false;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
return selected;
|
|
16
|
+
};
|
|
17
|
+
// Used to append new fields (dropped or loaded from template data)
|
|
18
|
+
export function addField(frame, data) {
|
|
19
|
+
const node = document.createElement('ls-editor-field');
|
|
20
|
+
node.setAttribute('type', data.formElementType);
|
|
21
|
+
node.setAttribute('id', 'ls-field-' + data.id);
|
|
22
|
+
node.setAttribute('selected', 'selected');
|
|
23
|
+
node.style.zIndex = '100';
|
|
24
|
+
node.style.position = 'absolute';
|
|
25
|
+
node.style.top = Math.floor(data.top * this.zoom) + 'px';
|
|
26
|
+
node.style.left = Math.floor(data.left * this.zoom) + 'px';
|
|
27
|
+
node.style.height = Math.floor(data.height * this.zoom) + 'px';
|
|
28
|
+
node.style.width = Math.floor(data.width * this.zoom) + 'px';
|
|
29
|
+
node.style.fontSize = Math.floor(data.fontSize) + 'pt';
|
|
30
|
+
node.style.alignContent = data.align;
|
|
31
|
+
node.style.fontFamily = data.fontName;
|
|
32
|
+
node.dataItem = data;
|
|
33
|
+
frame.appendChild(node);
|
|
34
|
+
return node;
|
|
35
|
+
}
|
|
36
|
+
;
|
|
37
|
+
export function moveField(item, data) {
|
|
38
|
+
item.style.top = Math.floor(data.top * this.zoom) + 'px';
|
|
39
|
+
item.style.left = Math.floor(data.left * this.zoom) + 'px';
|
|
40
|
+
item.style.height = Math.floor(data.height * this.zoom) + 'px';
|
|
41
|
+
item.style.width = Math.floor(data.width * this.zoom) + 'px';
|
|
42
|
+
item.style.fontSize = Math.floor(data.fontSize) + 'pt';
|
|
43
|
+
item.style.fontFamily = data.fontName;
|
|
44
|
+
item.style.textAlign = data.align;
|
|
45
|
+
item.dataItem = data;
|
|
46
|
+
}
|
|
47
|
+
;
|
|
48
|
+
// calculates html compatible coords at current zoom level
|
|
49
|
+
export const transformCoordinates = (sourceField, inputFieldWidth, inputFieldHeight, viewerWidth, viewerHeight, left, top, fontName, fontSize, zoom) => {
|
|
50
|
+
// Returns X, Y coordinates
|
|
51
|
+
const ax = left > 0 ? left / viewerWidth : 0;
|
|
52
|
+
const ay = top > 0 ? top / viewerHeight : 0;
|
|
53
|
+
const bx = (left + inputFieldWidth) / viewerWidth;
|
|
54
|
+
const by = (top + inputFieldHeight) / viewerHeight;
|
|
55
|
+
// Return with calculated styles that try to place it as it would appear on legacy signing page
|
|
56
|
+
return {
|
|
57
|
+
...sourceField,
|
|
58
|
+
ax,
|
|
59
|
+
ay,
|
|
60
|
+
bx,
|
|
61
|
+
by,
|
|
62
|
+
cstyle: {
|
|
63
|
+
margin: 0,
|
|
64
|
+
verticalAlign: 'top',
|
|
65
|
+
boxSizing: 'content-box',
|
|
66
|
+
fontSize: viewerWidth < 640 ? `${(fontSize / 24) * zoom}rem` : `${fontSize * zoom}px`,
|
|
67
|
+
fontFamily: fontName || 'arial',
|
|
68
|
+
width: `${(inputFieldWidth * bx - inputFieldWidth * ax) * zoom}px`, // app1 input has padding-x 3px
|
|
69
|
+
height: `${inputFieldHeight * (by - ay) * zoom}px`, // app1 input has padding-y 2px
|
|
70
|
+
// minHeight: `${inputFieldHeight * (BY - AY) * zoom - 2}px`,
|
|
71
|
+
lineHeight: 'inherit',
|
|
72
|
+
},
|
|
73
|
+
divStyle: {
|
|
74
|
+
position: 'absolute',
|
|
75
|
+
top: `${inputFieldHeight * ay * zoom}px`,
|
|
76
|
+
left: `${inputFieldWidth * ax * zoom}px`,
|
|
77
|
+
width: `${(inputFieldWidth * bx - inputFieldWidth * ax) * zoom}px`,
|
|
78
|
+
height: `${inputFieldHeight * (by - ay) * zoom}px`,
|
|
79
|
+
zIndex: 1000,
|
|
80
|
+
fontSize: viewerWidth < 640 ? `${(fontSize / 24) * zoom}rem` : `${fontSize * zoom}px`,
|
|
81
|
+
},
|
|
82
|
+
objectHeight: `${inputFieldHeight * (by - ay) * zoom}px`,
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
// from a field element get all dimension data including LEGACY dimensions
|
|
86
|
+
export const findDimensions = (frameContainer, sourceField, pageHeight, pageWidth, zoom) => {
|
|
87
|
+
// Position of widget frame
|
|
88
|
+
const frmDims = frameContainer.getBoundingClientRect();
|
|
89
|
+
// dimensions relative to viewport
|
|
90
|
+
const { height, width } = sourceField.getBoundingClientRect();
|
|
91
|
+
const zwidth = width / zoom;
|
|
92
|
+
const zheight = height / zoom;
|
|
93
|
+
const top = Math.floor((sourceField.getBoundingClientRect().top - frmDims.top) / zoom);
|
|
94
|
+
const left = Math.floor((sourceField.getBoundingClientRect().left - frmDims.left) / zoom);
|
|
95
|
+
// Returns X, Y coordinates
|
|
96
|
+
const ax = left > 0 ? left / pageWidth : 0;
|
|
97
|
+
const ay = top > 0 ? top / pageHeight : 0;
|
|
98
|
+
const bx = (left + zwidth) / pageWidth;
|
|
99
|
+
const by = (top + zheight) / pageHeight;
|
|
100
|
+
console.log({
|
|
101
|
+
top,
|
|
102
|
+
left,
|
|
103
|
+
zheight,
|
|
104
|
+
zwidth,
|
|
105
|
+
ax,
|
|
106
|
+
ay,
|
|
107
|
+
bx,
|
|
108
|
+
by,
|
|
109
|
+
});
|
|
110
|
+
// Return with calculated styles that try to place it as it would appear on legacy signing page
|
|
111
|
+
return {
|
|
112
|
+
top,
|
|
113
|
+
left,
|
|
114
|
+
height,
|
|
115
|
+
width,
|
|
116
|
+
ax,
|
|
117
|
+
ay,
|
|
118
|
+
bx,
|
|
119
|
+
by,
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
//# sourceMappingURL=editorCalculator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editorCalculator.js","sourceRoot":"","sources":["../../../src/components/ls-document-viewer/editorCalculator.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,MAA4C,EAAE,QAAqB,EAAE,UAAmB,KAAK,EAAE,WAAoB,KAAK,EAA8B,EAAE;IAC7K,MAAM,QAAQ,GAA+B,IAAI,KAAK,EAAE,CAAC;IACzD,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC,qBAAqB,EAAE,CAAC;IAEtE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;QACjB,IAAI,CAAC,CAAC,qBAAqB,EAAE,CAAC,MAAM,IAAI,MAAM,IAAI,CAAC,CAAC,qBAAqB,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,qBAAqB,EAAE,CAAC,IAAI,IAAI,IAAI,IAAI,CAAC,CAAC,qBAAqB,EAAE,CAAC,KAAK,IAAI,KAAK,EAAE,CAAC;YAC7K,IAAI,OAAO;gBAAE,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC;YAC/B,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnB,CAAC;aAAM,CAAC;YACN,IAAI,OAAO,IAAI,CAAC,QAAQ;gBAAE,CAAC,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC/C,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEF,mEAAmE;AACnE,MAAM,UAAU,QAAQ,CAAC,KAAkB,EAAE,IAAI;IAC/C,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACvD,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C1C,MAAM,EAAE,GAAG,CAAC,IAAI,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;IACvC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,UAAU,CAAC;IAExC,OAAO,CAAC,GAAG,CAAC;QACV,GAAG;QACH,IAAI;QACJ,OAAO;QACP,MAAM;QACN,EAAE;QACF,EAAE;QACF,EAAE;QACF,EAAE;KACH,CAAC,CAAA;IAEF,+FAA+F;IAC/F,OAAO;QACL,GAAG;QACH,IAAI;QACJ,MAAM;QACN,KAAK;QACL,EAAE;QACF,EAAE;QACF,EAAE;QACF,EAAE;KACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { LSApiElement } from '../../types/LSApiElement';\n\nexport const findIn = (fields: NodeListOf<HTMLLsEditorFieldElement>, selector: HTMLElement, restyle: boolean = false, additive: boolean = false): HTMLLsEditorFieldElement[] => {\n const selected: HTMLLsEditorFieldElement[] = new Array();\n const { top, left, bottom, right } = selector.getBoundingClientRect();\n\n fields.forEach(f => {\n if (f.getBoundingClientRect().bottom <= bottom && f.getBoundingClientRect().top >= top && f.getBoundingClientRect().left >= left && f.getBoundingClientRect().right <= right) {\n if (restyle) f.selected = true;\n selected.push(f);\n } else {\n if (restyle && !additive) f.selected = false;\n }\n });\n return selected;\n};\n\n// Used to append new fields (dropped or loaded from template data)\nexport function addField(frame: HTMLElement, data): HTMLLsEditorFieldElement {\n const node = document.createElement('ls-editor-field');\n node.setAttribute('type', data.formElementType);\n node.setAttribute('id', 'ls-field-' + data.id);\n node.setAttribute('selected', 'selected');\n node.style.zIndex = '100';\n node.style.position = 'absolute';\n\n node.style.top = Math.floor(data.top * this.zoom) +'px';\n node.style.left = Math.floor(data.left * this.zoom) + 'px';\n node.style.height = Math.floor(data.height * this.zoom) + 'px';\n node.style.width = Math.floor(data.width * this.zoom) + 'px';\n node.style.fontSize = Math.floor(data.fontSize) + 'pt';\n node.style.alignContent = data.align;\n node.style.fontFamily = data.fontName;\n node.dataItem = data;\n frame.appendChild(node);\n\n return node as any as HTMLLsEditorFieldElement;\n};\n\nexport function moveField(item: HTMLLsEditorFieldElement, data){\n item.style.top = Math.floor(data.top * this.zoom) + 'px';\n item.style.left = Math.floor(data.left * this.zoom) + 'px';\n item.style.height = Math.floor(data.height * this.zoom) + 'px';\n item.style.width = Math.floor(data.width * this.zoom) + 'px';\n item.style.fontSize = Math.floor(data.fontSize) + 'pt';\n item.style.fontFamily = data.fontName;\n item.style.textAlign = data.align;\n item.dataItem = data;\n};\n\n// calculates html compatible coords at current zoom level\nexport const transformCoordinates = (\n sourceField: LSApiElement,\n inputFieldWidth: number,\n inputFieldHeight: number,\n viewerWidth: number,\n viewerHeight: number,\n left: number,\n top: number,\n fontName: string,\n fontSize: number,\n zoom: number,\n): LSApiElement => {\n // Returns X, Y coordinates\n const ax = left > 0 ? left / viewerWidth : 0;\n const ay = top > 0 ? top / viewerHeight : 0;\n const bx = (left + inputFieldWidth) / viewerWidth;\n const by = (top + inputFieldHeight) / viewerHeight;\n\n // Return with calculated styles that try to place it as it would appear on legacy signing page\n return {\n ...sourceField,\n ax,\n ay,\n bx,\n by,\n cstyle: {\n margin: 0,\n verticalAlign: 'top',\n boxSizing: 'content-box',\n fontSize: viewerWidth < 640 ? `${(fontSize / 24) * zoom}rem` : `${fontSize * zoom}px`,\n fontFamily: fontName || 'arial',\n width: `${(inputFieldWidth * bx - inputFieldWidth * ax) * zoom}px`, // app1 input has padding-x 3px\n height: `${inputFieldHeight * (by - ay) * zoom}px`, // app1 input has padding-y 2px\n // minHeight: `${inputFieldHeight * (BY - AY) * zoom - 2}px`,\n lineHeight: 'inherit',\n },\n divStyle: {\n position: 'absolute',\n top: `${inputFieldHeight * ay * zoom}px`,\n left: `${inputFieldWidth * ax * zoom}px`,\n width: `${(inputFieldWidth * bx - inputFieldWidth * ax) * zoom}px`,\n height: `${inputFieldHeight * (by - ay) * zoom}px`,\n zIndex: 1000,\n fontSize: viewerWidth < 640 ? `${(fontSize / 24) * zoom}rem` : `${fontSize * zoom}px`,\n },\n objectHeight: `${inputFieldHeight * (by - ay) * zoom}px`,\n };\n};\n\n// from a field element get all dimension data including LEGACY dimensions\nexport const findDimensions = (\n frameContainer: HTMLDivElement,\n sourceField: HTMLLsEditorFieldElement,\n pageHeight: number,\n pageWidth: number,\n zoom: number\n): { top: number; left: number; height: number; width: number; ax: number; ay: number; bx: number; by: number } => {\n\n // Position of widget frame\n const frmDims = frameContainer.getBoundingClientRect();\n // dimensions relative to viewport\n const { height, width } = sourceField.getBoundingClientRect();\n const zwidth = width / zoom;\n const zheight = height / zoom;\n const top = Math.floor((sourceField.getBoundingClientRect().top - frmDims.top) / zoom);\n const left = Math.floor((sourceField.getBoundingClientRect().left - frmDims.left) / zoom);\n \n // Returns X, Y coordinates\n const ax = left > 0 ? left / pageWidth : 0;\n const ay = top > 0 ? top / pageHeight : 0;\n const bx = (left + zwidth) / pageWidth;\n const by = (top + zheight) / pageHeight;\n\n console.log({\n top,\n left,\n zheight,\n zwidth,\n ax,\n ay,\n bx,\n by,\n })\n\n // Return with calculated styles that try to place it as it would appear on legacy signing page\n return {\n top,\n left,\n height,\n width,\n ax,\n ay,\n bx,\n by,\n };\n};\n\n\n"]}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* These utils are used to make document-viewer more readable
|
|
3
|
+
* but they must be called using the bind() function so that
|
|
4
|
+
* all code is executed within the correct 'this' scope.
|
|
5
|
+
*
|
|
6
|
+
* Avoid using arrow functions here as they reassign "thiss"
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Determines if an element will be plotted out of bounds, i.e. off
|
|
10
|
+
* the page.
|
|
11
|
+
*/
|
|
12
|
+
export function oob(obj) {
|
|
13
|
+
if (obj.left + obj.width > obj.pageDimensions.width || obj.top < 0 || obj.left < 0 || obj.top + obj.height > obj.pageDimensions.height)
|
|
14
|
+
return true;
|
|
15
|
+
else
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
export function alter(diffFn) {
|
|
19
|
+
const diffs = this.selected.map(c => {
|
|
20
|
+
return { action: 'update', data: diffFn(c.dataItem) };
|
|
21
|
+
});
|
|
22
|
+
this.mutate.emit(diffs);
|
|
23
|
+
this.update.emit(diffs);
|
|
24
|
+
}
|
|
25
|
+
export function resetDataItems() {
|
|
26
|
+
const fields = this.component.shadowRoot.querySelectorAll('ls-editor-field');
|
|
27
|
+
this.selected = Array.from(fields).filter(fx => fx.selected);
|
|
28
|
+
this.selectFields.emit(this.selected.map(fx => fx.dataItem));
|
|
29
|
+
}
|
|
30
|
+
export function debounce(func, timeout = 300) {
|
|
31
|
+
let timer;
|
|
32
|
+
return (...args) => {
|
|
33
|
+
clearTimeout(timer);
|
|
34
|
+
timer = setTimeout(() => {
|
|
35
|
+
func.apply(this, args);
|
|
36
|
+
}, timeout);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
// if a mutation has created a new id then update the dataitem with OLD id to the new one
|
|
40
|
+
export function matchData(data) {
|
|
41
|
+
const newObj = data.result;
|
|
42
|
+
const fi = this.component.shadowRoot.getElementById('ls-field-' + data.obj.id);
|
|
43
|
+
console.log(fi, data);
|
|
44
|
+
// because mutations return the ID back with the mutation name we just assume its the first (and only) JSON prop
|
|
45
|
+
const id = newObj[Object.keys(newObj)[0]];
|
|
46
|
+
fi.setAttribute('id', 'ls-field-' + id);
|
|
47
|
+
fi.dataItem = { ...data.obj, id };
|
|
48
|
+
}
|
|
49
|
+
// Utility function which extracts the type from any API id
|
|
50
|
+
export function getApiType(obj) {
|
|
51
|
+
if (!obj?.id)
|
|
52
|
+
return 'invalid';
|
|
53
|
+
const apiId = atob(obj.id);
|
|
54
|
+
if (apiId.length < 3)
|
|
55
|
+
return 'invalid';
|
|
56
|
+
const prefix = atob(obj.id).substring(0, 3);
|
|
57
|
+
switch (prefix) {
|
|
58
|
+
case 'ele':
|
|
59
|
+
return 'element';
|
|
60
|
+
case 'rol':
|
|
61
|
+
return 'role';
|
|
62
|
+
case 'tpl':
|
|
63
|
+
return 'template';
|
|
64
|
+
case 'doc':
|
|
65
|
+
return 'document';
|
|
66
|
+
default:
|
|
67
|
+
return 'unknown';
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export const validationTypes = [
|
|
71
|
+
{ id: 0, description: 'general purpose', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
72
|
+
{ id: 30, description: 'yyyy/mm/dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
73
|
+
{ id: 31, description: 'yy/mm/dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
74
|
+
{ id: 32, description: 'dd/mm/yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
|
|
75
|
+
{ id: 33, description: 'dd/mm/yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
76
|
+
{ id: 34, description: 'mm/dd/yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
77
|
+
{ id: 35, description: 'mm/dd/yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
78
|
+
{ id: 36, description: 'yyyy.mm.dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
79
|
+
{ id: 37, description: 'yy.mm.dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
80
|
+
{ id: 38, description: 'dd.mm.yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
81
|
+
{ id: 39, description: 'dd.mm.yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
82
|
+
{ id: 40, description: 'mm.dd.yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
83
|
+
{ id: 41, description: 'mm.dd.yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
84
|
+
{ id: 42, description: 'yyyy-mm-dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
85
|
+
{ id: 43, description: 'yy-mm-dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
86
|
+
{ id: 44, description: 'dd-mm-yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
87
|
+
{ id: 45, description: 'dd-mm-yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
88
|
+
{ id: 46, description: 'mm-dd-yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
89
|
+
{ id: 47, description: 'mm-dd-yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
90
|
+
{ id: 48, description: 'd mmmm yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
91
|
+
{ id: 73, description: 'Secret Code', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
92
|
+
{ id: 77, description: 'Title caps (force text to title caps)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
93
|
+
{ id: 78, description: 'Uppercase (force text to uppercase)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
94
|
+
{ id: 79, description: 'Lowercase (force text to lowercase)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
95
|
+
{ id: 65, description: '1 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
96
|
+
{ id: 66, description: '2 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
97
|
+
{ id: 67, description: '3 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
98
|
+
{ id: 68, description: '4 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
99
|
+
{ id: 69, description: '5 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
100
|
+
{ id: 70, description: '6 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
101
|
+
{ id: 71, description: '7 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
102
|
+
{ id: 72, description: '8 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
103
|
+
{ id: 1000, description: 'First name field (special use)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
|
|
104
|
+
{ id: 1001, description: 'Last name field (special use)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
|
|
105
|
+
{ id: 1, description: 'Email', formType: 'email', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
|
|
106
|
+
{ id: 1002, description: 'Email field (special use)', formType: 'email', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
107
|
+
{ id: 50, description: 'Whole number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'number' },
|
|
108
|
+
{ id: 51, description: 'Number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
|
|
109
|
+
{ id: 52, description: 'Currency', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
|
|
110
|
+
{ id: 53, description: '1 number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
|
|
111
|
+
{ id: 54, description: '2 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
|
|
112
|
+
{ id: 55, description: '3 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
|
|
113
|
+
{ id: 56, description: '4 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
|
|
114
|
+
{ id: 57, description: '5 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
|
|
115
|
+
{ id: 58, description: '6 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
|
|
116
|
+
{ id: 59, description: '7 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
|
|
117
|
+
{ id: 60, description: '8 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
|
|
118
|
+
{ id: 61, description: '9 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
|
|
119
|
+
{ id: 62, description: '10 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
|
|
120
|
+
{ id: 63, description: '11 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
|
|
121
|
+
{ id: 64, description: '12 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
|
|
122
|
+
{ id: 2, description: 'yyyy/mm/dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'date' },
|
|
123
|
+
{ id: 3, description: 'yy/mm/dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
124
|
+
{ id: 4, description: 'dd/mm/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'date' },
|
|
125
|
+
{ id: 5, description: 'dd/mm/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
126
|
+
{ id: 6, description: 'mm/dd/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
127
|
+
{ id: 7, description: 'mm/dd/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
128
|
+
{ id: 80, description: 'mm/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
129
|
+
{ id: 81, description: 'mm/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
130
|
+
{ id: 8, description: 'yyyy.mm.dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
131
|
+
{ id: 9, description: 'yy.mm.dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
132
|
+
{ id: 10, description: 'dd.mm.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
133
|
+
{ id: 11, description: 'dd.mm.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
134
|
+
{ id: 12, description: 'mm.dd.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
135
|
+
{ id: 13, description: 'mm.dd.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
136
|
+
{ id: 82, description: 'mm.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
137
|
+
{ id: 83, description: 'mm.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
138
|
+
{ id: 14, description: 'yyyy-mm-dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
139
|
+
{ id: 15, description: 'yy-mm-dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
140
|
+
{ id: 16, description: 'dd-mm-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
141
|
+
{ id: 17, description: 'dd-mm-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
142
|
+
{ id: 18, description: 'mm-dd-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
143
|
+
{ id: 19, description: 'mm-dd-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
144
|
+
{ id: 84, description: 'mm-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
145
|
+
{ id: 85, description: 'mm-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
|
|
146
|
+
{ id: 20, description: 'Dropdown List', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
|
|
147
|
+
{ id: 91, description: 'Countries', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
148
|
+
{ id: 92, description: 'Name prefix titles', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
149
|
+
{ id: 24, description: '✔/✗', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
150
|
+
{ id: 25, description: '✔/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
|
|
151
|
+
{ id: 26, description: '✗/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 16, typeDefault: false, inputType: 'text' },
|
|
152
|
+
{ id: 74, description: 'File: attach to confirmatory email to sender', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
|
|
153
|
+
{ id: 75, description: 'File: append to PDF, PDF files only', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
154
|
+
{ id: 76, description: 'File: zip with PDF (for internal view, signed PDF for signer)', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
155
|
+
{ id: 90, description: 'Drawn field.', formType: 'drawn field', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
156
|
+
{ id: 2000, description: 'Initials', formType: 'initials', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
|
|
157
|
+
{ id: 93, description: 'Regular Expression field', formType: 'regular expression', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
158
|
+
{ id: 3000, description: 'Auto Sign', formType: 'auto sign', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
|
|
159
|
+
{ id: 4000, description: 'Text Area', formType: 'textarea', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'readonly' },
|
|
160
|
+
];
|
|
161
|
+
// See validation table in database for latest values - these have to be hard coded for our HTML control - ASW
|
|
162
|
+
export function getInputType(validation) {
|
|
163
|
+
if (validation === null)
|
|
164
|
+
return validationTypes[0];
|
|
165
|
+
const inputType = validationTypes.find(v => v.id === validation);
|
|
166
|
+
return inputType === null ? validationTypes[0] : inputType;
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=editorUtils.js.map
|