legalesign-document-viewer 0.1.2 → 0.1.4

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.
Files changed (288) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{ls-document-options_35.cjs.entry.js → ls-document-options_36.cjs.entry.js} +501 -128
  3. package/dist/cjs/ls-document-options_36.cjs.entry.js.map +1 -0
  4. package/dist/cjs/ls-document-viewer.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +1 -0
  6. package/dist/collection/components/ls-document-viewer/adapter/LsDocumentAdapter.js +1 -1
  7. package/dist/collection/components/ls-document-viewer/adapter/LsDocumentAdapter.js.map +1 -1
  8. package/dist/collection/components/ls-document-viewer/adapter/groupActions.js +96 -0
  9. package/dist/collection/components/ls-document-viewer/adapter/groupActions.js.map +1 -0
  10. package/dist/collection/components/ls-document-viewer/adapter/templateActions.js +7 -1
  11. package/dist/collection/components/ls-document-viewer/adapter/templateActions.js.map +1 -1
  12. package/dist/collection/components/ls-document-viewer/defaultFieldIcons.js +19 -0
  13. package/dist/collection/components/ls-document-viewer/defaultFieldIcons.js.map +1 -0
  14. package/dist/collection/components/ls-document-viewer/defaultPalette.js.map +1 -1
  15. package/dist/collection/components/ls-document-viewer/editorCalculator.js +2 -2
  16. package/dist/collection/components/ls-document-viewer/editorCalculator.js.map +1 -1
  17. package/dist/collection/components/ls-document-viewer/editorUtils.js +31 -5
  18. package/dist/collection/components/ls-document-viewer/editorUtils.js.map +1 -1
  19. package/dist/collection/components/ls-document-viewer/ls-document-viewer.css +11 -1
  20. package/dist/collection/components/ls-document-viewer/ls-document-viewer.js +16 -11
  21. package/dist/collection/components/ls-document-viewer/ls-document-viewer.js.map +1 -1
  22. package/dist/collection/components/ls-editor-field/ls-editor-field.js +6 -4
  23. package/dist/collection/components/ls-editor-field/ls-editor-field.js.map +1 -1
  24. package/dist/collection/components/ls-field-alignment/ls-field-alignment.css +98 -28
  25. package/dist/collection/components/ls-field-alignment/ls-field-alignment.js +26 -20
  26. package/dist/collection/components/ls-field-alignment/ls-field-alignment.js.map +1 -1
  27. package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js +1 -1
  28. package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js.map +1 -1
  29. package/dist/collection/components/ls-field-distribute/ls-field-distribute.css +100 -33
  30. package/dist/collection/components/ls-field-distribute/ls-field-distribute.js +21 -15
  31. package/dist/collection/components/ls-field-distribute/ls-field-distribute.js.map +1 -1
  32. package/dist/collection/components/ls-field-footer/ls-field-footer.css +55 -0
  33. package/dist/collection/components/ls-field-footer/ls-field-footer.js +107 -0
  34. package/dist/collection/components/ls-field-footer/ls-field-footer.js.map +1 -0
  35. package/dist/collection/components/ls-field-format/ls-field-format.js +10 -10
  36. package/dist/collection/components/ls-field-placement/ls-field-placement.css +27 -9
  37. package/dist/collection/components/ls-field-placement/ls-field-placement.js +1 -1
  38. package/dist/collection/components/ls-field-placement/ls-field-placement.js.map +1 -1
  39. package/dist/collection/components/ls-field-properties/ls-field-properties.css +1 -0
  40. package/dist/collection/components/ls-field-properties/ls-field-properties.js +1 -1
  41. package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js +1 -1
  42. package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.css +173 -10
  43. package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js +36 -1
  44. package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js.map +1 -1
  45. package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.css +178 -4
  46. package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js +36 -1
  47. package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js.map +1 -1
  48. package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.css +178 -3
  49. package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js +36 -1
  50. package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js.map +1 -1
  51. package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.css +173 -10
  52. package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js +34 -1
  53. package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js.map +1 -1
  54. package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.css +178 -3
  55. package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js +36 -1
  56. package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js.map +1 -1
  57. package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.css +179 -3
  58. package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js +55 -1
  59. package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js.map +1 -1
  60. package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.css +178 -3
  61. package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js +36 -1
  62. package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js.map +1 -1
  63. package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.css +40 -4
  64. package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js +18 -3
  65. package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js.map +1 -1
  66. package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.css +177 -3
  67. package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js +36 -1
  68. package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js.map +1 -1
  69. package/dist/collection/components/ls-field-size/ls-field-size.css +102 -27
  70. package/dist/collection/components/ls-field-size/ls-field-size.js +2 -2
  71. package/dist/collection/components/ls-field-size/ls-field-size.js.map +1 -1
  72. package/dist/collection/components/ls-formfield/inputs/ls-number-input/ls-number-input.js +3 -3
  73. package/dist/collection/components/ls-formfield/inputs/ls-radio-input/ls-radio-input.js +2 -2
  74. package/dist/collection/components/ls-formfield/inputs/ls-select-input/ls-select-input.js +3 -3
  75. package/dist/collection/components/ls-formfield/inputs/ls-text-input/ls-text-input.js +3 -3
  76. package/dist/collection/components/ls-formfield/inputs/ls-textarea-input/ls-textarea-input.js +3 -3
  77. package/dist/collection/components/ls-formfield/ls-formfield.js +5 -5
  78. package/dist/collection/components/ls-icon/icons.js +20 -0
  79. package/dist/collection/components/ls-icon/icons.js.map +1 -1
  80. package/dist/collection/components/ls-icon/ls-icon.js +2 -2
  81. package/dist/collection/components/ls-participant-manager/ls-participant-manager.js +10 -6
  82. package/dist/collection/components/ls-participant-manager/ls-participant-manager.js.map +1 -1
  83. package/dist/collection/components/ls-participant-select/ls-participant-select.css +4 -6
  84. package/dist/collection/components/ls-participant-select/ls-participant-select.js +22 -6
  85. package/dist/collection/components/ls-participant-select/ls-participant-select.js.map +1 -1
  86. package/dist/collection/components/ls-statusbar/ls-statusbar.js +3 -3
  87. package/dist/collection/components/ls-toggle/ls-toggle.js +1 -1
  88. package/dist/collection/components/ls-toolbar/ls-toolbar.js +1 -1
  89. package/dist/collection/components/ls-toolbar/ls-toolbar.js.map +1 -1
  90. package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.css +3 -4
  91. package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js +26 -2
  92. package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js.map +1 -1
  93. package/dist/collection/types/Icon.js +1 -0
  94. package/dist/collection/types/Icon.js.map +1 -1
  95. package/dist/components/ls-document-options.js +1 -1
  96. package/dist/components/ls-document-viewer.js +169 -58
  97. package/dist/components/ls-document-viewer.js.map +1 -1
  98. package/dist/components/ls-editor-field.js +1 -1
  99. package/dist/components/ls-feature-column.js +1 -1
  100. package/dist/components/ls-field-alignment.js +1 -1
  101. package/dist/components/ls-field-dimensions.js +1 -1
  102. package/dist/components/ls-field-distribute.js +1 -1
  103. package/dist/components/ls-field-footer.d.ts +11 -0
  104. package/dist/components/ls-field-footer.js +9 -0
  105. package/dist/components/ls-field-footer.js.map +1 -0
  106. package/dist/components/ls-field-format.js +1 -1
  107. package/dist/components/ls-field-placement.js +1 -1
  108. package/dist/components/ls-field-properties-autosign.js +1 -1
  109. package/dist/components/ls-field-properties-date.js +1 -1
  110. package/dist/components/ls-field-properties-email.js +1 -1
  111. package/dist/components/ls-field-properties-file.js +1 -1
  112. package/dist/components/ls-field-properties-general.js +1 -1
  113. package/dist/components/ls-field-properties-image.js +1 -1
  114. package/dist/components/ls-field-properties-multiple.js +1 -1
  115. package/dist/components/ls-field-properties-number.js +1 -1
  116. package/dist/components/ls-field-properties-signature.js +1 -1
  117. package/dist/components/ls-field-properties-text.js +1 -1
  118. package/dist/components/ls-field-properties.js +1 -1
  119. package/dist/components/ls-field-size.js +1 -1
  120. package/dist/components/ls-formfield.js +1 -1
  121. package/dist/components/ls-icon.js +1 -1
  122. package/dist/components/ls-number-input.js +1 -1
  123. package/dist/components/ls-participant-manager.js +1 -1
  124. package/dist/components/ls-participant-select.js +1 -1
  125. package/dist/components/ls-radio-input.js +1 -1
  126. package/dist/components/ls-select-input.js +1 -1
  127. package/dist/components/ls-statusbar.js +1 -1
  128. package/dist/components/ls-text-input.js +1 -1
  129. package/dist/components/ls-textarea-input.js +1 -1
  130. package/dist/components/ls-toggle.js +1 -1
  131. package/dist/components/ls-toolbar.js +1 -1
  132. package/dist/components/ls-toolbox-field.js +1 -1
  133. package/dist/components/p-8Yvey07o.js +57 -0
  134. package/dist/components/p-8Yvey07o.js.map +1 -0
  135. package/dist/components/{p-Cs6tf1FE.js → p-9Z-GK0Bd.js} +3 -3
  136. package/dist/components/{p-Cs6tf1FE.js.map → p-9Z-GK0Bd.js.map} +1 -1
  137. package/dist/components/{p-DtHDNV_x.js → p-BFSBsh85.js} +24 -3
  138. package/dist/components/p-BFSBsh85.js.map +1 -0
  139. package/dist/components/p-BLkddRKK.js +77 -0
  140. package/dist/components/p-BLkddRKK.js.map +1 -0
  141. package/dist/components/{p-D2smwTu5.js → p-BM-Xo6D5.js} +7 -7
  142. package/dist/components/{p-D2smwTu5.js.map → p-BM-Xo6D5.js.map} +1 -1
  143. package/dist/components/{p-CjicL5jA.js → p-BPk0SaUp.js} +34 -8
  144. package/dist/components/p-BPk0SaUp.js.map +1 -0
  145. package/dist/components/p-BVXVFpxy.js +130 -0
  146. package/dist/components/p-BVXVFpxy.js.map +1 -0
  147. package/dist/components/{p-D7KC-w81.js → p-BdJAlep4.js} +10 -10
  148. package/dist/components/{p-D7KC-w81.js.map → p-BdJAlep4.js.map} +1 -1
  149. package/dist/components/{p-CpK4mw5O.js → p-BuX-_d2U.js} +3 -3
  150. package/dist/components/{p-CpK4mw5O.js.map → p-BuX-_d2U.js.map} +1 -1
  151. package/dist/components/{p-DTWaVEKo.js → p-BwymH8px.js} +53 -29
  152. package/dist/components/p-BwymH8px.js.map +1 -0
  153. package/dist/components/p-C00GqV9f.js.map +1 -1
  154. package/dist/components/{p-py-rQZsT.js → p-C9d-OiqW.js} +4 -4
  155. package/dist/components/p-C9d-OiqW.js.map +1 -0
  156. package/dist/components/p-CNDZcJZC.js +77 -0
  157. package/dist/components/p-CNDZcJZC.js.map +1 -0
  158. package/dist/components/p-CQr7nmKb.js +59 -0
  159. package/dist/components/p-CQr7nmKb.js.map +1 -0
  160. package/dist/components/p-CdEexh_g.js +84 -0
  161. package/dist/components/p-CdEexh_g.js.map +1 -0
  162. package/dist/components/{p-IGbuOsUA.js → p-CdL5cKO8.js} +4 -4
  163. package/dist/components/{p-IGbuOsUA.js.map → p-CdL5cKO8.js.map} +1 -1
  164. package/dist/components/p-ChfFmzMa.js +138 -0
  165. package/dist/components/p-ChfFmzMa.js.map +1 -0
  166. package/dist/components/{p-CnIzN0a9.js → p-CiKsFis4.js} +5 -5
  167. package/dist/components/{p-CnIzN0a9.js.map → p-CiKsFis4.js.map} +1 -1
  168. package/dist/components/{p-BlTHDG0s.js → p-CixKuBuL.js} +13 -13
  169. package/dist/components/{p-BlTHDG0s.js.map → p-CixKuBuL.js.map} +1 -1
  170. package/dist/components/{p-D1o9mMCC.js → p-CoH616os.js} +7 -25
  171. package/dist/components/p-CoH616os.js.map +1 -0
  172. package/dist/components/p-Cotorbsf.js +72 -0
  173. package/dist/components/p-Cotorbsf.js.map +1 -0
  174. package/dist/components/{p-GHcj9VUq.js → p-DIeSYRR1.js} +4 -4
  175. package/dist/components/{p-GHcj9VUq.js.map → p-DIeSYRR1.js.map} +1 -1
  176. package/dist/components/{p-D3p38qOI.js → p-DKOj6SYm.js} +4 -4
  177. package/dist/components/{p-D3p38qOI.js.map → p-DKOj6SYm.js.map} +1 -1
  178. package/dist/components/{p-D3GPRslH.js → p-DLF5DiJI.js} +10 -10
  179. package/dist/components/{p-D3GPRslH.js.map → p-DLF5DiJI.js.map} +1 -1
  180. package/dist/components/p-DOULSSR_.js +115 -0
  181. package/dist/components/p-DOULSSR_.js.map +1 -0
  182. package/dist/components/{p-CEGQ-SIb.js → p-Dc4pAKEn.js} +4 -4
  183. package/dist/components/{p-CEGQ-SIb.js.map → p-Dc4pAKEn.js.map} +1 -1
  184. package/dist/components/{p-RoGGAmRf.js → p-DeaQdy4U.js} +4 -4
  185. package/dist/components/{p-RoGGAmRf.js.map → p-DeaQdy4U.js.map} +1 -1
  186. package/dist/components/{p-8QmwtD0L.js → p-DkIrni0i.js} +9 -7
  187. package/dist/components/p-DkIrni0i.js.map +1 -0
  188. package/dist/components/p-DlVSEuX7.js +77 -0
  189. package/dist/components/p-DlVSEuX7.js.map +1 -0
  190. package/dist/components/p-DsRfjAri.js +77 -0
  191. package/dist/components/p-DsRfjAri.js.map +1 -0
  192. package/dist/components/p-DxZasSi4.js +91 -0
  193. package/dist/components/p-DxZasSi4.js.map +1 -0
  194. package/dist/components/p-TVDCAFDo.js +77 -0
  195. package/dist/components/p-TVDCAFDo.js.map +1 -0
  196. package/dist/components/{p-B9qKX3S0.js → p-V-QJ5j_K.js} +13 -9
  197. package/dist/components/p-V-QJ5j_K.js.map +1 -0
  198. package/dist/components/p-eh-K0ick.js +77 -0
  199. package/dist/components/p-eh-K0ick.js.map +1 -0
  200. package/dist/components/p-rAwrmsb9.js +75 -0
  201. package/dist/components/p-rAwrmsb9.js.map +1 -0
  202. package/dist/components/p-vll2Fgrb.js +160 -0
  203. package/dist/components/p-vll2Fgrb.js.map +1 -0
  204. package/dist/esm/loader.js +1 -1
  205. package/dist/esm/{ls-document-options_35.entry.js → ls-document-options_36.entry.js} +501 -129
  206. package/dist/esm/ls-document-options_36.entry.js.map +1 -0
  207. package/dist/esm/ls-document-viewer.js +1 -1
  208. package/dist/ls-document-viewer/defaultPalette-C00GqV9f.js.map +1 -1
  209. package/dist/ls-document-viewer/editorUtils-CHIJ1jsX.js +196 -0
  210. package/dist/ls-document-viewer/editorUtils-CHIJ1jsX.js.map +1 -0
  211. package/dist/ls-document-viewer/editorUtils-DsvPQaAu.js +197 -0
  212. package/dist/ls-document-viewer/editorUtils-DsvPQaAu.js.map +1 -0
  213. package/dist/ls-document-viewer/ls-document-viewer.entry.js +120 -15
  214. package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -1
  215. package/dist/ls-document-viewer/ls-editor-field.entry.js +133 -0
  216. package/dist/ls-document-viewer/ls-field-properties-date.entry.js +34 -0
  217. package/dist/ls-document-viewer/ls-field-properties-email.entry.js +34 -0
  218. package/dist/ls-document-viewer/ls-field-properties-file.entry.js +34 -0
  219. package/dist/ls-document-viewer/ls-field-properties-general.entry.js +32 -0
  220. package/dist/ls-document-viewer/ls-field-properties-image.entry.js +34 -0
  221. package/dist/ls-document-viewer/ls-field-properties-number.entry.js +34 -0
  222. package/dist/ls-document-viewer/ls-field-properties-text.entry.js +34 -0
  223. package/dist/ls-document-viewer/ls-statusbar.entry.js +57 -0
  224. package/dist/ls-document-viewer/{p-85c0f6fa.entry.js → p-022e8e6d.entry.js} +21 -6
  225. package/dist/ls-document-viewer/p-022e8e6d.entry.js.map +1 -0
  226. package/dist/types/components/ls-document-viewer/adapter/LsDocumentAdapter.d.ts +1 -0
  227. package/dist/types/components/ls-document-viewer/adapter/groupActions.d.ts +2 -0
  228. package/dist/types/components/ls-document-viewer/defaultFieldIcons.d.ts +5 -0
  229. package/dist/types/components/ls-document-viewer/editorUtils.d.ts +6 -1
  230. package/dist/types/components/ls-document-viewer/ls-document-viewer.d.ts +2 -0
  231. package/dist/types/components/ls-field-footer/ls-field-footer.d.ts +14 -0
  232. package/dist/types/components/ls-field-properties-date/ls-field-properties-date.d.ts +2 -0
  233. package/dist/types/components/ls-field-properties-email/ls-field-properties-email.d.ts +2 -0
  234. package/dist/types/components/ls-field-properties-file/ls-field-properties-file.d.ts +2 -0
  235. package/dist/types/components/ls-field-properties-general/ls-field-properties-general.d.ts +2 -0
  236. package/dist/types/components/ls-field-properties-image/ls-field-properties-image.d.ts +2 -0
  237. package/dist/types/components/ls-field-properties-multiple/ls-field-properties-multiple.d.ts +14 -0
  238. package/dist/types/components/ls-field-properties-number/ls-field-properties-number.d.ts +2 -0
  239. package/dist/types/components/ls-field-properties-signature/ls-field-properties-signature.d.ts +5 -0
  240. package/dist/types/components/ls-field-properties-text/ls-field-properties-text.d.ts +2 -0
  241. package/dist/types/components/ls-participant-select/ls-participant-select.d.ts +2 -0
  242. package/dist/types/components/ls-toolbox-field/ls-toolbox-field.d.ts +4 -0
  243. package/dist/types/components.d.ts +119 -0
  244. package/dist/types/types/Icon.d.ts +1 -0
  245. package/package.json +1 -1
  246. package/dist/cjs/ls-document-options_35.cjs.entry.js.map +0 -1
  247. package/dist/components/p-8QmwtD0L.js.map +0 -1
  248. package/dist/components/p-B1Q1LddX.js +0 -49
  249. package/dist/components/p-B1Q1LddX.js.map +0 -1
  250. package/dist/components/p-B1X25Dz_.js +0 -49
  251. package/dist/components/p-B1X25Dz_.js.map +0 -1
  252. package/dist/components/p-B9qKX3S0.js.map +0 -1
  253. package/dist/components/p-BI9SKPKN.js +0 -51
  254. package/dist/components/p-BI9SKPKN.js.map +0 -1
  255. package/dist/components/p-BNKSb1yR.js +0 -49
  256. package/dist/components/p-BNKSb1yR.js.map +0 -1
  257. package/dist/components/p-BxXqIouU.js +0 -49
  258. package/dist/components/p-BxXqIouU.js.map +0 -1
  259. package/dist/components/p-C93Q3D_9.js +0 -49
  260. package/dist/components/p-C93Q3D_9.js.map +0 -1
  261. package/dist/components/p-CF583nkL.js +0 -99
  262. package/dist/components/p-CF583nkL.js.map +0 -1
  263. package/dist/components/p-CTraMHE_.js +0 -49
  264. package/dist/components/p-CTraMHE_.js.map +0 -1
  265. package/dist/components/p-CgRZ91kw.js +0 -124
  266. package/dist/components/p-CgRZ91kw.js.map +0 -1
  267. package/dist/components/p-CjicL5jA.js.map +0 -1
  268. package/dist/components/p-Ct78kJaE.js +0 -49
  269. package/dist/components/p-Ct78kJaE.js.map +0 -1
  270. package/dist/components/p-D1o9mMCC.js.map +0 -1
  271. package/dist/components/p-D4wPRNKc.js +0 -86
  272. package/dist/components/p-D4wPRNKc.js.map +0 -1
  273. package/dist/components/p-DC7lKZUf.js +0 -49
  274. package/dist/components/p-DC7lKZUf.js.map +0 -1
  275. package/dist/components/p-DTWaVEKo.js.map +0 -1
  276. package/dist/components/p-DtHDNV_x.js.map +0 -1
  277. package/dist/components/p-Dxupmj0q.js +0 -63
  278. package/dist/components/p-Dxupmj0q.js.map +0 -1
  279. package/dist/components/p-RFw2Bsri.js +0 -72
  280. package/dist/components/p-RFw2Bsri.js.map +0 -1
  281. package/dist/components/p-pHw5Xziq.js +0 -154
  282. package/dist/components/p-pHw5Xziq.js.map +0 -1
  283. package/dist/components/p-py-rQZsT.js.map +0 -1
  284. package/dist/esm/ls-document-options_35.entry.js.map +0 -1
  285. package/dist/ls-document-viewer/editorUtils-DbS95k5h.js.map +0 -1
  286. package/dist/ls-document-viewer/ls-document-viewer.entry.esm.js.map +0 -1
  287. package/dist/ls-document-viewer/ls-document-viewer.entry.js.map +0 -1
  288. package/dist/ls-document-viewer/p-85c0f6fa.entry.js.map +0 -1
