@verdocs/web-sdk 1.11.3 → 1.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Envelopes-9886af0f.js → Envelopes-2350fcf1.js} +1 -1
- package/dist/cjs/{Templates-16615cb0.js → Templates-a94ae841.js} +2 -2
- package/dist/cjs/{index-1329d89c.js → index-5e4233b0.js} +57 -0
- package/dist/cjs/{index-eb130f52.js → index-cfa67e73.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{templateStore-198752d5.js → templateStore-4abb214a.js} +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-build.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-button-panel_3.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-checkbox_4.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-document-page_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-attachment.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +5 -4
- package/dist/cjs/verdocs-field-date.cjs.entry.js +5 -4
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +4 -3
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +5 -4
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +4 -3
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +5 -4
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +5 -4
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +5 -4
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +5 -4
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +5 -4
- package/dist/cjs/verdocs-floating-menu.cjs.entry.js +106 -0
- package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-loader.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview.cjs.entry.js +6 -6
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-send.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-sign.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-attachments.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-create_2.cjs.entry.js +71 -36
- package/dist/cjs/verdocs-template-document-page.cjs.entry.js +103 -0
- package/dist/cjs/verdocs-template-name.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-template-properties.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-template-recipients.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-template-reminders.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-template-role-properties_2.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-visibility.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-toolbar-icon.cjs.entry.js +51 -0
- package/dist/cjs/verdocs-upload-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-view.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-web-sdk.cjs.js +2 -2
- package/dist/collection/components/elements/verdocs-template-document-page/verdocs-template-document-page.js +1 -1
- package/dist/collection/components/embeds/verdocs-preview/verdocs-preview.js +2 -2
- package/dist/collection/components/embeds/verdocs-preview/verdocs-preview.stories.js +2 -1
- package/dist/collection/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.js +16 -1
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +16 -1
- package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.js +15 -0
- package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js +16 -1
- package/dist/collection/components/fields/verdocs-field-payment/verdocs-field-payment.js +15 -0
- package/dist/collection/components/fields/verdocs-field-radio-button-group/verdocs-field-radio-button.js +16 -1
- package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js +16 -1
- package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js +16 -1
- package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +16 -1
- package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.js +16 -1
- package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.css +2 -2
- package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.js +22 -12
- package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.css +16 -2
- package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +70 -18
- package/dist/collection/utils/Templates.js +1 -1
- package/dist/components/Templates.js +1 -1
- package/dist/components/verdocs-build.js +4 -10
- package/dist/components/verdocs-field-checkbox.js +2 -1
- package/dist/components/verdocs-field-date.js +2 -1
- package/dist/components/verdocs-field-dropdown.js +1 -0
- package/dist/components/verdocs-field-initial.js +2 -1
- package/dist/components/verdocs-field-payment.js +1 -0
- package/dist/components/verdocs-field-radio-button.js +2 -1
- package/dist/components/verdocs-field-signature.js +2 -1
- package/dist/components/verdocs-field-textarea.js +2 -1
- package/dist/components/verdocs-field-textbox.js +2 -1
- package/dist/components/verdocs-field-timestamp.js +2 -1
- package/dist/components/verdocs-floating-menu.js +123 -1
- package/dist/components/verdocs-preview.js +2 -2
- package/dist/components/verdocs-template-create2.js +23 -13
- package/dist/components/verdocs-template-document-page2.js +1 -1
- package/dist/components/verdocs-template-fields2.js +48 -28
- package/dist/docs.json +128 -21
- package/dist/esm/{Envelopes-b8945309.js → Envelopes-7f3b60de.js} +1 -1
- package/dist/esm/{Templates-2528dad5.js → Templates-a693b275.js} +2 -2
- package/dist/esm/{index-fd7b8a34.js → index-24fd1580.js} +1 -1
- package/dist/esm/{index-f78d163d.js → index-e64d45e2.js} +57 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{templateStore-a7a5149a.js → templateStore-a399f366.js} +1 -1
- package/dist/esm/verdocs-auth.entry.js +1 -1
- package/dist/esm/verdocs-build.entry.js +4 -4
- package/dist/esm/verdocs-button-panel_3.entry.js +4 -4
- package/dist/esm/verdocs-button.entry.js +1 -1
- package/dist/esm/verdocs-checkbox_4.entry.js +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm/verdocs-document-page_2.entry.js +1 -1
- package/dist/esm/verdocs-envelope-sidebar.entry.js +3 -3
- package/dist/esm/verdocs-field-attachment.entry.js +3 -3
- package/dist/esm/verdocs-field-checkbox.entry.js +5 -4
- package/dist/esm/verdocs-field-date.entry.js +5 -4
- package/dist/esm/verdocs-field-dropdown.entry.js +4 -3
- package/dist/esm/verdocs-field-initial.entry.js +5 -4
- package/dist/esm/verdocs-field-payment.entry.js +4 -3
- package/dist/esm/verdocs-field-radio-button.entry.js +5 -4
- package/dist/esm/verdocs-field-signature.entry.js +5 -4
- package/dist/esm/verdocs-field-textarea.entry.js +5 -4
- package/dist/esm/verdocs-field-textbox.entry.js +5 -4
- package/dist/esm/verdocs-field-timestamp.entry.js +5 -4
- package/dist/{components/verdocs-floating-menu2.js → esm/verdocs-floating-menu.entry.js} +8 -31
- package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
- package/dist/esm/verdocs-kba-dialog.entry.js +1 -1
- package/dist/esm/verdocs-loader.entry.js +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm/verdocs-organization-card.entry.js +1 -1
- package/dist/esm/verdocs-preview.entry.js +6 -6
- package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm/verdocs-radio-button.entry.js +1 -1
- package/dist/esm/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-send.entry.js +4 -4
- package/dist/esm/verdocs-sign.entry.js +3 -3
- package/dist/esm/verdocs-signature-dialog.entry.js +1 -1
- package/dist/esm/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm/verdocs-template-attachments.entry.js +4 -4
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/verdocs-template-create_2.entry.js +71 -36
- package/dist/esm/verdocs-template-document-page.entry.js +99 -0
- package/dist/esm/verdocs-template-name.entry.js +4 -4
- package/dist/esm/verdocs-template-properties.entry.js +3 -3
- package/dist/esm/verdocs-template-recipients.entry.js +4 -4
- package/dist/esm/verdocs-template-reminders.entry.js +4 -4
- package/dist/esm/verdocs-template-role-properties_2.entry.js +4 -4
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-template-visibility.entry.js +4 -4
- package/dist/esm/verdocs-toggle-button.entry.js +1 -1
- package/dist/esm/verdocs-toggle.entry.js +1 -1
- package/dist/esm/verdocs-toolbar-icon.entry.js +47 -0
- package/dist/esm/verdocs-upload-dialog.entry.js +1 -1
- package/dist/esm/verdocs-view.entry.js +3 -3
- package/dist/esm/verdocs-web-sdk.js +2 -2
- package/dist/esm-es5/{Envelopes-b8945309.js → Envelopes-7f3b60de.js} +1 -1
- package/dist/esm-es5/{Templates-2528dad5.js → Templates-a693b275.js} +1 -1
- package/dist/esm-es5/{index-fd7b8a34.js → index-24fd1580.js} +1 -1
- package/dist/esm-es5/index-e64d45e2.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{templateStore-a7a5149a.js → templateStore-a399f366.js} +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-button-panel_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-checkbox_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm-es5/verdocs-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
- package/dist/esm-es5/verdocs-floating-menu.entry.js +1 -0
- package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-loader.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-send.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-signature-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-attachments.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-create_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-properties.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-recipients.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-role-properties_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
- package/dist/esm-es5/verdocs-toggle-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
- package/dist/esm-es5/verdocs-toolbar-icon.entry.js +1 -0
- package/dist/esm-es5/verdocs-upload-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-view.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-date/verdocs-field-date.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-initial/verdocs-field-initial.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-payment/verdocs-field-payment.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-radio-button-group/verdocs-field-radio-button.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-signature/verdocs-field-signature.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-textarea/verdocs-field-textarea.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-textbox/verdocs-field-textbox.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.d.ts +6 -0
- package/dist/types/components/templates/verdocs-template-fields/verdocs-template-fields.d.ts +8 -1
- package/dist/types/components.d.ts +48 -0
- package/dist/verdocs-web-sdk/p-0031154e.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-f0022cf0.entry.js → p-02951f09.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6121f103.system.entry.js → p-04bf80c2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f9f0d3b4.system.js → p-0513c8c3.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-37e93857.system.entry.js → p-05581b87.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7d909ce4.entry.js → p-0ccb837b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9fc9596b.system.entry.js → p-0fff0dbd.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f6aa16f3.system.entry.js → p-114d885d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a6c3fcb6.system.entry.js → p-137837c5.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-05f3c7bb.system.entry.js → p-13b8ea53.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-896f1614.entry.js → p-140e1871.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-817e6569.system.entry.js → p-219174fc.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-284ceaf4.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-2a6d69c2.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-30cf9417.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-6e3daf5a.system.js → p-340316cb.system.js} +1 -1
- package/dist/verdocs-web-sdk/p-36dff44e.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-9b7d218c.system.entry.js → p-3b3ba829.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-686608f0.entry.js → p-3d4b366c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-3db71b58.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-06512901.entry.js → p-408caf2e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-741a34fc.entry.js → p-4340cdc2.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7c2ce3ba.system.entry.js → p-44feafae.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-45447db5.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-d85e61ee.system.entry.js → p-457d3af9.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-edcd7d44.entry.js → p-46c17ff0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5a63da92.system.entry.js → p-486d9b7d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-49a34d3f.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-ffdcc57f.system.entry.js → p-49d9e761.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-93f0d41c.system.entry.js → p-4c5b7410.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-74401f2e.system.entry.js → p-4faa7ff3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b365612a.entry.js → p-5342a0bb.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-150a172e.system.entry.js → p-5777de38.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5d6c8737.entry.js → p-58b858fc.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3f01debd.system.entry.js → p-591432e9.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7ede7934.system.entry.js → p-5ba5c607.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-84b3f146.entry.js → p-5c39e66b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-5cb8b228.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-fedfe011.entry.js → p-5e932394.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-64275bfd.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-36fe1557.system.entry.js → p-69ded49f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-74207eb0.system.entry.js → p-6affb629.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0f6da8c7.system.js → p-71c7e1ba.system.js} +1 -1
- package/dist/verdocs-web-sdk/p-7239d28d.js +2 -0
- package/dist/verdocs-web-sdk/{p-353b8e87.system.entry.js → p-7b82f0f2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7efc60cc.entry.js → p-7cb46b17.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-7e6d7c07.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-18bb4152.system.entry.js → p-82a78fe5.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-113a45d3.entry.js → p-833d6274.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-58dda3d1.system.entry.js → p-837d3790.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-8466a97d.js +1 -0
- package/dist/verdocs-web-sdk/p-85ab335b.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-9ccdb9a9.system.entry.js → p-87362bbf.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-87e5b9b3.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-6619bc62.js → p-89b9fd4f.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5ea05a1d.js → p-8b2040be.js} +1 -1
- package/dist/verdocs-web-sdk/{p-87e67bc6.system.entry.js → p-8b68678c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-28620067.system.entry.js → p-9191190c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-9422b807.system.js +2 -0
- package/dist/verdocs-web-sdk/{p-a4b4ce45.entry.js → p-966a3108.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-9760d335.js +1 -0
- package/dist/verdocs-web-sdk/p-9775a49a.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-deed17c8.entry.js → p-9871f509.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-996ce975.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-ca0a2a00.entry.js → p-9d063e59.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-dc8aa1f0.entry.js → p-9f532d65.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0aaa85ed.system.entry.js → p-a20ba40a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4125b8e7.system.entry.js → p-a275f3b8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-40dfb545.entry.js → p-a8a3bcb0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d1cb1151.entry.js → p-aa1d72b7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9f6b4f8c.entry.js → p-ab2ab46e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3379e220.entry.js → p-ac530c28.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c3922dbb.system.entry.js → p-ac91d81d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1654be9f.system.entry.js → p-aec28fc8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c30fa791.entry.js → p-af1eb1d8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d250b3b4.entry.js → p-b154b9b9.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-67f1cc29.system.entry.js → p-b3ea279b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e29f375d.system.entry.js → p-b4c56faa.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4c7a531c.system.entry.js → p-b62bf4bb.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c6e0cc16.entry.js → p-b716d448.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d36ae684.entry.js → p-b71f26f2.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-53261332.entry.js → p-be65a712.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1d787be7.entry.js → p-c11a681f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c37913b6.entry.js → p-c296f86f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3019014e.system.entry.js → p-c5502771.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-673304f6.system.entry.js → p-c6e8e485.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-49bc1855.system.entry.js → p-cb2dd06d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-11967343.system.entry.js → p-d0ed3251.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-91df3bb9.entry.js → p-d2711cd7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-82452c9b.system.entry.js → p-d8cea42e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2b86f106.entry.js → p-d9aab909.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8b3cf06c.system.entry.js → p-dc5875be.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9b9ecf94.system.entry.js → p-dff92a1d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-e1b674e6.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-dcd59898.entry.js → p-e1fb61bb.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-e5c28d78.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-ed9528b1.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-27396fa8.entry.js → p-ef4081e9.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f063451d.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-72bc8464.system.entry.js → p-f0d35695.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f1465d29.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-5b114f68.system.entry.js → p-f2ff8d0e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-37a75b0e.system.entry.js → p-f3169208.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-760262f3.system.entry.js → p-f61da49f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6f53c098.system.js → p-f8eddf94.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2783520a.entry.js → p-f93d3324.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fba99ad6.entry.js → p-fa977600.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b859bbb4.entry.js → p-facf681e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-bac9ba46.system.entry.js → p-fb8c654e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9f6e7b4a.system.entry.js → p-fbb9b6e2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e79aabb3.entry.js → p-ffcd34e8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/verdocs-floating-menu_3.cjs.entry.js +0 -248
- package/dist/custom-elements.json +0 -1390
- package/dist/esm/verdocs-floating-menu_3.entry.js +0 -242
- package/dist/esm-es5/index-f78d163d.js +0 -2
- package/dist/esm-es5/verdocs-floating-menu_3.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-0049ecc7.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-0ef66c28.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2c3aecb8.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3d4b187a.js +0 -1
- package/dist/verdocs-web-sdk/p-4a17efd7.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4e9b66b1.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4fc181bd.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-64a6448f.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-66bf5e70.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-671036fb.js +0 -1
- package/dist/verdocs-web-sdk/p-6a736c6a.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-823bf074.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-93e8443f.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-95ed895f.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-97329951.system.js +0 -2
- package/dist/verdocs-web-sdk/p-c16b6ca4.system.js +0 -1
- package/dist/verdocs-web-sdk/p-cb4d8942.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e7b7bd2b.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f5c1ceb0.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ff1278ed.js +0 -2
|
@@ -6,33 +6,34 @@ import { a as getRoleIndex, r as renderDocumentField, c as updateCssTransform, d
|
|
|
6
6
|
import { s as state } from './templateStore.js';
|
|
7
7
|
import { l as loadTemplate } from './Templates.js';
|
|
8
8
|
import { S as SDKError } from './errors.js';
|
|
9
|
-
import { d as defineCustomElement$
|
|
10
|
-
import { d as defineCustomElement$4 } from './verdocs-floating-menu2.js';
|
|
9
|
+
import { d as defineCustomElement$4 } from './verdocs-component-error2.js';
|
|
11
10
|
import { d as defineCustomElement$3 } from './verdocs-loader2.js';
|
|
12
11
|
import { d as defineCustomElement$2 } from './verdocs-template-document-page2.js';
|
|
13
12
|
import { d as defineCustomElement$1 } from './verdocs-toolbar-icon2.js';
|
|
14
13
|
|
|
15
|
-
const verdocsTemplateFieldsCss = "verdocs-template-fields{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;position:relative}verdocs-template-fields .page-0{padding:65px 15px 0 15px;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields .page-0 .user-placed-fields{height:100px;position:relative;background:#ffffff;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-fields .page-0 .user-placed-fields .title{top:0;left:0;color:#ffffff;font-size:12px;padding:3px 6px;font-weight:bold;position:absolute;background:#46497d}verdocs-template-fields .pages{display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-template-fields .pages div,verdocs-template-fields .pages canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields.placing-attachment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-checkbox{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-date{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-dropdown{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-initial{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-payment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-radio{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-signature{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textarea{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textbox{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'
|
|
14
|
+
const verdocsTemplateFieldsCss = "verdocs-template-fields{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;position:relative}verdocs-template-fields .page-0{padding:65px 15px 0 15px;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields .page-0 .user-placed-fields{height:100px;position:relative;background:#ffffff;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-fields .page-0 .user-placed-fields .title{top:0;left:0;color:#ffffff;font-size:12px;padding:3px 6px;font-weight:bold;position:absolute;background:#46497d}verdocs-template-fields .pages{display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-template-fields .pages div,verdocs-template-fields .pages canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields #verdocs-template-fields-toolbar{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 50px;flex:0 0 50px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;background:#46497d}verdocs-template-fields #verdocs-template-fields-toolbar svg{width:24px;height:24px}verdocs-template-fields.placing-attachment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-checkbox{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-date{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-dropdown{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-initial{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-payment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-radio{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-signature{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textarea{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textbox{cursor:url(\"data:image/svg+xml,%3Csvg width='32' height='15' viewBox='0 0 32 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='path-1-inside-1_1401_24' fill='white'%3E%3Cpath d='M0 0H32V15H0V0Z'/%3E%3C/mask%3E%3Cpath d='M0 0H32V15H0V0Z' fill='%234C56CB' fill-opacity='0.1'/%3E%3Cpath d='M0 0V-1H-1V0H0ZM0 15H-1V16H0V15ZM0 1H32V-1H0V1ZM32 14H0V16H32V14ZM1 15V0H-1V15H1Z' fill='%234C56CB' mask='url(%23path-1-inside-1_1401_24)'/%3E%3Cpath d='M3 11.8V8.65H14.15V11.8H3ZM3 6.65V3.5H20.15V6.65H3Z' fill='%234C56CB'/%3E%3Cline x1='31.5' y1='1' x2='31.5' y2='14' stroke='%234C56CB' stroke-opacity='0.32' stroke-dasharray='1 1'/%3E%3C/svg%3E%0A\") 0 14, pointer}verdocs-template-fields.placing-timestamp{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 0 14, pointer}";
|
|
16
15
|
|
|
17
|
-
const iconSingleline = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M3.425 16.15V13h11.15v3.15Zm0-5.15V7.85h17.15V11Z"/></svg>';
|
|
18
|
-
const iconMultiline = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z"/></svg>';
|
|
19
|
-
const iconCheck = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z"/></svg>';
|
|
20
|
-
const iconRadio = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z"/></svg>';
|
|
21
|
-
const iconDatepicker = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M7.6 13.925q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375ZM5.3 22.85q-1.325 0-2.238-.912-.912-.913-.912-2.238V6.3q0-1.325.912-2.238.913-.912 2.238-.912H6v-2h2.575v2h6.85v-2H18v2h.7q1.325 0 2.238.912.912.913.912 2.238v13.4q0 1.325-.912 2.238-.913.912-2.238.912Zm0-3.15h13.4V10H5.3v9.7ZM5.3 8h13.4V6.3H5.3Zm0 0V6.3 8Z"/></svg>';
|
|
22
|
-
const iconSignature = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z"/></svg>';
|
|
23
|
-
const iconInitial = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z"/></svg>';
|
|
16
|
+
const iconSingleline = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="M3.425 16.15V13h11.15v3.15Zm0-5.15V7.85h17.15V11Z"/></svg>';
|
|
17
|
+
const iconMultiline = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z"/></svg>';
|
|
18
|
+
const iconCheck = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z"/></svg>';
|
|
19
|
+
const iconRadio = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z"/></svg>';
|
|
20
|
+
const iconDatepicker = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="M7.6 13.925q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375ZM5.3 22.85q-1.325 0-2.238-.912-.912-.913-.912-2.238V6.3q0-1.325.912-2.238.913-.912 2.238-.912H6v-2h2.575v2h6.85v-2H18v2h.7q1.325 0 2.238.912.912.913.912 2.238v13.4q0 1.325-.912 2.238-.913.912-2.238.912Zm0-3.15h13.4V10H5.3v9.7ZM5.3 8h13.4V6.3H5.3Zm0 0V6.3 8Z"/></svg>';
|
|
21
|
+
const iconSignature = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z"/></svg>';
|
|
22
|
+
const iconInitial = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z"/></svg>';
|
|
23
|
+
const iconClock = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path fill="#ffffff" stroke-linecap="round" stroke-linejoin="round" d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>';
|
|
24
|
+
const iconBarsDown = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke="#ffffff" stroke-linecap="round" stroke-linejoin="round" d="M3 4.5h14.25M3 9h9.75M3 13.5h9.75m4.5-4.5v12m0 0l-3.75-3.75M17.25 21L21 17.25" /></svg>';
|
|
24
25
|
const menuOptions = [
|
|
25
26
|
// {id: 'attachment', tooltip: 'Attachment', icon: 'A'},
|
|
26
27
|
{ id: 'checkbox', tooltip: 'Check Box', icon: iconCheck },
|
|
27
28
|
{ id: 'date', tooltip: 'Date', icon: iconDatepicker },
|
|
28
|
-
{ id: 'dropdown', tooltip: 'Dropdown', icon:
|
|
29
|
+
{ id: 'dropdown', tooltip: 'Dropdown', icon: iconBarsDown },
|
|
29
30
|
{ id: 'initial', tooltip: 'Initials', icon: iconInitial },
|
|
30
31
|
// {id: 'payment', tooltip: 'Payment', icon: 'P'},
|
|
31
32
|
{ id: 'radio', tooltip: 'Radio Button', icon: iconRadio },
|
|
32
33
|
{ id: 'signature', tooltip: 'Signature', icon: iconSignature },
|
|
33
34
|
{ id: 'textarea', tooltip: 'Text Area', icon: iconMultiline },
|
|
34
35
|
{ id: 'textbox', tooltip: 'Text Box', icon: iconSingleline },
|
|
35
|
-
{ id: 'timestamp', tooltip: 'Timestamp', icon:
|
|
36
|
+
{ id: 'timestamp', tooltip: 'Timestamp', icon: iconClock },
|
|
36
37
|
];
|
|
37
38
|
const VerdocsTemplateFields = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
38
39
|
constructor() {
|
|
@@ -46,6 +47,7 @@ const VerdocsTemplateFields = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
46
47
|
this.cachedPageInfo = {};
|
|
47
48
|
this.endpoint = VerdocsEndpoint.getDefault();
|
|
48
49
|
this.templateId = null;
|
|
50
|
+
this.toolbarTargetId = null;
|
|
49
51
|
this.placing = null;
|
|
50
52
|
this.selectedRoleName = '';
|
|
51
53
|
this.rerender = 1;
|
|
@@ -80,6 +82,19 @@ const VerdocsTemplateFields = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
80
82
|
}
|
|
81
83
|
componentDidRender() {
|
|
82
84
|
interact.dynamicDrop(true);
|
|
85
|
+
const toolbarTarget = this.toolbarTargetId ? document.getElementById(this.toolbarTargetId) : null;
|
|
86
|
+
const toolbarEl = document.getElementById('verdocs-template-fields-toolbar');
|
|
87
|
+
if (toolbarTarget && toolbarEl) {
|
|
88
|
+
console.log('[FIELDS] Moving toolbar');
|
|
89
|
+
toolbarEl.remove();
|
|
90
|
+
toolbarTarget.append(toolbarEl);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
// Stop field-placement mode if ESC is pressed
|
|
94
|
+
handleKeyDown(ev) {
|
|
95
|
+
if (ev.key === 'Escape') {
|
|
96
|
+
this.placing = null;
|
|
97
|
+
}
|
|
83
98
|
}
|
|
84
99
|
async handleFieldChange(field, e, optionId) {
|
|
85
100
|
console.log('[FIELDS] handleFieldChange', field, e, optionId);
|
|
@@ -94,6 +109,13 @@ const VerdocsTemplateFields = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
94
109
|
this.rerender++;
|
|
95
110
|
(_a = this.templateUpdated) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template: state.template, event: 'updated-field' });
|
|
96
111
|
});
|
|
112
|
+
el.addEventListener('deleted', () => {
|
|
113
|
+
var _a;
|
|
114
|
+
console.log('deleted', this, field);
|
|
115
|
+
el.remove();
|
|
116
|
+
this.rerender++;
|
|
117
|
+
(_a = this.templateUpdated) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template: state.template, event: 'updated-field' });
|
|
118
|
+
});
|
|
97
119
|
el.setAttribute('roleindex', roleIndex);
|
|
98
120
|
el.setAttribute('pageNumber', pageInfo.pageNumber);
|
|
99
121
|
el.setAttribute('xScale', pageInfo.xScale);
|
|
@@ -163,10 +185,14 @@ const VerdocsTemplateFields = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
163
185
|
}
|
|
164
186
|
}
|
|
165
187
|
generateFieldName(type, pageNumber) {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
188
|
+
let i = 1;
|
|
189
|
+
let fieldName;
|
|
190
|
+
do {
|
|
191
|
+
fieldName = `${type}P${pageNumber}-${i}`;
|
|
192
|
+
i++;
|
|
193
|
+
} while (state.fields.some(field => field.name === fieldName));
|
|
194
|
+
console.log('Field name', fieldName);
|
|
195
|
+
return fieldName;
|
|
170
196
|
}
|
|
171
197
|
// Scale the X,Y clicks to the virtual page dimensions. Also ensure the field doesn't go off the page.
|
|
172
198
|
viewCoordinatesToPageCoordinates(viewX, viewY, pageNumber, xMax, yMax) {
|
|
@@ -178,6 +204,7 @@ const VerdocsTemplateFields = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
178
204
|
async handleClickPage(e, page) {
|
|
179
205
|
var _a;
|
|
180
206
|
if (this.placing) {
|
|
207
|
+
console.log('Placing field', this.placing, page.sequence, e.offsetX, e.offsetY);
|
|
181
208
|
const pageNumber = page.sequence;
|
|
182
209
|
const clickedX = e.offsetX;
|
|
183
210
|
const clickedY = e.offsetY;
|
|
@@ -251,29 +278,27 @@ const VerdocsTemplateFields = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
251
278
|
pages.sort((a, b) => a.sequence - b.sequence);
|
|
252
279
|
return (h(Host, { class: this.placing ? { [`placing-${this.placing}`]: true } : {}, "data-r": this.rerender, onSubmit: () => {
|
|
253
280
|
console.log('onSubmit');
|
|
254
|
-
} }, h("div", { class: "pages" }, pages.map(page => {
|
|
255
|
-
// console.log('rendering page', page);
|
|
281
|
+
} }, h("div", { id: "verdocs-template-fields-toolbar" }, menuOptions.map(option => (h("verdocs-toolbar-icon", { text: option.tooltip, icon: option.icon, onClick: () => (this.placing = option.id) })))), h("div", { class: "pages" }, pages.map(page => {
|
|
256
282
|
return (h("verdocs-template-document-page", { templateId: page.template_id, documentId: page.document_id, pageNumber: page.sequence, virtualWidth: 612, virtualHeight: 792, onClick: (e) => this.handleClickPage(e, page), onPageRendered: e => this.handlePageRendered(e), layers: [
|
|
257
283
|
{ name: 'page', type: 'canvas' },
|
|
258
284
|
{ name: 'controls', type: 'div' },
|
|
259
285
|
] }));
|
|
260
|
-
}))
|
|
261
|
-
this.placing = e.detail.id;
|
|
262
|
-
} })));
|
|
286
|
+
}))));
|
|
263
287
|
}
|
|
264
288
|
static get style() { return verdocsTemplateFieldsCss; }
|
|
265
289
|
}, [0, "verdocs-template-fields", {
|
|
266
290
|
"endpoint": [16],
|
|
267
291
|
"templateId": [1, "template-id"],
|
|
292
|
+
"toolbarTargetId": [1, "toolbar-target-id"],
|
|
268
293
|
"placing": [32],
|
|
269
294
|
"selectedRoleName": [32],
|
|
270
295
|
"rerender": [32]
|
|
271
|
-
}]);
|
|
296
|
+
}, [[4, "keydown", "handleKeyDown"]]]);
|
|
272
297
|
function defineCustomElement() {
|
|
273
298
|
if (typeof customElements === "undefined") {
|
|
274
299
|
return;
|
|
275
300
|
}
|
|
276
|
-
const components = ["verdocs-template-fields", "verdocs-component-error", "verdocs-
|
|
301
|
+
const components = ["verdocs-template-fields", "verdocs-component-error", "verdocs-loader", "verdocs-template-document-page", "verdocs-toolbar-icon"];
|
|
277
302
|
components.forEach(tagName => { switch (tagName) {
|
|
278
303
|
case "verdocs-template-fields":
|
|
279
304
|
if (!customElements.get(tagName)) {
|
|
@@ -281,11 +306,6 @@ function defineCustomElement() {
|
|
|
281
306
|
}
|
|
282
307
|
break;
|
|
283
308
|
case "verdocs-component-error":
|
|
284
|
-
if (!customElements.get(tagName)) {
|
|
285
|
-
defineCustomElement$5();
|
|
286
|
-
}
|
|
287
|
-
break;
|
|
288
|
-
case "verdocs-floating-menu":
|
|
289
309
|
if (!customElements.get(tagName)) {
|
|
290
310
|
defineCustomElement$4();
|
|
291
311
|
}
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2023-02-
|
|
2
|
+
"timestamp": "2023-02-22T00:06:36",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "2.20.0",
|
|
@@ -188,11 +188,8 @@
|
|
|
188
188
|
"verdocs-template-fields": [
|
|
189
189
|
"verdocs-component-error",
|
|
190
190
|
"verdocs-loader",
|
|
191
|
-
"verdocs-
|
|
192
|
-
"verdocs-
|
|
193
|
-
],
|
|
194
|
-
"verdocs-floating-menu": [
|
|
195
|
-
"verdocs-toolbar-icon"
|
|
191
|
+
"verdocs-toolbar-icon",
|
|
192
|
+
"verdocs-template-document-page"
|
|
196
193
|
]
|
|
197
194
|
}
|
|
198
195
|
},
|
|
@@ -1422,6 +1419,15 @@
|
|
|
1422
1419
|
}
|
|
1423
1420
|
],
|
|
1424
1421
|
"events": [
|
|
1422
|
+
{
|
|
1423
|
+
"event": "deleted",
|
|
1424
|
+
"detail": "{ fieldName: string; }",
|
|
1425
|
+
"bubbles": true,
|
|
1426
|
+
"cancelable": true,
|
|
1427
|
+
"composed": true,
|
|
1428
|
+
"docs": "Event fired when the field is deleted.",
|
|
1429
|
+
"docsTags": []
|
|
1430
|
+
},
|
|
1425
1431
|
{
|
|
1426
1432
|
"event": "settingsChanged",
|
|
1427
1433
|
"detail": "{ fieldName: string; }",
|
|
@@ -1608,6 +1614,15 @@
|
|
|
1608
1614
|
}
|
|
1609
1615
|
],
|
|
1610
1616
|
"events": [
|
|
1617
|
+
{
|
|
1618
|
+
"event": "deleted",
|
|
1619
|
+
"detail": "{ fieldName: string; }",
|
|
1620
|
+
"bubbles": true,
|
|
1621
|
+
"cancelable": true,
|
|
1622
|
+
"composed": true,
|
|
1623
|
+
"docs": "Event fired when the field is deleted.",
|
|
1624
|
+
"docsTags": []
|
|
1625
|
+
},
|
|
1611
1626
|
{
|
|
1612
1627
|
"event": "settingsChanged",
|
|
1613
1628
|
"detail": "{ fieldName: string; }",
|
|
@@ -1752,6 +1767,15 @@
|
|
|
1752
1767
|
}
|
|
1753
1768
|
],
|
|
1754
1769
|
"events": [
|
|
1770
|
+
{
|
|
1771
|
+
"event": "deleted",
|
|
1772
|
+
"detail": "{ fieldName: string; }",
|
|
1773
|
+
"bubbles": true,
|
|
1774
|
+
"cancelable": true,
|
|
1775
|
+
"composed": true,
|
|
1776
|
+
"docs": "Event fired when the field is deleted.",
|
|
1777
|
+
"docsTags": []
|
|
1778
|
+
},
|
|
1755
1779
|
{
|
|
1756
1780
|
"event": "fieldChange",
|
|
1757
1781
|
"detail": "string",
|
|
@@ -1963,6 +1987,15 @@
|
|
|
1963
1987
|
"docs": "Event emitted when the user cancels the process.",
|
|
1964
1988
|
"docsTags": []
|
|
1965
1989
|
},
|
|
1990
|
+
{
|
|
1991
|
+
"event": "deleted",
|
|
1992
|
+
"detail": "{ fieldName: string; }",
|
|
1993
|
+
"bubbles": true,
|
|
1994
|
+
"cancelable": true,
|
|
1995
|
+
"composed": true,
|
|
1996
|
+
"docs": "Event fired when the field is deleted.",
|
|
1997
|
+
"docsTags": []
|
|
1998
|
+
},
|
|
1966
1999
|
{
|
|
1967
2000
|
"event": "fieldChange",
|
|
1968
2001
|
"detail": "string",
|
|
@@ -2319,6 +2352,15 @@
|
|
|
2319
2352
|
}
|
|
2320
2353
|
],
|
|
2321
2354
|
"events": [
|
|
2355
|
+
{
|
|
2356
|
+
"event": "deleted",
|
|
2357
|
+
"detail": "{ fieldName: string; }",
|
|
2358
|
+
"bubbles": true,
|
|
2359
|
+
"cancelable": true,
|
|
2360
|
+
"composed": true,
|
|
2361
|
+
"docs": "Event fired when the field is deleted.",
|
|
2362
|
+
"docsTags": []
|
|
2363
|
+
},
|
|
2322
2364
|
{
|
|
2323
2365
|
"event": "initialComplete",
|
|
2324
2366
|
"detail": "string",
|
|
@@ -2510,6 +2552,15 @@
|
|
|
2510
2552
|
}
|
|
2511
2553
|
],
|
|
2512
2554
|
"events": [
|
|
2555
|
+
{
|
|
2556
|
+
"event": "deleted",
|
|
2557
|
+
"detail": "{ fieldName: string; }",
|
|
2558
|
+
"bubbles": true,
|
|
2559
|
+
"cancelable": true,
|
|
2560
|
+
"composed": true,
|
|
2561
|
+
"docs": "Event fired when the field is deleted.",
|
|
2562
|
+
"docsTags": []
|
|
2563
|
+
},
|
|
2513
2564
|
{
|
|
2514
2565
|
"event": "settingsChanged",
|
|
2515
2566
|
"detail": "{ fieldName: string; }",
|
|
@@ -2713,6 +2764,15 @@
|
|
|
2713
2764
|
}
|
|
2714
2765
|
],
|
|
2715
2766
|
"events": [
|
|
2767
|
+
{
|
|
2768
|
+
"event": "deleted",
|
|
2769
|
+
"detail": "{ fieldName: string; }",
|
|
2770
|
+
"bubbles": true,
|
|
2771
|
+
"cancelable": true,
|
|
2772
|
+
"composed": true,
|
|
2773
|
+
"docs": "Event fired when the field is deleted.",
|
|
2774
|
+
"docsTags": []
|
|
2775
|
+
},
|
|
2716
2776
|
{
|
|
2717
2777
|
"event": "fieldChange",
|
|
2718
2778
|
"detail": "string",
|
|
@@ -2923,6 +2983,15 @@
|
|
|
2923
2983
|
}
|
|
2924
2984
|
],
|
|
2925
2985
|
"events": [
|
|
2986
|
+
{
|
|
2987
|
+
"event": "deleted",
|
|
2988
|
+
"detail": "{ fieldName: string; }",
|
|
2989
|
+
"bubbles": true,
|
|
2990
|
+
"cancelable": true,
|
|
2991
|
+
"composed": true,
|
|
2992
|
+
"docs": "Event fired when the field is deleted.",
|
|
2993
|
+
"docsTags": []
|
|
2994
|
+
},
|
|
2926
2995
|
{
|
|
2927
2996
|
"event": "settingsChanged",
|
|
2928
2997
|
"detail": "{ fieldName: string; }",
|
|
@@ -3109,6 +3178,15 @@
|
|
|
3109
3178
|
}
|
|
3110
3179
|
],
|
|
3111
3180
|
"events": [
|
|
3181
|
+
{
|
|
3182
|
+
"event": "deleted",
|
|
3183
|
+
"detail": "{ fieldName: string; }",
|
|
3184
|
+
"bubbles": true,
|
|
3185
|
+
"cancelable": true,
|
|
3186
|
+
"composed": true,
|
|
3187
|
+
"docs": "Event fired when the field is deleted.",
|
|
3188
|
+
"docsTags": []
|
|
3189
|
+
},
|
|
3112
3190
|
{
|
|
3113
3191
|
"event": "settingsChanged",
|
|
3114
3192
|
"detail": "{ fieldName: string; }",
|
|
@@ -3295,6 +3373,15 @@
|
|
|
3295
3373
|
}
|
|
3296
3374
|
],
|
|
3297
3375
|
"events": [
|
|
3376
|
+
{
|
|
3377
|
+
"event": "deleted",
|
|
3378
|
+
"detail": "{ fieldName: string; }",
|
|
3379
|
+
"bubbles": true,
|
|
3380
|
+
"cancelable": true,
|
|
3381
|
+
"composed": true,
|
|
3382
|
+
"docs": "Event fired when the field is deleted.",
|
|
3383
|
+
"docsTags": []
|
|
3384
|
+
},
|
|
3298
3385
|
{
|
|
3299
3386
|
"event": "settingsChanged",
|
|
3300
3387
|
"detail": "{ fieldName: string; }",
|
|
@@ -3373,18 +3460,13 @@
|
|
|
3373
3460
|
"styles": [],
|
|
3374
3461
|
"slots": [],
|
|
3375
3462
|
"parts": [],
|
|
3376
|
-
"dependents": [
|
|
3377
|
-
"verdocs-template-fields"
|
|
3378
|
-
],
|
|
3463
|
+
"dependents": [],
|
|
3379
3464
|
"dependencies": [
|
|
3380
3465
|
"verdocs-toolbar-icon"
|
|
3381
3466
|
],
|
|
3382
3467
|
"dependencyGraph": {
|
|
3383
3468
|
"verdocs-floating-menu": [
|
|
3384
3469
|
"verdocs-toolbar-icon"
|
|
3385
|
-
],
|
|
3386
|
-
"verdocs-template-fields": [
|
|
3387
|
-
"verdocs-floating-menu"
|
|
3388
3470
|
]
|
|
3389
3471
|
}
|
|
3390
3472
|
},
|
|
@@ -5506,6 +5588,23 @@
|
|
|
5506
5588
|
],
|
|
5507
5589
|
"optional": false,
|
|
5508
5590
|
"required": false
|
|
5591
|
+
},
|
|
5592
|
+
{
|
|
5593
|
+
"name": "toolbarTargetId",
|
|
5594
|
+
"type": "string",
|
|
5595
|
+
"mutable": false,
|
|
5596
|
+
"attr": "toolbar-target-id",
|
|
5597
|
+
"reflectToAttr": false,
|
|
5598
|
+
"docs": "If set, (recommended), the host application should create a <DIV> element with a unique ID. When this\ncomponent renders, the toolbar will be removed from its default location and placed in the target element.\nThis allows the parent application to more easily control its placement and scroll effects.",
|
|
5599
|
+
"docsTags": [],
|
|
5600
|
+
"default": "null",
|
|
5601
|
+
"values": [
|
|
5602
|
+
{
|
|
5603
|
+
"type": "string"
|
|
5604
|
+
}
|
|
5605
|
+
],
|
|
5606
|
+
"optional": false,
|
|
5607
|
+
"required": false
|
|
5509
5608
|
}
|
|
5510
5609
|
],
|
|
5511
5610
|
"methods": [],
|
|
@@ -5547,7 +5646,14 @@
|
|
|
5547
5646
|
"docsTags": []
|
|
5548
5647
|
}
|
|
5549
5648
|
],
|
|
5550
|
-
"listeners": [
|
|
5649
|
+
"listeners": [
|
|
5650
|
+
{
|
|
5651
|
+
"event": "keydown",
|
|
5652
|
+
"target": "document",
|
|
5653
|
+
"capture": false,
|
|
5654
|
+
"passive": false
|
|
5655
|
+
}
|
|
5656
|
+
],
|
|
5551
5657
|
"styles": [],
|
|
5552
5658
|
"slots": [],
|
|
5553
5659
|
"parts": [],
|
|
@@ -5557,18 +5663,15 @@
|
|
|
5557
5663
|
"dependencies": [
|
|
5558
5664
|
"verdocs-component-error",
|
|
5559
5665
|
"verdocs-loader",
|
|
5560
|
-
"verdocs-
|
|
5561
|
-
"verdocs-
|
|
5666
|
+
"verdocs-toolbar-icon",
|
|
5667
|
+
"verdocs-template-document-page"
|
|
5562
5668
|
],
|
|
5563
5669
|
"dependencyGraph": {
|
|
5564
5670
|
"verdocs-template-fields": [
|
|
5565
5671
|
"verdocs-component-error",
|
|
5566
5672
|
"verdocs-loader",
|
|
5567
|
-
"verdocs-
|
|
5568
|
-
"verdocs-
|
|
5569
|
-
],
|
|
5570
|
-
"verdocs-floating-menu": [
|
|
5571
|
-
"verdocs-toolbar-icon"
|
|
5673
|
+
"verdocs-toolbar-icon",
|
|
5674
|
+
"verdocs-template-document-page"
|
|
5572
5675
|
],
|
|
5573
5676
|
"verdocs-build": [
|
|
5574
5677
|
"verdocs-template-fields"
|
|
@@ -6844,12 +6947,16 @@
|
|
|
6844
6947
|
"slots": [],
|
|
6845
6948
|
"parts": [],
|
|
6846
6949
|
"dependents": [
|
|
6847
|
-
"verdocs-floating-menu"
|
|
6950
|
+
"verdocs-floating-menu",
|
|
6951
|
+
"verdocs-template-fields"
|
|
6848
6952
|
],
|
|
6849
6953
|
"dependencies": [],
|
|
6850
6954
|
"dependencyGraph": {
|
|
6851
6955
|
"verdocs-floating-menu": [
|
|
6852
6956
|
"verdocs-toolbar-icon"
|
|
6957
|
+
],
|
|
6958
|
+
"verdocs-template-fields": [
|
|
6959
|
+
"verdocs-toolbar-icon"
|
|
6853
6960
|
]
|
|
6854
6961
|
}
|
|
6855
6962
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getEnvelope } from './Envelopes-eb3eef02.js';
|
|
2
|
-
import { c as createStore } from './index-
|
|
2
|
+
import { c as createStore } from './index-24fd1580.js';
|
|
3
3
|
import { g as getTemplate } from './Templates-8e4ab976.js';
|
|
4
4
|
|
|
5
5
|
// NOTE: Do not attempt to convert this to a named-export module. It triggers compilation issues in Rollup that I spent days trying to
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getTemplate } from './Templates-8e4ab976.js';
|
|
2
|
-
import { s as state } from './templateStore-
|
|
2
|
+
import { s as state } from './templateStore-a399f366.js';
|
|
3
3
|
|
|
4
4
|
const pendingNotifications = [];
|
|
5
5
|
const loadTemplate = async (endpoint, templateId, forceReload = false) => {
|
|
@@ -23,7 +23,7 @@ const loadTemplate = async (endpoint, templateId, forceReload = false) => {
|
|
|
23
23
|
state.template = null;
|
|
24
24
|
try {
|
|
25
25
|
console.log(`[TEMPLATES] Loading template ${templateId}`);
|
|
26
|
-
const template = await getTemplate(endpoint, templateId
|
|
26
|
+
const template = await getTemplate(endpoint, templateId);
|
|
27
27
|
if (!template) {
|
|
28
28
|
console.log('[TEMPLATES] Unable to load template');
|
|
29
29
|
return;
|
|
@@ -1219,6 +1219,13 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1219
1219
|
const instance = hostRef.$lazyInstance$ ;
|
|
1220
1220
|
let promise;
|
|
1221
1221
|
if (isInitialLoad) {
|
|
1222
|
+
{
|
|
1223
|
+
hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
|
|
1224
|
+
if (hostRef.$queuedListeners$) {
|
|
1225
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
1226
|
+
hostRef.$queuedListeners$ = null;
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1222
1229
|
{
|
|
1223
1230
|
promise = safeCall(instance, 'componentWillLoad');
|
|
1224
1231
|
}
|
|
@@ -1627,6 +1634,12 @@ const connectedCallback = (elm) => {
|
|
|
1627
1634
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1628
1635
|
}
|
|
1629
1636
|
}
|
|
1637
|
+
else {
|
|
1638
|
+
// not the first time this has connected
|
|
1639
|
+
// reattach any event listeners to the host
|
|
1640
|
+
// since they would have been removed when disconnected
|
|
1641
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1642
|
+
}
|
|
1630
1643
|
endConnected();
|
|
1631
1644
|
}
|
|
1632
1645
|
};
|
|
@@ -1645,6 +1658,12 @@ const disconnectedCallback = (elm) => {
|
|
|
1645
1658
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1646
1659
|
const hostRef = getHostRef(elm);
|
|
1647
1660
|
const instance = hostRef.$lazyInstance$ ;
|
|
1661
|
+
{
|
|
1662
|
+
if (hostRef.$rmListeners$) {
|
|
1663
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1664
|
+
hostRef.$rmListeners$ = undefined;
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1648
1667
|
{
|
|
1649
1668
|
safeCall(instance, 'disconnectedCallback');
|
|
1650
1669
|
}
|
|
@@ -1674,6 +1693,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1674
1693
|
{
|
|
1675
1694
|
cmpMeta.$members$ = compactMeta[2];
|
|
1676
1695
|
}
|
|
1696
|
+
{
|
|
1697
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1698
|
+
}
|
|
1677
1699
|
const tagName = cmpMeta.$tagName$;
|
|
1678
1700
|
const HostElement = class extends HTMLElement {
|
|
1679
1701
|
// StencilLazyHost
|
|
@@ -1729,6 +1751,40 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1729
1751
|
endBootstrap();
|
|
1730
1752
|
};
|
|
1731
1753
|
const Fragment = (_, children) => children;
|
|
1754
|
+
const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1755
|
+
if (listeners) {
|
|
1756
|
+
listeners.map(([flags, name, method]) => {
|
|
1757
|
+
const target = getHostListenerTarget(elm, flags) ;
|
|
1758
|
+
const handler = hostListenerProxy(hostRef, method);
|
|
1759
|
+
const opts = hostListenerOpts(flags);
|
|
1760
|
+
plt.ael(target, name, handler, opts);
|
|
1761
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
1762
|
+
});
|
|
1763
|
+
}
|
|
1764
|
+
};
|
|
1765
|
+
const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
1766
|
+
try {
|
|
1767
|
+
{
|
|
1768
|
+
if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
|
|
1769
|
+
// instance is ready, let's call it's member method for this event
|
|
1770
|
+
hostRef.$lazyInstance$[methodName](ev);
|
|
1771
|
+
}
|
|
1772
|
+
else {
|
|
1773
|
+
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
catch (e) {
|
|
1778
|
+
consoleError(e);
|
|
1779
|
+
}
|
|
1780
|
+
};
|
|
1781
|
+
const getHostListenerTarget = (elm, flags) => {
|
|
1782
|
+
if (flags & 4 /* LISTENER_FLAGS.TargetDocument */)
|
|
1783
|
+
return doc;
|
|
1784
|
+
return elm;
|
|
1785
|
+
};
|
|
1786
|
+
// prettier-ignore
|
|
1787
|
+
const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
|
|
1732
1788
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1733
1789
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1734
1790
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
@@ -1747,6 +1803,7 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1747
1803
|
elm['s-p'] = [];
|
|
1748
1804
|
elm['s-rc'] = [];
|
|
1749
1805
|
}
|
|
1806
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1750
1807
|
return hostRefs.set(elm, hostRef);
|
|
1751
1808
|
};
|
|
1752
1809
|
const isMemberInElement = (elm, memberName) => memberName in elm;
|