@verdocs/web-sdk 1.10.1 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Roles-927719de.js +28 -0
- package/dist/cjs/{VerdocsEndpoint-38feb32a.js → VerdocsEndpoint-25056c73.js} +42 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-build.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-help-icon_2.cjs.entry.js +11 -8
- package/dist/cjs/verdocs-preview.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-radio-button.cjs.entry.js +23 -0
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-send.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-sign.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-template-attachments.cjs.entry.js +53 -0
- package/dist/cjs/verdocs-template-create_2.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-template-name.cjs.entry.js +2 -3
- package/dist/cjs/verdocs-template-properties.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-template-recipients.cjs.entry.js +159 -136
- package/dist/cjs/verdocs-template-reminders.cjs.entry.js +3 -4
- package/dist/cjs/verdocs-template-role-properties_2.cjs.entry.js +228 -0
- package/dist/cjs/verdocs-template-visibility.cjs.entry.js +3 -4
- package/dist/cjs/verdocs-view.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.css +5 -0
- package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.css +1 -1
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +20 -1
- package/dist/collection/components/elements/verdocs-contact-picker/verdocs-contact-picker.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-envelope-sidebar/verdocs-envelope-sidebar.stories.js +1 -1
- package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.css +23 -0
- package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.js +137 -0
- package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.stories.js +19 -0
- package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.stories.js +2 -2
- package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.stories.js +2 -3
- package/dist/collection/components/templates/verdocs-template-name/verdocs-template-name.css +3 -2
- package/dist/collection/components/templates/verdocs-template-name/verdocs-template-name.stories.js +4 -4
- package/dist/collection/components/templates/verdocs-template-properties/verdocs-template-properties.stories.js +2 -2
- package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.css +89 -30
- package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.js +154 -133
- package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.stories.js +5 -4
- package/dist/collection/components/templates/verdocs-template-reminders/verdocs-template-reminders.css +7 -0
- package/dist/collection/components/templates/verdocs-template-reminders/verdocs-template-reminders.js +2 -2
- package/dist/collection/components/templates/verdocs-template-reminders/verdocs-template-reminders.stories.js +2 -2
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.css +105 -0
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +303 -0
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.stories.js +13 -0
- package/dist/collection/components/{dialogs/verdocs-template-sender-dialog/verdocs-template-sender-dialog.css → templates/verdocs-template-sender/verdocs-template-sender.css} +11 -11
- package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.js +193 -0
- package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.stories.js +13 -0
- package/dist/collection/components/templates/verdocs-template-visibillity/verdocs-template-visibility.css +14 -6
- package/dist/collection/components/templates/verdocs-template-visibillity/verdocs-template-visibility.js +2 -2
- package/dist/collection/components/templates/verdocs-template-visibillity/verdocs-template-visibility.stories.js +2 -2
- package/dist/components/VerdocsEndpoint.js +43 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +3 -1
- package/dist/components/verdocs-auth.js +8 -3
- package/dist/components/verdocs-build.js +0 -1
- package/dist/components/verdocs-contact-picker2.js +0 -1
- package/dist/components/verdocs-envelope-sidebar.js +0 -1
- package/dist/components/verdocs-field-date.js +8 -2
- package/dist/components/verdocs-field-initial.js +10 -4
- package/dist/components/verdocs-field-signature.js +10 -4
- package/dist/components/verdocs-field-textarea.js +8 -2
- package/dist/components/verdocs-field-textbox.js +8 -2
- package/dist/components/verdocs-field-timestamp.js +8 -2
- package/dist/components/verdocs-help-icon2.js +1 -1
- package/dist/components/verdocs-initial-dialog2.js +8 -2
- package/dist/components/verdocs-preview.js +0 -1
- package/dist/components/verdocs-quick-functions2.js +0 -1
- package/dist/components/verdocs-search-activity2.js +0 -1
- package/dist/components/verdocs-search-box2.js +0 -1
- package/dist/components/verdocs-search.js +0 -1
- package/dist/components/verdocs-select-input2.js +1 -1
- package/dist/components/verdocs-send.js +1 -2
- package/dist/components/verdocs-sign.js +1 -2
- package/dist/components/verdocs-signature-dialog2.js +8 -2
- package/dist/components/verdocs-template-attachments.d.ts +11 -0
- package/dist/components/verdocs-template-attachments.js +73 -0
- package/dist/components/verdocs-template-create2.js +0 -1
- package/dist/components/verdocs-template-fields2.js +0 -1
- package/dist/components/verdocs-template-name.js +9 -4
- package/dist/components/verdocs-template-properties.js +12 -7
- package/dist/components/verdocs-template-recipients.js +186 -137
- package/dist/components/verdocs-template-reminders.js +14 -9
- package/dist/components/verdocs-template-role-properties.d.ts +11 -0
- package/dist/components/verdocs-template-role-properties.js +6 -0
- package/dist/components/verdocs-template-role-properties2.js +229 -0
- package/dist/components/verdocs-template-sender.d.ts +11 -0
- package/dist/components/verdocs-template-sender.js +6 -0
- package/dist/components/verdocs-template-sender2.js +116 -0
- package/dist/components/verdocs-template-visibility.js +2 -3
- package/dist/components/verdocs-text-input2.js +10 -2
- package/dist/components/verdocs-view2.js +0 -1
- package/dist/custom-elements.json +82 -6
- package/dist/docs.json +399 -33
- package/dist/esm/Roles-2488d047.js +24 -0
- package/dist/esm/{VerdocsEndpoint-6df32d3a.js → VerdocsEndpoint-7f17b088.js} +43 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-auth.entry.js +1 -2
- package/dist/esm/verdocs-build.entry.js +1 -2
- package/dist/esm/verdocs-button-panel_2.entry.js +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +1 -2
- package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -2
- package/dist/esm/verdocs-help-icon_2.entry.js +11 -8
- package/dist/esm/verdocs-preview.entry.js +1 -2
- package/dist/esm/verdocs-quick-functions_3.entry.js +1 -2
- package/dist/esm/verdocs-radio-button.entry.js +19 -0
- package/dist/esm/verdocs-search.entry.js +1 -2
- package/dist/esm/verdocs-send.entry.js +1 -2
- package/dist/esm/verdocs-sign.entry.js +1 -2
- package/dist/esm/verdocs-template-attachments.entry.js +49 -0
- package/dist/esm/verdocs-template-create_2.entry.js +1 -2
- package/dist/esm/verdocs-template-name.entry.js +2 -3
- package/dist/esm/verdocs-template-properties.entry.js +1 -2
- package/dist/esm/verdocs-template-recipients.entry.js +155 -132
- package/dist/esm/verdocs-template-reminders.entry.js +3 -4
- package/dist/esm/verdocs-template-role-properties_2.entry.js +223 -0
- package/dist/esm/verdocs-template-visibility.entry.js +3 -4
- package/dist/esm/verdocs-view.entry.js +1 -2
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/Roles-2488d047.js +1 -0
- package/dist/esm-es5/VerdocsEndpoint-7f17b088.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-help-icon_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-radio-button.entry.js +1 -0
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-send.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-attachments.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-create_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-properties.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-recipients.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-role-properties_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-visibility.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 +4 -0
- package/dist/types/components/templates/verdocs-template-attachments/verdocs-template-attachments.d.ts +29 -0
- package/dist/types/components/templates/verdocs-template-attachments/verdocs-template-attachments.stories.d.ts +7 -0
- package/dist/types/components/templates/verdocs-template-create/verdocs-template-create.stories.d.ts +1 -1
- package/dist/types/components/templates/verdocs-template-fields/verdocs-template-fields.stories.d.ts +1 -1
- package/dist/types/components/templates/verdocs-template-name/verdocs-template-name.stories.d.ts +1 -1
- package/dist/types/components/templates/verdocs-template-properties/verdocs-template-properties.stories.d.ts +1 -1
- package/dist/types/components/templates/verdocs-template-recipients/verdocs-template-recipients.d.ts +8 -15
- package/dist/types/components/templates/verdocs-template-recipients/verdocs-template-recipients.stories.d.ts +1 -1
- package/dist/types/components/templates/verdocs-template-reminders/verdocs-template-reminders.d.ts +1 -1
- package/dist/types/components/templates/verdocs-template-reminders/verdocs-template-reminders.stories.d.ts +1 -1
- package/dist/types/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.d.ts +56 -0
- package/dist/types/components/{dialogs/verdocs-template-sender-dialog/verdocs-template-sender-dialog.stories.d.ts → templates/verdocs-template-role-properties/verdocs-template-role-properties.stories.d.ts} +2 -3
- package/dist/types/components/templates/verdocs-template-sender/verdocs-template-sender.d.ts +36 -0
- package/dist/types/components/templates/verdocs-template-sender/verdocs-template-sender.stories.d.ts +7 -0
- package/dist/types/components/templates/verdocs-template-visibillity/verdocs-template-visibility.d.ts +1 -1
- package/dist/types/components/templates/verdocs-template-visibillity/verdocs-template-visibility.stories.d.ts +1 -1
- package/dist/types/components.d.ts +144 -18
- package/dist/verdocs-web-sdk/p-0ee57bd9.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-12c732a7.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-130fe919.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-15aef735.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-19849b9e.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-205027db.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-2144b8be.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-261dcea1.system.js +1 -0
- package/dist/verdocs-web-sdk/p-26b4ae0d.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-285eaf3c.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-2d4712ea.js +1 -0
- package/dist/verdocs-web-sdk/p-34db97b7.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-37a493a6.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-3da4b4cb.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-3fbe602a.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-4352529d.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-464adbad.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-4a1c9aa1.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-50d7e990.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-5ee985be.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-6121f103.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-45ac2230.system.entry.js → p-61b824ca.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-74e1ae92.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-7b111f2b.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-7d909ce4.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-8c53e0ff.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-91539130.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-9717a531.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-98aa17a8.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-9b854a18.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-9f17b920.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-a17a81a3.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-a6872a88.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-b4fee0ae.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-bda7353b.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-c16b6ca4.system.js +1 -1
- package/dist/verdocs-web-sdk/p-cd70bb21.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-d08fca9c.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-d5a95369.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-daedc6c2.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-de5c37cd.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-df4f1a5e.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e223553c.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-6b205bb5.entry.js → p-ead5322f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f3e9be57.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-fbc81799.system.js +1 -0
- package/dist/verdocs-web-sdk/p-ffe60abd.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +5 -4
- package/dist/cjs/Types-da57ce69.js +0 -43
- package/dist/cjs/verdocs-template-sender-dialog.cjs.entry.js +0 -43
- package/dist/cjs/verdocs-text-input.cjs.entry.js +0 -25
- package/dist/collection/components/dialogs/verdocs-template-sender-dialog/verdocs-template-sender-dialog.js +0 -114
- package/dist/collection/components/dialogs/verdocs-template-sender-dialog/verdocs-template-sender-dialog.stories.js +0 -46
- package/dist/components/Types.js +0 -43
- package/dist/components/verdocs-template-sender-dialog.d.ts +0 -11
- package/dist/components/verdocs-template-sender-dialog.js +0 -6
- package/dist/components/verdocs-template-sender-dialog2.js +0 -75
- package/dist/esm/Types-ab9f6af8.js +0 -43
- package/dist/esm/verdocs-template-sender-dialog.entry.js +0 -39
- package/dist/esm/verdocs-text-input.entry.js +0 -21
- package/dist/esm-es5/Types-ab9f6af8.js +0 -1
- package/dist/esm-es5/VerdocsEndpoint-6df32d3a.js +0 -1
- package/dist/esm-es5/verdocs-template-sender-dialog.entry.js +0 -1
- package/dist/esm-es5/verdocs-text-input.entry.js +0 -1
- package/dist/types/components/dialogs/verdocs-template-sender-dialog/verdocs-template-sender-dialog.d.ts +0 -26
- package/dist/verdocs-web-sdk/p-069fcbbe.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-09cd92b4.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-0e06dc54.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-11c26f99.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-17fd7860.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-1dc5393d.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-1f06f0d0.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-266e163c.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-26f16c4a.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2e4dfdc6.js +0 -1
- package/dist/verdocs-web-sdk/p-34a2538f.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-453218bc.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-46bb5543.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4a09c8df.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4edc67af.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5231a690.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-52be34b3.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-54102f3d.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5f09d34b.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-619098f5.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6f742462.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7abcf805.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7d855960.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-86a8b6ad.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-898b46ce.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8a2dbb48.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8cf35e23.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8d36c969.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8efc9749.js +0 -1
- package/dist/verdocs-web-sdk/p-952b9288.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a0b23dbe.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a39b334f.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a4dc6a79.system.js +0 -1
- package/dist/verdocs-web-sdk/p-a7433630.system.js +0 -1
- package/dist/verdocs-web-sdk/p-acfa887e.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b505db92.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-bdce7b62.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-cf8f8562.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d876f216.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e1da9867.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e5ed6342.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e9e83cbb.system.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,o,n){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,s){function r(e){try{a(n.next(e))}catch(e){s(e)}}function l(e){try{a(n["throw"](e))}catch(e){s(e)}}function a(e){e.done?o(e.value):i(e.value).then(r,l)}a((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(e){return function(t){return a([e,t])}}function a(r){if(n)throw new TypeError("Generator is already executing.");while(o)try{if(n=1,i&&(s=r[0]&2?i["return"]:r[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,r[1])).done)return s;if(i=0,s)r=[r[0]&2,s.value];switch(r[0]){case 0:case 1:s=r;break;case 4:o.label++;return{value:r[1],done:false};case 5:o.label++;i=r[1];r=[0];continue;case 7:r=o.ops.pop();o.trys.pop();continue;default:if(!(s=o.trys,s=s.length>0&&s[s.length-1])&&(r[0]===6||r[0]===2)){o=0;continue}if(r[0]===3&&(!s||r[1]>s[0]&&r[1]<s[3])){o.label=r[1];break}if(r[0]===6&&o.label<s[1]){o.label=s[1];s=r;break}if(s&&o.label<s[2]){o.label=s[2];o.ops.push(r);break}if(s[2])o.ops.pop();o.trys.pop();continue}r=t.call(e,o)}catch(e){r=[6,e];i=0}finally{n=s=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,o){if(o||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++){if(s||!(n in t)){if(!s)s=Array.prototype.slice.call(t,0,n);s[n]=t[n]}}return e.concat(s||Array.prototype.slice.call(t))};System.register(["./p-97329951.system.js","./p-fbc81799.system.js","./p-261dcea1.system.js","./p-55fc9529.system.js","./p-a95d40dc.system.js","./p-187b20b7.system.js","./p-69912cbf.system.js","./p-af2c2f79.system.js","./p-0f6da8c7.system.js","./p-d50523fd.system.js"],(function(e){"use strict";var t,o,n,i,s,r,l,a,d,c,p,u;return{setters:[function(e){t=e.r;o=e.c;n=e.h;i=e.H},function(e){s=e.u;r=e.d},function(e){l=e.V;a=e.T},function(e){d=e.s},function(e){c=e.l},function(e){p=e.S},function(e){u=e.u},function(){},function(){},function(){}],execute:function(){var m='verdocs-template-role-properties{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-template-role-properties .dialog{width:340px;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-template-role-properties .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-role-properties .buttons verdocs-button{margin-left:16px}verdocs-template-role-properties form .row{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties form .row .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0;-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-select-input{-ms-flex:1;flex:1;margin:0}verdocs-template-role-properties verdocs-text-input{margin:0 0 10px 0}verdocs-template-role-properties verdocs-text-input label{margin:0;display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties verdocs-text-input .input-label{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-text-input input{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties verdocs-text-input verdocs-text-input{margin:0}verdocs-template-role-properties .checkbox-wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties .delete-button{height:34px;display:-ms-flexbox;display:flex;cursor:pointer;background:none;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #999;-ms-flex-pack:center;justify-content:center}verdocs-template-role-properties .delete-button:active{background:#f3f3f3}verdocs-template-role-properties .delete-button svg{width:24px;height:24px}';var f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#a50021"><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>';var h=e("verdocs_template_role_properties",function(){function e(e){t(this,e);this.close=o(this,"close",7);this.delete=o(this,"delete",7);this.sdkError=o(this,"sdkError",7);this.endpoint=l.getDefault();this.templateId="";this.roleName="";this.sender=a.EVERYONE;this.dirty=false;this.saving=false;this.name="";this.type="signer";this.fullName="";this.email="";this.phone="";this.allowDelegation=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,n,i,s,r,l,a;var u=this;return __generator(this,(function(m){switch(m.label){case 0:m.trys.push([0,5,,6]);this.endpoint.loadSession();if(!this.templateId){console.log("[TEMPLATE ROLE PROPERTIES] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[TEMPLATE ROLE PROPERTIES] Unable to start builder session, must be authenticated");return[2]}m.label=1;case 1:m.trys.push([1,3,,4]);console.log("[TEMPLATE ROLE PROPERTIES] Loading template ".concat(this.templateId),this.endpoint.session);return[4,c(this.endpoint,this.templateId)];case 2:m.sent();return[3,4];case 3:r=m.sent();console.log("[TEMPLATE ROLE PROPERTIES] Error loading template",r);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new p(r.message,(t=r.response)===null||t===void 0?void 0:t.status,(o=r.response)===null||o===void 0?void 0:o.data));return[3,4];case 4:l=d.template.roles.find((function(e){return e.name===u.roleName}));if(l){this.name=l.name;this.type=l.type;this.fullName=l.full_name;this.email=l.email;this.phone=l.phone;this.allowDelegation=l.delegator;console.log("Got role",l)}return[3,6];case 5:a=m.sent();console.log("[TEMPLATE ROLE PROPERTIES] Error with preview session",a);(n=this.sdkError)===null||n===void 0?void 0:n.emit(new p(a.message,(i=a.response)===null||i===void 0?void 0:i.status,(s=a.response)===null||s===void 0?void 0:s.data));return[3,6];case 6:return[2]}}))}))};e.prototype.handleCancel=function(e){var t;e.stopPropagation();this.name=d.template.name;this.dirty=false;(t=this.close)===null||t===void 0?void 0:t.emit()};e.prototype.handleSave=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(o){e.stopPropagation();this.saving=true;s(this.endpoint,this.templateId,this.roleName,{name:this.name,type:this.type,full_name:this.fullName,email:this.email,phone:this.phone,delegator:this.allowDelegation}).then((function(e){var o;console.log("Update result",e);t.saving=false;t.dirty=false;d.template.roles.forEach((function(e){if(e.name===t.roleName){e.name=t.name;e.type=t.type;e.full_name=t.fullName;e.email=t.email;e.phone=t.phone;e.delegator=t.allowDelegation}}));(o=t.close)===null||o===void 0?void 0:o.emit()})).catch((function(e){console.log("Uopdate error",e);t.saving=false}));return[2]}))}))};e.prototype.handleDelete=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(o){e.stopPropagation();if(window.confirm("Are you sure you wish to remove this role? All associated fields will be removed as well. This action cannot be undone.")){r(this.endpoint,this.templateId,this.roleName).then((function(e){var o;console.log("Role deleted",e);d.template.roles=__spreadArray([],d.template.roles.filter((function(e){return e.name!==t.roleName})),true);(o=t.delete)===null||o===void 0?void 0:o.emit({templateId:t.templateId,roleName:t.roleName})})).catch((function(e){console.log("Deletion error",e)}))}return[2]}))}))};e.prototype.render=function(){var e=this;return n(i,null,n("div",{class:"background-overlay",onClick:function(t){return e.handleCancel(t)}},n("div",{class:"dialog"},n("form",{onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},n("verdocs-text-input",{id:"verdocs-recipient-name",label:"Role Name",value:this.name,autocomplete:"off",helpText:"A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.",placeholder:"Template Name...",onInput:function(t){e.name=t.target.value;e.dirty=true}}),n("div",{class:"row"},n("div",{class:"input-label"},"Type:"),n("verdocs-select-input",{value:this.type,options:[{label:"Signer",value:"signer"},{label:"CC",value:"cc"},{label:"Approver",value:"approver"}],onInput:function(t){e.type=t.target.value;e.dirty=true}}),n("verdocs-help-icon",{text:"Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review."})),n("verdocs-text-input",{id:"verdocs-recipient-email",label:"Full Name",value:this.fullName,autocomplete:"off",helpText:"The recipient's full name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Full Name...",onInput:function(t){e.fullName=t.target.value;e.dirty=true}}),n("verdocs-text-input",{id:"verdocs-recipient-email",label:"Email",value:this.email,autocomplete:"off",helpText:"The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Email Address...",onInput:function(t){e.email=t.target.value;e.dirty=true}}),n("verdocs-text-input",{id:"verdocs-recipient-phone",label:"Phone",value:this.phone,autocomplete:"off",helpText:"The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Phone Number...",onInput:function(t){e.phone=t.target.value;e.dirty=true}}),n("div",{class:"row"},n("div",{class:"input-label"},"May Delegate:"),n("div",{class:"checkbox-wrapper"},n("verdocs-checkbox",{checked:this.allowDelegation,onInput:function(t){e.allowDelegation=t.target.checked;e.dirty=true}})),n("verdocs-help-icon",{text:"If enabled, this recipient may delegate their actions to another individual."})),n("div",{class:"buttons"},n("button",{class:"delete-button",disabled:this.dirty,onClick:function(t){return e.handleDelete(t)},innerHTML:f}),n("div",{style:{flex:"1"}}),n("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:function(t){return e.handleCancel(t)}}),n("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:function(t){return e.handleSave(t)}}))))))};return e}());h.style=m;var v='verdocs-template-sender{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-template-sender .dialog{width:340px;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-template-sender .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-sender .buttons verdocs-button{margin-left:16px}verdocs-template-sender .options{row-gap:10px}verdocs-template-sender .options .option{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .options .option .description{margin-left:10px}verdocs-template-sender .options .option .description .name{display:inline-block;vertical-align:top;margin-top:4px;margin-right:4px}';var x=e("verdocs_template_sender",function(){function e(e){t(this,e);this.close=o(this,"close",7);this.sdkError=o(this,"sdkError",7);this.endpoint=l.getDefault();this.templateId="";this.sender=a.EVERYONE;this.saving=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,n,i,s,r,l;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,5,,6]);this.endpoint.loadSession();if(!this.templateId){console.log("[TEMPLATE SENDER] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[TEMPLATE SENDER] Unable to start builder session, must be authenticated");return[2]}a.label=1;case 1:a.trys.push([1,3,,4]);console.log("[TEMPLATE SENDER] Loading template ".concat(this.templateId),this.endpoint.session);return[4,c(this.endpoint,this.templateId)];case 2:a.sent();return[3,4];case 3:r=a.sent();console.log("[TEMPLATE SENDER] Error loading template",r);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new p(r.message,(t=r.response)===null||t===void 0?void 0:t.status,(o=r.response)===null||o===void 0?void 0:o.data));return[3,4];case 4:this.sender=d.template.sender;console.log("s",this.sender);return[3,6];case 5:l=a.sent();console.log("[TEMPLATE SENDER] Error with preview session",l);(n=this.sdkError)===null||n===void 0?void 0:n.emit(new p(l.message,(i=l.response)===null||i===void 0?void 0:i.status,(s=l.response)===null||s===void 0?void 0:s.data));return[3,6];case 6:return[2]}}))}))};e.prototype.handleClose=function(){this.close.emit()};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleClose()}};e.prototype.handleSelectSetting=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(o){this.saving=true;u(this.endpoint,this.templateId,{sender:e}).then((function(o){console.log("Update result",o);d.template.sender=e;t.saving=false;t.sender=e})).catch((function(e){console.log("Error saving",e);t.saving=false}));return[2]}))}))};e.prototype.render=function(){var e=this;return n(i,null,n("div",{class:"background-overlay",onClick:function(t){return e.handleDismiss(t)}},n("div",{class:"dialog"},n("div",{class:"options"},n("div",{class:"option"},n("verdocs-radio-button",{name:"template-sender",value:a.EVERYONE,checked:this.sender===a.EVERYONE,onInput:function(){return e.handleSelectSetting(a.EVERYONE)}}),n("div",{class:"description"},n("div",{class:"name"},"Anyone on the Web"),n("verdocs-help-icon",{text:"Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)"}))),n("div",{class:"option"},n("verdocs-radio-button",{name:"template-sender",value:a.EVERYONE_AS_CREATOR,checked:this.sender===a.EVERYONE_AS_CREATOR,onInput:function(){return e.handleSelectSetting(a.EVERYONE_AS_CREATOR)}}),n("div",{class:"description"},n("div",{class:"name"},"Anyone on the Web as me"),n("verdocs-help-icon",{text:"Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)"}))),n("div",{class:"option"},n("verdocs-radio-button",{name:"template-sender",value:a.ORGANIZATION_MEMBER,checked:this.sender===a.ORGANIZATION_MEMBER,onInput:function(){return e.handleSelectSetting(a.ORGANIZATION_MEMBER)}}),n("div",{class:"description"},n("div",{class:"name"},"Anyone in my organization"),n("verdocs-help-icon",{text:"Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')"}))),n("div",{class:"option"},n("verdocs-radio-button",{name:"template-sender",value:a.ORGANIZATION_MEMBER_AS_CREATOR,checked:this.sender===a.ORGANIZATION_MEMBER_AS_CREATOR,onInput:function(){return e.handleSelectSetting(a.ORGANIZATION_MEMBER_AS_CREATOR)}}),n("div",{class:"description"},n("div",{class:"name"},"Anyone in my organization as me"),n("verdocs-help-icon",{text:"Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)"}))),n("div",{class:"option"},n("verdocs-radio-button",{name:"template-sender",value:a.CREATOR,checked:this.sender===a.CREATOR,onInput:function(){return e.handleSelectSetting(a.CREATOR)}}),n("div",{class:"description"},n("div",{class:"name"},"Me"),n("verdocs-help-icon",{text:"Only I can use this template."})))),n("div",{class:"buttons"},n("verdocs-button",{label:"Close",onClick:function(){return e.handleClose()}})))))};return e}());x.style=v}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as o,h as i,H as s}from"./p-ff1278ed.js";import{V as r}from"./p-2d4712ea.js";import{r as a,a as t}from"./p-644cc3c3.js";import{s as n}from"./p-87749601.js";import{l}from"./p-848e555d.js";import{S as d}from"./p-7a1b2643.js";import"./p-21603661.js";import"./p-880b619d.js";import"./p-aa124212.js";import"./p-5ea05a1d.js";import"./p-7291906c.js";import"./p-b28ef4bb.js";const p=class{constructor(i){e(this,i),this.sdkError=o(this,"sdkError",7),this.endpoint=r.getDefault(),this.templateId=null}async componentDidLoad(){var e,o,i;if(this.endpoint.loadSession(),this.templateId)try{console.log(`[PREVIEW] Loading template ${this.templateId}`),await l(this.endpoint,this.templateId)}catch(s){console.log("[PREVIEW] Error loading template",s),null===(e=this.sdkError)||void 0===e||e.emit(new d(s.message,null===(o=s.response)||void 0===o?void 0:o.status,null===(i=s.response)||void 0===i?void 0:i.data))}else console.log(`[PREVIEW] Missing required template ID ${this.templateId}`)}async handleFieldChange(e,o,i){console.log("[PREVIEW] handleFieldChange",e,o,i)}handlePageRendered(e){const o=e.detail;console.log("[PREVIEW] Page rendered",o);const i=n.fields.filter((e=>e.page_sequence===o.pageNumber));console.log("[PREVIEW] Fields on page",i),i.forEach((e=>a(e,o,t(n.roleNames,e.role_name),{disabled:!0,editable:!1,draggable:!1})))}render(){if(n.loading||!n.template)return i(s,null,i("verdocs-loader",null));const e=[...n.template.pages];return e.sort(((e,o)=>e.sequence-o.sequence)),i(s,null,e.map((e=>(console.log("rendering page",e),i("verdocs-document-page",{pageImageUri:e.display_uri,virtualWidth:612,virtualHeight:792,pageNumber:e.sequence,onPageRendered:e=>this.handlePageRendered(e),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})))))}};p.style='verdocs-preview{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-preview div,verdocs-preview canvas{-webkit-box-sizing:border-box;box-sizing:border-box}';export{p as verdocs_preview}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,r,o){function n(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{l(o.next(e))}catch(e){i(e)}}function a(e){try{l(o["throw"](e))}catch(e){i(e)}}function l(e){e.done?r(e.value):n(e.value).then(s,a)}l((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return l([e,t])}}function l(s){if(o)throw new TypeError("Generator is already executing.");while(r)try{if(o=1,n&&(i=s[0]&2?n["return"]:s[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;if(n=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;n=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];n=0}finally{o=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-97329951.system.js","./p-d122cadd.system.js","./p-fbc81799.system.js","./p-261dcea1.system.js","./p-05eb4fed.system.js","./p-55fc9529.system.js","./p-a95d40dc.system.js","./p-d7e31573.system.js","./p-187b20b7.system.js","./p-af2c2f79.system.js","./p-0f6da8c7.system.js","./p-d50523fd.system.js","./p-69912cbf.system.js","./p-e0cfad01.system.js","./p-327858f0.system.js"],(function(e){"use strict";var t,r,o,n,i,s,a,l,c,p,d,u,f,m,g,v;return{setters:[function(e){t=e.r;r=e.c;o=e.h;n=e.F;i=e.H;s=e.a},function(e){a=e.i},function(e){l=e.u;c=e.c},function(e){p=e.V;d=e.T},function(e){u=e.g},function(e){f=e.s},function(e){m=e.l},function(e){g=e.a},function(e){v=e.S},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var h;var x='verdocs-template-recipients{display:block;min-width:400px;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-recipients>form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;padding:12px}verdocs-template-recipients>form h5{font-size:16px;font-weight:bold;color:#4c56cb;margin:0 0 10px 0}verdocs-template-recipients>form .participants{position:relative}verdocs-template-recipients>form .left-line{top:32px;left:11px;z-index:1;width:12px;bottom:30px;position:absolute;background:#ffffff;border-left:3px dotted #9b9b9b}verdocs-template-recipients>form .row{display:-ms-flexbox;display:flex;-webkit-column-gap:0;-moz-column-gap:0;column-gap:0;margin-left:40px;position:relative;-ms-flex-direction:row;flex-direction:row;padding:6px 0 4px 0}verdocs-template-recipients>form .row .row-recipients{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-webkit-column-gap:10px;-moz-column-gap:10px;column-gap:10px;-ms-flex-direction:row;flex-direction:row}verdocs-template-recipients>form .row .icon{top:14px;z-index:2;left:-40px;width:24px;height:24px;position:absolute;background:#ffffff}verdocs-template-recipients>form .row .sender{height:30px;display:-ms-flexbox;display:flex;font-size:14px;padding:0 5px 0 15px;line-height:30px;-ms-flex-direction:row;flex-direction:row;border-radius:30px;border:1px solid #c6c9cc;background-color:#f5f5fa}verdocs-template-recipients>form .row .complete{height:30px;display:-ms-flexbox;display:flex;font-size:14px;padding:0 15px;line-height:30px;-ms-flex-direction:row;flex-direction:row;border-radius:30px;background-color:#f5f5fa;border:1px solid #aeb4bf}verdocs-template-recipients>form .row .label{font-weight:bold;margin-right:6px;color:#33364b}verdocs-template-recipients>form .row .settings-button{margin:4px 0 0 9px;cursor:pointer}verdocs-template-recipients>form .row .recipient{height:30px;display:-ms-flexbox;display:flex;font-size:14px;line-height:30px;border-radius:30px;-ms-flex-direction:row;flex-direction:row;padding:0 5px 0 6px;white-space:nowrap;border:1px solid #aeb4bf}verdocs-template-recipients>form .row .recipient .type-icon{width:24px;height:24px;-webkit-transform:scale(0.8);transform:scale(0.8);opacity:0.6;margin:4px 12px 0 0}verdocs-template-recipients>form .row .recipient.dragging{position:absolute}verdocs-template-recipients>form .row .recipient.dragging+.dropzone{display:none !important}verdocs-template-recipients>form .row .dropzone{width:14px;height:30px;display:none}verdocs-template-recipients>form .row .dropzone svg{fill:#cccccc}verdocs-template-recipients>form .row .dropzone.visible{margin:0 7px;display:-ms-flexbox;display:flex;-ms-flex:0 0 14px;flex:0 0 14px}verdocs-template-recipients>form .row .dropzone.active{-ms-flex:0 0 120px;flex:0 0 120px;border-radius:30px;background:#654dcb7f;border:1px dashed #654dcb}verdocs-template-recipients>form label{display:block;font-size:14px;font-weight:500;margin:0 0 4px 0;color:#5c6575}verdocs-template-recipients>form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-recipients>form input:focus{outline:none}verdocs-template-recipients .row.add-sequence{display:none}verdocs-template-recipients .add-role{margin:0;padding:0;border:none;opacity:0.5;cursor:pointer;background:none}verdocs-template-recipients .add-role:hover{opacity:1}verdocs-template-recipients .add-role svg{width:32px;height:32px}verdocs-template-recipients.dragging .add-role{display:none}verdocs-template-recipients.dragging form .row .recipient+.dropzone{display:-ms-flexbox;display:flex}verdocs-template-recipients.dragging .row.add-sequence{display:-ms-flexbox;display:flex}verdocs-template-recipients.dragging .row.add-sequence .dropzone{opacity:0.5;-ms-flex:0 0 120px;flex:0 0 120px;border-radius:30px;-ms-flex-align:center;align-items:center;background:#654dcb7f;-ms-flex-pack:center;justify-content:center;border:1px dashed #654dcb}verdocs-template-recipients.dragging .row.add-sequence .dropzone.active{opacity:1}verdocs-template-recipients .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-template-recipients ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-recipients ::-moz-placeholder{color:#aaaaaa}verdocs-template-recipients :-ms-input-placeholder{color:#aaaaaa}verdocs-template-recipients ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-recipients ::placeholder{color:#aaaaaa}';var b=(h={},h[d.EVERYONE]="Everyone",h[d.EVERYONE_AS_CREATOR]="Everyone as Me",h[d.ORGANIZATION_MEMBER]="Organization member",h[d.ORGANIZATION_MEMBER_AS_CREATOR]="Organization Member as Me",h[d.CREATOR]="Me",h);var w='<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20" fill="#00000089"><path d="m8.021 17.917-.313-2.5q-.27-.125-.625-.334-.354-.208-.625-.395l-2.312.979-1.979-3.438 1.979-1.5q-.021-.167-.031-.364-.011-.198-.011-.365 0-.146.011-.344.01-.198.031-.385l-1.979-1.5 1.979-3.417 2.312.958q.271-.187.615-.385t.635-.344l.313-2.5h3.958l.313 2.5q.312.167.625.344.312.177.604.385l2.333-.958 1.979 3.417-1.979 1.521q.021.187.021.364V10q0 .146-.01.333-.011.188-.011.396l1.958 1.5-1.979 3.438-2.312-.979q-.292.208-.615.395-.323.188-.614.334l-.313 2.5Zm1.937-5.355q1.063 0 1.813-.75t.75-1.812q0-1.062-.75-1.812t-1.813-.75q-1.041 0-1.802.75-.76.75-.76 1.812t.76 1.812q.761.75 1.802.75Zm0-1.333q-.5 0-.864-.364-.365-.365-.365-.865t.365-.865q.364-.364.864-.364t.865.364q.365.365.365.865t-.365.865q-.365.364-.865.364ZM10.021 10Zm-.854 6.583h1.666l.25-2.187q.605-.167 1.136-.49.531-.323 1.031-.802l2.021.875.854-1.375-1.792-1.354q.105-.333.136-.635.031-.303.031-.615 0-.292-.031-.573-.031-.281-.115-.635l1.792-1.396-.834-1.375-2.062.875q-.438-.438-1.021-.781-.583-.344-1.125-.49l-.271-2.208H9.167l-.271 2.208q-.584.146-1.125.458-.542.313-1.042.792l-2.021-.854-.833 1.375 1.75 1.354q-.083.333-.125.646-.042.312-.042.604t.042.594q.042.302.125.635l-1.75 1.375.833 1.375 2.021-.854q.479.458 1.021.771.542.312 1.146.479Z"/></svg>';var y='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" fill="#00000089"><path d="M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm10 6c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6z"></path></svg>';var q='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" fill="#00000089"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></svg>';var R='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" fill="#00000089"><path d="m18 7-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41 6 19l1.41-1.41L1.83 12 .41 13.41z"></path></svg>';var z='<svg xmlns="http://www.w3.org/2000/svg" fill="#ffffff" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor"><path strokeLinecap="round" strokeLinejoin="round" d="M12 9v6m3-3H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>';var E='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z"/></svg>';var k='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>';var I='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z" /><path d="M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z" /></svg>';var L=e("verdocs_template_recipients",function(){function e(e){t(this,e);this.cancel=r(this,"cancel",7);this.sdkError=r(this,"sdkError",7);this.sequences=[];this.endpoint=p.getDefault();this.templateId="";this.showingRoleDialog=null;this.showingSenderDialog=false;this.sender=null;this.forceRerender=1}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,o,n,i,s,a;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,5,,6]);this.endpoint.loadSession();if(!this.templateId){console.log("[RECIPIENTS] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[RECIPIENTS] Unable to start builder session, must be authenticated");return[2]}l.label=1;case 1:l.trys.push([1,3,,4]);console.log("[RECIPIENTS] Loading template ".concat(this.templateId),this.endpoint.session);return[4,m(this.endpoint,this.templateId)];case 2:l.sent();return[3,4];case 3:s=l.sent();console.log("[RECIPIENTS] Error loading template",s);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new v(s.message,(t=s.response)===null||t===void 0?void 0:t.status,(r=s.response)===null||r===void 0?void 0:r.data));return[3,4];case 4:this.sortTemplateRoles();this.renumberTemplateRoles();return[3,6];case 5:a=l.sent();console.log("[FIELDS] Error with preview session",a);(o=this.sdkError)===null||o===void 0?void 0:o.emit(new v(a.message,(n=a.response)===null||n===void 0?void 0:n.status,(i=a.response)===null||i===void 0?void 0:i.data));return[3,6];case 6:return[2]}}))}))};e.prototype.componentDidRender=function(){a.dynamicDrop(true);a(".recipient").draggable({listeners:{start:function e(t){t.target.classList.add("dragging");this.el.classList.add("dragging")}.bind(this),move:function e(t){var r=+(t.target.getAttribute("posX")||0);var o=+(t.target.getAttribute("posY")||0);var n=t.dx+r;var i=t.dy+o;t.target.setAttribute("posX",n);t.target.setAttribute("posy",i);t.target.style.transform="translate(".concat(n+100,"px, ").concat(i-40,"px)")}.bind(this),end:function e(t){t.target.classList.remove("dragging");this.el.classList.remove("dragging");t.target.setAttribute("posX",0);t.target.setAttribute("posy",0);t.target.style.transform="translate(0px, 0px)"}.bind(this)}});a(".dropzone").dropzone({overlap:.05,ondrop:function e(t){var r=this;t.target.classList.remove("active");var o=t.relatedTarget.dataset.rolename;var n=+t.target.dataset.sequence;var i=+t.target.dataset.order;var s=f.template.roles.find((function(e){return e.name===o}));if(s){s.sequence=n;s.order=i;this.sortTemplateRoles();this.renumberTemplateRoles();this.forceRerender++;Promise.all(f.template.roles.map((function(e){return l(r.endpoint,r.templateId,e.name,{sequence:e.sequence,order:e.order})}))).then((function(){return console.log("[RECIPIENTS] Updated roles")})).catch((function(e){return console.log("[RECIPIENTS] Role updates failed",e)}))}}.bind(this),ondropactivate:function(e){e.target.classList.add("visible")},ondropdeactivate:function(e){e.target.classList.remove("visible")},ondragenter:function(e){e.target.classList.add("active")},ondragleave:function(e){e.target.classList.remove("active")}})};e.prototype.handleCancel=function(e){var t;e.stopPropagation();(t=this.cancel)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){e.stopPropagation()};e.prototype.sortTemplateRoles=function(){f.template.roles.sort((function(e,t){return e.sequence===t.sequence?e.order-t.order:e.sequence-t.sequence}))};e.prototype.extractSequenceNumbers=function(){var e=this;this.sequences=[];f.template.roles.forEach((function(t){if(!e.sequences.includes(t.sequence)){e.sequences.push(t.sequence)}}))};e.prototype.renumberTemplateRoles=function(){this.extractSequenceNumbers();var e=[];this.sequences.sort((function(e,t){return e-t}));this.sequences.forEach((function(t,r){f.template.roles.filter((function(e){return e.sequence===t})).forEach((function(t,o){if(!e.includes(t.name)){t.sequence=r+1;t.order=o+1;e.push(t.name)}}))}));this.extractSequenceNumbers()};e.prototype.handleAddRole=function(e,t){var r=this;e.stopPropagation();var o=f.template.roles.filter((function(e){return e.sequence===t})).length+1;var n="";var i=f.template.roles.length;do{i++;n="Recipient ".concat(i)}while(!n||f.template.roles.some((function(e){return e.name===n})));console.log("Will create",n,t,o);c(this.endpoint,this.templateId,{template_id:this.templateId,name:n,full_name:"",email:"",phone:"",sequence:t,order:o,type:"signer",delegator:false}).then((function(e){console.log("Created role",e);f.template.roles.push(e);r.renumberTemplateRoles();r.forceRerender++})).catch((function(e){console.log("Error creating role",e)}))};e.prototype.render=function(){var e=this;var t=f.template.roles.map((function(e){return e.name}));return o(i,null,o("form",{onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off","data-r":this.forceRerender},o("h5",null,"Recipients"),o("div",{class:"participants"},o("div",{class:"left-line"}),o("div",{class:"row"},o("div",{class:"icon",innerHTML:y}),o("div",{class:"row-recipients"},o("div",{class:"sender"},o("span",{class:"label"},"Sender:")," ",b[f.template.sender]," ",o("div",{class:"settings-button",innerHTML:w,onClick:function(){return e.showingSenderDialog=true},"aria-role":"button"})))),o("div",{class:"row add-sequence","data-sequence":0},o("div",{class:"icon",innerHTML:z}),o("div",{class:"row-recipients"},o("div",{class:"dropzone","data-sequence":0,"data-order":1},"Add Step"))),this.sequences.map((function(r){return o(n,null,o("div",{class:"row"},o("div",{class:"icon",innerHTML:q}),o("div",{class:"row-recipients"},o("div",{class:"dropzone","data-order":.5,"data-sequence":r}),f.template.roles.filter((function(e){return e.sequence===r})).map((function(i){return o(n,null,o("div",{class:"recipient",style:{backgroundColor:u(g(t,i.name))},"data-rolename":i.name},o("span",{class:"type-icon",innerHTML:i.type==="signer"?E:i.type==="cc"?I:k}),i.name," ",o("div",{class:"settings-button",innerHTML:w,onClick:function(){return e.showingRoleDialog=i.name},"aria-role":"button"})),o("div",{class:"dropzone","data-order":i.order+.5,"data-sequence":r}))})),o("button",{class:"add-role",innerHTML:z,onClick:function(t){return e.handleAddRole(t,r)}}))),o("div",{class:"row add-sequence","data-sequence":r},o("div",{class:"row-recipients"},o("div",{class:"icon",innerHTML:z}),o("div",{class:"dropzone","data-sequence":r+1,"data-order":1},"Add Step"))))})),o("div",{class:"row"},o("div",{class:"icon",innerHTML:R}),o("div",{class:"row-recipients"},o("div",{class:"complete"},"Document Complete")))),o("div",{class:"buttons"},o("div",{class:"flex-fill"}),o("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)}}),o("verdocs-button",{label:"OK",size:"small",onClick:function(t){return e.handleSubmit(t)}}))),this.showingRoleDialog&&o("verdocs-template-role-properties",{endpoint:this.endpoint,templateId:this.templateId,roleName:this.showingRoleDialog,onClose:function(){e.showingRoleDialog=null;e.forceRerender++},onDelete:function(t){console.log("deleted",t.detail);e.renumberTemplateRoles();e.showingRoleDialog=null;e.forceRerender++}}),this.showingSenderDialog&&o("verdocs-template-sender",{endpoint:this.endpoint,templateId:this.templateId,onClose:function(){return e.showingSenderDialog=false}}))};Object.defineProperty(e.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return e}());L.style=x}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,H as o}from"./p-ff1278ed.js";import{c as n}from"./p-ec26fc38.js";const i=class{constructor(e){t(this,e),this.showing=!1,this.icon=""}componentDidRender(){document.body.appendChild(this.panelEl),this.popperInstance&&this.popperInstance.destroy(),this.popperInstance=n(this.iconEl,this.panelEl,{})}disconnectedCallback(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null),this.panelEl&&this.panelEl.remove()}toggle(t){var e,o,n,i;t.stopPropagation(),this.showing?(null===(e=this.panelEl)||void 0===e||e.removeAttribute("data-show"),null===(o=this.hiderEl)||void 0===o||o.remove(),this.showing=!1):(null===(n=this.panelEl)||void 0===n||n.setAttribute("data-show",""),null===(i=this.popperInstance)||void 0===i||i.update().catch((()=>{})),this.showing=!0,this.hiderEl=document.createElement("div"),this.hiderEl.style.zIndex="100",this.hiderEl.style.position="absolute",this.hiderEl.style.top="0px",this.hiderEl.style.left="0px",this.hiderEl.style.right="0px",this.hiderEl.style.bottom="0px",this.hiderEl.onclick=t=>this.toggle(t),document.body.appendChild(this.hiderEl))}render(){return e(o,null,e("div",{class:"icon",innerHTML:this.icon,onClick:t=>this.toggle(t),ref:t=>this.iconEl=t}),e("div",{role:"tooltip",class:"verdocs-button-panel-content","data-popper-placement":"bottom",ref:t=>this.panelEl=t},e("div",{"data-popper-arrow":"true",class:"arrow"}),e("slot",null)))}};i.style='verdocs-button-panel{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-button-panel .icon{display:inline-block;cursor:pointer}verdocs-button-panel .icon svg{fill:#cccccc}verdocs-button-panel .icon:hover svg{fill:#ffffff}.verdocs-button-panel-content{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;display:none;background:#ffffff;color:#33364b;width:280px;font-weight:bold;padding:15px;font-size:14px;position:relative;border-radius:4px;z-index:10000}.verdocs-button-panel-content .arrow,.verdocs-button-panel-content .arrow::before{position:absolute;width:8px;height:8px;background:inherit}.verdocs-button-panel-content .arrow{visibility:hidden;top:-4px}.verdocs-button-panel-content .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.verdocs-button-panel-content[data-show]{display:block}.verdocs-button-panel-content[data-popper-placement^=top]>.arrow{bottom:-4px}.verdocs-button-panel-content[data-popper-placement^=bottom]>.arrow{top:-4px}.verdocs-button-panel-content[data-popper-placement^=left]>.arrow{right:-4px}.verdocs-button-panel-content[data-popper-placement^=right]>.arrow{left:-4px}.verdocs-button-panel-content h6{color:#092c4c;font-size:16px;font-weight:bold;margin:0 0 8px 0}.verdocs-button-panel-content form{margin:0;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.verdocs-button-panel-content label{display:block;font-size:14px;font-weight:bold;margin:0 0 3px 0;color:#33364b}.verdocs-button-panel-content input{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:14px;margin:0 0 10px 0}';const s=class{constructor(e){t(this,e),this.value="",this.label="",this.options=void 0,this.disabled=!1}render(){return e(o,{class:"input-field"},e("label",null,this.label?e("div",{class:"input-label"},this.label+":"):e("div",null),e("select",{class:"input-element",disabled:this.disabled},this.options.map((t=>e("option",{value:t.value,selected:t.value===this.value},t.label))))))}};s.style='verdocs-select-input{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-select-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px
|
|
1
|
+
import{r as t,h as e,H as o}from"./p-ff1278ed.js";import{c as n}from"./p-ec26fc38.js";const i=class{constructor(e){t(this,e),this.showing=!1,this.icon=""}componentDidRender(){document.body.appendChild(this.panelEl),this.popperInstance&&this.popperInstance.destroy(),this.popperInstance=n(this.iconEl,this.panelEl,{})}disconnectedCallback(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null),this.panelEl&&this.panelEl.remove()}toggle(t){var e,o,n,i;t.stopPropagation(),this.showing?(null===(e=this.panelEl)||void 0===e||e.removeAttribute("data-show"),null===(o=this.hiderEl)||void 0===o||o.remove(),this.showing=!1):(null===(n=this.panelEl)||void 0===n||n.setAttribute("data-show",""),null===(i=this.popperInstance)||void 0===i||i.update().catch((()=>{})),this.showing=!0,this.hiderEl=document.createElement("div"),this.hiderEl.style.zIndex="100",this.hiderEl.style.position="absolute",this.hiderEl.style.top="0px",this.hiderEl.style.left="0px",this.hiderEl.style.right="0px",this.hiderEl.style.bottom="0px",this.hiderEl.onclick=t=>this.toggle(t),document.body.appendChild(this.hiderEl))}render(){return e(o,null,e("div",{class:"icon",innerHTML:this.icon,onClick:t=>this.toggle(t),ref:t=>this.iconEl=t}),e("div",{role:"tooltip",class:"verdocs-button-panel-content","data-popper-placement":"bottom",ref:t=>this.panelEl=t},e("div",{"data-popper-arrow":"true",class:"arrow"}),e("slot",null)))}};i.style='verdocs-button-panel{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-button-panel .icon{display:inline-block;cursor:pointer}verdocs-button-panel .icon svg{fill:#cccccc}verdocs-button-panel .icon:hover svg{fill:#ffffff}.verdocs-button-panel-content{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;display:none;background:#ffffff;color:#33364b;width:280px;font-weight:bold;padding:15px;font-size:14px;position:relative;border-radius:4px;z-index:10000}.verdocs-button-panel-content .arrow,.verdocs-button-panel-content .arrow::before{position:absolute;width:8px;height:8px;background:inherit}.verdocs-button-panel-content .arrow{visibility:hidden;top:-4px}.verdocs-button-panel-content .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.verdocs-button-panel-content[data-show]{display:block}.verdocs-button-panel-content[data-popper-placement^=top]>.arrow{bottom:-4px}.verdocs-button-panel-content[data-popper-placement^=bottom]>.arrow{top:-4px}.verdocs-button-panel-content[data-popper-placement^=left]>.arrow{right:-4px}.verdocs-button-panel-content[data-popper-placement^=right]>.arrow{left:-4px}.verdocs-button-panel-content h6{color:#092c4c;font-size:16px;font-weight:bold;margin:0 0 8px 0}.verdocs-button-panel-content form{margin:0;padding:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.verdocs-button-panel-content label{display:block;font-size:14px;font-weight:bold;margin:0 0 3px 0;color:#33364b}.verdocs-button-panel-content input{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:14px;margin:0 0 10px 0}';const s=class{constructor(e){t(this,e),this.value="",this.label="",this.options=void 0,this.disabled=!1}render(){return e(o,{class:"input-field"},e("label",null,this.label?e("div",{class:"input-label"},this.label+":"):e("div",null),e("select",{class:"input-element",disabled:this.disabled},this.options.map((t=>e("option",{value:t.value,selected:t.value===this.value},t.label))))))}};s.style='verdocs-select-input{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-select-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 8px}verdocs-select-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element:focus{border:1px solid #7d88ff}verdocs-select-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}';export{i as verdocs_button_panel,s as verdocs_select_input}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,c as e,h as t,H as s}from"./p-ff1278ed.js";import{u as o}from"./p-b28ef4bb.js";import{V as l}from"./p-2d4712ea.js";import{s as a}from"./p-87749601.js";import{l as r}from"./p-848e555d.js";import{S as n}from"./p-7a1b2643.js";import"./p-21603661.js";import"./p-5ea05a1d.js";import"./p-7291906c.js";const p=class{constructor(t){i(this,t),this.close=e(this,"close",7),this.sdkError=e(this,"sdkError",7),this.endpoint=l.getDefault(),this.templateId="",this.dirty=!1,this.loading=!0,this.personal=!1,this.public=!1}async componentWillLoad(){var i,e,t;try{this.endpoint.loadSession(),await r(this.endpoint,this.templateId),this.loading=!1,this.personal=a.template.is_personal,this.public=a.template.is_public,this.dirty=!1}catch(s){console.log("[TEMPLATE VISIBILITY] Error loading template",s),this.loading=!1,null===(i=this.sdkError)||void 0===i||i.emit(new n(s.message,null===(e=s.response)||void 0===e?void 0:e.status,null===(t=s.response)||void 0===t?void 0:t.data))}}handleCancel(i){var e;i.stopPropagation(),this.personal=a.template.is_personal,this.public=a.template.is_public,this.dirty=!1,null===(e=this.close)||void 0===e||e.emit()}async handleSave(i){var e;i.stopPropagation(),await o(this.endpoint,this.templateId,{is_personal:this.personal,is_public:this.public}),a.template.is_personal=this.personal,a.template.is_public=this.public,this.dirty=!1,null===(e=this.close)||void 0===e||e.emit()}render(){return this.endpoint.session?this.endpoint.session&&a.template?t(s,null,t("form",{onSubmit:i=>i.preventDefault(),onClick:i=>i.stopPropagation(),autocomplete:"off"},t("h5",null,"Visibility"),t("div",{class:"input-row"},t("label",{htmlFor:"verdocs-is-personal"},"Personal"),t("verdocs-checkbox",{id:"verdocs-is-personal",name:"is-personal",checked:this.personal,value:"on",onInput:i=>{this.personal=i.target.checked,this.dirty=!0}})),t("div",{class:"description"},"Personal templates are hidden from other members of your Organization (if any)."),t("div",{class:"input-row"},t("label",{htmlFor:"verdocs-is-public"},"Public"),t("verdocs-checkbox",{id:"verdocs-is-public",name:"is-public",checked:this.public,value:"on",onInput:i=>{this.public=i.target.checked,this.dirty=!0}})),t("div",{class:"description"},"Public templates may appear in results when any other user searches for templates. Note that a template may be both Personal and Public, which may be useful if you want your template to be found via search but not otherwise displayed to other members of your Organization (if any)."),t("div",{class:"buttons"},t("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:i=>this.handleCancel(i)}),t("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:i=>this.handleSave(i)})))):t(s,{class:"empty"}):t(s,null,t("verdocs-component-error",{message:"You must be authenticated to use this module."}))}};p.style='verdocs-template-visibility{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-visibility.loading{min-height:300px;position:relative;display:block}verdocs-template-visibility.empty{display:none}verdocs-template-visibility form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-visibility form .description{font-size:14px;text-align:justify;color:#5c6575}verdocs-template-visibility form h5{font-size:16px;font-weight:bold;color:#4c56cb;margin:0}verdocs-template-visibility form label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:16px;font-weight:500;margin:0 0 4px 0;color:#33364b}verdocs-template-visibility form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-visibility form input:focus{outline:none}verdocs-template-visibility form .input-row{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-visibility form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px}verdocs-template-visibility form .input-row verdocs-text-input input{text-align:center}verdocs-template-visibility form .input-row verdocs-checkbox{-ms-flex:0;flex:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}verdocs-template-visibility form .input-row verdocs-checkbox label>input[type=checkbox]+*::before{margin-right:0}verdocs-template-visibility .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:25px;-ms-flex-direction:row;flex-direction:row}verdocs-template-visibility ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::-moz-placeholder{color:#aaaaaa}verdocs-template-visibility :-ms-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::placeholder{color:#aaaaaa}';export{p as verdocs_template_visibility}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register([],(function(t){"use strict";return{execute:function(){var n=t("c",(function(t,n,e){return t.api.post("/templates/".concat(n,"/roles/"),e).then((function(t){return t.data}))}));var e=t("u",(function(t,n,e,r){return t.api.put("/templates/".concat(n,"/roles/").concat(e),r).then((function(t){return t.data}))}));var r=t("d",(function(t,n,e){return t.api.delete("/templates/".concat(n,"/roles/").concat(e)).then((function(t){return t.data}))}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=function(t,n,r){return t.api.post("/templates/".concat(n,"/roles/"),r).then((function(t){return t.data}))},n=function(t,n,r,e){return t.api.put("/templates/".concat(n,"/roles/").concat(r),e).then((function(t){return t.data}))},r=function(t,n,r){return t.api.delete("/templates/".concat(n,"/roles/").concat(r)).then((function(t){return t.data}))};export{t as c,r as d,n as u}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as d}from"./p-ff1278ed.js";(()=>{const d=import.meta.url,
|
|
1
|
+
import{p as e,b as d}from"./p-ff1278ed.js";(()=>{const d=import.meta.url,t={};return""!==d&&(t.resourcesUrl=new URL(".",d).href),e(t)})().then((e=>d([["p-91539130",[[0,"verdocs-build",{endpoint:[16],templateId:[1,"template-id"],step:[32],pdfUrl:[32],template:[32]}]]],["p-19849b9e",[[0,"verdocs-template-recipients",{endpoint:[16],templateId:[1,"template-id"],showingRoleDialog:[32],showingSenderDialog:[32],sender:[32],forceRerender:[32]}]]],["p-d08fca9c",[[0,"verdocs-sign",{envelopeId:[1,"envelope-id"],roleId:[1,"role-id"],inviteCode:[1,"invite-code"],recipient:[32],signerToken:[32],hasSignature:[32],nextButtonLabel:[32],nextSubmits:[32],errorMessage:[32],focusedField:[32],isDone:[32],showDone:[32],finishLater:[32],showFinishLater:[32],agreed:[32],documentsSingularPlural:[32]}]]],["p-ba23b639",[[0,"verdocs-field-initial",{field:[16],disabled:[4],initials:[1],editable:[4],moveable:[4],done:[4],roleindex:[2],tempInitials:[32],focusField:[64]}]]],["p-d0c587f1",[[0,"verdocs-field-signature",{field:[16],name:[1],disabled:[4],editable:[4],moveable:[4],done:[4],roleindex:[2],tempSignature:[32],focusField:[64]}]]],["p-2144b8be",[[0,"verdocs-template-properties",{endpoint:[16],templateId:[1,"template-id"],template:[32],name:[32],visibility:[32],sendReminders:[32],firstReminderDays:[32],reminderDays:[32]}]]],["p-0ee57bd9",[[0,"verdocs-template-reminders",{endpoint:[16],templateId:[1,"template-id"],showPlanBlocker:[32],sendReminders:[32],firstReminderDays:[32],reminderDays:[32],dirty:[32],loading:[32]}]]],["p-37a493a6",[[0,"verdocs-auth",{endpoint:[16],visible:[4],logo:[1],isAuthenticated:[32],displayMode:[32],username:[32],password:[32],loggingIn:[32],activeSession:[32],loginError:[32]}]]],["p-ec7a9c6e",[[0,"verdocs-field-date",{field:[16],disabled:[4],editable:[4],moveable:[4],done:[4],roleindex:[2],containerId:[32],focusField:[64]}]]],["p-ff45cca0",[[0,"verdocs-field-textarea",{field:[16],disabled:[4],editable:[4],moveable:[4],done:[4],roleindex:[2],focusField:[64]}]]],["p-a662b038",[[0,"verdocs-field-textbox",{field:[16],disabled:[4],editable:[4],moveable:[4],done:[4],roleindex:[2],focusField:[64]}]]],["p-eb68cf29",[[0,"verdocs-field-timestamp",{field:[16],disabled:[4],editable:[4],moveable:[4],done:[4],roleindex:[2],focusField:[64]}]]],["p-12c732a7",[[0,"verdocs-template-name",{endpoint:[16],templateId:[1,"template-id"],name:[32],dirty:[32],loading:[32]}]]],["p-34db97b7",[[0,"verdocs-search",{endpoint:[16]}]]],["p-a17a81a3",[[0,"verdocs-send",{endpoint:[16],templateId:[1,"template-id"],template:[32],pdfUrl:[32],containerId:[32],rolesAtLevel:[32],showPickerForId:[32],sessionContacts:[32],recipientsAssigned:[32]}]]],["p-f3e9be57",[[0,"verdocs-template-visibility",{endpoint:[16],templateId:[1,"template-id"],dirty:[32],loading:[32],personal:[32],public:[32]}]]],["p-80c287ff",[[0,"verdocs-field-attachment",{field:[16],disabled:[4],roleIndex:[2,"role-index"],focusField:[64]}]]],["p-df4f1a5e",[[0,"verdocs-preview",{endpoint:[16],templateId:[1,"template-id"]}]]],["p-bda7353b",[[0,"verdocs-envelope-sidebar",{endpoint:[16],envelopeId:[1,"envelope-id"],activeTab:[32],panelOpen:[32]}]]],["p-b365612a",[[0,"verdocs-kba-dialog",{step:[2],steps:[2],helptitle:[1],helptext:[1],mode:[1],label:[1],placeholder:[1],choices:[16],response:[32]}]]],["p-3da4b4cb",[[0,"verdocs-template-attachments",{endpoint:[16],templateId:[1,"template-id"],loading:[32]}]]],["p-a32f90e9",[[0,"verdocs-field-checkbox",{field:[16],option:[2],disabled:[4],done:[4],roleindex:[2]}]]],["p-1ef0501b",[[0,"verdocs-field-dropdown",{field:[16],disabled:[4],roleindex:[2],focusField:[64]}]]],["p-804fbf15",[[0,"verdocs-field-payment",{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],roleindex:[2],preparedMessage:[32],signatureUrl:[32]}]]],["p-f43721cf",[[0,"verdocs-field-radio-button",{field:[16],option:[2],disabled:[4],done:[4],roleindex:[2]}]]],["p-2783520a",[[0,"verdocs-organization-card",{organization:[16]}]]],["p-dc8aa1f0",[[0,"verdocs-search-tabs",{selected:[32]}]]],["p-9f6b4f8c",[[0,"verdocs-status-indicator",{size:[1],theme:[1],status:[1],envelope:[16],isOpen:[32],recipientStatusIcons:[32],containerId:[32]}]]],["p-896f1614",[[0,"verdocs-template-card",{template:[16]}]]],["p-7efc60cc",[[0,"verdocs-template-tags",{tags:[16]}]]],["p-2b86f106",[[0,"verdocs-toggle",{options:[16],theme:[1],selectedOption:[32]}]]],["p-50706b8d",[[0,"verdocs-button",{label:[1],startIcon:[1,"start-icon"],endIcon:[1,"end-icon"],size:[1],type:[1],variant:[1],disabled:[4]}]]],["p-40dfb545",[[0,"verdocs-initial-dialog",{initials:[1],fontLoaded:[32],enteredInitials:[32],mode:[32]}]]],["p-d36ae684",[[0,"verdocs-signature-dialog",{name:[1],fontLoaded:[32],enteredName:[32],mode:[32]}]]],["p-c3ba021b",[[0,"verdocs-document-page",{pageImageUri:[1,"page-image-uri"],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]}],[0,"verdocs-loader"]]],["p-9f17b920",[[0,"verdocs-view",{endpoint:[16],envelopeId:[1,"envelope-id"]}]]],["p-d5a95369",[[0,"verdocs-contact-picker",{endpoint:[16],templateRole:[16],contactSuggestions:[16],name:[32],email:[32],phone:[32],message:[32],showSuggestions:[32],showMessage:[32],delegator:[32]}]]],["p-fedfe011",[[0,"verdocs-upload-dialog",{draggingOver:[32],decodedFiles:[32]}]]],["p-15aef735",[[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]}]]],["p-d250b3b4",[[0,"verdocs-ok-dialog",{heading:[1],message:[1],showCancel:[4,"show-cancel"]}]]],["p-7d909ce4",[[0,"verdocs-radio-button",{checked:[4],name:[1],value:[1],disabled:[4]}]]],["p-d946b1b6",[[0,"verdocs-floating-menu",{options:[16]}],[0,"verdocs-toolbar-icon",{text:[1],icon:[1],placement:[1],containerId:[32]}]]],["p-3599f81f",[[0,"verdocs-component-error",{message:[1]}]]],["p-4352529d",[[0,"verdocs-template-fields",{endpoint:[16],templateId:[1,"template-id"],placing:[32],selectedRoleName:[32]}],[0,"verdocs-template-create",{endpoint:[16],file:[32]}]]],["p-b859bbb4",[[0,"verdocs-toggle-button",{active:[4],icon:[1],label:[1],size:[1],_active:[32]}]]],["p-205027db",[[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]}]]],["p-0eb992eb",[[0,"verdocs-dropdown",{options:[16],open:[32]}]]],["p-1d20d34e",[[0,"verdocs-checkbox",{checked:[4],name:[1],label:[1],value:[1],theme:[1],disabled:[4]}]]],["p-ead5322f",[[4,"verdocs-button-panel",{icon:[1]}],[0,"verdocs-select-input",{value:[1],label:[1],options:[16],disabled:[4]}]]],["p-74e1ae92",[[0,"verdocs-text-input",{value:[1],label:[1],placeholder:[1],autocomplete:[1],helpText:[1,"help-text"],type:[1],disabled:[4]}],[0,"verdocs-help-icon",{text:[1],containerId:[32]}]]]],e)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdocs/web-sdk",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Verdocs Web SDK",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"loader/"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
|
+
"push": "npm run build && npm publish",
|
|
20
21
|
"build": "stencil build --docs",
|
|
21
22
|
"serve": "stencil build --dev --watch --serve --es5",
|
|
22
23
|
"start": "stencil build --dev --watch --docs --es5",
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
"@stencil/core": "2.20.0",
|
|
32
33
|
"@stencil/store": "^2.0.3",
|
|
33
34
|
"@svgdotjs/svg.js": "^3.1.2",
|
|
34
|
-
"@verdocs/js-sdk": "^3.0.
|
|
35
|
+
"@verdocs/js-sdk": "^3.0.30",
|
|
35
36
|
"date-fns": "^2.29.3",
|
|
36
37
|
"flatpickr": "^4.6.13",
|
|
37
38
|
"interactjs": "^1.10.17",
|
|
@@ -57,8 +58,8 @@
|
|
|
57
58
|
"babel-loader": "^8.2.5",
|
|
58
59
|
"copy-webpack-plugin": "^11.0.0",
|
|
59
60
|
"html-webpack-plugin": "^5.5.0",
|
|
60
|
-
"jest": "^29.4.
|
|
61
|
-
"jest-cli": "^29.4.
|
|
61
|
+
"jest": "^29.4.2",
|
|
62
|
+
"jest-cli": "^29.4.2",
|
|
62
63
|
"jest-svg-transformer": "^1.0.0",
|
|
63
64
|
"lit-html": "^2.6.1",
|
|
64
65
|
"prettier": "^2.8.3",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var TemplatePermissions;
|
|
4
|
-
(function (TemplatePermissions) {
|
|
5
|
-
TemplatePermissions["TEMPLATE_CREATOR_CREATE_PUBLIC"] = "template:creator:create:public";
|
|
6
|
-
TemplatePermissions["TEMPLATE_CREATOR_CREATE_ORG"] = "template:creator:create:org";
|
|
7
|
-
TemplatePermissions["TEMPLATE_CREATOR_CREATE_PERSONAL"] = "template:creator:create:personal";
|
|
8
|
-
TemplatePermissions["TEMPLATE_CREATOR_DELETE"] = "template:creator:delete";
|
|
9
|
-
TemplatePermissions["TEMPLATE_CREATOR_VISIBILITY"] = "template:creator:visibility";
|
|
10
|
-
TemplatePermissions["TEMPLATE_MEMBER_READ"] = "template:member:read";
|
|
11
|
-
TemplatePermissions["TEMPLATE_MEMBER_WRITE"] = "template:member:write";
|
|
12
|
-
TemplatePermissions["TEMPLATE_MEMBER_DELETE"] = "template:member:delete";
|
|
13
|
-
TemplatePermissions["TEMPLATE_MEMBER_VISIBILITY"] = "template:member:visibility";
|
|
14
|
-
})(TemplatePermissions || (TemplatePermissions = {}));
|
|
15
|
-
exports.TemplateSenderTypes = void 0;
|
|
16
|
-
(function (TemplateSenderTypes) {
|
|
17
|
-
TemplateSenderTypes["CREATOR"] = "creator";
|
|
18
|
-
TemplateSenderTypes["ORGANIZATION_MEMBER"] = "organization_member";
|
|
19
|
-
TemplateSenderTypes["ORGANIZATION_MEMBER_AS_CREATOR"] = "organization_member_as_creator";
|
|
20
|
-
TemplateSenderTypes["EVERYONE"] = "everyone";
|
|
21
|
-
TemplateSenderTypes["EVERYONE_AS_CREATOR"] = "everyone_as_creator";
|
|
22
|
-
})(exports.TemplateSenderTypes || (exports.TemplateSenderTypes = {}));
|
|
23
|
-
var TemplateActions;
|
|
24
|
-
(function (TemplateActions) {
|
|
25
|
-
TemplateActions["CREATE_PERSONAL"] = "create_personal";
|
|
26
|
-
TemplateActions["CREATE_ORG"] = "create_org";
|
|
27
|
-
TemplateActions["CREATE_PUBLIC"] = "create_public";
|
|
28
|
-
TemplateActions["READ"] = "read";
|
|
29
|
-
TemplateActions["WRITE"] = "write";
|
|
30
|
-
TemplateActions["DELETE"] = "delete";
|
|
31
|
-
TemplateActions["CHANGE_VISIBILITY_PERSONAL"] = "change_visibility_personal";
|
|
32
|
-
TemplateActions["CHANGE_VISIBILITY_ORG"] = "change_visibility_org";
|
|
33
|
-
TemplateActions["CHANGE_VISIBILITY_PUBLIC"] = "change_visibility_public";
|
|
34
|
-
})(TemplateActions || (TemplateActions = {}));
|
|
35
|
-
var SortOptions;
|
|
36
|
-
(function (SortOptions) {
|
|
37
|
-
SortOptions["CREATED_AT"] = "created_at";
|
|
38
|
-
SortOptions["UPDATED_AT"] = "updated_at";
|
|
39
|
-
SortOptions["NAME"] = "name";
|
|
40
|
-
SortOptions["LAST_USED_AT"] = "last_used_at";
|
|
41
|
-
SortOptions["COUNTER"] = "counter";
|
|
42
|
-
SortOptions["STAR_COUNTER"] = "star_counter";
|
|
43
|
-
})(SortOptions || (SortOptions = {}));
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-1329d89c.js');
|
|
6
|
-
const Types = require('./Types-da57ce69.js');
|
|
7
|
-
|
|
8
|
-
const verdocsTemplateSenderDialogCss = "verdocs-template-sender-dialog{font-family:\"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-template-sender-dialog .dialog{width:340px;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-template-sender-dialog .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender-dialog .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-sender-dialog .buttons verdocs-button{margin-left:16px}verdocs-template-sender-dialog .options{row-gap:10px}verdocs-template-sender-dialog .options .option{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender-dialog .options .option .description{margin-left:10px}verdocs-template-sender-dialog .options .option .description .name{display:inline-block;vertical-align:top;margin-top:4px;margin-right:4px}";
|
|
9
|
-
|
|
10
|
-
const VerdocsTemplateSenderDialog = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
this.cancel = index.createEvent(this, "cancel", 7);
|
|
14
|
-
this.next = index.createEvent(this, "next", 7);
|
|
15
|
-
this.value = Types.TemplateSenderTypes.EVERYONE;
|
|
16
|
-
this.newValue = Types.TemplateSenderTypes.EVERYONE;
|
|
17
|
-
}
|
|
18
|
-
componentWillLoad() {
|
|
19
|
-
this.newValue = this.value;
|
|
20
|
-
}
|
|
21
|
-
handleCancel() {
|
|
22
|
-
this.cancel.emit();
|
|
23
|
-
}
|
|
24
|
-
// We need a separate event handler for clicking the background because it can receive events "through" other child components
|
|
25
|
-
handleDismiss(e) {
|
|
26
|
-
if (e.target.className === 'background-overlay') {
|
|
27
|
-
e.preventDefault();
|
|
28
|
-
this.handleCancel();
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
handleDone() {
|
|
32
|
-
this.next.emit(this.newValue);
|
|
33
|
-
}
|
|
34
|
-
handleSelectSetting(value) {
|
|
35
|
-
this.newValue = value;
|
|
36
|
-
}
|
|
37
|
-
render() {
|
|
38
|
-
return (index.h(index.Host, null, index.h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, index.h("div", { class: "dialog" }, index.h("div", { class: "options" }, index.h("div", { class: "option" }, index.h("verdocs-radio-button", { name: "template-sender", value: Types.TemplateSenderTypes.EVERYONE, checked: this.value === Types.TemplateSenderTypes.EVERYONE, onInput: () => this.handleSelectSetting(Types.TemplateSenderTypes.EVERYONE) }), index.h("div", { class: "description" }, index.h("div", { class: "name" }, "Anyone on the Web"), index.h("verdocs-help-icon", { text: "Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)" }))), index.h("div", { class: "option" }, index.h("verdocs-radio-button", { name: "template-sender", value: Types.TemplateSenderTypes.EVERYONE_AS_CREATOR, checked: this.value === Types.TemplateSenderTypes.EVERYONE_AS_CREATOR, onInput: () => this.handleSelectSetting(Types.TemplateSenderTypes.EVERYONE_AS_CREATOR) }), index.h("div", { class: "description" }, index.h("div", { class: "name" }, "Anyone on the Web as me"), index.h("verdocs-help-icon", { text: "Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)" }))), index.h("div", { class: "option" }, index.h("verdocs-radio-button", { name: "template-sender", value: Types.TemplateSenderTypes.ORGANIZATION_MEMBER, checked: this.value === Types.TemplateSenderTypes.ORGANIZATION_MEMBER, onInput: () => this.handleSelectSetting(Types.TemplateSenderTypes.ORGANIZATION_MEMBER) }), index.h("div", { class: "description" }, index.h("div", { class: "name" }, "Anyone in my organization"), index.h("verdocs-help-icon", { text: "Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')" }))), index.h("div", { class: "option" }, index.h("verdocs-radio-button", { name: "template-sender", value: Types.TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR, checked: this.value === Types.TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR, onInput: () => this.handleSelectSetting(Types.TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR) }), index.h("div", { class: "description" }, index.h("div", { class: "name" }, "Anyone in my organization as me"), index.h("verdocs-help-icon", { text: "Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)" }))), index.h("div", { class: "option" }, index.h("verdocs-radio-button", { name: "template-sender", value: Types.TemplateSenderTypes.CREATOR, checked: this.value === Types.TemplateSenderTypes.CREATOR, onInput: () => this.handleSelectSetting(Types.TemplateSenderTypes.CREATOR) }), index.h("div", { class: "description" }, index.h("div", { class: "name" }, "Me"), index.h("verdocs-help-icon", { text: "Only I can use this template." })))), index.h("div", { class: "buttons" }, index.h("verdocs-button", { label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), index.h("verdocs-button", { label: "Done", onClick: () => this.handleDone() }))))));
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
VerdocsTemplateSenderDialog.style = verdocsTemplateSenderDialogCss;
|
|
42
|
-
|
|
43
|
-
exports.verdocs_template_sender_dialog = VerdocsTemplateSenderDialog;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-1329d89c.js');
|
|
6
|
-
|
|
7
|
-
const verdocsTextInputCss = "verdocs-text-input{font-family:\"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px;outline:none}verdocs-text-input .input-element:disabled{border:1px solid #aeb4bf;background:#f5f5fa}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input [data-lastpass-icon-root]{display:none !important}";
|
|
8
|
-
|
|
9
|
-
const VerdocsTextInput = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.value = '';
|
|
13
|
-
this.label = '';
|
|
14
|
-
this.placeholder = '';
|
|
15
|
-
this.autocomplete = '';
|
|
16
|
-
this.type = 'text';
|
|
17
|
-
this.disabled = false;
|
|
18
|
-
}
|
|
19
|
-
render() {
|
|
20
|
-
return (index.h(index.Host, { class: "input-field" }, index.h("label", null, this.label ? index.h("div", { class: "input-label" }, this.label + ':') : index.h("div", null), index.h("input", { type: this.type, value: this.value, class: "input-element", "data-lpignore": "true", disabled: this.disabled, placeholder: this.placeholder, autoComplete: this.autocomplete }))));
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
VerdocsTextInput.style = verdocsTextInputCss;
|
|
24
|
-
|
|
25
|
-
exports.verdocs_text_input = VerdocsTextInput;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { TemplateSenderTypes } from '@verdocs/js-sdk/Templates/Types';
|
|
2
|
-
import { h, Host } from '@stencil/core';
|
|
3
|
-
/**
|
|
4
|
-
* Display a dialog that allows a template sender to be selected.
|
|
5
|
-
*/
|
|
6
|
-
export class VerdocsTemplateSenderDialog {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.value = TemplateSenderTypes.EVERYONE;
|
|
9
|
-
this.newValue = TemplateSenderTypes.EVERYONE;
|
|
10
|
-
}
|
|
11
|
-
componentWillLoad() {
|
|
12
|
-
this.newValue = this.value;
|
|
13
|
-
}
|
|
14
|
-
handleCancel() {
|
|
15
|
-
this.cancel.emit();
|
|
16
|
-
}
|
|
17
|
-
// We need a separate event handler for clicking the background because it can receive events "through" other child components
|
|
18
|
-
handleDismiss(e) {
|
|
19
|
-
if (e.target.className === 'background-overlay') {
|
|
20
|
-
e.preventDefault();
|
|
21
|
-
this.handleCancel();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
handleDone() {
|
|
25
|
-
this.next.emit(this.newValue);
|
|
26
|
-
}
|
|
27
|
-
handleSelectSetting(value) {
|
|
28
|
-
this.newValue = value;
|
|
29
|
-
}
|
|
30
|
-
render() {
|
|
31
|
-
return (h(Host, null, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("div", { class: "options" }, h("div", { class: "option" }, h("verdocs-radio-button", { name: "template-sender", value: TemplateSenderTypes.EVERYONE, checked: this.value === TemplateSenderTypes.EVERYONE, onInput: () => this.handleSelectSetting(TemplateSenderTypes.EVERYONE) }), h("div", { class: "description" }, h("div", { class: "name" }, "Anyone on the Web"), h("verdocs-help-icon", { text: "Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)" }))), h("div", { class: "option" }, h("verdocs-radio-button", { name: "template-sender", value: TemplateSenderTypes.EVERYONE_AS_CREATOR, checked: this.value === TemplateSenderTypes.EVERYONE_AS_CREATOR, onInput: () => this.handleSelectSetting(TemplateSenderTypes.EVERYONE_AS_CREATOR) }), h("div", { class: "description" }, h("div", { class: "name" }, "Anyone on the Web as me"), h("verdocs-help-icon", { text: "Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)" }))), h("div", { class: "option" }, h("verdocs-radio-button", { name: "template-sender", value: TemplateSenderTypes.ORGANIZATION_MEMBER, checked: this.value === TemplateSenderTypes.ORGANIZATION_MEMBER, onInput: () => this.handleSelectSetting(TemplateSenderTypes.ORGANIZATION_MEMBER) }), h("div", { class: "description" }, h("div", { class: "name" }, "Anyone in my organization"), h("verdocs-help-icon", { text: "Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')" }))), h("div", { class: "option" }, h("verdocs-radio-button", { name: "template-sender", value: TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR, checked: this.value === TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR, onInput: () => this.handleSelectSetting(TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR) }), h("div", { class: "description" }, h("div", { class: "name" }, "Anyone in my organization as me"), h("verdocs-help-icon", { text: "Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)" }))), h("div", { class: "option" }, h("verdocs-radio-button", { name: "template-sender", value: TemplateSenderTypes.CREATOR, checked: this.value === TemplateSenderTypes.CREATOR, onInput: () => this.handleSelectSetting(TemplateSenderTypes.CREATOR) }), h("div", { class: "description" }, h("div", { class: "name" }, "Me"), h("verdocs-help-icon", { text: "Only I can use this template." })))), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { label: "Done", onClick: () => this.handleDone() }))))));
|
|
32
|
-
}
|
|
33
|
-
static get is() { return "verdocs-template-sender-dialog"; }
|
|
34
|
-
static get originalStyleUrls() {
|
|
35
|
-
return {
|
|
36
|
-
"$": ["verdocs-template-sender-dialog.scss"]
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
static get styleUrls() {
|
|
40
|
-
return {
|
|
41
|
-
"$": ["verdocs-template-sender-dialog.css"]
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
static get properties() {
|
|
45
|
-
return {
|
|
46
|
-
"value": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"mutable": false,
|
|
49
|
-
"complexType": {
|
|
50
|
-
"original": "TemplateSenderTypes",
|
|
51
|
-
"resolved": "TemplateSenderTypes.CREATOR | TemplateSenderTypes.EVERYONE | TemplateSenderTypes.EVERYONE_AS_CREATOR | TemplateSenderTypes.ORGANIZATION_MEMBER | TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR",
|
|
52
|
-
"references": {
|
|
53
|
-
"TemplateSenderTypes": {
|
|
54
|
-
"location": "import",
|
|
55
|
-
"path": "@verdocs/js-sdk/Templates/Types"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"required": false,
|
|
60
|
-
"optional": false,
|
|
61
|
-
"docs": {
|
|
62
|
-
"tags": [],
|
|
63
|
-
"text": "Whether the dialog is currently being displayed. This allows it to be added to the DOM before being displayed."
|
|
64
|
-
},
|
|
65
|
-
"attribute": "value",
|
|
66
|
-
"reflect": false,
|
|
67
|
-
"defaultValue": "TemplateSenderTypes.EVERYONE"
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
static get states() {
|
|
72
|
-
return {
|
|
73
|
-
"newValue": {}
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
static get events() {
|
|
77
|
-
return [{
|
|
78
|
-
"method": "cancel",
|
|
79
|
-
"name": "cancel",
|
|
80
|
-
"bubbles": true,
|
|
81
|
-
"cancelable": true,
|
|
82
|
-
"composed": true,
|
|
83
|
-
"docs": {
|
|
84
|
-
"tags": [],
|
|
85
|
-
"text": "Event fired when the dialog is closed. The event data will contain the closure reason."
|
|
86
|
-
},
|
|
87
|
-
"complexType": {
|
|
88
|
-
"original": "any",
|
|
89
|
-
"resolved": "any",
|
|
90
|
-
"references": {}
|
|
91
|
-
}
|
|
92
|
-
}, {
|
|
93
|
-
"method": "next",
|
|
94
|
-
"name": "next",
|
|
95
|
-
"bubbles": true,
|
|
96
|
-
"cancelable": true,
|
|
97
|
-
"composed": true,
|
|
98
|
-
"docs": {
|
|
99
|
-
"tags": [],
|
|
100
|
-
"text": "Event fired when the dialog is closed. The event data will contain the selected value."
|
|
101
|
-
},
|
|
102
|
-
"complexType": {
|
|
103
|
-
"original": "TemplateSenderTypes",
|
|
104
|
-
"resolved": "TemplateSenderTypes.CREATOR | TemplateSenderTypes.EVERYONE | TemplateSenderTypes.EVERYONE_AS_CREATOR | TemplateSenderTypes.ORGANIZATION_MEMBER | TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR",
|
|
105
|
-
"references": {
|
|
106
|
-
"TemplateSenderTypes": {
|
|
107
|
-
"location": "import",
|
|
108
|
-
"path": "@verdocs/js-sdk/Templates/Types"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}];
|
|
113
|
-
}
|
|
114
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit-html';
|
|
2
|
-
import { TemplateSenderTypes } from '@verdocs/js-sdk/Templates/Types';
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Dialogs/Template Sender Dialog',
|
|
5
|
-
component: 'verdocs-template-sender-dialog',
|
|
6
|
-
args: {
|
|
7
|
-
value: 'everyone',
|
|
8
|
-
},
|
|
9
|
-
argTypes: {
|
|
10
|
-
value: {
|
|
11
|
-
options: [
|
|
12
|
-
TemplateSenderTypes.CREATOR,
|
|
13
|
-
TemplateSenderTypes.ORGANIZATION_MEMBER,
|
|
14
|
-
TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR,
|
|
15
|
-
TemplateSenderTypes.EVERYONE,
|
|
16
|
-
TemplateSenderTypes.EVERYONE_AS_CREATOR,
|
|
17
|
-
],
|
|
18
|
-
mapping: {
|
|
19
|
-
[TemplateSenderTypes.CREATOR]: 'creator',
|
|
20
|
-
[TemplateSenderTypes.ORGANIZATION_MEMBER]: 'organization_member',
|
|
21
|
-
[TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR]: 'organization_member_as_creator',
|
|
22
|
-
[TemplateSenderTypes.EVERYONE]: 'everyone',
|
|
23
|
-
[TemplateSenderTypes.EVERYONE_AS_CREATOR]: 'everyone_as_creator',
|
|
24
|
-
},
|
|
25
|
-
control: {
|
|
26
|
-
type: 'select',
|
|
27
|
-
labels: {
|
|
28
|
-
[TemplateSenderTypes.CREATOR]: 'creator',
|
|
29
|
-
[TemplateSenderTypes.ORGANIZATION_MEMBER]: 'organization_member',
|
|
30
|
-
[TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR]: 'organization_member_as_creator',
|
|
31
|
-
[TemplateSenderTypes.EVERYONE]: 'everyone',
|
|
32
|
-
[TemplateSenderTypes.EVERYONE_AS_CREATOR]: 'everyone_as_creator',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
onNext: {
|
|
37
|
-
action: 'next',
|
|
38
|
-
table: { disable: true },
|
|
39
|
-
},
|
|
40
|
-
onCancel: {
|
|
41
|
-
action: 'cancel',
|
|
42
|
-
table: { disable: true },
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
export const TemplateSenderDialog = ({ value, onCancel, onNext }) => html `<verdocs-template-sender-dialog .value=${value} @cancel=${onCancel} @next=${onNext} />`;
|
package/dist/components/Types.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
var TemplatePermissions;
|
|
2
|
-
(function (TemplatePermissions) {
|
|
3
|
-
TemplatePermissions["TEMPLATE_CREATOR_CREATE_PUBLIC"] = "template:creator:create:public";
|
|
4
|
-
TemplatePermissions["TEMPLATE_CREATOR_CREATE_ORG"] = "template:creator:create:org";
|
|
5
|
-
TemplatePermissions["TEMPLATE_CREATOR_CREATE_PERSONAL"] = "template:creator:create:personal";
|
|
6
|
-
TemplatePermissions["TEMPLATE_CREATOR_DELETE"] = "template:creator:delete";
|
|
7
|
-
TemplatePermissions["TEMPLATE_CREATOR_VISIBILITY"] = "template:creator:visibility";
|
|
8
|
-
TemplatePermissions["TEMPLATE_MEMBER_READ"] = "template:member:read";
|
|
9
|
-
TemplatePermissions["TEMPLATE_MEMBER_WRITE"] = "template:member:write";
|
|
10
|
-
TemplatePermissions["TEMPLATE_MEMBER_DELETE"] = "template:member:delete";
|
|
11
|
-
TemplatePermissions["TEMPLATE_MEMBER_VISIBILITY"] = "template:member:visibility";
|
|
12
|
-
})(TemplatePermissions || (TemplatePermissions = {}));
|
|
13
|
-
var TemplateSenderTypes;
|
|
14
|
-
(function (TemplateSenderTypes) {
|
|
15
|
-
TemplateSenderTypes["CREATOR"] = "creator";
|
|
16
|
-
TemplateSenderTypes["ORGANIZATION_MEMBER"] = "organization_member";
|
|
17
|
-
TemplateSenderTypes["ORGANIZATION_MEMBER_AS_CREATOR"] = "organization_member_as_creator";
|
|
18
|
-
TemplateSenderTypes["EVERYONE"] = "everyone";
|
|
19
|
-
TemplateSenderTypes["EVERYONE_AS_CREATOR"] = "everyone_as_creator";
|
|
20
|
-
})(TemplateSenderTypes || (TemplateSenderTypes = {}));
|
|
21
|
-
var TemplateActions;
|
|
22
|
-
(function (TemplateActions) {
|
|
23
|
-
TemplateActions["CREATE_PERSONAL"] = "create_personal";
|
|
24
|
-
TemplateActions["CREATE_ORG"] = "create_org";
|
|
25
|
-
TemplateActions["CREATE_PUBLIC"] = "create_public";
|
|
26
|
-
TemplateActions["READ"] = "read";
|
|
27
|
-
TemplateActions["WRITE"] = "write";
|
|
28
|
-
TemplateActions["DELETE"] = "delete";
|
|
29
|
-
TemplateActions["CHANGE_VISIBILITY_PERSONAL"] = "change_visibility_personal";
|
|
30
|
-
TemplateActions["CHANGE_VISIBILITY_ORG"] = "change_visibility_org";
|
|
31
|
-
TemplateActions["CHANGE_VISIBILITY_PUBLIC"] = "change_visibility_public";
|
|
32
|
-
})(TemplateActions || (TemplateActions = {}));
|
|
33
|
-
var SortOptions;
|
|
34
|
-
(function (SortOptions) {
|
|
35
|
-
SortOptions["CREATED_AT"] = "created_at";
|
|
36
|
-
SortOptions["UPDATED_AT"] = "updated_at";
|
|
37
|
-
SortOptions["NAME"] = "name";
|
|
38
|
-
SortOptions["LAST_USED_AT"] = "last_used_at";
|
|
39
|
-
SortOptions["COUNTER"] = "counter";
|
|
40
|
-
SortOptions["STAR_COUNTER"] = "star_counter";
|
|
41
|
-
})(SortOptions || (SortOptions = {}));
|
|
42
|
-
|
|
43
|
-
export { TemplateSenderTypes as T };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface VerdocsTemplateSenderDialog extends Components.VerdocsTemplateSenderDialog, HTMLElement {}
|
|
4
|
-
export const VerdocsTemplateSenderDialog: {
|
|
5
|
-
prototype: VerdocsTemplateSenderDialog;
|
|
6
|
-
new (): VerdocsTemplateSenderDialog;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { V as VerdocsTemplateSenderDialog$1, d as defineCustomElement$1 } from './verdocs-template-sender-dialog2.js';
|
|
2
|
-
|
|
3
|
-
const VerdocsTemplateSenderDialog = VerdocsTemplateSenderDialog$1;
|
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
|
5
|
-
|
|
6
|
-
export { VerdocsTemplateSenderDialog, defineCustomElement };
|