legalesign-document-viewer 0.3.2 → 0.3.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/{index-DruwRbfl.js → index-BpMnxZQ4.js} +14 -3
- package/dist/cjs/index-BpMnxZQ4.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{ls-document-options_39.cjs.entry.js → ls-document-options_40.cjs.entry.js} +1548 -21
- package/dist/cjs/ls-document-options_40.cjs.entry.js.map +1 -0
- package/dist/cjs/ls-document-viewer.cjs.js +2 -2
- package/dist/cjs/ls-field-properties-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ls-formfield.cjs.entry.js +1 -1
- package/dist/cjs/ls-number-input_5.cjs.entry.js +1 -1
- package/dist/collection/components/ls-document-options/ls-document-options.js +8 -2
- package/dist/collection/components/ls-document-options/ls-document-options.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/editorCalculator.js +2 -0
- package/dist/collection/components/ls-document-viewer/editorCalculator.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/editorUtils.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js +11 -11
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/validator.js +2 -2
- package/dist/collection/components/ls-document-viewer/validator.js.map +1 -1
- package/dist/collection/components/ls-field-content/ls-field-content.js +6 -2
- package/dist/collection/components/ls-field-content/ls-field-content.js.map +1 -1
- package/dist/collection/components/ls-tooltip/ls-tooltip.css +22 -5
- package/dist/collection/components/ls-tooltip/ls-tooltip.js +59 -34
- package/dist/collection/components/ls-tooltip/ls-tooltip.js.map +1 -1
- package/dist/collection/components/ls-validation-tag/ls-validation-tag.js +11 -2
- package/dist/collection/components/ls-validation-tag/ls-validation-tag.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/ls-document-options.js +1 -1
- package/dist/components/ls-document-viewer.js +97 -89
- package/dist/components/ls-document-viewer.js.map +1 -1
- package/dist/components/ls-editor-field.js +1 -1
- package/dist/components/ls-editor-table.js +1 -1
- package/dist/components/ls-feature-column.js +1 -1
- package/dist/components/ls-field-alignment.js +1 -1
- package/dist/components/ls-field-content.js +1 -1
- package/dist/components/ls-field-dimensions.js +1 -1
- package/dist/components/ls-field-distribute.js +1 -1
- package/dist/components/ls-field-footer.js +1 -1
- package/dist/components/ls-field-format.js +1 -1
- package/dist/components/ls-field-placement.js +1 -1
- package/dist/components/ls-field-properties-advanced.js +1 -1
- package/dist/components/ls-field-properties-autosign.js +1 -1
- package/dist/components/ls-field-properties-container.js +1 -1
- package/dist/components/ls-field-properties-date.js +1 -1
- package/dist/components/ls-field-properties-dropdown.js +12 -12
- package/dist/components/ls-field-properties-email.js +1 -1
- package/dist/components/ls-field-properties-file.js +1 -1
- package/dist/components/ls-field-properties-general.js +1 -1
- package/dist/components/ls-field-properties-image.js +1 -1
- package/dist/components/ls-field-properties-multiple.js +1 -1
- package/dist/components/ls-field-properties-number.js +1 -1
- package/dist/components/ls-field-properties-signature.js +1 -1
- package/dist/components/ls-field-properties-text.js +1 -1
- package/dist/components/ls-field-properties.js +1 -1
- package/dist/components/ls-field-size.js +1 -1
- package/dist/components/ls-field-type-display.js +1 -1
- package/dist/components/ls-formfield.js +7 -7
- package/dist/components/ls-icon.js +1 -1
- package/dist/components/ls-input-wrapper.js +1 -1
- package/dist/components/ls-number-input.js +1 -1
- package/dist/components/ls-page-loader.js +1 -1
- package/dist/components/ls-participant-card.js +1 -1
- package/dist/components/ls-participant-manager.js +1 -1
- package/dist/components/ls-participant-select.js +1 -1
- package/dist/components/ls-props-section.js +1 -1
- package/dist/components/ls-radio-input.js +1 -1
- package/dist/components/ls-select-input.js +1 -1
- package/dist/components/ls-statusbar.js +1 -1
- package/dist/components/ls-text-input.js +1 -1
- package/dist/components/ls-textarea-input.js +1 -1
- package/dist/components/ls-toggle.js +1 -1
- package/dist/components/ls-toolbar.js +1 -1
- package/dist/components/ls-toolbox-field.js +1 -1
- package/dist/components/ls-tooltip.js +1 -1587
- package/dist/components/ls-tooltip.js.map +1 -1
- package/dist/components/ls-validation-tag.js +1 -1
- package/dist/components/{p-CVxA0mrX.js → p-14owczyX.js} +8 -8
- package/dist/components/{p-CVxA0mrX.js.map → p-14owczyX.js.map} +1 -1
- package/dist/components/{p-GJYwAar9.js → p-23iaNjGp.js} +14 -14
- package/dist/components/{p-GJYwAar9.js.map → p-23iaNjGp.js.map} +1 -1
- package/dist/components/{p-D990IL5t.js → p-6LFAGg6D.js} +4 -4
- package/dist/components/{p-D990IL5t.js.map → p-6LFAGg6D.js.map} +1 -1
- package/dist/components/{p-CcUFZYwZ.js → p-9WKoGwO0.js} +4 -4
- package/dist/components/{p-CcUFZYwZ.js.map → p-9WKoGwO0.js.map} +1 -1
- package/dist/components/{p-C0afavmo.js → p-B-K24bnx.js} +27 -27
- package/dist/components/{p-C0afavmo.js.map → p-B-K24bnx.js.map} +1 -1
- package/dist/components/{p-Cfl2rRxL.js → p-B3lY01RV.js} +4 -4
- package/dist/components/{p-Cfl2rRxL.js.map → p-B3lY01RV.js.map} +1 -1
- package/dist/components/{p-HaIHVR-P.js → p-BArjC51C.js} +3 -3
- package/dist/components/{p-HaIHVR-P.js.map → p-BArjC51C.js.map} +1 -1
- package/dist/components/{p-C6cWElQ7.js → p-BKNIuWRw.js} +14 -14
- package/dist/components/{p-C6cWElQ7.js.map → p-BKNIuWRw.js.map} +1 -1
- package/dist/components/{p-BaMR8ksy.js → p-BLUUNyDx.js} +3 -3
- package/dist/components/{p-BaMR8ksy.js.map → p-BLUUNyDx.js.map} +1 -1
- package/dist/components/{p-7V9_3fXA.js → p-BXKYpxgM.js} +4 -4
- package/dist/components/{p-7V9_3fXA.js.map → p-BXKYpxgM.js.map} +1 -1
- package/dist/components/{p-DrWlEpVu.js → p-Ba_8GAK2.js} +4 -4
- package/dist/components/{p-DrWlEpVu.js.map → p-Ba_8GAK2.js.map} +1 -1
- package/dist/components/{p-ClYIDEKN.js → p-BcfP7mSQ.js} +6 -6
- package/dist/components/{p-ClYIDEKN.js.map → p-BcfP7mSQ.js.map} +1 -1
- package/dist/{esm/ls-tooltip.entry.js → components/p-Bt5gnPRz.js} +177 -216
- package/dist/components/p-Bt5gnPRz.js.map +1 -0
- package/dist/components/{p-BWLt02JN.js → p-BvHSBTD8.js} +14 -3
- package/dist/components/p-BvHSBTD8.js.map +1 -0
- package/dist/components/{p-Dp-vgKJq.js → p-Bxutt9rC.js} +4 -4
- package/dist/components/{p-Dp-vgKJq.js.map → p-Bxutt9rC.js.map} +1 -1
- package/dist/components/{p-_dj7MCcU.js → p-C45TaVTh.js} +4 -4
- package/dist/components/{p-_dj7MCcU.js.map → p-C45TaVTh.js.map} +1 -1
- package/dist/components/{p-Dhknldsv.js → p-C4dJ_NrC.js} +12 -12
- package/dist/components/{p-Dhknldsv.js.map → p-C4dJ_NrC.js.map} +1 -1
- package/dist/components/{p-CpiX4Tih.js → p-C6NnNmx5.js} +4 -4
- package/dist/components/{p-CpiX4Tih.js.map → p-C6NnNmx5.js.map} +1 -1
- package/dist/components/{p-wy6ar5D3.js → p-CCE9t160.js} +4 -4
- package/dist/components/{p-wy6ar5D3.js.map → p-CCE9t160.js.map} +1 -1
- package/dist/components/{p-CjciOPPE.js → p-CHN41h9u.js} +14 -14
- package/dist/components/{p-CjciOPPE.js.map → p-CHN41h9u.js.map} +1 -1
- package/dist/components/{p-h3hsXDzk.js → p-CTXoPKrw.js} +4 -4
- package/dist/components/{p-h3hsXDzk.js.map → p-CTXoPKrw.js.map} +1 -1
- package/dist/components/{p-DgMfXwXc.js → p-CZkgAbFI.js} +4 -4
- package/dist/components/{p-DgMfXwXc.js.map → p-CZkgAbFI.js.map} +1 -1
- package/dist/components/{p-C8kySYH4.js → p-CdGtJRZm.js} +3 -3
- package/dist/components/{p-C8kySYH4.js.map → p-CdGtJRZm.js.map} +1 -1
- package/dist/components/{p-Crkl9bKZ.js → p-Co6xLkEu.js} +4 -4
- package/dist/components/{p-Crkl9bKZ.js.map → p-Co6xLkEu.js.map} +1 -1
- package/dist/components/{p-Bg6wsr_z.js → p-Cv4qCy2p.js} +4 -4
- package/dist/components/{p-Bg6wsr_z.js.map → p-Cv4qCy2p.js.map} +1 -1
- package/dist/components/{p-gvEf2mjl.js → p-Cw8qsoOq.js} +4 -4
- package/dist/components/{p-gvEf2mjl.js.map → p-Cw8qsoOq.js.map} +1 -1
- package/dist/components/{p-DOCp-M5v.js → p-CzySwvIU.js} +5 -5
- package/dist/components/{p-DOCp-M5v.js.map → p-CzySwvIU.js.map} +1 -1
- package/dist/components/{p-DORxxjtg.js → p-DE2r5IdM.js} +14 -14
- package/dist/components/{p-DORxxjtg.js.map → p-DE2r5IdM.js.map} +1 -1
- package/dist/components/{p-BPayWH9u.js → p-DM3pnD5z.js} +3 -3
- package/dist/components/{p-BPayWH9u.js.map → p-DM3pnD5z.js.map} +1 -1
- package/dist/components/{p-D5cswwR_.js → p-DUVCAq-W.js} +4 -4
- package/dist/components/{p-D5cswwR_.js.map → p-DUVCAq-W.js.map} +1 -1
- package/dist/components/{p-CCMS_IvP.js → p-DY8RJZmx.js} +14 -14
- package/dist/components/{p-CCMS_IvP.js.map → p-DY8RJZmx.js.map} +1 -1
- package/dist/components/{p-Lx7PwjNC.js → p-Da83lhqi.js} +14 -10
- package/dist/components/p-Da83lhqi.js.map +1 -0
- package/dist/components/{p-5I9rEf1F.js → p-Dprl580c.js} +21 -9
- package/dist/components/p-Dprl580c.js.map +1 -0
- package/dist/components/{p-ChCIuJg0.js → p-DqEap43n.js} +3 -3
- package/dist/components/{p-ChCIuJg0.js.map → p-DqEap43n.js.map} +1 -1
- package/dist/components/{p-DEArdusa.js → p-DqW1sDWy.js} +14 -14
- package/dist/components/{p-DEArdusa.js.map → p-DqW1sDWy.js.map} +1 -1
- package/dist/components/{p-Bsc25fvn.js → p-DxGzQ3Lc.js} +4 -4
- package/dist/components/{p-Bsc25fvn.js.map → p-DxGzQ3Lc.js.map} +1 -1
- package/dist/components/{p-YrxZXlJ1.js → p-DyE9zKT7.js} +14 -6
- package/dist/components/p-DyE9zKT7.js.map +1 -0
- package/dist/components/p-Ovur85Of.js.map +1 -1
- package/dist/components/{p-D0PX7hpQ.js → p-Yrg6B_xb.js} +4 -4
- package/dist/components/{p-D0PX7hpQ.js.map → p-Yrg6B_xb.js.map} +1 -1
- package/dist/components/{p-CwKpqq1h.js → p-gEso0FtC.js} +14 -14
- package/dist/components/{p-CwKpqq1h.js.map → p-gEso0FtC.js.map} +1 -1
- package/dist/components/{p-DmenFbeU.js → p-i5LoDKK3.js} +4 -4
- package/dist/components/{p-DmenFbeU.js.map → p-i5LoDKK3.js.map} +1 -1
- package/dist/components/{p-BpXqwLh3.js → p-iwXLSFLX.js} +4 -4
- package/dist/components/{p-BpXqwLh3.js.map → p-iwXLSFLX.js.map} +1 -1
- package/dist/components/{p-CozH0k34.js → p-o7kGA8FM.js} +5 -5
- package/dist/components/{p-CozH0k34.js.map → p-o7kGA8FM.js.map} +1 -1
- package/dist/components/{p-C4Go47Ak.js → p-ozlIyuZ1.js} +6 -6
- package/dist/components/{p-C4Go47Ak.js.map → p-ozlIyuZ1.js.map} +1 -1
- package/dist/components/{p-BNMjQBPT.js → p-tfo7xItm.js} +14 -14
- package/dist/components/{p-BNMjQBPT.js.map → p-tfo7xItm.js.map} +1 -1
- package/dist/components/{p-DWqgZCMh.js → p-vV0A8m2N.js} +3 -3
- package/dist/components/{p-DWqgZCMh.js.map → p-vV0A8m2N.js.map} +1 -1
- package/dist/esm/{index-CjW5NqdW.js → index-BzcAlD18.js} +14 -3
- package/dist/esm/index-BzcAlD18.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{ls-document-options_39.entry.js → ls-document-options_40.entry.js} +1548 -22
- package/dist/esm/ls-document-options_40.entry.js.map +1 -0
- package/dist/esm/ls-document-viewer.js +3 -3
- package/dist/esm/ls-field-properties-dropdown.entry.js +1 -1
- package/dist/esm/ls-formfield.entry.js +1 -1
- package/dist/esm/ls-number-input_5.entry.js +1 -1
- package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -1
- package/dist/ls-document-viewer/{p-646325ae.entry.js → p-0b9016eb.entry.js} +2 -2
- package/dist/ls-document-viewer/{p-d2df7881.entry.js → p-3dae15c9.entry.js} +2 -2
- package/dist/ls-document-viewer/p-BzcAlD18.js +3 -0
- package/dist/ls-document-viewer/p-BzcAlD18.js.map +1 -0
- package/dist/ls-document-viewer/{p-d7109cdd.entry.js → p-be7a03ca.entry.js} +2 -2
- package/dist/ls-document-viewer/{p-063541d8.entry.js → p-e45016a5.entry.js} +6 -6
- package/dist/ls-document-viewer/p-e45016a5.entry.js.map +1 -0
- package/dist/types/components/ls-document-options/ls-document-options.d.ts +1 -0
- package/dist/types/components/ls-document-viewer/validator.d.ts +2 -2
- package/dist/types/components/ls-field-content/ls-field-content.d.ts +1 -0
- package/dist/types/components/ls-tooltip/ls-tooltip.d.ts +2 -4
- package/dist/types/components/ls-validation-tag/ls-validation-tag.d.ts +1 -0
- package/dist/types/components.d.ts +2 -2
- package/package.json +1 -1
- package/dist/cjs/index-DruwRbfl.js.map +0 -1
- package/dist/cjs/ls-document-options_39.cjs.entry.js.map +0 -1
- package/dist/cjs/ls-tooltip.cjs.entry.js +0 -1575
- package/dist/cjs/ls-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/ls-tooltip.entry.cjs.js.map +0 -1
- package/dist/components/p-5I9rEf1F.js.map +0 -1
- package/dist/components/p-BWLt02JN.js.map +0 -1
- package/dist/components/p-Lx7PwjNC.js.map +0 -1
- package/dist/components/p-YrxZXlJ1.js.map +0 -1
- package/dist/esm/index-CjW5NqdW.js.map +0 -1
- package/dist/esm/ls-document-options_39.entry.js.map +0 -1
- package/dist/esm/ls-tooltip.entry.js.map +0 -1
- package/dist/ls-document-viewer/ls-tooltip.entry.esm.js.map +0 -1
- package/dist/ls-document-viewer/p-063541d8.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-CjW5NqdW.js +0 -3
- package/dist/ls-document-viewer/p-CjW5NqdW.js.map +0 -1
- package/dist/ls-document-viewer/p-fee3434a.entry.js +0 -2
- package/dist/ls-document-viewer/p-fee3434a.entry.js.map +0 -1
- /package/dist/ls-document-viewer/{p-646325ae.entry.js.map → p-0b9016eb.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-d2df7881.entry.js.map → p-3dae15c9.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-d7109cdd.entry.js.map → p-be7a03ca.entry.js.map} +0 -0
|
@@ -4,8 +4,11 @@ export class LsValidationTag {
|
|
|
4
4
|
status = 'Invalid';
|
|
5
5
|
validationErrors = [];
|
|
6
6
|
isExpanded = false;
|
|
7
|
+
validateChange(newValue) {
|
|
8
|
+
console.log(newValue);
|
|
9
|
+
}
|
|
7
10
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: '81f7243eb9ac2099bac672ce98f26e4da6bb8fed' }, h("div", { key: '33e7174b2032cc6282f84b26a4f943e1baac6dd9', class: `valid-label ${this.validationErrors.length === 0 ? 'valid' : 'invalid'}`, onClick: this.validationErrors.length && (() => (this.isExpanded = !this.isExpanded)) }, this.validationErrors.length === 0 ? 'Ready to Send' : `Requires Fields`, this.validationErrors.length > 0 && h("div", { key: '6b820c6a30a090d656c5a6a06b66c8c3cda8fa2c', class: 'field-counter' }, this.validationErrors.length), this.validationErrors.length > 0 && (h("ls-icon", { key: 'b4404382dea2c84c042dd1b330b2f0be823b643e', name: this.isExpanded ? 'chevron-up' : 'chevron-down', style: { cursor: 'pointer', scale: '0.60', margin: '0 -0.25rem' } }))), this.isExpanded && this.validationErrors.length !== 0 && (h("div", { key: 'eca209963d0acadbef0764909f15bb4a0350f4c6', class: 'field-dropdown' }, h("div", { key: '5a57240e85f7826049b12bda0f2cbfc72599c6b9', class: 'dropdown-header' }, h("h2", { key: '34bb3c2fac8a092cc424a4ebdce49137d6dcd384' }, "Signature Fields Required"), h("p", { key: 'cedda6d0383cd029efdd33fa7edfcd22c0cf65e2' }, this.validationErrors.length, " ", this.validationErrors.length === 1 ? 'Recipient needs a Signature Field' : 'Recipients need Signature Fields', " placed for them")), this.validationErrors.map((field, idx) => {
|
|
9
12
|
const signerIndex = field?.role?.signerIndex ? field?.role?.signerIndex % 100 : null;
|
|
10
13
|
const pallette = defaultRolePalette[signerIndex || field?.element?.signer || 0];
|
|
11
14
|
return (h("div", { key: idx, class: 'required-field', style: {
|
|
@@ -15,7 +18,7 @@ export class LsValidationTag {
|
|
|
15
18
|
'--field-text-color': pallette.s70,
|
|
16
19
|
'--field-text-color-hover': pallette.s80,
|
|
17
20
|
'--field-border-color-hover': pallette.s60,
|
|
18
|
-
} }, h("div", { class: 'required-field-items-left' }, h("div", { class: 'dot', style: { background: pallette.s60 } }), field?.role && (h("div", { class: 'required-field-items-left' }, h("p", { style: { color: pallette.s80 } }, field.role?.name || `Signer ${field?.role?.signerIndex + 1}`), h("div", { class: 'role-label', style: { background: pallette.s30, color: pallette.s70 } }, field.role?.roleType.toLowerCase() || `Signer ${field.role?.signerIndex + 1}`))), field?.element && (h(h.Fragment, null, h("p", { style: { color: pallette.s80 } }, field.role?.name || `${field.element.formElementType} ${field?.element?.label + 1}`), h("div", { class: 'role-label', style: { background: pallette.s30, color: pallette.s70 } }, field.description))))
|
|
21
|
+
} }, h("div", { class: 'required-field-items-left' }, h("div", { class: 'dot', style: { background: pallette.s60 } }), field?.role && (h("div", { class: 'required-field-items-left' }, h("p", { style: { color: pallette.s80 } }, field.role?.name || `Signer ${field?.role?.signerIndex + 1}`), h("div", { class: 'role-label', style: { background: pallette.s30, color: pallette.s70 } }, field.role?.roleType.toLowerCase() || `Signer ${field.role?.signerIndex + 1}`))), field?.element && (h(h.Fragment, null, h("p", { style: { color: pallette.s80 } }, field.role?.name || `${field.element.formElementType} ${field?.element?.label + 1}`), h("div", { class: 'role-label', style: { background: pallette.s30, color: pallette.s70 } }, field.description))))));
|
|
19
22
|
})))));
|
|
20
23
|
}
|
|
21
24
|
static get is() { return "ls-validation-tag"; }
|
|
@@ -99,5 +102,11 @@ export class LsValidationTag {
|
|
|
99
102
|
}
|
|
100
103
|
};
|
|
101
104
|
}
|
|
105
|
+
static get watchers() {
|
|
106
|
+
return [{
|
|
107
|
+
"propName": "validationErrors",
|
|
108
|
+
"methodName": "validateChange"
|
|
109
|
+
}];
|
|
110
|
+
}
|
|
102
111
|
}
|
|
103
112
|
//# sourceMappingURL=ls-validation-tag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls-validation-tag.js","sourceRoot":"","sources":["../../../src/components/ls-validation-tag/ls-validation-tag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"ls-validation-tag.js","sourceRoot":"","sources":["../../../src/components/ls-validation-tag/ls-validation-tag.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Host, Prop, Watch, h } from '@stencil/core';\nimport { defaultRolePalette } from '../ls-document-viewer/defaultPalette';\nimport { ValidationError } from '../../types/ValidationError';\n\n@Component({\n tag: 'ls-validation-tag',\n styleUrl: 'ls-validation-tag.css',\n shadow: true,\n})\nexport class LsValidationTag {\n @Prop({ mutable: true }) status: string = 'Invalid';\n @Prop({ mutable: true }) validationErrors: ValidationError[] = [];\n @Prop({ mutable: true }) isExpanded: boolean = false;\n\n @Watch('validationErrors')\n validateChange(newValue: ValidationError[]) {\n console.log(newValue); \n }\n\n render() {\n return (\n <Host>\n <div\n class={`valid-label ${this.validationErrors.length === 0 ? 'valid' : 'invalid'}`}\n onClick={this.validationErrors.length && (() => (this.isExpanded = !this.isExpanded))}\n >\n {this.validationErrors.length === 0 ? 'Ready to Send' : `Requires Fields`}\n {this.validationErrors.length > 0 && <div class={'field-counter'}>{this.validationErrors.length}</div>}\n {this.validationErrors.length > 0 && (\n <ls-icon name={this.isExpanded ? 'chevron-up' : 'chevron-down'} style={{ cursor: 'pointer', scale: '0.60', margin: '0 -0.25rem' }} />\n )}\n </div>\n {this.isExpanded && this.validationErrors.length !== 0 && (\n <div class={'field-dropdown'}>\n <div class={'dropdown-header'}>\n <h2>Signature Fields Required</h2>\n <p>\n {this.validationErrors.length} {this.validationErrors.length === 1 ? 'Recipient needs a Signature Field' : 'Recipients need Signature Fields'} placed for them\n </p>\n </div>\n {this.validationErrors.map((field, idx) => {\n const signerIndex = field?.role?.signerIndex ? field?.role?.signerIndex % 100 : null;\n const pallette = defaultRolePalette[signerIndex || field?.element?.signer || 0];\n\n return (\n <div\n key={idx}\n class={'required-field'}\n style={{\n '--field-background': pallette.s10,\n '--field-border-color': pallette.s10,\n '--field-background-hover': pallette.s20,\n '--field-text-color': pallette.s70,\n '--field-text-color-hover': pallette.s80,\n '--field-border-color-hover': pallette.s60,\n }}\n >\n <div class={'required-field-items-left'}>\n <div class={'dot'} style={{ background: pallette.s60 }} />\n {field?.role && (\n <div class={'required-field-items-left'}>\n <p style={{ color: pallette.s80 }}>{field.role?.name || `Signer ${field?.role?.signerIndex + 1}`}</p>\n <div class={'role-label'} style={{ background: pallette.s30, color: pallette.s70 }}>\n {field.role?.roleType.toLowerCase() || `Signer ${field.role?.signerIndex + 1}`}\n </div>\n </div>\n )}\n {field?.element && (\n <>\n <p style={{ color: pallette.s80 }}>{field.role?.name || `${field.element.formElementType} ${field?.element?.label + 1}`}</p>\n <div class={'role-label'} style={{ background: pallette.s30, color: pallette.s70 }}>\n {field.description}\n </div>\n </>\n )}\n </div>\n </div>\n );\n })}\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as getAssetPath, r as render, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-
|
|
1
|
+
export { g as getAssetPath, r as render, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-BvHSBTD8.js';
|
|
2
2
|
|
|
3
3
|
function format(first, middle, last) {
|
|
4
4
|
return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as LsDocumentOptions$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { L as LsDocumentOptions$1, d as defineCustomElement$1 } from './p-Dprl580c.js';
|
|
2
2
|
|
|
3
3
|
const LsDocumentOptions = LsDocumentOptions$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-BvHSBTD8.js';
|
|
2
2
|
import { a as alter, o as oob, u as updateRole, c as createRole, s as swapRoles, d as deleteRole, m as matchData, g as getApiType } from './p-Ovur85Of.js';
|
|
3
|
-
import { d as defineCustomElement$
|
|
4
|
-
import { d as defineCustomElement$
|
|
5
|
-
import { d as defineCustomElement$
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$
|
|
10
|
-
import { d as defineCustomElement$
|
|
11
|
-
import { d as defineCustomElement$
|
|
12
|
-
import { d as defineCustomElement$
|
|
13
|
-
import { d as defineCustomElement$
|
|
14
|
-
import { d as defineCustomElement$
|
|
15
|
-
import { d as defineCustomElement$
|
|
16
|
-
import { d as defineCustomElement$
|
|
17
|
-
import { d as defineCustomElement$
|
|
18
|
-
import { d as defineCustomElement$
|
|
19
|
-
import { d as defineCustomElement$
|
|
20
|
-
import { d as defineCustomElement$
|
|
21
|
-
import { d as defineCustomElement$
|
|
22
|
-
import { d as defineCustomElement$
|
|
23
|
-
import { d as defineCustomElement$
|
|
24
|
-
import { d as defineCustomElement$
|
|
25
|
-
import { d as defineCustomElement$
|
|
26
|
-
import { d as defineCustomElement$
|
|
27
|
-
import { d as defineCustomElement$
|
|
28
|
-
import { d as defineCustomElement$
|
|
29
|
-
import { d as defineCustomElement$
|
|
30
|
-
import { d as defineCustomElement$
|
|
31
|
-
import { d as defineCustomElement$
|
|
32
|
-
import { d as defineCustomElement$
|
|
33
|
-
import { d as defineCustomElement$
|
|
34
|
-
import { d as defineCustomElement$
|
|
35
|
-
import { d as defineCustomElement$
|
|
36
|
-
import { d as defineCustomElement$
|
|
37
|
-
import { d as defineCustomElement$
|
|
38
|
-
import { d as defineCustomElement$
|
|
39
|
-
import { d as defineCustomElement$
|
|
40
|
-
import { d as defineCustomElement$
|
|
3
|
+
import { d as defineCustomElement$E } from './p-Dprl580c.js';
|
|
4
|
+
import { d as defineCustomElement$D } from './p-CZkgAbFI.js';
|
|
5
|
+
import { d as defineCustomElement$C } from './p-CdGtJRZm.js';
|
|
6
|
+
import { d as defineCustomElement$B } from './p-BXKYpxgM.js';
|
|
7
|
+
import { d as defineCustomElement$A } from './p-DxGzQ3Lc.js';
|
|
8
|
+
import { d as defineCustomElement$z } from './p-Da83lhqi.js';
|
|
9
|
+
import { d as defineCustomElement$y } from './p-Bxutt9rC.js';
|
|
10
|
+
import { d as defineCustomElement$x } from './p-C45TaVTh.js';
|
|
11
|
+
import { d as defineCustomElement$w } from './p-B3lY01RV.js';
|
|
12
|
+
import { d as defineCustomElement$v } from './p-9WKoGwO0.js';
|
|
13
|
+
import { d as defineCustomElement$u } from './p-C6NnNmx5.js';
|
|
14
|
+
import { d as defineCustomElement$t } from './p-B-K24bnx.js';
|
|
15
|
+
import { d as defineCustomElement$s } from './p-CzySwvIU.js';
|
|
16
|
+
import { d as defineCustomElement$r } from './p-14owczyX.js';
|
|
17
|
+
import { d as defineCustomElement$q } from './p-vV0A8m2N.js';
|
|
18
|
+
import { d as defineCustomElement$p } from './p-gEso0FtC.js';
|
|
19
|
+
import { d as defineCustomElement$o } from './p-BKNIuWRw.js';
|
|
20
|
+
import { d as defineCustomElement$n } from './p-DqW1sDWy.js';
|
|
21
|
+
import { d as defineCustomElement$m } from './p-CHN41h9u.js';
|
|
22
|
+
import { d as defineCustomElement$l } from './p-23iaNjGp.js';
|
|
23
|
+
import { d as defineCustomElement$k } from './p-C4dJ_NrC.js';
|
|
24
|
+
import { d as defineCustomElement$j } from './p-tfo7xItm.js';
|
|
25
|
+
import { d as defineCustomElement$i } from './p-DY8RJZmx.js';
|
|
26
|
+
import { d as defineCustomElement$h } from './p-DE2r5IdM.js';
|
|
27
|
+
import { d as defineCustomElement$g } from './p-6LFAGg6D.js';
|
|
28
|
+
import { d as defineCustomElement$f } from './p-Co6xLkEu.js';
|
|
29
|
+
import { d as defineCustomElement$e } from './p-DM3pnD5z.js';
|
|
30
|
+
import { d as defineCustomElement$d } from './p-iwXLSFLX.js';
|
|
31
|
+
import { d as defineCustomElement$c } from './p-DqEap43n.js';
|
|
32
|
+
import { d as defineCustomElement$b } from './p-o7kGA8FM.js';
|
|
33
|
+
import { d as defineCustomElement$a } from './p-ozlIyuZ1.js';
|
|
34
|
+
import { d as defineCustomElement$9 } from './p-Yrg6B_xb.js';
|
|
35
|
+
import { d as defineCustomElement$8 } from './p-BLUUNyDx.js';
|
|
36
|
+
import { d as defineCustomElement$7 } from './p-CCE9t160.js';
|
|
37
|
+
import { d as defineCustomElement$6 } from './p-BArjC51C.js';
|
|
38
|
+
import { d as defineCustomElement$5 } from './p-BcfP7mSQ.js';
|
|
39
|
+
import { d as defineCustomElement$4 } from './p-DUVCAq-W.js';
|
|
40
|
+
import { d as defineCustomElement$3 } from './p-Bt5gnPRz.js';
|
|
41
|
+
import { d as defineCustomElement$2 } from './p-DyE9zKT7.js';
|
|
41
42
|
|
|
42
43
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
43
44
|
|
|
@@ -19851,6 +19852,8 @@ const findIn = (fields, selector, restyle = false, additive = false) => {
|
|
|
19851
19852
|
};
|
|
19852
19853
|
// Used to append new fields (dropped or loaded from template data)
|
|
19853
19854
|
function addField(frame, data) {
|
|
19855
|
+
const fields = this._template.elementConnection.templateElements;
|
|
19856
|
+
this._template = { ...this._template, elementConnection: { ...this._template.elementConnection, templateElements: [...fields, data] } };
|
|
19854
19857
|
const node = document.createElement('ls-editor-field');
|
|
19855
19858
|
node.setAttribute('type', data.formElementType);
|
|
19856
19859
|
node.setAttribute('id', 'ls-field-' + data.id);
|
|
@@ -24476,7 +24479,7 @@ function validate(t) {
|
|
|
24476
24479
|
id: tr.id,
|
|
24477
24480
|
title: 'Missing signature.',
|
|
24478
24481
|
description: `{tr.name} is missing a signature.`,
|
|
24479
|
-
role: tr
|
|
24482
|
+
role: tr,
|
|
24480
24483
|
});
|
|
24481
24484
|
}
|
|
24482
24485
|
});
|
|
@@ -24487,7 +24490,7 @@ function validate(t) {
|
|
|
24487
24490
|
id: element.id,
|
|
24488
24491
|
title: 'Missing options',
|
|
24489
24492
|
description: `Drop down field "${element.label}" is missing options.`,
|
|
24490
|
-
element: element
|
|
24493
|
+
element: element,
|
|
24491
24494
|
});
|
|
24492
24495
|
}
|
|
24493
24496
|
});
|
|
@@ -24672,13 +24675,11 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
|
|
|
24672
24675
|
mutateHandler(event) {
|
|
24673
24676
|
if (this.token && this.adapter)
|
|
24674
24677
|
event.detail.forEach(me => this.adapter.handleEvent(me, this.token).then(result => matchData.bind(this)(result)));
|
|
24675
|
-
this.validationErrors = validate.bind(this)(this._template);
|
|
24676
24678
|
}
|
|
24677
24679
|
// Updates are internal event between LS controls not to be confused with mutate
|
|
24678
24680
|
updateHandler(event) {
|
|
24679
24681
|
if (event.detail)
|
|
24680
24682
|
event.detail.forEach(fx => this.syncChange(fx));
|
|
24681
|
-
this.validationErrors = validate.bind(this)(this._template);
|
|
24682
24683
|
}
|
|
24683
24684
|
// Updates are internal event between LS controls not to be confused with mutate
|
|
24684
24685
|
addParticpantHandler(event) {
|
|
@@ -24825,7 +24826,6 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
|
|
|
24825
24826
|
elementConnection: { ...newTemplate.elementConnection, templateElements: fields },
|
|
24826
24827
|
roles: preparedRoles,
|
|
24827
24828
|
};
|
|
24828
|
-
console.log(this._template);
|
|
24829
24829
|
}
|
|
24830
24830
|
/**
|
|
24831
24831
|
* Render the page based on pageNumber
|
|
@@ -24911,6 +24911,8 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
|
|
|
24911
24911
|
}
|
|
24912
24912
|
else if (update.action === 'delete') {
|
|
24913
24913
|
const fi = this.component.shadowRoot.getElementById('ls-field-' + update.data.id);
|
|
24914
|
+
const fields = this._template.elementConnection.templateElements;
|
|
24915
|
+
this._template = { ...this._template, elementConnection: { ...this._template.elementConnection, templateElements: fields.filter(f => f.id !== update.data.id) } };
|
|
24914
24916
|
this.component.shadowRoot.getElementById('ls-document-frame').removeChild(fi);
|
|
24915
24917
|
this.selected = [];
|
|
24916
24918
|
}
|
|
@@ -24918,6 +24920,7 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
|
|
|
24918
24920
|
console.warn('Unrecognised action, check Legalesign documentation. `create`, `update` and `delete` allowed.');
|
|
24919
24921
|
}
|
|
24920
24922
|
}
|
|
24923
|
+
this.validationErrors = validate.bind(this)(this._template);
|
|
24921
24924
|
}
|
|
24922
24925
|
initViewer() {
|
|
24923
24926
|
// Generate a canvas to draw the background PDF on.
|
|
@@ -24984,7 +24987,7 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
|
|
|
24984
24987
|
});
|
|
24985
24988
|
}
|
|
24986
24989
|
render() {
|
|
24987
|
-
return (h(Host, { key: '
|
|
24990
|
+
return (h(Host, { key: '331bbb6ee8979812cac17c61037085c18ffe3ea4' }, h(h.Fragment, null, this.isLoading && h("ls-page-loader", { key: '2fdab395bd9707041e35176bdbcc898e61dcf640' }), h("div", { key: '676168eb9b02205325cb53c68bda22783669380c', class: 'validation-tag-wrapper' }, h("ls-validation-tag", { key: '62867096f5fda376314bb7915b81e7006d95c492', validationErrors: this.validationErrors })), h("div", { key: '898f1dcc9a33dc8fa3181e409364b575bb923904', class: "page-header" }, h("p", { key: 'd5d0041f19aa10609d02a81412a46cf0c45376bb', class: "header-text-1" }, "Template Creation"), h("p", { key: '08f9eb736cd04e1c4cd867f4882f03d3d1899e39' }, "/"), h("p", { key: '039a5d1475d4ee606b8f11cc1f49fcdcfe309d30', class: "header-text-2" }, this._template?.title)), h("form", { key: 'c4455c35ff74b2ea43adc7e298c46d7db22dc964', id: "ls-editor-form" }, this.showtoolbox === true ? (h("div", { id: "ls-left-box", class: "leftBox" }, h("div", { class: !this.selected || this.selected.length === 0 ? 'left-box-inner' : 'hidden' }, h("ls-feature-column", { onManage: manager => {
|
|
24988
24991
|
if (manager.detail === 'document') {
|
|
24989
24992
|
var documentManager = this.component.shadowRoot.getElementById('ls-document-options');
|
|
24990
24993
|
documentManager.template = this._template;
|
|
@@ -24998,17 +25001,17 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
|
|
|
24998
25001
|
this.handleSelectedField.bind(this)(event);
|
|
24999
25002
|
} })) : (h("ls-toolbox-field", { elementType: "auto sign", formElementType: "auto sign", label: "Auto Sign", defaultHeight: 27, defaultWidth: 120, validation: 3000, icon: "auto-sign", signer: this.signer, onSelected: event => {
|
|
25000
25003
|
this.handleSelectedField.bind(this)(event);
|
|
25001
|
-
} })), h("ls-toolbox-field", { elementType: "
|
|
25002
|
-
this.handleSelectedField.bind(this)(event);
|
|
25003
|
-
} }), h("ls-toolbox-field", { elementType: "date", formElementType: "date", label: "Date", defaultHeight: 27, defaultWidth: 80, validation: 2, icon: "calender", signer: this.signer, onSelected: event => {
|
|
25004
|
+
} })), h("ls-toolbox-field", { elementType: "text", formElementType: "text", label: "Text", defaultHeight: 27, defaultWidth: 100, validation: 0, icon: "text", signer: this.signer, onSelected: event => {
|
|
25004
25005
|
this.handleSelectedField.bind(this)(event);
|
|
25005
25006
|
} }), h("ls-toolbox-field", { elementType: "signing date", formElementType: "signing date", label: "Signing Date", defaultHeight: 27, defaultWidth: 120, validation: 30, icon: "auto-date", signer: this.signer, onSelected: event => {
|
|
25006
25007
|
this.handleSelectedField.bind(this)(event);
|
|
25008
|
+
} }), h("ls-toolbox-field", { elementType: "date", formElementType: "date", label: "Date", defaultHeight: 27, defaultWidth: 80, validation: 2, icon: "calender", signer: this.signer, onSelected: event => {
|
|
25009
|
+
this.handleSelectedField.bind(this)(event);
|
|
25007
25010
|
} }), h("ls-toolbox-field", { elementType: "email", formElementType: "email", label: "Email", defaultHeight: 27, defaultWidth: 120, validation: 1, icon: "at-symbol", signer: this.signer, onSelected: event => {
|
|
25008
25011
|
this.handleSelectedField.bind(this)(event);
|
|
25009
|
-
} }), h("ls-toolbox-field", { elementType: "
|
|
25012
|
+
} }), h("ls-toolbox-field", { elementType: "initials", formElementType: "initials", label: "Initials", defaultHeight: 27, defaultWidth: 120, validation: 2000, icon: "initials", signer: this.signer, onSelected: event => {
|
|
25010
25013
|
this.handleSelectedField.bind(this)(event);
|
|
25011
|
-
} }), h("div", { class:
|
|
25014
|
+
} }), h("div", { class: "fields-box" }, h("ls-toolbox-field", { elementType: "number", formElementType: "number", label: "Number", defaultHeight: 27, defaultWidth: 80, validation: 50, icon: "hashtag", signer: this.signer, onSelected: event => {
|
|
25012
25015
|
this.handleSelectedField.bind(this)(event);
|
|
25013
25016
|
} }), h("ls-toolbox-field", { elementType: "dropdown", formElementType: "dropdown", label: "Dropdown", defaultHeight: 27, defaultWidth: 80, validation: 20, icon: "hashtag", signer: this.signer, onSelected: event => {
|
|
25014
25017
|
this.handleSelectedField.bind(this)(event);
|
|
@@ -25020,10 +25023,10 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
|
|
|
25020
25023
|
this.handleSelectedField.bind(this)(event);
|
|
25021
25024
|
} }), h("ls-toolbox-field", { elementType: "file", formElementType: "file", label: "File", defaultHeight: 27, defaultWidth: 120, validation: 74, icon: "upload", signer: this.signer, onSelected: event => {
|
|
25022
25025
|
this.handleSelectedField.bind(this)(event);
|
|
25023
|
-
} }))))
|
|
25026
|
+
} })))), h("ls-participant-manager", { id: "ls-participant-manager", class: this.manager === 'participant' ? 'toolbox' : 'hidden', editor: this }), h("ls-document-options", { id: "ls-document-options", class: this.manager === 'document' ? 'toolbox' : 'hidden' })), !this.displayTable && (h("div", { class: this.selected.length > 0 ? 'field-properties-outer' : 'hidden' }, h("div", { class: 'properties-header' }, h("div", { class: 'properties-header-icon' }, h("ls-icon", { name: "pre-filled-content" })), h("h1", { class: 'properties-header-title' }, "Field Properties"), h("button", { class: 'tertiaryGrey', onClick: e => {
|
|
25024
25027
|
this.selected = [];
|
|
25025
25028
|
e.preventDefault();
|
|
25026
|
-
} }, h("ls-icon", { name: "x", size: "20" }))), h("ls-field-properties", { id: "my-field-panel" }), h("slot", null))))) : (h(h.Fragment, null)), h("ls-toolbar", { key: '
|
|
25029
|
+
} }, h("ls-icon", { name: "x", size: "20" }))), h("ls-field-properties", { id: "my-field-panel" }), h("slot", null))))) : (h(h.Fragment, null)), h("ls-toolbar", { key: '8c4b8034e7ffed516af95db5f10cf4ada95dcbdb', id: "ls-toolbar", template: this._template, editor: this, groupInfo: this.groupInfo }), h("div", { key: 'f387d5bc8389c756ed527b5a3b90f4622b3cc97c', id: "ls-mid-area" }, h("div", { key: '670fef66b54c73e52b707fc27e6cd058765c2dd2', class: 'document-frame-wrapper', id: "document-frame-wrapper" }, h("div", { key: '2321a7a20cbd67b5e55607bd54b0bfb8fb5c2dc8', id: "ls-document-frame" }, h("canvas", { key: '76ec82c4ae65781013f12fa382affd327c1271f2', id: "pdf-canvas", class: this.displayTable || this.isLoading ? 'hidden' : '' }), h("ls-editor-table", { key: 'a8ec99154542ae3d0290eb3c33d88e5c96cff78e', editor: this, class: this.displayTable ? '' : 'hidden' }), h("div", { key: '74d7d28664675bfe3c0b178f783fcfe155ac4544', id: "ls-box-selector" }))), h("ls-statusbar", { key: '44c7a537634f5ea25028942223a850804d0f9639', editor: this }))))));
|
|
25027
25030
|
}
|
|
25028
25031
|
static get watchers() { return {
|
|
25029
25032
|
"mode": ["modeHandler"],
|
|
@@ -25068,7 +25071,7 @@ function defineCustomElement$1() {
|
|
|
25068
25071
|
if (typeof customElements === "undefined") {
|
|
25069
25072
|
return;
|
|
25070
25073
|
}
|
|
25071
|
-
const components = ["ls-document-viewer", "ls-document-options", "ls-editor-field", "ls-editor-table", "ls-feature-column", "ls-field-alignment", "ls-field-content", "ls-field-dimensions", "ls-field-distribute", "ls-field-footer", "ls-field-format", "ls-field-placement", "ls-field-properties", "ls-field-properties-advanced", "ls-field-properties-autosign", "ls-field-properties-container", "ls-field-properties-date", "ls-field-properties-email", "ls-field-properties-file", "ls-field-properties-general", "ls-field-properties-image", "ls-field-properties-multiple", "ls-field-properties-number", "ls-field-properties-signature", "ls-field-properties-text", "ls-field-size", "ls-field-type-display", "ls-icon", "ls-input-wrapper", "ls-page-loader", "ls-participant-card", "ls-participant-manager", "ls-participant-select", "ls-props-section", "ls-statusbar", "ls-toggle", "ls-toolbar", "ls-toolbox-field", "ls-validation-tag"];
|
|
25074
|
+
const components = ["ls-document-viewer", "ls-document-options", "ls-editor-field", "ls-editor-table", "ls-feature-column", "ls-field-alignment", "ls-field-content", "ls-field-dimensions", "ls-field-distribute", "ls-field-footer", "ls-field-format", "ls-field-placement", "ls-field-properties", "ls-field-properties-advanced", "ls-field-properties-autosign", "ls-field-properties-container", "ls-field-properties-date", "ls-field-properties-email", "ls-field-properties-file", "ls-field-properties-general", "ls-field-properties-image", "ls-field-properties-multiple", "ls-field-properties-number", "ls-field-properties-signature", "ls-field-properties-text", "ls-field-size", "ls-field-type-display", "ls-icon", "ls-input-wrapper", "ls-page-loader", "ls-participant-card", "ls-participant-manager", "ls-participant-select", "ls-props-section", "ls-statusbar", "ls-toggle", "ls-toolbar", "ls-toolbox-field", "ls-tooltip", "ls-validation-tag"];
|
|
25072
25075
|
components.forEach(tagName => { switch (tagName) {
|
|
25073
25076
|
case "ls-document-viewer":
|
|
25074
25077
|
if (!customElements.get(tagName)) {
|
|
@@ -25077,185 +25080,190 @@ function defineCustomElement$1() {
|
|
|
25077
25080
|
break;
|
|
25078
25081
|
case "ls-document-options":
|
|
25079
25082
|
if (!customElements.get(tagName)) {
|
|
25080
|
-
defineCustomElement$
|
|
25083
|
+
defineCustomElement$E();
|
|
25081
25084
|
}
|
|
25082
25085
|
break;
|
|
25083
25086
|
case "ls-editor-field":
|
|
25084
25087
|
if (!customElements.get(tagName)) {
|
|
25085
|
-
defineCustomElement$
|
|
25088
|
+
defineCustomElement$D();
|
|
25086
25089
|
}
|
|
25087
25090
|
break;
|
|
25088
25091
|
case "ls-editor-table":
|
|
25089
25092
|
if (!customElements.get(tagName)) {
|
|
25090
|
-
defineCustomElement$
|
|
25093
|
+
defineCustomElement$C();
|
|
25091
25094
|
}
|
|
25092
25095
|
break;
|
|
25093
25096
|
case "ls-feature-column":
|
|
25094
25097
|
if (!customElements.get(tagName)) {
|
|
25095
|
-
defineCustomElement$
|
|
25098
|
+
defineCustomElement$B();
|
|
25096
25099
|
}
|
|
25097
25100
|
break;
|
|
25098
25101
|
case "ls-field-alignment":
|
|
25099
25102
|
if (!customElements.get(tagName)) {
|
|
25100
|
-
defineCustomElement$
|
|
25103
|
+
defineCustomElement$A();
|
|
25101
25104
|
}
|
|
25102
25105
|
break;
|
|
25103
25106
|
case "ls-field-content":
|
|
25104
25107
|
if (!customElements.get(tagName)) {
|
|
25105
|
-
defineCustomElement$
|
|
25108
|
+
defineCustomElement$z();
|
|
25106
25109
|
}
|
|
25107
25110
|
break;
|
|
25108
25111
|
case "ls-field-dimensions":
|
|
25109
25112
|
if (!customElements.get(tagName)) {
|
|
25110
|
-
defineCustomElement$
|
|
25113
|
+
defineCustomElement$y();
|
|
25111
25114
|
}
|
|
25112
25115
|
break;
|
|
25113
25116
|
case "ls-field-distribute":
|
|
25114
25117
|
if (!customElements.get(tagName)) {
|
|
25115
|
-
defineCustomElement$
|
|
25118
|
+
defineCustomElement$x();
|
|
25116
25119
|
}
|
|
25117
25120
|
break;
|
|
25118
25121
|
case "ls-field-footer":
|
|
25119
25122
|
if (!customElements.get(tagName)) {
|
|
25120
|
-
defineCustomElement$
|
|
25123
|
+
defineCustomElement$w();
|
|
25121
25124
|
}
|
|
25122
25125
|
break;
|
|
25123
25126
|
case "ls-field-format":
|
|
25124
25127
|
if (!customElements.get(tagName)) {
|
|
25125
|
-
defineCustomElement$
|
|
25128
|
+
defineCustomElement$v();
|
|
25126
25129
|
}
|
|
25127
25130
|
break;
|
|
25128
25131
|
case "ls-field-placement":
|
|
25129
25132
|
if (!customElements.get(tagName)) {
|
|
25130
|
-
defineCustomElement$
|
|
25133
|
+
defineCustomElement$u();
|
|
25131
25134
|
}
|
|
25132
25135
|
break;
|
|
25133
25136
|
case "ls-field-properties":
|
|
25134
25137
|
if (!customElements.get(tagName)) {
|
|
25135
|
-
defineCustomElement$
|
|
25138
|
+
defineCustomElement$t();
|
|
25136
25139
|
}
|
|
25137
25140
|
break;
|
|
25138
25141
|
case "ls-field-properties-advanced":
|
|
25139
25142
|
if (!customElements.get(tagName)) {
|
|
25140
|
-
defineCustomElement$
|
|
25143
|
+
defineCustomElement$s();
|
|
25141
25144
|
}
|
|
25142
25145
|
break;
|
|
25143
25146
|
case "ls-field-properties-autosign":
|
|
25144
25147
|
if (!customElements.get(tagName)) {
|
|
25145
|
-
defineCustomElement$
|
|
25148
|
+
defineCustomElement$r();
|
|
25146
25149
|
}
|
|
25147
25150
|
break;
|
|
25148
25151
|
case "ls-field-properties-container":
|
|
25149
25152
|
if (!customElements.get(tagName)) {
|
|
25150
|
-
defineCustomElement$
|
|
25153
|
+
defineCustomElement$q();
|
|
25151
25154
|
}
|
|
25152
25155
|
break;
|
|
25153
25156
|
case "ls-field-properties-date":
|
|
25154
25157
|
if (!customElements.get(tagName)) {
|
|
25155
|
-
defineCustomElement$
|
|
25158
|
+
defineCustomElement$p();
|
|
25156
25159
|
}
|
|
25157
25160
|
break;
|
|
25158
25161
|
case "ls-field-properties-email":
|
|
25159
25162
|
if (!customElements.get(tagName)) {
|
|
25160
|
-
defineCustomElement$
|
|
25163
|
+
defineCustomElement$o();
|
|
25161
25164
|
}
|
|
25162
25165
|
break;
|
|
25163
25166
|
case "ls-field-properties-file":
|
|
25164
25167
|
if (!customElements.get(tagName)) {
|
|
25165
|
-
defineCustomElement$
|
|
25168
|
+
defineCustomElement$n();
|
|
25166
25169
|
}
|
|
25167
25170
|
break;
|
|
25168
25171
|
case "ls-field-properties-general":
|
|
25169
25172
|
if (!customElements.get(tagName)) {
|
|
25170
|
-
defineCustomElement$
|
|
25173
|
+
defineCustomElement$m();
|
|
25171
25174
|
}
|
|
25172
25175
|
break;
|
|
25173
25176
|
case "ls-field-properties-image":
|
|
25174
25177
|
if (!customElements.get(tagName)) {
|
|
25175
|
-
defineCustomElement$
|
|
25178
|
+
defineCustomElement$l();
|
|
25176
25179
|
}
|
|
25177
25180
|
break;
|
|
25178
25181
|
case "ls-field-properties-multiple":
|
|
25179
25182
|
if (!customElements.get(tagName)) {
|
|
25180
|
-
defineCustomElement$
|
|
25183
|
+
defineCustomElement$k();
|
|
25181
25184
|
}
|
|
25182
25185
|
break;
|
|
25183
25186
|
case "ls-field-properties-number":
|
|
25184
25187
|
if (!customElements.get(tagName)) {
|
|
25185
|
-
defineCustomElement$
|
|
25188
|
+
defineCustomElement$j();
|
|
25186
25189
|
}
|
|
25187
25190
|
break;
|
|
25188
25191
|
case "ls-field-properties-signature":
|
|
25189
25192
|
if (!customElements.get(tagName)) {
|
|
25190
|
-
defineCustomElement$
|
|
25193
|
+
defineCustomElement$i();
|
|
25191
25194
|
}
|
|
25192
25195
|
break;
|
|
25193
25196
|
case "ls-field-properties-text":
|
|
25194
25197
|
if (!customElements.get(tagName)) {
|
|
25195
|
-
defineCustomElement$
|
|
25198
|
+
defineCustomElement$h();
|
|
25196
25199
|
}
|
|
25197
25200
|
break;
|
|
25198
25201
|
case "ls-field-size":
|
|
25199
25202
|
if (!customElements.get(tagName)) {
|
|
25200
|
-
defineCustomElement$
|
|
25203
|
+
defineCustomElement$g();
|
|
25201
25204
|
}
|
|
25202
25205
|
break;
|
|
25203
25206
|
case "ls-field-type-display":
|
|
25204
25207
|
if (!customElements.get(tagName)) {
|
|
25205
|
-
defineCustomElement$
|
|
25208
|
+
defineCustomElement$f();
|
|
25206
25209
|
}
|
|
25207
25210
|
break;
|
|
25208
25211
|
case "ls-icon":
|
|
25209
25212
|
if (!customElements.get(tagName)) {
|
|
25210
|
-
defineCustomElement$
|
|
25213
|
+
defineCustomElement$e();
|
|
25211
25214
|
}
|
|
25212
25215
|
break;
|
|
25213
25216
|
case "ls-input-wrapper":
|
|
25214
25217
|
if (!customElements.get(tagName)) {
|
|
25215
|
-
defineCustomElement$
|
|
25218
|
+
defineCustomElement$d();
|
|
25216
25219
|
}
|
|
25217
25220
|
break;
|
|
25218
25221
|
case "ls-page-loader":
|
|
25219
25222
|
if (!customElements.get(tagName)) {
|
|
25220
|
-
defineCustomElement$
|
|
25223
|
+
defineCustomElement$c();
|
|
25221
25224
|
}
|
|
25222
25225
|
break;
|
|
25223
25226
|
case "ls-participant-card":
|
|
25224
25227
|
if (!customElements.get(tagName)) {
|
|
25225
|
-
defineCustomElement$
|
|
25228
|
+
defineCustomElement$b();
|
|
25226
25229
|
}
|
|
25227
25230
|
break;
|
|
25228
25231
|
case "ls-participant-manager":
|
|
25229
25232
|
if (!customElements.get(tagName)) {
|
|
25230
|
-
defineCustomElement$
|
|
25233
|
+
defineCustomElement$a();
|
|
25231
25234
|
}
|
|
25232
25235
|
break;
|
|
25233
25236
|
case "ls-participant-select":
|
|
25234
25237
|
if (!customElements.get(tagName)) {
|
|
25235
|
-
defineCustomElement$
|
|
25238
|
+
defineCustomElement$9();
|
|
25236
25239
|
}
|
|
25237
25240
|
break;
|
|
25238
25241
|
case "ls-props-section":
|
|
25239
25242
|
if (!customElements.get(tagName)) {
|
|
25240
|
-
defineCustomElement$
|
|
25243
|
+
defineCustomElement$8();
|
|
25241
25244
|
}
|
|
25242
25245
|
break;
|
|
25243
25246
|
case "ls-statusbar":
|
|
25244
25247
|
if (!customElements.get(tagName)) {
|
|
25245
|
-
defineCustomElement$
|
|
25248
|
+
defineCustomElement$7();
|
|
25246
25249
|
}
|
|
25247
25250
|
break;
|
|
25248
25251
|
case "ls-toggle":
|
|
25249
25252
|
if (!customElements.get(tagName)) {
|
|
25250
|
-
defineCustomElement$
|
|
25253
|
+
defineCustomElement$6();
|
|
25251
25254
|
}
|
|
25252
25255
|
break;
|
|
25253
25256
|
case "ls-toolbar":
|
|
25254
25257
|
if (!customElements.get(tagName)) {
|
|
25255
|
-
defineCustomElement$
|
|
25258
|
+
defineCustomElement$5();
|
|
25256
25259
|
}
|
|
25257
25260
|
break;
|
|
25258
25261
|
case "ls-toolbox-field":
|
|
25262
|
+
if (!customElements.get(tagName)) {
|
|
25263
|
+
defineCustomElement$4();
|
|
25264
|
+
}
|
|
25265
|
+
break;
|
|
25266
|
+
case "ls-tooltip":
|
|
25259
25267
|
if (!customElements.get(tagName)) {
|
|
25260
25268
|
defineCustomElement$3();
|
|
25261
25269
|
}
|