legalesign-document-viewer 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ls-document-options_37.cjs.entry.js +62 -54
- package/dist/cjs/ls-document-options_37.cjs.entry.js.map +1 -1
- package/dist/cjs/ls-document-viewer.cjs.js +1 -1
- package/dist/collection/components/ls-document-viewer/defaultPalette.js +34 -20
- package/dist/collection/components/ls-document-viewer/defaultPalette.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js +3 -27
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js.map +1 -1
- package/dist/collection/components/ls-editor-field/ls-editor-field.css +0 -244
- package/dist/collection/components/ls-editor-field/ls-editor-field.js +4 -23
- package/dist/collection/components/ls-editor-field/ls-editor-field.js.map +1 -1
- package/dist/collection/components/ls-participant-select/ls-participant-select.js +20 -20
- package/dist/collection/components/ls-participant-select/ls-participant-select.js.map +1 -1
- package/dist/collection/types/RoleColor.js.map +1 -1
- package/dist/components/ls-document-viewer.js +18 -24
- package/dist/components/ls-document-viewer.js.map +1 -1
- package/dist/components/ls-editor-field.js +1 -1
- package/dist/components/ls-field-properties-date.js +1 -1
- 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-participant-manager.js +1 -1
- package/dist/components/ls-participant-select.js +1 -1
- package/dist/components/ls-toolbar.js +1 -1
- package/dist/components/{p-B7VyU7YH.js → p-7mvMkVRb.js} +3 -3
- package/dist/components/{p-B7VyU7YH.js.map → p-7mvMkVRb.js.map} +1 -1
- package/dist/components/{p-DzHh5tyo.js → p-B6Dqll_2.js} +3 -3
- package/dist/components/{p-DzHh5tyo.js.map → p-B6Dqll_2.js.map} +1 -1
- package/dist/components/{p-DEE854iZ.js → p-BYkgi-J_.js} +3 -3
- package/dist/components/{p-DEE854iZ.js.map → p-BYkgi-J_.js.map} +1 -1
- package/dist/components/{p-Bh-iiZW1.js → p-BedUS-Pi.js} +3 -3
- package/dist/components/{p-Bh-iiZW1.js.map → p-BedUS-Pi.js.map} +1 -1
- package/dist/components/{p-EsA1p6L3.js → p-Bj9FzNSh.js} +3 -3
- package/dist/components/{p-EsA1p6L3.js.map → p-Bj9FzNSh.js.map} +1 -1
- package/dist/components/{p-C6YMMVJ1.js → p-BjBJRt5-.js} +3 -3
- package/dist/components/{p-C6YMMVJ1.js.map → p-BjBJRt5-.js.map} +1 -1
- package/dist/components/{p-DCLBmOtj.js → p-CE67ypMe.js} +3 -3
- package/dist/components/{p-DCLBmOtj.js.map → p-CE67ypMe.js.map} +1 -1
- package/dist/components/{p-D4JCAjlc.js → p-CbUCAzmE.js} +23 -23
- package/dist/components/p-CbUCAzmE.js.map +1 -0
- package/dist/components/{p-ucaurEVy.js → p-CuxAfM9m.js} +3 -3
- package/dist/components/{p-ucaurEVy.js.map → p-CuxAfM9m.js.map} +1 -1
- package/dist/components/p-D1OQM-9f.js +40 -0
- package/dist/components/p-D1OQM-9f.js.map +1 -0
- package/dist/components/{p-rEZh-cMt.js → p-D4doNXE5.js} +3 -3
- package/dist/components/{p-rEZh-cMt.js.map → p-D4doNXE5.js.map} +1 -1
- package/dist/components/{p-D_ZsRxGa.js → p-DYZGkZmu.js} +3 -3
- package/dist/components/{p-D_ZsRxGa.js.map → p-DYZGkZmu.js.map} +1 -1
- package/dist/components/{p-1Ir9-yQU.js → p-DqToFDz3.js} +11 -11
- package/dist/components/{p-1Ir9-yQU.js.map → p-DqToFDz3.js.map} +1 -1
- package/dist/components/{p-BSN2cMdj.js → p-LFkQIFv6.js} +3 -3
- package/dist/components/{p-BSN2cMdj.js.map → p-LFkQIFv6.js.map} +1 -1
- package/dist/components/p-ynMP52Os.js +160 -0
- package/dist/components/p-ynMP52Os.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ls-document-options_37.entry.js +62 -54
- package/dist/esm/ls-document-options_37.entry.js.map +1 -1
- package/dist/esm/ls-document-viewer.js +1 -1
- package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -1
- package/dist/ls-document-viewer/{p-3e954354.entry.js → p-0ca48927.entry.js} +5 -5
- package/dist/ls-document-viewer/p-0ca48927.entry.js.map +1 -0
- package/dist/types/components/ls-document-viewer/defaultPalette.d.ts +2 -1
- package/dist/types/components/ls-document-viewer/ls-document-viewer.d.ts +0 -5
- package/dist/types/components/ls-editor-field/ls-editor-field.d.ts +1 -2
- package/dist/types/components/ls-field-properties-date/ls-field-properties-date.d.ts +1 -1
- package/dist/types/components/ls-field-properties-email/ls-field-properties-email.d.ts +1 -1
- package/dist/types/components/ls-field-properties-file/ls-field-properties-file.d.ts +1 -1
- package/dist/types/components/ls-field-properties-general/ls-field-properties-general.d.ts +1 -1
- package/dist/types/components/ls-field-properties-image/ls-field-properties-image.d.ts +1 -1
- package/dist/types/components/ls-field-properties-multiple/ls-field-properties-multiple.d.ts +1 -1
- package/dist/types/components/ls-field-properties-number/ls-field-properties-number.d.ts +1 -1
- package/dist/types/components/ls-field-properties-signature/ls-field-properties-signature.d.ts +1 -1
- package/dist/types/components/ls-field-properties-text/ls-field-properties-text.d.ts +1 -1
- package/dist/types/components/ls-participant-manager/ls-participant-manager.d.ts +1 -1
- package/dist/types/components/ls-participant-select/ls-participant-select.d.ts +1 -1
- package/dist/types/components.d.ts +0 -12
- package/dist/types/types/RoleColor.d.ts +6 -2
- package/package.json +1 -1
- package/dist/components/p-C00GqV9f.js +0 -26
- package/dist/components/p-C00GqV9f.js.map +0 -1
- package/dist/components/p-D4JCAjlc.js.map +0 -1
- package/dist/components/p-xCgJuAC2.js +0 -162
- package/dist/components/p-xCgJuAC2.js.map +0 -1
- package/dist/ls-document-viewer/p-3e954354.entry.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-DjfDnBZ1.js';
|
|
2
|
-
import { d as defaultRolePalette } from './p-
|
|
2
|
+
import { d as defaultRolePalette } from './p-D1OQM-9f.js';
|
|
3
3
|
import { a as alter, o as oob, m as matchData, g as getApiType } from './p-DqJ_uIFZ.js';
|
|
4
4
|
import { d as defineCustomElement$B } from './p-BneR1hef.js';
|
|
5
|
-
import { d as defineCustomElement$A } from './p-
|
|
5
|
+
import { d as defineCustomElement$A } from './p-ynMP52Os.js';
|
|
6
6
|
import { d as defineCustomElement$z } from './p-C9AqDCzm.js';
|
|
7
7
|
import { d as defineCustomElement$y } from './p-DVz19y7K.js';
|
|
8
8
|
import { d as defineCustomElement$x } from './p-DzmtJl3e.js';
|
|
@@ -11,31 +11,31 @@ import { d as defineCustomElement$v } from './p-CttUZd3c.js';
|
|
|
11
11
|
import { d as defineCustomElement$u } from './p-3LU2FV3W.js';
|
|
12
12
|
import { d as defineCustomElement$t } from './p-DjavAQqZ.js';
|
|
13
13
|
import { d as defineCustomElement$s } from './p-DoywjJAr.js';
|
|
14
|
-
import { d as defineCustomElement$r } from './p-
|
|
14
|
+
import { d as defineCustomElement$r } from './p-DqToFDz3.js';
|
|
15
15
|
import { d as defineCustomElement$q } from './p-CfCokEUT.js';
|
|
16
16
|
import { d as defineCustomElement$p } from './p-Dzn5xAM4.js';
|
|
17
|
-
import { d as defineCustomElement$o } from './p-
|
|
18
|
-
import { d as defineCustomElement$n } from './p-
|
|
19
|
-
import { d as defineCustomElement$m } from './p-
|
|
20
|
-
import { d as defineCustomElement$l } from './p-
|
|
21
|
-
import { d as defineCustomElement$k } from './p-
|
|
22
|
-
import { d as defineCustomElement$j } from './p-
|
|
23
|
-
import { d as defineCustomElement$i } from './p-
|
|
24
|
-
import { d as defineCustomElement$h } from './p-
|
|
25
|
-
import { d as defineCustomElement$g } from './p-
|
|
17
|
+
import { d as defineCustomElement$o } from './p-CE67ypMe.js';
|
|
18
|
+
import { d as defineCustomElement$n } from './p-CuxAfM9m.js';
|
|
19
|
+
import { d as defineCustomElement$m } from './p-Bj9FzNSh.js';
|
|
20
|
+
import { d as defineCustomElement$l } from './p-BjBJRt5-.js';
|
|
21
|
+
import { d as defineCustomElement$k } from './p-B6Dqll_2.js';
|
|
22
|
+
import { d as defineCustomElement$j } from './p-BYkgi-J_.js';
|
|
23
|
+
import { d as defineCustomElement$i } from './p-7mvMkVRb.js';
|
|
24
|
+
import { d as defineCustomElement$h } from './p-LFkQIFv6.js';
|
|
25
|
+
import { d as defineCustomElement$g } from './p-D4doNXE5.js';
|
|
26
26
|
import { d as defineCustomElement$f } from './p-Bpzk1RMu.js';
|
|
27
27
|
import { d as defineCustomElement$e } from './p-aOAZ6c8y.js';
|
|
28
28
|
import { d as defineCustomElement$d } from './p-p3xY_X0j.js';
|
|
29
29
|
import { d as defineCustomElement$c } from './p-DY_A9zAm.js';
|
|
30
|
-
import { d as defineCustomElement$b } from './p-
|
|
31
|
-
import { d as defineCustomElement$a } from './p-
|
|
30
|
+
import { d as defineCustomElement$b } from './p-BedUS-Pi.js';
|
|
31
|
+
import { d as defineCustomElement$a } from './p-CbUCAzmE.js';
|
|
32
32
|
import { d as defineCustomElement$9 } from './p-BsqbS8f_.js';
|
|
33
33
|
import { d as defineCustomElement$8 } from './p-Bby5tjrS.js';
|
|
34
34
|
import { d as defineCustomElement$7 } from './p-BCpsA9BY.js';
|
|
35
35
|
import { d as defineCustomElement$6 } from './p-JBc2BCIT.js';
|
|
36
36
|
import { d as defineCustomElement$5 } from './p-lTOSc-NN.js';
|
|
37
37
|
import { d as defineCustomElement$4 } from './p-BPkbTOIU.js';
|
|
38
|
-
import { d as defineCustomElement$3 } from './p-
|
|
38
|
+
import { d as defineCustomElement$3 } from './p-DYZGkZmu.js';
|
|
39
39
|
import { d as defineCustomElement$2 } from './p-CtMHOHAp.js';
|
|
40
40
|
|
|
41
41
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -24583,11 +24583,6 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
|
|
|
24583
24583
|
* {boolean}
|
|
24584
24584
|
*/
|
|
24585
24585
|
toolboxFilter = null;
|
|
24586
|
-
/**
|
|
24587
|
-
* Allows you to change the colours used for each role in the template.
|
|
24588
|
-
* {SignerColor[]}
|
|
24589
|
-
*/
|
|
24590
|
-
roleColors = defaultRolePalette;
|
|
24591
24586
|
//
|
|
24592
24587
|
// --- Event Emitters --- //
|
|
24593
24588
|
//
|
|
@@ -24839,10 +24834,10 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
|
|
|
24839
24834
|
this.load();
|
|
24840
24835
|
}
|
|
24841
24836
|
signerColor = (index) => {
|
|
24842
|
-
return
|
|
24837
|
+
return defaultRolePalette[index % 100].s60 || defaultRolePalette[0].s60;
|
|
24843
24838
|
};
|
|
24844
24839
|
render() {
|
|
24845
|
-
return (h(Host, { key: '
|
|
24840
|
+
return (h(Host, { key: '859d2cc0c98f729ebacb16f36cee16dd28af7c2d' }, h(h.Fragment, null, h("div", { key: '4be8fb9ad4c7d583b474e3b23b1f1006ba1c2d08', class: "page-header" }, h("p", { key: '2cc24d403cc217a4e2f5b2ef109412a6396f2c4a', class: "header-text-1" }, "Template Creation"), h("p", { key: '3cc17aa5ef734022e85ef1e8501c9f1b22a8d5e9' }, "/"), h("p", { key: '5524c9eb62a096563eaad2f09af00c41df806ac7', class: "header-text-2" }, "Template Name")), h("form", { key: '3bc3f5317106ea2c4cabe42a70451906e0f13ac3', id: "ls-editor-form" }, this.showtoolbox === true ? (h("div", { class: "leftBox" }, h("div", { class: !this.selected || this.selected.length === 0 ? 'left-box-inner' : 'hidden' }, h("ls-feature-column", { onManage: manager => {
|
|
24846
24841
|
if (manager.detail === 'document') {
|
|
24847
24842
|
var documentManager = this.component.shadowRoot.getElementById('ls-document-options');
|
|
24848
24843
|
documentManager.template = this._template;
|
|
@@ -24855,7 +24850,7 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
|
|
|
24855
24850
|
} }), h("div", { id: "ls-toolbox", class: this.manager === 'toolbox' ? 'toolbox' : 'hidden' }, h("div", { class: "ls-editor-infobox" }, h("h2", { class: "toolbox-section-title" }, "Participant Fields"), h("p", { class: "toolbox-section-description" }, "Select and Click to place Signature fields where you\u2019d like on the Document.")), h("div", { class: "fields-box" }, this.signer > 0 ? (h("ls-toolbox-field", { elementType: "signature", formElementType: "signature", label: "Signature", defaultHeight: 27, defaultWidth: 120, validation: 0, icon: "signature", color: this.signerColor(this.signer) })) : (h("ls-toolbox-field", { elementType: "auto sign", formElementType: "auto sign", label: "Auto Sign", defaultHeight: 27, defaultWidth: 120, validation: 3000, icon: "auto-sign", color: this.signerColor(this.signer) })), h("ls-toolbox-field", { elementType: "initials", formElementType: "initials", label: "Initials", defaultHeight: 27, defaultWidth: 120, validation: 2000, icon: "initials", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "date", formElementType: "date", label: "Date", defaultHeight: 27, defaultWidth: 80, validation: 2, icon: "calender", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "signing date", formElementType: "signing date", label: "Signing Date", defaultHeight: 27, defaultWidth: 120, validation: 30, icon: "auto-date", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "email", formElementType: "email", label: "Email", defaultHeight: 27, defaultWidth: 120, validation: 1, icon: "at-symbol", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "text", formElementType: "text", label: "Text", defaultHeight: 27, defaultWidth: 100, validation: 0, icon: "text", color: this.signerColor(this.signer) }), h("div", { class: 'expand-fields-row', onClick: () => (this.expandfields = !this.expandfields) }, h("ls-icon", { name: this.expandfields ? 'expand' : 'collapse', size: "20", solid: true }), h("p", null, "More Field Types")), this.expandfields && (h("div", { class: "fields-box" }, h("ls-toolbox-field", { elementType: "number", formElementType: "number", label: "Number", defaultHeight: 27, defaultWidth: 80, validation: 50, icon: "hashtag", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "checkbox", formElementType: "checkbox", label: "Checkbox", defaultHeight: 27, defaultWidth: 27, validation: 25, icon: "check", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "regex", formElementType: "regex", label: "Regex", defaultHeight: 27, defaultWidth: 120, validation: 93, icon: "code", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "image", formElementType: "image", label: "Image", defaultHeight: 27, defaultWidth: 120, validation: 90, icon: "photograph", color: this.signerColor(this.signer) }), h("ls-toolbox-field", { elementType: "file", formElementType: "file", label: "File", defaultHeight: 27, defaultWidth: 120, validation: 74, icon: "upload", color: this.signerColor(this.signer) }))))), 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.showrightpanel && !this.displayTable && (h("div", { class: this.selected && 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 => {
|
|
24856
24851
|
this.selected = [];
|
|
24857
24852
|
e.preventDefault();
|
|
24858
|
-
} }, h("ls-icon", { name: "x", size: "20" }))), h("ls-field-properties", { id: "my-field-panel" }), h("slot", null))))) : (h(h.Fragment, null)), h("div", { key: '
|
|
24853
|
+
} }, h("ls-icon", { name: "x", size: "20" }))), h("ls-field-properties", { id: "my-field-panel" }), h("slot", null))))) : (h(h.Fragment, null)), h("div", { key: '396f65ae8dfd571d289bfc42816c040828e8fb88', id: "ls-mid-area" }, h("ls-toolbar", { key: '1a621e6b7c8dad1f0a4178f94ba9d069fb129a1d', id: "ls-toolbar", dataItem: this.selected ? this.selected.map(s => s.dataItem) : null, template: this._template }), h("div", { key: 'eae5daf190f5e3bdd39823a97cec71cfb2a0fea9', class: 'document-frame-wrapper' }, h("div", { key: 'c97bb669bffc774f5b3eb9a3a30d73929c08e3a5', class: 'spacer' }), h("div", { key: 'd0c6f96d9a08ae6c0c792e2dc0ef36ef3a631b77', id: "ls-document-frame" }, h("canvas", { key: 'efcdc3c09c8336e3be0e51afa560b3755519e308', id: "pdf-canvas", class: this.displayTable ? 'hidden' : '' }), h("ls-editor-table", { key: '298a8c1c28d7965e3a622006d2dd8de7005ba7b7', editor: this, class: this.displayTable ? '' : 'hidden' }), h("div", { key: '844cda3669af25400cc2b41094c3344c5cd60264', id: "ls-box-selector" }))), h("ls-statusbar", { key: 'a170950405cde15290542c96fcdfc0609f81a552', editor: this }))))));
|
|
24859
24854
|
}
|
|
24860
24855
|
static get watchers() { return {
|
|
24861
24856
|
"mode": ["modeHandler"],
|
|
@@ -24881,7 +24876,6 @@ const LsDocumentViewer$1 = /*@__PURE__*/ proxyCustomElement(class LsDocumentView
|
|
|
24881
24876
|
"readonly": [4],
|
|
24882
24877
|
"showtableview": [4],
|
|
24883
24878
|
"toolboxFilter": [1, "toolbox-filter"],
|
|
24884
|
-
"roleColors": [16, "role-colors"],
|
|
24885
24879
|
"_template": [32],
|
|
24886
24880
|
"_group": [32],
|
|
24887
24881
|
"selected": [32],
|