@@ -16,7 +16,7 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["ls-document-options_35",[[257,"ls-document-viewer",{"template":[1],"token":[1],"templateid":[1],"zoom":[1026],"pageNum":[1026,"page-num"],"signer":[1026],"mode":[1],"manager":[1025],"displayTable":[1028,"display-table"],"showtoolbox":[4],"showtoolbar":[4],"showstatusbar":[4],"showpagepreview":[4],"showrightpanel":[4],"expandfields":[4],"readonly":[4],"showtableview":[4],"toolboxFilter":[1,"toolbox-filter"],"roleColors":[16,"role-colors"],"_template":[32],"selected":[32],"pageNext":[64],"pagePrev":[64],"setZoom":[64]},[[0,"mutate","mutateHandler"],[0,"update","updateHandler"],[0,"selectFields","selectFieldsHandler"],[0,"roleChange","roleHandler"]],{"mode":["modeHandler"],"displayTable":["tableViewHandler"]}],[257,"ls-field-properties",{"dataItem":[16,"data-item"]}],[257,"ls-document-options",{"template":[16]},null,{"template":["selectedHandler"]}],[257,"ls-toolbar",{"dataItem":[1040,"data-item"],"template":[16],"editor":[16]}],[257,"ls-feature-column",{"manager":[1025]}],[257,"ls-participant-manager",{"editor":[16],"template":[16]}],[257,"ls-statusbar",{"zoom":[1026],"editor":[16]}],[257,"ls-toolbox-field",{"formElementType":[1,"form-element-type"],"elementType":[1,"element-type"],"validation":[2],"label":[1],"icon":[1],"defaultHeight":[2,"default-height"],"defaultWidth":[2,"default-width"]},[[1,"dragstart","handleDragStart"],[0,"keydown","handleKeyDown"]]],[257,"ls-editor-field",{"dataItem":[1040,"data-item"],"selected":[4],"readonly":[4],"palette":[16],"type":[1],"page":[16],"isEditing":[32],"heldEdge":[32],"isEdgeDragging":[32],"innerValue":[32]},[[0,"keydown","handleInput"],[3,"mousemove","handleMouseMove"],[2,"dblclick","handleDoubleClick"],[0,"dragstart","handleDragStart"]],{"selected":["watchSelectedHandler"]}],[257,"ls-editor-table",{"editor":[16]}],[260,"ls-formfield",{"name":[1],"fieldId":[1,"field-id"],"label":[1],"as":[1],"value":[1032],"placeholder":[1],"descriptionText":[1,"description-text"],"errorText":[1,"error-text"],"aria":[1],"inputRef":[1,"input-ref"],"infoTooltipText":[1,"info-tooltip-text"],"hoverTooltipText":[1,"hover-tooltip-text"],"disabled":[4],"extraLabel":[1,"extra-label"],"required":[4],"valid":[4],"dirty":[4],"count":[4],"countMax":[2,"count-max"],"buttonClick":[16,"button-click"],"buttonIcon":[1,"button-icon"],"labelIcon":[1,"label-icon"],"fieldIcon":[1,"field-icon"],"_value":[32]},null,{"value":["valueWatcher"]}],[257,"ls-field-properties-signature",{"dataItem":[16,"data-item"],"fieldSet":[1,"field-set"]}],[257,"ls-field-properties-autosign",{"dataItem":[16,"data-item"]}],[257,"ls-field-properties-date",{"dataItem":[16,"data-item"]}],[257,"ls-field-properties-email",{"dataItem":[16,"data-item"]}],[257,"ls-field-properties-file",{"dataItem":[16,"data-item"]}],[257,"ls-field-properties-general",{"dataItem":[16,"data-item"]}],[257,"ls-field-properties-image",{"dataItem":[16,"data-item"]}],[257,"ls-field-properties-multiple",{"dataItem":[16,"data-item"]}],[257,"ls-field-properties-number",{"dataItem":[16,"data-item"]}],[257,"ls-field-properties-text",{"dataItem":[16,"data-item"]}],[257,"ls-field-alignment",{"dataItem":[1040,"data-item"]}],[257,"ls-field-distribute",{"dataItem":[1040,"data-item"]}],[257,"ls-field-format",{"dataItem":[1040,"data-item"]}],[257,"ls-participant-select",{"dataItem":[1040,"data-item"],"roles":[16],"selectedRole":[32],"isOpen":[32]}],[257,"ls-field-size",{"dataItem":[1040,"data-item"]}],[257,"ls-field-placement",{"dataItem":[1040,"data-item"]}],[257,"ls-number-input",{"type":[1],"name":[1],"value":[1026],"placeholder":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"required":[4],"valid":[4],"dirty":[4],"countMax":[2,"count-max"],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"]}],[256,"ls-radio-input",{"radioId":[1,"radio-id"],"label":[1],"icon":[1],"name":[1],"checked":[4],"disabled":[4],"customStyle":[16,"custom-style"]}],[260,"ls-select-input",{"name":[1],"value":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"displayOnly":[4,"display-only"],"required":[4],"valid":[4],"dirty":[4],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"]}],[257,"ls-text-input",{"type":[1],"name":[1],"value":[1025],"placeholder":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"required":[4],"valid":[4],"dirty":[4],"countMax":[2,"count-max"],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"],"showPassword":[32]}],[257,"ls-textarea-input",{"name":[1],"value":[1],"placeholder":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"displayOnly":[4,"display-only"],"required":[4],"valid":[4],"dirty":[4],"countMax":[2,"count-max"],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"]}],[257,"ls-toggle"],[257,"ls-field-dimensions",{"dataItem":[1040,"data-item"]}],[257,"ls-icon",{"name":[1],"solid":[4],"size":[1],"customStyle":[16,"custom-style"]}]]]], options);
19
+ return bootstrapLazy([["ls-document-options_36",[[257,"ls-document-viewer",{"template":[1],"token":[1],"templateid":[1],"zoom":[1026],"pageNum":[1026,"page-num"],"signer":[1026],"mode":[1],"manager":[1025],"displayTable":[1028,"display-table"],"showtoolbox":[4],"showtoolbar":[4],"showstatusbar":[4],"showpagepreview":[4],"showrightpanel":[4],"expandfields":[4],"readonly":[4],"showtableview":[4],"toolboxFilter":[1,"toolbox-filter"],"roleColors":[16,"role-colors"],"_template":[32],"_group":[32],"selected":[32],"pageNext":[64],"pagePrev":[64],"setZoom":[64]},[[0,"mutate","mutateHandler"],[0,"update","updateHandler"],[0,"selectFields","selectFieldsHandler"],[0,"roleChange","roleHandler"]],{"mode":["modeHandler"],"displayTable":["tableViewHandler"]}],[257,"ls-field-properties",{"dataItem":[16,"data-item"]}],[257,"ls-document-options",{"template":[16]},null,{"template":["selectedHandler"]}],[257,"ls-toolbar",{"dataItem":[1040,"data-item"],"template":[16],"editor":[16]}],[257,"ls-feature-column",{"manager":[1025]}],[257,"ls-participant-manager",{"editor":[16],"template":[16]}],[257,"ls-statusbar",{"zoom":[1026],"editor":[16]}],[257,"ls-toolbox-field",{"formElementType":[1,"form-element-type"],"elementType":[1,"element-type"],"validation":[2],"label":[1],"icon":[1],"defaultHeight":[2,"default-height"],"defaultWidth":[2,"default-width"],"color":[1]},[[1,"dragstart","handleDragStart"],[0,"keydown","handleKeyDown"]]],[257,"ls-editor-field",{"dataItem":[1040,"data-item"],"selected":[4],"readonly":[4],"palette":[16],"type":[1],"page":[16],"isEditing":[32],"heldEdge":[32],"isEdgeDragging":[32],"innerValue":[32]},[[0,"keydown","handleInput"],[3,"mousemove","handleMouseMove"],[2,"dblclick","handleDoubleClick"],[0,"dragstart","handleDragStart"]],{"selected":["watchSelectedHandler"]}],[257,"ls-editor-table",{"editor":[16]}],[257,"ls-field-properties-multiple",{"dataItem":[16,"data-item"],"fieldSet":[1,"field-set"]}],[260,"ls-formfield",{"name":[1],"fieldId":[1,"field-id"],"label":[1],"as":[1],"value":[1032],"placeholder":[1],"descriptionText":[1,"description-text"],"errorText":[1,"error-text"],"aria":[1],"inputRef":[1,"input-ref"],"infoTooltipText":[1,"info-tooltip-text"],"hoverTooltipText":[1,"hover-tooltip-text"],"disabled":[4],"extraLabel":[1,"extra-label"],"required":[4],"valid":[4],"dirty":[4],"count":[4],"countMax":[2,"count-max"],"buttonClick":[16,"button-click"],"buttonIcon":[1,"button-icon"],"labelIcon":[1,"label-icon"],"fieldIcon":[1,"field-icon"],"_value":[32]},null,{"value":["valueWatcher"]}],[257,"ls-field-properties-signature",{"dataItem":[1040,"data-item"],"fieldSet":[1,"field-set"]}],[257,"ls-field-properties-date",{"dataItem":[16,"data-item"],"fieldSet":[1,"field-set"]}],[257,"ls-field-properties-email",{"dataItem":[16,"data-item"],"fieldSet":[1,"field-set"]}],[257,"ls-field-properties-file",{"dataItem":[16,"data-item"],"fieldSet":[1,"field-set"]}],[257,"ls-field-properties-general",{"dataItem":[16,"data-item"],"fieldSet":[1,"field-set"]}],[257,"ls-field-properties-image",{"dataItem":[16,"data-item"],"fieldSet":[1,"field-set"]}],[257,"ls-field-properties-number",{"dataItem":[16,"data-item"],"fieldSet":[1,"field-set"]}],[257,"ls-field-properties-text",{"dataItem":[16,"data-item"],"fieldSet":[1,"field-set"]}],[257,"ls-field-properties-autosign",{"dataItem":[16,"data-item"]}],[257,"ls-field-format",{"dataItem":[1040,"data-item"]}],[257,"ls-participant-select",{"dataItem":[1040,"data-item"],"roles":[16],"selectedRole":[32],"isOpen":[32]}],[257,"ls-field-alignment",{"dataItem":[1040,"data-item"]}],[257,"ls-field-distribute",{"dataItem":[1040,"data-item"]}],[257,"ls-field-size",{"dataItem":[1040,"data-item"]}],[257,"ls-number-input",{"type":[1],"name":[1],"value":[1026],"placeholder":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"required":[4],"valid":[4],"dirty":[4],"countMax":[2,"count-max"],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"]}],[256,"ls-radio-input",{"radioId":[1,"radio-id"],"label":[1],"icon":[1],"name":[1],"checked":[4],"disabled":[4],"customStyle":[16,"custom-style"]}],[260,"ls-select-input",{"name":[1],"value":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"displayOnly":[4,"display-only"],"required":[4],"valid":[4],"dirty":[4],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"]}],[257,"ls-text-input",{"type":[1],"name":[1],"value":[1025],"placeholder":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"required":[4],"valid":[4],"dirty":[4],"countMax":[2,"count-max"],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"],"showPassword":[32]}],[257,"ls-textarea-input",{"name":[1],"value":[1],"placeholder":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"displayOnly":[4,"display-only"],"required":[4],"valid":[4],"dirty":[4],"countMax":[2,"count-max"],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"]}],[257,"ls-field-footer",{"dataItem":[1040,"data-item"]}],[257,"ls-field-placement",{"dataItem":[1040,"data-item"]}],[257,"ls-field-dimensions",{"dataItem":[1040,"data-item"]}],[257,"ls-toggle"],[257,"ls-icon",{"name":[1],"solid":[4],"size":[1],"customStyle":[16,"custom-style"]}]]]], options);
20
20
  });
