legalesign-document-viewer 0.1.4 → 0.2.0
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_36.cjs.entry.js → ls-document-options_37.cjs.entry.js} +81 -52
- package/dist/cjs/ls-document-options_37.cjs.entry.js.map +1 -0
- package/dist/cjs/ls-document-viewer.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/groupActions.js +1 -1
- package/dist/collection/components/ls-document-viewer/adapter/groupActions.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/adapter/templateActions.js +2 -2
- package/dist/collection/components/ls-document-viewer/adapter/templateActions.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/editorUtils.js +1 -2
- package/dist/collection/components/ls-document-viewer/editorUtils.js.map +1 -1
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.css +370 -0
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js +107 -0
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js.map +1 -0
- package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js +1 -1
- package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js.map +1 -1
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js +2 -2
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js.map +1 -1
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js +2 -2
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js.map +1 -1
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js +2 -2
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js.map +1 -1
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js +2 -2
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js.map +1 -1
- package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js +2 -2
- package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js.map +1 -1
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js +4 -4
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js.map +1 -1
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js +2 -2
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js.map +1 -1
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js +2 -2
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js.map +1 -1
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js +2 -2
- package/dist/collection/components/ls-field-size/ls-field-size.js +1 -1
- package/dist/collection/components/ls-formfield/inputs/ls-number-input/ls-number-input.js +1 -1
- package/dist/collection/components/ls-formfield/inputs/ls-radio-input/ls-radio-input.js +1 -1
- package/dist/collection/components/ls-formfield/inputs/ls-select-input/ls-select-input.js +1 -1
- package/dist/collection/components/ls-formfield/inputs/ls-text-input/ls-text-input.js +1 -1
- package/dist/collection/components/ls-formfield/inputs/ls-textarea-input/ls-textarea-input.js +1 -1
- package/dist/collection/components/ls-formfield/ls-formfield.js +2 -2
- package/dist/collection/components/ls-icon/ls-icon.js +1 -1
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.js +2 -2
- package/dist/collection/components/ls-participant-select/ls-participant-select.js +8 -8
- package/dist/collection/components/ls-statusbar/ls-statusbar.js +3 -3
- package/dist/collection/components/ls-toggle/ls-toggle.js +1 -1
- package/dist/collection/components/ls-toolbar/ls-toolbar.js +1 -1
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js +1 -1
- package/dist/components/ls-document-options.js +1 -1
- package/dist/components/ls-document-viewer.js +56 -50
- package/dist/components/ls-document-viewer.js.map +1 -1
- package/dist/components/ls-editor-field.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-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.d.ts +11 -0
- package/dist/components/ls-field-properties-advanced.js +9 -0
- package/dist/components/ls-field-properties-advanced.js.map +1 -0
- package/dist/components/ls-field-properties-autosign.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-field-size.js +1 -1
- package/dist/components/ls-formfield.js +1 -1
- package/dist/components/ls-icon.js +1 -1
- package/dist/components/ls-number-input.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-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/{p-BwymH8px.js → p-1Ir9-yQU.js} +31 -25
- package/dist/components/p-1Ir9-yQU.js.map +1 -0
- package/dist/components/{p-CQr7nmKb.js → p-3LU2FV3W.js} +3 -3
- package/dist/components/{p-CQr7nmKb.js.map → p-3LU2FV3W.js.map} +1 -1
- package/dist/components/{p-CNDZcJZC.js → p-B7VyU7YH.js} +23 -11
- package/dist/components/p-B7VyU7YH.js.map +1 -0
- package/dist/components/{p-BM-Xo6D5.js → p-BCpsA9BY.js} +7 -7
- package/dist/components/{p-BM-Xo6D5.js.map → p-BCpsA9BY.js.map} +1 -1
- package/dist/components/{p-9Z-GK0Bd.js → p-BPkbTOIU.js} +3 -3
- package/dist/components/{p-9Z-GK0Bd.js.map → p-BPkbTOIU.js.map} +1 -1
- package/dist/components/{p-CdEexh_g.js → p-BSN2cMdj.js} +18 -12
- package/dist/components/p-BSN2cMdj.js.map +1 -0
- package/dist/components/{p-Dc4pAKEn.js → p-Bby5tjrS.js} +4 -4
- package/dist/components/{p-Dc4pAKEn.js.map → p-Bby5tjrS.js.map} +1 -1
- package/dist/components/{p-V-QJ5j_K.js → p-Bh-iiZW1.js} +5 -5
- package/dist/components/{p-V-QJ5j_K.js.map → p-Bh-iiZW1.js.map} +1 -1
- package/dist/components/{p-BdJAlep4.js → p-BneR1hef.js} +10 -10
- package/dist/components/{p-BdJAlep4.js.map → p-BneR1hef.js.map} +1 -1
- package/dist/components/{p-8Yvey07o.js → p-Bpzk1RMu.js} +4 -4
- package/dist/components/{p-8Yvey07o.js.map → p-Bpzk1RMu.js.map} +1 -1
- package/dist/components/{p-DeaQdy4U.js → p-BsqbS8f_.js} +4 -4
- package/dist/components/{p-DeaQdy4U.js.map → p-BsqbS8f_.js.map} +1 -1
- package/dist/components/{p-rAwrmsb9.js → p-C6YMMVJ1.js} +23 -11
- package/dist/components/p-C6YMMVJ1.js.map +1 -0
- package/dist/components/p-CfCokEUT.js +53 -0
- package/dist/components/p-CfCokEUT.js.map +1 -0
- package/dist/components/{p-DxZasSi4.js → p-CtMHOHAp.js} +4 -4
- package/dist/components/{p-DxZasSi4.js.map → p-CtMHOHAp.js.map} +1 -1
- package/dist/components/{p-BVXVFpxy.js → p-CttUZd3c.js} +3 -3
- package/dist/components/{p-BVXVFpxy.js.map → p-CttUZd3c.js.map} +1 -1
- package/dist/components/{p-DOULSSR_.js → p-CuNrTyGb.js} +11 -11
- package/dist/components/{p-DOULSSR_.js.map → p-CuNrTyGb.js.map} +1 -1
- package/dist/components/{p-DsRfjAri.js → p-DCLBmOtj.js} +23 -11
- package/dist/components/p-DCLBmOtj.js.map +1 -0
- package/dist/components/{p-ChfFmzMa.js → p-DEE854iZ.js} +13 -13
- package/dist/components/{p-ChfFmzMa.js.map → p-DEE854iZ.js.map} +1 -1
- package/dist/components/{p-BuX-_d2U.js → p-DVz19y7K.js} +3 -3
- package/dist/components/{p-BuX-_d2U.js.map → p-DVz19y7K.js.map} +1 -1
- package/dist/components/{p-DKOj6SYm.js → p-DY_A9zAm.js} +4 -4
- package/dist/components/{p-DKOj6SYm.js.map → p-DY_A9zAm.js.map} +1 -1
- package/dist/components/{p-DkIrni0i.js → p-DasXNgMG.js} +3 -3
- package/dist/components/{p-DkIrni0i.js.map → p-DasXNgMG.js.map} +1 -1
- package/dist/components/{p-CixKuBuL.js → p-DjavAQqZ.js} +3 -3
- package/dist/components/{p-CixKuBuL.js.map → p-DjavAQqZ.js.map} +1 -1
- package/dist/components/{p-Cotorbsf.js → p-DoywjJAr.js} +3 -3
- package/dist/components/{p-Cotorbsf.js.map → p-DoywjJAr.js.map} +1 -1
- package/dist/components/{p-BPk0SaUp.js → p-DqJ_uIFZ.js} +3 -4
- package/dist/components/p-DqJ_uIFZ.js.map +1 -0
- package/dist/components/{p-CoH616os.js → p-Dsf8KDrt.js} +6 -6
- package/dist/components/{p-CoH616os.js.map → p-Dsf8KDrt.js.map} +1 -1
- package/dist/components/{p-DlVSEuX7.js → p-DzHh5tyo.js} +23 -11
- package/dist/components/p-DzHh5tyo.js.map +1 -0
- package/dist/components/{p-vll2Fgrb.js → p-DzmtJl3e.js} +3 -3
- package/dist/components/{p-vll2Fgrb.js.map → p-DzmtJl3e.js.map} +1 -1
- package/dist/components/{p-CiKsFis4.js → p-Dzn5xAM4.js} +18 -6
- package/dist/components/p-Dzn5xAM4.js.map +1 -0
- package/dist/components/{p-TVDCAFDo.js → p-EsA1p6L3.js} +17 -11
- package/dist/components/{p-CNDZcJZC.js.map → p-EsA1p6L3.js.map} +1 -1
- package/dist/components/{p-CdL5cKO8.js → p-JBc2BCIT.js} +4 -4
- package/dist/components/{p-CdL5cKO8.js.map → p-JBc2BCIT.js.map} +1 -1
- package/dist/components/{p-DLF5DiJI.js → p-aOAZ6c8y.js} +10 -10
- package/dist/components/{p-DLF5DiJI.js.map → p-aOAZ6c8y.js.map} +1 -1
- package/dist/components/{p-C9d-OiqW.js → p-iC6XYfS_.js} +3 -3
- package/dist/components/{p-C9d-OiqW.js.map → p-iC6XYfS_.js.map} +1 -1
- package/dist/components/{p-DIeSYRR1.js → p-lTOSc-NN.js} +4 -4
- package/dist/components/{p-DIeSYRR1.js.map → p-lTOSc-NN.js.map} +1 -1
- package/dist/components/{p-BFSBsh85.js → p-p3xY_X0j.js} +3 -3
- package/dist/components/{p-BFSBsh85.js.map → p-p3xY_X0j.js.map} +1 -1
- package/dist/components/{p-eh-K0ick.js → p-rEZh-cMt.js} +9 -9
- package/dist/components/{p-eh-K0ick.js.map → p-rEZh-cMt.js.map} +1 -1
- package/dist/components/{p-BLkddRKK.js → p-ucaurEVy.js} +23 -11
- package/dist/components/p-ucaurEVy.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{ls-document-options_36.entry.js → ls-document-options_37.entry.js} +81 -53
- package/dist/esm/ls-document-options_37.entry.js.map +1 -0
- package/dist/esm/ls-document-viewer.js +1 -1
- package/dist/ls-document-viewer/index.esm.js.map +1 -1
- package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -1
- package/dist/ls-document-viewer/ls-document-viewer.esm.js.map +1 -1
- package/dist/ls-document-viewer/{p-022e8e6d.entry.js → p-79589774.entry.js} +5 -5
- package/dist/ls-document-viewer/p-79589774.entry.js.map +1 -0
- package/dist/types/components/ls-field-properties-advanced/ls-field-properties-advanced.d.ts +12 -0
- package/dist/types/components.d.ts +35 -2
- package/package.json +1 -1
- package/dist/cjs/ls-document-options_36.cjs.entry.js.map +0 -1
- package/dist/components/p-BLkddRKK.js.map +0 -1
- package/dist/components/p-BPk0SaUp.js.map +0 -1
- package/dist/components/p-BwymH8px.js.map +0 -1
- package/dist/components/p-CdEexh_g.js.map +0 -1
- package/dist/components/p-CiKsFis4.js.map +0 -1
- package/dist/components/p-DlVSEuX7.js.map +0 -1
- package/dist/components/p-DsRfjAri.js.map +0 -1
- package/dist/components/p-TVDCAFDo.js.map +0 -1
- package/dist/components/p-rAwrmsb9.js.map +0 -1
- package/dist/esm/ls-document-options_36.entry.js.map +0 -1
- package/dist/ls-document-viewer/clsx-ChV9xqsO.js.map +0 -1
- package/dist/ls-document-viewer/defaultPalette-C00GqV9f.js.map +0 -1
- package/dist/ls-document-viewer/editorUtils-CHIJ1jsX.js +0 -196
- package/dist/ls-document-viewer/editorUtils-CHIJ1jsX.js.map +0 -1
- package/dist/ls-document-viewer/editorUtils-DsvPQaAu.js +0 -197
- package/dist/ls-document-viewer/editorUtils-DsvPQaAu.js.map +0 -1
- package/dist/ls-document-viewer/index-Db-CNFwu.js.map +0 -1
- package/dist/ls-document-viewer/ls-document-viewer.entry.js +0 -25033
- package/dist/ls-document-viewer/ls-editor-field.entry.js +0 -133
- package/dist/ls-document-viewer/ls-field-properties-date.entry.js +0 -34
- package/dist/ls-document-viewer/ls-field-properties-email.entry.js +0 -34
- package/dist/ls-document-viewer/ls-field-properties-file.entry.js +0 -34
- package/dist/ls-document-viewer/ls-field-properties-general.entry.js +0 -32
- package/dist/ls-document-viewer/ls-field-properties-image.entry.js +0 -34
- package/dist/ls-document-viewer/ls-field-properties-number.entry.js +0 -34
- package/dist/ls-document-viewer/ls-field-properties-text.entry.js +0 -34
- package/dist/ls-document-viewer/ls-statusbar.entry.js +0 -57
- package/dist/ls-document-viewer/p-022e8e6d.entry.js.map +0 -1
package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.css
ADDED
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 1rem;
|
|
5
|
+
width: 100%;
|
|
6
|
+
position: relative;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
* {
|
|
10
|
+
margin: 0;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.field-set {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: 1rem;
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ls-field-properties-section {
|
|
22
|
+
display: flex;
|
|
23
|
+
position: relative;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
gap: 0.5rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.row {
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.multi-button-group-row {
|
|
35
|
+
display: flex;
|
|
36
|
+
gap: 0.5rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ls-field-properties-section-text {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
gap: 0.25rem;
|
|
43
|
+
padding: 0.25rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.ls-field-properties-section-title {
|
|
47
|
+
color: var(--gray-90, #5e6066);
|
|
48
|
+
font-size: 1rem;
|
|
49
|
+
font-style: normal;
|
|
50
|
+
font-weight: 500;
|
|
51
|
+
line-height: 1.25rem; /* 142.857% */
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ls-field-properties-section-description {
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
color: var(--gray-80, #6c6e73);
|
|
57
|
+
text-overflow: ellipsis;
|
|
58
|
+
font-size: 0.75rem;
|
|
59
|
+
font-style: normal;
|
|
60
|
+
font-weight: 400;
|
|
61
|
+
line-height: 0.75rem; /* 120% */
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.input-row {
|
|
65
|
+
display: flex;
|
|
66
|
+
gap: 0.5rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.input-row .input-wrapper input {
|
|
70
|
+
width: 9.313rem;
|
|
71
|
+
max-width: 9.313rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Global Styles */
|
|
75
|
+
|
|
76
|
+
p {
|
|
77
|
+
color: var(--gray-80, #6c6e73);
|
|
78
|
+
font-family: var(--font-family);
|
|
79
|
+
font-size: var(--text-sm);
|
|
80
|
+
font-style: normal;
|
|
81
|
+
font-weight: 400;
|
|
82
|
+
line-height: var(--text-sm-line-height);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
a {
|
|
86
|
+
color: var(--primary-60, #4456f6);
|
|
87
|
+
font-size: var(--text-sm);
|
|
88
|
+
font-style: normal;
|
|
89
|
+
font-weight: 400;
|
|
90
|
+
line-height: var(--text-sm-line-height);
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
a:hover {
|
|
95
|
+
text-decoration: underline;
|
|
96
|
+
color: var(--primary-70, #2134dc);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.button-link,
|
|
100
|
+
.button-link:hover {
|
|
101
|
+
all: unset;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
select {
|
|
105
|
+
appearance: none;
|
|
106
|
+
height: 36px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.input-wrapper {
|
|
110
|
+
position: relative;
|
|
111
|
+
width: 100%;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
#selectorIcon {
|
|
115
|
+
position: absolute;
|
|
116
|
+
top: 50%;
|
|
117
|
+
right: 0.675rem;
|
|
118
|
+
transform: translateY(-50%);
|
|
119
|
+
pointer-events: none;
|
|
120
|
+
color: var(--gray-80, #6c6e73);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
#selectLeadingIcon {
|
|
124
|
+
position: absolute;
|
|
125
|
+
top: 50%;
|
|
126
|
+
left: 0.675rem;
|
|
127
|
+
transform: translateY(-50%);
|
|
128
|
+
pointer-events: none;
|
|
129
|
+
color: var(--gray-80, #6c6e73);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
#selectLeadingIconDisabled {
|
|
133
|
+
position: absolute;
|
|
134
|
+
top: 50%;
|
|
135
|
+
left: 0.675rem;
|
|
136
|
+
transform: translateY(-50%);
|
|
137
|
+
pointer-events: none;
|
|
138
|
+
color: var(--gray-50, #d8d9dc);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
.has-leading-icon {
|
|
143
|
+
padding-left: 2.5rem;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
input,
|
|
147
|
+
select,
|
|
148
|
+
textarea {
|
|
149
|
+
border: 1px solid var(--gray-40, #d8d9dc);
|
|
150
|
+
box-shadow: 0 1px 0.125rem rgba(0, 0, 0, 0.05);
|
|
151
|
+
padding: 0.5rem 0.75rem;
|
|
152
|
+
font-family: var(--font-family);
|
|
153
|
+
font-size: var(--text-sm);
|
|
154
|
+
border-radius: 0.5rem;
|
|
155
|
+
color: var(--gray-100, #45484d);
|
|
156
|
+
font-weight: 400;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
input::placeholder,
|
|
160
|
+
select::placeholder,
|
|
161
|
+
textarea::placeholder {
|
|
162
|
+
color: var(--gray-60, #afb0b2);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
input:hover:not(:disabled),
|
|
166
|
+
select:hover:not(:disabled),
|
|
167
|
+
textarea:hover:not(:disabled) {
|
|
168
|
+
border-color: var(--gray-50, #c8c9cc);
|
|
169
|
+
background-color: var(--white, #fff);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
input:focus:not(:disabled),
|
|
173
|
+
select:focus:not(:disabled),
|
|
174
|
+
textarea:focus:not(:disabled) {
|
|
175
|
+
outline: none;
|
|
176
|
+
box-shadow: 0 0 0 0.25rem var(--primary-40, #79adfc);
|
|
177
|
+
border-color: var(--primary-60, #4456f6);
|
|
178
|
+
background-color: var(--white, #fff);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
input:active:not(:disabled),
|
|
182
|
+
select:active:not(:disabled),
|
|
183
|
+
textarea:active:not(:disabled) {
|
|
184
|
+
border-color: var(--primary-50, #5185ff);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
input:disabled,
|
|
188
|
+
select:disabled,
|
|
189
|
+
textarea:disabled {
|
|
190
|
+
cursor: not-allowed;
|
|
191
|
+
background-color: var(--gray-10, #f7f8fa);
|
|
192
|
+
color: var(--gray-50, #d8d9dc);
|
|
193
|
+
box-shadow: none;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
input[type='checkbox'] {
|
|
197
|
+
appearance: none;
|
|
198
|
+
position: relative;
|
|
199
|
+
height: 1rem;
|
|
200
|
+
width: 1rem;
|
|
201
|
+
padding: 0.25rem;
|
|
202
|
+
border-radius: var(--radius-sm);
|
|
203
|
+
border: 1px solid #d1d5db;
|
|
204
|
+
background-color: #ffffff;
|
|
205
|
+
cursor: pointer;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
input[type='checkbox']:checked,
|
|
209
|
+
input[type='checkbox'].indeterminate {
|
|
210
|
+
background-color: var(--primary-60, #4456f6);
|
|
211
|
+
border: none;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
input[type='checkbox']:checked::after {
|
|
215
|
+
content: '';
|
|
216
|
+
position: absolute;
|
|
217
|
+
top: 45%;
|
|
218
|
+
left: 50%;
|
|
219
|
+
transform: translate(-50%, -50%) rotate(-45deg) scale(-1, 1);
|
|
220
|
+
width: 0.5rem;
|
|
221
|
+
height: 0.25rem;
|
|
222
|
+
border-bottom: 0.125rem solid white;
|
|
223
|
+
border-right: 0.125rem solid white;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
input[type='checkbox'].indeterminate::after {
|
|
227
|
+
content: '';
|
|
228
|
+
position: absolute;
|
|
229
|
+
top: 50%;
|
|
230
|
+
left: 50%;
|
|
231
|
+
transform: translate(-50%, -50%);
|
|
232
|
+
width: 0.5rem;
|
|
233
|
+
height: 0.125rem;
|
|
234
|
+
background-color: white;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
input[type='checkbox']:checked:hover,
|
|
238
|
+
input[type='checkbox'].indeterminate:hover {
|
|
239
|
+
background-color: var(--primary-70, #2134dc);
|
|
240
|
+
border: none;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
input[type='checkbox']:hover {
|
|
244
|
+
border: 1px solid #9ca3af;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
input[type='checkbox']:focus,
|
|
248
|
+
input[type='checkbox']:active {
|
|
249
|
+
outline: none;
|
|
250
|
+
box-shadow: 0 0 0 0.25rem var(--primary-20, #c7ddff);
|
|
251
|
+
background-color: #f0f4f8;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
input[type='checkbox']:disabled {
|
|
255
|
+
background-color: #f3f4f6;
|
|
256
|
+
outline: none;
|
|
257
|
+
cursor: not-allowed;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
input[type='checkbox']:disabled:checked {
|
|
261
|
+
background-color: #e5e7eb;
|
|
262
|
+
border: none;
|
|
263
|
+
outline: none;
|
|
264
|
+
cursor: not-allowed;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.checkbox-container {
|
|
268
|
+
display: flex;
|
|
269
|
+
gap: 0.5rem;
|
|
270
|
+
width: 100%;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.checkbox-label {
|
|
274
|
+
color: var(--gray-100, #45484d);
|
|
275
|
+
font-size: 1rem;
|
|
276
|
+
font-style: normal;
|
|
277
|
+
font-weight: 400;
|
|
278
|
+
line-height: 1rem;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.form-label {
|
|
282
|
+
color: var(--gray-100, #45484d);
|
|
283
|
+
font-size: 1rem;
|
|
284
|
+
font-style: normal;
|
|
285
|
+
font-weight: 500;
|
|
286
|
+
line-height: 1.5rem;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.form-field {
|
|
290
|
+
display: flex;
|
|
291
|
+
flex-direction: column;
|
|
292
|
+
gap: 0.25rem;
|
|
293
|
+
width: 100%;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.loading-box {
|
|
297
|
+
display: flex;
|
|
298
|
+
justify-content: center;
|
|
299
|
+
align-items: center;
|
|
300
|
+
width: 100%;
|
|
301
|
+
height: 100vh;
|
|
302
|
+
color: var(--primary-60, #0c7cba);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
button {
|
|
306
|
+
border: 0;
|
|
307
|
+
appearance: button;
|
|
308
|
+
cursor: pointer;
|
|
309
|
+
display: inline-flex;
|
|
310
|
+
align-items: center;
|
|
311
|
+
justify-content: center;
|
|
312
|
+
border-radius: var(--radius-lg);
|
|
313
|
+
background-color: var(--primary-60, #4456f6);
|
|
314
|
+
color: white;
|
|
315
|
+
text-transform: capitalize;
|
|
316
|
+
min-height: 2.25rem;
|
|
317
|
+
min-width: 2.25rem;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
button.tertiaryGrey {
|
|
321
|
+
border: 1px solid var(--gray-40, #d8d9dc);
|
|
322
|
+
background-color: white;
|
|
323
|
+
color: var(--gray-80, #787a80);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
button.tertiaryGrey:hover {
|
|
327
|
+
border: 1px solid var(--gray-50, #c8c9cc);
|
|
328
|
+
background: var(--gray-10, #f7f8fa);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.button-group {
|
|
332
|
+
display: flex;
|
|
333
|
+
border-radius: 0.5rem;
|
|
334
|
+
border: 1px solid var(--gray-30, #e0e2e5);
|
|
335
|
+
background: var(--white, #ffffff);
|
|
336
|
+
overflow: clip;
|
|
337
|
+
width: 100%;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.button-group button {
|
|
341
|
+
display: flex;
|
|
342
|
+
width: 100%;
|
|
343
|
+
background: transparent;
|
|
344
|
+
border-radius: unset;
|
|
345
|
+
padding: 0.25rem 0.75rem;
|
|
346
|
+
min-width: 2.156rem;
|
|
347
|
+
color: var(--gray-80, #6c6e73);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.button-group button:disabled {
|
|
351
|
+
background: var(--gray-10, #f7f8fa);
|
|
352
|
+
cursor: not-allowed;
|
|
353
|
+
color: var(--gray-50, #d8d9dc);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.button-group button:hover {
|
|
357
|
+
background: var(--gray-10, #f7f8fa);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.button-group > :first-child {
|
|
361
|
+
border-radius: 0.5rem 0 0 0.5rem;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.button-group > :last-child {
|
|
365
|
+
border-radius: 0 0.5rem 0.5rem 0;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.button-group > :not(:first-child) {
|
|
369
|
+
border-left: 1px solid var(--gray-30, #e0e2e5);
|
|
370
|
+
}
|
package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class LsFieldPropertiesAdvanced {
|
|
3
|
+
dataItem;
|
|
4
|
+
mutate;
|
|
5
|
+
update;
|
|
6
|
+
isSingle(dt) {
|
|
7
|
+
return dt.length === undefined;
|
|
8
|
+
}
|
|
9
|
+
isMultiple(dt) {
|
|
10
|
+
return typeof dt.length === 'number';
|
|
11
|
+
}
|
|
12
|
+
alter(diff) {
|
|
13
|
+
const singleDiff = { action: 'update', data: { ...this.dataItem, ...diff } };
|
|
14
|
+
this.dataItem = singleDiff.data;
|
|
15
|
+
this.mutate.emit([singleDiff]);
|
|
16
|
+
this.update.emit([singleDiff]);
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return (h(Host, { key: '9db4cd78401c5785435d9aafc8cb3c7fb614b1ae' }, h("div", { key: '82cda8357b0732858290836e55ce5bb7d056645d', class: 'ls-field-properties-section' }, h("div", { key: '000e5c487b233dc2d874953cd57d5f852adbdf30', class: 'ls-field-properties-section-text' }, h("p", { key: '7374ba4511b5006d0ed055d05ede48d7c55ca118', class: 'ls-field-properties-section-title' }, "Field Order"), h("p", { key: '87730310fd37317853db9eb87537cfdbac2a9949', class: 'ls-field-properties-section-description' }, "Determines what order fields will be filled in by the user")), h("div", { key: '233cf8923cb1aa40691a56c7c7a54d01077c7c12', class: 'input-row' }, h("div", { key: '2a914e37afb6894e22859cf520edad73fc75d77c', class: 'input-wrapper' }, h("input", { key: '0d3a4cdde9f5d42268aa474ec921f91a8b8d9f6f', value: this.dataItem?.fieldOrder, width: "30", placeholder: "eg. Sign Here", onChange: e => this.alter({ fieldOrder: e.target.value }) })))), h("div", { key: 'cec3927f2d17d7a4b381e76d7a054935681d9aad', class: 'ls-field-properties-section' }, h("div", { key: 'de16a720b2f10f77ee04082c5cb3ec518aa29714', class: 'ls-field-properties-section-text' }, h("p", { key: 'b07443dcc8497b3a5b2ac5663eec2fd1b17b4b3d', class: 'ls-field-properties-section-title' }, "Ref Name")), h("div", { key: 'cd9958ce25c3526d97cc8c1cd99c1156f6cd0fe3', class: 'input-row' }, h("div", { key: '9d2cfec0632235ff8fe4c632b864a7f2afae4963', class: 'input-wrapper' }, h("input", { key: '2bef08755600cb235894ffb17f73055b7ea5be0b', value: this.dataItem?.link, width: "30", placeholder: "", onChange: e => this.alter({ link: e.target.value }) }))), h("div", { key: '3cc0bc3d7e8df8a1120f4b800a12b30232b27249', class: 'ls-field-properties-section-text' }, h("p", { key: '57965a81f5f99a4bbb395c04e6be010f15080d09', class: 'ls-field-properties-section-title' }, "Link Field")), h("div", { key: '07f606e7eb6a11462423560d7181955190a2fc18', class: 'input-row' }, h("div", { key: '2d88a8a25866da1fd2c53b6b3677e134bf7efc53', class: 'input-wrapper' }, h("input", { key: '07e7be923fc6e227497b88bd1a8218f1d7d58f34', value: this.dataItem?.logicGroup, width: "30", placeholder: "", onChange: e => this.alter({ logicGroup: e.target.value }) }))), h("div", { key: '2380c71f3f1829d55ba5d9d872f186e4d7f36f81', class: 'ls-field-properties-section-text' }, h("p", { key: '041c472bfce4eb2f7b6a6d8b120d6b7e60b8cb30', class: 'ls-field-properties-section-title' }, "Link Value")), h("div", { key: '0738a56b9bfd6c61380988db1bd30000d2abe629', class: 'input-row' }, h("div", { key: '30616a2de6d2f6e0fa4469fe4b82fb02e572a002', class: 'input-wrapper' }, h("input", { key: '38248c99c7cfb3b310e0098ddd856eebd3ec682f', value: this.dataItem?.logicAction, width: "30", placeholder: "", onChange: e => this.alter({ logicAction: e.target.value }) }))))));
|
|
20
|
+
}
|
|
21
|
+
static get is() { return "ls-field-properties-advanced"; }
|
|
22
|
+
static get encapsulation() { return "shadow"; }
|
|
23
|
+
static get originalStyleUrls() {
|
|
24
|
+
return {
|
|
25
|
+
"$": ["ls-field-properties-advanced.css"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get styleUrls() {
|
|
29
|
+
return {
|
|
30
|
+
"$": ["ls-field-properties-advanced.css"]
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
static get properties() {
|
|
34
|
+
return {
|
|
35
|
+
"dataItem": {
|
|
36
|
+
"type": "unknown",
|
|
37
|
+
"attribute": "data-item",
|
|
38
|
+
"mutable": true,
|
|
39
|
+
"complexType": {
|
|
40
|
+
"original": "LSApiElement",
|
|
41
|
+
"resolved": "{ id: string; align: string; ax?: number; ay?: number; bx?: number; by?: number; left?: number; top?: number; height?: number; width?: number; elementType: string; fieldOrder?: number; fontName: string; fontSize: number; hideBorder?: boolean; label?: string; labelExtra?: string; helpText?: string; optional?: boolean; options?: string; page?: number; role?: LSApiRole; substantive?: boolean; validation?: number; value?: string; logicGroup?: string; logicAction?: number; mapTo?: string; signer: number; link?: string; formElementType?: \"number\" | \"image\" | \"text\" | \"signature\" | \"date\" | \"regex\" | \"file\" | \"autodate\" | \"autosign\" | \"initials\" | \"email\" | \"checkbox\"; roleObject?: LSApiRole; cstyle?: any; divStyle?: any; objectHeight?: string; pageDimensions?: { height: number; width: number; }; templateId?: string; }",
|
|
42
|
+
"references": {
|
|
43
|
+
"LSApiElement": {
|
|
44
|
+
"location": "import",
|
|
45
|
+
"path": "../../types/LSApiElement",
|
|
46
|
+
"id": "src/types/LSApiElement.ts::LSApiElement"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"required": false,
|
|
51
|
+
"optional": false,
|
|
52
|
+
"docs": {
|
|
53
|
+
"tags": [],
|
|
54
|
+
"text": ""
|
|
55
|
+
},
|
|
56
|
+
"getter": false,
|
|
57
|
+
"setter": false
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
static get events() {
|
|
62
|
+
return [{
|
|
63
|
+
"method": "mutate",
|
|
64
|
+
"name": "mutate",
|
|
65
|
+
"bubbles": true,
|
|
66
|
+
"cancelable": true,
|
|
67
|
+
"composed": true,
|
|
68
|
+
"docs": {
|
|
69
|
+
"tags": [],
|
|
70
|
+
"text": ""
|
|
71
|
+
},
|
|
72
|
+
"complexType": {
|
|
73
|
+
"original": "LSMutateEvent[]",
|
|
74
|
+
"resolved": "LSMutateEvent[]",
|
|
75
|
+
"references": {
|
|
76
|
+
"LSMutateEvent": {
|
|
77
|
+
"location": "import",
|
|
78
|
+
"path": "../../types/LSMutateEvent",
|
|
79
|
+
"id": "src/types/LSMutateEvent.ts::LSMutateEvent"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}, {
|
|
84
|
+
"method": "update",
|
|
85
|
+
"name": "update",
|
|
86
|
+
"bubbles": true,
|
|
87
|
+
"cancelable": true,
|
|
88
|
+
"composed": true,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": ""
|
|
92
|
+
},
|
|
93
|
+
"complexType": {
|
|
94
|
+
"original": "LSMutateEvent[]",
|
|
95
|
+
"resolved": "LSMutateEvent[]",
|
|
96
|
+
"references": {
|
|
97
|
+
"LSMutateEvent": {
|
|
98
|
+
"location": "import",
|
|
99
|
+
"path": "../../types/LSMutateEvent",
|
|
100
|
+
"id": "src/types/LSMutateEvent.ts::LSMutateEvent"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}];
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=ls-field-properties-advanced.js.map
|
package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ls-field-properties-advanced.js","sourceRoot":"","sources":["../../../src/components/ls-field-properties-advanced/ls-field-properties-advanced.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAS9E,MAAM,OAAO,yBAAyB;IACX,QAAQ,CAAe;IAOhD,MAAM,CAAgC;IAOtC,MAAM,CAAgC;IAEtC,QAAQ,CAAC,EAAiC;QACxC,OAAQ,EAAqB,CAAC,MAAM,KAAK,SAAS,CAAC;IACrD,CAAC;IAED,UAAU,CAAC,EAAiC;QAC1C,OAAO,OAAQ,EAAqB,CAAC,MAAM,KAAK,QAAQ,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,IAAY;QAChB,MAAM,UAAU,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,GAAG,IAAI,EAAkB,EAAmB,CAAC;QAC9G,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,IAAoB,CAAC;QAChD,IAAI,CAAC,MAAM,CAAC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e;wBACzB,8DAAO,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAC,IAAI,EAAC,WAAW,EAAC,EAAE,EAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,UAAU,EAAG,CAAC,CAAC,MAA2B,CAAC,KAAK,EAAE,CAAC,GAAI,CAClJ,CACF;gBAEJ,4DAAK,KAAK,EAAE,kCAAkC;oBAC9C,0DAAG,KAAK,EAAE,mCAAmC,iBAAgB,CACzD;gBACN,4DAAK,KAAK,EAAE,WAAW;oBACrB,4DAAK,KAAK,EAAE,eAAe;wBACzB,8DAAO,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAC,IAAI,EAAC,WAAW,EAAC,EAAE,EAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,WAAW,EAAG,CAAC,CAAC,MAA2B,CAAC,KAAK,EAAE,CAAC,GAAI,CACpJ,CACF,CACF,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h, Event, EventEmitter } from '@stencil/core';\nimport { LSApiElement } from '../../types/LSApiElement';\nimport { LSMutateEvent } from '../../types/LSMutateEvent'\n\n@Component({\n tag: 'ls-field-properties-advanced',\n styleUrl: 'ls-field-properties-advanced.css',\n shadow: true,\n})\nexport class LsFieldPropertiesAdvanced {\n @Prop({ mutable: true }) dataItem: LSApiElement;\n\n @Event({\n bubbles: true,\n cancelable: true,\n composed: true,\n })\n mutate: EventEmitter<LSMutateEvent[]>;\n\n @Event({\n bubbles: true,\n cancelable: true,\n composed: true,\n })\n update: EventEmitter<LSMutateEvent[]>;\n\n isSingle(dt: LSApiElement | LSApiElement[]): dt is LSApiElement {\n return (dt as LSApiElement[]).length === undefined;\n }\n\n isMultiple(dt: LSApiElement | LSApiElement[]): dt is LSApiElement[] {\n return typeof (dt as LSApiElement[]).length === 'number';\n }\n\n alter(diff: object) {\n const singleDiff = { action: 'update', data: { ...this.dataItem, ...diff } as LSApiElement } as LSMutateEvent;\n this.dataItem = singleDiff.data as LSApiElement;\n this.mutate.emit([singleDiff]);\n this.update.emit([singleDiff]);\n }\n\n render() {\n return (\n <Host>\n <div class={'ls-field-properties-section'}>\n <div class={'ls-field-properties-section-text'}>\n <p class={'ls-field-properties-section-title'}>Field Order</p>\n <p class={'ls-field-properties-section-description'}>Determines what order fields will be filled in by the user</p>\n </div>\n <div class={'input-row'}>\n <div class={'input-wrapper'}>\n <input value={this.dataItem?.fieldOrder} width=\"30\" placeholder=\"eg. Sign Here\" onChange={e => this.alter({ fieldOrder: (e.target as HTMLInputElement).value })} />\n </div>\n </div>\n </div>\n\n\n <div class={'ls-field-properties-section'}>\n <div class={'ls-field-properties-section-text'}>\n <p class={'ls-field-properties-section-title'}>Ref Name</p>\n </div>\n <div class={'input-row'}>\n <div class={'input-wrapper'}>\n <input value={this.dataItem?.link} width=\"30\" placeholder=\"\" onChange={e => this.alter({ link: (e.target as HTMLInputElement).value })} />\n </div>\n </div>\n\n <div class={'ls-field-properties-section-text'}>\n <p class={'ls-field-properties-section-title'}>Link Field</p>\n </div>\n <div class={'input-row'}>\n <div class={'input-wrapper'}>\n <input value={this.dataItem?.logicGroup} width=\"30\" placeholder=\"\" onChange={e => this.alter({ logicGroup: (e.target as HTMLInputElement).value })} />\n </div>\n </div>\n\n <div class={'ls-field-properties-section-text'}>\n <p class={'ls-field-properties-section-title'}>Link Value</p>\n </div>\n <div class={'input-row'}>\n <div class={'input-wrapper'}>\n <input value={this.dataItem?.logicAction} width=\"30\" placeholder=\"\" onChange={e => this.alter({ logicAction: (e.target as HTMLInputElement).value })} />\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
|
package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Host, h } from "@stencil/core";
|
|
|
2
2
|
export class LsFieldPropertiesAutosign {
|
|
3
3
|
dataItem;
|
|
4
4
|
render() {
|
|
5
|
-
return (h(Host, { key: '
|
|
5
|
+
return (h(Host, { key: '106baf6078e7e3fbfa113671ea875bfb0e7dc8f6' }, h("div", { key: 'b9921a07cc1d20d8c9578047c2e50f45c278447c', class: "ls-field-properties-section" }, "Self Sign Field"), h("div", { key: '1660ad7c808cb752968747bad6e38e962cc0f2be' }, "Label: ", h("input", { key: '394e6a663c8de52d332c247883d8948dce07d31b', value: this.dataItem?.label, width: "30" })), h("ls-field-dimensions", { key: '4bd5749daead65ff9adc83d10ae9b0d54e461a75', dataItem: this.dataItem }), h("ls-field-properties-advanced", { key: 'bf6097eba469cddaa68744471134724ea4e0f0ab', dataItem: this.dataItem }), h("ls-field-footer", { key: '117a7ec610671b4eac29cbfc165ecf2bac6996fe', dataItem: this.dataItem }), h("slot", { key: '05c5ca8763e0f049320bb409866c7af1bb2c49d1' })));
|
|
6
6
|
}
|
|
7
7
|
static get is() { return "ls-field-properties-autosign"; }
|
|
8
8
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls-field-properties-autosign.js","sourceRoot":"","sources":["../../../src/components/ls-field-properties-autosign/ls-field-properties-autosign.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAQzD,MAAM,OAAO,yBAAyB;IAC5B,QAAQ,CAAe;IAE9B,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAE,6BAA6B,sBAAuB;YAChE;;gBAAY,8DAAO,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,IAAI,GAAE,CAAM;YAClE,4EAAqB,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAI;YAChD,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACH","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\nimport { LSApiElement } from '../../components';\n\n@Component({\n tag: 'ls-field-properties-autosign',\n styleUrl: 'ls-field-properties-autosign.css',\n shadow: true,\n})\nexport class LsFieldPropertiesAutosign {\n @Prop() dataItem: LSApiElement;\n \n render() {\n return (\n <Host>\n <div class={\"ls-field-properties-section\"}>Self Sign Field</div>\n <div>Label: <input value={this.dataItem?.label} width=\"30\"/></div>\n <ls-field-dimensions dataItem={this.dataItem} />\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ls-field-properties-autosign.js","sourceRoot":"","sources":["../../../src/components/ls-field-properties-autosign/ls-field-properties-autosign.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAQzD,MAAM,OAAO,yBAAyB;IAC5B,QAAQ,CAAe;IAE9B,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAE,6BAA6B,sBAAuB;YAChE;;gBAAY,8DAAO,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,IAAI,GAAE,CAAM;YAClE,4EAAqB,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAI;YAChD,qFAA8B,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAI;YAExD,wEAAiB,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAI;YAC7C,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACH","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\nimport { LSApiElement } from '../../components';\n\n@Component({\n tag: 'ls-field-properties-autosign',\n styleUrl: 'ls-field-properties-autosign.css',\n shadow: true,\n})\nexport class LsFieldPropertiesAutosign {\n @Prop() dataItem: LSApiElement;\n \n render() {\n return (\n <Host>\n <div class={\"ls-field-properties-section\"}>Self Sign Field</div>\n <div>Label: <input value={this.dataItem?.label} width=\"30\"/></div>\n <ls-field-dimensions dataItem={this.dataItem} />\n <ls-field-properties-advanced dataItem={this.dataItem} />\n\n <ls-field-footer dataItem={this.dataItem} />\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -8,7 +8,7 @@ export class LsFieldPropertiesDate {
|
|
|
8
8
|
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
9
9
|
};
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: 'd1a6ba059b431d85b3906cc038e217cf4e60f8c7' }, h("div", { key: 'b750583787c40a935124c52ae0b13c2ce9ed80f2', class: 'tabs-container' }, h("button", { key: '0df286bf99ce1d3b83759090757d01fe0f119f48', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), h("button", { key: '235c07615ee0ef81753a86590bc3d5dfc8ec4532', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), h("button", { key: 'f5ebda46bc5c195d26ff0c8238d01dbf39b8f3f2', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), h("div", { key: 'fa6fbf5dddf48a1bf26dbba0e3febfcf912ac0c6', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (h("div", { class: 'field-set' }, h("ls-field-dimensions", { dataItem: this.dataItem }), h("ls-field-properties-advanced", { dataItem: this.dataItem }))) : (h("div", { class: 'field-set' }, h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), h("div", { class: 'ls-field-type-wrapper', style: {
|
|
12
12
|
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
13
13
|
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
14
14
|
} }, h("div", { class: 'ls-field-type-inner' }, h("div", { class: 'ls-field-type-icon', style: {
|
|
@@ -17,7 +17,7 @@ export class LsFieldPropertiesDate {
|
|
|
17
17
|
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
18
18
|
} }, h("ls-icon", { name: "calender", size: "20" })), h("p", { class: 'ls-field-type-name' }, "Date")))), h("div", { class: 'ls-field-properties-section row' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), h("ls-toggle", null)), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), h("div", { class: 'input-wrapper' }, h("ls-icon", { id: "selectorIcon", name: "selector" }), h("select", null, validationTypes
|
|
19
19
|
.filter(type => type.formType === 'date')
|
|
20
|
-
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), h("
|
|
20
|
+
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), h("ls-field-footer", { key: '405988b81e0c2d742f2dd5fb6ffe7693aaec8f19', dataItem: this.dataItem }), h("slot", { key: 'e90fadaf4267e49a7a65cc0c6667dfac68e384ad' })));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "ls-field-properties-date"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls-field-properties-date.js","sourceRoot":"","sources":["../../../src/components/ls-field-properties-date/ls-field-properties-date.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAOpE,MAAM,OAAO,qBAAqB;IACxB,QAAQ,CAAe;IACvB,QAAQ,GAA2C,SAAS,CAAC;IAErE,WAAW,GAAG,CAAC,KAAa,EAAE,EAAE;QAC9B,OAAO,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,kBAAkB,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,kBAAkB,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,KAAK,CAAC,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC5J,CAAC,CAAC;IAEF,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,4DAAK,KAAK,EAAE,gBAAgB;gBAC1B,+DAAQ,KAAK,EAAE,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,cAE1G;gBACT,+DAAQ,KAAK,EAAE,IAAI,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,KAAK,EAAC,IAAI,EAAC,WAAW,EAAC,eAAe,GAAG,CACzE;gBAEN,WAAK,KAAK,EAAE,6BAA6B;oBACvC,WAAK,KAAK,EAAE,kCAAkC;wBAC5C,SAAG,KAAK,EAAE,mCAAmC,qBAAoB;wBACjE,SAAG,KAAK,EAAE,yCAAyC,mEAAkE,CACjH;oBACN,WAAK,KAAK,EAAE,eAAe;wBACzB,eAAS,EAAE,EAAC,cAAc,EAAC,IAAI,EAAC,UAAU,GAAW;wBACrD,kBACG,eAAe;6BACb,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,MAAM,CAAC;6BACxC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CACX,cAAQ,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,KAAK,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,IACvE,IAAI,CAAC,WAAW,CACV,CACV,CAAC,CACG,CACL,CACF,CACF,CACP,CACG;YACN,wEAAiB,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAI;YAC5C,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\nimport { LSApiElement } from '../../components';\nimport { defaultRolePalette } from '../ls-document-viewer/defaultPalette';\nimport { validationTypes } from '../ls-document-viewer/editorUtils';\n\n@Component({\n tag: 'ls-field-properties-date',\n styleUrl: 'ls-field-properties-date.css',\n shadow: true,\n})\nexport class LsFieldPropertiesDate {\n @Prop() dataItem: LSApiElement;\n @Prop() fieldSet: 'content' | 'placement' | 'dimensions' = 'content';\n\n signerColor = (index: number) => {\n return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];\n };\n\n render() {\n return (\n <Host>\n <div class={'tabs-container'}>\n <button class={this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab'} onClick={() => (this.fieldSet = 'content')}>\n Content\n </button>\n <button class={this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab'} onClick={() => (this.fieldSet = 'placement')}>\n Placement\n </button>\n <button class={this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab'} onClick={() => (this.fieldSet = 'dimensions')}>\n Dimensions\n </button>\n </div>\n <div class={'scrolling-container'}>\n {this.fieldSet === 'placement' ? (\n <ls-field-placement dataItem={this.dataItem} />\n ) : this.fieldSet === 'dimensions' ? (\n <div class={'field-set'}>\n <ls-field-dimensions dataItem={this.dataItem} />\n <ls-field-properties-advanced dataItem={this.dataItem} />\n </div>\n ) : (\n <div class={'field-set'}>\n <div class={'ls-field-properties-section'}>\n <div class={'ls-field-properties-section-text'}>\n <p class={'ls-field-properties-section-title'}>Field Type</p>\n <p class={'ls-field-properties-section-description'}>The Field you currently have selected</p>\n </div>\n <div\n class={'ls-field-type-wrapper'}\n style={{\n border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,\n background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,\n }}\n >\n <div class={'ls-field-type-inner'}>\n <div\n class={'ls-field-type-icon'}\n style={{\n border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,\n color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,\n background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,\n }}\n >\n <ls-icon name=\"calender\" size=\"20\" />\n </div>\n <p class={'ls-field-type-name'}>Date</p>\n </div>\n </div>\n </div>\n <div class={'ls-field-properties-section row'}>\n <div class={'ls-field-properties-section-text'}>\n <p class={'ls-field-properties-section-title'}>Required Field</p>\n </div>\n <ls-toggle />\n </div>\n\n <div class={'ls-field-properties-section'}>\n <div class={'ls-field-properties-section-text'}>\n <p class={'ls-field-properties-section-title'}>Field Label</p>\n <p class={'ls-field-properties-section-description'}>Add a label to clarify the information required from the Recipient.</p>\n </div>\n <input value={this.dataItem?.label} width=\"30\" placeholder=\"eg. Sign Here\" />\n </div>\n\n <div class={'ls-field-properties-section'}>\n <div class={'ls-field-properties-section-text'}>\n <p class={'ls-field-properties-section-title'}>Content Format</p>\n <p class={'ls-field-properties-section-description'}>Select the specific format you want the Recipient to enter..</p>\n </div>\n <div class={'input-wrapper'}>\n <ls-icon id=\"selectorIcon\" name=\"selector\"></ls-icon>\n <select>\n {validationTypes\n .filter(type => type.formType === 'date')\n .map(type => (\n <option selected={this.dataItem?.validation === type.id} value={type.value}>\n {type.description}\n </option>\n ))}\n </select>\n </div>\n </div>\n </div>\n )}\n </div>\n <ls-field-footer dataItem={this.dataItem} />\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -8,7 +8,7 @@ export class LsFieldPropertiesEmail {
|
|
|
8
8
|
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
9
9
|
};
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: 'b741906dfa72de32482b30b0d81b5abec6165e18' }, h("div", { key: '15edda534be8ae737d8cae1bfc260a93703c1c70', class: 'tabs-container' }, h("button", { key: 'a35fec9c469e66cb572f5b5de277d8a996fe415d', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), h("button", { key: '8f54db0c50fbd032d1234994fb1a827b6b6c3934', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), h("button", { key: '3f3ce8876f6c18dcc243a2b33271ce137d862665', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), h("div", { key: 'eb77f486f5903c236e3fd386686cf523ba8485bb', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (h("div", { class: 'field-set' }, h("ls-field-dimensions", { dataItem: this.dataItem }), h("ls-field-properties-advanced", { dataItem: this.dataItem }))) : (h("div", { class: 'field-set' }, h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), h("div", { class: 'ls-field-type-wrapper', style: {
|
|
12
12
|
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
13
13
|
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
14
14
|
} }, h("div", { class: 'ls-field-type-inner' }, h("div", { class: 'ls-field-type-icon', style: {
|
|
@@ -17,7 +17,7 @@ export class LsFieldPropertiesEmail {
|
|
|
17
17
|
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
18
18
|
} }, h("ls-icon", { name: "at-symbol", size: "20" })), h("p", { class: 'ls-field-type-name' }, "Email")))), h("div", { class: 'ls-field-properties-section row' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), h("ls-toggle", null)), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), h("div", { class: 'input-wrapper' }, h("ls-icon", { id: "selectorIcon", name: "selector" }), h("select", null, validationTypes
|
|
19
19
|
.filter(type => type.formType === 'email')
|
|
20
|
-
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), h("
|
|
20
|
+
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), h("ls-field-footer", { key: '8e6f1a5f663f3e4e1f581e7a564cb559d7cdfaa4', dataItem: this.dataItem }), h("slot", { key: 'd2e7f0cc1d21a60e8bed1310c9c0d622eb7b8c5b' })));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "ls-field-properties-email"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|