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-signature/ls-field-properties-signature.js
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { defaultRolePalette } from "../ls-document-viewer/defaultPalette";
|
|
3
3
|
export class LsFieldPropertiesSignature {
|
|
4
|
+
/**
|
|
5
|
+
* The selected items information (as JSON).
|
|
6
|
+
* {LSApiElement[]}
|
|
7
|
+
*/
|
|
4
8
|
dataItem;
|
|
5
9
|
fieldSet = 'content';
|
|
6
10
|
signerColor = (index) => {
|
|
7
11
|
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
8
12
|
};
|
|
9
13
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'bba78cf458f70fbc544cb60f680da3caaeb75dc2' }, h("div", { key: '0872f0b8f0ef07c26e5057dff8063a7585cbe209', class: 'tabs-container' }, h("button", { key: 'f70b0321dc59359a1b940d9c9c2bfc23c945e0f4', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), h("button", { key: '835388d8c1a7c9f196254f75cbe4ff19d1a12dbe', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), h("button", { key: '95cfe797b9abf9f90580a29e607c132295590719', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), h("div", { key: 'a0b2c962acefbe939c3c41303f9def72bf10a0ed', 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: {
|
|
11
15
|
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
12
16
|
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
13
17
|
} }, h("div", { class: 'ls-field-type-inner' }, h("div", { class: 'ls-field-type-icon', style: {
|
|
14
18
|
border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
15
19
|
color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
16
20
|
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
17
|
-
} }, h("ls-icon", { name: "signature", size: "20" })), h("p", { class: 'ls-field-type-name' }, "Signature")))), 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("
|
|
21
|
+
} }, h("ls-icon", { name: "signature", size: "20" })), h("p", { class: 'ls-field-type-name' }, "Signature")))), 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("ls-field-footer", { key: '9a506f882be185fa072f577de42300275e7c6237', dataItem: this.dataItem }), h("slot", { key: '3c992d87c93531c50a6160f82c66b0ae83020ae3' })));
|
|
18
22
|
}
|
|
19
23
|
static get is() { return "ls-field-properties-signature"; }
|
|
20
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,7 +37,7 @@ export class LsFieldPropertiesSignature {
|
|
|
33
37
|
"dataItem": {
|
|
34
38
|
"type": "unknown",
|
|
35
39
|
"attribute": "data-item",
|
|
36
|
-
"mutable":
|
|
40
|
+
"mutable": true,
|
|
37
41
|
"complexType": {
|
|
38
42
|
"original": "LSApiElement",
|
|
39
43
|
"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; }",
|
|
@@ -49,7 +53,7 @@ export class LsFieldPropertiesSignature {
|
|
|
49
53
|
"optional": false,
|
|
50
54
|
"docs": {
|
|
51
55
|
"tags": [],
|
|
52
|
-
"text": ""
|
|
56
|
+
"text": "The selected items information (as JSON).\n{LSApiElement[]}"
|
|
53
57
|
},
|
|
54
58
|
"getter": false,
|
|
55
59
|
"setter": false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls-field-properties-signature.js","sourceRoot":"","sources":["../../../src/components/ls-field-properties-signature/ls-field-properties-signature.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;AAO1E,MAAM,OAAO,0BAA0B;
|
|
1
|
+
{"version":3,"file":"ls-field-properties-signature.js","sourceRoot":"","sources":["../../../src/components/ls-field-properties-signature/ls-field-properties-signature.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\nimport { LSApiElement } from '../../components';\nimport { defaultRolePalette } from '../ls-document-viewer/defaultPalette';\n\n@Component({\n tag: 'ls-field-properties-signature',\n styleUrl: 'ls-field-properties-signature.css',\n shadow: true,\n})\nexport class LsFieldPropertiesSignature {\n /**\n * The selected items information (as JSON).\n * {LSApiElement[]}\n */\n @Prop({\n mutable: true,\n })\n 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 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=\"signature\" size=\"20\" />\n </div>\n <p class={'ls-field-type-name'}>Signature</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 </div>\n )}\n </div>\n\n <ls-field-footer dataItem={this.dataItem} />\n\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1,7 +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% */
|
|
3
53
|
}
|
|
4
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);
|
|
147
|
+
}
|
|
5
148
|
|
|
6
149
|
/* Global Styles */
|
|
7
150
|
|
|
@@ -36,11 +179,15 @@ a:hover {
|
|
|
36
179
|
select {
|
|
37
180
|
appearance: none;
|
|
38
181
|
height: 36px;
|
|
182
|
+
width: 100%;
|
|
39
183
|
}
|
|
40
184
|
|
|
41
185
|
.input-wrapper {
|
|
42
186
|
position: relative;
|
|
43
|
-
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.full-width {
|
|
190
|
+
width: 100%;
|
|
44
191
|
}
|
|
45
192
|
|
|
46
193
|
#selectorIcon {
|
|
@@ -223,6 +370,8 @@ input[type='checkbox']:disabled:checked {
|
|
|
223
370
|
}
|
|
224
371
|
|
|
225
372
|
button {
|
|
373
|
+
display: flex;
|
|
374
|
+
gap: 0.5rem;
|
|
226
375
|
border: 0;
|
|
227
376
|
appearance: button;
|
|
228
377
|
cursor: pointer;
|
|
@@ -232,6 +381,7 @@ button {
|
|
|
232
381
|
border-radius: var(--radius-lg);
|
|
233
382
|
background-color: var(--primary-60, #4456f6);
|
|
234
383
|
color: white;
|
|
384
|
+
font-weight: 500;
|
|
235
385
|
text-transform: capitalize;
|
|
236
386
|
min-height: 2.25rem;
|
|
237
387
|
min-width: 2.25rem;
|
|
@@ -248,6 +398,31 @@ button.tertiaryGrey:hover {
|
|
|
248
398
|
background: var(--gray-10, #f7f8fa);
|
|
249
399
|
}
|
|
250
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
|
+
|
|
251
426
|
.button-group {
|
|
252
427
|
display: flex;
|
|
253
428
|
border-radius: 0.5rem;
|
|
@@ -281,4 +456,3 @@ button.tertiaryGrey:hover {
|
|
|
281
456
|
.button-group > :not(:first-child) {
|
|
282
457
|
border-left: 1px solid var(--gray-30, #e0e2e5);
|
|
283
458
|
}
|
|
284
|
-
|
|
@@ -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 LsFieldPropertiesText {
|
|
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: '3c866e6f227934dff07ee9d2a26d65ed1c9afa82' }, h("div", { key: 'f0348081e8a5ffc70d6888e41ecd88c948150a60', class: 'tabs-container' }, h("button", { key: '0499e9d95ea152b86bd4e6440646de92b94d59df', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), h("button", { key: 'd6fa7d56ee8c7700b4395ade178ce577367d1b69', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), h("button", { key: '1449b28a226629068439b9f7277f3fa00549f273', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), h("div", { key: '4863f52297c424990c72d1aff181fa72c3f4d03b', 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: "text", size: "20" })), h("p", { class: 'ls-field-type-name' }, "Text")))), 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 === 'text')
|
|
20
|
+
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), h("div", { key: 'a437d78978c9937a48278a46f4a3998a88a9f638', class: 'button-footer' }, h("button", { key: '7dd5225d65d6dfa5fc2c8f0ebf6b921877aaa75f', class: 'secondary' }, h("ls-icon", { key: '764bc166996b128c8861bb82a7545814851ad162', name: "field-duplicate", size: "20" }), "Duplicate"), h("button", { key: '9e0d8e4d4fa8374d85ad62e1530344b20aea9bfa', class: 'destructive' }, h("ls-icon", { key: 'ce98729c0518cb7df746418e86a2bde57fb58efc', name: "trash", size: "20" }), "Delete")), h("slot", { key: '68766f87c0fb2705681f5b255cab2b089324dcad' })));
|
|
6
21
|
}
|
|
7
22
|
static get is() { return "ls-field-properties-text"; }
|
|
8
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,6 +56,26 @@ export class LsFieldPropertiesText {
|
|
|
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
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls-field-properties-text.js","sourceRoot":"","sources":["../../../src/components/ls-field-properties-text/ls-field-properties-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"ls-field-properties-text.js","sourceRoot":"","sources":["../../../src/components/ls-field-properties-text/ls-field-properties-text.tsx"],"names":[],"mappings":"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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-text',\n styleUrl: 'ls-field-properties-text.css',\n shadow: true,\n})\nexport class LsFieldPropertiesText {\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=\"text\" size=\"20\" />\n </div>\n <p class={'ls-field-type-name'}>Text</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 === 'text')\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"]}
|
|
@@ -1,23 +1,81 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
display:
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 1rem;
|
|
5
|
+
width: 100%;
|
|
6
|
+
position: relative;
|
|
3
7
|
}
|
|
4
8
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
.ls-toolbar-numeric {
|
|
10
|
+
width: 45px;
|
|
11
|
+
max-height: 18px;
|
|
12
|
+
margin: 0px;
|
|
13
|
+
padding: 0px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
* {
|
|
17
|
+
margin: 0;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.field-set {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
gap: 1rem;
|
|
25
|
+
width: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ls-field-properties-section {
|
|
29
|
+
display: flex;
|
|
30
|
+
position: relative;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
gap: 0.5rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.row {
|
|
36
|
+
flex-direction: row;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: space-between;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.multi-button-group-row {
|
|
42
|
+
display: flex;
|
|
43
|
+
gap: 0.5rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.ls-field-properties-section-text {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
gap: 0.25rem;
|
|
50
|
+
padding: 0.25rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ls-field-properties-section-title {
|
|
54
|
+
color: var(--gray-90, #5e6066);
|
|
55
|
+
font-size: 1rem;
|
|
56
|
+
font-style: normal;
|
|
57
|
+
font-weight: 500;
|
|
58
|
+
line-height: 1.25rem; /* 142.857% */
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ls-field-properties-section-description {
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
color: var(--gray-80, #6c6e73);
|
|
64
|
+
text-overflow: ellipsis;
|
|
65
|
+
font-size: 0.75rem;
|
|
66
|
+
font-style: normal;
|
|
67
|
+
font-weight: 400;
|
|
68
|
+
line-height: 0.75rem; /* 120% */
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.input-row {
|
|
72
|
+
display: flex;
|
|
73
|
+
gap: 0.5rem;
|
|
17
74
|
}
|
|
18
75
|
|
|
19
|
-
|
|
20
|
-
|
|
76
|
+
.input-row .input-wrapper input {
|
|
77
|
+
width: 9.313rem;
|
|
78
|
+
max-width: 9.313rem;
|
|
21
79
|
}
|
|
22
80
|
|
|
23
81
|
/* Global Styles */
|
|
@@ -57,7 +115,7 @@ select {
|
|
|
57
115
|
|
|
58
116
|
.input-wrapper {
|
|
59
117
|
position: relative;
|
|
60
|
-
width:
|
|
118
|
+
width: 100%;
|
|
61
119
|
}
|
|
62
120
|
|
|
63
121
|
#selectorIcon {
|
|
@@ -78,6 +136,15 @@ select {
|
|
|
78
136
|
color: var(--gray-80, #6c6e73);
|
|
79
137
|
}
|
|
80
138
|
|
|
139
|
+
#selectLeadingIconDisabled {
|
|
140
|
+
position: absolute;
|
|
141
|
+
top: 50%;
|
|
142
|
+
left: 0.675rem;
|
|
143
|
+
transform: translateY(-50%);
|
|
144
|
+
pointer-events: none;
|
|
145
|
+
color: var(--gray-50, #d8d9dc);
|
|
146
|
+
}
|
|
147
|
+
|
|
81
148
|
.has-leading-icon {
|
|
82
149
|
padding-left: 2.5rem;
|
|
83
150
|
}
|
|
@@ -101,25 +168,25 @@ textarea::placeholder {
|
|
|
101
168
|
color: var(--gray-60, #afb0b2);
|
|
102
169
|
}
|
|
103
170
|
|
|
104
|
-
input:hover,
|
|
105
|
-
select:hover,
|
|
106
|
-
textarea:hover {
|
|
171
|
+
input:hover:not(:disabled),
|
|
172
|
+
select:hover:not(:disabled),
|
|
173
|
+
textarea:hover:not(:disabled) {
|
|
107
174
|
border-color: var(--gray-50, #c8c9cc);
|
|
108
175
|
background-color: var(--white, #fff);
|
|
109
176
|
}
|
|
110
177
|
|
|
111
|
-
input:focus,
|
|
112
|
-
select:focus,
|
|
113
|
-
textarea:focus {
|
|
178
|
+
input:focus:not(:disabled),
|
|
179
|
+
select:focus:not(:disabled),
|
|
180
|
+
textarea:focus:not(:disabled) {
|
|
114
181
|
outline: none;
|
|
115
182
|
box-shadow: 0 0 0 0.25rem var(--primary-40, #79adfc);
|
|
116
183
|
border-color: var(--primary-60, #4456f6);
|
|
117
184
|
background-color: var(--white, #fff);
|
|
118
185
|
}
|
|
119
186
|
|
|
120
|
-
input:active,
|
|
121
|
-
select:active,
|
|
122
|
-
textarea:active {
|
|
187
|
+
input:active:not(:disabled),
|
|
188
|
+
select:active:not(:disabled),
|
|
189
|
+
textarea:active:not(:disabled) {
|
|
123
190
|
border-color: var(--primary-50, #5185ff);
|
|
124
191
|
}
|
|
125
192
|
|
|
@@ -128,6 +195,8 @@ select:disabled,
|
|
|
128
195
|
textarea:disabled {
|
|
129
196
|
cursor: not-allowed;
|
|
130
197
|
background-color: var(--gray-10, #f7f8fa);
|
|
198
|
+
color: var(--gray-50, #d8d9dc);
|
|
199
|
+
box-shadow: none;
|
|
131
200
|
}
|
|
132
201
|
|
|
133
202
|
input[type='checkbox'] {
|
|
@@ -271,18 +340,25 @@ button.tertiaryGrey:hover {
|
|
|
271
340
|
border: 1px solid var(--gray-30, #e0e2e5);
|
|
272
341
|
background: var(--white, #ffffff);
|
|
273
342
|
overflow: clip;
|
|
343
|
+
width: 100%;
|
|
274
344
|
}
|
|
275
345
|
|
|
276
346
|
.button-group button {
|
|
277
347
|
display: flex;
|
|
348
|
+
width: 100%;
|
|
278
349
|
background: transparent;
|
|
279
350
|
border-radius: unset;
|
|
280
351
|
padding: 0.25rem 0.75rem;
|
|
281
352
|
min-width: 2.156rem;
|
|
282
|
-
min-height: unset;
|
|
283
353
|
color: var(--gray-80, #6c6e73);
|
|
284
354
|
}
|
|
285
355
|
|
|
356
|
+
.button-group button:disabled {
|
|
357
|
+
background: var(--gray-10, #f7f8fa);
|
|
358
|
+
cursor: not-allowed;
|
|
359
|
+
color: var(--gray-50, #d8d9dc);
|
|
360
|
+
}
|
|
361
|
+
|
|
286
362
|
.button-group button:hover {
|
|
287
363
|
background: var(--gray-10, #f7f8fa);
|
|
288
364
|
}
|
|
@@ -298,4 +374,3 @@ button.tertiaryGrey:hover {
|
|
|
298
374
|
.button-group > :not(:first-child) {
|
|
299
375
|
border-left: 1px solid var(--gray-30, #e0e2e5);
|
|
300
376
|
}
|
|
301
|
-
|
|
@@ -7,14 +7,14 @@ export class LsFieldSize {
|
|
|
7
7
|
// The source of the chain fires the mutation
|
|
8
8
|
alter(diff) {
|
|
9
9
|
const diffs = this.dataItem.map(c => {
|
|
10
|
-
return { action:
|
|
10
|
+
return { action: 'update', data: { ...c, ...diff } };
|
|
11
11
|
});
|
|
12
12
|
this.dataItem = diffs.map(d => d.data);
|
|
13
13
|
this.mutate.emit(diffs);
|
|
14
14
|
this.update.emit(diffs);
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '90092261b158a8c5417d7745b58b8e9a0feb8852' }, h("div", { key: '97b5accd42cf1301a50260f60722e977130952db', class: 'ls-field-properties-section' }, h("div", { key: '302a99cce209ab3435384649e22ded2f17ad8d4b', class: 'ls-field-properties-section-text' }, h("p", { key: 'c4ae8bfd79a563db422b5a9e70076fb6c13e49a7', class: 'ls-field-properties-section-title' }, "Scale and Resize"), h("p", { key: '74911d50258b788e430c1b23171269d3a2aa8596', class: 'ls-field-properties-section-description' }, "Multi-select fields and match their dimensions")), h("div", { key: '665ac7372b6c2728c864de3be654a61677da70fa', class: 'button-group' }, h("button", { key: 'bac5011c1d6b61a6ee5eae3e262f3400fa1d4944', onClick: () => this.alter({ width: this.dataItem[0].width, height: this.dataItem[0].height }), "aria-label": "Make selected fields the same height and width as the first selected field.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Make selected fields the same height and width as the first selected field.", "data-tooltip-place": "top" }, h("ls-icon", { key: '9599ead6bbdc0d994316b97fe9dc00a7875ed7a2', name: "field-scale" })), h("button", { key: '34a921f82812e5c3cf64a794d7ff1ae1f1661adb', "aria-label": "Make selected fields the same width as the first selected field.", onClick: () => this.alter({ width: this.dataItem[0].width }), "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Make selected fields the same width as the first selected field.", "data-tooltip-place": "top" }, h("ls-icon", { key: '597a69fb82f407187d7c5fde43e7144d17aa4be4', name: "field-match-width" })), h("button", { key: 'd05fbbd24ad75268bb64ec82a75fa878f7cbb1b3', onClick: () => this.alter({ height: this.dataItem[0].height }), "aria-label": "Make selected fields the same height as the first selected field.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Make selected fields the same height as the first selected field.", "data-tooltip-place": "top" }, h("ls-icon", { key: 'a3f3f8e51a70e0ba38607e0856718d5534c86456', name: "field-match-height" })))), h("slot", { key: '19e743f951e9ca9c6484941edce58248818052c7' })));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "ls-field-size"; }
|
|
20
20
|
static get encapsulation() { return "shadow"; }
|