legalesign-document-viewer 1.0.0 → 1.0.2

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