21
21
  //# sourceMappingURL=ls-document-viewer.js.map
22
22
 
@@ -1 +1 @@
1
- {"version":3,"file":"defaultPalette-C00GqV9f.js","sources":["src/components/ls-document-viewer/defaultPalette.ts"],"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"],"names":[],"mappings":"AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEO,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;;;;"}
1
+ {"version":3,"file":"defaultPalette-C00GqV9f.js","sources":["src/components/ls-document-viewer/defaultPalette.ts"],"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"],"names":[],"mappings":"AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEO,MAAM,kBAAkB,GAAa,CAAC,MAAM,EAAE,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;;;;"}
@@ -0,0 +1,196 @@
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
+ 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
+ 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
+ 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
+ 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
+ function matchData(data) {
41
+ const newObj = data.result;
42
+ const prefix = atob(data.obj.id).substring(0, 3);
43
+ // because mutations return the ID back with the mutation name we just assume its the first (and only) JSON prop
44
+ const id = newObj[Object.keys(newObj)[0]];
45
+ if (data.event.action === 'create') {
46
+ if (prefix === 'ele') {
47
+ const fi = this.component.shadowRoot.getElementById('ls-field-' + data.obj.id);
48
+ fi.setAttribute('id', 'ls-field-' + id);
49
+ fi.dataItem = { ...data.obj, id };
50
+ }
51
+ else if (prefix === 'rol') {
52
+ var participantManager = this.component.shadowRoot.getElementById('ls-participant-manager');
53
+ this._template = { ...this._template, roles: [...this._template.roles, { ...data.obj, id }] };
54
+ participantManager.template = this._template;
55
+ }
56
+ }
57
+ else if (data.event.action === 'delete') {
58
+ if (prefix === 'rol') {
59
+ var participantManager = this.component.shadowRoot.getElementById('ls-participant-manager');
60
+ this._template = { ...this._template, roles: this._template.roles.filter(r => r.id !== id) };
61
+ participantManager.template = this._template;
62
+ }
63
+ }
64
+ }
65
+ // Utility function which extracts the type from any API id
66
+ function getApiType(obj) {
67
+ if (!obj?.id)
68
+ return 'invalid';
69
+ const apiId = atob(obj.id);
70
+ if (apiId.length < 3)
71
+ return 'invalid';
72
+ const prefix = atob(obj.id).substring(0, 3);
73
+ switch (prefix) {
74
+ case 'ele':
75
+ return 'element';
76
+ case 'rol':
77
+ return 'role';
78
+ case 'tpl':
79
+ return 'template';
80
+ case 'doc':
81
+ return 'document';
82
+ default:
83
+ return 'unknown';
84
+ }
85
+ }
86
+ const validationTypes = [
87
+ { id: 0, description: 'general purpose', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
88
+ { id: 30, description: 'yyyy/mm/dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
89
+ { id: 31, description: 'yy/mm/dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
90
+ { id: 32, description: 'dd/mm/yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
91
+ { id: 33, description: 'dd/mm/yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
92
+ { id: 34, description: 'mm/dd/yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
93
+ { id: 35, description: 'mm/dd/yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
94
+ { id: 36, description: 'yyyy.mm.dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
95
+ { id: 37, description: 'yy.mm.dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
96
+ { id: 38, description: 'dd.mm.yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
97
+ { id: 39, description: 'dd.mm.yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
98
+ { id: 40, description: 'mm.dd.yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
99
+ { id: 41, description: 'mm.dd.yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
100
+ { id: 42, description: 'yyyy-mm-dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
101
+ { id: 43, description: 'yy-mm-dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
102
+ { id: 44, description: 'dd-mm-yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
103
+ { id: 45, description: 'dd-mm-yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
104
+ { id: 46, description: 'mm-dd-yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
105
+ { id: 47, description: 'mm-dd-yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
106
+ { id: 48, description: 'd mmmm yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
107
+ { id: 73, description: 'Secret Code', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
108
+ { id: 77, description: 'Title caps (force text to title caps)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
109
+ { id: 78, description: 'Uppercase (force text to uppercase)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
110
+ { id: 79, description: 'Lowercase (force text to lowercase)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
111
+ { id: 65, description: '1 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
112
+ { id: 66, description: '2 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
113
+ { id: 67, description: '3 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
114
+ { id: 68, description: '4 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
115
+ { id: 69, description: '5 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
116
+ { id: 70, description: '6 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
117
+ { id: 71, description: '7 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
118
+ { id: 72, description: '8 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
119
+ { id: 1000, description: 'First name field (special use)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
120
+ { id: 1001, description: 'Last name field (special use)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
121
+ { id: 1, description: 'Email', formType: 'email', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
122
+ { id: 1002, description: 'Email field (special use)', formType: 'email', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
123
+ { id: 50, description: 'Whole number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'number' },
124
+ { id: 51, description: 'Number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
125
+ { id: 52, description: 'Currency', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
126
+ { id: 53, description: '1 number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
127
+ { id: 54, description: '2 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
128
+ { id: 55, description: '3 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
129
+ { id: 56, description: '4 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
130
+ { id: 57, description: '5 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
131
+ { id: 58, description: '6 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
132
+ { id: 59, description: '7 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
133
+ { id: 60, description: '8 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
134
+ { id: 61, description: '9 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
135
+ { id: 62, description: '10 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
136
+ { id: 63, description: '11 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
137
+ { id: 64, description: '12 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
138
+ { id: 2, description: 'yyyy/mm/dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'date' },
139
+ { id: 3, description: 'yy/mm/dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
140
+ { id: 4, description: 'dd/mm/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'date' },
141
+ { id: 5, description: 'dd/mm/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
142
+ { id: 6, description: 'mm/dd/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
143
+ { id: 7, description: 'mm/dd/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
144
+ { id: 80, description: 'mm/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
145
+ { id: 81, description: 'mm/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
146
+ { id: 8, description: 'yyyy.mm.dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
147
+ { id: 9, description: 'yy.mm.dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
148
+ { id: 10, description: 'dd.mm.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
149
+ { id: 11, description: 'dd.mm.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
150
+ { id: 12, description: 'mm.dd.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
151
+ { id: 13, description: 'mm.dd.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
152
+ { id: 82, description: 'mm.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
153
+ { id: 83, description: 'mm.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
154
+ { id: 14, description: 'yyyy-mm-dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
155
+ { id: 15, description: 'yy-mm-dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
156
+ { id: 16, description: 'dd-mm-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
157
+ { id: 17, description: 'dd-mm-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
158
+ { id: 18, description: 'mm-dd-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
159
+ { id: 19, description: 'mm-dd-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
160
+ { id: 84, description: 'mm-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
161
+ { id: 85, description: 'mm-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
162
+ { id: 20, description: 'Dropdown List', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
163
+ { id: 91, description: 'Countries', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
164
+ { id: 92, description: 'Name prefix titles', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
165
+ { id: 24, description: '✔/✗', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
166
+ { id: 25, description: '✔/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
167
+ { id: 26, description: '✗/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 16, typeDefault: false, inputType: 'text' },
168
+ { id: 74, description: 'File: attach to confirmatory email to sender', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
169
+ { id: 75, description: 'File: append to PDF, PDF files only', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
170
+ {
171
+ id: 76,
172
+ description: 'File: zip with PDF (for internal view, signed PDF for signer)',
173
+ formType: 'file',
174
+ defaultHeight: 16,
175
+ defaultWidth: 200,
176
+ typeDefault: false,
177
+ inputType: 'text',
178
+ },
179
+ { id: 90, description: 'Drawn field.', formType: 'drawn field', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
180
+ { id: 2000, description: 'Initials', formType: 'initials', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
181
+ { id: 93, description: 'Regular Expression field', formType: 'regular expression', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
182
+ { id: 3000, description: 'Auto Sign', formType: 'auto sign', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
183
+ { id: 4000, description: 'Text Area', formType: 'textarea', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'readonly' },
184
+ ];
185
+ // See validation table in database for latest values - these have to be hard coded for our HTML control - ASW
186
+ function getInputType(validation) {
187
+ if (validation === null)
188
+ return validationTypes[0];
189
+ const inputType = validationTypes.find(v => v.id === validation);
190
+ return inputType === null ? validationTypes[0] : inputType;
191
+ }
192
+
193
+ export { alter as a, getInputType as b, debounce as d, getApiType as g, matchData as m, oob as o, validationTypes as v };
194
+ //# sourceMappingURL=editorUtils-CHIJ1jsX.js.map
195
+
196
+ //# sourceMappingURL=editorUtils-CHIJ1jsX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editorUtils-CHIJ1jsX.js","sources":["src/components/ls-document-viewer/editorUtils.ts"],"sourcesContent":["/**\n * These utils are used to make document-viewer more readable\n * but they must be called using the bind() function so that\n * all code is executed within the correct 'this' scope.\n *\n * Avoid using arrow functions here as they reassign \"thiss\"\n */\n\nimport { LSApiElement } from '../../types/LSApiElement';\nimport { LSMutateEvent } from '../../types/LSMutateEvent';\nimport { ValidationType } from '../../types/ValidationType';\n\n/**\n * Determines if an element will be plotted out of bounds, i.e. off\n * the page.\n */\nexport function oob(obj: LSApiElement): boolean {\n if (obj.left + obj.width > obj.pageDimensions.width || obj.top < 0 || obj.left < 0 || obj.top + obj.height > obj.pageDimensions.height) return true;\n else return false;\n}\n\nexport function alter(diffFn) {\n const diffs: LSMutateEvent[] = this.selected.map(c => {\n return { action: 'update', data: diffFn(c.dataItem) as LSApiElement };\n });\n this.mutate.emit(diffs);\n this.update.emit(diffs);\n}\n\nexport function resetDataItems() {\n const fields = this.component.shadowRoot.querySelectorAll('ls-editor-field') as HTMLLsEditorFieldElement[];\n this.selected = Array.from(fields).filter(fx => fx.selected);\n this.selectFields.emit(this.selected.map(fx => fx.dataItem));\n}\n\nexport function debounce(func, timeout = 300) {\n let timer;\n return (...args) => {\n clearTimeout(timer);\n timer = setTimeout(() => {\n func.apply(this, args);\n }, timeout);\n };\n}\n\n// if a mutation has created a new id then update the dataitem with OLD id to the new one\nexport function matchData(data: { result: any; obj: any; event: LSMutateEvent }) {\n const newObj = data.result;\n const prefix = atob(data.obj.id).substring(0, 3);\n // because mutations return the ID back with the mutation name we just assume its the first (and only) JSON prop\n const id = newObj[Object.keys(newObj)[0]];\n\n if (data.event.action === 'create') {\n if (prefix === 'ele') {\n const fi = this.component.shadowRoot.getElementById('ls-field-' + data.obj.id) as HTMLLsEditorFieldElement;\n\n fi.setAttribute('id', 'ls-field-' + id);\n fi.dataItem = { ...data.obj, id };\n } else if (prefix === 'rol') {\n var participantManager = this.component.shadowRoot.getElementById('ls-participant-manager') as HTMLLsParticipantManagerElement;\n\n this._template = { ...this._template, roles: [...this._template.roles, { ...data.obj, id }] };\n participantManager.template = this._template;\n }\n } else if (data.event.action === 'delete') {\n if (prefix === 'rol') {\n var participantManager = this.component.shadowRoot.getElementById('ls-participant-manager') as HTMLLsParticipantManagerElement;\n this._template = { ...this._template, roles: this._template.roles.filter(r => r.id !== id) };\n participantManager.template = this._template;\n }\n }\n}\n\n// Utility function which extracts the type from any API id\nexport function getApiType(obj: any) {\n if (!obj?.id) return 'invalid';\n\n const apiId = atob(obj.id);\n if (apiId.length < 3) return 'invalid';\n\n const prefix = atob(obj.id).substring(0, 3);\n\n switch (prefix) {\n case 'ele':\n return 'element';\n case 'rol':\n return 'role';\n case 'tpl':\n return 'template';\n case 'doc':\n return 'document';\n default:\n return 'unknown';\n }\n}\n\nexport const validationTypes: any = [\n { id: 0, description: 'general purpose', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 30, description: 'yyyy/mm/dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 31, description: 'yy/mm/dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 32, description: 'dd/mm/yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 33, description: 'dd/mm/yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 34, description: 'mm/dd/yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 35, description: 'mm/dd/yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 36, description: 'yyyy.mm.dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 37, description: 'yy.mm.dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 38, description: 'dd.mm.yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 39, description: 'dd.mm.yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 40, description: 'mm.dd.yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 41, description: 'mm.dd.yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 42, description: 'yyyy-mm-dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 43, description: 'yy-mm-dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 44, description: 'dd-mm-yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 45, description: 'dd-mm-yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 46, description: 'mm-dd-yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 47, description: 'mm-dd-yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 48, description: 'd mmmm yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 73, description: 'Secret Code', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 77, description: 'Title caps (force text to title caps)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 78, description: 'Uppercase (force text to uppercase)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 79, description: 'Lowercase (force text to lowercase)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 65, description: '1 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 66, description: '2 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 67, description: '3 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 68, description: '4 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 69, description: '5 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 70, description: '6 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 71, description: '7 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 72, description: '8 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 1000, description: 'First name field (special use)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 1001, description: 'Last name field (special use)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 1, description: 'Email', formType: 'email', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 1002, description: 'Email field (special use)', formType: 'email', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 50, description: 'Whole number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'number' },\n { id: 51, description: 'Number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 52, description: 'Currency', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 53, description: '1 number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 54, description: '2 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 55, description: '3 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 56, description: '4 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 57, description: '5 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 58, description: '6 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 59, description: '7 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 60, description: '8 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 61, description: '9 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 62, description: '10 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 63, description: '11 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 64, description: '12 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 2, description: 'yyyy/mm/dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'date' },\n { id: 3, description: 'yy/mm/dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 4, description: 'dd/mm/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'date' },\n { id: 5, description: 'dd/mm/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 6, description: 'mm/dd/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 7, description: 'mm/dd/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 80, description: 'mm/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 81, description: 'mm/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 8, description: 'yyyy.mm.dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 9, description: 'yy.mm.dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 10, description: 'dd.mm.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 11, description: 'dd.mm.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 12, description: 'mm.dd.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 13, description: 'mm.dd.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 82, description: 'mm.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 83, description: 'mm.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 14, description: 'yyyy-mm-dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 15, description: 'yy-mm-dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 16, description: 'dd-mm-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 17, description: 'dd-mm-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 18, description: 'mm-dd-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 19, description: 'mm-dd-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 84, description: 'mm-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 85, description: 'mm-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 20, description: 'Dropdown List', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 91, description: 'Countries', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 92, description: 'Name prefix titles', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 24, description: '✔/✗', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 25, description: '✔/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 26, description: '✗/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 16, typeDefault: false, inputType: 'text' },\n { id: 74, description: 'File: attach to confirmatory email to sender', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 75, description: 'File: append to PDF, PDF files only', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n {\n id: 76,\n description: 'File: zip with PDF (for internal view, signed PDF for signer)',\n formType: 'file',\n defaultHeight: 16,\n defaultWidth: 200,\n typeDefault: false,\n inputType: 'text',\n },\n { id: 90, description: 'Drawn field.', formType: 'drawn field', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 2000, description: 'Initials', formType: 'initials', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 93, description: 'Regular Expression field', formType: 'regular expression', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 3000, description: 'Auto Sign', formType: 'auto sign', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 4000, description: 'Text Area', formType: 'textarea', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'readonly' },\n];\n\n// See validation table in database for latest values - these have to be hard coded for our HTML control - ASW\nexport function getInputType(validation: number): ValidationType {\n if (validation === null) return validationTypes[0];\n\n const inputType: ValidationType = validationTypes.find(v => v.id === validation);\n\n return inputType === null ? validationTypes[0] : inputType;\n}\n"],"names":[],"mappings":"AAAA;;;;;;AAMG;AAMH;;;AAGG;AACG,SAAU,GAAG,CAAC,GAAiB,EAAA;AACnC,IAAA,IAAI,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,GAAG,CAAC,GAAG,GAAG,CAAC,IAAI,GAAG,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G,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE;;AAG9I;AACM,SAAU,YAAY,CAAC,UAAkB,EAAA;IAC7C,IAAI,UAAU,KAAK,IAAI;AAAE,QAAA,OAAO,eAAe,CAAC,CAAC,CAAC;AAElD,IAAA,MAAM,SAAS,GAAmB,eAAe,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,UAAU,CAAC;AAEhF,IAAA,OAAO,SAAS,KAAK,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS;AAC5D;;;;"}
@@ -0,0 +1,197 @@
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
+ 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
+ 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
+ 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
+ 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
+ function matchData(data) {
41
+ const newObj = data.result;
42
+ const prefix = atob(data.obj.id).substring(0, 3);
43
+ // because mutations return the ID back with the mutation name we just assume its the first (and only) JSON prop
44
+ const id = newObj[Object.keys(newObj)[0]];
45
+ if (data.event.action === 'create') {
46
+ if (prefix === 'ele') {
47
+ const fi = this.component.shadowRoot.getElementById('ls-field-' + data.obj.id);
48
+ fi.setAttribute('id', 'ls-field-' + id);
49
+ fi.dataItem = { ...data.obj, id };
50
+ }
51
+ else if (prefix === 'rol') {
52
+ var participantManager = this.component.shadowRoot.getElementById('ls-participant-manager');
53
+ // Note this respread ensures that re-renders are triggered
54
+ this._template = { ...this._template, roles: [...this._template.roles, { ...data.obj, id }] };
55
+ participantManager.template = this._template;
56
+ }
57
+ }
58
+ else if (data.event.action === 'delete') {
59
+ if (prefix === 'rol') {
60
+ var participantManager = this.component.shadowRoot.getElementById('ls-participant-manager');
61
+ this._template = { ...this._template, roles: this._template.roles.filter(r => r.id !== id) };
62
+ participantManager.template = this._template;
63
+ }
64
+ }
65
+ }
66
+ // Utility function which extracts the type from any API id
67
+ function getApiType(obj) {
68
+ if (!obj?.id)
69
+ return 'invalid';
70
+ const apiId = atob(obj.id);
71
+ if (apiId.length < 3)
72
+ return 'invalid';
73
+ const prefix = atob(obj.id).substring(0, 3);
74
+ switch (prefix) {
75
+ case 'ele':
76
+ return 'element';
77
+ case 'rol':
78
+ return 'role';
79
+ case 'tpl':
80
+ return 'template';
81
+ case 'doc':
82
+ return 'document';
83
+ default:
84
+ return 'unknown';
85
+ }
86
+ }
87
+ const validationTypes = [
88
+ { id: 0, description: 'general purpose', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
89
+ { id: 30, description: 'yyyy/mm/dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
90
+ { id: 31, description: 'yy/mm/dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
91
+ { id: 32, description: 'dd/mm/yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
92
+ { id: 33, description: 'dd/mm/yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
93
+ { id: 34, description: 'mm/dd/yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
94
+ { id: 35, description: 'mm/dd/yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
95
+ { id: 36, description: 'yyyy.mm.dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
96
+ { id: 37, description: 'yy.mm.dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
97
+ { id: 38, description: 'dd.mm.yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
98
+ { id: 39, description: 'dd.mm.yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
99
+ { id: 40, description: 'mm.dd.yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
100
+ { id: 41, description: 'mm.dd.yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
101
+ { id: 42, description: 'yyyy-mm-dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
102
+ { id: 43, description: 'yy-mm-dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
103
+ { id: 44, description: 'dd-mm-yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
104
+ { id: 45, description: 'dd-mm-yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
105
+ { id: 46, description: 'mm-dd-yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
106
+ { id: 47, description: 'mm-dd-yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
107
+ { id: 48, description: 'd mmmm yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
108
+ { id: 73, description: 'Secret Code', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
109
+ { id: 77, description: 'Title caps (force text to title caps)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
110
+ { id: 78, description: 'Uppercase (force text to uppercase)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
111
+ { id: 79, description: 'Lowercase (force text to lowercase)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
112
+ { id: 65, description: '1 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
113
+ { id: 66, description: '2 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
114
+ { id: 67, description: '3 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
115
+ { id: 68, description: '4 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
116
+ { id: 69, description: '5 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
117
+ { id: 70, description: '6 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
118
+ { id: 71, description: '7 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
119
+ { id: 72, description: '8 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
120
+ { id: 1000, description: 'First name field (special use)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
121
+ { id: 1001, description: 'Last name field (special use)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
122
+ { id: 1, description: 'Email', formType: 'email', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
123
+ { id: 1002, description: 'Email field (special use)', formType: 'email', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
124
+ { id: 50, description: 'Whole number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'number' },
125
+ { id: 51, description: 'Number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
126
+ { id: 52, description: 'Currency', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
127
+ { id: 53, description: '1 number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
128
+ { id: 54, description: '2 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
129
+ { id: 55, description: '3 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
130
+ { id: 56, description: '4 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
131
+ { id: 57, description: '5 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
132
+ { id: 58, description: '6 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
133
+ { id: 59, description: '7 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
134
+ { id: 60, description: '8 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
135
+ { id: 61, description: '9 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
136
+ { id: 62, description: '10 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
137
+ { id: 63, description: '11 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
138
+ { id: 64, description: '12 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },
139
+ { id: 2, description: 'yyyy/mm/dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'date' },
140
+ { id: 3, description: 'yy/mm/dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
141
+ { id: 4, description: 'dd/mm/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'date' },
142
+ { id: 5, description: 'dd/mm/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
143
+ { id: 6, description: 'mm/dd/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
144
+ { id: 7, description: 'mm/dd/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
145
+ { id: 80, description: 'mm/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
146
+ { id: 81, description: 'mm/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
147
+ { id: 8, description: 'yyyy.mm.dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
148
+ { id: 9, description: 'yy.mm.dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
149
+ { id: 10, description: 'dd.mm.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
150
+ { id: 11, description: 'dd.mm.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
151
+ { id: 12, description: 'mm.dd.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
152
+ { id: 13, description: 'mm.dd.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
153
+ { id: 82, description: 'mm.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
154
+ { id: 83, description: 'mm.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
155
+ { id: 14, description: 'yyyy-mm-dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
156
+ { id: 15, description: 'yy-mm-dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
157
+ { id: 16, description: 'dd-mm-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
158
+ { id: 17, description: 'dd-mm-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
159
+ { id: 18, description: 'mm-dd-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
160
+ { id: 19, description: 'mm-dd-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
161
+ { id: 84, description: 'mm-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
162
+ { id: 85, description: 'mm-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },
163
+ { id: 20, description: 'Dropdown List', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
164
+ { id: 91, description: 'Countries', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
165
+ { id: 92, description: 'Name prefix titles', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
166
+ { id: 24, description: '✔/✗', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
167
+ { id: 25, description: '✔/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
168
+ { id: 26, description: '✗/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 16, typeDefault: false, inputType: 'text' },
169
+ { id: 74, description: 'File: attach to confirmatory email to sender', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
170
+ { id: 75, description: 'File: append to PDF, PDF files only', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
171
+ {
172
+ id: 76,
173
+ description: 'File: zip with PDF (for internal view, signed PDF for signer)',
174
+ formType: 'file',
175
+ defaultHeight: 16,
176
+ defaultWidth: 200,
177
+ typeDefault: false,
178
+ inputType: 'text',
179
+ },
180
+ { id: 90, description: 'Drawn field.', formType: 'drawn field', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
181
+ { id: 2000, description: 'Initials', formType: 'initials', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
182
+ { id: 93, description: 'Regular Expression field', formType: 'regular expression', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
183
+ { id: 3000, description: 'Auto Sign', formType: 'auto sign', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
184
+ { id: 4000, description: 'Text Area', formType: 'textarea', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'readonly' },
185
+ ];
186
+ // See validation table in database for latest values - these have to be hard coded for our HTML control - ASW
187
+ function getInputType(validation) {
188
+ if (validation === null)
189
+ return validationTypes[0];
190
+ const inputType = validationTypes.find(v => v.id === validation);
191
+ return inputType === null ? validationTypes[0] : inputType;
192
+ }
193
+
194
+ export { alter as a, getInputType as b, debounce as d, getApiType as g, matchData as m, oob as o, validationTypes as v };
195
+ //# sourceMappingURL=editorUtils-DsvPQaAu.js.map
196
+
197
+ //# sourceMappingURL=editorUtils-DsvPQaAu.js.map