legalesign-document-viewer 0.1.3 → 0.1.4
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} +436 -121
- 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 +7 -1
- 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 +31 -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 +162 -53
- 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-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-DT0wHPjN.js → p-BLkddRKK.js} +9 -9
- package/dist/components/{p-DT0wHPjN.js.map → p-BLkddRKK.js.map} +1 -1
- package/dist/components/{p-B_eQ2Gz-.js → p-BM-Xo6D5.js} +7 -7
- package/dist/components/{p-B_eQ2Gz-.js.map → p-BM-Xo6D5.js.map} +1 -1
- package/dist/components/{p-YpxkkST1.js → p-BPk0SaUp.js} +33 -7
- package/dist/components/p-BPk0SaUp.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-DQthTAGK.js → p-BwymH8px.js} +53 -29
- package/dist/components/p-BwymH8px.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-BHOXtRwH.js → p-CNDZcJZC.js} +19 -16
- package/dist/components/p-CNDZcJZC.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-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-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-BM12bWfu.js → p-DkIrni0i.js} +5 -6
- package/dist/components/p-DkIrni0i.js.map +1 -0
- package/dist/components/p-DlVSEuX7.js +77 -0
- package/dist/components/p-DlVSEuX7.js.map +1 -0
- package/dist/components/{p-R3D1POuE.js → p-DsRfjAri.js} +9 -9
- package/dist/components/{p-R3D1POuE.js.map → p-DsRfjAri.js.map} +1 -1
- 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-C-B8sqqJ.js → p-TVDCAFDo.js} +9 -9
- package/dist/components/p-TVDCAFDo.js.map +1 -0
- 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-eh-K0ick.js +77 -0
- package/dist/components/p-eh-K0ick.js.map +1 -0
- package/dist/components/p-rAwrmsb9.js +75 -0
- package/dist/components/p-rAwrmsb9.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} +436 -122
- 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/defaultPalette-C00GqV9f.js.map +1 -1
- package/dist/ls-document-viewer/editorUtils-CHIJ1jsX.js +196 -0
- package/dist/ls-document-viewer/editorUtils-CHIJ1jsX.js.map +1 -0
- package/dist/ls-document-viewer/editorUtils-DsvPQaAu.js +197 -0
- package/dist/ls-document-viewer/editorUtils-DsvPQaAu.js.map +1 -0
- package/dist/ls-document-viewer/ls-document-viewer.entry.js +25033 -0
- package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -1
- package/dist/ls-document-viewer/ls-editor-field.entry.js +133 -0
- package/dist/ls-document-viewer/ls-field-properties-date.entry.js +34 -0
- package/dist/ls-document-viewer/ls-field-properties-email.entry.js +34 -0
- package/dist/ls-document-viewer/ls-field-properties-file.entry.js +34 -0
- package/dist/ls-document-viewer/ls-field-properties-general.entry.js +32 -0
- package/dist/ls-document-viewer/ls-field-properties-image.entry.js +34 -0
- package/dist/ls-document-viewer/ls-field-properties-number.entry.js +34 -0
- package/dist/ls-document-viewer/ls-field-properties-text.entry.js +34 -0
- package/dist/ls-document-viewer/ls-statusbar.entry.js +57 -0
- package/dist/ls-document-viewer/{p-9946fb79.entry.js → p-022e8e6d.entry.js} +21 -6
- package/dist/ls-document-viewer/p-022e8e6d.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/editorUtils-ClLXAGwA.js.map +0 -1
- package/dist/ls-document-viewer/p-9946fb79.entry.js.map +0 -1
package/dist/cjs/{ls-document-options_35.cjs.entry.js → ls-document-options_36.cjs.entry.js}
RENAMED
|
@@ -19960,12 +19960,30 @@ function debounce(func, timeout = 300) {
|
|
|
19960
19960
|
// if a mutation has created a new id then update the dataitem with OLD id to the new one
|
|
19961
19961
|
function matchData(data) {
|
|
19962
19962
|
const newObj = data.result;
|
|
19963
|
-
const
|
|
19964
|
-
console.log(fi, data);
|
|
19963
|
+
const prefix = atob(data.obj.id).substring(0, 3);
|
|
19965
19964
|
// because mutations return the ID back with the mutation name we just assume its the first (and only) JSON prop
|
|
19966
19965
|
const id = newObj[Object.keys(newObj)[0]];
|
|
19967
|
-
|
|
19968
|
-
|
|
19966
|
+
if (data.event.action === 'create') {
|
|
19967
|
+
if (prefix === 'ele') {
|
|
19968
|
+
const fi = this.component.shadowRoot.getElementById('ls-field-' + data.obj.id);
|
|
19969
|
+
fi.setAttribute('id', 'ls-field-' + id);
|
|
19970
|
+
fi.dataItem = { ...data.obj, id };
|
|
19971
|
+
}
|
|
19972
|
+
else if (prefix === 'rol') {
|
|
19973
|
+
var participantManager = this.component.shadowRoot.getElementById('ls-participant-manager');
|
|
19974
|
+
this._template = { ...this._template, roles: [...this._template.roles, { ...data.obj, id }] };
|
|
19975
|
+
participantManager.template = this._template;
|
|
19976
|
+
}
|
|
19977
|
+
}
|
|
19978
|
+
else if (data.event.action === 'delete') {
|
|
19979
|
+
if (prefix === 'rol') {
|
|
19980
|
+
var participantManager = this.component.shadowRoot.getElementById('ls-participant-manager');
|
|
19981
|
+
console.log(this._template);
|
|
19982
|
+
console.log(this._template.roles.filter(r => r.id !== id));
|
|
19983
|
+
this._template = { ...this._template, roles: this._template.roles.filter(r => r.id !== id) };
|
|
19984
|
+
participantManager.template = this._template;
|
|
19985
|
+
}
|
|
19986
|
+
}
|
|
19969
19987
|
}
|
|
19970
19988
|
// Utility function which extracts the type from any API id
|
|
19971
19989
|
function getApiType(obj) {
|
|
@@ -20072,7 +20090,15 @@ const validationTypes = [
|
|
|
20072
20090
|
{ id: 26, description: '✗/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 16, typeDefault: false, inputType: 'text' },
|
|
20073
20091
|
{ id: 74, description: 'File: attach to confirmatory email to sender', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
|
|
20074
20092
|
{ id: 75, description: 'File: append to PDF, PDF files only', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
20075
|
-
{
|
|
20093
|
+
{
|
|
20094
|
+
id: 76,
|
|
20095
|
+
description: 'File: zip with PDF (for internal view, signed PDF for signer)',
|
|
20096
|
+
formType: 'file',
|
|
20097
|
+
defaultHeight: 16,
|
|
20098
|
+
defaultWidth: 200,
|
|
20099
|
+
typeDefault: false,
|
|
20100
|
+
inputType: 'text',
|
|
20101
|
+
},
|
|
20076
20102
|
{ id: 90, description: 'Drawn field.', formType: 'drawn field', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
20077
20103
|
{ id: 2000, description: 'Initials', formType: 'initials', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },
|
|
20078
20104
|
{ id: 93, description: 'Regular Expression field', formType: 'regular expression', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },
|
|
@@ -24344,7 +24370,7 @@ const updateRole = (role) => {
|
|
|
24344
24370
|
};
|
|
24345
24371
|
|
|
24346
24372
|
// Add a role
|
|
24347
|
-
const updateTemplate =
|
|
24373
|
+
const updateTemplate = template => {
|
|
24348
24374
|
return `
|
|
24349
24375
|
mutation updateTemplate {
|
|
24350
24376
|
updateTemplate(input: {
|
|
@@ -24377,9 +24403,15 @@ const getTemplate = (id) => {
|
|
|
24377
24403
|
createdBy
|
|
24378
24404
|
lastSent
|
|
24379
24405
|
fixSignatureScale
|
|
24406
|
+
groupId
|
|
24380
24407
|
roles{
|
|
24381
24408
|
id
|
|
24409
|
+
name
|
|
24410
|
+
roleType
|
|
24382
24411
|
signerIndex
|
|
24412
|
+
ordinal
|
|
24413
|
+
signerParent
|
|
24414
|
+
experience
|
|
24383
24415
|
}
|
|
24384
24416
|
elementConnection {
|
|
24385
24417
|
templateElements {
|
|
@@ -24480,7 +24512,7 @@ class LsDocumentAdapter {
|
|
|
24480
24512
|
break;
|
|
24481
24513
|
}
|
|
24482
24514
|
const result = await this.execute(accessToken, query);
|
|
24483
|
-
return { result, obj };
|
|
24515
|
+
return { result, obj, event };
|
|
24484
24516
|
};
|
|
24485
24517
|
/**
|
|
24486
24518
|
* Run a general query or mutation against the GraphQL API.
|
|
@@ -24507,6 +24539,101 @@ class LsDocumentAdapter {
|
|
|
24507
24539
|
}
|
|
24508
24540
|
}
|
|
24509
24541
|
|
|
24542
|
+
const getGroupData = (id) => {
|
|
24543
|
+
return `
|
|
24544
|
+
query getGroupData {
|
|
24545
|
+
group(id: "${id}"){
|
|
24546
|
+
id
|
|
24547
|
+
standardMessageConnection{
|
|
24548
|
+
messages {
|
|
24549
|
+
id
|
|
24550
|
+
name
|
|
24551
|
+
default
|
|
24552
|
+
body
|
|
24553
|
+
created
|
|
24554
|
+
modified
|
|
24555
|
+
}
|
|
24556
|
+
}
|
|
24557
|
+
scheduleConnection {
|
|
24558
|
+
schedules {
|
|
24559
|
+
id
|
|
24560
|
+
name
|
|
24561
|
+
items {
|
|
24562
|
+
id
|
|
24563
|
+
daysAfter
|
|
24564
|
+
frequency
|
|
24565
|
+
subject
|
|
24566
|
+
message
|
|
24567
|
+
when
|
|
24568
|
+
timeOfDay
|
|
24569
|
+
skipWeekend
|
|
24570
|
+
}
|
|
24571
|
+
default
|
|
24572
|
+
}
|
|
24573
|
+
}
|
|
24574
|
+
experienceConnection{
|
|
24575
|
+
experiences {
|
|
24576
|
+
id
|
|
24577
|
+
name
|
|
24578
|
+
language
|
|
24579
|
+
defaultExperience
|
|
24580
|
+
witnessSameDevice
|
|
24581
|
+
allowSignatureReuse
|
|
24582
|
+
attachDraft
|
|
24583
|
+
canReassign
|
|
24584
|
+
defaultReminderSubject
|
|
24585
|
+
defaultSubject
|
|
24586
|
+
finalSignerEmailSubHeader
|
|
24587
|
+
finalSignerEmailText
|
|
24588
|
+
footerTextColour
|
|
24589
|
+
forwarding
|
|
24590
|
+
penDiameter
|
|
24591
|
+
postSignAttach
|
|
24592
|
+
postSignEmail
|
|
24593
|
+
rejectedEmailSubheader
|
|
24594
|
+
senderName
|
|
24595
|
+
signatureAppendDate
|
|
24596
|
+
signatureDoneText
|
|
24597
|
+
signatureMouse
|
|
24598
|
+
signatureType
|
|
24599
|
+
signatureCertifiedType
|
|
24600
|
+
signatureUpload
|
|
24601
|
+
signatureAppend
|
|
24602
|
+
signatureAppendExtra
|
|
24603
|
+
signingPageText
|
|
24604
|
+
textBackgroundColour
|
|
24605
|
+
textFontColour
|
|
24606
|
+
typedSignatureFixedSize
|
|
24607
|
+
created
|
|
24608
|
+
modified
|
|
24609
|
+
witnessingRequiresSignerSMS
|
|
24610
|
+
witnessingRequiresWitnessSMS
|
|
24611
|
+
}
|
|
24612
|
+
}
|
|
24613
|
+
attachmentConnection {
|
|
24614
|
+
attachments {
|
|
24615
|
+
id
|
|
24616
|
+
filename
|
|
24617
|
+
autoAttach
|
|
24618
|
+
description
|
|
24619
|
+
created
|
|
24620
|
+
}
|
|
24621
|
+
}
|
|
24622
|
+
contactConnection {
|
|
24623
|
+
contacts{
|
|
24624
|
+
id
|
|
24625
|
+
firstName
|
|
24626
|
+
lastName
|
|
24627
|
+
email
|
|
24628
|
+
phoneNumber
|
|
24629
|
+
name
|
|
24630
|
+
}
|
|
24631
|
+
}
|
|
24632
|
+
}
|
|
24633
|
+
}
|
|
24634
|
+
`;
|
|
24635
|
+
};
|
|
24636
|
+
|
|
24510
24637
|
const lsDocumentViewerCss = "*,*::before,*::after{box-sizing:border-box}*{margin:0}@media (prefers-reduced-motion: no-preference){html{interpolate-size:allow-keywords}}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}p{text-wrap:pretty}h1,h2,h3,h4,h5,h6{text-wrap:balance}#root,#__next{isolation:isolate}:host{display:flex;flex-direction:row;width:100vw;height:100vh;margin:0px;padding:0px}#my-field-panel{position:relative;height:calc(100% - 4.313rem)}.leftBox{border-radius:16px;border:1px solid var(--gray-30, #edeff2);background:var(--white, #fff);box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);width:21.25rem;margin:1rem;min-width:21.25rem;max-height:100%}.left-box-inner{position:relative;display:flex;height:100%;padding:0.75rem;gap:0.75rem}.rightBox{width:200px;border:1px gray solid;width:470px;min-width:390px;padding:4px;font-family:inherit}.toolbox{display:flex;flex-direction:column;width:100%;height:100%;border-radius:8px;border:1px solid var(--gray-30, #e0e2e5);background:var(--gray-10, #f7f8fa);padding:0.75rem;gap:1rem;overflow-y:auto}.ls-editor-infobox{padding:2px 8px 2px 8px}#pdf-canvas{top:0px;left:0px;width:100px;height:100px}#ls-mid-area{display:flex;flex-direction:column;width:100%}.document-frame-wrapper{position:relative;padding:0 1.25rem;height:100%;display:flex;flex-direction:column;justify-content:start;align-items:center;overflow-y:auto}.spacer{min-height:5.5rem;width:100%}#ls-document-frame{position:relative;height:98vh;max-width:100%;max-height:100%;margin:0px;padding:2px;scrollbar-width:auto;scrollbar-color:auto}.prevButton{position:relative;bottom:30px}.nextButton{position:relative;bottom:30px}.fieldBox{z-index:1000}#ls-box-selector{position:absolute;visibility:hidden;background-color:transparent;border:1px rgba(71, 71, 71, 0.716) dashed}#ls-editor-form{display:flex;width:100vw;max-height:calc(100vh - 2.25rem);position:relative;background:var(--gray-10, #f7f8fa);box-shadow:0 2px 6px 0 rgba(0, 0, 0, 0.04) inset, 0 10px 15px 0 rgba(0, 0, 0, 0.04) inset}.hidden{visibility:hidden;display:none;width:0px}.toolbox-section-title{color:var(--gray-100, #45484d);font-size:1.125rem;font-style:normal;font-weight:500;line-height:1.75rem;}.toolbox-section-description{color:var(--gray-80, #5e6066);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem}.fields-box{display:flex;flex-direction:column;gap:0.75rem}.page-header{display:flex;height:2.25rem;gap:0.5rem;padding:0.25rem 0.75rem;justify-content:center;align-items:center}.header-text-1{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem}.header-text-2{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:400;line-height:1.25rem}.properties-header{display:flex;padding:1rem;gap:0.75rem;align-items:center;border-bottom:1px solid var(--gray-20, #edeff2)}.properties-header-title{color:var(--gray-100, #45484d);width:100%;font-size:1.5rem;font-style:normal;font-weight:500;line-height:2rem;}.properties-header-icon{display:flex;padding:0.5rem;border-radius:0.625rem;background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.expand-fields-row{display:flex;align-items:center;gap:0.5rem;padding:0.5rem;cursor:pointer;color:var(--gray-80, #6c6e73);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;}.expand-fields-row p{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem;}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:36px}.input-wrapper{position:relative;width:fit-content}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.field-properties-outer{position:relative;height:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6c6e73)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}";
|
|
24511
24638
|
|
|
24512
24639
|
pdfExports.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.5.207/pdf.worker.min.js';
|
|
@@ -24563,6 +24690,7 @@ const LsDocumentViewer = class {
|
|
|
24563
24690
|
pageNum = 1; // hardcoded to start at the page 1
|
|
24564
24691
|
signer = 0; // hardcoded to start at the page 1
|
|
24565
24692
|
_template;
|
|
24693
|
+
_group;
|
|
24566
24694
|
selected;
|
|
24567
24695
|
/**
|
|
24568
24696
|
* An ease of use property that will arrange document-viewer appropraitely.
|
|
@@ -24672,10 +24800,7 @@ const LsDocumentViewer = class {
|
|
|
24672
24800
|
mutateHandler(event) {
|
|
24673
24801
|
console.log(event);
|
|
24674
24802
|
if (this.token)
|
|
24675
|
-
event.detail.forEach(me => this.adapter.handleEvent(me, this.token).then(result =>
|
|
24676
|
-
if (me.action === 'create')
|
|
24677
|
-
matchData.bind(this)(result);
|
|
24678
|
-
}));
|
|
24803
|
+
event.detail.forEach(me => this.adapter.handleEvent(me, this.token).then(result => matchData.bind(this)(result)));
|
|
24679
24804
|
}
|
|
24680
24805
|
// Updates are internal event between LS controls not to be confused with mutate
|
|
24681
24806
|
updateHandler(event) {
|
|
@@ -24684,6 +24809,7 @@ const LsDocumentViewer = class {
|
|
|
24684
24809
|
}
|
|
24685
24810
|
// Send selection changes to bars and panels if in use.
|
|
24686
24811
|
selectFieldsHandler(event) {
|
|
24812
|
+
console.log(event.detail);
|
|
24687
24813
|
var toolbar = this.component.shadowRoot.getElementById('ls-toolbar');
|
|
24688
24814
|
if (toolbar)
|
|
24689
24815
|
toolbar.dataItem = event.detail;
|
|
@@ -24767,6 +24893,7 @@ const LsDocumentViewer = class {
|
|
|
24767
24893
|
elementConnection: { ...newTemplate.elementConnection, templateElements: fields },
|
|
24768
24894
|
roles: preparedRoles,
|
|
24769
24895
|
};
|
|
24896
|
+
console.log(this._template);
|
|
24770
24897
|
}
|
|
24771
24898
|
/**
|
|
24772
24899
|
* Render the page based on pageNumber
|
|
@@ -24825,7 +24952,6 @@ const LsDocumentViewer = class {
|
|
|
24825
24952
|
}
|
|
24826
24953
|
// internal forced change
|
|
24827
24954
|
syncChange(update) {
|
|
24828
|
-
console.log('sync');
|
|
24829
24955
|
if (getApiType(update.data) === 'element') {
|
|
24830
24956
|
if (update.action === 'create') {
|
|
24831
24957
|
const newData = { ...update.data, page: this.pageNum };
|
|
@@ -24892,10 +25018,12 @@ const LsDocumentViewer = class {
|
|
|
24892
25018
|
});
|
|
24893
25019
|
}
|
|
24894
25020
|
async load() {
|
|
25021
|
+
// Get all template and group listing data.
|
|
24895
25022
|
try {
|
|
24896
25023
|
const result = (await this.adapter.execute(this.token, getTemplate(this.templateid)));
|
|
24897
25024
|
this.parseTemplate(JSON.stringify(result.template));
|
|
24898
|
-
|
|
25025
|
+
const resultGroup = (await this.adapter.execute(this.token, getGroupData(this._template.groupId)));
|
|
25026
|
+
this._group = resultGroup.group;
|
|
24899
25027
|
this.initViewer();
|
|
24900
25028
|
}
|
|
24901
25029
|
catch (e) {
|
|
@@ -24910,7 +25038,7 @@ const LsDocumentViewer = class {
|
|
|
24910
25038
|
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
24911
25039
|
};
|
|
24912
25040
|
render() {
|
|
24913
|
-
return (index.h(index.Host, { key: '
|
|
25041
|
+
return (index.h(index.Host, { key: 'f0fc2b823aa34e9602080b6f43fa3d6a17644905' }, index.h(index.h.Fragment, null, index.h("div", { key: '9df7db9dd181820cc6c192edc1a93984a8a027a7', class: "page-header" }, index.h("p", { key: '43e253591b967eff115f0e95f39c42dda5370f65', class: "header-text-1" }, "Template Creation"), index.h("p", { key: '27a2c45ef973ed2a39a88506dd4a3e36748fa861' }, "/"), index.h("p", { key: 'a31c7b901fe689d11208fc7dccc76838fbb126d0', class: "header-text-2" }, "Template Name")), index.h("form", { key: '7bad0edc525c32943bea2a39eca6de3515287263', id: "ls-editor-form" }, this.showtoolbox === true ? (index.h("div", { class: "leftBox" }, index.h("div", { class: !this.selected || this.selected.length === 0 ? 'left-box-inner' : 'hidden' }, index.h("ls-feature-column", { onManage: manager => {
|
|
24914
25042
|
if (manager.detail === 'document') {
|
|
24915
25043
|
var documentManager = this.component.shadowRoot.getElementById('ls-document-options');
|
|
24916
25044
|
documentManager.template = this._template;
|
|
@@ -24920,10 +25048,10 @@ const LsDocumentViewer = class {
|
|
|
24920
25048
|
participantManager.template = this._template;
|
|
24921
25049
|
}
|
|
24922
25050
|
this.manager = manager.detail;
|
|
24923
|
-
} }), index.h("div", { id: "ls-toolbox", class: this.manager === 'toolbox' ? 'toolbox' : 'hidden' }, index.h("div", { class: "ls-editor-infobox" }, index.h("h2", { class: "toolbox-section-title" }, "Participant Fields"), index.h("p", { class: "toolbox-section-description" }, "Select and Click to place Signature fields where you\u2019d like on the Document.")), index.h("div", { class: "fields-box" }, index.h("ls-toolbox-field", { elementType: "signature", formElementType: "signature", label: "Signature", defaultHeight: 27, defaultWidth: 120, validation: 0, icon: "signature", color: this.signerColor(this.signer) }), index.h("ls-toolbox-field", { elementType: "initials", formElementType: "initials", label: "Initials", defaultHeight: 27, defaultWidth: 120, validation: 2000, icon: "initials", color: this.signerColor(this.signer) }), index.h("ls-toolbox-field", { elementType: "date", formElementType: "date", label: "Date", defaultHeight: 27, defaultWidth: 80, validation: 2, icon: "calender", color: this.signerColor(this.signer) }), index.h("ls-toolbox-field", { elementType: "signing date", formElementType: "signing date", label: "Signing Date", defaultHeight: 27, defaultWidth: 120, validation: 30, icon: "auto-date", color: this.signerColor(this.signer) }), index.h("ls-toolbox-field", { elementType: "email", formElementType: "email", label: "Email", defaultHeight: 27, defaultWidth: 120, validation: 1, icon: "at-symbol", color: this.signerColor(this.signer) }), index.h("ls-toolbox-field", { elementType: "text", formElementType: "text", label: "Text", defaultHeight: 27, defaultWidth: 100, validation: 0, icon: "text", color: this.signerColor(this.signer) }), index.h("div", { class: 'expand-fields-row' }, index.h("ls-icon", { name: this.expandfields ? 'expand' : 'collapse', size: "20", solid: true
|
|
25051
|
+
} }), index.h("div", { id: "ls-toolbox", class: this.manager === 'toolbox' ? 'toolbox' : 'hidden' }, index.h("div", { class: "ls-editor-infobox" }, index.h("h2", { class: "toolbox-section-title" }, "Participant Fields"), index.h("p", { class: "toolbox-section-description" }, "Select and Click to place Signature fields where you\u2019d like on the Document.")), index.h("div", { class: "fields-box" }, this.signer > 0 ? (index.h("ls-toolbox-field", { elementType: "signature", formElementType: "signature", label: "Signature", defaultHeight: 27, defaultWidth: 120, validation: 0, icon: "signature", color: this.signerColor(this.signer) })) : (index.h("ls-toolbox-field", { elementType: "auto sign", formElementType: "auto sign", label: "Auto Sign", defaultHeight: 27, defaultWidth: 120, validation: 3000, icon: "auto-sign", color: this.signerColor(this.signer) })), index.h("ls-toolbox-field", { elementType: "initials", formElementType: "initials", label: "Initials", defaultHeight: 27, defaultWidth: 120, validation: 2000, icon: "initials", color: this.signerColor(this.signer) }), index.h("ls-toolbox-field", { elementType: "date", formElementType: "date", label: "Date", defaultHeight: 27, defaultWidth: 80, validation: 2, icon: "calender", color: this.signerColor(this.signer) }), index.h("ls-toolbox-field", { elementType: "signing date", formElementType: "signing date", label: "Signing Date", defaultHeight: 27, defaultWidth: 120, validation: 30, icon: "auto-date", color: this.signerColor(this.signer) }), index.h("ls-toolbox-field", { elementType: "email", formElementType: "email", label: "Email", defaultHeight: 27, defaultWidth: 120, validation: 1, icon: "at-symbol", color: this.signerColor(this.signer) }), index.h("ls-toolbox-field", { elementType: "text", formElementType: "text", label: "Text", defaultHeight: 27, defaultWidth: 100, validation: 0, icon: "text", color: this.signerColor(this.signer) }), index.h("div", { class: 'expand-fields-row', onClick: () => (this.expandfields = !this.expandfields) }, index.h("ls-icon", { name: this.expandfields ? 'expand' : 'collapse', size: "20", solid: true }), index.h("p", null, "More Field Types")), this.expandfields && (index.h("div", { class: "fields-box" }, index.h("ls-toolbox-field", { elementType: "number", formElementType: "number", label: "Number", defaultHeight: 27, defaultWidth: 80, validation: 50, icon: "hashtag", color: this.signerColor(this.signer) }), index.h("ls-toolbox-field", { elementType: "checkbox", formElementType: "checkbox", label: "Checkbox", defaultHeight: 27, defaultWidth: 27, validation: 25, icon: "check", color: this.signerColor(this.signer) }), index.h("ls-toolbox-field", { elementType: "regex", formElementType: "regex", label: "Regex", defaultHeight: 27, defaultWidth: 120, validation: 93, icon: "code", color: this.signerColor(this.signer) }), index.h("ls-toolbox-field", { elementType: "image", formElementType: "image", label: "Image", defaultHeight: 27, defaultWidth: 120, validation: 90, icon: "photograph", color: this.signerColor(this.signer) }), index.h("ls-toolbox-field", { elementType: "file", formElementType: "file", label: "File", defaultHeight: 27, defaultWidth: 120, validation: 74, icon: "upload", color: this.signerColor(this.signer) }))))), index.h("ls-participant-manager", { id: "ls-participant-manager", class: this.manager === 'participant' ? 'toolbox' : 'hidden', editor: this }), index.h("ls-document-options", { id: "ls-document-options", class: this.manager === 'document' ? 'toolbox' : 'hidden' })), this.showrightpanel && !this.displayTable && (index.h("div", { class: this.selected && this.selected.length > 0 ? 'field-properties-outer' : 'hidden' }, index.h("div", { class: 'properties-header' }, index.h("div", { class: 'properties-header-icon' }, index.h("ls-icon", { name: "pre-filled-content" })), index.h("h1", { class: 'properties-header-title' }, "Field Properties"), index.h("button", { class: 'tertiaryGrey', onClick: e => {
|
|
24924
25052
|
this.selected = [];
|
|
24925
25053
|
e.preventDefault();
|
|
24926
|
-
} }, index.h("ls-icon", { name: "x", size: "20" }))), index.h("ls-field-properties", { id: "my-field-panel" }), index.h("slot", null))))) : (index.h(index.h.Fragment, null)), index.h("div", { key: '
|
|
25054
|
+
} }, index.h("ls-icon", { name: "x", size: "20" }))), index.h("ls-field-properties", { id: "my-field-panel" }), index.h("slot", null))))) : (index.h(index.h.Fragment, null)), index.h("div", { key: '776dff168c249752f400db7b80e740f3e2684e60', id: "ls-mid-area" }, index.h("ls-toolbar", { key: '7084a21f22f891d6fb33c1642b6167dbe674268f', id: "ls-toolbar", dataItem: this.selected ? this.selected.map(s => s.dataItem) : null, template: this._template }), index.h("div", { key: '8276d3e37a4171b82ab9d5d9913447a23e583d91', class: 'document-frame-wrapper' }, index.h("div", { key: '746d82daa6ebdd758c12f343d88ee7d8cc6742a6', class: 'spacer' }), index.h("div", { key: '4f5c297f03666429ad49331c768413b48a5ec397', id: "ls-document-frame" }, index.h("canvas", { key: 'f3042a35c1f9b9b91973cb87e11019a2488687a3', id: "pdf-canvas", class: this.displayTable ? 'hidden' : '' }), index.h("ls-editor-table", { key: '9005b00b5e5b56c568a26ee79be8636c8280bb93', editor: this, class: this.displayTable ? '' : 'hidden' }), index.h("div", { key: '88ba70e9e18d000cca60eaaa77bf976e0e019fa6', id: "ls-box-selector" }))), index.h("ls-statusbar", { key: '634e045de512429e15fff2680def5ce870bf2142', editor: this }))))));
|
|
24927
25055
|
}
|
|
24928
25056
|
static get watchers() { return {
|
|
24929
25057
|
"mode": ["modeHandler"],
|
|
@@ -25046,11 +25174,10 @@ const LsEditorField = class {
|
|
|
25046
25174
|
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
25047
25175
|
};
|
|
25048
25176
|
render() {
|
|
25049
|
-
|
|
25050
|
-
return (index.h(index.Host, { key: 'ddff7fdaa6832313753e0fb32b085425bddb9962', style: { border: `2px solid var(--${this.participantColor(this.dataItem?.signer)}-60)` } }, index.h("div", { key: '43c0e90e8d68462a34fdb4d31a90cf08a5c87994', class: {
|
|
25177
|
+
return (index.h(index.Host, { key: 'f4ab6bc46e4cdbd1b2bd3b18d08703369af685b9', style: { border: `2px solid var(--${this.participantColor(this.dataItem?.signer)}-60)` } }, index.h("div", { key: '8b8a45c0acdc4342f95abf5884b60064408c2562', class: {
|
|
25051
25178
|
'ls-editor-field': true,
|
|
25052
25179
|
'is-selected': this.selected,
|
|
25053
|
-
} }, index.h("input", { key: '
|
|
25180
|
+
} }, index.h("input", { key: '18d0df23d55da5ca5e9a1ead1bf32797b21c8e70', id: "editing-input", class: this.isEditing ? 'ls-editor-field-editable' : 'hidden-field', type: getInputType(this.dataItem.validation).inputType, value: this.dataItem?.value || this.innerValue, onChange: e => this.onInputChange(e) }), index.h("div", { key: '1756931604edf30a6e30b055f56b70e07dd077a8', id: "field-info", class: this.isEditing ? 'hidden-field' : 'ls-editor-field-draggable' }, this.innerValue || this.dataItem?.label || this.dataItem?.formElementType))));
|
|
25054
25181
|
}
|
|
25055
25182
|
static get watchers() { return {
|
|
25056
25183
|
"selected": ["watchSelectedHandler"]
|
|
@@ -25122,7 +25249,7 @@ const LsFeatureColoumn = class {
|
|
|
25122
25249
|
};
|
|
25123
25250
|
LsFeatureColoumn.style = lsFeatureColumnCss;
|
|
25124
25251
|
|
|
25125
|
-
const lsFieldAlignmentCss = ":host{display:
|
|
25252
|
+
const lsFieldAlignmentCss = ":host{display:flex;flex-direction:column;gap:1rem;width:100%;position:relative}*{margin:0;box-sizing:border-box}.field-set{display:flex;flex-direction:column;gap:1rem;width:100%}.ls-field-properties-section{display:flex;position:relative;flex-direction:column;gap:0.5rem}.row{flex-direction:row;align-items:center;justify-content:space-between}.multi-button-group-row{display:flex;gap:0.5rem}.ls-field-properties-section-text{display:flex;flex-direction:column;gap:0.25rem;padding:0.25rem}.ls-field-properties-section-title{color:var(--gray-90, #5e6066);font-size:1rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-field-properties-section-description{overflow:hidden;color:var(--gray-80, #6c6e73);text-overflow:ellipsis;font-size:0.75rem;font-style:normal;font-weight:400;line-height:0.75rem;}.input-row{display:flex;gap:0.5rem}.input-row .input-wrapper input{width:9.313rem;max-width:9.313rem}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:36px}.input-wrapper{position:relative;width:100%}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIconDisabled{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-50, #d8d9dc)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover:not(:disabled),select:hover:not(:disabled),textarea:hover:not(:disabled){border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus:not(:disabled),select:focus:not(:disabled),textarea:focus:not(:disabled){outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active:not(:disabled),select:active:not(:disabled),textarea:active:not(:disabled){border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa);color:var(--gray-50, #d8d9dc);box-shadow:none}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip;width:100%}.button-group button{display:flex;width:100%;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;color:var(--gray-80, #6c6e73)}.button-group button:disabled{background:var(--gray-10, #f7f8fa);cursor:not-allowed;color:var(--gray-50, #d8d9dc)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}";
|
|
25126
25253
|
|
|
25127
25254
|
const LsFieldAlignment = class {
|
|
25128
25255
|
constructor(hostRef) {
|
|
@@ -25138,7 +25265,7 @@ const LsFieldAlignment = class {
|
|
|
25138
25265
|
alter(diff) {
|
|
25139
25266
|
console.log(diff);
|
|
25140
25267
|
const diffs = this.dataItem.map(c => {
|
|
25141
|
-
return { action:
|
|
25268
|
+
return { action: 'update', data: { ...c, ...diff } };
|
|
25142
25269
|
});
|
|
25143
25270
|
this.dataItem = diffs.map(d => d.data);
|
|
25144
25271
|
this.mutate.emit(diffs);
|
|
@@ -25146,18 +25273,19 @@ const LsFieldAlignment = class {
|
|
|
25146
25273
|
}
|
|
25147
25274
|
right() {
|
|
25148
25275
|
const rightmost = this.dataItem.reduce((rightmost, current) => {
|
|
25149
|
-
return
|
|
25276
|
+
return current.left + current.width < rightmost ? rightmost : current.left + current.width;
|
|
25150
25277
|
}, 0);
|
|
25151
25278
|
console.log(rightmost);
|
|
25152
|
-
const diffs = this.dataItem.map(
|
|
25279
|
+
const diffs = this.dataItem.map(c => {
|
|
25153
25280
|
const newLeft = rightmost - c.width;
|
|
25154
25281
|
return {
|
|
25155
|
-
action:
|
|
25282
|
+
action: 'update',
|
|
25283
|
+
data: {
|
|
25156
25284
|
...c,
|
|
25157
25285
|
left: newLeft,
|
|
25158
25286
|
ax: newLeft,
|
|
25159
|
-
bx: newLeft + c.width
|
|
25160
|
-
}
|
|
25287
|
+
bx: newLeft + c.width,
|
|
25288
|
+
},
|
|
25161
25289
|
};
|
|
25162
25290
|
});
|
|
25163
25291
|
this.dataItem = diffs.map(d => d.data);
|
|
@@ -25172,15 +25300,16 @@ const LsFieldAlignment = class {
|
|
|
25172
25300
|
console.log(addcentres);
|
|
25173
25301
|
const cp = addcentres / this.dataItem.length;
|
|
25174
25302
|
console.log('centerposition', cp);
|
|
25175
|
-
const diffs = this.dataItem.map(
|
|
25303
|
+
const diffs = this.dataItem.map(c => {
|
|
25176
25304
|
const newLeft = c.left + (cp - (c.left + c.width / 2));
|
|
25177
25305
|
return {
|
|
25178
|
-
action:
|
|
25306
|
+
action: 'update',
|
|
25307
|
+
data: {
|
|
25179
25308
|
...c,
|
|
25180
25309
|
left: newLeft,
|
|
25181
25310
|
ax: newLeft,
|
|
25182
|
-
bx: newLeft + c.width
|
|
25183
|
-
}
|
|
25311
|
+
bx: newLeft + c.width,
|
|
25312
|
+
},
|
|
25184
25313
|
};
|
|
25185
25314
|
});
|
|
25186
25315
|
console.log(diffs);
|
|
@@ -25206,15 +25335,16 @@ const LsFieldAlignment = class {
|
|
|
25206
25335
|
return total + (current.top + current.height / 2);
|
|
25207
25336
|
}, 0);
|
|
25208
25337
|
const cp = addmiddles / this.dataItem.length;
|
|
25209
|
-
const diffs = this.dataItem.map(
|
|
25338
|
+
const diffs = this.dataItem.map(c => {
|
|
25210
25339
|
const newTop = c.top + (cp - (c.top + c.height / 2));
|
|
25211
25340
|
return {
|
|
25212
|
-
action:
|
|
25341
|
+
action: 'update',
|
|
25342
|
+
data: {
|
|
25213
25343
|
...c,
|
|
25214
25344
|
top: newTop,
|
|
25215
25345
|
ay: newTop,
|
|
25216
|
-
by: newTop + c.height
|
|
25217
|
-
}
|
|
25346
|
+
by: newTop + c.height,
|
|
25347
|
+
},
|
|
25218
25348
|
};
|
|
25219
25349
|
});
|
|
25220
25350
|
this.dataItem = diffs.map(d => d.data);
|
|
@@ -25223,17 +25353,18 @@ const LsFieldAlignment = class {
|
|
|
25223
25353
|
}
|
|
25224
25354
|
bottom() {
|
|
25225
25355
|
const lowest = this.dataItem.reduce((acc, current) => {
|
|
25226
|
-
return acc >
|
|
25356
|
+
return acc > current.top + current.height ? acc : current.top + current.height;
|
|
25227
25357
|
}, 0);
|
|
25228
|
-
const diffs = this.dataItem.map(
|
|
25358
|
+
const diffs = this.dataItem.map(c => {
|
|
25229
25359
|
const newTop = lowest - c.height;
|
|
25230
25360
|
return {
|
|
25231
|
-
action:
|
|
25361
|
+
action: 'update',
|
|
25362
|
+
data: {
|
|
25232
25363
|
...c,
|
|
25233
25364
|
top: newTop,
|
|
25234
25365
|
ay: newTop,
|
|
25235
|
-
by: newTop + c.height
|
|
25236
|
-
}
|
|
25366
|
+
by: newTop + c.height,
|
|
25367
|
+
},
|
|
25237
25368
|
};
|
|
25238
25369
|
});
|
|
25239
25370
|
this.dataItem = diffs.map(d => d.data);
|
|
@@ -25241,7 +25372,9 @@ const LsFieldAlignment = class {
|
|
|
25241
25372
|
this.update.emit(diffs);
|
|
25242
25373
|
}
|
|
25243
25374
|
render() {
|
|
25244
|
-
return (index.h(index.Host, { key: '
|
|
25375
|
+
return (index.h(index.Host, { key: '18c2511fb41da7dbae34231108af7a0553ddd5e9' }, index.h("div", { key: '914df99828f9994f8398fe3cf1de0db1e8bb8bc0', class: 'ls-field-properties-section' }, index.h("div", { key: 'eb2a2ead947b5ccb161da1fb711ba0aecd4f1f1e', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'eedf0321ec75bb9670e926a2951fd85cd02196f7', class: 'ls-field-properties-section-title' }, "Alignment"), index.h("p", { key: '87ebbfeb998ce91a216b624332dc70019cd7a899', class: 'ls-field-properties-section-description' }, "Align your Fields relative to the page or multi-select and align then to each other.")), index.h("div", { key: '6fb940d7a554c6750eda85dced92a3e762ef5481', class: 'multi-button-group-row' }, index.h("div", { key: '0dae4f26f528c7797148101e5552856680d707b0', class: 'button-group' }, index.h("button", { key: '0184ce8b491fc9ac2775d10dd18402239352d8b4', onClick: () => this.left(), "aria-label": "Align selected fields vertically about their left edge.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Shift + Select multiple fields to access this control", "data-tooltip-place": "top" }, index.h("ls-icon", { key: '2dd926828e25e526bdbbfe8f42a82ccf2f1d4383', name: "field-alignment-left" })), index.h("button", { key: 'a6115447dee38c833bd63c7bf773b8cd33645749', onClick: () => this.center(), "aria-label": "Align selected fields vertically about their centre.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Shift + Select multiple fields to access this control", "data-tooltip-place": "top" }, index.h("ls-icon", { key: '1d54aa128a5ae7353e2f976b5985f4523fccdc7b', name: "field-alignment-centre" })), index.h("button", { key: 'd61a31635f469007f65c1314c6f3404bfb7894f4', onClick: () => {
|
|
25376
|
+
this.right();
|
|
25377
|
+
}, "aria-label": "Align selected fields vertically about their right edge.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Shift + Select multiple fields to access this control", "data-tooltip-place": "top" }, index.h("ls-icon", { key: '6401e05b124c616922b7f5542d41de506fa1ae04', name: "field-alignment-right" }))), index.h("div", { key: '5a924ac1d3d04a626ffb8a19f95c4ee7c7a78d5b', class: 'button-group' }, index.h("button", { key: '3b03cbc294b1fae5e19465077880ad347c0b5251', onClick: () => this.top(), "aria-label": "Align selected fields by their top.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Shift + Select multiple fields to access this control", "data-tooltip-place": "top" }, index.h("ls-icon", { key: 'c16889d194be3d2b5f6dedb0a9db55902b125eef', name: "field-alignment-top" })), index.h("button", { key: '50e776898be6e43c642d666e76ef139f62ad014e', onClick: () => this.middle(), "aria-label": "Align selected fields by their middles.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Shift + Select multiple fields to access this control", "data-tooltip-place": "top" }, index.h("ls-icon", { key: '4d1b4051bc6eafb28ef20d96f1f7abf70cbc2338', name: "field-alignment-middle" })), index.h("button", { key: '405eca6c636b9e4fef7223bd0882f3b52d54166b', onClick: () => this.bottom(), "aria-label": "Align selected fields by their bottoms.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Shift + Select multiple fields to access this control", "data-tooltip-place": "top" }, index.h("ls-icon", { key: 'e4e82550d98afdacaa79cccef417128940e6d148', name: "field-alignment-bottom" }))))), index.h("slot", { key: '34964508c02209a6ccea4855cfec5d94078471ea' })));
|
|
25245
25378
|
}
|
|
25246
25379
|
};
|
|
25247
25380
|
LsFieldAlignment.style = lsFieldAlignmentCss;
|
|
@@ -25283,12 +25416,12 @@ const LsFieldDimensions = class {
|
|
|
25283
25416
|
}
|
|
25284
25417
|
}
|
|
25285
25418
|
render() {
|
|
25286
|
-
return (index.h(index.Host, { key: '
|
|
25419
|
+
return (index.h(index.Host, { key: '056c4e012cde64ce461fb954f393cc5eb264c4f1' }, this.isMultiple(this.dataItem) && (index.h("div", { key: '2cd01260598ea4f6cd7b40dffd502c6a642007c6', class: 'ls-field-properties-section' }, index.h("div", { key: 'e843fa2769ecb1889677ad85e87a79d1dc8b03f6', class: 'ls-field-properties-section-text' }, index.h("p", { key: '140e8ffaea2a163387345041f2039b68c8393012', class: 'ls-field-properties-section-title' }, "Height and Width"), index.h("p", { key: 'abef468582e2e7829f869a14539c22f1db839169', class: 'ls-field-properties-section-description' }, "Define the height and width of one or multiple fields")), index.h("div", { key: 'dd5819291b738c8866f84d88d85f1f1d78c4987e', class: 'input-row' }, index.h("div", { key: '87d5c1913299a43e1cbd093e2c579591bdc80327', class: 'input-wrapper' }, index.h("ls-icon", { key: '861a92289f7383ab6773bca9b2e240332e720a04', id: "selectLeadingIcon", name: "field-match-width" }), index.h("input", { key: 'aa1fc66abfa15670e682d39304178f91f3e9d05d', class: 'has-leading-icon', aria: "field-width", id: "field-width", onChange: e => this.alter({ width: e.target.value }) })), index.h("div", { key: '3c4293cae6df7fb0447c670e32f7fd4f2bcedfee', class: 'input-wrapper' }, index.h("ls-icon", { key: '4042d2ce39b5aa40e712673651ab82ee4c0e1ff2', id: "selectLeadingIcon", name: "field-match-height" }), index.h("input", { key: 'd944e7c0f95b6351e655d8230128a160c5aca6b8', class: 'has-leading-icon', aria: "field-height", id: "field-height", onChange: e => this.alter({ height: e.target.value }) }))))), this.isSingle(this.dataItem) && (index.h("div", { key: '09932bc4e2e6cc4f2595f481889d1e9dccaa31b6', class: 'field-set' }, index.h("div", { key: 'a0d3fdf6312d4952292f81214817b85319749795', class: 'ls-field-properties-section' }, index.h("div", { key: '048272dea7043f05209e3319a3f4095607232641', class: 'ls-field-properties-section-text' }, index.h("p", { key: '692142057d98b1192a8a3fedb8ba807fb0ef27a4', class: 'ls-field-properties-section-title' }, "Height and Width"), index.h("p", { key: 'd1d6b5ca74514d475e957c35b3554a215057f6ec', class: 'ls-field-properties-section-description' }, "Define the height and width of one or multiple fields")), index.h("div", { key: '3fc79c753561607272fc2a66a7a230160f4d1e58', class: 'input-row' }, index.h("div", { key: '6f0b824e7da82930e25759a617d8309c89c9a376', class: 'input-wrapper' }, index.h("ls-icon", { key: '73182488cca3bb85fc8ae40496e36beac68ec295', id: "selectLeadingIcon", name: "field-match-width" }), index.h("input", { key: '6fbaaeeaeae6d3b688725a2285d58ef0ac1e8219', type: "number", class: 'has-leading-icon', aria: "field-width", id: "field-width", value: this.dataItem?.width, onChange: e => this.alter({ width: e.target.value }) })), index.h("div", { key: 'f85adcc366ccb56ce1f25eba32c6ea4ed3947f67', class: 'input-wrapper' }, index.h("ls-icon", { key: '78c2d0da09465b932728c3a6ed1d3b14895f3687', id: "selectLeadingIcon", name: "field-match-height" }), index.h("input", { key: 'f43725d395b60b393d7989b22198ffbfb8abed15', type: "number", class: 'has-leading-icon', aria: "field-height", id: "field-height", value: this.dataItem?.height, onChange: e => this.alter({ height: e.target.value }) })))), index.h("div", { key: '678e33f56594bde997a4d679fcf1d03672f9af44', class: 'ls-field-properties-section' }, index.h("div", { key: '3365548c87c4ac6f02c74fcf8b1780ebda03d4c4', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'ce7c9653b7ddaf6b256a4cb4bef3cbe3bcddd65a', class: 'ls-field-properties-section-title' }, "Scale and Resize"), index.h("p", { key: '13b174384f825593dc13d22ce6eb3ebb0b7eb954', class: 'ls-field-properties-section-description' }, "Multi-select fields and match their dimensions")), index.h("div", { key: 'c26db33451376140452a9d0722bae531e84a3382', class: 'button-group' }, index.h("button", { key: '8e1a002ea92227d531dd4d5f6760f4cb83866dd3', disabled: true }, index.h("ls-icon", { key: 'b11fb135a1183a4e5de10942852d3bc34f52f532', name: "field-scale" })), index.h("button", { key: '9a8a2aa33fd2ee14abb40e099e666f9f37137e25', disabled: true }, index.h("ls-icon", { key: '5fc371d3a123cc4848eb5514f90a6b6b61056e50', name: "field-match-width" })), index.h("button", { key: '1ec86eddacbbaa6061777562997634dd760d0fac', disabled: true }, index.h("ls-icon", { key: 'e2d3e787115ee66f61eda48d22be2d063beaac7e', name: "field-match-height" }))))))));
|
|
25287
25420
|
}
|
|
25288
25421
|
};
|
|
25289
25422
|
LsFieldDimensions.style = lsFieldDimensionsCss;
|
|
25290
25423
|
|
|
25291
|
-
const lsFieldDistributeCss = ":host{display:
|
|
25424
|
+
const lsFieldDistributeCss = ":host{display:flex;flex-direction:column;gap:1rem;width:100%;position:relative}.ls-toolbar-numeric{width:45px;max-height:18px;margin:0px;padding:0px}*{margin:0;box-sizing:border-box}.field-set{display:flex;flex-direction:column;gap:1rem;width:100%}.ls-field-properties-section{display:flex;position:relative;flex-direction:column;gap:0.5rem}.row{flex-direction:row;align-items:center;justify-content:space-between}.multi-button-group-row{display:flex;gap:0.5rem}.ls-field-properties-section-text{display:flex;flex-direction:column;gap:0.25rem;padding:0.25rem}.ls-field-properties-section-title{color:var(--gray-90, #5e6066);font-size:1rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-field-properties-section-description{overflow:hidden;color:var(--gray-80, #6c6e73);text-overflow:ellipsis;font-size:0.75rem;font-style:normal;font-weight:400;line-height:0.75rem;}.input-row{display:flex;gap:0.5rem}.input-row .input-wrapper input{width:9.313rem;max-width:9.313rem}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:36px}.input-wrapper{position:relative;width:100%}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIconDisabled{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-50, #d8d9dc)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover:not(:disabled),select:hover:not(:disabled),textarea:hover:not(:disabled){border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus:not(:disabled),select:focus:not(:disabled),textarea:focus:not(:disabled){outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active:not(:disabled),select:active:not(:disabled),textarea:active:not(:disabled){border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa);color:var(--gray-50, #d8d9dc);box-shadow:none}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip;width:100%}.button-group button{display:flex;width:100%;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;color:var(--gray-80, #6c6e73)}.button-group button:disabled{background:var(--gray-10, #f7f8fa);cursor:not-allowed;color:var(--gray-50, #d8d9dc)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}";
|
|
25292
25425
|
|
|
25293
25426
|
const LsFieldDistribute = class {
|
|
25294
25427
|
constructor(hostRef) {
|
|
@@ -25305,7 +25438,7 @@ const LsFieldDistribute = class {
|
|
|
25305
25438
|
alter(diff) {
|
|
25306
25439
|
console.log(diff);
|
|
25307
25440
|
const diffs = this.dataItem.map(c => {
|
|
25308
|
-
return { action:
|
|
25441
|
+
return { action: 'update', data: { ...c, ...diff } };
|
|
25309
25442
|
});
|
|
25310
25443
|
this.dataItem = diffs.map(d => d.data);
|
|
25311
25444
|
this.mutate.emit(diffs);
|
|
@@ -25314,8 +25447,8 @@ const LsFieldDistribute = class {
|
|
|
25314
25447
|
distributeHorizontal() {
|
|
25315
25448
|
var spacing = this.component.shadowRoot.getElementById('ls-fix-horizontal-space');
|
|
25316
25449
|
var avgspace = 0;
|
|
25317
|
-
const sorted = this.dataItem.sort((a, b) =>
|
|
25318
|
-
if (spacing.value !==
|
|
25450
|
+
const sorted = this.dataItem.sort((a, b) => a.left - b.left);
|
|
25451
|
+
if (spacing.value !== '') {
|
|
25319
25452
|
avgspace = parseInt(spacing.value);
|
|
25320
25453
|
}
|
|
25321
25454
|
else {
|
|
@@ -25323,21 +25456,22 @@ const LsFieldDistribute = class {
|
|
|
25323
25456
|
for (var i = 1; i < sorted.length; i++) {
|
|
25324
25457
|
const c1 = sorted[i - 1];
|
|
25325
25458
|
const c2 = sorted[i];
|
|
25326
|
-
space = space + (
|
|
25459
|
+
space = space + (c2.left - c1.left - c1.width <= 0 ? 0 : c2.left - c1.left - c1.width);
|
|
25327
25460
|
}
|
|
25328
25461
|
avgspace = Math.floor(space / sorted.length);
|
|
25329
25462
|
}
|
|
25330
25463
|
var nextleft = sorted[0].left;
|
|
25331
|
-
const diffs = sorted.map(
|
|
25464
|
+
const diffs = sorted.map(c => {
|
|
25332
25465
|
const newLeft = nextleft;
|
|
25333
25466
|
nextleft = nextleft + c.width + avgspace;
|
|
25334
25467
|
return {
|
|
25335
|
-
action:
|
|
25468
|
+
action: 'update',
|
|
25469
|
+
data: {
|
|
25336
25470
|
...c,
|
|
25337
25471
|
left: newLeft,
|
|
25338
25472
|
ax: newLeft,
|
|
25339
|
-
bx: newLeft + c.width
|
|
25340
|
-
}
|
|
25473
|
+
bx: newLeft + c.width,
|
|
25474
|
+
},
|
|
25341
25475
|
};
|
|
25342
25476
|
});
|
|
25343
25477
|
this.dataItem = diffs.map(d => d.data);
|
|
@@ -25347,7 +25481,7 @@ const LsFieldDistribute = class {
|
|
|
25347
25481
|
distributeVertical() {
|
|
25348
25482
|
var spacing = this.component.shadowRoot.getElementById('ls-fix-vertical-space');
|
|
25349
25483
|
var avgspace = 0;
|
|
25350
|
-
const sorted = this.dataItem.sort((a, b) =>
|
|
25484
|
+
const sorted = this.dataItem.sort((a, b) => a.top - b.top);
|
|
25351
25485
|
if (spacing.value !== '')
|
|
25352
25486
|
avgspace = parseInt(spacing.value);
|
|
25353
25487
|
else {
|
|
@@ -25355,21 +25489,22 @@ const LsFieldDistribute = class {
|
|
|
25355
25489
|
for (var i = 1; i < sorted.length; i++) {
|
|
25356
25490
|
const c1 = sorted[i - 1];
|
|
25357
25491
|
const c2 = sorted[i];
|
|
25358
|
-
space = space + (
|
|
25492
|
+
space = space + (c2.top - c1.top - c1.height <= 0 ? 0 : c2.top - c1.top - c1.height);
|
|
25359
25493
|
}
|
|
25360
25494
|
avgspace = Math.floor(space / sorted.length);
|
|
25361
25495
|
}
|
|
25362
25496
|
var buffer = sorted[0].top;
|
|
25363
|
-
const diffs = sorted.map(
|
|
25497
|
+
const diffs = sorted.map(c => {
|
|
25364
25498
|
const newTop = buffer;
|
|
25365
25499
|
buffer = buffer + c.height + avgspace;
|
|
25366
25500
|
return {
|
|
25367
|
-
action:
|
|
25501
|
+
action: 'update',
|
|
25502
|
+
data: {
|
|
25368
25503
|
...c,
|
|
25369
25504
|
top: newTop,
|
|
25370
25505
|
ay: newTop,
|
|
25371
|
-
by: newTop + c.height
|
|
25372
|
-
}
|
|
25506
|
+
by: newTop + c.height,
|
|
25507
|
+
},
|
|
25373
25508
|
};
|
|
25374
25509
|
});
|
|
25375
25510
|
this.dataItem = diffs.map(d => d.data);
|
|
@@ -25377,11 +25512,44 @@ const LsFieldDistribute = class {
|
|
|
25377
25512
|
this.update.emit(diffs);
|
|
25378
25513
|
}
|
|
25379
25514
|
render() {
|
|
25380
|
-
return (index.h(index.Host, { key: '
|
|
25515
|
+
return (index.h(index.Host, { key: '31c935ac5eeb7c9a73dc5ad5f941a2dcd4d3295b' }, index.h("div", { key: '8d168174c168f696027e15e54fd92f2f394b71b2', class: 'ls-field-properties-section' }, index.h("div", { key: 'e6e6a3b4835d0e091f951ddae3beeeb1895d52b2', class: 'ls-field-properties-section-text' }, index.h("p", { key: '5571e2d43ff44c17633fe0c61d756454fe41f4f9', class: 'ls-field-properties-section-title' }, "Distribution"), index.h("p", { key: '1032830a8fbb0799b47c60990977d7a5bde7ef67', class: 'ls-field-properties-section-description' }, "Multi-select fields and evenly space them out")), index.h("div", { key: 'd2a7351957f694e3ed980b8b6ebd9730dfb0f035', class: 'button-group' }, index.h("button", { key: 'ca033084212230bb5ff9c9814384acdfd363231d', onClick: () => {
|
|
25516
|
+
this.distributeVertical();
|
|
25517
|
+
}, "aria-label": "Distribute selected fields vertically.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Distribute selected fields vertically.", "data-tooltip-place": "top" }, index.h("ls-icon", { key: 'c775cf090f32d07b879a4e09135f85b37e1658f1', name: "field-distribute-vertically" })), index.h("button", { key: '636d15dbbaa25c23abe8d7b399db1d2fcb154c8d', onClick: () => {
|
|
25518
|
+
this.distributeHorizontal();
|
|
25519
|
+
}, "aria-label": "Distribute selected fields horizontally.", "data-tooltip-id": "le-tooltip", "data-tooltip-content": "Distribute selected fields horizontally.", "data-tooltip-place": "top" }, index.h("ls-icon", { key: '36d0b1fce2431a7c34b786ae8afe068333950ec6', name: "field-distribute-horizontally" })))), index.h("div", { key: 'a8dc96e142e4b1397f9804dfdc55c23404998d1f', class: 'ls-field-properties-section' }, index.h("div", { key: '6d7e540f68b60df6e5a8059e7f3ebcb4002d378f', class: 'ls-field-properties-section-text' }, index.h("p", { key: '5c2aefd66af261b510310e793b1ccbea099a5e60', class: 'ls-field-properties-section-title' }, "Gap"), index.h("p", { key: '428e69290f2174a33f633ae345d9a2b352d828b8', class: 'ls-field-properties-section-description' }, "Define the exact gap between multi-select fields.")), index.h("div", { key: '25d85491487f497d4d1f8f4c3960a42ed42b529e', class: 'input-row' }, index.h("div", { key: 'ff7ed1bf39a83fef8db2fa29a2384a5869cb2650', class: 'input-wrapper' }, index.h("ls-icon", { key: '10af9dfa4c9f67f8e0985f01d63694d05a13b1a3', id: "selectLeadingIcon", name: "field-distribute-vertically" }), index.h("input", { key: '5fe66735a8f412a886cac76cbb5fc41339904fab', type: "number", class: 'has-leading-icon', id: "ls-fix-vertical-space", value: '', size: 4, min: 0, max: 9999 })), index.h("div", { key: '018e5b1ccfd5d1fe46d4760e0f259e2f4226f493', class: 'input-wrapper' }, index.h("ls-icon", { key: '5f89086d414185a7ef7a166aff86293d48daefa9', id: "selectLeadingIcon", name: "field-distribute-horizontally" }), index.h("input", { key: 'a694f799b6ddf191f4dc93b18cf7a90c2fd57760', type: "number", class: 'has-leading-icon', id: "ls-fix-horizontal-space", value: '', size: 4, min: 0, max: 9999 })))), index.h("slot", { key: 'adc96cac64ba94af217a91212e780e00655b250d' })));
|
|
25381
25520
|
}
|
|
25382
25521
|
};
|
|
25383
25522
|
LsFieldDistribute.style = lsFieldDistributeCss;
|
|
25384
25523
|
|
|
25524
|
+
const lsFieldFooterCss = ":host{display:block}.button-footer{display:flex;padding-top:1rem;border-top:1px solid var(--gray-20, #f0f1f2);flex-direction:column;justify-content:flex-end;gap:0.75rem;margin-top:auto}button.secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #fff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.destructive{border:1px solid var(--red-60, #f04438);background-color:white;color:var(--red-60)}button.destructive:hover{border:1px solid var(--red-70, #d92d20);background:var(--red-10, #fff1f0)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}";
|
|
25525
|
+
|
|
25526
|
+
const LsFieldFooter = class {
|
|
25527
|
+
constructor(hostRef) {
|
|
25528
|
+
index.registerInstance(this, hostRef);
|
|
25529
|
+
this.mutate = index.createEvent(this, "mutate");
|
|
25530
|
+
this.update = index.createEvent(this, "update");
|
|
25531
|
+
}
|
|
25532
|
+
/**
|
|
25533
|
+
* The selected items information (as JSON).
|
|
25534
|
+
* {LSApiElement[]}
|
|
25535
|
+
*/
|
|
25536
|
+
dataItem;
|
|
25537
|
+
mutate;
|
|
25538
|
+
update;
|
|
25539
|
+
deleteField = () => {
|
|
25540
|
+
this.update.emit([{ action: 'delete', data: this.dataItem }]);
|
|
25541
|
+
this.mutate.emit([{ action: 'delete', data: this.dataItem }]);
|
|
25542
|
+
};
|
|
25543
|
+
duplicateField = () => {
|
|
25544
|
+
this.update.emit([{ action: 'create', data: { ...this.dataItem, id: btoa('ele' + crypto.randomUUID()) } }]);
|
|
25545
|
+
this.mutate.emit([{ action: 'create', data: { ...this.dataItem, id: btoa('ele' + crypto.randomUUID()) } }]);
|
|
25546
|
+
};
|
|
25547
|
+
render() {
|
|
25548
|
+
return (index.h(index.Host, { key: 'd46fe451236281986f1e7a1a4e27c9ad4b9433d2' }, index.h("div", { key: 'd6e7c0b96b8b07c83c4863132c191bc86dfd103c', class: 'button-footer' }, index.h("button", { key: '16cc56e2701db07c0b1a0b65a2573cf3e36565c9', class: 'secondary', onClick: () => this.duplicateField() }, index.h("ls-icon", { key: 'c5c0d8f6445ae55fad539b34100b9f2c332462db', name: "field-duplicate", size: "20" }), "Duplicate"), index.h("button", { key: 'a427630acdd345cccc8fcf15f175f872684e2bde', class: 'destructive', onClick: () => this.deleteField() }, index.h("ls-icon", { key: '6630ba504e074deef33aa4064aa964408597564b', name: "trash", size: "20" }), "Delete")), index.h("slot", { key: 'a6bba56933467a4d02d77af53154687fd8d66645' })));
|
|
25549
|
+
}
|
|
25550
|
+
};
|
|
25551
|
+
LsFieldFooter.style = lsFieldFooterCss;
|
|
25552
|
+
|
|
25385
25553
|
const lsFieldFormatCss = ":host{display:flex;flex-direction:row}.ls-field-format-bar{display:flex;flex-direction:row;gap:0.5rem}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:36px}.input-wrapper{position:relative;width:fit-content}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6c6e73)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}";
|
|
25386
25554
|
|
|
25387
25555
|
const LsFieldFormat = class {
|
|
@@ -25406,25 +25574,25 @@ const LsFieldFormat = class {
|
|
|
25406
25574
|
this.update.emit(diffs);
|
|
25407
25575
|
}
|
|
25408
25576
|
render() {
|
|
25409
|
-
return (index.h(index.Host, { key: '
|
|
25577
|
+
return (index.h(index.Host, { key: '87a1481dfae83e9000fcd8372f5dcda740d0a8cb' }, this.dataItem && this.dataItem.length > 1 && (index.h("div", { key: '73e8800061971f09ce5f198de0ce20b05b643fd8', class: 'ls-field-format-bar' }, index.h("div", { key: 'b16b871e8399430250f1fc7782f4cbe078865bc4', class: " input-wrapper" }, index.h("ls-icon", { key: 'c4b2b1cb98cbeb08b4e1979899a020c56a1c17b3', id: "selectLeadingIcon", name: "typeface" }), index.h("select", { key: '50ed9152533733b9ac1a409f7501fba333a1773a', onChange: input => {
|
|
25410
25578
|
this.alter({ fontName: input.target.value });
|
|
25411
|
-
}, class: 'has-leading-icon' }, index.h("option", { key: '
|
|
25579
|
+
}, class: 'has-leading-icon' }, index.h("option", { key: '08f846a77f4eb52862cc8bd2af00f17d2f9ad333', value: "arial" }, "Arial"), index.h("option", { key: 'f414dbc7662a502af008d5924d31591d564abff5', value: "liberation sans" }, "Liberation Sans"), index.h("option", { key: '9f0b044404e41e1729f8e65ab7ddff7ccce158d7', value: "courier" }, "Courier"), index.h("option", { key: '03772f79ca32fba7f089d75e54f2db5a6ae3199d', value: "helvetica" }, "Helvetica"), index.h("option", { key: '58f3bdd4a2f1b3c1e9096b547255f863b612eafa', value: "verdana" }, "Verdana")), index.h("ls-icon", { key: 'f815be5900f9e17614aa7ac1223d703e744d8129', id: "selectorIcon", name: "selector" })), index.h("div", { key: 'ae3f39557288535143ed04cc0eeba2c1f93f0218', class: "input-wrapper" }, index.h("ls-icon", { key: '76667415983f8e27339a54f47015b7679055fe4d', id: "selectLeadingIcon", name: "typesize" }), index.h("input", { key: '5cc8c26f5540db91f2c313498a02dfc08f847d7a', width: "30", size: 4, class: 'has-leading-icon' })), index.h("div", { key: 'f6b34b35ee676e4e944f719d5cfedbedbbb44eca', class: 'button-group' }, index.h("button", { key: '68aa5ac2abcbb678914637448dc0e1286dcd9f60', onClick: () => {
|
|
25412
25580
|
this.alter({ align: 'left' });
|
|
25413
|
-
} }, index.h("ls-icon", { key: '
|
|
25581
|
+
} }, index.h("ls-icon", { key: '978c2e4fbe2e4a86f2ec30fd73e84b519d0f3ccd', name: "menu-alt-2" })), index.h("button", { key: 'c7a4ba74b99c9959960e8c205cd95dd24ad6d142', onClick: () => {
|
|
25414
25582
|
this.alter({ align: 'center' });
|
|
25415
|
-
} }, index.h("ls-icon", { key: '
|
|
25583
|
+
} }, index.h("ls-icon", { key: '0835c5c00ca515f011cf8a691d1d12bf39ec5156', name: "menu-alt-5" })), index.h("button", { key: '4cf995ffc52a47700fefb7b0bb8f93d9a2095bf4', onClick: () => {
|
|
25416
25584
|
this.alter({ align: 'right' });
|
|
25417
|
-
} }, index.h("ls-icon", { key: '
|
|
25585
|
+
} }, index.h("ls-icon", { key: '9b4a269af491ed0d34d3e7a1111d07751af0e8b6', name: "menu-alt-3" }))))), this.dataItem && this.dataItem.length === 1 && (index.h("div", { key: 'a1639d55878526264c0fdfc278f44584f25d532e', class: 'ls-field-format-bar' }, index.h("div", { key: 'a1337e8b1cc3742761188be5b4d35a395075a11c', class: "input-wrapper" }, index.h("ls-icon", { key: 'c1cfdbcab44f1758774abfabe9b6eb5a95572447', id: "selectorIcon", name: "selector" }), index.h("ls-icon", { key: 'aa586a365349e10b2c09098ffe8295fbf01f4986', id: "selectLeadingIcon", name: "typeface" }), index.h("select", { key: '6c2404caa119edfabbd70b9697fd779c7fe55e5e', onChange: input => {
|
|
25418
25586
|
this.alter({ fontName: input.target.value });
|
|
25419
|
-
}, class: 'has-leading-icon' }, index.h("option", { key: '
|
|
25587
|
+
}, class: 'has-leading-icon' }, index.h("option", { key: '7f99c2c3ff9303d07374efbd2cbed51e840a6b07', value: "arial" }, "Arial"), index.h("option", { key: '33b215ab68d78df213e66a508c71326fe8f2c0df', value: "liberation sans" }, "Liberation Sans"), index.h("option", { key: '74beff2c20bdb1f04c1ad493a0ab4f4b73723a5f', value: "courier" }, "Courier"), index.h("option", { key: 'cb71c7f9fb70efb13c899c014455296945e3f937', value: "helvetica" }, "Helvetica"), index.h("option", { key: '928d454bbf9015fcdcab4c3ed2f25591705304d2', value: "verdana" }, "Verdana"))), index.h("div", { key: 'e04d0a46ab3524a5bc3e1b2b58d351cc1e530057', class: "input-wrapper" }, index.h("ls-icon", { key: '34204ae09a79787e1acfaa7aec4d905b7c9f185c', id: "selectLeadingIcon", name: "typesize" }), index.h("input", { key: 'fa2fa5b6c915f129ec756a203f1537629873b5ff', width: "30", size: 4, value: this.dataItem[0].fontSize, onChange: input => {
|
|
25420
25588
|
this.alter({ fontSize: input.target.value });
|
|
25421
|
-
}, class: 'has-leading-icon' })), index.h("div", { key: '
|
|
25589
|
+
}, class: 'has-leading-icon' })), index.h("div", { key: '1f979064c092b04c682fc2bde6852f3f948cda1f', class: 'button-group' }, index.h("button", { key: '6c41315e09d84762c74a225ca7862bc1ec17b9fa', onClick: () => {
|
|
25422
25590
|
this.alter({ align: 'left' });
|
|
25423
|
-
} }, index.h("ls-icon", { key: '
|
|
25591
|
+
} }, index.h("ls-icon", { key: '4cccc7b7c720e60e9279455ef91bb0c3f0b7b039', name: "menu-alt-2" })), index.h("button", { key: '531e37c5ce4b7c4c1d58f4c70eb308818e3ac3da', onClick: () => {
|
|
25424
25592
|
this.alter({ align: 'center' });
|
|
25425
|
-
} }, index.h("ls-icon", { key: '
|
|
25593
|
+
} }, index.h("ls-icon", { key: '0ed333cada71cd4916246d24f2fb14ac36b46965', name: "menu-alt-5" })), index.h("button", { key: '94d21c36f06d93a94aab142a56316f0f8c3c69c0', onClick: () => {
|
|
25426
25594
|
this.alter({ align: 'right' });
|
|
25427
|
-
} }, index.h("ls-icon", { key: '
|
|
25595
|
+
} }, index.h("ls-icon", { key: '303dd2ea923a4b0dce555b21ffbc23c3730c40ca', name: "menu-alt-3" })))))));
|
|
25428
25596
|
}
|
|
25429
25597
|
};
|
|
25430
25598
|
LsFieldFormat.style = lsFieldFormatCss;
|
|
@@ -25466,7 +25634,7 @@ const LsFieldPlacement = class {
|
|
|
25466
25634
|
}
|
|
25467
25635
|
}
|
|
25468
25636
|
render() {
|
|
25469
|
-
return (index.h(index.Host, { key: '
|
|
25637
|
+
return (index.h(index.Host, { key: 'b177a99ffcb4fde8408326148b8ce77d6e67182e' }, this.isMultiple(this.dataItem) && (index.h("div", { key: '2115059af55775f217c258a2b1325ec301aef124', class: 'ls-field-properties-section' }, index.h("div", { key: '1796203332bc3bed40ed9cd1476b46bca79157fc', class: 'ls-field-properties-section-text' }, index.h("p", { key: '3369ba18dd537732bfc1a647aaa0bcc7a4f9f4b2', class: 'ls-field-properties-section-title' }, "Location"), index.h("p", { key: '631b396d7e8eca43eeda1e4e5c30f4007dd50269', class: 'ls-field-properties-section-description' }, "Use coordinates to move your fields on the page")), index.h("div", { key: '36a66f3f2dd69f97135d31a24c3ca17652772d5a', class: 'input-row' }, index.h("div", { key: '54a3f6ca14bbdf2b4854e716fc8edb03c3a0377e', class: 'input-wrapper' }, index.h("ls-icon", { key: 'e37871622caa8811130b0e70d3132e1372d008cc', id: "selectLeadingIcon", name: "x-letter" }), index.h("input", { key: '6d1db1d3756e0ff25c7c0553dee26f6d0a3e3305', type: "number", class: 'has-leading-icon', aria: "top-location", id: "top-location", onChange: e => this.alter({ top: e.target.value }) })), index.h("div", { key: 'db6c1b3c235a4aa3604778123131cb7c9a669cc4', class: 'input-wrapper' }, index.h("ls-icon", { key: '998b63539de46fe19ced6ce8db40513823abd03b', id: "selectLeadingIcon", name: "y" }), index.h("input", { key: 'dad95a2bfb80c74af431d9a1bc2223486fea05e1', type: "number", class: 'has-leading-icon', aria: "left-location", id: "left-location", onChange: e => this.alter({ left: e.target.value }) }))))), this.isSingle(this.dataItem) && (index.h("div", { key: '6a015090146c812554e7864c8c5d5f0a58c8dae4', class: 'field-set' }, index.h("div", { key: '3bec1b9351ab94a597de4558353aac392482c4ef', class: 'ls-field-properties-section' }, index.h("div", { key: '4ae7786982a6f9ca8268dac593ab65461ea4c0f9', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'fb26f97aa12fab8758976ea4723e450f338fc7d9', class: 'ls-field-properties-section-title' }, "Alignment"), index.h("p", { key: '67b2561850d59c1d34b672d7c8f317ee297f2dd7', class: 'ls-field-properties-section-description' }, "Align your Fields relative to the page or multi-select and align then to each other.")), index.h("div", { key: '03f959b41d217a68916df6d7094c766666f4b1f8', class: 'multi-button-group-row' }, index.h("div", { key: '22c542d77db67527b930b90cedfae90432f8ae41', class: 'button-group' }, index.h("button", { key: '24523466ae0dbfc17f4c51fe1088abb479626e53', onClick: () => this.alter({ left: 0 }) }, index.h("ls-icon", { key: '0b5d94181a4d0c4b87bf9f61052de5acbc3f2517', name: "field-alignment-left" })), index.h("button", { key: '9d262c51db3f4b2bd3264fb8697833bb36441d8b', disabled: true }, index.h("ls-icon", { key: '36bc7b3753a71e1963556567701b96ac6efbf9e4', name: "field-alignment-centre" })), index.h("button", { key: '2dec2561166ea581dc419934f08dda30caa29112', disabled: true }, index.h("ls-icon", { key: '70392cfecfa647c8e88295a3cdee08d59bc400d1', name: "field-alignment-right" }))), index.h("div", { key: 'a64537fc954be0c87d36f3ec448257de3548ae0f', class: 'button-group' }, index.h("button", { key: 'e8721c8ddaafe17893e8d6115e64bc5df83b4653', onClick: () => this.alter({ top: 0 }) }, index.h("ls-icon", { key: '16b47f99fe18db4ecb4bb2b711b9147d5721f428', name: "field-alignment-top" })), index.h("button", { key: 'cac48fe4d53f9aeb76f1a3f8b3fbcbcdd1afb224', disabled: true }, index.h("ls-icon", { key: 'bc0297d6b222886e09bb190678695f24e0f52b23', name: "field-alignment-middle" })), index.h("button", { key: '44d54b27d2f72e0769f399652fcc51e00b2a1b8f', disabled: true }, index.h("ls-icon", { key: '367a5ac69cf643cea71d730dc32059ef767dc940', name: "field-alignment-bottom" }))))), index.h("div", { key: 'd6c3bee8c8edfee5454e5595c14c3771497b00ef', class: 'ls-field-properties-section' }, index.h("div", { key: '2e619fb98e2d37e408b20ab38e2755ec5134e5f9', class: 'ls-field-properties-section-text' }, index.h("p", { key: '15971e94cc90e90c3d4a9480242ac3129206074f', class: 'ls-field-properties-section-title' }, "Location"), index.h("p", { key: 'ff46cf459b2cdcec46a77a44c5070d59cca08e85', class: 'ls-field-properties-section-description' }, "Use coordinates to move your fields on the page")), index.h("div", { key: '69f7338e979e01c33cea42a15ee56a94fffd35d4', class: 'input-row' }, index.h("div", { key: '5ced6739a14b500d5f05e33040e245827ba86d42', class: 'input-wrapper' }, index.h("ls-icon", { key: 'a928d8ce74e00c1588b4e35e005da430dc87e4f3', id: "selectLeadingIcon", name: "x-letter" }), index.h("input", { key: '4630c6e449e82499261338aff773b01aafa89888', type: "number", class: 'has-leading-icon', aria: "top-location", id: "top-location", value: this.dataItem?.top, onChange: e => this.alter({ top: e.target.value }) })), index.h("div", { key: 'ba26998241290de17a1f1c7b922187b10a24690c', class: 'input-wrapper' }, index.h("ls-icon", { key: '5ca0b818449a648cb53e3292f95d060b4bd17538', id: "selectLeadingIcon", name: "y" }), index.h("input", { key: 'af8839028d5310e5bfd6e211f8513f5db69bf30c', type: "number", class: 'has-leading-icon', aria: "left-location", id: "left-location", value: this.dataItem?.left, onChange: e => this.alter({ left: e.target.value }), width: "30" })))), index.h("div", { key: '4619be4c5a343dd024a81529c1377b1f17c7e5bc', class: 'ls-field-properties-section' }, index.h("div", { key: '3b5425469e865b161045d8d451adf85729cd9960', class: 'ls-field-properties-section-text' }, index.h("p", { key: '789cf6f38966a01eae08a566e0e4163531309dc4', class: 'ls-field-properties-section-title' }, "Distribution"), index.h("p", { key: 'f9d30a98d11d7fbbe186ca8e2d9b42befb302b8b', class: 'ls-field-properties-section-description' }, "Multi-select fields and evenly space them out")), index.h("div", { key: '546ca427edb7ef8ca783ab61365923906955555f', class: 'button-group' }, index.h("button", { key: 'acc5401214b558744f1b66067d25aeae383d4ca6', disabled: true }, index.h("ls-icon", { key: '92170916ae903395fbac9850f76ff6151df9d4ad', name: "field-distribute-vertically" })), index.h("button", { key: 'acff43cbf2d8bf66844f54e3c584f7b3eabba6d7', disabled: true }, index.h("ls-icon", { key: 'f6340d50fe90bb86aa45dbe7a92d230b67958dc9', name: "field-distribute-horizontally" })))), index.h("div", { key: '8ee2e97e0eda589a2a5970069a4532dc6d40ce22', class: 'ls-field-properties-section' }, index.h("div", { key: '0ea4d3aa27f12f78dac7bc64c77e08ba026bfe7c', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'cfe6e505e258ead4404a1f335fbfe34ca828d111', class: 'ls-field-properties-section-title' }, "Gap"), index.h("p", { key: 'a0f84726326a04905b449af09e34a8c3ddb961b4', class: 'ls-field-properties-section-description' }, "Define the exact gap between multi-select fields.")), index.h("div", { key: '122dfcefeb52bd58b8cfd8bf2bbc2973c48a92eb', class: 'input-row' }, index.h("div", { key: '544e80a1935f4785f85283bbca238cdac6a47503', class: 'input-wrapper' }, index.h("ls-icon", { key: '5e53109292e2bc395dcebde922afde3092dc3aeb', id: "selectLeadingIconDisabled", name: "field-distribute-vertically" }), index.h("input", { key: '01119934f6ca27eaed198e8d20e7e019925b62a6', type: "number", value: "0", class: 'has-leading-icon', aria: "vertical-gap", id: "vertical-gap", disabled: true })), index.h("div", { key: '7c90de7b3865bef2149cd35d5c6047dedec56303', class: 'input-wrapper' }, index.h("ls-icon", { key: '3507bca1a8243a48913c76e87a63382f9e132c66', id: "selectLeadingIconDisabled", name: "field-distribute-horizontally" }), index.h("input", { key: '5400cad90eaae4849227a76bb732afd623cb54fa', type: "number", value: "0", class: 'has-leading-icon', aria: "horizontal-gap", id: "horizontal-gap", disabled: true }))))))));
|
|
25470
25638
|
}
|
|
25471
25639
|
};
|
|
25472
25640
|
LsFieldPlacement.style = lsFieldPlacementCss;
|
|
@@ -25507,7 +25675,7 @@ const LsFieldProperties = class {
|
|
|
25507
25675
|
return index.h("ls-field-properties-multiple", { dataItem: this.dataItem });
|
|
25508
25676
|
}
|
|
25509
25677
|
render() {
|
|
25510
|
-
return (index.h(index.Host, { key: '
|
|
25678
|
+
return (index.h(index.Host, { key: '4f0c36a7bde5177369e905868caff830a71af2ff' }, this.dataItem && this.renderFields(), index.h("slot", { key: '80fc4787efdadb306ba926f895f45eaf84717d39' })));
|
|
25511
25679
|
}
|
|
25512
25680
|
};
|
|
25513
25681
|
LsFieldProperties.style = lsFieldPropertiesCss;
|
|
@@ -25520,7 +25688,7 @@ const LsFieldPropertiesAutosign = class {
|
|
|
25520
25688
|
}
|
|
25521
25689
|
dataItem;
|
|
25522
25690
|
render() {
|
|
25523
|
-
return (index.h(index.Host, { key: '
|
|
25691
|
+
return (index.h(index.Host, { key: '14e8816d8a1b469e277e7af51b2141e4338ba1e2' }, index.h("div", { key: '59f5e6ab5aa858f59082e36e7e74b60002e331ed', class: "ls-field-properties-section" }, "Self Sign Field"), index.h("div", { key: '14d7513183cbca4d203ce99b95d4e41f585d9b71' }, "Label: ", index.h("input", { key: '345895e5c19328992ae43a69c0b8e5eb2449b1ac', value: this.dataItem?.label, width: "30" })), index.h("ls-field-dimensions", { key: '6b783594d4167a01a4deaf022d3f04d84a6897b7', dataItem: this.dataItem }), index.h("slot", { key: '5e05f3cee5def0994e9c9b7421d7ebbd34eb88e7' })));
|
|
25524
25692
|
}
|
|
25525
25693
|
};
|
|
25526
25694
|
LsFieldPropertiesAutosign.style = lsFieldPropertiesAutosignCss;
|
|
@@ -25537,7 +25705,7 @@ const LsFieldPropertiesDate = class {
|
|
|
25537
25705
|
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
25538
25706
|
};
|
|
25539
25707
|
render() {
|
|
25540
|
-
return (index.h(index.Host, { key: '
|
|
25708
|
+
return (index.h(index.Host, { key: 'b06a05273c080fa2adc6f509d119a0da69ddf46a' }, index.h("div", { key: '230e127b70cb0970e25d6ab2093c0638b23c36fa', class: 'tabs-container' }, index.h("button", { key: 'da64c8dbbe138e2f0a7642ac5f15b785aa37f642', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), index.h("button", { key: '1a5dd9d8d793a9fbe38c743b5be061017c7e5cfc', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), index.h("button", { key: '74535a6f94e51d3ff5476a7b8aea87ed5638931a', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), index.h("div", { key: 'be04d97b8543b8c16c1845651893018fca388b4b', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (index.h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (index.h("div", { class: 'field-set' }, index.h("ls-field-dimensions", { dataItem: this.dataItem }))) : (index.h("div", { class: 'field-set' }, index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), index.h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), index.h("div", { class: 'ls-field-type-wrapper', style: {
|
|
25541
25709
|
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
25542
25710
|
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25543
25711
|
} }, index.h("div", { class: 'ls-field-type-inner' }, index.h("div", { class: 'ls-field-type-icon', style: {
|
|
@@ -25546,7 +25714,7 @@ const LsFieldPropertiesDate = class {
|
|
|
25546
25714
|
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25547
25715
|
} }, index.h("ls-icon", { name: "calender", size: "20" })), index.h("p", { class: 'ls-field-type-name' }, "Date")))), index.h("div", { class: 'ls-field-properties-section row' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), index.h("ls-toggle", null)), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), index.h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), index.h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), index.h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), index.h("div", { class: 'input-wrapper' }, index.h("ls-icon", { id: "selectorIcon", name: "selector" }), index.h("select", null, validationTypes
|
|
25548
25716
|
.filter(type => type.formType === 'date')
|
|
25549
|
-
.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), index.h("div", { key: '
|
|
25717
|
+
.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), index.h("div", { key: 'd0f4de7d4aaefd389eaf32c828b2a546ac9dda60', class: 'button-footer' }, index.h("button", { key: 'cfdb665c27629f9ea5cdff3d6eb0727a55049b08', class: 'secondary' }, index.h("ls-icon", { key: 'e8f40090edd72678f25137f6ec642ee778780680', name: "field-duplicate", size: "20" }), "Duplicate"), index.h("button", { key: '6e4cd8e4729ddf9ecb26432edae07d934f247f1a', class: 'destructive' }, index.h("ls-icon", { key: '12ba0890b9ef7a3cc697eacbae237317c6238600', name: "trash", size: "20" }), "Delete")), index.h("slot", { key: 'c5705c26d5bd0eb3af5ffc06c1857ff9d64257de' })));
|
|
25550
25718
|
}
|
|
25551
25719
|
};
|
|
25552
25720
|
LsFieldPropertiesDate.style = lsFieldPropertiesDateCss;
|
|
@@ -25563,7 +25731,7 @@ const LsFieldPropertiesEmail = class {
|
|
|
25563
25731
|
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
25564
25732
|
};
|
|
25565
25733
|
render() {
|
|
25566
|
-
return (index.h(index.Host, { key: '
|
|
25734
|
+
return (index.h(index.Host, { key: 'a3dd378ca7a4657f444631bf34309b539c9922b0' }, index.h("div", { key: 'f3f0dcc6ffb58910fd2c370f82d3b91d892ee8e9', class: 'tabs-container' }, index.h("button", { key: '38e153312729d12fd99a3964ab674823bff8966a', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), index.h("button", { key: '3a4783712e34f526de913afd283dd6b02ec3d1d6', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), index.h("button", { key: '6fefa0a10ac674b6fed666bdc962be77252c01fe', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), index.h("div", { key: '6260c65ce6f49f215d964c7c7482a2857d4f8939', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (index.h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (index.h("div", { class: 'field-set' }, index.h("ls-field-dimensions", { dataItem: this.dataItem }))) : (index.h("div", { class: 'field-set' }, index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), index.h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), index.h("div", { class: 'ls-field-type-wrapper', style: {
|
|
25567
25735
|
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
25568
25736
|
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25569
25737
|
} }, index.h("div", { class: 'ls-field-type-inner' }, index.h("div", { class: 'ls-field-type-icon', style: {
|
|
@@ -25572,7 +25740,7 @@ const LsFieldPropertiesEmail = class {
|
|
|
25572
25740
|
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25573
25741
|
} }, index.h("ls-icon", { name: "at-symbol", size: "20" })), index.h("p", { class: 'ls-field-type-name' }, "Email")))), index.h("div", { class: 'ls-field-properties-section row' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), index.h("ls-toggle", null)), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), index.h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), index.h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), index.h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), index.h("div", { class: 'input-wrapper' }, index.h("ls-icon", { id: "selectorIcon", name: "selector" }), index.h("select", null, validationTypes
|
|
25574
25742
|
.filter(type => type.formType === 'email')
|
|
25575
|
-
.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), index.h("div", { key: '
|
|
25743
|
+
.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), index.h("div", { key: '0d3d291a2f590c13aa1b890432bf48212b9dd5b1', class: 'button-footer' }, index.h("button", { key: '90f886ce51be759a58afa1cd01f1ec03225ec755', class: 'secondary' }, index.h("ls-icon", { key: 'ea4d0f14452a816c03423ab423a9049dca5155be', name: "field-duplicate", size: "20" }), "Duplicate"), index.h("button", { key: '8bebe74cf0eade279e886c6b235269d4803370d0', class: 'destructive' }, index.h("ls-icon", { key: '39b4a3b7d93db99625be6628e52b65e4c4011614', name: "trash", size: "20" }), "Delete")), index.h("slot", { key: '568bd84291bf013457effe5cc1d759661644d24a' })));
|
|
25576
25744
|
}
|
|
25577
25745
|
};
|
|
25578
25746
|
LsFieldPropertiesEmail.style = lsFieldPropertiesEmailCss;
|
|
@@ -25589,7 +25757,7 @@ const LsFieldPropertiesFile = class {
|
|
|
25589
25757
|
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
25590
25758
|
};
|
|
25591
25759
|
render() {
|
|
25592
|
-
return (index.h(index.Host, { key: '
|
|
25760
|
+
return (index.h(index.Host, { key: 'c8e07d4787ce26212c42a9b943db4ee5d1b4ec1d' }, index.h("div", { key: 'bcf85e4e3c1cb558a3f58a3d292add6631c17512', class: 'tabs-container' }, index.h("button", { key: '82767a10336fc20609454a233c52c6ba66db2513', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), index.h("button", { key: '1341ceec3b916b8fd58b44ae73dfab2fb0b46345', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), index.h("button", { key: '67cb7586e9cbad65860b30d42c3cfb7016856dfc', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), index.h("div", { key: '354d56fa0aaccaa917997b6e68eba25521b8c7e7', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (index.h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (index.h("div", { class: 'field-set' }, index.h("ls-field-dimensions", { dataItem: this.dataItem }))) : (index.h("div", { class: 'field-set' }, index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), index.h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), index.h("div", { class: 'ls-field-type-wrapper', style: {
|
|
25593
25761
|
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
25594
25762
|
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25595
25763
|
} }, index.h("div", { class: 'ls-field-type-inner' }, index.h("div", { class: 'ls-field-type-icon', style: {
|
|
@@ -25598,101 +25766,206 @@ const LsFieldPropertiesFile = class {
|
|
|
25598
25766
|
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25599
25767
|
} }, index.h("ls-icon", { name: "upload", size: "20" })), index.h("p", { class: 'ls-field-type-name' }, "File")))), index.h("div", { class: 'ls-field-properties-section row' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), index.h("ls-toggle", null)), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), index.h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), index.h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), index.h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), index.h("div", { class: 'input-wrapper' }, index.h("ls-icon", { id: "selectorIcon", name: "selector" }), index.h("select", null, validationTypes
|
|
25600
25768
|
.filter(type => type.formType === 'file')
|
|
25601
|
-
.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), index.h("div", { key: '
|
|
25769
|
+
.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), index.h("div", { key: '6ab762d9b5eb86930776337353f29d423e013bed', class: 'button-footer' }, index.h("button", { key: '68d9c4e9495cba13cd9c99e234d2f865990f237c', class: 'secondary' }, index.h("ls-icon", { key: '0e0110b20dad1dd0e3d27f3acae18f5f9c133b40', name: "field-duplicate", size: "20" }), "Duplicate"), index.h("button", { key: 'dd26a1d8859a62b2cda8e2e526bc575cc7f2496a', class: 'destructive' }, index.h("ls-icon", { key: 'a701332630f5099106b710d7afbfe91d935ea533', name: "trash", size: "20" }), "Delete")), index.h("slot", { key: '50c5e590c316ab28c3ef71ed1b2eb4778b9fe2c5' })));
|
|
25602
25770
|
}
|
|
25603
25771
|
};
|
|
25604
25772
|
LsFieldPropertiesFile.style = lsFieldPropertiesFileCss;
|
|
25605
25773
|
|
|
25606
|
-
const lsFieldPropertiesGeneralCss = ":host{display:
|
|
25774
|
+
const lsFieldPropertiesGeneralCss = ":host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.properties-container{display:flex;flex-direction:column;height:100%}.field-set{display:flex;flex-direction:column;gap:1rem;width:100%}.ls-field-properties-section{display:flex;position:relative;flex-direction:column;gap:0.5rem}.row{flex-direction:row;align-items:center;justify-content:space-between}.ls-field-properties-section-text{display:flex;flex-direction:column;gap:0.25rem;padding:0.25rem}.ls-field-properties-section-title{color:var(--gray-90, #5e6066);font-size:1rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-field-properties-section-description{overflow:hidden;color:var(--gray-80, #6c6e73);text-overflow:ellipsis;font-size:0.75rem;font-style:normal;font-weight:400;line-height:0.75rem;}.ls-field-type-wrapper{position:relative;border-radius:0.875rem;padding:0.25rem}.ls-field-type-inner{border-radius:0.625rem;background:var(--white, #fff);display:flex;padding:0.25rem 0.5rem 0.25rem 0.25rem;align-items:center;gap:0.875rem;align-self:stretch}.ls-field-type-icon{display:flex;padding:0.5rem;align-items:center;border-radius:0.5rem;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}.ls-field-type-name{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;}.tabs-container{display:grid;grid-template-columns:repeat(3, 1fr);width:100%;gap:0.125rem;padding:0.125rem;border:1px solid var(--gray-30, #e0e2e5);border-radius:0.75rem;background:var(--white, #ffffff)}.ls-tab{all:unset;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:0.5rem;border-radius:0.625rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;color:var(--gray-80, #6c6e73)}.ls-tab.active{background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.ls-tab:not(.active):hover{background:var(--gray-10, #f7f8fa)}.button-footer{display:flex;padding-top:1rem;border-top:1px solid var(--gray-20, #f0f1f2);flex-direction:column;justify-content:flex-end;gap:0.75rem;margin-top:auto}.scrolling-container{overflow-y:auto;padding:0 1rem;margin:0 -1rem;height:calc(100% - 10.938rem)}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:36px;width:100%}.input-wrapper{position:relative}.full-width{width:100%}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #fff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.destructive{border:1px solid var(--red-60, #f04438);background-color:white;color:var(--red-60)}button.destructive:hover{border:1px solid var(--red-70, #d92d20);background:var(--red-10, #fff1f0)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6c6e73)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}";
|
|
25607
25775
|
|
|
25608
25776
|
const LsFieldPropertiesGeneral = class {
|
|
25609
25777
|
constructor(hostRef) {
|
|
25610
25778
|
index.registerInstance(this, hostRef);
|
|
25611
25779
|
}
|
|
25612
25780
|
dataItem;
|
|
25781
|
+
fieldSet = 'content';
|
|
25782
|
+
signerColor = (index) => {
|
|
25783
|
+
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
25784
|
+
};
|
|
25613
25785
|
render() {
|
|
25614
|
-
return (index.h(index.Host, { key: '
|
|
25786
|
+
return (index.h(index.Host, { key: '66c7c1e07a4d46fe9272b8de3084c2446a7df45e' }, index.h("div", { key: '5656760e45235dc200c67a23029c6b46083ccd13', class: 'tabs-container' }, index.h("button", { key: '9784275994038a7fdee05ab1d32dd2c04746d243', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), index.h("button", { key: '85f90b1461e68df6bc363fb58430d79b79a67842', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), index.h("button", { key: '4ac939867be3e021852fcecf195a7e0f3908de4e', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), index.h("div", { key: '7e7029e78a0ff86e61823eecbc955a15772f00da', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (index.h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (index.h("div", { class: 'field-set' }, index.h("ls-field-dimensions", { dataItem: this.dataItem }))) : (index.h("div", { class: 'field-set' }, index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), index.h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), index.h("div", { class: 'ls-field-type-wrapper', style: {
|
|
25787
|
+
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
25788
|
+
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25789
|
+
} }, index.h("div", { class: 'ls-field-type-inner' }, index.h("div", { class: 'ls-field-type-icon', style: {
|
|
25790
|
+
border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
25791
|
+
color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
25792
|
+
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25793
|
+
} }, index.h("ls-icon", { name: "field-placement", size: "20" })), index.h("p", { class: 'ls-field-type-name' }, "General Field")))), index.h("div", { class: 'ls-field-properties-section row' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), index.h("ls-toggle", null)), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), index.h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), index.h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), index.h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), index.h("div", { class: 'input-wrapper' }, index.h("ls-icon", { id: "selectorIcon", name: "selector" }), index.h("select", null, validationTypes.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), index.h("div", { key: 'bae5baaa40a845115568677631f393393354312e', class: 'button-footer' }, index.h("button", { key: 'c47c6ce5b6104a9c53e2e8376abf92b29a6385d2', class: 'secondary' }, index.h("ls-icon", { key: '8a53d65c2060cb3bdc9143403d7250cbefdfdac6', name: "field-duplicate", size: "20" }), "Duplicate"), index.h("button", { key: 'a0fa01929abbacec569bd449320cd9d720597e3d', class: 'destructive' }, index.h("ls-icon", { key: '4c6bb00579832f8e44c82b516cf3e47200d1ad71', name: "trash", size: "20" }), "Delete")), index.h("slot", { key: 'b18c96fbcac26a8e5c73bd1d5f97f3d58f839d73' })));
|
|
25615
25794
|
}
|
|
25616
25795
|
};
|
|
25617
25796
|
LsFieldPropertiesGeneral.style = lsFieldPropertiesGeneralCss;
|
|
25618
25797
|
|
|
25619
|
-
const lsFieldPropertiesImageCss = ":host{display:
|
|
25798
|
+
const lsFieldPropertiesImageCss = ":host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.properties-container{display:flex;flex-direction:column;height:100%}.field-set{display:flex;flex-direction:column;gap:1rem;width:100%}.ls-field-properties-section{display:flex;position:relative;flex-direction:column;gap:0.5rem}.row{flex-direction:row;align-items:center;justify-content:space-between}.ls-field-properties-section-text{display:flex;flex-direction:column;gap:0.25rem;padding:0.25rem}.ls-field-properties-section-title{color:var(--gray-90, #5e6066);font-size:1rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-field-properties-section-description{overflow:hidden;color:var(--gray-80, #6c6e73);text-overflow:ellipsis;font-size:0.75rem;font-style:normal;font-weight:400;line-height:0.75rem;}.ls-field-type-wrapper{position:relative;border-radius:0.875rem;padding:0.25rem}.ls-field-type-inner{border-radius:0.625rem;background:var(--white, #fff);display:flex;padding:0.25rem 0.5rem 0.25rem 0.25rem;align-items:center;gap:0.875rem;align-self:stretch}.ls-field-type-icon{display:flex;padding:0.5rem;align-items:center;border-radius:0.5rem;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}.ls-field-type-name{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;}.tabs-container{display:grid;grid-template-columns:repeat(3, 1fr);width:100%;gap:0.125rem;padding:0.125rem;border:1px solid var(--gray-30, #e0e2e5);border-radius:0.75rem;background:var(--white, #ffffff)}.ls-tab{all:unset;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:0.5rem;border-radius:0.625rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;color:var(--gray-80, #6c6e73)}.ls-tab.active{background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.ls-tab:not(.active):hover{background:var(--gray-10, #f7f8fa)}.button-footer{display:flex;padding-top:1rem;border-top:1px solid var(--gray-20, #f0f1f2);flex-direction:column;justify-content:flex-end;gap:0.75rem;margin-top:auto}.scrolling-container{overflow-y:auto;padding:0 1rem;margin:0 -1rem;height:calc(100% - 10.938rem)}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:36px;width:100%}.input-wrapper{position:relative}.full-width{width:100%}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #fff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.destructive{border:1px solid var(--red-60, #f04438);background-color:white;color:var(--red-60)}button.destructive:hover{border:1px solid var(--red-70, #d92d20);background:var(--red-10, #fff1f0)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6c6e73)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}";
|
|
25620
25799
|
|
|
25621
25800
|
const LsFieldPropertiesImage = class {
|
|
25622
25801
|
constructor(hostRef) {
|
|
25623
25802
|
index.registerInstance(this, hostRef);
|
|
25624
25803
|
}
|
|
25625
25804
|
dataItem;
|
|
25805
|
+
fieldSet = 'content';
|
|
25806
|
+
signerColor = (index) => {
|
|
25807
|
+
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
25808
|
+
};
|
|
25626
25809
|
render() {
|
|
25627
|
-
return (index.h(index.Host, { key: '
|
|
25810
|
+
return (index.h(index.Host, { key: '635907f2562fd34d194247189529350ce08472c1' }, index.h("div", { key: '29ebc137c3e2e94ef51d65a338feefdb5568e6f2', class: 'tabs-container' }, index.h("button", { key: '2589dd19e0cc82ae107a4cd7d59686a4d36650c0', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), index.h("button", { key: 'c783bd7b3fc67ef709d09b3edcb1dea4ee4964f8', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), index.h("button", { key: 'fd264269a617d7aada8808121566524bdff64ae6', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), index.h("div", { key: 'a7f3daddab93c4dd0e5558c1ce6cbff94a49d0e6', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (index.h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (index.h("div", { class: 'field-set' }, index.h("ls-field-dimensions", { dataItem: this.dataItem }))) : (index.h("div", { class: 'field-set' }, index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), index.h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), index.h("div", { class: 'ls-field-type-wrapper', style: {
|
|
25811
|
+
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
25812
|
+
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25813
|
+
} }, index.h("div", { class: 'ls-field-type-inner' }, index.h("div", { class: 'ls-field-type-icon', style: {
|
|
25814
|
+
border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
25815
|
+
color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
25816
|
+
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25817
|
+
} }, index.h("ls-icon", { name: "photograph", size: "20" })), index.h("p", { class: 'ls-field-type-name' }, "Image")))), index.h("div", { class: 'ls-field-properties-section row' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), index.h("ls-toggle", null)), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), index.h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), index.h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), index.h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), index.h("div", { class: 'input-wrapper' }, index.h("ls-icon", { id: "selectorIcon", name: "selector" }), index.h("select", null, validationTypes
|
|
25818
|
+
.filter(type => type.formType === 'image')
|
|
25819
|
+
.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), index.h("div", { key: '7a865a32f7df9ba68e422d8fed59ad2dc9da8390', class: 'button-footer' }, index.h("button", { key: '808702e7bbdaae99f009f1bee44055e6d251f2ff', class: 'secondary' }, index.h("ls-icon", { key: '378f763114db8cb053b78dc09c6e72423104b14c', name: "field-duplicate", size: "20" }), "Duplicate"), index.h("button", { key: '8e59f7c362245d958b1438d27ec0b825e561f0d2', class: 'destructive' }, index.h("ls-icon", { key: 'e093ee2b95bb0f7e2212f3fb8d2291833c788cb6', name: "trash", size: "20" }), "Delete")), index.h("slot", { key: '95136c1553098b6146b1f67ed17a38b30e727c2d' })));
|
|
25628
25820
|
}
|
|
25629
25821
|
};
|
|
25630
25822
|
LsFieldPropertiesImage.style = lsFieldPropertiesImageCss;
|
|
25631
25823
|
|
|
25632
|
-
const
|
|
25824
|
+
const defaultFieldIcons = {
|
|
25825
|
+
'signature': 'signature',
|
|
25826
|
+
'text': 'text',
|
|
25827
|
+
'signing date': 'auto-date',
|
|
25828
|
+
'date': 'calender',
|
|
25829
|
+
'initials': 'initials',
|
|
25830
|
+
'checkbox': 'check',
|
|
25831
|
+
'email': 'at-symbol',
|
|
25832
|
+
'number': 'hashtag',
|
|
25833
|
+
'image': 'photograph',
|
|
25834
|
+
'dropdown': 'document-text',
|
|
25835
|
+
'file': 'upload',
|
|
25836
|
+
'drawn field': 'pencil',
|
|
25837
|
+
'regular expression': 'code',
|
|
25838
|
+
};
|
|
25839
|
+
function getFieldIcon(key) {
|
|
25840
|
+
return defaultFieldIcons[key] || 'view-grid';
|
|
25841
|
+
}
|
|
25842
|
+
|
|
25843
|
+
const lsFieldPropertiesMultipleCss = ":host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.properties-container{display:flex;flex-direction:column;height:100%}.field-set{display:flex;flex-direction:column;gap:1rem;width:100%}.ls-field-properties-section{display:flex;position:relative;flex-direction:column;gap:0.5rem}.row{flex-direction:row;align-items:center;justify-content:space-between}.ls-field-properties-section-text{display:flex;flex-direction:column;gap:0.25rem;padding:0.25rem}.ls-field-properties-section-title{color:var(--gray-90, #5e6066);font-size:1rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-field-properties-section-description{overflow:hidden;color:var(--gray-80, #6c6e73);text-overflow:ellipsis;font-size:0.75rem;font-style:normal;font-weight:400;line-height:0.75rem;}.ls-field-type-wrapper{position:relative;border-radius:0.875rem;padding:0.25rem}.ls-field-type-inner{border-radius:0.625rem;background:var(--white, #fff);display:flex;padding:0.25rem 0.5rem 0.25rem 0.25rem;align-items:center;gap:0.875rem;align-self:stretch}.ls-field-type-icon{display:flex;padding:0.5rem;align-items:center;border-radius:0.5rem;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}.ls-field-type-name{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;text-transform:capitalize}.tabs-container{display:grid;grid-template-columns:repeat(3, 1fr);width:100%;gap:0.125rem;padding:0.125rem;border:1px solid var(--gray-30, #e0e2e5);border-radius:0.75rem;background:var(--white, #ffffff)}.ls-tab{all:unset;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:0.5rem;border-radius:0.625rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;color:var(--gray-80, #6c6e73)}.ls-tab.active{background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.ls-tab:not(.active):hover{background:var(--gray-10, #f7f8fa)}.button-footer{display:flex;padding-top:1rem;border-top:1px solid var(--gray-20, #f0f1f2);flex-direction:column;justify-content:flex-end;gap:0.75rem;margin-top:auto}.scrolling-container{overflow-y:auto;padding:0 1rem;margin:0 -1rem;height:calc(100% - 10.938rem)}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:36px;width:100%}.input-wrapper{position:relative}.full-width{width:100%}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #fff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.destructive{border:1px solid var(--red-60, #f04438);background-color:white;color:var(--red-60)}button.destructive:hover{border:1px solid var(--red-70, #d92d20);background:var(--red-10, #fff1f0)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6c6e73)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}";
|
|
25633
25844
|
|
|
25634
25845
|
const LsFieldPropertiesMultiple = class {
|
|
25635
25846
|
constructor(hostRef) {
|
|
25636
25847
|
index.registerInstance(this, hostRef);
|
|
25637
25848
|
}
|
|
25638
25849
|
dataItem;
|
|
25850
|
+
fieldSet = 'content';
|
|
25851
|
+
signerColor = (index) => {
|
|
25852
|
+
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
25853
|
+
};
|
|
25854
|
+
allSignersSame = () => {
|
|
25855
|
+
if (!this.dataItem || this.dataItem.length === 0)
|
|
25856
|
+
return { isSame: true, signer: undefined };
|
|
25857
|
+
const firstSigner = this.dataItem[0].signer;
|
|
25858
|
+
const allSame = this.dataItem.every(item => item.signer === firstSigner);
|
|
25859
|
+
return { isSame: allSame, signer: allSame ? firstSigner : 13 };
|
|
25860
|
+
};
|
|
25861
|
+
allLabelsSame = () => {
|
|
25862
|
+
if (!this.dataItem || this.dataItem.length === 0)
|
|
25863
|
+
return { isSame: true, label: undefined };
|
|
25864
|
+
const firstLabel = this.dataItem[0].label;
|
|
25865
|
+
const allSame = this.dataItem.every(item => item.label === firstLabel);
|
|
25866
|
+
return { isSame: allSame, label: allSame ? firstLabel : undefined };
|
|
25867
|
+
};
|
|
25868
|
+
allElementsSame = () => {
|
|
25869
|
+
if (!this.dataItem || this.dataItem.length === 0)
|
|
25870
|
+
return { isSame: true, elementType: 'mixed' };
|
|
25871
|
+
const firstElementType = this.dataItem[0].elementType;
|
|
25872
|
+
const allSame = this.dataItem.every(item => item.elementType === firstElementType);
|
|
25873
|
+
return { isSame: allSame, elementType: allSame ? firstElementType : 'mixed' };
|
|
25874
|
+
};
|
|
25639
25875
|
render() {
|
|
25640
|
-
return (index.h(index.Host, { key: '
|
|
25876
|
+
return (index.h(index.Host, { key: 'd47418c11bf08918bbc5de9815c9ed0060637730' }, index.h("div", { key: 'ffbe7dddad76d40c13d394b94f560bc28f0efd49', class: 'tabs-container' }, index.h("button", { key: '215fa1ffeb0fc0e7e5f5f74268245a0bfc24b578', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), index.h("button", { key: '38cbd8b91dc129be1398ba79384c316bee79eedc', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), index.h("button", { key: '8ca2cb33b774b93d2a9ca2dd84dab64c5f757fec', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), index.h("div", { key: '584ff1cce354ad1f7326a73c3d2d6729dbaccac7', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (index.h("div", { class: 'field-set' }, index.h("ls-field-alignment", { dataItem: this.dataItem }), index.h("ls-field-placement", { dataItem: this.dataItem }), index.h("ls-field-distribute", { dataItem: this.dataItem }))) : this.fieldSet === 'dimensions' ? (index.h("div", { class: 'field-set' }, index.h("ls-field-dimensions", { dataItem: this.dataItem }), index.h("ls-field-size", { dataItem: this.dataItem }))) : (index.h("div", { class: 'field-set' }, index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), index.h("p", { class: 'ls-field-properties-section-description' }, "The Fields you currently have selected")), index.h("div", { class: 'ls-field-type-wrapper', style: {
|
|
25877
|
+
border: `1px dashed var(--${this.signerColor(this.allSignersSame().signer)}-30)`,
|
|
25878
|
+
background: `var(--${this.signerColor(this.allSignersSame().signer)}-10)`,
|
|
25879
|
+
} }, index.h("div", { class: 'ls-field-type-inner' }, index.h("div", { class: 'ls-field-type-icon', style: {
|
|
25880
|
+
border: `1px solid var(--${this.signerColor(this.allSignersSame().signer)}-60)`,
|
|
25881
|
+
color: `var(--${this.signerColor(this.allSignersSame().signer)}-60)`,
|
|
25882
|
+
background: `var(--${this.signerColor(this.allSignersSame().signer)}-10)`,
|
|
25883
|
+
} }, index.h("ls-icon", { name: getFieldIcon(this.allElementsSame().elementType), size: "20" })), index.h("p", { class: 'ls-field-type-name' }, this.dataItem.length, " ", this.allElementsSame().elementType, " ", 'Fields')))), index.h("div", { class: 'ls-field-properties-section row' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), index.h("ls-toggle", null)), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), index.h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), index.h("input", { value: this.allLabelsSame().label, width: "30", placeholder: "eg. Sign Here" }))))), index.h("ls-field-footer", { key: '4ac7b3459381ce8b58dbed6aa0de6612e26ecbb4' }), index.h("slot", { key: 'c07eed0aa02861a7cc12939dcb11c16ccfebb58c' })));
|
|
25641
25884
|
}
|
|
25642
25885
|
};
|
|
25643
25886
|
LsFieldPropertiesMultiple.style = lsFieldPropertiesMultipleCss;
|
|
25644
25887
|
|
|
25645
|
-
const lsFieldPropertiesNumberCss = ":host{display:
|
|
25888
|
+
const lsFieldPropertiesNumberCss = ":host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.properties-container{display:flex;flex-direction:column;height:100%}.field-set{display:flex;flex-direction:column;gap:1rem;width:100%}.ls-field-properties-section{display:flex;position:relative;flex-direction:column;gap:0.5rem}.row{flex-direction:row;align-items:center;justify-content:space-between}.ls-field-properties-section-text{display:flex;flex-direction:column;gap:0.25rem;padding:0.25rem}.ls-field-properties-section-title{color:var(--gray-90, #5e6066);font-size:1rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-field-properties-section-description{overflow:hidden;color:var(--gray-80, #6c6e73);text-overflow:ellipsis;font-size:0.75rem;font-style:normal;font-weight:400;line-height:0.75rem;}.ls-field-type-wrapper{position:relative;border-radius:0.875rem;padding:0.25rem}.ls-field-type-inner{border-radius:0.625rem;background:var(--white, #fff);display:flex;padding:0.25rem 0.5rem 0.25rem 0.25rem;align-items:center;gap:0.875rem;align-self:stretch}.ls-field-type-icon{display:flex;padding:0.5rem;align-items:center;border-radius:0.5rem;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}.ls-field-type-name{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;}.tabs-container{display:grid;grid-template-columns:repeat(3, 1fr);width:100%;gap:0.125rem;padding:0.125rem;border:1px solid var(--gray-30, #e0e2e5);border-radius:0.75rem;background:var(--white, #ffffff)}.ls-tab{all:unset;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:0.5rem;border-radius:0.625rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;color:var(--gray-80, #6c6e73)}.ls-tab.active{background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.ls-tab:not(.active):hover{background:var(--gray-10, #f7f8fa)}.button-footer{display:flex;padding-top:1rem;border-top:1px solid var(--gray-20, #f0f1f2);flex-direction:column;justify-content:flex-end;gap:0.75rem;margin-top:auto}.scrolling-container{overflow-y:auto;padding:0 1rem;margin:0 -1rem;height:calc(100% - 10.938rem)}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:36px;width:100%}.input-wrapper{position:relative}.full-width{width:100%}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #fff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.destructive{border:1px solid var(--red-60, #f04438);background-color:white;color:var(--red-60)}button.destructive:hover{border:1px solid var(--red-70, #d92d20);background:var(--red-10, #fff1f0)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6c6e73)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}";
|
|
25646
25889
|
|
|
25647
25890
|
const LsFieldPropertiesNumber = class {
|
|
25648
25891
|
constructor(hostRef) {
|
|
25649
25892
|
index.registerInstance(this, hostRef);
|
|
25650
25893
|
}
|
|
25651
25894
|
dataItem;
|
|
25895
|
+
fieldSet = 'content';
|
|
25896
|
+
signerColor = (index) => {
|
|
25897
|
+
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
25898
|
+
};
|
|
25652
25899
|
render() {
|
|
25653
|
-
return (index.h(index.Host, { key: '
|
|
25900
|
+
return (index.h(index.Host, { key: 'e50acbaa72b3d4f4e71a1948d3de757583362b8b' }, index.h("div", { key: '09dd8369b976fe3cf3bcc84bc91ac4c1f553e454', class: 'tabs-container' }, index.h("button", { key: '41157341ca616277c51a6787cf6eec75b234600e', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), index.h("button", { key: 'cc649303cc7a4bec0322f9cd6e9f2b68418b86b5', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), index.h("button", { key: 'e84e1bae951d8a200fb0f93796a1e2a0069783d2', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), index.h("div", { key: '2f5621dbc686dcb5613f42537adcf6733809ed70', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (index.h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (index.h("div", { class: 'field-set' }, index.h("ls-field-dimensions", { dataItem: this.dataItem }))) : (index.h("div", { class: 'field-set' }, index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), index.h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), index.h("div", { class: 'ls-field-type-wrapper', style: {
|
|
25901
|
+
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
25902
|
+
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25903
|
+
} }, index.h("div", { class: 'ls-field-type-inner' }, index.h("div", { class: 'ls-field-type-icon', style: {
|
|
25904
|
+
border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
25905
|
+
color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
25906
|
+
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25907
|
+
} }, index.h("ls-icon", { name: "hashtag", size: "20" })), index.h("p", { class: 'ls-field-type-name' }, "Number")))), index.h("div", { class: 'ls-field-properties-section row' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), index.h("ls-toggle", null)), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), index.h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), index.h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), index.h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), index.h("div", { class: 'input-wrapper' }, index.h("ls-icon", { id: "selectorIcon", name: "selector" }), index.h("select", null, validationTypes
|
|
25908
|
+
.filter(type => type.formType === 'number')
|
|
25909
|
+
.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), index.h("div", { key: '7eb13a8e3801d7e9a9908d9efa21703b47cbbeb9', class: 'button-footer' }, index.h("button", { key: '8376532dd6f07807bf824515146e4f6cd39f47fb', class: 'secondary' }, index.h("ls-icon", { key: '8a5b3635ba8ef24b4fedfb72b48681f672a9a5f1', name: "field-duplicate", size: "20" }), "Duplicate"), index.h("button", { key: 'c2af55b4f3f3dbf24ef8ea592812d98501d8d948', class: 'destructive' }, index.h("ls-icon", { key: 'befbf4e7e625d4bc26bfaadfc1f8c6b9494e9346', name: "trash", size: "20" }), "Delete")), index.h("slot", { key: '9323c591f57fe3e110a9850c0f6ae1fcc14ffc0d' })));
|
|
25654
25910
|
}
|
|
25655
25911
|
};
|
|
25656
25912
|
LsFieldPropertiesNumber.style = lsFieldPropertiesNumberCss;
|
|
25657
25913
|
|
|
25658
|
-
const lsFieldPropertiesSignatureCss = ":host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.properties-container{display:flex;flex-direction:column;height:100%}.field-set{display:flex;flex-direction:column;gap:1rem;width:100%}.ls-field-properties-section{display:flex;position:relative;flex-direction:column;gap:0.5rem}.row{flex-direction:row;align-items:center;justify-content:space-between}.ls-field-properties-section-text{display:flex;flex-direction:column;gap:0.25rem;padding:0.25rem}.ls-field-properties-section-title{color:var(--gray-90, #5e6066);font-size:1rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-field-properties-section-description{overflow:hidden;color:var(--gray-80, #6c6e73);text-overflow:ellipsis;font-size:0.75rem;font-style:normal;font-weight:400;line-height:0.75rem;}.ls-field-type-wrapper{position:relative;border-radius:0.875rem;border:1px dashed var(--primary-30, #9dc3fc);background:var(--primary-10, #eff4ff);padding:0.25rem}.ls-field-type-inner{border-radius:0.625rem;background:var(--white, #fff);display:flex;padding:0.25rem 0.5rem 0.25rem 0.25rem;align-items:center;gap:0.875rem;align-self:stretch}.ls-field-type-icon{display:flex;padding:0.5rem;align-items:center;border-radius:0.5rem;border:1px solid var(--blue-60, #5684f0);background:var(--blue-10, #f0f6ff);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1);color:var(--blue-60, #5684f0)}.ls-field-type-name{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;}.tabs-container{display:grid;grid-template-columns:repeat(3, 1fr);width:100%;gap:0.125rem;padding:0.125rem;border:1px solid var(--gray-30, #e0e2e5);border-radius:0.75rem;background:var(--white, #ffffff)}.ls-tab{all:unset;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:0.5rem;border-radius:0.625rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;color:var(--gray-80, #6c6e73)}.ls-tab.active{background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.ls-tab:not(.active):hover{background:var(--gray-10, #f7f8fa)}.
|
|
25914
|
+
const lsFieldPropertiesSignatureCss = ":host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.properties-container{display:flex;flex-direction:column;height:100%}.field-set{display:flex;flex-direction:column;gap:1rem;width:100%}.ls-field-properties-section{display:flex;position:relative;flex-direction:column;gap:0.5rem}.row{flex-direction:row;align-items:center;justify-content:space-between}.ls-field-properties-section-text{display:flex;flex-direction:column;gap:0.25rem;padding:0.25rem}.ls-field-properties-section-title{color:var(--gray-90, #5e6066);font-size:1rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-field-properties-section-description{overflow:hidden;color:var(--gray-80, #6c6e73);text-overflow:ellipsis;font-size:0.75rem;font-style:normal;font-weight:400;line-height:0.75rem;}.ls-field-type-wrapper{position:relative;border-radius:0.875rem;border:1px dashed var(--primary-30, #9dc3fc);background:var(--primary-10, #eff4ff);padding:0.25rem}.ls-field-type-inner{border-radius:0.625rem;background:var(--white, #fff);display:flex;padding:0.25rem 0.5rem 0.25rem 0.25rem;align-items:center;gap:0.875rem;align-self:stretch}.ls-field-type-icon{display:flex;padding:0.5rem;align-items:center;border-radius:0.5rem;border:1px solid var(--blue-60, #5684f0);background:var(--blue-10, #f0f6ff);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1);color:var(--blue-60, #5684f0)}.ls-field-type-name{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;}.tabs-container{display:grid;grid-template-columns:repeat(3, 1fr);width:100%;gap:0.125rem;padding:0.125rem;border:1px solid var(--gray-30, #e0e2e5);border-radius:0.75rem;background:var(--white, #ffffff)}.ls-tab{all:unset;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:0.5rem;border-radius:0.625rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;color:var(--gray-80, #6c6e73)}.ls-tab.active{background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.ls-tab:not(.active):hover{background:var(--gray-10, #f7f8fa)}.scrolling-container{overflow-y:auto;padding:0 1rem;margin:0 -1rem;height:calc(100% - 10.938rem)}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:36px;width:100%}.input-wrapper{position:relative}.full-width{width:100%}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #fff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.destructive{border:1px solid var(--red-60, #f04438);background-color:white;color:var(--red-60)}button.destructive:hover{border:1px solid var(--red-70, #d92d20);background:var(--red-10, #fff1f0)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6c6e73)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}";
|
|
25659
25915
|
|
|
25660
25916
|
const LsFieldPropertiesSignature = class {
|
|
25661
25917
|
constructor(hostRef) {
|
|
25662
25918
|
index.registerInstance(this, hostRef);
|
|
25663
25919
|
}
|
|
25920
|
+
/**
|
|
25921
|
+
* The selected items information (as JSON).
|
|
25922
|
+
* {LSApiElement[]}
|
|
25923
|
+
*/
|
|
25664
25924
|
dataItem;
|
|
25665
25925
|
fieldSet = 'content';
|
|
25666
25926
|
signerColor = (index) => {
|
|
25667
25927
|
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
25668
25928
|
};
|
|
25669
25929
|
render() {
|
|
25670
|
-
return (index.h(index.Host, { key: '
|
|
25930
|
+
return (index.h(index.Host, { key: 'bba78cf458f70fbc544cb60f680da3caaeb75dc2' }, index.h("div", { key: '0872f0b8f0ef07c26e5057dff8063a7585cbe209', class: 'tabs-container' }, index.h("button", { key: 'f70b0321dc59359a1b940d9c9c2bfc23c945e0f4', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), index.h("button", { key: '835388d8c1a7c9f196254f75cbe4ff19d1a12dbe', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), index.h("button", { key: '95cfe797b9abf9f90580a29e607c132295590719', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), index.h("div", { key: 'a0b2c962acefbe939c3c41303f9def72bf10a0ed', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (index.h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (index.h("div", { class: 'field-set' }, index.h("ls-field-dimensions", { dataItem: this.dataItem }))) : (index.h("div", { class: 'field-set' }, index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), index.h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), index.h("div", { class: 'ls-field-type-wrapper', style: {
|
|
25671
25931
|
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
25672
25932
|
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25673
25933
|
} }, index.h("div", { class: 'ls-field-type-inner' }, index.h("div", { class: 'ls-field-type-icon', style: {
|
|
25674
25934
|
border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
25675
25935
|
color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
25676
25936
|
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25677
|
-
} }, index.h("ls-icon", { name: "signature", size: "20" })), index.h("p", { class: 'ls-field-type-name' }, "Signature")))), index.h("div", { class: 'ls-field-properties-section row' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), index.h("ls-toggle", null)), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), index.h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), index.h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" }))))), index.h("
|
|
25937
|
+
} }, index.h("ls-icon", { name: "signature", size: "20" })), index.h("p", { class: 'ls-field-type-name' }, "Signature")))), index.h("div", { class: 'ls-field-properties-section row' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), index.h("ls-toggle", null)), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), index.h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), index.h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" }))))), index.h("ls-field-footer", { key: '9a506f882be185fa072f577de42300275e7c6237', dataItem: this.dataItem }), index.h("slot", { key: '3c992d87c93531c50a6160f82c66b0ae83020ae3' })));
|
|
25678
25938
|
}
|
|
25679
25939
|
};
|
|
25680
25940
|
LsFieldPropertiesSignature.style = lsFieldPropertiesSignatureCss;
|
|
25681
25941
|
|
|
25682
|
-
const lsFieldPropertiesTextCss = ":host{display:
|
|
25942
|
+
const lsFieldPropertiesTextCss = ":host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.properties-container{display:flex;flex-direction:column;height:100%}.field-set{display:flex;flex-direction:column;gap:1rem;width:100%}.ls-field-properties-section{display:flex;position:relative;flex-direction:column;gap:0.5rem}.row{flex-direction:row;align-items:center;justify-content:space-between}.ls-field-properties-section-text{display:flex;flex-direction:column;gap:0.25rem;padding:0.25rem}.ls-field-properties-section-title{color:var(--gray-90, #5e6066);font-size:1rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-field-properties-section-description{overflow:hidden;color:var(--gray-80, #6c6e73);text-overflow:ellipsis;font-size:0.75rem;font-style:normal;font-weight:400;line-height:0.75rem;}.ls-field-type-wrapper{position:relative;border-radius:0.875rem;padding:0.25rem}.ls-field-type-inner{border-radius:0.625rem;background:var(--white, #fff);display:flex;padding:0.25rem 0.5rem 0.25rem 0.25rem;align-items:center;gap:0.875rem;align-self:stretch}.ls-field-type-icon{display:flex;padding:0.5rem;align-items:center;border-radius:0.5rem;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}.ls-field-type-name{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;}.tabs-container{display:grid;grid-template-columns:repeat(3, 1fr);width:100%;gap:0.125rem;padding:0.125rem;border:1px solid var(--gray-30, #e0e2e5);border-radius:0.75rem;background:var(--white, #ffffff)}.ls-tab{all:unset;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:0.5rem;border-radius:0.625rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;color:var(--gray-80, #6c6e73)}.ls-tab.active{background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.ls-tab:not(.active):hover{background:var(--gray-10, #f7f8fa)}.button-footer{display:flex;padding-top:1rem;border-top:1px solid var(--gray-20, #f0f1f2);flex-direction:column;justify-content:flex-end;gap:0.75rem;margin-top:auto}.scrolling-container{overflow-y:auto;padding:0 1rem;margin:0 -1rem;height:calc(100% - 10.938rem)}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:36px;width:100%}.input-wrapper{position:relative}.full-width{width:100%}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #fff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.destructive{border:1px solid var(--red-60, #f04438);background-color:white;color:var(--red-60)}button.destructive:hover{border:1px solid var(--red-70, #d92d20);background:var(--red-10, #fff1f0)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6c6e73)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}";
|
|
25683
25943
|
|
|
25684
25944
|
const LsFieldPropertiesText = class {
|
|
25685
25945
|
constructor(hostRef) {
|
|
25686
25946
|
index.registerInstance(this, hostRef);
|
|
25687
25947
|
}
|
|
25688
25948
|
dataItem;
|
|
25949
|
+
fieldSet = 'content';
|
|
25950
|
+
signerColor = (index) => {
|
|
25951
|
+
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
25952
|
+
};
|
|
25689
25953
|
render() {
|
|
25690
|
-
return (index.h(index.Host, { key: '
|
|
25954
|
+
return (index.h(index.Host, { key: '3c866e6f227934dff07ee9d2a26d65ed1c9afa82' }, index.h("div", { key: 'f0348081e8a5ffc70d6888e41ecd88c948150a60', class: 'tabs-container' }, index.h("button", { key: '0499e9d95ea152b86bd4e6440646de92b94d59df', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), index.h("button", { key: 'd6fa7d56ee8c7700b4395ade178ce577367d1b69', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), index.h("button", { key: '1449b28a226629068439b9f7277f3fa00549f273', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), index.h("div", { key: '4863f52297c424990c72d1aff181fa72c3f4d03b', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (index.h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (index.h("div", { class: 'field-set' }, index.h("ls-field-dimensions", { dataItem: this.dataItem }))) : (index.h("div", { class: 'field-set' }, index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), index.h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), index.h("div", { class: 'ls-field-type-wrapper', style: {
|
|
25955
|
+
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
25956
|
+
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25957
|
+
} }, index.h("div", { class: 'ls-field-type-inner' }, index.h("div", { class: 'ls-field-type-icon', style: {
|
|
25958
|
+
border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
25959
|
+
color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
25960
|
+
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
25961
|
+
} }, index.h("ls-icon", { name: "text", size: "20" })), index.h("p", { class: 'ls-field-type-name' }, "Text")))), index.h("div", { class: 'ls-field-properties-section row' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), index.h("ls-toggle", null)), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), index.h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), index.h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), index.h("div", { class: 'ls-field-properties-section' }, index.h("div", { class: 'ls-field-properties-section-text' }, index.h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), index.h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), index.h("div", { class: 'input-wrapper' }, index.h("ls-icon", { id: "selectorIcon", name: "selector" }), index.h("select", null, validationTypes
|
|
25962
|
+
.filter(type => type.formType === 'text')
|
|
25963
|
+
.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), index.h("div", { key: 'a437d78978c9937a48278a46f4a3998a88a9f638', class: 'button-footer' }, index.h("button", { key: '7dd5225d65d6dfa5fc2c8f0ebf6b921877aaa75f', class: 'secondary' }, index.h("ls-icon", { key: '764bc166996b128c8861bb82a7545814851ad162', name: "field-duplicate", size: "20" }), "Duplicate"), index.h("button", { key: '9e0d8e4d4fa8374d85ad62e1530344b20aea9bfa', class: 'destructive' }, index.h("ls-icon", { key: 'ce98729c0518cb7df746418e86a2bde57fb58efc', name: "trash", size: "20" }), "Delete")), index.h("slot", { key: '68766f87c0fb2705681f5b255cab2b089324dcad' })));
|
|
25691
25964
|
}
|
|
25692
25965
|
};
|
|
25693
25966
|
LsFieldPropertiesText.style = lsFieldPropertiesTextCss;
|
|
25694
25967
|
|
|
25695
|
-
const lsFieldSizeCss = ":host{display:
|
|
25968
|
+
const lsFieldSizeCss = ":host{display:flex;flex-direction:column;gap:1rem;width:100%;position:relative}.ls-toolbar-numeric{width:45px;max-height:18px;margin:0px;padding:0px}*{margin:0;box-sizing:border-box}.field-set{display:flex;flex-direction:column;gap:1rem;width:100%}.ls-field-properties-section{display:flex;position:relative;flex-direction:column;gap:0.5rem}.row{flex-direction:row;align-items:center;justify-content:space-between}.multi-button-group-row{display:flex;gap:0.5rem}.ls-field-properties-section-text{display:flex;flex-direction:column;gap:0.25rem;padding:0.25rem}.ls-field-properties-section-title{color:var(--gray-90, #5e6066);font-size:1rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-field-properties-section-description{overflow:hidden;color:var(--gray-80, #6c6e73);text-overflow:ellipsis;font-size:0.75rem;font-style:normal;font-weight:400;line-height:0.75rem;}.input-row{display:flex;gap:0.5rem}.input-row .input-wrapper input{width:9.313rem;max-width:9.313rem}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:36px}.input-wrapper{position:relative;width:100%}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIconDisabled{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-50, #d8d9dc)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover:not(:disabled),select:hover:not(:disabled),textarea:hover:not(:disabled){border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus:not(:disabled),select:focus:not(:disabled),textarea:focus:not(:disabled){outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active:not(:disabled),select:active:not(:disabled),textarea:active:not(:disabled){border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa);color:var(--gray-50, #d8d9dc);box-shadow:none}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip;width:100%}.button-group button{display:flex;width:100%;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;color:var(--gray-80, #6c6e73)}.button-group button:disabled{background:var(--gray-10, #f7f8fa);cursor:not-allowed;color:var(--gray-50, #d8d9dc)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}";
|
|
25696
25969
|
|
|
25697
25970
|
const LsFieldSize = class {
|
|
25698
25971
|
constructor(hostRef) {
|
|
@@ -25707,14 +25980,14 @@ const LsFieldSize = class {
|
|
|
25707
25980
|
// The source of the chain fires the mutation
|
|
25708
25981
|
alter(diff) {
|
|
25709
25982
|
const diffs = this.dataItem.map(c => {
|
|
25710
|
-
return { action:
|
|
25983
|
+
return { action: 'update', data: { ...c, ...diff } };
|
|
25711
25984
|
});
|
|
25712
25985
|
this.dataItem = diffs.map(d => d.data);
|
|
25713
25986
|
this.mutate.emit(diffs);
|
|
25714
25987
|
this.update.emit(diffs);
|
|
25715
25988
|
}
|
|
25716
25989
|
render() {
|
|
25717
|
-
return (index.h(index.Host, { key: '
|
|
25990
|
+
return (index.h(index.Host, { key: '90092261b158a8c5417d7745b58b8e9a0feb8852' }, index.h("div", { key: '97b5accd42cf1301a50260f60722e977130952db', class: 'ls-field-properties-section' }, index.h("div", { key: '302a99cce209ab3435384649e22ded2f17ad8d4b', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'c4ae8bfd79a563db422b5a9e70076fb6c13e49a7', class: 'ls-field-properties-section-title' }, "Scale and Resize"), index.h("p", { key: '74911d50258b788e430c1b23171269d3a2aa8596', class: 'ls-field-properties-section-description' }, "Multi-select fields and match their dimensions")), index.h("div", { key: '665ac7372b6c2728c864de3be654a61677da70fa', class: 'button-group' }, index.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" }, index.h("ls-icon", { key: '9599ead6bbdc0d994316b97fe9dc00a7875ed7a2', name: "field-scale" })), index.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" }, index.h("ls-icon", { key: '597a69fb82f407187d7c5fde43e7144d17aa4be4', name: "field-match-width" })), index.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" }, index.h("ls-icon", { key: 'a3f3f8e51a70e0ba38607e0856718d5534c86456', name: "field-match-height" })))), index.h("slot", { key: '19e743f951e9ca9c6484941edce58248818052c7' })));
|
|
25718
25991
|
}
|
|
25719
25992
|
};
|
|
25720
25993
|
LsFieldSize.style = lsFieldSizeCss;
|
|
@@ -25762,10 +26035,10 @@ const LsFormfield = class {
|
|
|
25762
26035
|
render() {
|
|
25763
26036
|
const { name, fieldId, label, as, value, placeholder, descriptionText, errorText, aria, infoTooltipText, disabled, extraLabel, valid, dirty, count, countMax, buttonClick, buttonIcon, fieldIcon, labelIcon, } = this;
|
|
25764
26037
|
const countClass = value && value.toString().length > countMax ? 'formfield-count-error' : 'formfield-count';
|
|
25765
|
-
return (index.h("host", { key: '
|
|
26038
|
+
return (index.h("host", { key: 'b97320b063e1c80460b03b61637c82db67d42f2c', class: "formfield-host" }, label?.length > 1 || extraLabel !== 'none' && (index.h("div", { key: '878ecc2332b69c6801d2818a0e7c5fd1fe4009a8', class: "formfield-top-elements" }, index.h("div", { key: '8430689883d2b6ae6f2738c8854ff0bbc3662074', class: "formfield-left-side" }, labelIcon && index.h("ls-icon", { key: 'f4430dddc52d37be775d817ee54f442d6a17c013', name: labelIcon }), index.h("label", { key: '6914de667241020f4c23eddd7ca81fd02ef0481c', htmlFor: name, class: "formfield-label" }, label), infoTooltipText && index.h("ls-icon", { key: '2e3202967b3acd4bc834c6e809f307af79f74316', name: 'information-circle' })), extraLabel === 'optional' ? (index.h("ls-label", { text: "Optional", colour: "gray", type: "low" })) : extraLabel === 'required' ? (index.h("ls-label", { text: "Required", colour: "gray", type: "low" })) : (''))), as === 'text' ? (index.h("ls-text-input", { id: fieldId, name: name, value: value?.toString(), countMax: countMax, placeholder: placeholder, "aria-label": aria, required: extraLabel === 'required', disabled: disabled, valid: valid, dirty: dirty, buttonIcon: buttonIcon, buttonClick: buttonClick, fieldIcon: fieldIcon, onInput: (event) => this.handleChange(event) })) : as === 'select' ? (index.h("ls-select-input", { id: name, name: name, "aria-label": aria, required: extraLabel === 'required', disabled: disabled, valid: valid, dirty: dirty, buttonIcon: buttonIcon, buttonClick: buttonClick, fieldIcon: fieldIcon }, index.h("slot", null))) : as === 'radio' ? (index.h("ls-radio-input", { radioId: label, label: value?.toString(), icon: fieldIcon, name: name, disabled: disabled })) : as === 'textarea' ? (index.h("ls-textarea-input", { id: name, name: name, value: value?.toString(), countMax: countMax, placeholder: placeholder, "aria-label": aria, required: extraLabel === 'required', disabled: disabled, valid: valid, dirty: dirty, buttonIcon: buttonIcon, buttonClick: buttonClick, fieldIcon: fieldIcon })) : as === 'password' ? (index.h("ls-text-input", { type: "password", id: name, name: name, value: value?.toString(), countMax: countMax, placeholder: placeholder, "aria-label": aria, required: extraLabel === 'required', disabled: disabled, valid: valid, dirty: dirty, buttonIcon: buttonIcon, buttonClick: buttonClick, fieldIcon: fieldIcon })) : as === 'displayonly' ? (index.h("ls-text-input", { type: "displayonly", id: name, name: name, value: value?.toString(), countMax: countMax, placeholder: placeholder, "aria-label": aria, required: extraLabel === 'required', disabled: disabled, valid: valid, dirty: dirty, buttonIcon: buttonIcon, buttonClick: buttonClick, fieldIcon: fieldIcon })) : as === 'number' ? (index.h("ls-number-input", { type: "ls", id: name, name: name, value: Number(value), countMax: countMax, placeholder: placeholder, "aria-label": aria, required: extraLabel === 'required', disabled: disabled, valid: valid, dirty: dirty, buttonIcon: buttonIcon, buttonClick: buttonClick, fieldIcon: fieldIcon })) : (index.h("p", null, "placeholder")), errorText ||
|
|
25766
26039
|
count ||
|
|
25767
26040
|
countMax ||
|
|
25768
|
-
(descriptionText && (index.h("div", { key: '
|
|
26041
|
+
(descriptionText && (index.h("div", { key: 'c2469ddfb668d4f91161245beb9828d3aaa78cfc', class: "formfield-bottom-elements" }, errorText && !valid ? index.h("p", { class: "formfield-error-text" }, errorText) : descriptionText ? index.h("p", { class: "formfield-description-text" }, descriptionText) : '', count && (index.h("div", { key: '657abb6daeccc091b7bf2b603c0d5f52288c4f21', class: "formfield-count-container" }, index.h("p", { key: '8e47dc6bd491f6c6b9ba9ce926187c588d7b8f1b', class: countClass }, value?.toString()?.length), countMax > 0 && (index.h("div", { key: '1362cf5526896aa051560d0a5a97cf13fab52ffe', class: countClass }, index.h("p", { key: '88e5d634fc4537fbc7bd0d7e41cb59dcf128cfdc' }, "/"), index.h("p", { key: '73e0c0238b0567e28c819b55976164d968037e3c' }, countMax))))))))));
|
|
25769
26042
|
}
|
|
25770
26043
|
static get watchers() { return {
|
|
25771
26044
|
"value": ["valueWatcher"]
|
|
@@ -25792,6 +26065,26 @@ const icons = [
|
|
|
25792
26065
|
/>
|
|
25793
26066
|
</svg>`,
|
|
25794
26067
|
},
|
|
26068
|
+
{
|
|
26069
|
+
name: 'auto-sign',
|
|
26070
|
+
svgSolid: html `No Solid`,
|
|
26071
|
+
svgOutline: html `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
26072
|
+
<path
|
|
26073
|
+
d="M2.56982 14.9622C9.47363 2.35513 4.24988 1.06281 3.25357 3.48957C2.25725 5.91634 2.31282 18.1037 6.76179 17.5019C8.62002 17.2506 10.5361 13.9836 10.5361 11.7403C10.5361 9.1703 8.37459 9.25167 7.82834 10.7181C6.98876 12.9721 7.80105 17.6966 10.5361 17.5019C12.137 17.388 12.2369 15.7379 12.2369 15.7379C12.2369 15.7379 12.5741 17.4006 13.8501 17.5019C15.1261 17.6032 15.5111 16.2249 15.5111 16.2249C15.5111 16.2249 15.9152 17.7481 17.6133 17.5019"
|
|
26074
|
+
stroke="currentColor"
|
|
26075
|
+
stroke-width="2"
|
|
26076
|
+
stroke-linecap="round"
|
|
26077
|
+
stroke-linejoin="round"
|
|
26078
|
+
/>
|
|
26079
|
+
<path
|
|
26080
|
+
d="M15.2217 5.6746L14.2694 2.5L13.317 5.6746L10.936 6.66667L13.317 7.65873L14.2694 10.8333L15.2217 7.65873L17.6027 6.66667L15.2217 5.6746Z"
|
|
26081
|
+
stroke="currentColor"
|
|
26082
|
+
stroke-width="2"
|
|
26083
|
+
stroke-linecap="round"
|
|
26084
|
+
stroke-linejoin="round"
|
|
26085
|
+
/>
|
|
26086
|
+
</svg> `,
|
|
26087
|
+
},
|
|
25795
26088
|
{
|
|
25796
26089
|
name: 'bell',
|
|
25797
26090
|
svgSolid: html `<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">
|
|
@@ -32396,6 +32689,7 @@ var IconEnum;
|
|
|
32396
32689
|
(function (IconEnum) {
|
|
32397
32690
|
// Hero Icons
|
|
32398
32691
|
IconEnum["MailIcon"] = "mail";
|
|
32692
|
+
IconEnum["AutoSign"] = "auto-sign";
|
|
32399
32693
|
IconEnum["BellIcon"] = "bell";
|
|
32400
32694
|
IconEnum["HomeIcon"] = "home";
|
|
32401
32695
|
IconEnum["BriefcaseIcon"] = "briefcase";
|
|
@@ -32776,7 +33070,7 @@ const LsIcon = class {
|
|
|
32776
33070
|
console.warn('Icons in src/components/ls-icon/icons.ts should be identical to the enum type in src/types/Icon.ts. Please add all icons to the enum type.');
|
|
32777
33071
|
}
|
|
32778
33072
|
render() {
|
|
32779
|
-
return (index.h("host", { key: '
|
|
33073
|
+
return (index.h("host", { key: 'e53edb8f22349510399881fb8e76190b03209751' }, icons
|
|
32780
33074
|
?.filter((icon) => icon.name === this.name)
|
|
32781
33075
|
?.map((icon) => (index.h("div", { key: icon?.name, class: 'iconContainer', style: {
|
|
32782
33076
|
height: `${this.size}px`,
|
|
@@ -32827,7 +33121,7 @@ const LsNumberInput = class {
|
|
|
32827
33121
|
? 'invalid'
|
|
32828
33122
|
: 'default', fieldIcon && 'icon-input', dirty && 'button-input', buttonIcon && 'button-input', buttonIcon && dirty && 'right-items-input');
|
|
32829
33123
|
const plusMinusClass = clsx(disabled ? 'button-disabled' : 'button');
|
|
32830
|
-
return (index.h("host", { key: '
|
|
33124
|
+
return (index.h("host", { key: 'beb0a335033fe6f62f8fd5a753547dc30b1b9ca3', class: type === 'ls' && 'host' }, type === 'ls' && (index.h("button", { key: 'bea2559e9a33458628f15ec7dc5e262c1c75b00d', class: plusMinusClass, onClick: () => handleMinus(), disabled: disabled }, index.h("ls-icon", { key: '85b15e026a28bc9975861d9e0baebe4168d03422', id: 'buttonIcon', name: 'minus-sm' }))), index.h("div", { key: 'f3874bc425a87aa07513aca5ea603e28d6b489fb', class: 'input-container' }, fieldIcon && (index.h("ls-icon", { key: '6c812a63124cbd3f745de5dc6c1ec78faf01d49b', id: disabled ? 'fieldIconDisabled' : 'fieldIcon', name: fieldIcon })), index.h("input", { key: '9f24c493dfa34436183121fa06115511b9d078d0', type: 'number', class: inputClass, id: name, name: name, value: value, placeholder: placeholder, "aria-label": aria, required: required, disabled: disabled, onInput: (event) => handleChange(event) }), index.h("div", { key: '56e238651c4716be0229d8ecb02e3c332ab48545', class: 'right-items' }, dirty && !disabled && (index.h("ls-icon", { key: 'e72d8f9ea8094bd3a5778b76b881f93abaea94b5', id: valid ? 'validIcon' : 'invalidIcon', name: valid ? 'check-circle' : 'exclamation-circle' })), buttonIcon && type !== 'ls' && (index.h("button", { key: '99d14f1c814972f434a4d301e3314ae97005508f', class: 'button', onClick: buttonClick }, index.h("ls-icon", { key: '51e815f1d9c8cf3840c7dd5a908e5721736d458d', id: 'buttonIcon', name: buttonIcon }))))), type === 'ls' && (index.h("button", { key: '1bde6ed929ef2dde774be6c23c30756e3a1fbea1', class: plusMinusClass, onClick: handlePlus, disabled: disabled }, index.h("ls-icon", { key: '76e662184421697ee480fdaddfc37dd59f51bb40', id: 'buttonIcon', name: 'plus-sm' })))));
|
|
32831
33125
|
}
|
|
32832
33126
|
};
|
|
32833
33127
|
LsNumberInput.style = lsNumberInputCss;
|
|
@@ -32857,22 +33151,25 @@ const LsParticipantManager = class {
|
|
|
32857
33151
|
}
|
|
32858
33152
|
deleteHandler(role) {
|
|
32859
33153
|
this.update.emit([{ action: 'delete', data: role }]);
|
|
33154
|
+
this.mutate.emit([{ action: 'delete', data: role }]);
|
|
32860
33155
|
}
|
|
32861
33156
|
swapHandler(role1, role2) {
|
|
32862
33157
|
this.update.emit([{ action: 'swap', data: role1, data2: role2 }]);
|
|
32863
33158
|
}
|
|
32864
33159
|
createHandler() {
|
|
33160
|
+
const defaultExperience = this.editor._group.experienceConnection.experiences.find(x => x.defaultExperience === true);
|
|
32865
33161
|
const data = [
|
|
32866
33162
|
{
|
|
32867
33163
|
action: 'create',
|
|
32868
33164
|
data: {
|
|
32869
33165
|
id: btoa('rol' + crypto.randomUUID()),
|
|
32870
|
-
name: 'Signer ' + this.template.roles.length,
|
|
33166
|
+
name: 'Signer ' + (this.template.roles.length + 1),
|
|
32871
33167
|
roleType: 'SIGNER',
|
|
32872
|
-
signerIndex: this.template.roles.length,
|
|
33168
|
+
signerIndex: this.template.roles.length + 1,
|
|
32873
33169
|
ordinal: this.template.roles.length,
|
|
32874
33170
|
signerParent: null,
|
|
32875
|
-
experience:
|
|
33171
|
+
experience: defaultExperience.id,
|
|
33172
|
+
templateId: this.template.id
|
|
32876
33173
|
},
|
|
32877
33174
|
},
|
|
32878
33175
|
];
|
|
@@ -32883,7 +33180,7 @@ const LsParticipantManager = class {
|
|
|
32883
33180
|
return index > 200 ? 'gray' : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
32884
33181
|
};
|
|
32885
33182
|
render() {
|
|
32886
|
-
return (index.h(index.Host, { key: '
|
|
33183
|
+
return (index.h(index.Host, { key: '4f05b9b42935d385ac4dcf575dff6655a39b625c' }, index.h("div", { key: '07ec67a5c919dbc1258768dd7db80d21790a8c1e', class: "ls-editor-infobox" }, index.h("h2", { key: '365f0a1c25e77ffc1b89354b867e7844b53a40fe', class: "toolbox-section-title" }, "Participants"), index.h("p", { key: 'cc7e0187d20492ea7568bd77ef4c3cb2df8b12ce', class: "toolbox-section-description" }, "Select and Click to place Signature fields where you\u2019d like on the Document.")), index.h("div", { key: '61045bc3accf319bfd5c84953f6a0066b6bd2114', class: "participant-list" }, this.template && this.template?.roles.map((r, index$1) => {
|
|
32887
33184
|
return (index.h("div", { class: "participant-card", onClick: () => {
|
|
32888
33185
|
this.selectedHandler(r);
|
|
32889
33186
|
}, style: {
|
|
@@ -32901,13 +33198,14 @@ const LsParticipantManager = class {
|
|
|
32901
33198
|
color: `var(--${this.participantColor(r?.signerIndex)}-100)`,
|
|
32902
33199
|
} }, r.name || `${r.signerIndex > 100 ? 'Witness' : 'Signer'} ${index$1 + 1}`), index.h("p", { class: "participant-text-type", style: {
|
|
32903
33200
|
color: `var(--${this.participantColor(r?.signerIndex)}-80)`,
|
|
32904
|
-
|
|
32905
|
-
|
|
33201
|
+
textTransform: 'capitalize'
|
|
33202
|
+
} }, r.roleType))));
|
|
33203
|
+
})), index.h("div", { key: '295045bfeca2144d556311574fe6c34e74453c40', class: 'add-participant-button' }, index.h("button", { key: '6a0a02834fd09aff180fffc58983a0eac9fde61d', onClick: () => this.createHandler() }, index.h("ls-icon", { key: 'd623a2c621f730b96339657d49be661c96d1d9fa', name: "user-add", size: "20", color: "var(--gray-100, #45484D);" }), index.h("p", { key: 'ce3954251ce0b939dab95f9ea1772da1bb0cf9ea' }, "Add Participant"))), index.h("slot", { key: '65e160a9fde84fb8a09b14e60c992324bd9a8892' })));
|
|
32906
33204
|
}
|
|
32907
33205
|
};
|
|
32908
33206
|
LsParticipantManager.style = lsParticipantManagerCss;
|
|
32909
33207
|
|
|
32910
|
-
const lsParticipantSelectCss = ":host{display:inline-block}*{margin:0}.dropdown{display:flex;align-items:center;position:relative}.dropdown-header{border-radius:0.625rem;border:1px solid var(--gray-20, #edeff2);background:var(--gray-10, #f7f8fa);display:flex;padding:0.125rem 0.125rem 0.125rem 0.5rem;align-items:center;gap:0.5rem}.placing-fields-text{color:var(--gray-90, #5e6066);text-align:center;font-size:0.875rem;font-style:normal;font-weight:500;margin:0}.selected-role-label{display:flex;padding:0.125rem 0.375rem;justify-content:center;align-items:center;gap:0.25rem;border-radius:0.25rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;}.dropdown-list{position:absolute;top:3rem;left:50%;transform:translateX(-50%);display:flex;width:18.5625rem;padding:0.25rem;flex-direction:column;gap:0.25rem;border-radius:0.75rem;border:1px solid var(--gray-30, #e0e2e5);background:white;box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);max-height:40vh;overflow-y:auto}.dropdown-item{display:flex;padding:0.5rem 0.875rem 0.5rem 0.5rem;align-items:center;gap:0.75rem;align-self:stretch;border-radius:0.5rem}.dropdown-item.selected,.dropdown-item.selected:hover{background:var(--
|
|
33208
|
+
const lsParticipantSelectCss = ":host{display:inline-block}*{margin:0}.dropdown{display:flex;align-items:center;position:relative}.dropdown-header{border-radius:0.625rem;border:1px solid var(--gray-20, #edeff2);background:var(--gray-10, #f7f8fa);display:flex;padding:0.125rem 0.125rem 0.125rem 0.5rem;align-items:center;gap:0.5rem}.placing-fields-text{color:var(--gray-90, #5e6066);text-align:center;font-size:0.875rem;font-style:normal;font-weight:500;margin:0}.selected-role-label{display:flex;padding:0.125rem 0.375rem;justify-content:center;align-items:center;gap:0.25rem;border-radius:0.25rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;}.dropdown-list{position:absolute;top:3rem;left:50%;transform:translateX(-50%);display:flex;width:18.5625rem;padding:0.25rem;flex-direction:column;gap:0.25rem;border-radius:0.75rem;border:1px solid var(--gray-30, #e0e2e5);background:white;box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);max-height:40vh;overflow-y:auto}.dropdown-item{display:flex;padding:0.5rem 0.875rem 0.5rem 0.5rem;align-items:center;gap:0.75rem;align-self:stretch;border-radius:0.5rem}.dropdown-item.selected,.dropdown-item.selected:hover{background:var(--background-selected, #e0e2e5)}.dropdown-item:hover{background:var(--gray-10, #f7f8fa)}.role-icon{display:flex;padding:0.5rem;border-radius:0.625rem}.role-text{display:flex;flex-direction:column;width:100%}.dropdown-item .check-icon{color:var(--gray-40, #d8d9dc)}.dropdown-item.selected .check-icon{color:var(--check-icon-selected)}.role-name{color:var(--gray-100, #45484d);font-size:0.75rem;font-style:normal;font-weight:500;line-height:1rem;}.role-type{color:var(--gray-80, #787a80);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem;}.dropdown-item.selected .role-name{color:var(--role-name-selected)}.dropdown-item.selected .role-type{color:var(--role-type-selected)}p{color:var(--gray-80, #6c6e73);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.button-link,.button-link:hover{all:unset}select{appearance:none;height:36px}.input-wrapper{position:relative;width:fit-content}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6c6e73)}.has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.5rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #fff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #fff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type='checkbox']{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type='checkbox']:checked,input[type='checkbox'].indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type='checkbox']:checked::after{content:'';position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type='checkbox'].indeterminate::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type='checkbox']:checked:hover,input[type='checkbox'].indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type='checkbox']:hover{border:1px solid #9ca3af}input[type='checkbox']:focus,input[type='checkbox']:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type='checkbox']:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type='checkbox']:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.checkbox-container{display:flex;gap:0.5rem;width:100%}.checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #0c7cba)}.expand-button{border:0;cursor:pointer;display:inline-flex;align-items:center;border-radius:0.5rem;justify-content:center;text-transform:capitalize;min-height:2rem;min-width:2rem;max-height:2rem;max-width:2rem}button.tertiaryGrey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #787a80)}button.tertiaryGrey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.button-group{display:flex;border-radius:0.5rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6c6e73)}.button-group button:hover{background:var(--gray-10, #f7f8fa)}.button-group>:first-child{border-radius:0.5rem 0 0 0.5rem}.button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}";
|
|
32911
33209
|
|
|
32912
33210
|
const LsParticipantSelect = class {
|
|
32913
33211
|
constructor(hostRef) {
|
|
@@ -32921,7 +33219,7 @@ const LsParticipantSelect = class {
|
|
|
32921
33219
|
* The currently selected role.
|
|
32922
33220
|
* {number}
|
|
32923
33221
|
*/
|
|
32924
|
-
selectedRole = { signerIndex: 0, name: 'Sender' };
|
|
33222
|
+
selectedRole = { signerIndex: 0, name: 'Sender', roleType: 'SENDER' };
|
|
32925
33223
|
/**
|
|
32926
33224
|
* The current template roles.
|
|
32927
33225
|
* {LSApiRole}
|
|
@@ -32953,21 +33251,37 @@ const LsParticipantSelect = class {
|
|
|
32953
33251
|
console.log('Selected role:', this.selectedRole);
|
|
32954
33252
|
}
|
|
32955
33253
|
participantColor = (index) => {
|
|
32956
|
-
return index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
33254
|
+
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
32957
33255
|
};
|
|
32958
33256
|
render() {
|
|
32959
|
-
|
|
33257
|
+
console.log(this.selectedRole);
|
|
33258
|
+
return (index.h(index.Host, { key: '097514e82e870acdeaea5520a07dee58d623e8dd' }, index.h("div", { key: '520a4fc7e5d787795147eb09c28a69b7c31fd1c6', class: "dropdown" }, index.h("div", { key: '3319bd3d55f1cc265deebe05d065af83a79631bf', class: "dropdown-header", onClick: this.toggleDropdown }, index.h("svg", { key: '0454343f6b2a6af37933b30d7c50c757f2cc389f', width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'a8e03eee8c2baa5f3d35faac7c7c32a8ee467a97', d: "M4 0.5H6.5C8.433 0.5 10 2.067 10 4V6.5C10 8.433 8.433 10 6.5 10H4C2.067 10 0.5 8.433 0.5 6.5V4C0.5 2.067 2.067 0.5 4 0.5Z", fill: "#78A3FA", stroke: "#F7F8FA" }), index.h("path", { key: '935be72455a27991639c6fa9affdc040a14e220a', d: "M13.5 0.5H16C17.933 0.5 19.5 2.067 19.5 4V6.5C19.5 8.433 17.933 10 16 10H13.5C11.567 10 10 8.433 10 6.5V4C10 2.067 11.567 0.5 13.5 0.5Z", fill: "#46DBAA", stroke: "#F7F8FA" }), index.h("path", { key: 'ff42263315110f6fe02a926d075aebb753dcc9f6', d: "M4 10H6.5C8.433 10 10 11.567 10 13.5V16C10 17.933 8.433 19.5 6.5 19.5H4C2.067 19.5 0.5 17.933 0.5 16V13.5C0.5 11.567 2.067 10 4 10Z", fill: "#FAD232", stroke: "#F7F8FA" }), index.h("path", { key: '0d54951d113826d171f3de27b5e0ffeaf11ad69d', d: "M14.75 12.125V14.75M14.75 14.75V17.375M14.75 14.75H17.375M14.75 14.75L12.125 14.75", stroke: "#939599", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })), index.h("p", { key: '07e310527a339b51a36069832fee0cf891eadf8c', class: 'placing-fields-text' }, "Placing Fields for"), index.h("div", { key: '2bc97987345d296f8426aa0359b84c65bb675b48', class: 'selected-role-label', style: {
|
|
32960
33259
|
background: `var(--${this.participantColor(this.selectedRole?.signerIndex)}-20)`,
|
|
32961
33260
|
color: `var(--${this.participantColor(this.selectedRole?.signerIndex)}-90)`,
|
|
32962
|
-
} }, index.h("ls-icon", { key: '
|
|
33261
|
+
} }, index.h("ls-icon", { key: '90318f0f94f60b0e95d0ffc30576c31759df2ff9', size: "18", name: this.selectedRole?.roleType === 'SENDER' ? 'user' : this.selectedRole?.roleType === 'APPROVER' ? 'check-circle' : this.selectedRole?.roleType === 'WITNESS' ? 'eye' : 'signature' }), this.selectedRole.name ||
|
|
33262
|
+
(this.selectedRole.signerIndex > 100 ? `Participant ${this.selectedRole.signerIndex - 100} Witness` : `Participant ${this.selectedRole.signerIndex}`)), index.h("button", { key: '4f53ff5d8f3e14f6f705fc57b5bb3206ea350562', class: 'tertiaryGrey expand-button', "aria-haspopup": "listbox", "aria-expanded": this.isOpen }, index.h("ls-icon", { key: '326107f673004346ff3232515e1630ee7090f927', name: "chevron-down" }))), this.isOpen && (index.h("div", { key: 'bc188253d880bf993b585f924defabb0efd66ea7', class: "dropdown-list" }, index.h("div", { key: 'c3886e83c8514ae2ac2616c23f3583a3cf036ff5', class: this.selectedRole?.signerIndex === 0 ? 'dropdown-item selected' : 'dropdown-item', style: {
|
|
33263
|
+
'--background-selected': `var(--${defaultRolePalette[0]}-10)`,
|
|
33264
|
+
'--check-icon-selected': `var(--${defaultRolePalette[0]}-50)`,
|
|
33265
|
+
}, onClick: () => this.selectRole({ signerIndex: 0, name: 'Sender', roleType: 'SENDER' }), onMouseEnter: e => e.currentTarget.querySelector('.check-icon')?.setAttribute('name', 'check-circle'), onMouseLeave: e => e.currentTarget.querySelector('.check-icon')?.setAttribute('name', this.selectedRole?.signerIndex !== 0 ? 'base-circle' : 'check-circle') }, index.h("div", { key: '25c93faa92cdbeed92514b5df9181cc7673135cc', class: 'role-icon', style: {
|
|
32963
33266
|
background: `var(--${defaultRolePalette[0]}-40)`,
|
|
32964
33267
|
color: `var(--${defaultRolePalette[0]}-80)`,
|
|
32965
|
-
} }, index.h("ls-icon", { key: '
|
|
33268
|
+
} }, index.h("ls-icon", { key: 'f8285a338ea604f76b1a1dc7e3f716e7c99890fe', name: "user" })), index.h("div", { key: '2678585faff4e351e0d4ab14b3ad198e2dd7a89c', class: 'role-text' }, index.h("p", { key: '5e4aaa375421f9a5f7a03c4c937f7f43bf29906b', class: 'role-name', style: {
|
|
33269
|
+
'--role-name-selected': `var(--${defaultRolePalette[0]}-100)`,
|
|
33270
|
+
} }, 'Sender'), index.h("p", { key: '16bc966af7ea7462505ac34806b98ac94295ee61', class: 'role-type', style: {
|
|
33271
|
+
'--role-type-selected': `var(--${defaultRolePalette[0]}-80)`,
|
|
33272
|
+
} }, "You")), index.h("ls-icon", { key: '55f4d9f94a4b7dfec072e4a26a239b44f9b4b36f', class: 'check-icon', name: this.selectedRole?.signerIndex === 0 ? 'check-circle' : 'base-circle', solid: this.selectedRole?.signerIndex === 0 })), this.roles.map(r => (index.h("div", { class: r.signerIndex === this.selectedRole?.signerIndex ? 'dropdown-item selected' : 'dropdown-item', style: {
|
|
33273
|
+
'--background-selected': `var(--${this.participantColor(r?.signerIndex)}-10)`,
|
|
33274
|
+
'--check-icon-selected': `var(--${this.participantColor(r?.signerIndex)}-50)`,
|
|
33275
|
+
}, onClick: () => this.selectRole(r), onMouseEnter: e => e.currentTarget.querySelector('.check-icon')?.setAttribute('name', 'check-circle'), onMouseLeave: e => e.currentTarget
|
|
32966
33276
|
.querySelector('.check-icon')
|
|
32967
33277
|
?.setAttribute('name', r.signerIndex !== this.selectedRole?.signerIndex ? 'base-circle' : 'check-circle') }, index.h("div", { class: 'role-icon', style: {
|
|
32968
33278
|
background: r.signerIndex > 100 ? `var(--${this.participantColor(r?.signerIndex)}-30)` : `var(--${this.participantColor(r?.signerIndex)}-40)`,
|
|
32969
33279
|
color: `var(--${this.participantColor(r?.signerIndex)}-90)`,
|
|
32970
|
-
} }, index.h("ls-icon", { name: r.
|
|
33280
|
+
} }, index.h("ls-icon", { name: r.roleType === 'WITNESS' ? 'eye' : r.roleType === 'APPROVER' ? 'check-circle' : 'signature' })), index.h("div", { class: 'role-text' }, index.h("p", { class: 'role-name', style: {
|
|
33281
|
+
'--role-name-selected': `var(--${this.participantColor(r?.signerIndex)}-100)`,
|
|
33282
|
+
} }, r.name || r.signerIndex > 100 ? `Participant ${r.signerIndex - 100} Witness` : `Participant ${r.signerIndex}`), index.h("p", { class: 'role-type', style: {
|
|
33283
|
+
'--role-type-selected': `var(--${this.participantColor(r?.signerIndex)}-80)`,
|
|
33284
|
+
} }, r.roleType === 'WITNESS' ? 'Witness' : r.roleType === 'APPROVER' ? 'Approver' : 'Signer')), index.h("ls-icon", { class: 'check-icon', name: r.signerIndex === this.selectedRole?.signerIndex ? 'check-circle' : 'base-circle', solid: r.signerIndex === this.selectedRole?.signerIndex }))))))), index.h("slot", { key: '36d04c99b0eea3e78c11e1cc269b82a35562ab2a' })));
|
|
32971
33285
|
}
|
|
32972
33286
|
};
|
|
32973
33287
|
LsParticipantSelect.style = lsParticipantSelectCss;
|
|
@@ -32988,7 +33302,7 @@ const LsRadioInput = class {
|
|
|
32988
33302
|
render() {
|
|
32989
33303
|
const { label, radioId, icon, name, disabled, checked, customStyle, } = this;
|
|
32990
33304
|
const radioLabelClass = clsx('radioLabel', disabled && 'disabled', checked && 'checked');
|
|
32991
|
-
return (index.h("label", { key: '
|
|
33305
|
+
return (index.h("label", { key: '0a42e5e7876168eeac63f3d1005d64b2ab90107c', htmlFor: radioId, tabIndex: 0, class: radioLabelClass, style: customStyle }, index.h("input", { key: '106b67793bf5dde83ef6086cd588b3fdc59befe7', type: 'radio', class: 'inputClass', id: radioId, name: name, value: label, disabled: disabled, tabIndex: 0, checked: checked }), index.h("div", { key: '2fcabb808dd94c490ddb855d5da1261f6965be55', class: 'spanContainer' }, index.h("span", { key: 'b5b74b98e6553da9497d9da33f4a268292b2bec5' }, icon && index.h("ls-icon", { key: '700388ccde573f6432597eb4111fff01577ee8f7', name: icon, size: "16" })), index.h("span", { key: 'f0a9bf1243d429bd4d62c619c6f043057099a8ff' }, label))));
|
|
32992
33306
|
}
|
|
32993
33307
|
};
|
|
32994
33308
|
LsRadioInput.style = lsRadioInputCss;
|
|
@@ -33025,7 +33339,7 @@ const LsSelectInput = class {
|
|
|
33025
33339
|
: displayOnly
|
|
33026
33340
|
? 'displayOnly'
|
|
33027
33341
|
: 'default', fieldIcon && 'icon-input', dirty && 'button-input', buttonIcon && 'button-input', buttonIcon && dirty && 'right-items-input');
|
|
33028
|
-
return (index.h("host", { key: '
|
|
33342
|
+
return (index.h("host", { key: '6057a8c24ad92b90d7d0306cc33e1d1203013d57', class: 'host' }, fieldIcon && (index.h("ls-icon", { key: 'bd93aa8411864400f3252b07d0422e3878f064c8', id: disabled ? 'fieldIconDisabled' : 'fieldIcon', name: fieldIcon })), index.h("select", { key: '89f56b035f9406771bcfd02c4e028d246a1c3132', class: inputClass, id: name, name: name, "aria-label": aria, required: required, disabled: disabled }, index.h("slot", { key: '325b4225d203241b8be7566a60ac506ca77108eb' })), index.h("div", { key: '2d28afc89b2155e0fa629d174dc9601283002fb8', class: 'right-items' }, dirty && !disabled && (index.h("ls-icon", { key: '0b5d46698d73145af331452c27b5c4ecf9b03491', id: valid ? 'validIcon' : 'invalidIcon', name: valid ? 'check-circle' : 'exclamation-circle' })), buttonIcon ? (index.h("button", { class: 'button', onClick: buttonClick }, index.h("ls-icon", { id: 'buttonIcon', name: buttonIcon }))) : (index.h("ls-icon", { id: disabled ? 'select-arrow-disabled' : 'select-arrow', name: 'chevron-down' })))));
|
|
33029
33343
|
}
|
|
33030
33344
|
};
|
|
33031
33345
|
LsSelectInput.style = lsSelectInputCss;
|
|
@@ -33071,11 +33385,11 @@ const LsStatusbar = class {
|
|
|
33071
33385
|
}
|
|
33072
33386
|
render() {
|
|
33073
33387
|
console.log('editor', this.editor);
|
|
33074
|
-
return (index.h(index.Host, { key: '
|
|
33388
|
+
return (index.h(index.Host, { key: '8e9e1e244b4fc8ea111d2f8ae389b226caf204d9' }, index.h("div", { key: 'cb05827b0b9c57cc038ccb854669a7fa687a8559', class: "status-bar-section" }, index.h("button", { key: '9626704051c452f0b2aa4160fc0940a269aa0b97', onClick: () => this.setZoom(this.editor.zoom * 0.8) }, index.h("ls-icon", { key: '848e4d939f839f5d12ed193e802ee936030929da', name: "zoom-out" })), index.h("div", { key: 'd95981efcabe65e1101659904df22555245eb31a' }, index.h("input", { key: '880ca323ccef733bf8557412a7d45a732aa5cb12', type: "range", min: "1", max: "300", value: this.zoom * 100, class: "slider", id: "zoomRange", onInput: () => this.handleZoomInput() })), index.h("button", { key: '49754f8b4b8b55a948e1d18ca1eabfc7178f001d', onClick: () => this.setZoom(this.editor.zoom / 0.8) }, index.h("ls-icon", { key: '582907c3c513ae45237334fc988ca551a1df24f0', name: "zoom-in" }))), index.h("div", { key: '5e8ba9b4958d4ba01fea0a5eb6cccdbc645b9385', class: "status-bar-section" }, index.h("button", { key: '68e06dd284961cf8dec02e16c302dc1fc6a22796', onClick: () => this.fitWidth() }, index.h("ls-icon", { key: '84a8b7bd659d3d80fc52201f44725bb5670b4905', name: "fit-width" })), index.h("button", { key: '49f1dd909454a0adbd6e8cb950ba5b1c93e6a99c', onClick: () => this.fitHeight() }, index.h("ls-icon", { key: 'b41c9c936499852e7eaf45417b2f2f492800731e', name: "fit-height" }))), index.h("div", { key: 'cb133d10f67ea7eec2fadcd202879fb429026a1c', class: "status-bar-section" }, index.h("button", { key: 'c65d52ad4801488b5a734047dd6866c467b8b3b4', onClick: () => {
|
|
33075
33389
|
this.editor.pagePrev();
|
|
33076
|
-
} }, index.h("ls-icon", { key: '
|
|
33390
|
+
} }, index.h("ls-icon", { key: '47661f31d5e771a3e5fa5b33679afe6c4e2c851b', name: "chevron-left" })), index.h("p", { key: 'b707b96884c61814dc82e331c0bb4d132b093fd3' }, "1 / 2"), index.h("button", { key: '23c87501b81c71dc9c1ac7f2e861467138a4d71c', onClick: () => {
|
|
33077
33391
|
this.editor.pageNext();
|
|
33078
|
-
} }, index.h("ls-icon", { key: '
|
|
33392
|
+
} }, index.h("ls-icon", { key: '6f6f802e9237a16f1ac83b094b79918e89f47cd0', name: "chevron-right" }))), index.h("slot", { key: '555034a1229da45a3ce6e00a814ceedd6e72f4b6' })));
|
|
33079
33393
|
}
|
|
33080
33394
|
};
|
|
33081
33395
|
LsStatusbar.style = lsStatusbarCss;
|
|
@@ -33115,7 +33429,7 @@ const LsTextInput = class {
|
|
|
33115
33429
|
: dirty && !valid
|
|
33116
33430
|
? 'invalid'
|
|
33117
33431
|
: 'default', fieldIcon && 'icon-input', dirty && 'button-input', buttonIcon && 'button-input', buttonIcon && dirty && 'right-items-input');
|
|
33118
|
-
return (index.h(index.Host, { key: '
|
|
33432
|
+
return (index.h(index.Host, { key: 'efd1b5f431d736f4169fde7427c03928cc97aabd', class: 'host' }, fieldIcon && (index.h("ls-icon", { key: 'bf6c98bb8531835cfddb19f94b64cc199e5f61b0', id: disabled ? 'fieldIconDisabled' : 'fieldIcon', name: fieldIcon })), type === 'password' ? (index.h("input", { type: showPassword && 'password', class: inputClass, id: name, name: name, value: value, maxlength: countMax, placeholder: placeholder, "aria-label": aria, required: required, disabled: disabled })) : type === 'displayonly' ? (index.h("input", { class: inputClass, id: name, name: name, value: value, maxlength: countMax, placeholder: placeholder, "aria-label": aria, required: required, disabled: true })) : (index.h("input", { class: inputClass, id: name, name: name, value: value, maxlength: countMax, placeholder: placeholder, "aria-label": aria, required: required, disabled: disabled })), index.h("div", { key: '0edc424a3a5d351f0643aacacfe681f7964c13db', class: 'right-items' }, dirty && !disabled && (index.h("ls-icon", { key: '586286e7682dc19b140da077381a9495594f1552', id: valid ? 'validIcon' : 'invalidIcon', name: valid ? 'check-circle' : 'exclamation-circle' })), buttonIcon && (index.h("button", { key: '40c3321547d42662cfb72e50e42582d2d925f4d9', class: 'button', onClick: buttonClick }, index.h("ls-icon", { key: 'c2b290f3ed83e6c3f57bc3b3097b2d42377093e7', id: 'buttonIcon', name: buttonIcon }))), type === 'password' && !buttonIcon && (index.h("ls-icon-button", { key: '8f98aeaa1c086e2ba3f0813a07e74df9838e3968', id: 'password-icon', icon: showPassword ? 'eye' : 'eye-off', onClick: handlePassword })))));
|
|
33119
33433
|
}
|
|
33120
33434
|
};
|
|
33121
33435
|
LsTextInput.style = lsTextInputCss;
|
|
@@ -33151,7 +33465,7 @@ const LsTextareaInput = class {
|
|
|
33151
33465
|
: displayOnly
|
|
33152
33466
|
? 'displayOnly'
|
|
33153
33467
|
: 'default', fieldIcon && 'icon-input', dirty && 'button-input', buttonIcon && 'button-input', buttonIcon && dirty && 'right-items-input');
|
|
33154
|
-
return (index.h("host", { key: '
|
|
33468
|
+
return (index.h("host", { key: '1d15c458b28af68b80aa8202a0752428309a2fb8', class: 'host' }, fieldIcon && (index.h("ls-icon", { key: 'f50cbadb5ad3dbead6e5b3e05827fe40e445e63e', id: disabled ? 'fieldIconDisabled' : 'fieldIcon', name: fieldIcon })), index.h("textarea", { key: '1ddb10713cda1237a569d00e66baabfe4573519e', class: inputClass, id: name, name: name, value: value, maxlength: countMax, placeholder: placeholder, "aria-label": aria, required: required, disabled: disabled }), index.h("div", { key: 'da68e9d7eceb82ed4842ec013dc7c9c571490663', class: 'right-items' }, dirty && !disabled && (index.h("ls-icon", { key: '2d0b2def44cda6324ffde6b166c097ea7e5d27c6', id: valid ? 'validIcon' : 'invalidIcon', name: valid ? 'check-circle' : 'exclamation-circle' })), buttonIcon && (index.h("button", { key: '441ce62d6eb057295b18bd7b10d2214247079a4d', class: 'button', onClick: buttonClick }, index.h("ls-icon", { key: '746d2a9fcc47146be5b62d5afd6337f332db2427', id: 'buttonIcon', name: buttonIcon }))))));
|
|
33155
33469
|
}
|
|
33156
33470
|
};
|
|
33157
33471
|
LsTextareaInput.style = lsTextareaInputCss;
|
|
@@ -33163,7 +33477,7 @@ const LsToggle = class {
|
|
|
33163
33477
|
index.registerInstance(this, hostRef);
|
|
33164
33478
|
}
|
|
33165
33479
|
render() {
|
|
33166
|
-
return (index.h(index.Host, { key: '
|
|
33480
|
+
return (index.h(index.Host, { key: '1ce88fcc6e390bb710e27c47b988574afaa9c9f6' }, index.h("label", { key: '6d76512b1bdd6c116ab62bfaf1b9178d87019b02', class: "switch" }, index.h("input", { key: 'eadd916c86f9dbe94fe9d22f65f82f6b72ea630a', type: "checkbox" }), index.h("span", { key: '9237d68fed12e736c01a5889f801a1398883dde4', class: "slider round" })), index.h("slot", { key: '19eca8c7489cdfb981d4a6093aef3246b9337abd' })));
|
|
33167
33481
|
}
|
|
33168
33482
|
};
|
|
33169
33483
|
LsToggle.style = lsToggleCss;
|
|
@@ -33206,7 +33520,7 @@ const LsToolbar = class {
|
|
|
33206
33520
|
this.update.emit(diffs);
|
|
33207
33521
|
}
|
|
33208
33522
|
render() {
|
|
33209
|
-
return (index.h(index.Host, { key: '
|
|
33523
|
+
return (index.h(index.Host, { key: 'c43519161f0c44b7f06b5b4e2a14bd81d83ecfdc' }, this.dataItem && this.dataItem.length > 1 ? (index.h("div", { class: 'rowbox' }, index.h("ls-field-format", { dataItem: this?.dataItem }))) : (index.h("div", { class: 'rowbox' }, this.dataItem && this.dataItem.length === 1 ? (index.h("ls-field-format", { dataItem: this?.dataItem })) : (index.h("ls-participant-select", { roles: this.template?.roles, dataItem: this?.dataItem })))), index.h("slot", { key: 'e20ff476ede1359973876658c5e70fd6039b2e3d' })));
|
|
33210
33524
|
}
|
|
33211
33525
|
};
|
|
33212
33526
|
LsToolbar.style = lsToolbarCss;
|
|
@@ -33260,7 +33574,7 @@ const LsToolboxField = class {
|
|
|
33260
33574
|
}
|
|
33261
33575
|
}
|
|
33262
33576
|
render() {
|
|
33263
|
-
return (index.h(index.Host, { key: '
|
|
33577
|
+
return (index.h(index.Host, { key: '28635190b959516d2805743afe73a75899e93188', draggable: "true" }, index.h("div", { key: 'ebac5f01b6e811b287d3602e11ff9d9b2d2cbf42', class: "toolbox-field-icon", style: { '--signer-color-light': `var(--${this.color}-10)`, '--signer-color': `var(--${this.color}-60)` } }, index.h("ls-icon", { key: '8c90a428b4996db02725b8c69c347fbd3e7f7f98', name: this.icon, size: "20" })), index.h("p", { key: '7707d244b00898a9c3efb2ba8d2a64665b737b69', class: "toolbox-field-label" }, this.label), index.h("ls-icon", { key: '9dc296c2b3da9b561a95fc7cc5cf28f7a85e27c2', name: "drag-vertical", size: "16", color: "#787a80" })));
|
|
33264
33578
|
}
|
|
33265
33579
|
};
|
|
33266
33580
|
LsToolboxField.style = lsToolboxFieldCss;
|
|
@@ -33273,6 +33587,7 @@ exports.ls_feature_column = LsFeatureColoumn;
|
|
|
33273
33587
|
exports.ls_field_alignment = LsFieldAlignment;
|
|
33274
33588
|
exports.ls_field_dimensions = LsFieldDimensions;
|
|
33275
33589
|
exports.ls_field_distribute = LsFieldDistribute;
|
|
33590
|
+
exports.ls_field_footer = LsFieldFooter;
|
|
33276
33591
|
exports.ls_field_format = LsFieldFormat;
|
|
33277
33592
|
exports.ls_field_placement = LsFieldPlacement;
|
|
33278
33593
|
exports.ls_field_properties = LsFieldProperties;
|
|
@@ -33300,6 +33615,6 @@ exports.ls_textarea_input = LsTextareaInput;
|
|
|
33300
33615
|
exports.ls_toggle = LsToggle;
|
|
33301
33616
|
exports.ls_toolbar = LsToolbar;
|
|
33302
33617
|
exports.ls_toolbox_field = LsToolboxField;
|
|
33303
|
-
//# sourceMappingURL=ls-document-options.ls-document-viewer.ls-editor-field.ls-editor-table.ls-feature-column.ls-field-alignment.ls-field-dimensions.ls-field-distribute.ls-field-format.ls-field-placement.ls-field-properties.ls-field-properties-autosign.ls-field-properties-date.ls-field-properties-email.ls-field-properties-file.ls-field-properties-general.ls-field-properties-image.ls-field-properties-multiple.ls-field-properties-number.ls-field-properties-signature.ls-field-properties-text.ls-field-size.ls-formfield.ls-icon.ls-number-input.ls-participant-manager.ls-participant-select.ls-radio-input.ls-select-input.ls-statusbar.ls-text-input.ls-textarea-input.ls-toggle.ls-toolbar.ls-toolbox-field.entry.cjs.js.map
|
|
33618
|
+
//# sourceMappingURL=ls-document-options.ls-document-viewer.ls-editor-field.ls-editor-table.ls-feature-column.ls-field-alignment.ls-field-dimensions.ls-field-distribute.ls-field-footer.ls-field-format.ls-field-placement.ls-field-properties.ls-field-properties-autosign.ls-field-properties-date.ls-field-properties-email.ls-field-properties-file.ls-field-properties-general.ls-field-properties-image.ls-field-properties-multiple.ls-field-properties-number.ls-field-properties-signature.ls-field-properties-text.ls-field-size.ls-formfield.ls-icon.ls-number-input.ls-participant-manager.ls-participant-select.ls-radio-input.ls-select-input.ls-statusbar.ls-text-input.ls-textarea-input.ls-toggle.ls-toolbar.ls-toolbox-field.entry.cjs.js.map
|
|
33304
33619
|
|
|
33305
|
-
//# sourceMappingURL=ls-document-
|
|
33620
|
+
//# sourceMappingURL=ls-document-options_36.cjs.entry.js.map
|