@verdocs/web-sdk 2.2.5 → 2.2.6
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/loader.cjs.js +1 -1
- package/dist/cjs/{verdocs-help-icon.cjs.entry.js → verdocs-button_2.cjs.entry.js} +20 -0
- package/dist/cjs/verdocs-checkbox_4.cjs.entry.js +13 -3
- package/dist/cjs/verdocs-dialog_2.cjs.entry.js +50 -0
- package/dist/cjs/verdocs-settings-api-keys_4.cjs.entry.js +155 -12
- package/dist/cjs/verdocs-view.cjs.entry.js +9 -2
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/controls/verdocs-table/verdocs-table.css +8 -4
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.css +15 -0
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +30 -2
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.css +21 -5
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +4 -2
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +9 -2
- package/dist/collection/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.css +27 -18
- package/dist/collection/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.js +122 -14
- package/dist/components/Strings.js +12 -1
- package/dist/components/verdocs-dialog.js +1 -36
- package/dist/components/verdocs-dialog2.js +40 -0
- package/dist/components/verdocs-settings-api-keys2.js +192 -18
- package/dist/components/verdocs-settings-members2.js +1 -12
- package/dist/components/verdocs-settings.js +8 -2
- package/dist/components/verdocs-table2.js +1 -1
- package/dist/components/verdocs-text-input2.js +14 -3
- package/dist/components/verdocs-view2.js +9 -2
- package/dist/docs.json +49 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{verdocs-help-icon.entry.js → verdocs-button_2.entry.js} +20 -1
- package/dist/esm/verdocs-checkbox_4.entry.js +13 -3
- package/dist/esm/verdocs-dialog_2.entry.js +45 -0
- package/dist/esm/verdocs-settings-api-keys_4.entry.js +155 -12
- package/dist/esm/verdocs-view.entry.js +9 -2
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-button_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-checkbox_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-dialog_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-settings-api-keys_4.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/controls/verdocs-text-input/verdocs-text-input.d.ts +7 -0
- package/dist/types/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.d.ts +12 -1
- package/dist/types/components.d.ts +8 -0
- package/dist/verdocs-web-sdk/p-0fecb805.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-13585ecc.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-4821f318.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-647cdb84.system.js +1 -1
- package/dist/verdocs-web-sdk/p-77f04115.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-8a77db15.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-96c4637b.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-a1eb425e.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-bc442f6c.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-c9ac0d2f.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-dfcbcf0b.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/verdocs-button.cjs.entry.js +0 -26
- package/dist/cjs/verdocs-dialog.cjs.entry.js +0 -27
- package/dist/cjs/verdocs-table.cjs.entry.js +0 -27
- package/dist/esm/verdocs-button.entry.js +0 -22
- package/dist/esm/verdocs-dialog.entry.js +0 -23
- package/dist/esm/verdocs-table.entry.js +0 -23
- package/dist/esm-es5/verdocs-button.entry.js +0 -1
- package/dist/esm-es5/verdocs-dialog.entry.js +0 -1
- package/dist/esm-es5/verdocs-help-icon.entry.js +0 -1
- package/dist/esm-es5/verdocs-table.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-144d4ed1.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-268a29a9.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-40361f22.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-606e0405.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7213a107.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-84f9fe5d.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a69359d3.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ab26744f.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c69b5a99.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d309ef6f.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d734ced3.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-db4cfbfe.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f8a2988e.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-fbabbcea.system.entry.js +0 -1
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
15
15
|
};
|
16
16
|
|
17
17
|
patchBrowser().then(options => {
|
18
|
-
return index.bootstrapLazy(JSON.parse("[[\"verdocs-build.cjs\",[[0,\"verdocs-build\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"step\":[513],\"template\":[32]}]]],[\"ipc-test.cjs\",[[0,\"ipc-test\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"]}]]],[\"verdocs-settings.cjs\",[[0,\"verdocs-settings\",{\"endpoint\":[16],\"tab\":[32]}]]],[\"verdocs-envelopes-list.cjs\",[[0,\"verdocs-envelopes-list\",{\"endpoint\":[16],\"view\":[1537],\"status\":[1537],\"sort\":[1537],\"match\":[1537],\"showPagination\":[4,\"show-pagination\"],\"rowsPerPage\":[2,\"rows-per-page\"],\"selectedPage\":[2,\"selected-page\"],\"count\":[32],\"initiallyLoaded\":[32],\"loading\":[32],\"selectedEnvelopes\":[32],\"envelopes\":[32]}]]],[\"verdocs-field-attachment.cjs\",[[0,\"verdocs-field-attachment\",{\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"xscale\":[2],\"yscale\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-initial.cjs\",[[0,\"verdocs-field-initial\",{\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"initials\":[1],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"tempInitials\":[32],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-signature.cjs\",[[0,\"verdocs-field-signature\",{\"templateid\":[1],\"field\":[16],\"name\":[1],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"tempSignature\":[32],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-templates-list.cjs\",[[0,\"verdocs-templates-list\",{\"endpoint\":[16],\"sharing\":[1537],\"starred\":[1537],\"sort\":[1537],\"name\":[1537],\"allowedActions\":[1040],\"showPagination\":[4,\"show-pagination\"],\"rowsPerPage\":[2,\"rows-per-page\"],\"selectedPage\":[2,\"selected-page\"],\"count\":[32],\"initiallyLoaded\":[32],\"loading\":[32],\"confirmDelete\":[32],\"templates\":[32],\"localNameFilter\":[32]}]]],[\"verdocs-field-checkbox.cjs\",[[0,\"verdocs-field-checkbox\",{\"templateid\":[1],\"field\":[16],\"option\":[2],\"disabled\":[4],\"done\":[4],\"roleindex\":[2],\"editable\":[4],\"moveable\":[4],\"rerender\":[2],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-date.cjs\",[[0,\"verdocs-field-date\",{\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"containerId\":[32],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-dropdown.cjs\",[[0,\"verdocs-field-dropdown\",{\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-radio-button.cjs\",[[0,\"verdocs-field-radio-button\",{\"templateid\":[1],\"field\":[16],\"option\":[2],\"disabled\":[4],\"done\":[4],\"roleindex\":[2],\"editable\":[4],\"moveable\":[4],\"rerender\":[2],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-textarea.cjs\",[[0,\"verdocs-field-textarea\",{\"endpoint\":[16],\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"xscale\":[2],\"yscale\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-textbox.cjs\",[[0,\"verdocs-field-textbox\",{\"endpoint\":[16],\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"xscale\":[2],\"yscale\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-timestamp.cjs\",[[0,\"verdocs-field-timestamp\",{\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-sign.cjs\",[[0,\"verdocs-sign\",{\"envelopeId\":[1,\"envelope-id\"],\"roleId\":[1,\"role-id\"],\"inviteCode\":[1,\"invite-code\"],\"headerTargetId\":[1,\"header-target-id\"],\"envelope\":[32],\"roleNames\":[32],\"sortedRecipients\":[32],\"recipient\":[32],\"signerToken\":[32],\"hasSignature\":[32],\"nextButtonLabel\":[32],\"nextSubmits\":[32],\"errorMessage\":[32],\"focusedField\":[32],\"submitting\":[32],\"isDone\":[32],\"showDone\":[32],\"finishLater\":[32],\"showFinishLater\":[32],\"agreed\":[32],\"documentsSingularPlural\":[32]}]]],[\"verdocs-template-reminders.cjs\",[[0,\"verdocs-template-reminders\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"showPlanBlocker\":[32],\"sendReminders\":[32],\"firstReminderDays\":[32],\"reminderDays\":[32],\"dirty\":[32]}]]],[\"verdocs-auth.cjs\",[[0,\"verdocs-auth\",{\"endpoint\":[16],\"visible\":[4],\"logo\":[1],\"isAuthenticated\":[32],\"displayMode\":[32],\"orgname\":[32],\"orgAvailable\":[32],\"first\":[32],\"last\":[32],\"username\":[32],\"phone\":[32],\"password\":[32],\"submitting\":[32],\"activeSession\":[32],\"accountType\":[32],\"howHear\":[32],\"industry\":[32],\"companySize\":[32],\"reason\":[32],\"signupStep\":[32],\"resendDisabled\":[32],\"checkingOrg\":[32]}]]],[\"verdocs-envelope-sidebar.cjs\",[[0,\"verdocs-envelope-sidebar\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"activeTab\":[32],\"panelOpen\":[32],\"showManageDialog\":[32],\"showRecipientDialog\":[32],\"showCancelDialog\":[32],\"loading\":[32]}]]],[\"verdocs-template-name.cjs\",[[0,\"verdocs-template-name\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"name\":[32],\"dirty\":[32]}]]],[\"verdocs-search.cjs\",[[0,\"verdocs-search\",{\"endpoint\":[16]}]]],[\"verdocs-send.cjs\",[[0,\"verdocs-send\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"containerId\":[32],\"rolesAtLevel\":[32],\"showPickerForId\":[32],\"sessionContacts\":[32],\"rolesCompleted\":[32],\"reset\":[64]}]]],[\"verdocs-template-visibility.cjs\",[[0,\"verdocs-template-visibility\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"dirty\":[32],\"personal\":[32],\"public\":[32]}]]],[\"verdocs-preview.cjs\",[[0,\"verdocs-preview\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"]}]]],[\"verdocs-activity-box.cjs\",[[0,\"verdocs-activity-box\",{\"endpoint\":[16],\"items\":[2],\"view\":[1],\"header\":[1],\"title\":[32],\"count\":[32],\"loading\":[32],\"entries\":[32]}]]],[\"verdocs-floating-menu.cjs\",[[0,\"verdocs-floating-menu\",{\"options\":[16]}]]],[\"verdocs-kba-dialog.cjs\",[[0,\"verdocs-kba-dialog\",{\"step\":[2],\"steps\":[2],\"helptitle\":[1],\"helptext\":[1],\"mode\":[1],\"label\":[1],\"placeholder\":[1],\"choices\":[16],\"response\":[32]}]]],[\"verdocs-dialog.cjs\",[[4,\"verdocs-dialog\"]]],[\"verdocs-field-payment.cjs\",[[0,\"verdocs-field-payment\",{\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"fields\":[16],\"pageNum\":[2,\"page-num\"],\"roleName\":[1,\"role-name\"],\"fieldId\":[1,\"field-id\"],\"recipients\":[8],\"selectedRoleName\":[1,\"selected-role-name\"],\"pdfPages\":[16],\"currentSignature\":[1,\"current-signature\"],\"currentSignatureId\":[1,\"current-signature-id\"],\"currentInitial\":[1,\"current-initial\"],\"currentInitialId\":[1,\"current-initial-id\"],\"focused\":[4],\"signed\":[4],\"rerender\":[2],\"roleindex\":[2],\"preparedMessage\":[32],\"signatureUrl\":[32],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-organization-card.cjs\",[[0,\"verdocs-organization-card\",{\"organization\":[16]}]]],[\"verdocs-search-tabs.cjs\",[[0,\"verdocs-search-tabs\",{\"selected\":[32]}]]],[\"verdocs-template-card.cjs\",[[0,\"verdocs-template-card\",{\"template\":[16]}]]],[\"verdocs-template-tags.cjs\",[[0,\"verdocs-template-tags\",{\"tags\":[16]}]]],[\"verdocs-toggle.cjs\",[[0,\"verdocs-toggle\",{\"options\":[16],\"theme\":[1],\"selectedOption\":[32]}]]],[\"verdocs-envelope-document-page.cjs\",[[0,\"verdocs-envelope-document-page\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"documentId\":[1,\"document-id\"],\"pageNumber\":[2,\"page-number\"],\"virtualWidth\":[2,\"virtual-width\"],\"virtualHeight\":[1026,\"virtual-height\"],\"layers\":[16],\"type\":[1],\"containerId\":[32],\"renderedWidth\":[32],\"renderedHeight\":[32],\"naturalWidth\":[32],\"naturalHeight\":[32],\"aspectRatio\":[32],\"skipFirstNotification\":[32],\"pageDisplayUri\":[32]}]]],[\"verdocs-loader.cjs\",[[0,\"verdocs-loader\"]]],[\"verdocs-button.cjs\",[[0,\"verdocs-button\",{\"label\":[1],\"startIcon\":[1,\"start-icon\"],\"endIcon\":[1,\"end-icon\"],\"size\":[1],\"type\":[1],\"variant\":[1],\"disabled\":[4]}]]],[\"verdocs-view.cjs\",[[0,\"verdocs-view\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"headerTargetId\":[1,\"header-target-id\"],\"canceling\":[32],\"envelope\":[32],\"roleNames\":[32],\"showCancelDone\":[32]}]]],[\"verdocs-initial-dialog.cjs\",[[0,\"verdocs-initial-dialog\",{\"initials\":[1],\"fontLoaded\":[32],\"enteredInitials\":[32],\"mode\":[32]}]]],[\"verdocs-signature-dialog.cjs\",[[0,\"verdocs-signature-dialog\",{\"name\":[1],\"fontLoaded\":[32],\"enteredName\":[32],\"mode\":[32]}]]],[\"verdocs-contact-picker.cjs\",[[0,\"verdocs-contact-picker\",{\"endpoint\":[16],\"templateRole\":[16],\"contactSuggestions\":[16],\"name\":[32],\"email\":[32],\"phone\":[32],\"message\":[32],\"showSuggestions\":[32],\"showMessage\":[32],\"delegator\":[32],\"nameFieldId\":[32],\"emailFieldId\":[32],\"phoneFieldId\":[32]}]]],[\"verdocs-upload-dialog.cjs\",[[0,\"verdocs-upload-dialog\",{\"draggingOver\":[32],\"decodedFiles\":[32]}]]],[\"verdocs-status-indicator.cjs\",[[0,\"verdocs-status-indicator\",{\"size\":[1],\"theme\":[1],\"status\":[1],\"envelope\":[16],\"isOpen\":[32],\"containerId\":[32]}]]],[\"verdocs-template-star.cjs\",[[0,\"verdocs-template-star\",{\"endpoint\":[16],\"template\":[1040],\"updating\":[32]}]]],[\"verdocs-checkbox_4.cjs\",[[0,\"verdocs-checkbox\",{\"checked\":[4],\"name\":[1],\"label\":[1],\"value\":[1],\"theme\":[1],\"disabled\":[4]}],[0,\"verdocs-select-input\",{\"value\":[1],\"label\":[1],\"options\":[16],\"disabled\":[4]}],[0,\"verdocs-component-error\",{\"message\":[1]}],[0,\"verdocs-text-input\",{\"value\":[1537],\"label\":[1],\"placeholder\":[1],\"autocomplete\":[1],\"helpText\":[1,\"help-text\"],\"clearable\":[4],\"type\":[1],\"disabled\":[4],\"required\":[4]}]]],[\"verdocs-template-attachments_2.cjs\",[[0,\"verdocs-template-attachments\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"uploading\":[32],\"progressLabel\":[32],\"progressPercent\":[32],\"showDeleteError\":[32],\"confirmDeleteDocument\":[32],\"store\":[32]}],[0,\"verdocs-template-create\",{\"endpoint\":[16],\"file\":[32],\"creating\":[32],\"progressLabel\":[32],\"progressPercent\":[32]}]]],[\"verdocs-envelope-recipient-link_2.cjs\",[[0,\"verdocs-envelope-recipient-link\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"roleName\":[1,\"role-name\"],\"isOpen\":[32],\"loading\":[32],\"gettingLink\":[32],\"link\":[32]}],[0,\"verdocs-envelope-recipient-summary\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"canSendAnother\":[4,\"can-send-another\"],\"canView\":[4,\"can-view\"],\"canDone\":[4,\"can-done\"],\"isOpen\":[32],\"loading\":[32],\"recipientStatusIcons\":[32],\"containerId\":[32],\"gettingLinks\":[32],\"links\":[32]}]]],[\"verdocs-toggle-button.cjs\",[[0,\"verdocs-toggle-button\",{\"active\":[4],\"icon\":[1],\"label\":[1],\"size\":[1],\"_active\":[32]}]]],[\"verdocs-quick-functions_3.cjs\",[[0,\"verdocs-quick-functions\",{\"endpoint\":[16]}],[0,\"verdocs-search-activity\",{\"endpoint\":[16],\"type\":[1],\"options\":[8],\"emptyMessage\":[32],\"authFailure\":[32],\"title\":[32],\"recent\":[32],\"saved\":[32],\"starred\":[32]}],[0,\"verdocs-search-box\",{\"endpoint\":[16],\"placeholder\":[1],\"type\":[1],\"query\":[1],\"grabsFocus\":[4,\"grabs-focus\"],\"focusField\":[64]}]]],[\"verdocs-table.cjs\",[[0,\"verdocs-table\",{\"columns\":[16],\"data\":[16]}]]],[\"verdocs-settings-api-keys_4.cjs\",[[0,\"verdocs-settings-organization\",{\"endpoint\":[16],\"valid\":[32],\"dirty\":[32],\"submitting\":[32],\"name\":[32],\"business_name\":[32],\"contact_email\":[32],\"phone\":[32],\"address\":[32],\"address2\":[32],\"timezone\":[32],\"url\":[32]}],[0,\"verdocs-settings-profile\",{\"endpoint\":[16],\"valid\":[32],\"dirty\":[32],\"submitting\":[32],\"first_name\":[32],\"last_name\":[32],\"email\":[32],\"phone\":[32]}],[0,\"verdocs-settings-api-keys\",{\"endpoint\":[16],\"keys\":[32]}],[0,\"verdocs-settings-members\",{\"endpoint\":[16],\"members\":[32]}]]],[\"verdocs-radio-button.cjs\",[[0,\"verdocs-radio-button\",{\"checked\":[4],\"name\":[1],\"value\":[1],\"disabled\":[4]}]]],[\"verdocs-file-chooser_2.cjs\",[[0,\"verdocs-file-chooser\",{\"endpoint\":[16],\"file\":[32]}],[0,\"verdocs-progress-bar\",{\"label\":[1],\"showPercent\":[4,\"show-percent\"],\"percent\":[2]}]]],[\"verdocs-dropdown.cjs\",[[0,\"verdocs-dropdown\",{\"options\":[16],\"open\":[32]}]]],[\"verdocs-pagination_3.cjs\",[[0,\"verdocs-pagination\",{\"selectedPage\":[1538,\"selected-page\"],\"itemCount\":[2,\"item-count\"],\"perPage\":[2,\"per-page\"]}],[0,\"verdocs-quick-filter\",{\"options\":[16],\"label\":[1],\"value\":[1537],\"placeholder\":[1],\"open\":[32]}],[0,\"verdocs-spinner\",{\"size\":[2],\"mode\":[1]}]]],[\"verdocs-template-document-page_2.cjs\",[[0,\"verdocs-template-document-page\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"documentId\":[1,\"document-id\"],\"pageNumber\":[2,\"page-number\"],\"virtualWidth\":[2,\"virtual-width\"],\"virtualHeight\":[1026,\"virtual-height\"],\"layers\":[16],\"containerId\":[32],\"renderedWidth\":[32],\"renderedHeight\":[32],\"naturalWidth\":[32],\"naturalHeight\":[32],\"aspectRatio\":[32],\"skipFirstNotification\":[32],\"pageDisplayUri\":[32]}],[0,\"verdocs-toolbar-icon\",{\"text\":[1],\"icon\":[1],\"placement\":[1],\"containerId\":[32]}]]],[\"verdocs-ok-dialog.cjs\",[[0,\"verdocs-ok-dialog\",{\"heading\":[1],\"message\":[1],\"showCancel\":[4,\"show-cancel\"],\"closed\":[32]}]]],[\"verdocs-help-icon.cjs\",[[0,\"verdocs-help-icon\",{\"text\":[1],\"icon\":[1],\"containerId\":[32]}]]],[\"verdocs-template-fields_4.cjs\",[[0,\"verdocs-template-roles\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"showingRoleDialog\":[32],\"showingSenderDialog\":[32],\"sender\":[32]}],[0,\"verdocs-template-fields\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"toolbarTargetId\":[1,\"toolbar-target-id\"],\"placing\":[32],\"showMustSelectRole\":[32],\"selectedRoleName\":[32],\"rerender\":[32]},[[4,\"keydown\",\"handleKeyDown\"]]],[0,\"verdocs-template-role-properties\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"roleName\":[1,\"role-name\"],\"sender\":[1],\"dirty\":[32],\"saving\":[32],\"name\":[32],\"type\":[32],\"fullName\":[32],\"email\":[32],\"phone\":[32],\"allowDelegation\":[32]}],[0,\"verdocs-template-sender\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"sender\":[1],\"saving\":[32]}]]],[\"verdocs-button-panel_2.cjs\",[[0,\"verdocs-template-field-properties\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"fieldName\":[1,\"field-name\"],\"helpText\":[1,\"help-text\"],\"dirty\":[32],\"loading\":[32],\"type\":[32],\"setting\":[32],\"name\":[32],\"roleName\":[32],\"group\":[32],\"fieldType\":[32],\"required\":[32],\"options\":[32],\"placeholder\":[32],\"value\":[32],\"leading\":[32],\"showingHelp\":[32]}],[4,\"verdocs-button-panel\",{\"icon\":[1],\"showPanel\":[64],\"hidePanel\":[64],\"toggle\":[64]}]]]]"), options);
|
18
|
+
return index.bootstrapLazy(JSON.parse("[[\"verdocs-build.cjs\",[[0,\"verdocs-build\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"step\":[513],\"template\":[32]}]]],[\"ipc-test.cjs\",[[0,\"ipc-test\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"]}]]],[\"verdocs-settings.cjs\",[[0,\"verdocs-settings\",{\"endpoint\":[16],\"tab\":[32]}]]],[\"verdocs-envelopes-list.cjs\",[[0,\"verdocs-envelopes-list\",{\"endpoint\":[16],\"view\":[1537],\"status\":[1537],\"sort\":[1537],\"match\":[1537],\"showPagination\":[4,\"show-pagination\"],\"rowsPerPage\":[2,\"rows-per-page\"],\"selectedPage\":[2,\"selected-page\"],\"count\":[32],\"initiallyLoaded\":[32],\"loading\":[32],\"selectedEnvelopes\":[32],\"envelopes\":[32]}]]],[\"verdocs-field-attachment.cjs\",[[0,\"verdocs-field-attachment\",{\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"xscale\":[2],\"yscale\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-initial.cjs\",[[0,\"verdocs-field-initial\",{\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"initials\":[1],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"tempInitials\":[32],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-signature.cjs\",[[0,\"verdocs-field-signature\",{\"templateid\":[1],\"field\":[16],\"name\":[1],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"tempSignature\":[32],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-templates-list.cjs\",[[0,\"verdocs-templates-list\",{\"endpoint\":[16],\"sharing\":[1537],\"starred\":[1537],\"sort\":[1537],\"name\":[1537],\"allowedActions\":[1040],\"showPagination\":[4,\"show-pagination\"],\"rowsPerPage\":[2,\"rows-per-page\"],\"selectedPage\":[2,\"selected-page\"],\"count\":[32],\"initiallyLoaded\":[32],\"loading\":[32],\"confirmDelete\":[32],\"templates\":[32],\"localNameFilter\":[32]}]]],[\"verdocs-field-checkbox.cjs\",[[0,\"verdocs-field-checkbox\",{\"templateid\":[1],\"field\":[16],\"option\":[2],\"disabled\":[4],\"done\":[4],\"roleindex\":[2],\"editable\":[4],\"moveable\":[4],\"rerender\":[2],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-date.cjs\",[[0,\"verdocs-field-date\",{\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"containerId\":[32],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-dropdown.cjs\",[[0,\"verdocs-field-dropdown\",{\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-radio-button.cjs\",[[0,\"verdocs-field-radio-button\",{\"templateid\":[1],\"field\":[16],\"option\":[2],\"disabled\":[4],\"done\":[4],\"roleindex\":[2],\"editable\":[4],\"moveable\":[4],\"rerender\":[2],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-textarea.cjs\",[[0,\"verdocs-field-textarea\",{\"endpoint\":[16],\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"xscale\":[2],\"yscale\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-textbox.cjs\",[[0,\"verdocs-field-textbox\",{\"endpoint\":[16],\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"xscale\":[2],\"yscale\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-timestamp.cjs\",[[0,\"verdocs-field-timestamp\",{\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-sign.cjs\",[[0,\"verdocs-sign\",{\"envelopeId\":[1,\"envelope-id\"],\"roleId\":[1,\"role-id\"],\"inviteCode\":[1,\"invite-code\"],\"headerTargetId\":[1,\"header-target-id\"],\"envelope\":[32],\"roleNames\":[32],\"sortedRecipients\":[32],\"recipient\":[32],\"signerToken\":[32],\"hasSignature\":[32],\"nextButtonLabel\":[32],\"nextSubmits\":[32],\"errorMessage\":[32],\"focusedField\":[32],\"submitting\":[32],\"isDone\":[32],\"showDone\":[32],\"finishLater\":[32],\"showFinishLater\":[32],\"agreed\":[32],\"documentsSingularPlural\":[32]}]]],[\"verdocs-template-reminders.cjs\",[[0,\"verdocs-template-reminders\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"showPlanBlocker\":[32],\"sendReminders\":[32],\"firstReminderDays\":[32],\"reminderDays\":[32],\"dirty\":[32]}]]],[\"verdocs-auth.cjs\",[[0,\"verdocs-auth\",{\"endpoint\":[16],\"visible\":[4],\"logo\":[1],\"isAuthenticated\":[32],\"displayMode\":[32],\"orgname\":[32],\"orgAvailable\":[32],\"first\":[32],\"last\":[32],\"username\":[32],\"phone\":[32],\"password\":[32],\"submitting\":[32],\"activeSession\":[32],\"accountType\":[32],\"howHear\":[32],\"industry\":[32],\"companySize\":[32],\"reason\":[32],\"signupStep\":[32],\"resendDisabled\":[32],\"checkingOrg\":[32]}]]],[\"verdocs-envelope-sidebar.cjs\",[[0,\"verdocs-envelope-sidebar\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"activeTab\":[32],\"panelOpen\":[32],\"showManageDialog\":[32],\"showRecipientDialog\":[32],\"showCancelDialog\":[32],\"loading\":[32]}]]],[\"verdocs-template-name.cjs\",[[0,\"verdocs-template-name\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"name\":[32],\"dirty\":[32]}]]],[\"verdocs-search.cjs\",[[0,\"verdocs-search\",{\"endpoint\":[16]}]]],[\"verdocs-send.cjs\",[[0,\"verdocs-send\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"containerId\":[32],\"rolesAtLevel\":[32],\"showPickerForId\":[32],\"sessionContacts\":[32],\"rolesCompleted\":[32],\"reset\":[64]}]]],[\"verdocs-template-visibility.cjs\",[[0,\"verdocs-template-visibility\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"dirty\":[32],\"personal\":[32],\"public\":[32]}]]],[\"verdocs-preview.cjs\",[[0,\"verdocs-preview\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"]}]]],[\"verdocs-activity-box.cjs\",[[0,\"verdocs-activity-box\",{\"endpoint\":[16],\"items\":[2],\"view\":[1],\"header\":[1],\"title\":[32],\"count\":[32],\"loading\":[32],\"entries\":[32]}]]],[\"verdocs-template-document-page_2.cjs\",[[0,\"verdocs-template-document-page\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"documentId\":[1,\"document-id\"],\"pageNumber\":[2,\"page-number\"],\"virtualWidth\":[2,\"virtual-width\"],\"virtualHeight\":[1026,\"virtual-height\"],\"layers\":[16],\"containerId\":[32],\"renderedWidth\":[32],\"renderedHeight\":[32],\"naturalWidth\":[32],\"naturalHeight\":[32],\"aspectRatio\":[32],\"skipFirstNotification\":[32],\"pageDisplayUri\":[32]}],[0,\"verdocs-toolbar-icon\",{\"text\":[1],\"icon\":[1],\"placement\":[1],\"containerId\":[32]}]]],[\"verdocs-floating-menu.cjs\",[[0,\"verdocs-floating-menu\",{\"options\":[16]}]]],[\"verdocs-kba-dialog.cjs\",[[0,\"verdocs-kba-dialog\",{\"step\":[2],\"steps\":[2],\"helptitle\":[1],\"helptext\":[1],\"mode\":[1],\"label\":[1],\"placeholder\":[1],\"choices\":[16],\"response\":[32]}]]],[\"verdocs-field-payment.cjs\",[[0,\"verdocs-field-payment\",{\"templateid\":[1],\"field\":[16],\"disabled\":[4],\"fields\":[16],\"pageNum\":[2,\"page-num\"],\"roleName\":[1,\"role-name\"],\"fieldId\":[1,\"field-id\"],\"recipients\":[8],\"selectedRoleName\":[1,\"selected-role-name\"],\"pdfPages\":[16],\"currentSignature\":[1,\"current-signature\"],\"currentSignatureId\":[1,\"current-signature-id\"],\"currentInitial\":[1,\"current-initial\"],\"currentInitialId\":[1,\"current-initial-id\"],\"focused\":[4],\"signed\":[4],\"rerender\":[2],\"roleindex\":[2],\"preparedMessage\":[32],\"signatureUrl\":[32],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-organization-card.cjs\",[[0,\"verdocs-organization-card\",{\"organization\":[16]}]]],[\"verdocs-search-tabs.cjs\",[[0,\"verdocs-search-tabs\",{\"selected\":[32]}]]],[\"verdocs-template-card.cjs\",[[0,\"verdocs-template-card\",{\"template\":[16]}]]],[\"verdocs-template-tags.cjs\",[[0,\"verdocs-template-tags\",{\"tags\":[16]}]]],[\"verdocs-toggle.cjs\",[[0,\"verdocs-toggle\",{\"options\":[16],\"theme\":[1],\"selectedOption\":[32]}]]],[\"verdocs-loader.cjs\",[[0,\"verdocs-loader\"]]],[\"verdocs-button_2.cjs\",[[0,\"verdocs-help-icon\",{\"text\":[1],\"icon\":[1],\"containerId\":[32]}],[0,\"verdocs-button\",{\"label\":[1],\"startIcon\":[1,\"start-icon\"],\"endIcon\":[1,\"end-icon\"],\"size\":[1],\"type\":[1],\"variant\":[1],\"disabled\":[4]}]]],[\"verdocs-view.cjs\",[[0,\"verdocs-view\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"headerTargetId\":[1,\"header-target-id\"],\"canceling\":[32],\"envelope\":[32],\"roleNames\":[32],\"showCancelDone\":[32]}]]],[\"verdocs-initial-dialog.cjs\",[[0,\"verdocs-initial-dialog\",{\"initials\":[1],\"fontLoaded\":[32],\"enteredInitials\":[32],\"mode\":[32]}]]],[\"verdocs-signature-dialog.cjs\",[[0,\"verdocs-signature-dialog\",{\"name\":[1],\"fontLoaded\":[32],\"enteredName\":[32],\"mode\":[32]}]]],[\"verdocs-contact-picker.cjs\",[[0,\"verdocs-contact-picker\",{\"endpoint\":[16],\"templateRole\":[16],\"contactSuggestions\":[16],\"name\":[32],\"email\":[32],\"phone\":[32],\"message\":[32],\"showSuggestions\":[32],\"showMessage\":[32],\"delegator\":[32],\"nameFieldId\":[32],\"emailFieldId\":[32],\"phoneFieldId\":[32]}]]],[\"verdocs-upload-dialog.cjs\",[[0,\"verdocs-upload-dialog\",{\"draggingOver\":[32],\"decodedFiles\":[32]}]]],[\"verdocs-status-indicator.cjs\",[[0,\"verdocs-status-indicator\",{\"size\":[1],\"theme\":[1],\"status\":[1],\"envelope\":[16],\"isOpen\":[32],\"containerId\":[32]}]]],[\"verdocs-template-star.cjs\",[[0,\"verdocs-template-star\",{\"endpoint\":[16],\"template\":[1040],\"updating\":[32]}]]],[\"verdocs-checkbox_4.cjs\",[[0,\"verdocs-checkbox\",{\"checked\":[4],\"name\":[1],\"label\":[1],\"value\":[1],\"theme\":[1],\"disabled\":[4]}],[0,\"verdocs-component-error\",{\"message\":[1]}],[0,\"verdocs-select-input\",{\"value\":[1],\"label\":[1],\"options\":[16],\"disabled\":[4]}],[0,\"verdocs-text-input\",{\"value\":[1537],\"label\":[1],\"placeholder\":[1],\"autocomplete\":[1],\"helpText\":[1,\"help-text\"],\"clearable\":[4],\"copyable\":[4],\"type\":[1],\"disabled\":[4],\"required\":[4]}]]],[\"verdocs-template-attachments_2.cjs\",[[0,\"verdocs-template-attachments\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"uploading\":[32],\"progressLabel\":[32],\"progressPercent\":[32],\"showDeleteError\":[32],\"confirmDeleteDocument\":[32],\"store\":[32]}],[0,\"verdocs-template-create\",{\"endpoint\":[16],\"file\":[32],\"creating\":[32],\"progressLabel\":[32],\"progressPercent\":[32]}]]],[\"verdocs-envelope-recipient-link_2.cjs\",[[0,\"verdocs-envelope-recipient-link\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"roleName\":[1,\"role-name\"],\"isOpen\":[32],\"loading\":[32],\"gettingLink\":[32],\"link\":[32]}],[0,\"verdocs-envelope-recipient-summary\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"canSendAnother\":[4,\"can-send-another\"],\"canView\":[4,\"can-view\"],\"canDone\":[4,\"can-done\"],\"isOpen\":[32],\"loading\":[32],\"recipientStatusIcons\":[32],\"containerId\":[32],\"gettingLinks\":[32],\"links\":[32]}]]],[\"verdocs-envelope-document-page.cjs\",[[0,\"verdocs-envelope-document-page\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"documentId\":[1,\"document-id\"],\"pageNumber\":[2,\"page-number\"],\"virtualWidth\":[2,\"virtual-width\"],\"virtualHeight\":[1026,\"virtual-height\"],\"layers\":[16],\"type\":[1],\"containerId\":[32],\"renderedWidth\":[32],\"renderedHeight\":[32],\"naturalWidth\":[32],\"naturalHeight\":[32],\"aspectRatio\":[32],\"skipFirstNotification\":[32],\"pageDisplayUri\":[32]}]]],[\"verdocs-toggle-button.cjs\",[[0,\"verdocs-toggle-button\",{\"active\":[4],\"icon\":[1],\"label\":[1],\"size\":[1],\"_active\":[32]}]]],[\"verdocs-quick-functions_3.cjs\",[[0,\"verdocs-quick-functions\",{\"endpoint\":[16]}],[0,\"verdocs-search-activity\",{\"endpoint\":[16],\"type\":[1],\"options\":[8],\"emptyMessage\":[32],\"authFailure\":[32],\"title\":[32],\"recent\":[32],\"saved\":[32],\"starred\":[32]}],[0,\"verdocs-search-box\",{\"endpoint\":[16],\"placeholder\":[1],\"type\":[1],\"query\":[1],\"grabsFocus\":[4,\"grabs-focus\"],\"focusField\":[64]}]]],[\"verdocs-file-chooser_2.cjs\",[[0,\"verdocs-file-chooser\",{\"endpoint\":[16],\"file\":[32]}],[0,\"verdocs-progress-bar\",{\"label\":[1],\"showPercent\":[4,\"show-percent\"],\"percent\":[2]}]]],[\"verdocs-dialog_2.cjs\",[[4,\"verdocs-dialog\"],[0,\"verdocs-table\",{\"columns\":[16],\"data\":[16]}]]],[\"verdocs-settings-api-keys_4.cjs\",[[0,\"verdocs-settings-api-keys\",{\"endpoint\":[16],\"keys\":[32],\"creatingKey\":[32],\"createdKey\":[32],\"deletingKey\":[32],\"rotatingKey\":[32],\"newApiKeyName\":[32],\"newApiKeyProfileId\":[32],\"members\":[32]}],[0,\"verdocs-settings-organization\",{\"endpoint\":[16],\"valid\":[32],\"dirty\":[32],\"submitting\":[32],\"name\":[32],\"business_name\":[32],\"contact_email\":[32],\"phone\":[32],\"address\":[32],\"address2\":[32],\"timezone\":[32],\"url\":[32]}],[0,\"verdocs-settings-profile\",{\"endpoint\":[16],\"valid\":[32],\"dirty\":[32],\"submitting\":[32],\"first_name\":[32],\"last_name\":[32],\"email\":[32],\"phone\":[32]}],[0,\"verdocs-settings-members\",{\"endpoint\":[16],\"members\":[32]}]]],[\"verdocs-radio-button.cjs\",[[0,\"verdocs-radio-button\",{\"checked\":[4],\"name\":[1],\"value\":[1],\"disabled\":[4]}]]],[\"verdocs-dropdown.cjs\",[[0,\"verdocs-dropdown\",{\"options\":[16],\"open\":[32]}]]],[\"verdocs-pagination_3.cjs\",[[0,\"verdocs-pagination\",{\"selectedPage\":[1538,\"selected-page\"],\"itemCount\":[2,\"item-count\"],\"perPage\":[2,\"per-page\"]}],[0,\"verdocs-quick-filter\",{\"options\":[16],\"label\":[1],\"value\":[1537],\"placeholder\":[1],\"open\":[32]}],[0,\"verdocs-spinner\",{\"size\":[2],\"mode\":[1]}]]],[\"verdocs-ok-dialog.cjs\",[[0,\"verdocs-ok-dialog\",{\"heading\":[1],\"message\":[1],\"showCancel\":[4,\"show-cancel\"],\"closed\":[32]}]]],[\"verdocs-template-fields_4.cjs\",[[0,\"verdocs-template-roles\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"showingRoleDialog\":[32],\"showingSenderDialog\":[32],\"sender\":[32]}],[0,\"verdocs-template-fields\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"toolbarTargetId\":[1,\"toolbar-target-id\"],\"placing\":[32],\"showMustSelectRole\":[32],\"selectedRoleName\":[32],\"rerender\":[32]},[[4,\"keydown\",\"handleKeyDown\"]]],[0,\"verdocs-template-role-properties\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"roleName\":[1,\"role-name\"],\"sender\":[1],\"dirty\":[32],\"saving\":[32],\"name\":[32],\"type\":[32],\"fullName\":[32],\"email\":[32],\"phone\":[32],\"allowDelegation\":[32]}],[0,\"verdocs-template-sender\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"sender\":[1],\"saving\":[32]}]]],[\"verdocs-button-panel_2.cjs\",[[0,\"verdocs-template-field-properties\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"fieldName\":[1,\"field-name\"],\"helpText\":[1,\"help-text\"],\"dirty\":[32],\"loading\":[32],\"type\":[32],\"setting\":[32],\"name\":[32],\"roleName\":[32],\"group\":[32],\"fieldType\":[32],\"required\":[32],\"options\":[32],\"placeholder\":[32],\"value\":[32],\"leading\":[32],\"showingHelp\":[32]}],[4,\"verdocs-button-panel\",{\"icon\":[1],\"showPanel\":[64],\"hidePanel\":[64],\"toggle\":[64]}]]]]"), options);
|
19
19
|
});
|
@@ -13,13 +13,17 @@ verdocs-table .table {
|
|
13
13
|
width: 100%;
|
14
14
|
border: none;
|
15
15
|
}
|
16
|
+
verdocs-table .row.data-row {
|
17
|
+
border: 1px solid #cccccc;
|
18
|
+
background-color: #ffffff;
|
19
|
+
}
|
16
20
|
verdocs-table .header-col {
|
17
21
|
text-align: left;
|
18
|
-
padding:
|
19
|
-
font-weight:
|
20
|
-
color: #
|
22
|
+
padding: 8px 16px;
|
23
|
+
font-weight: 600;
|
24
|
+
color: #5c6575;
|
21
25
|
}
|
22
26
|
verdocs-table .data-col {
|
23
|
-
padding:
|
27
|
+
padding: 8px 16px;
|
24
28
|
font-weight: 400;
|
25
29
|
}
|
@@ -56,4 +56,19 @@ verdocs-text-input .clear {
|
|
56
56
|
verdocs-text-input .clear:hover {
|
57
57
|
fill: #720101;
|
58
58
|
cursor: pointer;
|
59
|
+
}
|
60
|
+
verdocs-text-input .copy {
|
61
|
+
top: 7px;
|
62
|
+
right: 5px;
|
63
|
+
width: 18px;
|
64
|
+
height: 18px;
|
65
|
+
fill: #cccccc;
|
66
|
+
position: absolute;
|
67
|
+
}
|
68
|
+
verdocs-text-input .copy:hover {
|
69
|
+
fill: #654dcb;
|
70
|
+
cursor: pointer;
|
71
|
+
}
|
72
|
+
verdocs-text-input.clearable .input-element, verdocs-text-input.copyable .input-element {
|
73
|
+
padding-right: 32px;
|
59
74
|
}
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
2
|
+
import { VerdocsToast } from '../../../utils/Toast';
|
2
3
|
const ClearIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.881 122.88"><g><path fill-rule="evenodd" clip-rule="evenodd" d="M61.44,0c33.933,0,61.441,27.507,61.441,61.439 c0,33.933-27.508,61.44-61.441,61.44C27.508,122.88,0,95.372,0,61.439C0,27.507,27.508,0,61.44,0L61.44,0z M81.719,36.226 c1.363-1.363,3.572-1.363,4.936,0c1.363,1.363,1.363,3.573,0,4.936L66.375,61.439l20.279,20.278c1.363,1.363,1.363,3.573,0,4.937 c-1.363,1.362-3.572,1.362-4.936,0L61.44,66.376L41.162,86.654c-1.362,1.362-3.573,1.362-4.936,0c-1.363-1.363-1.363-3.573,0-4.937 l20.278-20.278L36.226,41.162c-1.363-1.363-1.363-3.573,0-4.936c1.363-1.363,3.573-1.363,4.936,0L61.44,56.504L81.719,36.226 L81.719,36.226z"/></g></svg>`;
|
4
|
+
const CopyIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M15.988 3.012A2.25 2.25 0 0118 5.25v6.5A2.25 2.25 0 0115.75 14H13.5V7A2.5 2.5 0 0011 4.5H8.128a2.252 2.252 0 011.884-1.488A2.25 2.25 0 0112.25 1h1.5a2.25 2.25 0 012.238 2.012zM11.5 3.25a.75.75 0 01.75-.75h1.5a.75.75 0 01.75.75v.25h-3v-.25z" clip-rule="evenodd" /><path fill-rule="evenodd" d="M2 7a1 1 0 011-1h8a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V7zm2 3.25a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75zm0 3.5a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75z" clip-rule="evenodd" /></svg>`;
|
3
5
|
/**
|
4
6
|
* Display a text input field. This is just a standard HTML input field with minimal markup to fit the
|
5
7
|
* visual styles of the other components. Note that events "bubble" from the input field to the container,
|
@@ -13,12 +15,20 @@ export class VerdocsTextInput {
|
|
13
15
|
this.autocomplete = '';
|
14
16
|
this.helpText = '';
|
15
17
|
this.clearable = false;
|
18
|
+
this.copyable = false;
|
16
19
|
this.type = 'text';
|
17
20
|
this.disabled = false;
|
18
21
|
this.required = false;
|
19
22
|
}
|
23
|
+
copyToClipboard() {
|
24
|
+
this.inputEl.select();
|
25
|
+
navigator.clipboard
|
26
|
+
.writeText(this.value)
|
27
|
+
.then(() => VerdocsToast('Copied!'))
|
28
|
+
.catch(e => console.log('Error copying to clipboard', e));
|
29
|
+
}
|
20
30
|
render() {
|
21
|
-
return (h(Host, { class:
|
31
|
+
return (h(Host, { class: `input-field ${this.clearable ? 'clearable' : ''} ${this.copyable ? 'copyable' : ''}` }, h("label", null, this.label && (h("div", { class: "input-label" }, this.label + ':', this.required && h("span", { class: "required" }, "*"))), h("div", { class: "input-container" }, h("input", { type: this.type, value: this.value, required: this.required, class: "input-element", "data-lpignore": "true", disabled: this.disabled, placeholder: this.placeholder, autoComplete: this.autocomplete, ref: el => (this.inputEl = el), onInput: (e) => (this.value = e.target.value) }), this.clearable && this.value && (h("span", { innerHTML: ClearIcon, class: "clear", onClick: () => {
|
22
32
|
// We need to allow the onInput event to fire first in case
|
23
33
|
// the user was focused on this field before clicking clear.
|
24
34
|
setTimeout(() => {
|
@@ -32,7 +42,7 @@ export class VerdocsTextInput {
|
|
32
42
|
(_b = this.inputEl) === null || _b === void 0 ? void 0 : _b.blur();
|
33
43
|
}, 50);
|
34
44
|
}, 50);
|
35
|
-
} }))), this.helpText && h("verdocs-help-icon", { text: this.helpText }))));
|
45
|
+
} })), !this.clearable && this.copyable && this.value && h("span", { innerHTML: CopyIcon, class: "copy", onClick: () => this.copyToClipboard() })), this.helpText && h("verdocs-help-icon", { text: this.helpText }))));
|
36
46
|
}
|
37
47
|
static get is() { return "verdocs-text-input"; }
|
38
48
|
static get originalStyleUrls() {
|
@@ -155,6 +165,24 @@ export class VerdocsTextInput {
|
|
155
165
|
"reflect": false,
|
156
166
|
"defaultValue": "false"
|
157
167
|
},
|
168
|
+
"copyable": {
|
169
|
+
"type": "boolean",
|
170
|
+
"mutable": false,
|
171
|
+
"complexType": {
|
172
|
+
"original": "boolean",
|
173
|
+
"resolved": "boolean",
|
174
|
+
"references": {}
|
175
|
+
},
|
176
|
+
"required": false,
|
177
|
+
"optional": false,
|
178
|
+
"docs": {
|
179
|
+
"tags": [],
|
180
|
+
"text": "If set, a copy-to-clipboard button will be displayed. NOTE: A field may not be\nboth clearable and copyable. If both properties are set to true, copyable will\nbe ignored."
|
181
|
+
},
|
182
|
+
"attribute": "copyable",
|
183
|
+
"reflect": false,
|
184
|
+
"defaultValue": "false"
|
185
|
+
},
|
158
186
|
"type": {
|
159
187
|
"type": "string",
|
160
188
|
"mutable": false,
|
@@ -18,18 +18,34 @@ verdocs-dialog .background-overlay {
|
|
18
18
|
justify-content: center;
|
19
19
|
}
|
20
20
|
verdocs-dialog .dialog {
|
21
|
-
width:
|
21
|
+
width: 420px;
|
22
22
|
display: flex;
|
23
|
-
|
24
|
-
border-radius: 4px;
|
23
|
+
max-width: 100%;
|
25
24
|
overflow: hidden;
|
25
|
+
border-radius: 4px;
|
26
|
+
flex-direction: column;
|
26
27
|
background: #ffffff;
|
27
|
-
padding: 16px;
|
28
28
|
box-shadow: 3px 3px 5px 1px rgba(40, 40, 40, 0.4);
|
29
29
|
}
|
30
30
|
verdocs-dialog .heading {
|
31
31
|
display: flex;
|
32
|
-
font-size:
|
32
|
+
font-size: 16px;
|
33
33
|
font-weight: 500;
|
34
|
+
padding: 8px 16px;
|
35
|
+
flex-direction: row;
|
36
|
+
color: #ffffff;
|
37
|
+
background: #46497d;
|
38
|
+
}
|
39
|
+
verdocs-dialog .content {
|
40
|
+
padding: 16px;
|
41
|
+
}
|
42
|
+
verdocs-dialog .content p {
|
43
|
+
margin: 0 0 1em 0;
|
44
|
+
}
|
45
|
+
verdocs-dialog .buttons {
|
46
|
+
gap: 14px;
|
47
|
+
display: flex;
|
34
48
|
flex-direction: row;
|
49
|
+
align-items: center;
|
50
|
+
justify-content: flex-end;
|
35
51
|
}
|
@@ -5,13 +5,15 @@ import { h, Host } from '@stencil/core';
|
|
5
5
|
export class VerdocsDialog {
|
6
6
|
// We need a separate event handler for clicking the background because it can receive events "through" other child components
|
7
7
|
handleDismiss(e) {
|
8
|
+
var _a;
|
9
|
+
console.log('e', e.target.className);
|
8
10
|
if (e.target.className === 'background-overlay') {
|
9
11
|
e.preventDefault();
|
10
|
-
this.exit.emit();
|
12
|
+
(_a = this.exit) === null || _a === void 0 ? void 0 : _a.emit();
|
11
13
|
}
|
12
14
|
}
|
13
15
|
render() {
|
14
|
-
return (h(Host, null, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("slot", { name: "title" }, h("div", { class: "heading" }, "Please Confirm")), h("slot", null, h("
|
16
|
+
return (h(Host, null, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("slot", { name: "title" }, h("div", { class: "heading" }, "Please Confirm")), h("slot", null, h("div", { class: "content" }))))));
|
15
17
|
}
|
16
18
|
static get is() { return "verdocs-dialog"; }
|
17
19
|
static get originalStyleUrls() {
|
@@ -45,7 +45,13 @@ export class VerdocsView {
|
|
45
45
|
console.log('[VIEW] Loading envelope...');
|
46
46
|
try {
|
47
47
|
this.envelope = await throttledGetEnvelope(this.endpoint, this.envelopeId);
|
48
|
+
console.log('[VIEW] Loaded envelope', this.envelope);
|
48
49
|
this.roleNames = this.envelope.recipients.map(r => r.role_name);
|
50
|
+
setTimeout(async () => {
|
51
|
+
console.log('[VIEW] Reloading envelope...');
|
52
|
+
this.envelope = await throttledGetEnvelope(this.endpoint, this.envelopeId);
|
53
|
+
console.log('[VIEW] Reloaded envelope', this.envelope);
|
54
|
+
}, 2000);
|
49
55
|
}
|
50
56
|
catch (e) {
|
51
57
|
(_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
|
@@ -129,11 +135,12 @@ export class VerdocsView {
|
|
129
135
|
}
|
130
136
|
// Add download options to the menu
|
131
137
|
const hasAttachments = this.envelope.documents.length > 0;
|
132
|
-
const
|
138
|
+
const normalDocCount = this.envelope.documents.filter(doc => doc.type === 'attachment').length;
|
139
|
+
const hasCertificate = this.envelope.documents.find(doc => doc.type === 'certificate') !== undefined;
|
133
140
|
if (hasAttachments || hasCertificate) {
|
134
141
|
menuOptions.push({ label: '' });
|
135
142
|
if (hasAttachments) {
|
136
|
-
menuOptions.push({ id: 'download-attachments', label: 'Download Documents
|
143
|
+
menuOptions.push({ id: 'download-attachments', label: normalDocCount > 1 ? 'Download Documents' : 'Download Document' });
|
137
144
|
}
|
138
145
|
if (hasCertificate) {
|
139
146
|
menuOptions.push({ id: 'download-certificate', label: 'Download Certificate' });
|
package/dist/collection/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.css
CHANGED
@@ -11,28 +11,37 @@ verdocs-settings-api-keys {
|
|
11
11
|
verdocs-settings-api-keys .table {
|
12
12
|
margin: 12px 0;
|
13
13
|
}
|
14
|
-
verdocs-settings-api-keys .
|
15
|
-
|
16
|
-
width: 32px;
|
17
|
-
height: 32px;
|
18
|
-
border-radius: 32px;
|
19
|
-
background: #777777;
|
20
|
-
color: #ffffff;
|
21
|
-
font-weight: 700;
|
14
|
+
verdocs-settings-api-keys .data-col div {
|
15
|
+
gap: 12px;
|
22
16
|
display: flex;
|
23
17
|
align-items: center;
|
24
|
-
|
25
|
-
}
|
26
|
-
verdocs-settings-api-keys .col.col-actions {
|
27
|
-
align-items: center;
|
28
|
-
text-align: center;
|
18
|
+
flex-direction: row;
|
29
19
|
}
|
30
|
-
verdocs-settings-api-keys .col
|
31
|
-
cursor: pointer;
|
20
|
+
verdocs-settings-api-keys .data-col svg {
|
32
21
|
width: 24px;
|
33
22
|
height: 24px;
|
34
|
-
fill: #777777;
|
35
23
|
}
|
36
|
-
verdocs-settings-api-keys .col
|
37
|
-
|
24
|
+
verdocs-settings-api-keys .col-name svg,
|
25
|
+
verdocs-settings-api-keys .col-client_id svg,
|
26
|
+
verdocs-settings-api-keys .col-profile_id svg {
|
27
|
+
fill: #a1a1aa;
|
28
|
+
}
|
29
|
+
verdocs-settings-api-keys .col-actions svg {
|
30
|
+
fill: #ffffff;
|
31
|
+
stroke: #a1a1aa;
|
32
|
+
}
|
33
|
+
verdocs-settings-api-keys .col-actions svg:hover {
|
34
|
+
cursor: pointer;
|
35
|
+
stroke: red;
|
36
|
+
}
|
37
|
+
verdocs-settings-api-keys .col-actions > div {
|
38
|
+
justify-content: center;
|
39
|
+
}
|
40
|
+
verdocs-settings-api-keys .header-col.col-actions {
|
41
|
+
text-align: center;
|
42
|
+
}
|
43
|
+
verdocs-settings-api-keys verdocs-dialog p {
|
44
|
+
font-size: 16px;
|
45
|
+
line-height: 18px;
|
46
|
+
margin: 0 0 1em 0;
|
38
47
|
}
|
package/dist/collection/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.js
CHANGED
@@ -1,9 +1,14 @@
|
|
1
|
-
import { ApiKeys } from '@verdocs/js-sdk/Organizations';
|
2
1
|
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
2
|
+
import { capitalize } from '@verdocs/js-sdk/Utils/Strings';
|
3
|
+
import { ApiKeys, Members } from '@verdocs/js-sdk/Organizations';
|
3
4
|
import { h, Host } from '@stencil/core';
|
4
5
|
import { VerdocsToast } from '../../../utils/Toast';
|
5
6
|
import { SDKError } from '../../../utils/errors';
|
6
|
-
|
7
|
+
const ClockIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zM12.75 6a.75.75 0 00-1.5 0v6c0 .414.336.75.75.75h4.5a.75.75 0 000-1.5h-3.75V6z" clip-rule="evenodd" /></svg>`;
|
8
|
+
const TagIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M5.5 3A2.5 2.5 0 003 5.5v2.879a2.5 2.5 0 00.732 1.767l6.5 6.5a2.5 2.5 0 003.536 0l2.878-2.878a2.5 2.5 0 000-3.536l-6.5-6.5A2.5 2.5 0 008.38 3H5.5zM6 7a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd" /></svg>`;
|
9
|
+
const UserIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-5.5-2.5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zM10 12a5.99 5.99 0 00-4.793 2.39A6.483 6.483 0 0010 16.5a6.483 6.483 0 004.793-2.11A5.99 5.99 0 0010 12z" clip-rule="evenodd" /></svg>`;
|
10
|
+
const TrashIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>`;
|
11
|
+
const ArrowPathIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99" /></svg>`;
|
7
12
|
/**
|
8
13
|
* Displays a settings form that allows the user to manage their API keys.
|
9
14
|
*/
|
@@ -11,6 +16,13 @@ export class VerdocsSettingsApiKeys {
|
|
11
16
|
constructor() {
|
12
17
|
this.endpoint = VerdocsEndpoint.getDefault();
|
13
18
|
this.keys = [];
|
19
|
+
this.creatingKey = false;
|
20
|
+
this.createdKey = null;
|
21
|
+
this.deletingKey = null;
|
22
|
+
this.rotatingKey = null;
|
23
|
+
this.newApiKeyName = '';
|
24
|
+
this.newApiKeyProfileId = '';
|
25
|
+
this.members = [];
|
14
26
|
}
|
15
27
|
componentWillLoad() {
|
16
28
|
this.endpoint.loadSession();
|
@@ -20,25 +32,114 @@ export class VerdocsSettingsApiKeys {
|
|
20
32
|
}
|
21
33
|
}
|
22
34
|
async componentDidLoad() {
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
35
|
+
this.newApiKeyProfileId = this.endpoint.session.profile_id;
|
36
|
+
Members.getMembers(this.endpoint, this.endpoint.session.organization_id)
|
37
|
+
.then(mem => {
|
38
|
+
this.members = mem;
|
39
|
+
})
|
40
|
+
.catch((e) => {
|
41
|
+
var _a, _b, _c;
|
42
|
+
console.log('[SETTINGS] Error loading organization members', e);
|
28
43
|
(_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
|
29
|
-
VerdocsToast('Unable to load
|
30
|
-
}
|
44
|
+
VerdocsToast('Unable to load API keys. Please try again later', { style: 'error' });
|
45
|
+
});
|
46
|
+
this.loadKeys();
|
47
|
+
}
|
48
|
+
loadKeys() {
|
49
|
+
ApiKeys.getKeys(this.endpoint, this.endpoint.session.organization_id)
|
50
|
+
.then(r => {
|
51
|
+
this.keys = r;
|
52
|
+
})
|
53
|
+
.catch(e => {
|
54
|
+
var _a, _b, _c;
|
55
|
+
console.log('[SETTINGS] Unable to load API keys', e);
|
56
|
+
(_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
|
57
|
+
VerdocsToast('Unable to load API keys. Please try again later', { style: 'error' });
|
58
|
+
});
|
59
|
+
}
|
60
|
+
async handleDeleteKey() {
|
61
|
+
ApiKeys.deleteKey(this.endpoint, this.deletingKey.organization_id, this.deletingKey.client_id)
|
62
|
+
.then(() => {
|
63
|
+
this.deletingKey = null;
|
64
|
+
VerdocsToast('API key deleted', { style: 'success' });
|
65
|
+
this.loadKeys();
|
66
|
+
})
|
67
|
+
.catch(e => {
|
68
|
+
var _a, _b, _c;
|
69
|
+
this.deletingKey = null;
|
70
|
+
console.log('[SETTINGS] Unable to delete API key', e);
|
71
|
+
(_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
|
72
|
+
VerdocsToast('Unable to delete API key. Please try again later', { style: 'error' });
|
73
|
+
});
|
74
|
+
}
|
75
|
+
async handleRotateKey() {
|
76
|
+
ApiKeys.rotateKey(this.endpoint, this.rotatingKey.organization_id, this.rotatingKey.client_id)
|
77
|
+
.then(r => {
|
78
|
+
this.rotatingKey = null;
|
79
|
+
VerdocsToast('API key rotated', { style: 'success' });
|
80
|
+
this.loadKeys();
|
81
|
+
this.createdKey = r;
|
82
|
+
})
|
83
|
+
.catch(e => {
|
84
|
+
var _a, _b, _c;
|
85
|
+
this.rotatingKey = null;
|
86
|
+
console.log('[SETTINGS] Unable to rotate API key', e);
|
87
|
+
(_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
|
88
|
+
VerdocsToast('Unable to rotate API key. Please try again later', { style: 'error' });
|
89
|
+
});
|
90
|
+
}
|
91
|
+
async handleCreateKey() {
|
92
|
+
ApiKeys.createKey(this.endpoint, this.endpoint.session.organization_id, { name: this.newApiKeyName, profile_id: this.newApiKeyProfileId })
|
93
|
+
.then(r => {
|
94
|
+
this.creatingKey = false;
|
95
|
+
this.createdKey = r;
|
96
|
+
VerdocsToast('API key created', { style: 'success' });
|
97
|
+
this.loadKeys();
|
98
|
+
})
|
99
|
+
.catch(e => {
|
100
|
+
var _a, _b, _c;
|
101
|
+
this.creatingKey = false;
|
102
|
+
console.log('[SETTINGS] Unable to create API key', e);
|
103
|
+
(_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
|
104
|
+
VerdocsToast('Unable to create API key. Please try again later', { style: 'error' });
|
105
|
+
});
|
31
106
|
}
|
32
107
|
render() {
|
108
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
109
|
+
const profileOptions = this.members.map(member => ({ label: `${member.first_name} ${member.last_name}`, value: member.id }));
|
33
110
|
if (!this.endpoint.session) {
|
34
111
|
console.log('[SETTINGS] Must be authenticated');
|
35
112
|
return h(Host, { class: "authentication-required" }, "Must be authenticated");
|
36
113
|
}
|
37
114
|
return (h(Host, null, h("h1", null, "API Keys"), h("verdocs-table", { data: this.keys, columns: [
|
38
|
-
{
|
39
|
-
|
40
|
-
|
41
|
-
|
115
|
+
{
|
116
|
+
id: 'name',
|
117
|
+
header: 'Name',
|
118
|
+
renderCell: (_, row) => (h("div", null, h("div", { innerHTML: ClockIcon }), h("div", null, row.name))),
|
119
|
+
},
|
120
|
+
{
|
121
|
+
id: 'client_id',
|
122
|
+
header: 'Client ID',
|
123
|
+
renderCell: (_, row) => (h("div", null, h("div", { innerHTML: TagIcon }), h("div", null, row.client_id))),
|
124
|
+
},
|
125
|
+
{
|
126
|
+
id: 'profile_id',
|
127
|
+
header: 'Acts as',
|
128
|
+
renderCell: (_, row) => {
|
129
|
+
var _a, _b;
|
130
|
+
return (h("div", null, h("div", { innerHTML: UserIcon }), h("div", null, capitalize((_a = row.profile) === null || _a === void 0 ? void 0 : _a.first_name), " ", capitalize((_b = row.profile) === null || _b === void 0 ? void 0 : _b.last_name))));
|
131
|
+
},
|
132
|
+
},
|
133
|
+
{
|
134
|
+
id: 'actions',
|
135
|
+
header: 'Actions',
|
136
|
+
renderCell: (_, row) => (h("div", null, h("div", { innerHTML: TrashIcon, onClick: () => (this.deletingKey = row) }), h("div", { innerHTML: ArrowPathIcon, onClick: () => (this.rotatingKey = row) }))),
|
137
|
+
},
|
138
|
+
] }), h("verdocs-button", { label: "Add API Key", size: "normal", onClick: () => (this.creatingKey = true) }), this.deletingKey && (h("verdocs-dialog", { onExit: () => (this.deletingKey = null) }, h("div", { slot: "title", class: "heading" }, "Delete API key \"", this.deletingKey.name, "\"?"), h("div", { class: "content" }, h("p", null, "Are you sure you want to delete this key? This action cannot be undone."), h("div", { class: "buttons" }, h("verdocs-button", { variant: "outline", size: "small", label: "Cancel", onClick: () => (this.deletingKey = null) }), h("verdocs-button", { size: "small", label: "OK", onClick: () => this.handleDeleteKey() }))))), this.rotatingKey && (h("verdocs-dialog", { onExit: () => (this.rotatingKey = null) }, h("div", { slot: "title", class: "heading" }, "Rotate API key \"", this.rotatingKey.name, "\"?"), h("div", { class: "content" }, h("p", null, "Are you sure you want to rotate this key? A new client secret will be generated, and the old value will become unusable. This action cannot be undone."), h("div", { class: "buttons" }, h("verdocs-button", { variant: "outline", size: "small", label: "Cancel", onClick: () => (this.rotatingKey = null) }), h("verdocs-button", { size: "small", label: "OK", onClick: () => this.handleRotateKey() }))))), this.creatingKey && (h("verdocs-dialog", { onExit: () => (this.creatingKey = false) }, h("div", { slot: "title", class: "heading" }, "Create API Key"), h("div", { class: "content" }, h("verdocs-text-input", { label: "Name", placeholder: "API key name...", id: "verdocs-api-key-name", value: this.newApiKeyName, autocomplete: "off", required: true, onInput: (e) => (this.newApiKeyName = e.target.value), onFocusout: (e) => {
|
139
|
+
this.newApiKeyName = e.target.value.trim();
|
140
|
+
} }), h("p", null, "API keys must be associated with a profile. Actions performed via API calls using this key will \"act as\" this profile."), h("verdocs-select-input", { options: profileOptions, label: "Act as Profile", onInput: (e) => {
|
141
|
+
this.newApiKeyProfileId = e.target.value;
|
142
|
+
} }), h("div", { class: "buttons" }, h("verdocs-button", { variant: "outline", size: "small", label: "Cancel", onClick: () => (this.creatingKey = false) }), h("verdocs-button", { size: "small", label: "OK", onClick: () => this.handleCreateKey() }))))), this.createdKey && (h("verdocs-dialog", { onExit: () => (this.createdKey = null) }, h("div", { slot: "title", class: "heading" }, "API Key Details"), h("div", { class: "content" }, h("verdocs-text-input", { label: "Name", disabled: true, value: (_a = this.createdKey) === null || _a === void 0 ? void 0 : _a.name }), h("verdocs-text-input", { label: "Profile", disabled: true, value: `${(_c = (_b = this.createdKey) === null || _b === void 0 ? void 0 : _b.profile) === null || _c === void 0 ? void 0 : _c.first_name} ${(_e = (_d = this.createdKey) === null || _d === void 0 ? void 0 : _d.profile) === null || _e === void 0 ? void 0 : _e.last_name}` }), h("p", null, "Please save the Client ID and Secret below. Be sure to never expose your secret key in insecure (Web or mobile environments)!"), h("verdocs-text-input", { label: "Client ID", disabled: true, value: (_f = this.createdKey) === null || _f === void 0 ? void 0 : _f.client_id, copyable: true }), h("verdocs-text-input", { label: "Secret Key", disabled: true, value: (_g = this.createdKey) === null || _g === void 0 ? void 0 : _g.client_secret, copyable: true }), h("div", { class: "buttons" }, h("verdocs-button", { size: "small", label: "Done", onClick: () => (this.createdKey = null) })))))));
|
42
143
|
}
|
43
144
|
static get is() { return "verdocs-settings-api-keys"; }
|
44
145
|
static get originalStyleUrls() {
|
@@ -78,7 +179,14 @@ export class VerdocsSettingsApiKeys {
|
|
78
179
|
}
|
79
180
|
static get states() {
|
80
181
|
return {
|
81
|
-
"keys": {}
|
182
|
+
"keys": {},
|
183
|
+
"creatingKey": {},
|
184
|
+
"createdKey": {},
|
185
|
+
"deletingKey": {},
|
186
|
+
"rotatingKey": {},
|
187
|
+
"newApiKeyName": {},
|
188
|
+
"newApiKeyProfileId": {},
|
189
|
+
"members": {}
|
82
190
|
};
|
83
191
|
}
|
84
192
|
static get events() {
|
@@ -1,6 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* An Organization Member (aka Profile) is an individual user with access to an organization.
|
3
|
+
*
|
4
|
+
* @module
|
5
|
+
*/
|
6
|
+
var getMembers = function (endpoint, organizationId) {
|
7
|
+
return endpoint.api //
|
8
|
+
.get("/organizations/".concat(organizationId, "/profiles"))
|
9
|
+
.then(function (r) { return r.data; });
|
10
|
+
};
|
11
|
+
|
1
12
|
/**
|
2
13
|
* Capitalize the first letter of a string.
|
3
14
|
*/
|
4
15
|
var capitalize = function (str) { return str.charAt(0).toUpperCase() + str.slice(1); };
|
5
16
|
|
6
|
-
export { capitalize as c };
|
17
|
+
export { capitalize as c, getMembers as g };
|
@@ -1,39 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
const verdocsDialogCss = "verdocs-dialog{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-dialog .background-overlay{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:absolute;-ms-flex-align:center;align-items:center;background:#0000007f;-ms-flex-pack:center;justify-content:center}verdocs-dialog .dialog{width:320px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-dialog .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}";
|
4
|
-
|
5
|
-
const VerdocsDialog$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
6
|
-
constructor() {
|
7
|
-
super();
|
8
|
-
this.__registerHost();
|
9
|
-
this.exit = createEvent(this, "exit", 7);
|
10
|
-
}
|
11
|
-
// We need a separate event handler for clicking the background because it can receive events "through" other child components
|
12
|
-
handleDismiss(e) {
|
13
|
-
if (e.target.className === 'background-overlay') {
|
14
|
-
e.preventDefault();
|
15
|
-
this.exit.emit();
|
16
|
-
}
|
17
|
-
}
|
18
|
-
render() {
|
19
|
-
return (h(Host, null, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("slot", { name: "title" }, h("div", { class: "heading" }, "Please Confirm")), h("slot", null, h("p", null))))));
|
20
|
-
}
|
21
|
-
static get style() { return verdocsDialogCss; }
|
22
|
-
}, [4, "verdocs-dialog"]);
|
23
|
-
function defineCustomElement$1() {
|
24
|
-
if (typeof customElements === "undefined") {
|
25
|
-
return;
|
26
|
-
}
|
27
|
-
const components = ["verdocs-dialog"];
|
28
|
-
components.forEach(tagName => { switch (tagName) {
|
29
|
-
case "verdocs-dialog":
|
30
|
-
if (!customElements.get(tagName)) {
|
31
|
-
customElements.define(tagName, VerdocsDialog$1);
|
32
|
-
}
|
33
|
-
break;
|
34
|
-
} });
|
35
|
-
}
|
36
|
-
defineCustomElement$1();
|
1
|
+
import { V as VerdocsDialog$1, d as defineCustomElement$1 } from './verdocs-dialog2.js';
|
37
2
|
|
38
3
|
const VerdocsDialog = VerdocsDialog$1;
|
39
4
|
const defineCustomElement = defineCustomElement$1;
|