@verdocs/web-sdk 1.7.3 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-9ea8fdb4.js → index-2aebde37.js} +4 -1
- package/dist/cjs/index-2aebde37.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-document-page_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-dropdown_4.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-attachment.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-date.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +1 -1
- 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-ok-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +14 -2
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js.map +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-sign.cjs.entry.js +1 -1
- 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-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-text-input.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-upload-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +3 -3
- package/dist/cjs/verdocs-web-sdk.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +50 -2
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js.map +1 -1
- package/dist/components/verdocs-search-box2.js +16 -2
- package/dist/components/verdocs-search-box2.js.map +1 -1
- package/dist/custom-elements.json +825 -0
- package/dist/docs.json +32 -3
- package/dist/esm/{index-5d92e60f.js → index-af5f4964.js} +4 -1
- package/dist/esm/index-af5f4964.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/verdocs-auth.entry.js +1 -1
- package/dist/esm/verdocs-button.entry.js +1 -1
- package/dist/esm/verdocs-document-page_2.entry.js +1 -1
- package/dist/esm/verdocs-dropdown_4.entry.js +1 -1
- package/dist/esm/verdocs-field-attachment.entry.js +1 -1
- package/dist/esm/verdocs-field-date.entry.js +1 -1
- package/dist/esm/verdocs-field-dropdown.entry.js +1 -1
- package/dist/esm/verdocs-field-initial.entry.js +1 -1
- package/dist/esm/verdocs-field-payment.entry.js +1 -1
- package/dist/esm/verdocs-field-signature.entry.js +1 -1
- package/dist/esm/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm/verdocs-field-timestamp.entry.js +1 -1
- package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
- package/dist/esm/verdocs-kba-dialog.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-quick-functions_3.entry.js +14 -2
- package/dist/esm/verdocs-quick-functions_3.entry.js.map +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-sign.entry.js +1 -1
- 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-card.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-text-input.entry.js +1 -1
- package/dist/esm/verdocs-toggle.entry.js +1 -1
- package/dist/esm/verdocs-upload-dialog.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +3 -3
- package/dist/esm/verdocs-web-sdk.js.map +1 -1
- package/dist/esm-es5/{index-5d92e60f.js → index-af5f4964.js} +2 -2
- package/dist/esm-es5/index-af5f4964.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment.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-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-initial-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog.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-quick-functions_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js.map +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-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-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-text-input.entry.js +1 -1
- package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
- package/dist/esm-es5/verdocs-upload-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js.map +1 -1
- package/dist/types/components/elements/verdocs-search-box/verdocs-search-box.d.ts +7 -0
- package/dist/types/components.d.ts +9 -0
- package/dist/verdocs-web-sdk/{p-d0d42959.entry.js → p-07f55897.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d0d42959.entry.js.map → p-07f55897.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-afde50f4.system.entry.js → p-0d6d5814.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-afde50f4.system.entry.js.map → p-0d6d5814.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-0df2b27c.system.js +2 -0
- package/dist/verdocs-web-sdk/p-0df2b27c.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-108c902c.entry.js → p-19a2aa83.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-108c902c.entry.js.map → p-19a2aa83.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-416b34f3.entry.js → p-1d4e0c98.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-416b34f3.entry.js.map → p-1d4e0c98.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-6247cf41.system.entry.js → p-1f4039a4.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6247cf41.system.entry.js.map → p-1f4039a4.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-f22d5fd0.entry.js → p-24d7c3b0.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f22d5fd0.entry.js.map → p-24d7c3b0.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-aadaa992.entry.js → p-252d3b8b.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-aadaa992.entry.js.map → p-252d3b8b.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-94ac8f93.system.entry.js → p-31e5873f.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-94ac8f93.system.entry.js.map → p-31e5873f.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-f0eee0d5.entry.js → p-368455f0.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f0eee0d5.entry.js.map → p-368455f0.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-9dcb571c.system.entry.js → p-3ce43f4b.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-9dcb571c.system.entry.js.map → p-3ce43f4b.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-cfe577f1.entry.js → p-40ad0c92.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-cfe577f1.entry.js.map → p-40ad0c92.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-4cb28823.entry.js → p-46effac3.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-4cb28823.entry.js.map → p-46effac3.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-e8cbf290.entry.js → p-4e29c137.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e8cbf290.entry.js.map → p-4e29c137.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-5aca8a03.system.entry.js → p-5160b7bd.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-5aca8a03.system.entry.js.map → p-5160b7bd.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-4d14aded.entry.js → p-550b0f7e.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-4d14aded.entry.js.map → p-550b0f7e.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-61ecdb86.js +3 -0
- package/dist/verdocs-web-sdk/p-61ecdb86.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-fdefbcee.entry.js → p-627ad3ed.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-fdefbcee.entry.js.map → p-627ad3ed.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-a53ba4ee.entry.js → p-6352c427.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a53ba4ee.entry.js.map → p-6352c427.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-d1100510.entry.js → p-63eb48f0.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d1100510.entry.js.map → p-63eb48f0.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-d5585118.system.entry.js → p-6859482c.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d5585118.system.entry.js.map → p-6859482c.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-198947d7.system.entry.js → p-68f4e8fc.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-198947d7.system.entry.js.map → p-68f4e8fc.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-4bf9a238.system.entry.js → p-68fc7efc.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-4bf9a238.system.entry.js.map → p-68fc7efc.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-d8f9569e.system.entry.js → p-72115808.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d8f9569e.system.entry.js.map → p-72115808.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-f2421625.entry.js → p-77a9f800.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f2421625.entry.js.map → p-77a9f800.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-8929b18b.entry.js → p-7cd59644.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-8929b18b.entry.js.map → p-7cd59644.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-0e99724c.system.entry.js → p-7ea7db5c.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0e99724c.system.entry.js.map → p-7ea7db5c.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-3ae0b204.entry.js → p-7fb414e7.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-3ae0b204.entry.js.map → p-7fb414e7.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-6fbb6a9e.entry.js → p-8bba55af.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6fbb6a9e.entry.js.map → p-8bba55af.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-9d9490f1.system.entry.js → p-9660162f.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-9d9490f1.system.entry.js.map → p-9660162f.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-c9fd8a97.system.entry.js → p-980bc364.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-c9fd8a97.system.entry.js.map → p-980bc364.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-90d79493.system.entry.js → p-99aef995.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-90d79493.system.entry.js.map → p-99aef995.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-7c747762.entry.js → p-9a713b3a.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7c747762.entry.js.map → p-9a713b3a.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-e2ff8188.system.entry.js → p-9d801657.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e2ff8188.system.entry.js.map → p-9d801657.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-850f6330.system.entry.js → p-a00e94fa.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-850f6330.system.entry.js.map → p-a00e94fa.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-55ebea82.system.entry.js → p-a394a4ba.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-55ebea82.system.entry.js.map → p-a394a4ba.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-2b592dcf.system.entry.js → p-a3f64ad7.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-2b592dcf.system.entry.js.map → p-a3f64ad7.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-d56338e0.entry.js → p-a4098c03.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d56338e0.entry.js.map → p-a4098c03.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-1eb067e7.entry.js → p-a63e0709.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-1eb067e7.entry.js.map → p-a63e0709.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-ea8bf9ee.entry.js → p-abd8a92d.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ea8bf9ee.entry.js.map → p-abd8a92d.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-f10d460c.entry.js → p-b3419893.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f10d460c.entry.js.map → p-b3419893.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-3f6a2934.system.entry.js → p-b347f7d8.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-3f6a2934.system.entry.js.map → p-b347f7d8.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-42205110.entry.js → p-b3d078a1.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-42205110.entry.js.map → p-b3d078a1.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-d8620769.system.entry.js → p-ba477710.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d8620769.system.entry.js.map → p-ba477710.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-832f3654.entry.js → p-bd2004b7.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-bd2004b7.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-5df78e0c.entry.js → p-c262955d.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-5df78e0c.entry.js.map → p-c262955d.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-c3e77379.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-c3e77379.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-7b1ccd3e.entry.js → p-c76c92a2.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7b1ccd3e.entry.js.map → p-c76c92a2.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-87b222f5.system.entry.js → p-cb371aae.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-87b222f5.system.entry.js.map → p-cb371aae.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-d61aad62.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-130fc6dc.system.entry.js.map → p-d61aad62.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-9f5f3f18.entry.js → p-ddad5c39.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-9f5f3f18.entry.js.map → p-ddad5c39.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-d66c21d6.system.entry.js → p-df215940.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d66c21d6.system.entry.js.map → p-df215940.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-0864f08b.system.entry.js → p-e251c0ed.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0864f08b.system.entry.js.map → p-e251c0ed.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-3e43c974.system.js → p-eef0b919.system.js} +3 -3
- package/dist/verdocs-web-sdk/p-eef0b919.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-a8c701c8.entry.js → p-f08d08df.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a8c701c8.entry.js.map → p-f08d08df.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-07b662d1.system.entry.js → p-fa5dc225.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-07b662d1.system.entry.js.map → p-fa5dc225.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-6cf319c9.system.entry.js → p-fb6927da.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6cf319c9.system.entry.js.map → p-fb6927da.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-7a4aa102.system.entry.js → p-fdb32f3f.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7a4aa102.system.entry.js.map → p-fdb32f3f.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-7f60c1b5.system.entry.js → p-fee6012f.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7f60c1b5.system.entry.js.map → p-fee6012f.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
- package/package.json +5 -5
- package/dist/cjs/index-9ea8fdb4.js.map +0 -1
- package/dist/esm/index-5d92e60f.js.map +0 -1
- package/dist/esm-es5/index-5d92e60f.js.map +0 -1
- package/dist/typings.d.ts +0 -4
- package/dist/verdocs-web-sdk/p-0455eebe.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-0455eebe.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-130fc6dc.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-3e43c974.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-403b35bb.system.js +0 -2
- package/dist/verdocs-web-sdk/p-403b35bb.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-832f3654.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-f418ed9f.js +0 -3
- package/dist/verdocs-web-sdk/p-f418ed9f.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
|
2
|
-
import { Component, h, Event, Prop } from '@stencil/core';
|
|
2
|
+
import { Component, h, Event, Prop, Method } from '@stencil/core';
|
|
3
3
|
import SearchIcon from './search.svg';
|
|
4
4
|
import CloseIcon from './close.svg';
|
|
5
5
|
/**
|
|
@@ -26,6 +26,18 @@ export class VerdocsSearchBox {
|
|
|
26
26
|
* The text search string entered by the user.
|
|
27
27
|
*/
|
|
28
28
|
this.query = '';
|
|
29
|
+
/**
|
|
30
|
+
* If set, the input field will attempt to "grab" focus after being rendered.
|
|
31
|
+
*/
|
|
32
|
+
this.grabsFocus = false;
|
|
33
|
+
}
|
|
34
|
+
async focusField() {
|
|
35
|
+
this.inputEl.focus();
|
|
36
|
+
}
|
|
37
|
+
componentDidRender() {
|
|
38
|
+
if (this.grabsFocus) {
|
|
39
|
+
this.inputEl.focus();
|
|
40
|
+
}
|
|
29
41
|
}
|
|
30
42
|
handleSearch(e) {
|
|
31
43
|
this.searchClicked.emit({ type: this.type, query: this.query });
|
|
@@ -49,7 +61,7 @@ export class VerdocsSearchBox {
|
|
|
49
61
|
this.type,
|
|
50
62
|
"s ",
|
|
51
63
|
h("button", { class: "remove", innerHTML: CloseIcon, onClick: () => this.handleClearFilter() }))),
|
|
52
|
-
h("input", { type: "text",
|
|
64
|
+
h("input", { type: "text", value: this.query, placeholder: this.placeholder, onInput: e => this.handleChange(e), onKeyUp: e => this.handleKeyUp(e), ref: el => (this.inputEl = el) }),
|
|
53
65
|
h("button", { onClick: e => this.handleSearch(e), class: "search" },
|
|
54
66
|
h("span", { innerHTML: SearchIcon }),
|
|
55
67
|
"Search")));
|
|
@@ -140,6 +152,24 @@ export class VerdocsSearchBox {
|
|
|
140
152
|
"attribute": "query",
|
|
141
153
|
"reflect": false,
|
|
142
154
|
"defaultValue": "''"
|
|
155
|
+
},
|
|
156
|
+
"grabsFocus": {
|
|
157
|
+
"type": "boolean",
|
|
158
|
+
"mutable": false,
|
|
159
|
+
"complexType": {
|
|
160
|
+
"original": "boolean",
|
|
161
|
+
"resolved": "boolean",
|
|
162
|
+
"references": {}
|
|
163
|
+
},
|
|
164
|
+
"required": false,
|
|
165
|
+
"optional": false,
|
|
166
|
+
"docs": {
|
|
167
|
+
"tags": [],
|
|
168
|
+
"text": "If set, the input field will attempt to \"grab\" focus after being rendered."
|
|
169
|
+
},
|
|
170
|
+
"attribute": "grabs-focus",
|
|
171
|
+
"reflect": false,
|
|
172
|
+
"defaultValue": "false"
|
|
143
173
|
}
|
|
144
174
|
}; }
|
|
145
175
|
static get events() { return [{
|
|
@@ -196,5 +226,23 @@ export class VerdocsSearchBox {
|
|
|
196
226
|
"references": {}
|
|
197
227
|
}
|
|
198
228
|
}]; }
|
|
229
|
+
static get methods() { return {
|
|
230
|
+
"focusField": {
|
|
231
|
+
"complexType": {
|
|
232
|
+
"signature": "() => Promise<void>",
|
|
233
|
+
"parameters": [],
|
|
234
|
+
"references": {
|
|
235
|
+
"Promise": {
|
|
236
|
+
"location": "global"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"return": "Promise<void>"
|
|
240
|
+
},
|
|
241
|
+
"docs": {
|
|
242
|
+
"text": "",
|
|
243
|
+
"tags": []
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}; }
|
|
199
247
|
}
|
|
200
248
|
//# sourceMappingURL=verdocs-search-box.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verdocs-search-box.js","sourceRoot":"","sources":["../../../../src/components/elements/verdocs-search-box/verdocs-search-box.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAC,SAAS,EAAE,CAAC,EAAE,KAAK,EAAgB,IAAI,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"verdocs-search-box.js","sourceRoot":"","sources":["../../../../src/components/elements/verdocs-search-box/verdocs-search-box.tsx"],"names":[],"mappings":"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","sourcesContent":["import {VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {Component, h, Event, EventEmitter, Prop, Method} from '@stencil/core';\nimport SearchIcon from './search.svg';\nimport CloseIcon from './close.svg';\n\nexport type TContentType = 'all' | 'document' | 'template' | 'organization';\n\nexport interface ISearchEvent {\n query: string;\n type: TContentType;\n}\n\n/**\n * Displays a customizable input box for search queries.\n *\n * Authentication is required to demonstrate this Element. You may do this in Storybook by using the Auth\n * embed. This Element will reuse the same session produced by logging in via that Embed.\n */\n@Component({\n tag: 'verdocs-search-box',\n styleUrl: 'verdocs-search-box.scss',\n shadow: false,\n})\nexport class VerdocsSearchBox {\n private inputEl: HTMLInputElement;\n\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * The placeholder to display in the input field.\n */\n @Prop() placeholder = 'search documents, templates, people...';\n\n /**\n * If set to a value other than 'all', a removeable filter indicator will be displayed.\n */\n @Prop() type: TContentType = 'all';\n\n /**\n * The text search string entered by the user.\n */\n @Prop() query = '';\n\n /**\n * If set, the input field will attempt to \"grab\" focus after being rendered.\n */\n @Prop() grabsFocus = false;\n\n /**\n * Event fired when the user changes the type.\n */\n @Event({composed: true}) searchClicked: EventEmitter<ISearchEvent>;\n\n /**\n * Event fired when the user changes the type.\n */\n @Event({composed: true}) typeChanged: EventEmitter<TContentType>;\n\n /**\n * Event fired when the user changes the query string.\n */\n @Event({composed: true}) queryChanged: EventEmitter<string>;\n\n @Method() async focusField() {\n this.inputEl.focus();\n }\n\n componentDidRender() {\n if (this.grabsFocus) {\n this.inputEl.focus();\n }\n }\n\n handleSearch(e) {\n this.searchClicked.emit({type: this.type, query: this.query});\n e.preventDefault();\n return false;\n }\n\n handleChange(e) {\n this.queryChanged.emit(e.target.value);\n }\n\n handleClearFilter() {\n this.typeChanged.emit('all');\n }\n\n handleKeyUp(e) {\n if (e.key === 'Enter') {\n this.searchClicked.emit({type: this.type, query: this.query});\n }\n }\n\n render() {\n return (\n <form onSubmit={e => this.handleSearch(e)}>\n {this.type !== undefined && this.type !== 'all' && (\n <span class=\"type\">\n {this.type}s <button class=\"remove\" innerHTML={CloseIcon} onClick={() => this.handleClearFilter()} />\n </span>\n )}\n <input\n type=\"text\"\n value={this.query}\n placeholder={this.placeholder}\n onInput={e => this.handleChange(e)}\n onKeyUp={e => this.handleKeyUp(e)}\n ref={el => (this.inputEl = el)}\n />\n <button onClick={e => this.handleSearch(e)} class=\"search\">\n <span innerHTML={SearchIcon} />\n Search\n </button>\n </form>\n );\n }\n}\n"]}
|
|
@@ -36,6 +36,18 @@ const VerdocsSearchBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
36
36
|
* The text search string entered by the user.
|
|
37
37
|
*/
|
|
38
38
|
this.query = '';
|
|
39
|
+
/**
|
|
40
|
+
* If set, the input field will attempt to "grab" focus after being rendered.
|
|
41
|
+
*/
|
|
42
|
+
this.grabsFocus = false;
|
|
43
|
+
}
|
|
44
|
+
async focusField() {
|
|
45
|
+
this.inputEl.focus();
|
|
46
|
+
}
|
|
47
|
+
componentDidRender() {
|
|
48
|
+
if (this.grabsFocus) {
|
|
49
|
+
this.inputEl.focus();
|
|
50
|
+
}
|
|
39
51
|
}
|
|
40
52
|
handleSearch(e) {
|
|
41
53
|
this.searchClicked.emit({ type: this.type, query: this.query });
|
|
@@ -54,14 +66,16 @@ const VerdocsSearchBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
54
66
|
}
|
|
55
67
|
}
|
|
56
68
|
render() {
|
|
57
|
-
return (h("form", { onSubmit: e => this.handleSearch(e) }, this.type !== undefined && this.type !== 'all' && (h("span", { class: "type" }, this.type, "s ", h("button", { class: "remove", innerHTML: CloseIcon, onClick: () => this.handleClearFilter() }))), h("input", { type: "text",
|
|
69
|
+
return (h("form", { onSubmit: e => this.handleSearch(e) }, this.type !== undefined && this.type !== 'all' && (h("span", { class: "type" }, this.type, "s ", h("button", { class: "remove", innerHTML: CloseIcon, onClick: () => this.handleClearFilter() }))), h("input", { type: "text", value: this.query, placeholder: this.placeholder, onInput: e => this.handleChange(e), onKeyUp: e => this.handleKeyUp(e), ref: el => (this.inputEl = el) }), h("button", { onClick: e => this.handleSearch(e), class: "search" }, h("span", { innerHTML: SearchIcon }), "Search")));
|
|
58
70
|
}
|
|
59
71
|
static get style() { return verdocsSearchBoxCss; }
|
|
60
72
|
}, [0, "verdocs-search-box", {
|
|
61
73
|
"endpoint": [16],
|
|
62
74
|
"placeholder": [1],
|
|
63
75
|
"type": [1],
|
|
64
|
-
"query": [1]
|
|
76
|
+
"query": [1],
|
|
77
|
+
"grabsFocus": [4, "grabs-focus"],
|
|
78
|
+
"focusField": [64]
|
|
65
79
|
}]);
|
|
66
80
|
function defineCustomElement() {
|
|
67
81
|
if (typeof customElements === "undefined") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"verdocs-search-box2.js","mappings":";;;;;;;;;;;;;AAAA,MAAM,mBAAmB,GAAG,gzDAAgzD;;MCuB/zD,gBAAgB;EAL7B;;;;;;;;;
|
|
1
|
+
{"file":"verdocs-search-box2.js","mappings":";;;;;;;;;;;;;AAAA,MAAM,mBAAmB,GAAG,gzDAAgzD;;MCuB/zD,gBAAgB;EAL7B;;;;;;;;;IAWU,aAAQ,GAAoB,eAAe,CAAC,UAAU,EAAE,CAAC;;;;IAKzD,gBAAW,GAAG,wCAAwC,CAAC;;;;IAKvD,SAAI,GAAiB,KAAK,CAAC;;;;IAK3B,UAAK,GAAG,EAAE,CAAC;;;;IAKX,eAAU,GAAG,KAAK,CAAC;GAsE5B;EArDW,MAAM,UAAU;IACxB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;GACtB;EAED,kBAAkB;IAChB,IAAI,IAAI,CAAC,UAAU,EAAE;MACnB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;KACtB;GACF;EAED,YAAY,CAAC,CAAC;IACZ,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAC,CAAC,CAAC;IAC9D,CAAC,CAAC,cAAc,EAAE,CAAC;IACnB,OAAO,KAAK,CAAC;GACd;EAED,YAAY,CAAC,CAAC;IACZ,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;GACxC;EAED,iBAAiB;IACf,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;GAC9B;EAED,WAAW,CAAC,CAAC;IACX,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE;MACrB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAC,CAAC,CAAC;KAC/D;GACF;EAED,MAAM;IACJ,QACE,YAAM,QAAQ,EAAE,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,IACtC,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,KAC7C,YAAM,KAAK,EAAC,MAAM,IACf,IAAI,CAAC,IAAI,QAAG,cAAQ,KAAK,EAAC,QAAQ,EAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,iBAAiB,EAAE,GAAI,CAChG,CACR,EACD,aACE,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,OAAO,EAAE,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAClC,OAAO,EAAE,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EACjC,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC,GAC9B,EACF,cAAQ,OAAO,EAAE,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,KAAK,EAAC,QAAQ,IACxD,YAAM,SAAS,EAAE,UAAU,GAAI,WAExB,CACJ,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/elements/verdocs-search-box/verdocs-search-box.scss?tag=verdocs-search-box","./src/components/elements/verdocs-search-box/verdocs-search-box.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-search-box {\n font-family: $verdocs-primary-font;\n\n form {\n display: flex;\n flex-direction: row;\n height: 45px;\n box-sizing: border-box;\n margin: 5px 0 0;\n border-radius: 5px;\n align-items: center;\n background-color: #fff;\n padding: 0 8px;\n border-width: 1px;\n border-style: solid;\n border-color: $verdocs-light-blue;\n\n input {\n box-sizing: border-box;\n height: 43px;\n width: 100%;\n font-size: 18px;\n border: none;\n\n &:focus {\n outline: none;\n }\n }\n\n button.search {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n border-radius: 4px;\n border: none;\n width: 100px;\n height: 28px;\n font-weight: 700;\n font-size: 10px;\n letter-spacing: 1px;\n background-color: $verdocs-green;\n text-transform: uppercase;\n color: #fff;\n }\n\n .type {\n background-color: $verdocs-light-blue;\n height: 30px;\n display: inline-flex;\n padding: 1px 0 2px 10px;\n font-size: 13px;\n line-height: 16px;\n border-radius: 4px;\n justify-content: center;\n text-transform: uppercase;\n align-items: center;\n flex-direction: row;\n color: #fff;\n margin-right: 10px;\n\n button {\n border: none;\n color: #fff;\n margin: 5px 0 0 8px;\n background: transparent;\n }\n }\n\n svg {\n width: 12px;\n height: 12px;\n margin-right: 6px;\n }\n }\n\n ::placeholder {\n color: $verdocs-grey-2;\n }\n}\n","import {VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {Component, h, Event, EventEmitter, Prop, Method} from '@stencil/core';\nimport SearchIcon from './search.svg';\nimport CloseIcon from './close.svg';\n\nexport type TContentType = 'all' | 'document' | 'template' | 'organization';\n\nexport interface ISearchEvent {\n query: string;\n type: TContentType;\n}\n\n/**\n * Displays a customizable input box for search queries.\n *\n * Authentication is required to demonstrate this Element. You may do this in Storybook by using the Auth\n * embed. This Element will reuse the same session produced by logging in via that Embed.\n */\n@Component({\n tag: 'verdocs-search-box',\n styleUrl: 'verdocs-search-box.scss',\n shadow: false,\n})\nexport class VerdocsSearchBox {\n private inputEl: HTMLInputElement;\n\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * The placeholder to display in the input field.\n */\n @Prop() placeholder = 'search documents, templates, people...';\n\n /**\n * If set to a value other than 'all', a removeable filter indicator will be displayed.\n */\n @Prop() type: TContentType = 'all';\n\n /**\n * The text search string entered by the user.\n */\n @Prop() query = '';\n\n /**\n * If set, the input field will attempt to \"grab\" focus after being rendered.\n */\n @Prop() grabsFocus = false;\n\n /**\n * Event fired when the user changes the type.\n */\n @Event({composed: true}) searchClicked: EventEmitter<ISearchEvent>;\n\n /**\n * Event fired when the user changes the type.\n */\n @Event({composed: true}) typeChanged: EventEmitter<TContentType>;\n\n /**\n * Event fired when the user changes the query string.\n */\n @Event({composed: true}) queryChanged: EventEmitter<string>;\n\n @Method() async focusField() {\n this.inputEl.focus();\n }\n\n componentDidRender() {\n if (this.grabsFocus) {\n this.inputEl.focus();\n }\n }\n\n handleSearch(e) {\n this.searchClicked.emit({type: this.type, query: this.query});\n e.preventDefault();\n return false;\n }\n\n handleChange(e) {\n this.queryChanged.emit(e.target.value);\n }\n\n handleClearFilter() {\n this.typeChanged.emit('all');\n }\n\n handleKeyUp(e) {\n if (e.key === 'Enter') {\n this.searchClicked.emit({type: this.type, query: this.query});\n }\n }\n\n render() {\n return (\n <form onSubmit={e => this.handleSearch(e)}>\n {this.type !== undefined && this.type !== 'all' && (\n <span class=\"type\">\n {this.type}s <button class=\"remove\" innerHTML={CloseIcon} onClick={() => this.handleClearFilter()} />\n </span>\n )}\n <input\n type=\"text\"\n value={this.query}\n placeholder={this.placeholder}\n onInput={e => this.handleChange(e)}\n onKeyUp={e => this.handleKeyUp(e)}\n ref={el => (this.inputEl = el)}\n />\n <button onClick={e => this.handleSearch(e)} class=\"search\">\n <span innerHTML={SearchIcon} />\n Search\n </button>\n </form>\n );\n }\n}\n"],"version":3}
|