legalesign-document-viewer 0.1.3 → 0.1.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_35.cjs.entry.js → ls-document-options_36.cjs.entry.js} +437 -123
- package/dist/cjs/ls-document-options_36.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/LsDocumentAdapter.js +1 -1
- package/dist/collection/components/ls-document-viewer/adapter/LsDocumentAdapter.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/adapter/groupActions.js +96 -0
- package/dist/collection/components/ls-document-viewer/adapter/groupActions.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/templateActions.js +9 -3
- package/dist/collection/components/ls-document-viewer/adapter/templateActions.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/defaultFieldIcons.js +19 -0
- package/dist/collection/components/ls-document-viewer/defaultFieldIcons.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/editorUtils.js +30 -5
- package/dist/collection/components/ls-document-viewer/editorUtils.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js +12 -9
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js.map +1 -1
- package/dist/collection/components/ls-editor-field/ls-editor-field.js +2 -3
- package/dist/collection/components/ls-editor-field/ls-editor-field.js.map +1 -1
- package/dist/collection/components/ls-field-alignment/ls-field-alignment.css +98 -28
- package/dist/collection/components/ls-field-alignment/ls-field-alignment.js +26 -20
- package/dist/collection/components/ls-field-alignment/ls-field-alignment.js.map +1 -1
- package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js +1 -1
- package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js.map +1 -1
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.css +100 -33
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.js +21 -15
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.js.map +1 -1
- package/dist/collection/components/ls-field-footer/ls-field-footer.css +55 -0
- package/dist/collection/components/ls-field-footer/ls-field-footer.js +107 -0
- package/dist/collection/components/ls-field-footer/ls-field-footer.js.map +1 -0
- package/dist/collection/components/ls-field-format/ls-field-format.js +10 -10
- package/dist/collection/components/ls-field-placement/ls-field-placement.js +1 -1
- package/dist/collection/components/ls-field-placement/ls-field-placement.js.map +1 -1
- package/dist/collection/components/ls-field-properties/ls-field-properties.js +1 -1
- package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js +1 -1
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js +2 -2
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js +2 -2
- 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.css +173 -10
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js +34 -1
- 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.css +178 -3
- package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js +36 -1
- 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.css +179 -3
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js +55 -1
- 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.css +178 -3
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js +36 -1
- 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.css +0 -9
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js +8 -4
- 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.css +177 -3
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js +36 -1
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js.map +1 -1
- package/dist/collection/components/ls-field-size/ls-field-size.css +102 -27
- package/dist/collection/components/ls-field-size/ls-field-size.js +2 -2
- package/dist/collection/components/ls-field-size/ls-field-size.js.map +1 -1
- package/dist/collection/components/ls-formfield/inputs/ls-number-input/ls-number-input.js +3 -3
- package/dist/collection/components/ls-formfield/inputs/ls-radio-input/ls-radio-input.js +2 -2
- package/dist/collection/components/ls-formfield/inputs/ls-select-input/ls-select-input.js +3 -3
- package/dist/collection/components/ls-formfield/inputs/ls-text-input/ls-text-input.js +3 -3
- package/dist/collection/components/ls-formfield/inputs/ls-textarea-input/ls-textarea-input.js +3 -3
- package/dist/collection/components/ls-formfield/ls-formfield.js +5 -5
- package/dist/collection/components/ls-icon/icons.js +20 -0
- package/dist/collection/components/ls-icon/icons.js.map +1 -1
- package/dist/collection/components/ls-icon/ls-icon.js +2 -2
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.js +10 -6
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.js.map +1 -1
- package/dist/collection/components/ls-participant-select/ls-participant-select.css +4 -6
- package/dist/collection/components/ls-participant-select/ls-participant-select.js +22 -6
- package/dist/collection/components/ls-participant-select/ls-participant-select.js.map +1 -1
- 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-toolbar/ls-toolbar.js.map +1 -1
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js +2 -2
- package/dist/collection/types/Icon.js +1 -0
- package/dist/collection/types/Icon.js.map +1 -1
- package/dist/components/ls-document-options.js +1 -1
- package/dist/components/ls-document-viewer.js +164 -55
- 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.d.ts +11 -0
- package/dist/components/ls-field-footer.js +9 -0
- package/dist/components/ls-field-footer.js.map +1 -0
- package/dist/components/ls-field-format.js +1 -1
- package/dist/components/ls-field-placement.js +1 -1
- 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-DT0wHPjN.js → p-4a5NqPpg.js} +9 -9
- package/dist/components/{p-DT0wHPjN.js.map → p-4a5NqPpg.js.map} +1 -1
- package/dist/components/{p-R3D1POuE.js → p-8Um41Jug.js} +9 -9
- package/dist/components/{p-R3D1POuE.js.map → p-8Um41Jug.js.map} +1 -1
- package/dist/components/p-8Yvey07o.js +57 -0
- package/dist/components/p-8Yvey07o.js.map +1 -0
- package/dist/components/{p-cFB-6W0U.js → p-9Z-GK0Bd.js} +3 -3
- package/dist/components/{p-cFB-6W0U.js.map → p-9Z-GK0Bd.js.map} +1 -1
- package/dist/components/{p-BoA6mH9f.js → p-BFSBsh85.js} +24 -3
- package/dist/components/p-BFSBsh85.js.map +1 -0
- package/dist/components/{p-B_eQ2Gz-.js → p-BMRIiOsQ.js} +7 -7
- package/dist/components/{p-B_eQ2Gz-.js.map → p-BMRIiOsQ.js.map} +1 -1
- package/dist/components/{p-DQthTAGK.js → p-BMsZB-GL.js} +53 -29
- package/dist/components/p-BMsZB-GL.js.map +1 -0
- package/dist/components/p-BVXVFpxy.js +130 -0
- package/dist/components/p-BVXVFpxy.js.map +1 -0
- package/dist/components/{p-DlfoNwRm.js → p-BdJAlep4.js} +10 -10
- package/dist/components/{p-DlfoNwRm.js.map → p-BdJAlep4.js.map} +1 -1
- package/dist/components/{p-Eq1IwvY5.js → p-BuX-_d2U.js} +3 -3
- package/dist/components/{p-Eq1IwvY5.js.map → p-BuX-_d2U.js.map} +1 -1
- package/dist/components/p-BvQE1dGX.js +77 -0
- package/dist/components/p-BvQE1dGX.js.map +1 -0
- package/dist/components/{p-BHOXtRwH.js → p-C2ZxEVhB.js} +19 -16
- package/dist/components/p-C2ZxEVhB.js.map +1 -0
- package/dist/components/p-C5iwKF3r.js +77 -0
- package/dist/components/p-C5iwKF3r.js.map +1 -0
- package/dist/components/{p-D8LhlUeT.js → p-C9d-OiqW.js} +4 -4
- package/dist/components/p-C9d-OiqW.js.map +1 -0
- package/dist/components/p-CQr7nmKb.js +59 -0
- package/dist/components/p-CQr7nmKb.js.map +1 -0
- package/dist/components/p-CdEexh_g.js +84 -0
- package/dist/components/p-CdEexh_g.js.map +1 -0
- package/dist/components/{p-aHGDKnIY.js → p-CdL5cKO8.js} +4 -4
- package/dist/components/{p-aHGDKnIY.js.map → p-CdL5cKO8.js.map} +1 -1
- package/dist/components/p-ChfFmzMa.js +138 -0
- package/dist/components/p-ChfFmzMa.js.map +1 -0
- package/dist/components/{p-Ciz2QmDr.js → p-CiKsFis4.js} +5 -5
- package/dist/components/{p-Ciz2QmDr.js.map → p-CiKsFis4.js.map} +1 -1
- package/dist/components/{p-BIp2Inn2.js → p-CixKuBuL.js} +13 -13
- package/dist/components/{p-BIp2Inn2.js.map → p-CixKuBuL.js.map} +1 -1
- package/dist/components/{p-PVKJexBt.js → p-CoH616os.js} +7 -25
- package/dist/components/p-CoH616os.js.map +1 -0
- package/dist/components/{p-CTKLmmO3.js → p-Cotorbsf.js} +4 -4
- package/dist/components/p-Cotorbsf.js.map +1 -0
- package/dist/components/{p-C-B8sqqJ.js → p-DEu3aUkH.js} +9 -9
- package/dist/components/p-DEu3aUkH.js.map +1 -0
- package/dist/components/{p-DXP-R4_o.js → p-DIeSYRR1.js} +4 -4
- package/dist/components/{p-DXP-R4_o.js.map → p-DIeSYRR1.js.map} +1 -1
- package/dist/components/{p-D4hGTY-V.js → p-DKOj6SYm.js} +4 -4
- package/dist/components/{p-D4hGTY-V.js.map → p-DKOj6SYm.js.map} +1 -1
- package/dist/components/{p-DBphBrvt.js → p-DLF5DiJI.js} +10 -10
- package/dist/components/{p-DBphBrvt.js.map → p-DLF5DiJI.js.map} +1 -1
- package/dist/components/p-DOULSSR_.js +115 -0
- package/dist/components/p-DOULSSR_.js.map +1 -0
- package/dist/components/p-DVFCDy_Y.js +75 -0
- package/dist/components/p-DVFCDy_Y.js.map +1 -0
- package/dist/components/{p-BM12bWfu.js → p-DasXNgMG.js} +5 -6
- package/dist/components/p-DasXNgMG.js.map +1 -0
- package/dist/components/{p-BDgNCPwS.js → p-Dc4pAKEn.js} +4 -4
- package/dist/components/{p-BDgNCPwS.js.map → p-Dc4pAKEn.js.map} +1 -1
- package/dist/components/{p-CToSoYU7.js → p-DeaQdy4U.js} +4 -4
- package/dist/components/{p-CToSoYU7.js.map → p-DeaQdy4U.js.map} +1 -1
- package/dist/components/{p-YpxkkST1.js → p-DqJ_uIFZ.js} +32 -7
- package/dist/components/p-DqJ_uIFZ.js.map +1 -0
- package/dist/components/{p-X9ibhDjX.js → p-DxZasSi4.js} +4 -4
- package/dist/components/{p-X9ibhDjX.js.map → p-DxZasSi4.js.map} +1 -1
- package/dist/components/{p-6hZjNCO9.js → p-V-QJ5j_K.js} +13 -9
- package/dist/components/p-V-QJ5j_K.js.map +1 -0
- package/dist/components/p-vll2Fgrb.js +160 -0
- package/dist/components/p-vll2Fgrb.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{ls-document-options_35.entry.js → ls-document-options_36.entry.js} +437 -124
- package/dist/esm/ls-document-options_36.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-9946fb79.entry.js → p-ce21a4d4.entry.js} +21 -6
- package/dist/ls-document-viewer/p-ce21a4d4.entry.js.map +1 -0
- package/dist/types/components/ls-document-viewer/adapter/LsDocumentAdapter.d.ts +1 -0
- package/dist/types/components/ls-document-viewer/adapter/groupActions.d.ts +2 -0
- package/dist/types/components/ls-document-viewer/defaultFieldIcons.d.ts +5 -0
- package/dist/types/components/ls-document-viewer/editorUtils.d.ts +6 -1
- package/dist/types/components/ls-document-viewer/ls-document-viewer.d.ts +1 -0
- package/dist/types/components/ls-field-footer/ls-field-footer.d.ts +14 -0
- package/dist/types/components/ls-field-properties-general/ls-field-properties-general.d.ts +2 -0
- package/dist/types/components/ls-field-properties-image/ls-field-properties-image.d.ts +2 -0
- package/dist/types/components/ls-field-properties-multiple/ls-field-properties-multiple.d.ts +14 -0
- package/dist/types/components/ls-field-properties-number/ls-field-properties-number.d.ts +2 -0
- package/dist/types/components/ls-field-properties-signature/ls-field-properties-signature.d.ts +4 -0
- package/dist/types/components/ls-field-properties-text/ls-field-properties-text.d.ts +2 -0
- package/dist/types/components/ls-participant-select/ls-participant-select.d.ts +2 -0
- package/dist/types/components.d.ts +85 -0
- package/dist/types/types/Icon.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/ls-document-options_35.cjs.entry.js.map +0 -1
- package/dist/components/p-6hZjNCO9.js.map +0 -1
- package/dist/components/p-B2NrT7P4.js +0 -49
- package/dist/components/p-B2NrT7P4.js.map +0 -1
- package/dist/components/p-B3WqeRix.js +0 -49
- package/dist/components/p-B3WqeRix.js.map +0 -1
- package/dist/components/p-BBfc4kkx.js +0 -99
- package/dist/components/p-BBfc4kkx.js.map +0 -1
- package/dist/components/p-BEtorVYP.js +0 -49
- package/dist/components/p-BEtorVYP.js.map +0 -1
- package/dist/components/p-BHOXtRwH.js.map +0 -1
- package/dist/components/p-BM12bWfu.js.map +0 -1
- package/dist/components/p-Bl6sK4Wf.js +0 -49
- package/dist/components/p-Bl6sK4Wf.js.map +0 -1
- package/dist/components/p-BoA6mH9f.js.map +0 -1
- package/dist/components/p-BuHDdmKo.js +0 -124
- package/dist/components/p-BuHDdmKo.js.map +0 -1
- package/dist/components/p-C-B8sqqJ.js.map +0 -1
- package/dist/components/p-CTKLmmO3.js.map +0 -1
- package/dist/components/p-D8LhlUeT.js.map +0 -1
- package/dist/components/p-DFgg8jhU.js +0 -49
- package/dist/components/p-DFgg8jhU.js.map +0 -1
- package/dist/components/p-DKmDGdr_.js +0 -51
- package/dist/components/p-DKmDGdr_.js.map +0 -1
- package/dist/components/p-DQthTAGK.js.map +0 -1
- package/dist/components/p-DS45bzgL.js +0 -154
- package/dist/components/p-DS45bzgL.js.map +0 -1
- package/dist/components/p-PVKJexBt.js.map +0 -1
- package/dist/components/p-YpxkkST1.js.map +0 -1
- package/dist/esm/ls-document-options_35.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-ClLXAGwA.js.map +0 -1
- package/dist/ls-document-viewer/index-Db-CNFwu.js.map +0 -1
- package/dist/ls-document-viewer/p-9946fb79.entry.js.map +0 -1
package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.css
CHANGED
|
@@ -1,5 +1,150 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
display:
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 1rem;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
* {
|
|
11
|
+
margin: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.properties-container {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.field-set {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: 1rem;
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ls-field-properties-section {
|
|
28
|
+
display: flex;
|
|
29
|
+
position: relative;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
gap: 0.5rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.row {
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ls-field-properties-section-text {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
gap: 0.25rem;
|
|
44
|
+
padding: 0.25rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ls-field-properties-section-title {
|
|
48
|
+
color: var(--gray-90, #5e6066);
|
|
49
|
+
font-size: 1rem;
|
|
50
|
+
font-style: normal;
|
|
51
|
+
font-weight: 500;
|
|
52
|
+
line-height: 1.25rem; /* 142.857% */
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ls-field-properties-section-description {
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
color: var(--gray-80, #6c6e73);
|
|
58
|
+
text-overflow: ellipsis;
|
|
59
|
+
font-size: 0.75rem;
|
|
60
|
+
font-style: normal;
|
|
61
|
+
font-weight: 400;
|
|
62
|
+
line-height: 0.75rem; /* 120% */
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ls-field-type-wrapper {
|
|
66
|
+
position: relative;
|
|
67
|
+
border-radius: 0.875rem;
|
|
68
|
+
padding: 0.25rem;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ls-field-type-inner {
|
|
72
|
+
border-radius: 0.625rem;
|
|
73
|
+
background: var(--white, #fff);
|
|
74
|
+
display: flex;
|
|
75
|
+
padding: 0.25rem 0.5rem 0.25rem 0.25rem;
|
|
76
|
+
align-items: center;
|
|
77
|
+
gap: 0.875rem;
|
|
78
|
+
align-self: stretch;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ls-field-type-icon {
|
|
82
|
+
display: flex;
|
|
83
|
+
padding: 0.5rem;
|
|
84
|
+
align-items: center;
|
|
85
|
+
border-radius: 0.5rem;
|
|
86
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ls-field-type-name {
|
|
90
|
+
color: var(--gray-100, #45484d);
|
|
91
|
+
font-size: 1rem;
|
|
92
|
+
font-style: normal;
|
|
93
|
+
font-weight: 400;
|
|
94
|
+
line-height: 1.5rem; /* 150% */
|
|
95
|
+
text-transform: capitalize;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.tabs-container {
|
|
99
|
+
display: grid;
|
|
100
|
+
grid-template-columns: repeat(3, 1fr);
|
|
101
|
+
width: 100%;
|
|
102
|
+
gap: 0.125rem;
|
|
103
|
+
padding: 0.125rem;
|
|
104
|
+
border: 1px solid var(--gray-30, #e0e2e5);
|
|
105
|
+
border-radius: 0.75rem;
|
|
106
|
+
background: var(--white, #ffffff);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ls-tab {
|
|
110
|
+
all: unset;
|
|
111
|
+
display: flex;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
align-items: center;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
padding: 0.5rem;
|
|
116
|
+
border-radius: 0.625rem;
|
|
117
|
+
font-size: 0.875rem;
|
|
118
|
+
font-style: normal;
|
|
119
|
+
font-weight: 500;
|
|
120
|
+
line-height: 1.25rem; /* 142.857% */
|
|
121
|
+
color: var(--gray-80, #6c6e73);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.ls-tab.active {
|
|
125
|
+
background: var(--primary-10, #eff4ff);
|
|
126
|
+
color: var(--primary-60, #4456f6);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.ls-tab:not(.active):hover {
|
|
130
|
+
background: var(--gray-10, #f7f8fa);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.button-footer {
|
|
134
|
+
display: flex;
|
|
135
|
+
padding-top: 1rem;
|
|
136
|
+
border-top: 1px solid var(--gray-20, #f0f1f2);
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
justify-content: flex-end;
|
|
139
|
+
gap: 0.75rem;
|
|
140
|
+
margin-top: auto;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.scrolling-container {
|
|
144
|
+
overflow-y: auto;
|
|
145
|
+
padding: 0 1rem;
|
|
146
|
+
margin: 0 -1rem;
|
|
147
|
+
height: calc(100% - 10.938rem);
|
|
3
148
|
}
|
|
4
149
|
|
|
5
150
|
/* Global Styles */
|
|
@@ -35,11 +180,15 @@ a:hover {
|
|
|
35
180
|
select {
|
|
36
181
|
appearance: none;
|
|
37
182
|
height: 36px;
|
|
183
|
+
width: 100%;
|
|
38
184
|
}
|
|
39
185
|
|
|
40
186
|
.input-wrapper {
|
|
41
187
|
position: relative;
|
|
42
|
-
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.full-width {
|
|
191
|
+
width: 100%;
|
|
43
192
|
}
|
|
44
193
|
|
|
45
194
|
#selectorIcon {
|
|
@@ -222,6 +371,8 @@ input[type='checkbox']:disabled:checked {
|
|
|
222
371
|
}
|
|
223
372
|
|
|
224
373
|
button {
|
|
374
|
+
display: flex;
|
|
375
|
+
gap: 0.5rem;
|
|
225
376
|
border: 0;
|
|
226
377
|
appearance: button;
|
|
227
378
|
cursor: pointer;
|
|
@@ -231,6 +382,7 @@ button {
|
|
|
231
382
|
border-radius: var(--radius-lg);
|
|
232
383
|
background-color: var(--primary-60, #4456f6);
|
|
233
384
|
color: white;
|
|
385
|
+
font-weight: 500;
|
|
234
386
|
text-transform: capitalize;
|
|
235
387
|
min-height: 2.25rem;
|
|
236
388
|
min-width: 2.25rem;
|
|
@@ -247,6 +399,31 @@ button.tertiaryGrey:hover {
|
|
|
247
399
|
background: var(--gray-10, #f7f8fa);
|
|
248
400
|
}
|
|
249
401
|
|
|
402
|
+
button.secondary {
|
|
403
|
+
border: 1px solid var(--gray-50, #c8c9cc);
|
|
404
|
+
background: var(--white, #fff);
|
|
405
|
+
color: var(--gray-90, #5e6066);
|
|
406
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
button.secondary:hover {
|
|
410
|
+
border: 1px solid var(--gray-50, #c8c9cc);
|
|
411
|
+
background: var(--gray-10, #f7f8fa);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
button.destructive {
|
|
415
|
+
border: 1px solid var(--red-60, #f04438);
|
|
416
|
+
background-color: white;
|
|
417
|
+
color: var(--red-60);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
button.destructive:hover {
|
|
421
|
+
border: 1px solid var(--red-70, #d92d20);
|
|
422
|
+
background: var(--red-10, #fff1f0);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
250
427
|
.button-group {
|
|
251
428
|
display: flex;
|
|
252
429
|
border-radius: 0.5rem;
|
|
@@ -280,4 +457,3 @@ button.tertiaryGrey:hover {
|
|
|
280
457
|
.button-group > :not(:first-child) {
|
|
281
458
|
border-left: 1px solid var(--gray-30, #e0e2e5);
|
|
282
459
|
}
|
|
283
|
-
|
package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js
CHANGED
|
@@ -1,8 +1,42 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { defaultRolePalette } from "../ls-document-viewer/defaultPalette";
|
|
3
|
+
import { getFieldIcon } from "../ls-document-viewer/defaultFieldIcons";
|
|
2
4
|
export class LsFieldPropertiesMultiple {
|
|
3
5
|
dataItem;
|
|
6
|
+
fieldSet = 'content';
|
|
7
|
+
signerColor = (index) => {
|
|
8
|
+
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
9
|
+
};
|
|
10
|
+
allSignersSame = () => {
|
|
11
|
+
if (!this.dataItem || this.dataItem.length === 0)
|
|
12
|
+
return { isSame: true, signer: undefined };
|
|
13
|
+
const firstSigner = this.dataItem[0].signer;
|
|
14
|
+
const allSame = this.dataItem.every(item => item.signer === firstSigner);
|
|
15
|
+
return { isSame: allSame, signer: allSame ? firstSigner : 13 };
|
|
16
|
+
};
|
|
17
|
+
allLabelsSame = () => {
|
|
18
|
+
if (!this.dataItem || this.dataItem.length === 0)
|
|
19
|
+
return { isSame: true, label: undefined };
|
|
20
|
+
const firstLabel = this.dataItem[0].label;
|
|
21
|
+
const allSame = this.dataItem.every(item => item.label === firstLabel);
|
|
22
|
+
return { isSame: allSame, label: allSame ? firstLabel : undefined };
|
|
23
|
+
};
|
|
24
|
+
allElementsSame = () => {
|
|
25
|
+
if (!this.dataItem || this.dataItem.length === 0)
|
|
26
|
+
return { isSame: true, elementType: 'mixed' };
|
|
27
|
+
const firstElementType = this.dataItem[0].elementType;
|
|
28
|
+
const allSame = this.dataItem.every(item => item.elementType === firstElementType);
|
|
29
|
+
return { isSame: allSame, elementType: allSame ? firstElementType : 'mixed' };
|
|
30
|
+
};
|
|
4
31
|
render() {
|
|
5
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: 'd47418c11bf08918bbc5de9815c9ed0060637730' }, h("div", { key: 'ffbe7dddad76d40c13d394b94f560bc28f0efd49', class: 'tabs-container' }, h("button", { key: '215fa1ffeb0fc0e7e5f5f74268245a0bfc24b578', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), h("button", { key: '38cbd8b91dc129be1398ba79384c316bee79eedc', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), h("button", { key: '8ca2cb33b774b93d2a9ca2dd84dab64c5f757fec', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), h("div", { key: '584ff1cce354ad1f7326a73c3d2d6729dbaccac7', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (h("div", { class: 'field-set' }, h("ls-field-alignment", { dataItem: this.dataItem }), h("ls-field-placement", { dataItem: this.dataItem }), h("ls-field-distribute", { dataItem: this.dataItem }))) : this.fieldSet === 'dimensions' ? (h("div", { class: 'field-set' }, h("ls-field-dimensions", { dataItem: this.dataItem }), h("ls-field-size", { 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 Fields you currently have selected")), h("div", { class: 'ls-field-type-wrapper', style: {
|
|
33
|
+
border: `1px dashed var(--${this.signerColor(this.allSignersSame().signer)}-30)`,
|
|
34
|
+
background: `var(--${this.signerColor(this.allSignersSame().signer)}-10)`,
|
|
35
|
+
} }, h("div", { class: 'ls-field-type-inner' }, h("div", { class: 'ls-field-type-icon', style: {
|
|
36
|
+
border: `1px solid var(--${this.signerColor(this.allSignersSame().signer)}-60)`,
|
|
37
|
+
color: `var(--${this.signerColor(this.allSignersSame().signer)}-60)`,
|
|
38
|
+
background: `var(--${this.signerColor(this.allSignersSame().signer)}-10)`,
|
|
39
|
+
} }, h("ls-icon", { name: getFieldIcon(this.allElementsSame().elementType), size: "20" })), h("p", { class: 'ls-field-type-name' }, this.dataItem.length, " ", this.allElementsSame().elementType, " ", 'Fields')))), 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.allLabelsSame().label, width: "30", placeholder: "eg. Sign Here" }))))), h("ls-field-footer", { key: '4ac7b3459381ce8b58dbed6aa0de6612e26ecbb4' }), h("slot", { key: 'c07eed0aa02861a7cc12939dcb11c16ccfebb58c' })));
|
|
6
40
|
}
|
|
7
41
|
static get is() { return "ls-field-properties-multiple"; }
|
|
8
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,6 +75,26 @@ export class LsFieldPropertiesMultiple {
|
|
|
41
75
|
},
|
|
42
76
|
"getter": false,
|
|
43
77
|
"setter": false
|
|
78
|
+
},
|
|
79
|
+
"fieldSet": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"attribute": "field-set",
|
|
82
|
+
"mutable": false,
|
|
83
|
+
"complexType": {
|
|
84
|
+
"original": "'content' | 'placement' | 'dimensions'",
|
|
85
|
+
"resolved": "\"content\" | \"dimensions\" | \"placement\"",
|
|
86
|
+
"references": {}
|
|
87
|
+
},
|
|
88
|
+
"required": false,
|
|
89
|
+
"optional": false,
|
|
90
|
+
"docs": {
|
|
91
|
+
"tags": [],
|
|
92
|
+
"text": ""
|
|
93
|
+
},
|
|
94
|
+
"getter": false,
|
|
95
|
+
"setter": false,
|
|
96
|
+
"reflect": false,
|
|
97
|
+
"defaultValue": "'content'"
|
|
44
98
|
}
|
|
45
99
|
};
|
|
46
100
|
}
|
package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls-field-properties-multiple.js","sourceRoot":"","sources":["../../../src/components/ls-field-properties-multiple/ls-field-properties-multiple.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"ls-field-properties-multiple.js","sourceRoot":"","sources":["../../../src/components/ls-field-properties-multiple/ls-field-properties-multiple.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,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAOvE,MAAM,OAAO,yBAAyB;IAC5B,QAAQ,CAAiB;IACzB,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,CAA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AU,EAAE,SAAS,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,MAAM,CAAC,MAAM;iCAC1E;gCAED,eAAS,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC,WAAW,CAAC,EAAE,IAAI,EAAC,IAAI,GAAG,CACzE;4BACN,SAAG,KAAK,EAAE,oBAAoB;gCAC3B,IAAI,CAAC,QAAQ,CAAC,MAAM;;gCAAG,IAAI,CAAC,eAAe,EAAE,CAAC,WAAW;;gCAAG,QAAQ,CACnE,CACA,CACF,CACF;gBACN,WAAK,KAAK,EAAE,iCAAiC;oBAC3C,WAAK,KAAK,EAAE,kCAAkC;wBAC5C,SAAG,KAAK,EAAE,mCAAmC,qBAAoB,CAC7D;oBACN,oBAAa,CACT;gBAEN,WAAK,KAAK,EAAE,6BAA6B;oBACvC,WAAK,KAAK,EAAE,kCAAkC;wBAC5C,SAAG,KAAK,EAAE,mCAAmC,kBAAiB;wBAC9D,SAAG,KAAK,EAAE,yCAAyC,0EAAyE,CACxH;oBACN,aAAO,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,EAAC,IAAI,EAAC,WAAW,EAAC,eAAe,GAAG,CAC/E,CACF,CACP,CACG;YACN,yEAAmB;YAGnB,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 { getFieldIcon } from '../ls-document-viewer/defaultFieldIcons';\n\n@Component({\n tag: 'ls-field-properties-multiple',\n styleUrl: 'ls-field-properties-multiple.css',\n shadow: true,\n})\nexport class LsFieldPropertiesMultiple {\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 allSignersSame = () => {\n if (!this.dataItem || this.dataItem.length === 0) return { isSame: true, signer: undefined };\n const firstSigner = this.dataItem[0].signer;\n const allSame = this.dataItem.every(item => item.signer === firstSigner);\n return { isSame: allSame, signer: allSame ? firstSigner : 13 };\n };\n\n allLabelsSame = () => {\n if (!this.dataItem || this.dataItem.length === 0) return { isSame: true, label: undefined };\n const firstLabel = this.dataItem[0].label;\n const allSame = this.dataItem.every(item => item.label === firstLabel);\n return { isSame: allSame, label: allSame ? firstLabel : undefined };\n };\n\n allElementsSame = () => {\n if (!this.dataItem || this.dataItem.length === 0) return { isSame: true, elementType: 'mixed' };\n const firstElementType = this.dataItem[0].elementType;\n const allSame = this.dataItem.every(item => item.elementType === firstElementType);\n return { isSame: allSame, elementType: allSame ? firstElementType : 'mixed' };\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 <div class={'field-set'}>\n <ls-field-alignment dataItem={this.dataItem} />\n <ls-field-placement dataItem={this.dataItem} />\n <ls-field-distribute dataItem={this.dataItem} />\n\n </div>\n ) : this.fieldSet === 'dimensions' ? (\n <div class={'field-set'}>\n <ls-field-dimensions dataItem={this.dataItem} />\n <ls-field-size 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 Fields 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.allSignersSame().signer)}-30)`,\n background: `var(--${this.signerColor(this.allSignersSame().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.allSignersSame().signer)}-60)`,\n color: `var(--${this.signerColor(this.allSignersSame().signer)}-60)`,\n background: `var(--${this.signerColor(this.allSignersSame().signer)}-10)`,\n }}\n >\n <ls-icon name={getFieldIcon(this.allElementsSame().elementType)} size=\"20\" />\n </div>\n <p class={'ls-field-type-name'}>\n {this.dataItem.length} {this.allElementsSame().elementType} {'Fields'}\n </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.allLabelsSame().label} width=\"30\" placeholder=\"eg. Sign Here\" />\n </div>\n </div>\n )}\n </div>\n <ls-field-footer />\n \n\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
|
package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.css
CHANGED
|
@@ -1,5 +1,149 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
display:
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 1rem;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
* {
|
|
11
|
+
margin: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.properties-container {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.field-set {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: 1rem;
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ls-field-properties-section {
|
|
28
|
+
display: flex;
|
|
29
|
+
position: relative;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
gap: 0.5rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.row {
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ls-field-properties-section-text {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
gap: 0.25rem;
|
|
44
|
+
padding: 0.25rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ls-field-properties-section-title {
|
|
48
|
+
color: var(--gray-90, #5e6066);
|
|
49
|
+
font-size: 1rem;
|
|
50
|
+
font-style: normal;
|
|
51
|
+
font-weight: 500;
|
|
52
|
+
line-height: 1.25rem; /* 142.857% */
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ls-field-properties-section-description {
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
color: var(--gray-80, #6c6e73);
|
|
58
|
+
text-overflow: ellipsis;
|
|
59
|
+
font-size: 0.75rem;
|
|
60
|
+
font-style: normal;
|
|
61
|
+
font-weight: 400;
|
|
62
|
+
line-height: 0.75rem; /* 120% */
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ls-field-type-wrapper {
|
|
66
|
+
position: relative;
|
|
67
|
+
border-radius: 0.875rem;
|
|
68
|
+
padding: 0.25rem;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ls-field-type-inner {
|
|
72
|
+
border-radius: 0.625rem;
|
|
73
|
+
background: var(--white, #fff);
|
|
74
|
+
display: flex;
|
|
75
|
+
padding: 0.25rem 0.5rem 0.25rem 0.25rem;
|
|
76
|
+
align-items: center;
|
|
77
|
+
gap: 0.875rem;
|
|
78
|
+
align-self: stretch;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ls-field-type-icon {
|
|
82
|
+
display: flex;
|
|
83
|
+
padding: 0.5rem;
|
|
84
|
+
align-items: center;
|
|
85
|
+
border-radius: 0.5rem;
|
|
86
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ls-field-type-name {
|
|
90
|
+
color: var(--gray-100, #45484d);
|
|
91
|
+
font-size: 1rem;
|
|
92
|
+
font-style: normal;
|
|
93
|
+
font-weight: 400;
|
|
94
|
+
line-height: 1.5rem; /* 150% */
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.tabs-container {
|
|
98
|
+
display: grid;
|
|
99
|
+
grid-template-columns: repeat(3, 1fr);
|
|
100
|
+
width: 100%;
|
|
101
|
+
gap: 0.125rem;
|
|
102
|
+
padding: 0.125rem;
|
|
103
|
+
border: 1px solid var(--gray-30, #e0e2e5);
|
|
104
|
+
border-radius: 0.75rem;
|
|
105
|
+
background: var(--white, #ffffff);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.ls-tab {
|
|
109
|
+
all: unset;
|
|
110
|
+
display: flex;
|
|
111
|
+
justify-content: center;
|
|
112
|
+
align-items: center;
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
padding: 0.5rem;
|
|
115
|
+
border-radius: 0.625rem;
|
|
116
|
+
font-size: 0.875rem;
|
|
117
|
+
font-style: normal;
|
|
118
|
+
font-weight: 500;
|
|
119
|
+
line-height: 1.25rem; /* 142.857% */
|
|
120
|
+
color: var(--gray-80, #6c6e73);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.ls-tab.active {
|
|
124
|
+
background: var(--primary-10, #eff4ff);
|
|
125
|
+
color: var(--primary-60, #4456f6);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.ls-tab:not(.active):hover {
|
|
129
|
+
background: var(--gray-10, #f7f8fa);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.button-footer {
|
|
133
|
+
display: flex;
|
|
134
|
+
padding-top: 1rem;
|
|
135
|
+
border-top: 1px solid var(--gray-20, #f0f1f2);
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
justify-content: flex-end;
|
|
138
|
+
gap: 0.75rem;
|
|
139
|
+
margin-top: auto;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.scrolling-container {
|
|
143
|
+
overflow-y: auto;
|
|
144
|
+
padding: 0 1rem;
|
|
145
|
+
margin: 0 -1rem;
|
|
146
|
+
height: calc(100% - 10.938rem);
|
|
3
147
|
}
|
|
4
148
|
|
|
5
149
|
/* Global Styles */
|
|
@@ -35,11 +179,15 @@ a:hover {
|
|
|
35
179
|
select {
|
|
36
180
|
appearance: none;
|
|
37
181
|
height: 36px;
|
|
182
|
+
width: 100%;
|
|
38
183
|
}
|
|
39
184
|
|
|
40
185
|
.input-wrapper {
|
|
41
186
|
position: relative;
|
|
42
|
-
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.full-width {
|
|
190
|
+
width: 100%;
|
|
43
191
|
}
|
|
44
192
|
|
|
45
193
|
#selectorIcon {
|
|
@@ -222,6 +370,8 @@ input[type='checkbox']:disabled:checked {
|
|
|
222
370
|
}
|
|
223
371
|
|
|
224
372
|
button {
|
|
373
|
+
display: flex;
|
|
374
|
+
gap: 0.5rem;
|
|
225
375
|
border: 0;
|
|
226
376
|
appearance: button;
|
|
227
377
|
cursor: pointer;
|
|
@@ -231,6 +381,7 @@ button {
|
|
|
231
381
|
border-radius: var(--radius-lg);
|
|
232
382
|
background-color: var(--primary-60, #4456f6);
|
|
233
383
|
color: white;
|
|
384
|
+
font-weight: 500;
|
|
234
385
|
text-transform: capitalize;
|
|
235
386
|
min-height: 2.25rem;
|
|
236
387
|
min-width: 2.25rem;
|
|
@@ -247,6 +398,31 @@ button.tertiaryGrey:hover {
|
|
|
247
398
|
background: var(--gray-10, #f7f8fa);
|
|
248
399
|
}
|
|
249
400
|
|
|
401
|
+
button.secondary {
|
|
402
|
+
border: 1px solid var(--gray-50, #c8c9cc);
|
|
403
|
+
background: var(--white, #fff);
|
|
404
|
+
color: var(--gray-90, #5e6066);
|
|
405
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
button.secondary:hover {
|
|
409
|
+
border: 1px solid var(--gray-50, #c8c9cc);
|
|
410
|
+
background: var(--gray-10, #f7f8fa);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
button.destructive {
|
|
414
|
+
border: 1px solid var(--red-60, #f04438);
|
|
415
|
+
background-color: white;
|
|
416
|
+
color: var(--red-60);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
button.destructive:hover {
|
|
420
|
+
border: 1px solid var(--red-70, #d92d20);
|
|
421
|
+
background: var(--red-10, #fff1f0);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
250
426
|
.button-group {
|
|
251
427
|
display: flex;
|
|
252
428
|
border-radius: 0.5rem;
|
|
@@ -280,4 +456,3 @@ button.tertiaryGrey:hover {
|
|
|
280
456
|
.button-group > :not(:first-child) {
|
|
281
457
|
border-left: 1px solid var(--gray-30, #e0e2e5);
|
|
282
458
|
}
|
|
283
|
-
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { validationTypes } from "../ls-document-viewer/editorUtils";
|
|
3
|
+
import { defaultRolePalette } from "../ls-document-viewer/defaultPalette";
|
|
2
4
|
export class LsFieldPropertiesNumber {
|
|
3
5
|
dataItem;
|
|
6
|
+
fieldSet = 'content';
|
|
7
|
+
signerColor = (index) => {
|
|
8
|
+
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
9
|
+
};
|
|
4
10
|
render() {
|
|
5
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: 'e50acbaa72b3d4f4e71a1948d3de757583362b8b' }, h("div", { key: '09dd8369b976fe3cf3bcc84bc91ac4c1f553e454', class: 'tabs-container' }, h("button", { key: '41157341ca616277c51a6787cf6eec75b234600e', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), h("button", { key: 'cc649303cc7a4bec0322f9cd6e9f2b68418b86b5', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), h("button", { key: 'e84e1bae951d8a200fb0f93796a1e2a0069783d2', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), h("div", { key: '2f5621dbc686dcb5613f42537adcf6733809ed70', 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("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
|
+
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
13
|
+
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
14
|
+
} }, h("div", { class: 'ls-field-type-inner' }, h("div", { class: 'ls-field-type-icon', style: {
|
|
15
|
+
border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
16
|
+
color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
17
|
+
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
18
|
+
} }, h("ls-icon", { name: "hashtag", size: "20" })), h("p", { class: 'ls-field-type-name' }, "Number")))), 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
|
+
.filter(type => type.formType === 'number')
|
|
20
|
+
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), h("div", { key: '7eb13a8e3801d7e9a9908d9efa21703b47cbbeb9', class: 'button-footer' }, h("button", { key: '8376532dd6f07807bf824515146e4f6cd39f47fb', class: 'secondary' }, h("ls-icon", { key: '8a5b3635ba8ef24b4fedfb72b48681f672a9a5f1', name: "field-duplicate", size: "20" }), "Duplicate"), h("button", { key: 'c2af55b4f3f3dbf24ef8ea592812d98501d8d948', class: 'destructive' }, h("ls-icon", { key: 'befbf4e7e625d4bc26bfaadfc1f8c6b9494e9346', name: "trash", size: "20" }), "Delete")), h("slot", { key: '9323c591f57fe3e110a9850c0f6ae1fcc14ffc0d' })));
|
|
6
21
|
}
|
|
7
22
|
static get is() { return "ls-field-properties-number"; }
|
|
8
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,6 +56,26 @@ export class LsFieldPropertiesNumber {
|
|
|
41
56
|
},
|
|
42
57
|
"getter": false,
|
|
43
58
|
"setter": false
|
|
59
|
+
},
|
|
60
|
+
"fieldSet": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"attribute": "field-set",
|
|
63
|
+
"mutable": false,
|
|
64
|
+
"complexType": {
|
|
65
|
+
"original": "'content' | 'placement' | 'dimensions'",
|
|
66
|
+
"resolved": "\"content\" | \"dimensions\" | \"placement\"",
|
|
67
|
+
"references": {}
|
|
68
|
+
},
|
|
69
|
+
"required": false,
|
|
70
|
+
"optional": false,
|
|
71
|
+
"docs": {
|
|
72
|
+
"tags": [],
|
|
73
|
+
"text": ""
|
|
74
|
+
},
|
|
75
|
+
"getter": false,
|
|
76
|
+
"setter": false,
|
|
77
|
+
"reflect": false,
|
|
78
|
+
"defaultValue": "'content'"
|
|
44
79
|
}
|
|
45
80
|
};
|
|
46
81
|
}
|
package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls-field-properties-number.js","sourceRoot":"","sources":["../../../src/components/ls-field-properties-number/ls-field-properties-number.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"ls-field-properties-number.js","sourceRoot":"","sources":["../../../src/components/ls-field-properties-number/ls-field-properties-number.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE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sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\nimport { LSApiElement } from '../../components';\nimport { validationTypes } from '../ls-document-viewer/editorUtils';\nimport { defaultRolePalette } from '../ls-document-viewer/defaultPalette';\n\n@Component({\n tag: 'ls-field-properties-number',\n styleUrl: 'ls-field-properties-number.css',\n shadow: true,\n})\nexport class LsFieldPropertiesNumber {\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 </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=\"hashtag\" size=\"20\" />\n </div>\n <p class={'ls-field-type-name'}>Number</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 === 'number')\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 <div class={'button-footer'}>\n <button class={'secondary'}>\n <ls-icon name=\"field-duplicate\" size=\"20\" />\n Duplicate\n </button>\n <button class={'destructive'}>\n <ls-icon name=\"trash\" size=\"20\" />\n Delete\n </button>\n </div>\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
|
package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.css
CHANGED
|
@@ -134,15 +134,6 @@
|
|
|
134
134
|
background: var(--gray-10, #f7f8fa);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
.button-footer {
|
|
138
|
-
display: flex;
|
|
139
|
-
padding-top: 1rem;
|
|
140
|
-
border-top: 1px solid var(--gray-20, #f0f1f2);
|
|
141
|
-
flex-direction: column;
|
|
142
|
-
justify-content: flex-end;
|
|
143
|
-
gap: 0.75rem;
|
|
144
|
-
margin-top: auto;
|
|
145
|
-
}
|
|
146
137
|
|
|
147
138
|
.scrolling-container {
|
|
148
139
|
overflow-y: auto;
|