@docuseal/angular 1.0.1 → 1.0.2

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.
@@ -1,8 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input, HostListener } from '@angular/core';
2
+ import { Component, Input, HostBinding, HostListener } from '@angular/core';
3
3
 
4
4
  class DocusealFormComponent {
5
- el;
6
5
  src = "";
7
6
  host = "cdn.docuseal.co";
8
7
  role = "";
@@ -25,7 +24,7 @@ class DocusealFormComponent {
25
24
  withSendCopyButton = true;
26
25
  allowToResubmit = true;
27
26
  allowTypedSignature = true;
28
- sendCopyEmail = false;
27
+ sendCopyEmail = null;
29
28
  values = {};
30
29
  metadata = {};
31
30
  i18n = {};
@@ -35,152 +34,36 @@ class DocusealFormComponent {
35
34
  onInit = () => { };
36
35
  onLoad = () => { };
37
36
  customCss = "";
38
- constructor(el) {
39
- this.el = el;
40
- }
41
- get attributes() {
42
- return {
43
- src: {
44
- name: "data-src",
45
- value: () => this.src
46
- },
47
- email: {
48
- name: "data-email",
49
- value: () => this.email
50
- },
51
- role: {
52
- name: "data-role",
53
- value: () => this.role || this.submitter
54
- },
55
- externalId: {
56
- name: "data-external-id",
57
- value: () => this.externalId || this.applicationKey
58
- },
59
- expand: {
60
- name: "data-expand",
61
- value: () => this.expand
62
- },
63
- preview: {
64
- name: "data-preview",
65
- value: () => this.preview
66
- },
67
- goToLast: {
68
- name: "data-go-to-last",
69
- value: () => this.goToLast
70
- },
71
- skipFields: {
72
- name: "data-skip-fields",
73
- value: () => this.skipFields
74
- },
75
- sendCopyEmail: {
76
- name: "data-send-copy-email",
77
- value: () => this.sendCopyEmail
78
- },
79
- withTitle: {
80
- name: "data-with-title",
81
- value: () => this.withTitle
82
- },
83
- logo: {
84
- name: "data-logo",
85
- value: () => this.logo
86
- },
87
- language: {
88
- name: "data-language",
89
- value: () => this.language
90
- },
91
- withFieldNames: {
92
- name: "data-with-field-names",
93
- value: () => this.withFieldNames
94
- },
95
- withDownloadButton: {
96
- name: "data-with-download-button",
97
- value: () => this.withDownloadButton
98
- },
99
- allowToResubmit: {
100
- name: "data-allow-to-resubmit",
101
- value: () => this.allowToResubmit
102
- },
103
- allowTypedSignature: {
104
- name: "data-allow-typed-signature",
105
- value: () => this.allowTypedSignature
106
- },
107
- completedRedirectUrl: {
108
- name: "data-completed-redirect-url",
109
- value: () => this.completedRedirectUrl
110
- },
111
- withSendCopyButton: {
112
- name: "data-with-send-copy-button",
113
- value: () => this.withSendCopyButton
114
- },
115
- values: {
116
- name: "data-values",
117
- value: () => JSON.stringify(this.values)
118
- },
119
- metadata: {
120
- name: "data-metadata",
121
- value: () => JSON.stringify(this.metadata)
122
- },
123
- fields: {
124
- name: "data-fields",
125
- value: () => JSON.stringify(this.fields)
126
- },
127
- i18n: {
128
- name: "data-i18n",
129
- value: () => JSON.stringify(this.i18n)
130
- },
131
- readonlyFields: {
132
- name: "data-readonly-fields",
133
- value: () => this.readonlyFields.join(',')
134
- },
135
- completedButton: [
136
- {
137
- name: "data-completed-button-title",
138
- value: () => this.completedButton.title
139
- },
140
- {
141
- name: "data-completed-button-url",
142
- value: () => this.completedButton.url
143
- }
144
- ],
145
- backgroundColor: {
146
- name: "data-background-color",
147
- value: () => this.backgroundColor
148
- },
149
- customCss: {
150
- name: "data-custom-css",
151
- value: () => this.customCss
152
- }
153
- };
154
- }
37
+ get dataSrc() { return this.src; }
38
+ get dataEmail() { return this.email; }
39
+ get dataRole() { return this.role || this.submitter; }
40
+ get dataExternalId() { return this.externalId || this.applicationKey; }
41
+ get dataExpand() { return this.expand; }
42
+ get dataPreview() { return this.preview; }
43
+ get dataGoToLast() { return this.goToLast; }
44
+ get dataSkipFields() { return this.skipFields; }
45
+ get dataSendCopyEmail() { return this.sendCopyEmail; }
46
+ get dataWithTitle() { return this.withTitle; }
47
+ get dataLogo() { return this.logo; }
48
+ get dataLanguage() { return this.language; }
49
+ get dataWithFieldNames() { return this.withFieldNames; }
50
+ get dataWithDownloadButton() { return this.withDownloadButton; }
51
+ get dataAllowToResubmit() { return this.allowToResubmit; }
52
+ get dataAllowTypedSignature() { return this.allowTypedSignature; }
53
+ get dataCompletedRedirectUrl() { return this.completedRedirectUrl; }
54
+ get dataWithSendCopyButton() { return this.withSendCopyButton; }
55
+ get dataValues() { return JSON.stringify(this.values); }
56
+ get dataMetadata() { return JSON.stringify(this.metadata); }
57
+ get dataFields() { return JSON.stringify(this.fields); }
58
+ get dataI18n() { return JSON.stringify(this.i18n); }
59
+ get dataReadonlyFields() { return this.readonlyFields.join(','); }
60
+ get dataCompletedButtonTitle() { return this.completedButton.title; }
61
+ get dataCompletedButtonUrl() { return this.completedButton.url; }
62
+ get dataBackgroundColor() { return this.backgroundColor; }
63
+ get dataCustomCss() { return this.customCss; }
155
64
  ngAfterViewInit() {
156
- const form = this.el.nativeElement;
157
- Object.entries(this.attributes).forEach(([_, attribute]) => {
158
- if (Array.isArray(attribute)) {
159
- attribute.forEach((attr) => {
160
- form.setAttribute(attr.name, attr.value());
161
- });
162
- }
163
- else {
164
- form.setAttribute(attribute.name, attribute.value());
165
- }
166
- });
167
65
  this.loadScript();
168
66
  }
169
- ngOnChanges(changes) {
170
- const form = this.el.nativeElement;
171
- const attributes = this.attributes;
172
- Object.entries(changes).forEach(([key, change]) => {
173
- const attribute = attributes[key];
174
- if (Array.isArray(attribute)) {
175
- attribute.forEach((attr) => {
176
- form.setAttribute(attr.name, attr.value());
177
- });
178
- }
179
- else if (attribute) {
180
- form.setAttribute(attribute.name, change.currentValue);
181
- }
182
- });
183
- }
184
67
  onCompleteEvent(event) {
185
68
  if (this.onComplete) {
186
69
  this.onComplete(event.detail);
@@ -205,15 +88,17 @@ class DocusealFormComponent {
205
88
  script.src = scriptSrc;
206
89
  document.head.appendChild(script);
207
90
  }
208
- static ɵfac = function DocusealFormComponent_Factory(t) { return new (t || DocusealFormComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
209
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DocusealFormComponent, selectors: [["docuseal-form"]], hostBindings: function DocusealFormComponent_HostBindings(rf, ctx) { if (rf & 1) {
91
+ static ɵfac = function DocusealFormComponent_Factory(t) { return new (t || DocusealFormComponent)(); };
92
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DocusealFormComponent, selectors: [["docuseal-form"]], hostVars: 27, hostBindings: function DocusealFormComponent_HostBindings(rf, ctx) { if (rf & 1) {
210
93
  i0.ɵɵlistener("completed", function DocusealFormComponent_completed_HostBindingHandler($event) { return ctx.onCompleteEvent($event); })("init", function DocusealFormComponent_init_HostBindingHandler($event) { return ctx.onInitEvent($event); })("load", function DocusealFormComponent_load_HostBindingHandler($event) { return ctx.onLoadEvent($event); });
211
- } }, inputs: { src: "src", host: "host", role: "role", submitter: "submitter", expand: "expand", preview: "preview", email: "email", applicationKey: "applicationKey", externalId: "externalId", backgroundColor: "backgroundColor", logo: "logo", language: "language", completedRedirectUrl: "completedRedirectUrl", completedButton: "completedButton", goToLast: "goToLast", skipFields: "skipFields", withTitle: "withTitle", withFieldNames: "withFieldNames", withDownloadButton: "withDownloadButton", withSendCopyButton: "withSendCopyButton", allowToResubmit: "allowToResubmit", allowTypedSignature: "allowTypedSignature", sendCopyEmail: "sendCopyEmail", values: "values", metadata: "metadata", i18n: "i18n", fields: "fields", readonlyFields: "readonlyFields", onComplete: "onComplete", onInit: "onInit", onLoad: "onLoad", customCss: "customCss" }, standalone: true, features: [i0.ɵɵNgOnChangesFeature, i0.ɵɵStandaloneFeature], decls: 0, vars: 0, template: function DocusealFormComponent_Template(rf, ctx) { }, encapsulation: 2 });
94
+ } if (rf & 2) {
95
+ i0.ɵɵattribute("data-src", ctx.dataSrc)("data-email", ctx.dataEmail)("data-role", ctx.dataRole)("data-external-id", ctx.dataExternalId)("data-expand", ctx.dataExpand)("data-preview", ctx.dataPreview)("data-go-to-last", ctx.dataGoToLast)("data-skip-fields", ctx.dataSkipFields)("data-send-copy-email", ctx.dataSendCopyEmail)("data-with-title", ctx.dataWithTitle)("data-logo", ctx.dataLogo)("data-language", ctx.dataLanguage)("data-with-field-names", ctx.dataWithFieldNames)("data-with-download-button", ctx.dataWithDownloadButton)("data-allow-to-resubmit", ctx.dataAllowToResubmit)("data-allow-typed-signature", ctx.dataAllowTypedSignature)("data-completed-redirect-url", ctx.dataCompletedRedirectUrl)("data-with-send-copy-button", ctx.dataWithSendCopyButton)("data-values", ctx.dataValues)("data-metadata", ctx.dataMetadata)("data-fields", ctx.dataFields)("data-i18n", ctx.dataI18n)("data-readonly-fields", ctx.dataReadonlyFields)("data-completed-button-title", ctx.dataCompletedButtonTitle)("data-completed-button-url", ctx.dataCompletedButtonUrl)("data-background-color", ctx.dataBackgroundColor)("data-custom-css", ctx.dataCustomCss);
96
+ } }, inputs: { src: "src", host: "host", role: "role", submitter: "submitter", expand: "expand", preview: "preview", email: "email", applicationKey: "applicationKey", externalId: "externalId", backgroundColor: "backgroundColor", logo: "logo", language: "language", completedRedirectUrl: "completedRedirectUrl", completedButton: "completedButton", goToLast: "goToLast", skipFields: "skipFields", withTitle: "withTitle", withFieldNames: "withFieldNames", withDownloadButton: "withDownloadButton", withSendCopyButton: "withSendCopyButton", allowToResubmit: "allowToResubmit", allowTypedSignature: "allowTypedSignature", sendCopyEmail: "sendCopyEmail", values: "values", metadata: "metadata", i18n: "i18n", fields: "fields", readonlyFields: "readonlyFields", onComplete: "onComplete", onInit: "onInit", onLoad: "onLoad", customCss: "customCss" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 0, vars: 0, template: function DocusealFormComponent_Template(rf, ctx) { }, encapsulation: 2 });
212
97
  }
213
98
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DocusealFormComponent, [{
214
99
  type: Component,
215
100
  args: [{ selector: "docuseal-form", standalone: true, template: "" }]
216
- }], () => [{ type: i0.ElementRef }], { src: [{
101
+ }], null, { src: [{
217
102
  type: Input
218
103
  }], host: [{
219
104
  type: Input
@@ -277,6 +162,87 @@ class DocusealFormComponent {
277
162
  type: Input
278
163
  }], customCss: [{
279
164
  type: Input
165
+ }], dataSrc: [{
166
+ type: HostBinding,
167
+ args: ["attr.data-src"]
168
+ }], dataEmail: [{
169
+ type: HostBinding,
170
+ args: ["attr.data-email"]
171
+ }], dataRole: [{
172
+ type: HostBinding,
173
+ args: ["attr.data-role"]
174
+ }], dataExternalId: [{
175
+ type: HostBinding,
176
+ args: ["attr.data-external-id"]
177
+ }], dataExpand: [{
178
+ type: HostBinding,
179
+ args: ["attr.data-expand"]
180
+ }], dataPreview: [{
181
+ type: HostBinding,
182
+ args: ["attr.data-preview"]
183
+ }], dataGoToLast: [{
184
+ type: HostBinding,
185
+ args: ["attr.data-go-to-last"]
186
+ }], dataSkipFields: [{
187
+ type: HostBinding,
188
+ args: ["attr.data-skip-fields"]
189
+ }], dataSendCopyEmail: [{
190
+ type: HostBinding,
191
+ args: ["attr.data-send-copy-email"]
192
+ }], dataWithTitle: [{
193
+ type: HostBinding,
194
+ args: ["attr.data-with-title"]
195
+ }], dataLogo: [{
196
+ type: HostBinding,
197
+ args: ["attr.data-logo"]
198
+ }], dataLanguage: [{
199
+ type: HostBinding,
200
+ args: ["attr.data-language"]
201
+ }], dataWithFieldNames: [{
202
+ type: HostBinding,
203
+ args: ["attr.data-with-field-names"]
204
+ }], dataWithDownloadButton: [{
205
+ type: HostBinding,
206
+ args: ["attr.data-with-download-button"]
207
+ }], dataAllowToResubmit: [{
208
+ type: HostBinding,
209
+ args: ["attr.data-allow-to-resubmit"]
210
+ }], dataAllowTypedSignature: [{
211
+ type: HostBinding,
212
+ args: ["attr.data-allow-typed-signature"]
213
+ }], dataCompletedRedirectUrl: [{
214
+ type: HostBinding,
215
+ args: ["attr.data-completed-redirect-url"]
216
+ }], dataWithSendCopyButton: [{
217
+ type: HostBinding,
218
+ args: ["attr.data-with-send-copy-button"]
219
+ }], dataValues: [{
220
+ type: HostBinding,
221
+ args: ["attr.data-values"]
222
+ }], dataMetadata: [{
223
+ type: HostBinding,
224
+ args: ["attr.data-metadata"]
225
+ }], dataFields: [{
226
+ type: HostBinding,
227
+ args: ["attr.data-fields"]
228
+ }], dataI18n: [{
229
+ type: HostBinding,
230
+ args: ["attr.data-i18n"]
231
+ }], dataReadonlyFields: [{
232
+ type: HostBinding,
233
+ args: ["attr.data-readonly-fields"]
234
+ }], dataCompletedButtonTitle: [{
235
+ type: HostBinding,
236
+ args: ["attr.data-completed-button-title"]
237
+ }], dataCompletedButtonUrl: [{
238
+ type: HostBinding,
239
+ args: ["attr.data-completed-button-url"]
240
+ }], dataBackgroundColor: [{
241
+ type: HostBinding,
242
+ args: ["attr.data-background-color"]
243
+ }], dataCustomCss: [{
244
+ type: HostBinding,
245
+ args: ["attr.data-custom-css"]
280
246
  }], onCompleteEvent: [{
281
247
  type: HostListener,
282
248
  args: ['completed', ['$event']]
@@ -290,7 +256,6 @@ class DocusealFormComponent {
290
256
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DocusealFormComponent, { className: "DocusealFormComponent" }); })();
291
257
 
292
258
  class DocusealBuilderComponent {
293
- el;
294
259
  token = "";
295
260
  host = "cdn.docuseal.co";
296
261
  language = "en";
@@ -318,136 +283,32 @@ class DocusealBuilderComponent {
318
283
  sendButtonText = "";
319
284
  saveButtonText = "";
320
285
  customCss = "";
321
- constructor(el) {
322
- this.el = el;
323
- }
324
- get attributes() {
325
- return {
326
- src: {
327
- name: "data-token",
328
- value: () => this.token
329
- },
330
- preview: {
331
- name: "data-preview",
332
- value: () => this.preview
333
- },
334
- language: {
335
- name: "data-language",
336
- value: () => this.language
337
- },
338
- autosave: {
339
- name: "data-autosave",
340
- value: () => this.autosave
341
- },
342
- sendButtonText: {
343
- name: "data-send-button-text",
344
- value: () => this.sendButtonText
345
- },
346
- saveButtonText: {
347
- name: "data-save-button-text",
348
- value: () => this.saveButtonText
349
- },
350
- roles: {
351
- name: "data-roles",
352
- value: () => this.roles.join(',')
353
- },
354
- fieldTypes: {
355
- name: "data-field-types",
356
- value: () => this.fieldTypes.join(',')
357
- },
358
- drawFieldType: {
359
- name: "data-draw-field-type",
360
- value: () => this.drawFieldType
361
- },
362
- fields: {
363
- name: "data-fields",
364
- value: () => JSON.stringify(this.fields)
365
- },
366
- i18n: {
367
- name: "data-i18n",
368
- value: () => JSON.stringify(this.i18n)
369
- },
370
- customButton: [
371
- {
372
- name: "data-custom-button-title",
373
- value: () => this.customButton.title
374
- },
375
- {
376
- name: "data-custom-button-url",
377
- value: () => this.customButton.url
378
- }
379
- ],
380
- withRecipientsButton: {
381
- name: "data-with-recipients-button",
382
- value: () => this.withRecipientsButton
383
- },
384
- withSendButton: {
385
- name: "data-with-send-button",
386
- value: () => this.withSendButton
387
- },
388
- withDocumentsList: {
389
- name: "data-with-documents-list",
390
- value: () => this.withDocumentsList
391
- },
392
- withFieldsList: {
393
- name: "data-with-fields-list",
394
- value: () => this.withFieldsList
395
- },
396
- withTitle: {
397
- name: "data-with-title",
398
- value: () => this.withTitle
399
- },
400
- onlyDefinedFields: {
401
- name: "data-only-defined-fields",
402
- value: () => this.onlyDefinedFields
403
- },
404
- withUploadButton: {
405
- name: "data-with-upload-button",
406
- value: () => this.withUploadButton
407
- },
408
- withSignYourselfButton: {
409
- name: "data-with-sign-yourself-button",
410
- value: () => this.withSignYourselfButton
411
- },
412
- backgroundColor: {
413
- name: "data-background-color",
414
- value: () => this.backgroundColor
415
- },
416
- customCss: {
417
- name: "data-custom-css",
418
- value: () => this.customCss
419
- }
420
- };
421
- }
286
+ get dataToken() { return this.token; }
287
+ get dataPreview() { return this.preview; }
288
+ get dataLanguage() { return this.language; }
289
+ get dataAutosave() { return this.autosave; }
290
+ get dataSendButtonText() { return this.sendButtonText; }
291
+ get dataSaveButtonText() { return this.saveButtonText; }
292
+ get dataRoles() { return this.roles.join(','); }
293
+ get dataFieldTypes() { return this.fieldTypes.join(','); }
294
+ get dataDrawFieldType() { return this.drawFieldType; }
295
+ get dataFields() { return JSON.stringify(this.fields); }
296
+ get dataI18n() { return JSON.stringify(this.i18n); }
297
+ get dataCustomButtonTitle() { return this.customButton.title; }
298
+ get dataCustomButtonUrl() { return this.customButton.url; }
299
+ get dataWithRecipientsButton() { return this.withRecipientsButton; }
300
+ get dataWithSendButton() { return this.withSendButton; }
301
+ get dataWithDocumentsList() { return this.withDocumentsList; }
302
+ get dataWithFieldsList() { return this.withFieldsList; }
303
+ get dataWithTitle() { return this.withTitle; }
304
+ get dataOnlyDefinedFields() { return this.onlyDefinedFields; }
305
+ get dataWithUploadButton() { return this.withUploadButton; }
306
+ get dataWithSignYourselfButton() { return this.withSignYourselfButton; }
307
+ get dataBackgroundColor() { return this.backgroundColor; }
308
+ get dataCustomCss() { return this.customCss; }
422
309
  ngAfterViewInit() {
423
- const builder = this.el.nativeElement;
424
- Object.entries(this.attributes).forEach(([_, attribute]) => {
425
- if (Array.isArray(attribute)) {
426
- attribute.forEach((attr) => {
427
- builder.setAttribute(attr.name, attr.value());
428
- });
429
- }
430
- else if (attribute) {
431
- builder.setAttribute(attribute.name, attribute.value());
432
- }
433
- });
434
310
  this.loadScript();
435
311
  }
436
- ngOnChanges(changes) {
437
- const builder = this.el.nativeElement;
438
- const attributes = this.attributes;
439
- Object.entries(changes).forEach(([key, change]) => {
440
- const attribute = attributes[key];
441
- if (Array.isArray(attribute)) {
442
- attribute.forEach((attr) => {
443
- builder.setAttribute(attr.name, attr.value());
444
- });
445
- }
446
- else if (attribute) {
447
- builder.setAttribute(attribute.name, change.currentValue);
448
- }
449
- });
450
- }
451
312
  onSendEvent(event) {
452
313
  if (this.onSend) {
453
314
  this.onSend(event.detail);
@@ -477,15 +338,17 @@ class DocusealBuilderComponent {
477
338
  script.src = scriptSrc;
478
339
  document.head.appendChild(script);
479
340
  }
480
- static ɵfac = function DocusealBuilderComponent_Factory(t) { return new (t || DocusealBuilderComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
481
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DocusealBuilderComponent, selectors: [["docuseal-builder"]], hostBindings: function DocusealBuilderComponent_HostBindings(rf, ctx) { if (rf & 1) {
341
+ static ɵfac = function DocusealBuilderComponent_Factory(t) { return new (t || DocusealBuilderComponent)(); };
342
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DocusealBuilderComponent, selectors: [["docuseal-builder"]], hostVars: 23, hostBindings: function DocusealBuilderComponent_HostBindings(rf, ctx) { if (rf & 1) {
482
343
  i0.ɵɵlistener("send", function DocusealBuilderComponent_send_HostBindingHandler($event) { return ctx.onSendEvent($event); })("load", function DocusealBuilderComponent_load_HostBindingHandler($event) { return ctx.onLoadEvent($event); })("upload", function DocusealBuilderComponent_upload_HostBindingHandler($event) { return ctx.onUploadEvent($event); })("save", function DocusealBuilderComponent_save_HostBindingHandler($event) { return ctx.onSaveEvent($event); });
483
- } }, inputs: { token: "token", host: "host", language: "language", preview: "preview", autosave: "autosave", withRecipientsButton: "withRecipientsButton", withDocumentsList: "withDocumentsList", withFieldsList: "withFieldsList", withSendButton: "withSendButton", withTitle: "withTitle", onlyDefinedFields: "onlyDefinedFields", withSignYourselfButton: "withSignYourselfButton", withUploadButton: "withUploadButton", roles: "roles", fields: "fields", i18n: "i18n", fieldTypes: "fieldTypes", drawFieldType: "drawFieldType", customButton: "customButton", backgroundColor: "backgroundColor", onLoad: "onLoad", onUpload: "onUpload", onSend: "onSend", onSave: "onSave", sendButtonText: "sendButtonText", saveButtonText: "saveButtonText", customCss: "customCss" }, standalone: true, features: [i0.ɵɵNgOnChangesFeature, i0.ɵɵStandaloneFeature], decls: 0, vars: 0, template: function DocusealBuilderComponent_Template(rf, ctx) { }, encapsulation: 2 });
344
+ } if (rf & 2) {
345
+ i0.ɵɵattribute("data-token", ctx.dataToken)("data-preview", ctx.dataPreview)("data-language", ctx.dataLanguage)("data-autosave", ctx.dataAutosave)("data-send-button-text", ctx.dataSendButtonText)("data-save-button-text", ctx.dataSaveButtonText)("data-roles", ctx.dataRoles)("data-field-types", ctx.dataFieldTypes)("data-draw-field-type", ctx.dataDrawFieldType)("data-fields", ctx.dataFields)("data-i18n", ctx.dataI18n)("data-custom-button-title", ctx.dataCustomButtonTitle)("data-custom-button-url", ctx.dataCustomButtonUrl)("data-with-recipients-button", ctx.dataWithRecipientsButton)("data-with-send-button", ctx.dataWithSendButton)("data-with-documents-list", ctx.dataWithDocumentsList)("data-with-fields-list", ctx.dataWithFieldsList)("data-with-title", ctx.dataWithTitle)("data-only-defined-fields", ctx.dataOnlyDefinedFields)("data-with-upload-button", ctx.dataWithUploadButton)("data-with-sign-yourself-button", ctx.dataWithSignYourselfButton)("data-background-color", ctx.dataBackgroundColor)("data-custom-css", ctx.dataCustomCss);
346
+ } }, inputs: { token: "token", host: "host", language: "language", preview: "preview", autosave: "autosave", withRecipientsButton: "withRecipientsButton", withDocumentsList: "withDocumentsList", withFieldsList: "withFieldsList", withSendButton: "withSendButton", withTitle: "withTitle", onlyDefinedFields: "onlyDefinedFields", withSignYourselfButton: "withSignYourselfButton", withUploadButton: "withUploadButton", roles: "roles", fields: "fields", i18n: "i18n", fieldTypes: "fieldTypes", drawFieldType: "drawFieldType", customButton: "customButton", backgroundColor: "backgroundColor", onLoad: "onLoad", onUpload: "onUpload", onSend: "onSend", onSave: "onSave", sendButtonText: "sendButtonText", saveButtonText: "saveButtonText", customCss: "customCss" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 0, vars: 0, template: function DocusealBuilderComponent_Template(rf, ctx) { }, encapsulation: 2 });
484
347
  }
485
348
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DocusealBuilderComponent, [{
486
349
  type: Component,
487
350
  args: [{ selector: "docuseal-builder", standalone: true, template: "" }]
488
- }], () => [{ type: i0.ElementRef }], { token: [{
351
+ }], null, { token: [{
489
352
  type: Input
490
353
  }], host: [{
491
354
  type: Input
@@ -539,6 +402,75 @@ class DocusealBuilderComponent {
539
402
  type: Input
540
403
  }], customCss: [{
541
404
  type: Input
405
+ }], dataToken: [{
406
+ type: HostBinding,
407
+ args: ["attr.data-token"]
408
+ }], dataPreview: [{
409
+ type: HostBinding,
410
+ args: ["attr.data-preview"]
411
+ }], dataLanguage: [{
412
+ type: HostBinding,
413
+ args: ["attr.data-language"]
414
+ }], dataAutosave: [{
415
+ type: HostBinding,
416
+ args: ["attr.data-autosave"]
417
+ }], dataSendButtonText: [{
418
+ type: HostBinding,
419
+ args: ["attr.data-send-button-text"]
420
+ }], dataSaveButtonText: [{
421
+ type: HostBinding,
422
+ args: ["attr.data-save-button-text"]
423
+ }], dataRoles: [{
424
+ type: HostBinding,
425
+ args: ["attr.data-roles"]
426
+ }], dataFieldTypes: [{
427
+ type: HostBinding,
428
+ args: ["attr.data-field-types"]
429
+ }], dataDrawFieldType: [{
430
+ type: HostBinding,
431
+ args: ["attr.data-draw-field-type"]
432
+ }], dataFields: [{
433
+ type: HostBinding,
434
+ args: ["attr.data-fields"]
435
+ }], dataI18n: [{
436
+ type: HostBinding,
437
+ args: ["attr.data-i18n"]
438
+ }], dataCustomButtonTitle: [{
439
+ type: HostBinding,
440
+ args: ["attr.data-custom-button-title"]
441
+ }], dataCustomButtonUrl: [{
442
+ type: HostBinding,
443
+ args: ["attr.data-custom-button-url"]
444
+ }], dataWithRecipientsButton: [{
445
+ type: HostBinding,
446
+ args: ["attr.data-with-recipients-button"]
447
+ }], dataWithSendButton: [{
448
+ type: HostBinding,
449
+ args: ["attr.data-with-send-button"]
450
+ }], dataWithDocumentsList: [{
451
+ type: HostBinding,
452
+ args: ["attr.data-with-documents-list"]
453
+ }], dataWithFieldsList: [{
454
+ type: HostBinding,
455
+ args: ["attr.data-with-fields-list"]
456
+ }], dataWithTitle: [{
457
+ type: HostBinding,
458
+ args: ["attr.data-with-title"]
459
+ }], dataOnlyDefinedFields: [{
460
+ type: HostBinding,
461
+ args: ["attr.data-only-defined-fields"]
462
+ }], dataWithUploadButton: [{
463
+ type: HostBinding,
464
+ args: ["attr.data-with-upload-button"]
465
+ }], dataWithSignYourselfButton: [{
466
+ type: HostBinding,
467
+ args: ["attr.data-with-sign-yourself-button"]
468
+ }], dataBackgroundColor: [{
469
+ type: HostBinding,
470
+ args: ["attr.data-background-color"]
471
+ }], dataCustomCss: [{
472
+ type: HostBinding,
473
+ args: ["attr.data-custom-css"]
542
474
  }], onSendEvent: [{
543
475
  type: HostListener,
544
476
  args: ['send', ['$event']]