@verdocs/web-sdk 1.15.1 → 1.15.3
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/{TemplateStore-fe148e97.js → TemplateStore-a7745f0a.js} +1 -1
- package/dist/cjs/{Templates-1a86703d.js → Templates-6fb62dcd.js} +15 -0
- package/dist/cjs/{index-7c19ba1d.js → index-961181ce.js} +37 -602
- package/dist/cjs/index-db620f37.js +575 -0
- package/dist/cjs/ipc-test.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-2c6835c6.js → utils-67dac0c3.js} +1 -1
- package/dist/cjs/verdocs-activity-box.cjs.entry.js +6 -7
- package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-button-panel_3.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +2 -1
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +5 -6
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-date.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-organization-card.cjs.entry.js +2 -1
- package/dist/cjs/verdocs-pagination_3.cjs.entry.js +169 -0
- package/dist/cjs/verdocs-preview.cjs.entry.js +5 -4
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-send.cjs.entry.js +5 -4
- package/dist/cjs/verdocs-sign.cjs.entry.js +3 -2
- package/dist/cjs/{verdocs-pagination_4.cjs.entry.js → verdocs-status-indicator.cjs.entry.js} +0 -161
- package/dist/cjs/verdocs-template-attachments_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +5 -4
- package/dist/cjs/verdocs-template-name.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-reminders.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-star.cjs.entry.js +67 -0
- package/dist/cjs/verdocs-template-visibility.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-templates-list.cjs.entry.js +595 -111
- package/dist/cjs/verdocs-view.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/envelopes/verdocs-activity-box/verdocs-activity-box.js +1 -1
- package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +38 -43
- package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.css +31 -0
- package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +144 -0
- package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.stories.js +27 -0
- package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.css +98 -17
- package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +175 -221
- package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.stories.js +8 -6
- package/dist/components/Templates.js +15 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index2.js +1 -1
- package/dist/components/verdocs-activity-box.js +6 -7
- package/dist/components/verdocs-envelopes-list.js +4 -7
- package/dist/components/verdocs-template-star.d.ts +11 -0
- package/dist/components/verdocs-template-star.js +6 -0
- package/dist/components/verdocs-template-star2.js +82 -0
- package/dist/components/verdocs-templates-list.js +634 -123
- package/dist/custom-elements.json +1890 -0
- package/dist/docs.json +223 -61
- package/dist/esm/{TemplateStore-c15956ae.js → TemplateStore-ad36abff.js} +1 -1
- package/dist/esm/{Templates-3760f311.js → Templates-1893bda7.js} +15 -1
- package/dist/esm/{index-914ed6f7.js → index-2685d184.js} +1 -566
- package/dist/esm/index-8dc8fdc4.js +568 -0
- package/dist/esm/ipc-test.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-a8284581.js → utils-ef800713.js} +2 -2
- package/dist/esm/verdocs-activity-box.entry.js +6 -7
- package/dist/esm/verdocs-build.entry.js +2 -2
- package/dist/esm/verdocs-button-panel_3.entry.js +2 -2
- package/dist/esm/verdocs-envelope-document-page.entry.js +3 -2
- package/dist/esm/verdocs-envelope-sidebar.entry.js +2 -1
- package/dist/esm/verdocs-envelopes-list.entry.js +5 -6
- package/dist/esm/verdocs-field-checkbox.entry.js +3 -2
- package/dist/esm/verdocs-field-date.entry.js +3 -2
- package/dist/esm/verdocs-field-dropdown.entry.js +3 -2
- package/dist/esm/verdocs-field-initial.entry.js +3 -2
- package/dist/esm/verdocs-field-payment.entry.js +3 -2
- package/dist/esm/verdocs-field-radio-button.entry.js +3 -2
- package/dist/esm/verdocs-field-signature.entry.js +3 -2
- package/dist/esm/verdocs-field-textarea.entry.js +3 -2
- package/dist/esm/verdocs-field-textbox.entry.js +3 -2
- package/dist/esm/verdocs-field-timestamp.entry.js +3 -2
- package/dist/esm/verdocs-organization-card.entry.js +2 -1
- package/dist/esm/verdocs-pagination_3.entry.js +163 -0
- package/dist/esm/verdocs-preview.entry.js +5 -4
- package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm/verdocs-send.entry.js +5 -4
- package/dist/esm/verdocs-sign.entry.js +3 -2
- package/dist/esm/{verdocs-pagination_4.entry.js → verdocs-status-indicator.entry.js} +2 -160
- package/dist/esm/verdocs-template-attachments_2.entry.js +2 -2
- package/dist/esm/verdocs-template-document-page_2.entry.js +3 -2
- package/dist/esm/verdocs-template-fields_4.entry.js +5 -4
- package/dist/esm/verdocs-template-name.entry.js +2 -2
- package/dist/esm/verdocs-template-reminders.entry.js +2 -2
- package/dist/esm/verdocs-template-star.entry.js +63 -0
- package/dist/esm/verdocs-template-visibility.entry.js +2 -2
- package/dist/esm/verdocs-templates-list.entry.js +592 -108
- package/dist/esm/verdocs-view.entry.js +3 -2
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/{TemplateStore-c15956ae.js → TemplateStore-ad36abff.js} +1 -1
- package/dist/esm-es5/{Templates-3760f311.js → Templates-1893bda7.js} +1 -1
- package/dist/esm-es5/index-2685d184.js +1 -0
- package/dist/esm-es5/index-8dc8fdc4.js +1 -0
- package/dist/esm-es5/ipc-test.entry.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{utils-a8284581.js → utils-ef800713.js} +2 -2
- package/dist/esm-es5/verdocs-activity-box.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-envelope-document-page.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.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-organization-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-pagination_3.entry.js +1 -0
- 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-send.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-attachments_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
- package/dist/esm-es5/verdocs-templates-list.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/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.d.ts +8 -16
- package/dist/types/components/templates/verdocs-template-star/verdocs-template-star.d.ts +35 -0
- package/dist/types/components/templates/verdocs-template-star/verdocs-template-star.stories.d.ts +6 -0
- package/dist/types/components/templates/verdocs-templates-list/verdocs-templates-list.d.ts +24 -29
- package/dist/types/components.d.ts +89 -27
- package/dist/verdocs-web-sdk/p-067b43ba.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-09ee5e46.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-0ae14e45.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-831e2651.system.entry.js → p-0b369a3e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b2a0cef4.entry.js → p-0e1c0da5.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-11942b39.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-11de0d75.system.js +1 -0
- package/dist/verdocs-web-sdk/p-1cf38cea.system.js +1 -1
- package/dist/verdocs-web-sdk/p-1d010a79.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-46013b8a.entry.js → p-20fcfef9.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-2118b452.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-21629ed8.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-253b6f06.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-2961d1a8.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-2a4566ab.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-35841b7c.js +1 -0
- package/dist/verdocs-web-sdk/p-38d7c3f2.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-3ed5dc5c.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-3fe6dc00.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-42f1012f.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-45b1c6cd.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-e34783b1.entry.js → p-4615a245.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-4a7dcb1b.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-3399a2a2.system.entry.js → p-4eb69794.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-4fe4e161.js +1 -0
- package/dist/verdocs-web-sdk/{p-dee333ac.system.entry.js → p-52f9cfba.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-5612d642.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-56943696.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-5abf9fab.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-5c5a5baf.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-3cac4136.system.js → p-5ef54155.system.js} +2 -2
- package/dist/verdocs-web-sdk/p-62f70c53.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-63f9586c.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-6570268f.js +1 -0
- package/dist/verdocs-web-sdk/p-67df4e57.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-68dc38f8.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-6cc3de8d.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-c02c16e1.js → p-6f4149c4.js} +1 -1
- package/dist/verdocs-web-sdk/{p-90f5c0fa.system.entry.js → p-7028e5fd.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-eac4674e.system.entry.js → p-715c5b9d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-73371d7a.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-fb3d4091.system.js → p-75455b2d.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4cdc37f8.entry.js → p-78c38cec.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-63abfff5.system.entry.js → p-79cf7768.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-7bc3f0ae.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-7d992b01.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-80f083a4.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-812ed1e7.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-823225c2.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-82f6faac.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-8603a0d0.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-8c4abfcc.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-90371251.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-951d9c70.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-9dde58a8.system.js +1 -0
- package/dist/verdocs-web-sdk/p-a3ac0082.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-cb17023f.entry.js → p-a3b3cdf5.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3a10e87d.entry.js → p-a6a8d20f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-ac18bc08.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-b2c5baae.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-b3401d8e.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-b6dba09e.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-b995ebab.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-bd077b3e.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-aefbafc3.system.entry.js → p-bf8cf9ff.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-c6c2b890.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-a6ecbbd5.js → p-c8b879d1.js} +2 -2
- package/dist/verdocs-web-sdk/p-cb283760.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-ce097fdf.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-783d4ad4.system.entry.js → p-ce626e5b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-d2d18696.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-d4765b46.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-db67fbd1.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-efcde7ca.entry.js → p-dda7674c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-e32ec792.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-4e02f533.entry.js → p-f88d1bb0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-fc8bba36.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/esm-es5/index-914ed6f7.js +0 -1
- package/dist/esm-es5/verdocs-pagination_4.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-01de4163.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-134aad4b.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-14638f0c.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-1a0cccea.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-23686c43.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2730089c.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2dbe3de7.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2e164979.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2ff7c8c3.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-38434761.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3ad85ae0.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3d80bb1e.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3eccbc81.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3fadef3d.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-40f3a175.js +0 -1
- package/dist/verdocs-web-sdk/p-42acf76c.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4bbc74d9.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5ba13ab8.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5c2d7886.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-634a5760.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6c267fdd.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-871f33f9.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8d32aca4.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-90f5a645.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-92917e74.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-92b2d9e4.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-92ca2aef.system.js +0 -1
- package/dist/verdocs-web-sdk/p-9416d327.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-95332ec8.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-9f76bbe1.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a4391c14.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a7eef6e9.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a824c9a6.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c0d8f0db.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c220af42.js +0 -1
- package/dist/verdocs-web-sdk/p-c53aefe5.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-cd0eb575.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d497b3c1.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-dc9c4361.system.js +0 -1
- package/dist/verdocs-web-sdk/p-e2e972fc.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e646e8ef.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e6512cc3.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e72c075e.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e971511e.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e989b3ce.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f623b887.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f6594380.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f7ea7b36.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-fbd3e8df.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ff3e5717.entry.js +0 -1
@@ -1,163 +1,5 @@
|
|
1
|
-
import { r as registerInstance,
|
2
|
-
import { i as integerSequence } from './Primitives-054bc6e5.js';
|
3
|
-
import { d as renderedTextWidth } from './utils-a8284581.js';
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-b18c0348.js';
|
4
2
|
import { c as createPopper } from './popper-bfa25c7f.js';
|
5
|
-
import './_commonjsHelpers-5ec8f9b7.js';
|
6
|
-
import './Envelopes-e69b678a.js';
|
7
|
-
import './Types-5f31149e.js';
|
8
|
-
import './Files-70a192df.js';
|
9
|
-
import './Types-de18e225.js';
|
10
|
-
import './index-914ed6f7.js';
|
11
|
-
|
12
|
-
const verdocsPaginationCss = "verdocs-pagination{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-pagination .page-button{height:38px;display:-ms-flexbox;display:flex;-ms-flex:0 0 38px;flex:0 0 38px;cursor:pointer;font-weight:600;border-radius:4px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:#33364b;border:1px solid #654dcb}verdocs-pagination .page-button svg{width:18px;height:18px}verdocs-pagination .page-button.selected{cursor:default;color:#ffffff;background:#654dcb}verdocs-pagination .ellipsis{width:38px;height:38px;display:-ms-flexbox;display:flex;-ms-flex:0 0 38px;flex:0 0 38px;line-height:32px;-ms-flex-pack:center;justify-content:center;color:#33364b}";
|
13
|
-
|
14
|
-
const ChevronDoubleLeft = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M18.75 19.5l-7.5-7.5 7.5-7.5m-6 15L5.25 12l7.5-7.5" /></svg>`;
|
15
|
-
const ChevronDoubleRight = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 4.5l7.5 7.5-7.5 7.5m-6-15l7.5 7.5-7.5 7.5" /></svg>`;
|
16
|
-
const PageButton = ({ page, selected, onClick }) => {
|
17
|
-
let label;
|
18
|
-
if (page === 'first') {
|
19
|
-
label = ChevronDoubleLeft;
|
20
|
-
}
|
21
|
-
else if (page === 'last') {
|
22
|
-
label = ChevronDoubleRight;
|
23
|
-
}
|
24
|
-
else {
|
25
|
-
label = String(page + 1);
|
26
|
-
}
|
27
|
-
return h("div", { class: `page-button ${page === selected ? 'selected' : ''}`, onClick: () => onClick(page), innerHTML: label });
|
28
|
-
};
|
29
|
-
const VerdocsQuickFilter$2 = class {
|
30
|
-
constructor(hostRef) {
|
31
|
-
registerInstance(this, hostRef);
|
32
|
-
this.selectPage = createEvent(this, "selectPage", 7);
|
33
|
-
this.selectedPage = 0;
|
34
|
-
this.itemCount = 1;
|
35
|
-
this.perPage = 10;
|
36
|
-
}
|
37
|
-
handleSelectPage(page) {
|
38
|
-
var _a;
|
39
|
-
this.selectedPage = page;
|
40
|
-
(_a = this.selectPage) === null || _a === void 0 ? void 0 : _a.emit({ selectedPage: page });
|
41
|
-
}
|
42
|
-
render() {
|
43
|
-
const numPages = this.itemCount > 0 ? Math.ceil(this.itemCount / this.perPage) : 0;
|
44
|
-
// If there are 10 pages:
|
45
|
-
// If page == 0 => firstPage: 0, numPagesToDisplay:
|
46
|
-
const firstPage = Math.max(0, this.selectedPage - 2);
|
47
|
-
const numPagesToDisplay = Math.min(numPages, 5);
|
48
|
-
return (h(Host, null, this.selectedPage > 0 && h(PageButton, { page: 'first', selected: this.selectedPage, onClick: () => this.handleSelectPage(0) }), firstPage > 0 && h("div", { class: "ellipsis" }, "..."), integerSequence(firstPage, numPagesToDisplay - firstPage).map(pageNumber => (h(PageButton, { page: pageNumber, selected: this.selectedPage, onClick: page => this.handleSelectPage(+page) }))), numPagesToDisplay < numPages && h("div", { class: "ellipsis" }, "..."), this.selectedPage < numPages - 1 && h(PageButton, { page: 'last', selected: this.selectedPage, onClick: () => this.handleSelectPage(numPages - 1) })));
|
49
|
-
}
|
50
|
-
get el() { return getElement(this); }
|
51
|
-
};
|
52
|
-
VerdocsQuickFilter$2.style = verdocsPaginationCss;
|
53
|
-
|
54
|
-
const verdocsQuickFilterCss = "verdocs-quick-filter{position:relative;font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-quick-filter .control{outline:0;height:34px;display:-ms-flexbox;display:flex;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;background:#ffffff;-webkit-transition:all 100ms ease 0s;transition:all 100ms ease 0s;border:1px solid #cccccc}verdocs-quick-filter .title{padding:0 8px;font-size:14px;max-width:100%;overflow:hidden;color:#33364b;white-space:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;text-overflow:ellipsis}verdocs-quick-filter .title .prefix{display:inline;font-weight:700;margin:0 7px 0 0;color:#4c56cb}verdocs-quick-filter .arrow{width:32px;height:32px;border:none;outline:none;cursor:pointer;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;background:#ffffff;-webkit-transition:color 150ms ease 0s;transition:color 150ms ease 0s}verdocs-quick-filter .arrow svg{-webkit-transition:0.3s;transition:0.3s;fill:#cccccc}verdocs-quick-filter .separator{width:1px;display:block;margin-top:8px;margin-bottom:8px;-ms-flex-item-align:stretch;align-self:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#cccccc}verdocs-quick-filter .items{display:none;z-index:10000;position:absolute;border-radius:4px;background:#ffffff;-webkit-box-shadow:rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 4px 11px;box-shadow:rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 4px 11px}verdocs-quick-filter .items[data-show]{display:block}verdocs-quick-filter .option{width:100%;border:none;display:block;font-size:14px;text-align:left;background:none;padding:10px 20px;color:#1e2031}verdocs-quick-filter .option:hover{cursor:pointer;background:#4c56cb3f}verdocs-quick-filter .option[disabled]{color:#aaaaaa}verdocs-quick-filter .option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}verdocs-quick-filter.open .items{display:block}verdocs-quick-filter.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1)}";
|
55
|
-
|
56
|
-
const DropdownArrow = `<svg height="20" width="20" viewBox="0 0 20 20" aria-hidden="true" focusable="false" class="css-8mmkcg"><path d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"></path></svg>`;
|
57
|
-
const VerdocsQuickFilter$1 = class {
|
58
|
-
constructor(hostRef) {
|
59
|
-
registerInstance(this, hostRef);
|
60
|
-
this.optionSelected = createEvent(this, "optionSelected", 7);
|
61
|
-
// We need to do this to reliably disconnect the click-away listener
|
62
|
-
this.clickListenerSymbol = new AbortController();
|
63
|
-
this.options = [];
|
64
|
-
this.label = 'Filter';
|
65
|
-
this.value = '';
|
66
|
-
this.placeholder = 'Select...';
|
67
|
-
this.open = undefined;
|
68
|
-
}
|
69
|
-
componentDidLoad() {
|
70
|
-
this.popper = createPopper(this.dropdownButton, this.dropdownMenu, { placement: 'bottom-start', modifiers: [{ name: 'offset', options: { offset: [-1, 14] } }] });
|
71
|
-
window.addEventListener('click', this.clickListener.bind(this), { signal: this.clickListenerSymbol.signal });
|
72
|
-
}
|
73
|
-
disconnectedCallback() {
|
74
|
-
this.clickListenerSymbol.abort();
|
75
|
-
}
|
76
|
-
clickListener(e) {
|
77
|
-
const outside = !(e.target == this.el || this.el.contains(e.target));
|
78
|
-
if (outside) {
|
79
|
-
this.hide();
|
80
|
-
}
|
81
|
-
}
|
82
|
-
handleSelectOption(e, option) {
|
83
|
-
e.stopPropagation();
|
84
|
-
this.optionSelected.emit(option);
|
85
|
-
this.value = option.value;
|
86
|
-
this.hide();
|
87
|
-
}
|
88
|
-
// See https://popper.js.org/docs/v2/tutorial/
|
89
|
-
// What we're doing here is clearing event listeners when they aren't needed, to increase performance in lists
|
90
|
-
showDropdown() {
|
91
|
-
var _a, _b;
|
92
|
-
this.open = true;
|
93
|
-
this.dropdownMenu.setAttribute('data-show', '');
|
94
|
-
this.dropdownMenu.removeAttribute('aria-hidden');
|
95
|
-
(_a = this.popper) === null || _a === void 0 ? void 0 : _a.setOptions(options => ({
|
96
|
-
...options,
|
97
|
-
modifiers: [...options.modifiers, { name: 'eventListeners', enabled: true }],
|
98
|
-
})).catch(() => { });
|
99
|
-
(_b = this.popper) === null || _b === void 0 ? void 0 : _b.update().catch(() => { });
|
100
|
-
}
|
101
|
-
handleHideDropdown(e) {
|
102
|
-
var _a, _b;
|
103
|
-
if (((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.localName) === 'button' && ((_b = e === null || e === void 0 ? void 0 : e.target) === null || _b === void 0 ? void 0 : _b.className) === 'arrow') {
|
104
|
-
// This event is fired when a menu element is clicked because the button "loses focus" then too
|
105
|
-
return;
|
106
|
-
}
|
107
|
-
this.hide();
|
108
|
-
}
|
109
|
-
toggleDropdown(e) {
|
110
|
-
e.stopPropagation();
|
111
|
-
if (this.open) {
|
112
|
-
this.hide();
|
113
|
-
}
|
114
|
-
else {
|
115
|
-
this.showDropdown();
|
116
|
-
}
|
117
|
-
}
|
118
|
-
hide() {
|
119
|
-
var _a;
|
120
|
-
this.open = false;
|
121
|
-
this.dropdownMenu.removeAttribute('data-show');
|
122
|
-
this.dropdownMenu.setAttribute('aria-hidden', 'true');
|
123
|
-
(_a = this.popper) === null || _a === void 0 ? void 0 : _a.setOptions(options => ({
|
124
|
-
...options,
|
125
|
-
modifiers: [...options.modifiers, { name: 'eventListeners', enabled: false }],
|
126
|
-
})).catch(() => { });
|
127
|
-
}
|
128
|
-
render() {
|
129
|
-
var _a, _b, _c;
|
130
|
-
const selectedOption = (_a = this.options) === null || _a === void 0 ? void 0 : _a.find(option => option.value === this.value);
|
131
|
-
const longestOption = (_b = this.options) === null || _b === void 0 ? void 0 : _b.reduce((prev, curr) => (prev.label.length > curr.label.length ? prev : curr));
|
132
|
-
const longestLabelWidth = renderedTextWidth((longestOption === null || longestOption === void 0 ? void 0 : longestOption.label) || 'FILLER', '14px Inter, Barlow, sans-serif');
|
133
|
-
const prefixWidth = renderedTextWidth(this.label, '14px Inter, Barlow, sans-serif');
|
134
|
-
const minWidth = `${longestLabelWidth + prefixWidth + 40}px`;
|
135
|
-
return (h(Host, { class: { open: !!this.open }, style: { minWidth, display: 'inline-block' } }, h("div", { class: "control", onClick: e => this.toggleDropdown(e), onBlur: e => this.handleHideDropdown(e) }, h("div", { class: "title", ref: el => (this.dropdownButton = el) }, h("span", { class: "prefix" }, this.label, ":"), selectedOption ? selectedOption.label : this.placeholder), h("div", { style: { flex: '1' } }), h("div", { class: "separator" }), h("div", { class: "arrow", innerHTML: DropdownArrow, "aria-label": "Open Menu" })), h("div", { class: "items", "aria-hidden": !this.open, ref: el => (this.dropdownMenu = el), style: { minWidth } }, (_c = this.options) === null || _c === void 0 ? void 0 : _c.map(option => option.label ? (h("button", { onClick: e => this.handleSelectOption(e, option), class: `option ${option.value === this.value ? 'selected' : ''}`, disabled: option.disabled }, option.label)) : (h("div", { class: "separator" }))))));
|
136
|
-
}
|
137
|
-
get el() { return getElement(this); }
|
138
|
-
};
|
139
|
-
VerdocsQuickFilter$1.style = verdocsQuickFilterCss;
|
140
|
-
|
141
|
-
const verdocsSpinnerCss = "verdocs-spinner{display:inline-block;border-radius:50%;-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite}@keyframes spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";
|
142
|
-
|
143
|
-
const LIGHT_STYLE = { border: '3px solid rgba(255, 255, 255, 0.3)', borderTopColor: '#fff' };
|
144
|
-
const DARK_STYLE = { border: '3px solid rgba(0, 0, 0, 0.3)', borderTopColor: '#333' };
|
145
|
-
const VerdocsQuickFilter = class {
|
146
|
-
constructor(hostRef) {
|
147
|
-
registerInstance(this, hostRef);
|
148
|
-
this.size = 32;
|
149
|
-
this.mode = 'light';
|
150
|
-
}
|
151
|
-
render() {
|
152
|
-
return (h(Host, { style: {
|
153
|
-
width: `${this.size}px`,
|
154
|
-
height: `${this.size}px`,
|
155
|
-
flex: `0 0 ${this.size}px`,
|
156
|
-
...(this.mode === 'light' ? LIGHT_STYLE : DARK_STYLE),
|
157
|
-
} }));
|
158
|
-
}
|
159
|
-
};
|
160
|
-
VerdocsQuickFilter.style = verdocsSpinnerCss;
|
161
3
|
|
162
4
|
const methods$1 = {};
|
163
5
|
const names = [];
|
@@ -7597,4 +7439,4 @@ const VerdocsStatusIndicator = class {
|
|
7597
7439
|
};
|
7598
7440
|
VerdocsStatusIndicator.style = verdocsStatusIndicatorCss;
|
7599
7441
|
|
7600
|
-
export {
|
7442
|
+
export { VerdocsStatusIndicator as verdocs_status_indicator };
|
@@ -3,9 +3,9 @@ import './Types-5f31149e.js';
|
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-45286fc7.js';
|
4
4
|
import { c as createTemplateDocument, d as deleteTemplateDocument } from './TemplateDocuments-6fd2f4e2.js';
|
5
5
|
import { D as DocIcon, P as PngIcon, J as JpgIcon, a as PdfIcon, F as FileIcon$1, b as PageCountIcon, T as TrashIcon } from './Icons-c29eb0fa.js';
|
6
|
-
import { g as getTemplateStore } from './TemplateStore-
|
6
|
+
import { g as getTemplateStore } from './TemplateStore-ad36abff.js';
|
7
7
|
import { S as SDKError } from './errors-9b5498c8.js';
|
8
|
-
import { c as createTemplate } from './Templates-
|
8
|
+
import { c as createTemplate } from './Templates-1893bda7.js';
|
9
9
|
import './index-29123f30.js';
|
10
10
|
|
11
11
|
const verdocsTemplateAttachmentsCss = "verdocs-template-attachments{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-attachments h5{font-size:16px;font-weight:bold;margin:0 0 10px 0;color:#46497d}verdocs-template-attachments .attachments{margin:0 0 40px 0}verdocs-template-attachments .attachment{display:-ms-flexbox;display:flex;padding:5px 0;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#33364b}verdocs-template-attachments .attachment:hover .trash-icon{display:-ms-flexbox;display:flex}verdocs-template-attachments .attachment:hover .pages{display:none}verdocs-template-attachments svg{width:28px;height:28px;fill:#5c6575;margin:2px 0 0 0}verdocs-template-attachments .file-icon{-ms-flex:0;flex:0}verdocs-template-attachments .pages{width:24px;height:24px;-ms-flex:0 0 24px;flex:0 0 24px;padding-left:4px;position:relative;margin:-10px 0 0 0}verdocs-template-attachments .pages .pages-icon{top:0;left:0;width:24px;height:24px;position:absolute}verdocs-template-attachments .pages .count{top:11px;left:7px;z-index:1;width:18px;font-size:12px;font-weight:500;position:absolute;text-align:center;letter-spacing:-2px}verdocs-template-attachments .filename{-ms-flex:1;flex:1;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-bottom:1px dotted #cccccc}verdocs-template-attachments .trash-icon{-ms-flex:0;flex:0;display:none}verdocs-template-attachments .trash-icon:hover{cursor:pointer}verdocs-template-attachments verdocs-file-chooser{margin:10px 0;border:2px dashed #979797}verdocs-template-attachments .loader-wrapper{background-color:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:320px;height:320px;text-align:center;border:2px dashed #979797;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-attachments .progress-wrapper{padding:20px}verdocs-template-attachments .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-attachments .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-attachments ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-attachments ::-moz-placeholder{color:#aaaaaa}verdocs-template-attachments :-ms-input-placeholder{color:#aaaaaa}verdocs-template-attachments ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-attachments ::placeholder{color:#aaaaaa}";
|
@@ -2,13 +2,14 @@ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement
|
|
2
2
|
import './Types-5f31149e.js';
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-45286fc7.js';
|
4
4
|
import { g as getTemplateDocumentPageDisplayUri } from './TemplateDocuments-6fd2f4e2.js';
|
5
|
-
import { t as throttle } from './utils-
|
5
|
+
import { t as throttle } from './utils-ef800713.js';
|
6
6
|
import { c as createPopper } from './popper-bfa25c7f.js';
|
7
7
|
import './_commonjsHelpers-5ec8f9b7.js';
|
8
8
|
import './Envelopes-e69b678a.js';
|
9
9
|
import './Files-70a192df.js';
|
10
10
|
import './Types-de18e225.js';
|
11
|
-
import './index-
|
11
|
+
import './index-2685d184.js';
|
12
|
+
import './index-8dc8fdc4.js';
|
12
13
|
|
13
14
|
const verdocsTemplateDocumentPageCss = "verdocs-template-document-page{width:100%;position:relative}verdocs-template-document-page .verdocs-template-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-document-page .verdocs-template-document-page-layer.img{width:100%}";
|
14
15
|
|
@@ -4,16 +4,17 @@ import './Types-5f31149e.js';
|
|
4
4
|
import { V as VerdocsEndpoint, T as TemplateSenderTypes } from './VerdocsEndpoint-45286fc7.js';
|
5
5
|
import { u as updateField, c as createField } from './Fields-c82e6df3.js';
|
6
6
|
import { i as integerSequence } from './Primitives-054bc6e5.js';
|
7
|
-
import { a as getRoleIndex, r as renderDocumentField, f as updateCssTransform, h as defaultWidth, i as defaultHeight } from './utils-
|
8
|
-
import { g as getTemplateStore, a as getRoleNames } from './TemplateStore-
|
7
|
+
import { a as getRoleIndex, r as renderDocumentField, f as updateCssTransform, h as defaultWidth, i as defaultHeight } from './utils-ef800713.js';
|
8
|
+
import { g as getTemplateStore, a as getRoleNames } from './TemplateStore-ad36abff.js';
|
9
9
|
import { S as SDKError } from './errors-9b5498c8.js';
|
10
10
|
import { g as getRGBA } from './Colors-1b298092.js';
|
11
|
-
import { u as updateTemplate } from './Templates-
|
11
|
+
import { u as updateTemplate } from './Templates-1893bda7.js';
|
12
12
|
import './_commonjsHelpers-5ec8f9b7.js';
|
13
13
|
import './Envelopes-e69b678a.js';
|
14
14
|
import './Files-70a192df.js';
|
15
15
|
import './Types-de18e225.js';
|
16
|
-
import './index-
|
16
|
+
import './index-2685d184.js';
|
17
|
+
import './index-8dc8fdc4.js';
|
17
18
|
import './index-29123f30.js';
|
18
19
|
|
19
20
|
/**
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-b18c0348.js';
|
2
2
|
import './Types-5f31149e.js';
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-45286fc7.js';
|
4
|
-
import { u as updateTemplate } from './Templates-
|
5
|
-
import { g as getTemplateStore } from './TemplateStore-
|
4
|
+
import { u as updateTemplate } from './Templates-1893bda7.js';
|
5
|
+
import { g as getTemplateStore } from './TemplateStore-ad36abff.js';
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
7
7
|
import './index-29123f30.js';
|
8
8
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-b18c0348.js';
|
2
2
|
import './Types-5f31149e.js';
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-45286fc7.js';
|
4
|
-
import { g as getTemplateStore } from './TemplateStore-
|
4
|
+
import { g as getTemplateStore } from './TemplateStore-ad36abff.js';
|
5
5
|
import { S as SDKError } from './errors-9b5498c8.js';
|
6
6
|
import { V as VerdocsToast } from './Toast-f3b8fd46.js';
|
7
7
|
import './index-29123f30.js';
|
8
|
-
import './Templates-
|
8
|
+
import './Templates-1893bda7.js';
|
9
9
|
|
10
10
|
/**
|
11
11
|
* Enable automatic reminders. setup_time is the number of days after the envelope is sent that the first reminder
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-b18c0348.js';
|
2
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-45286fc7.js';
|
3
|
+
import './Types-5f31149e.js';
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Get the template stars for a template.
|
7
|
+
*/
|
8
|
+
/**
|
9
|
+
* Toggle the template star for a template.
|
10
|
+
*/
|
11
|
+
var toggleStar = function (endpoint, templateId) {
|
12
|
+
return endpoint.api //
|
13
|
+
.post("/templates/".concat(templateId, "/stars/toggle"))
|
14
|
+
.then(function (r) { return r.data; });
|
15
|
+
};
|
16
|
+
|
17
|
+
const verdocsTemplateStarCss = "verdocs-template-star{display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-template-star .star{line-height:10px}verdocs-template-star .star.updating{-webkit-animation:spinningStar 2s infinite linear;animation:spinningStar 2s infinite linear}verdocs-template-star .star svg{width:24px;height:24px}verdocs-template-star .count{color:#595c5d;font-size:14px;margin-left:10px}@-webkit-keyframes spinningStar{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spinningStar{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}";
|
18
|
+
|
19
|
+
const OutlineStarIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z" /></svg>`;
|
20
|
+
const SolidStarIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z" clip-rule="evenodd" /></svg>`;
|
21
|
+
const VerdocsTemplateStar = class {
|
22
|
+
constructor(hostRef) {
|
23
|
+
registerInstance(this, hostRef);
|
24
|
+
this.starChange = createEvent(this, "starChange", 7);
|
25
|
+
this.sdkError = createEvent(this, "sdkError", 7);
|
26
|
+
this.endpoint = VerdocsEndpoint.getDefault();
|
27
|
+
this.template = undefined;
|
28
|
+
this.updating = false;
|
29
|
+
}
|
30
|
+
async componentWillLoad() {
|
31
|
+
this.endpoint.loadSession();
|
32
|
+
if (!this.endpoint.session) {
|
33
|
+
console.log('[TEMPLATES] Must be authenticated');
|
34
|
+
return;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
toggle(e) {
|
38
|
+
e.stopPropagation();
|
39
|
+
this.updating = true;
|
40
|
+
toggleStar(VerdocsEndpoint.getDefault(), this.template.id)
|
41
|
+
.then(r => {
|
42
|
+
this.updating = false;
|
43
|
+
this.template.is_starred = r.is_starred;
|
44
|
+
this.template.star_counter = r.star_counter;
|
45
|
+
this.starChange.emit({
|
46
|
+
templateId: this.template.id,
|
47
|
+
starred: r.is_starred,
|
48
|
+
count: r.star_counter,
|
49
|
+
});
|
50
|
+
})
|
51
|
+
.catch(e => {
|
52
|
+
this.updating = false;
|
53
|
+
console.log('[STAR] Error toggling template star', e.message);
|
54
|
+
this.sdkError.emit(e);
|
55
|
+
});
|
56
|
+
}
|
57
|
+
render() {
|
58
|
+
return (h(Host, null, h("div", { class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.is_starred ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), h("div", { class: "count" }, this.template.star_counter || '--')));
|
59
|
+
}
|
60
|
+
};
|
61
|
+
VerdocsTemplateStar.style = verdocsTemplateStarCss;
|
62
|
+
|
63
|
+
export { VerdocsTemplateStar as verdocs_template_star };
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-b18c0348.js';
|
2
2
|
import './Types-5f31149e.js';
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-45286fc7.js';
|
4
|
-
import { u as updateTemplate } from './Templates-
|
5
|
-
import { g as getTemplateStore } from './TemplateStore-
|
4
|
+
import { u as updateTemplate } from './Templates-1893bda7.js';
|
5
|
+
import { g as getTemplateStore } from './TemplateStore-ad36abff.js';
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
7
7
|
import './index-29123f30.js';
|
8
8
|
|