legalesign-document-viewer 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{ls-document-options_36.cjs.entry.js → ls-document-options_37.cjs.entry.js} +81 -52
- package/dist/cjs/ls-document-options_37.cjs.entry.js.map +1 -0
- package/dist/cjs/ls-document-viewer.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/groupActions.js +1 -1
- package/dist/collection/components/ls-document-viewer/adapter/groupActions.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/adapter/templateActions.js +2 -2
- package/dist/collection/components/ls-document-viewer/adapter/templateActions.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/editorUtils.js +1 -2
- package/dist/collection/components/ls-document-viewer/editorUtils.js.map +1 -1
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.css +370 -0
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js +107 -0
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js.map +1 -0
- package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js +1 -1
- package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js.map +1 -1
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js +2 -2
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js.map +1 -1
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js +2 -2
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js.map +1 -1
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js +2 -2
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js.map +1 -1
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js +2 -2
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js.map +1 -1
- package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js +2 -2
- package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js.map +1 -1
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js +4 -4
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js.map +1 -1
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js +2 -2
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js.map +1 -1
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js +2 -2
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js.map +1 -1
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js +2 -2
- package/dist/collection/components/ls-field-size/ls-field-size.js +1 -1
- package/dist/collection/components/ls-formfield/inputs/ls-number-input/ls-number-input.js +1 -1
- package/dist/collection/components/ls-formfield/inputs/ls-radio-input/ls-radio-input.js +1 -1
- package/dist/collection/components/ls-formfield/inputs/ls-select-input/ls-select-input.js +1 -1
- package/dist/collection/components/ls-formfield/inputs/ls-text-input/ls-text-input.js +1 -1
- package/dist/collection/components/ls-formfield/inputs/ls-textarea-input/ls-textarea-input.js +1 -1
- package/dist/collection/components/ls-formfield/ls-formfield.js +2 -2
- package/dist/collection/components/ls-icon/ls-icon.js +1 -1
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.js +2 -2
- package/dist/collection/components/ls-participant-select/ls-participant-select.js +8 -8
- package/dist/collection/components/ls-statusbar/ls-statusbar.js +3 -3
- package/dist/collection/components/ls-toggle/ls-toggle.js +1 -1
- package/dist/collection/components/ls-toolbar/ls-toolbar.js +1 -1
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js +1 -1
- package/dist/components/ls-document-options.js +1 -1
- package/dist/components/ls-document-viewer.js +56 -50
- package/dist/components/ls-document-viewer.js.map +1 -1
- package/dist/components/ls-editor-field.js +1 -1
- package/dist/components/ls-feature-column.js +1 -1
- package/dist/components/ls-field-alignment.js +1 -1
- package/dist/components/ls-field-dimensions.js +1 -1
- package/dist/components/ls-field-distribute.js +1 -1
- package/dist/components/ls-field-footer.js +1 -1
- package/dist/components/ls-field-format.js +1 -1
- package/dist/components/ls-field-placement.js +1 -1
- package/dist/components/ls-field-properties-advanced.d.ts +11 -0
- package/dist/components/ls-field-properties-advanced.js +9 -0
- package/dist/components/ls-field-properties-advanced.js.map +1 -0
- package/dist/components/ls-field-properties-autosign.js +1 -1
- package/dist/components/ls-field-properties-date.js +1 -1
- package/dist/components/ls-field-properties-email.js +1 -1
- package/dist/components/ls-field-properties-file.js +1 -1
- package/dist/components/ls-field-properties-general.js +1 -1
- package/dist/components/ls-field-properties-image.js +1 -1
- package/dist/components/ls-field-properties-multiple.js +1 -1
- package/dist/components/ls-field-properties-number.js +1 -1
- package/dist/components/ls-field-properties-signature.js +1 -1
- package/dist/components/ls-field-properties-text.js +1 -1
- package/dist/components/ls-field-properties.js +1 -1
- package/dist/components/ls-field-size.js +1 -1
- package/dist/components/ls-formfield.js +1 -1
- package/dist/components/ls-icon.js +1 -1
- package/dist/components/ls-number-input.js +1 -1
- package/dist/components/ls-participant-manager.js +1 -1
- package/dist/components/ls-participant-select.js +1 -1
- package/dist/components/ls-radio-input.js +1 -1
- package/dist/components/ls-select-input.js +1 -1
- package/dist/components/ls-statusbar.js +1 -1
- package/dist/components/ls-text-input.js +1 -1
- package/dist/components/ls-textarea-input.js +1 -1
- package/dist/components/ls-toggle.js +1 -1
- package/dist/components/ls-toolbar.js +1 -1
- package/dist/components/ls-toolbox-field.js +1 -1
- package/dist/components/{p-BwymH8px.js → p-1Ir9-yQU.js} +31 -25
- package/dist/components/p-1Ir9-yQU.js.map +1 -0
- package/dist/components/{p-CQr7nmKb.js → p-3LU2FV3W.js} +3 -3
- package/dist/components/{p-CQr7nmKb.js.map → p-3LU2FV3W.js.map} +1 -1
- package/dist/components/{p-CNDZcJZC.js → p-B7VyU7YH.js} +23 -11
- package/dist/components/p-B7VyU7YH.js.map +1 -0
- package/dist/components/{p-BM-Xo6D5.js → p-BCpsA9BY.js} +7 -7
- package/dist/components/{p-BM-Xo6D5.js.map → p-BCpsA9BY.js.map} +1 -1
- package/dist/components/{p-9Z-GK0Bd.js → p-BPkbTOIU.js} +3 -3
- package/dist/components/{p-9Z-GK0Bd.js.map → p-BPkbTOIU.js.map} +1 -1
- package/dist/components/{p-CdEexh_g.js → p-BSN2cMdj.js} +18 -12
- package/dist/components/p-BSN2cMdj.js.map +1 -0
- package/dist/components/{p-Dc4pAKEn.js → p-Bby5tjrS.js} +4 -4
- package/dist/components/{p-Dc4pAKEn.js.map → p-Bby5tjrS.js.map} +1 -1
- package/dist/components/{p-V-QJ5j_K.js → p-Bh-iiZW1.js} +5 -5
- package/dist/components/{p-V-QJ5j_K.js.map → p-Bh-iiZW1.js.map} +1 -1
- package/dist/components/{p-BdJAlep4.js → p-BneR1hef.js} +10 -10
- package/dist/components/{p-BdJAlep4.js.map → p-BneR1hef.js.map} +1 -1
- package/dist/components/{p-8Yvey07o.js → p-Bpzk1RMu.js} +4 -4
- package/dist/components/{p-8Yvey07o.js.map → p-Bpzk1RMu.js.map} +1 -1
- package/dist/components/{p-DeaQdy4U.js → p-BsqbS8f_.js} +4 -4
- package/dist/components/{p-DeaQdy4U.js.map → p-BsqbS8f_.js.map} +1 -1
- package/dist/components/{p-rAwrmsb9.js → p-C6YMMVJ1.js} +23 -11
- package/dist/components/p-C6YMMVJ1.js.map +1 -0
- package/dist/components/p-CfCokEUT.js +53 -0
- package/dist/components/p-CfCokEUT.js.map +1 -0
- package/dist/components/{p-DxZasSi4.js → p-CtMHOHAp.js} +4 -4
- package/dist/components/{p-DxZasSi4.js.map → p-CtMHOHAp.js.map} +1 -1
- package/dist/components/{p-BVXVFpxy.js → p-CttUZd3c.js} +3 -3
- package/dist/components/{p-BVXVFpxy.js.map → p-CttUZd3c.js.map} +1 -1
- package/dist/components/{p-DOULSSR_.js → p-CuNrTyGb.js} +11 -11
- package/dist/components/{p-DOULSSR_.js.map → p-CuNrTyGb.js.map} +1 -1
- package/dist/components/{p-DsRfjAri.js → p-DCLBmOtj.js} +23 -11
- package/dist/components/p-DCLBmOtj.js.map +1 -0
- package/dist/components/{p-ChfFmzMa.js → p-DEE854iZ.js} +13 -13
- package/dist/components/{p-ChfFmzMa.js.map → p-DEE854iZ.js.map} +1 -1
- package/dist/components/{p-BuX-_d2U.js → p-DVz19y7K.js} +3 -3
- package/dist/components/{p-BuX-_d2U.js.map → p-DVz19y7K.js.map} +1 -1
- package/dist/components/{p-DKOj6SYm.js → p-DY_A9zAm.js} +4 -4
- package/dist/components/{p-DKOj6SYm.js.map → p-DY_A9zAm.js.map} +1 -1
- package/dist/components/{p-DkIrni0i.js → p-DasXNgMG.js} +3 -3
- package/dist/components/{p-DkIrni0i.js.map → p-DasXNgMG.js.map} +1 -1
- package/dist/components/{p-CixKuBuL.js → p-DjavAQqZ.js} +3 -3
- package/dist/components/{p-CixKuBuL.js.map → p-DjavAQqZ.js.map} +1 -1
- package/dist/components/{p-Cotorbsf.js → p-DoywjJAr.js} +3 -3
- package/dist/components/{p-Cotorbsf.js.map → p-DoywjJAr.js.map} +1 -1
- package/dist/components/{p-BPk0SaUp.js → p-DqJ_uIFZ.js} +3 -4
- package/dist/components/p-DqJ_uIFZ.js.map +1 -0
- package/dist/components/{p-CoH616os.js → p-Dsf8KDrt.js} +6 -6
- package/dist/components/{p-CoH616os.js.map → p-Dsf8KDrt.js.map} +1 -1
- package/dist/components/{p-DlVSEuX7.js → p-DzHh5tyo.js} +23 -11
- package/dist/components/p-DzHh5tyo.js.map +1 -0
- package/dist/components/{p-vll2Fgrb.js → p-DzmtJl3e.js} +3 -3
- package/dist/components/{p-vll2Fgrb.js.map → p-DzmtJl3e.js.map} +1 -1
- package/dist/components/{p-CiKsFis4.js → p-Dzn5xAM4.js} +18 -6
- package/dist/components/p-Dzn5xAM4.js.map +1 -0
- package/dist/components/{p-TVDCAFDo.js → p-EsA1p6L3.js} +17 -11
- package/dist/components/{p-CNDZcJZC.js.map → p-EsA1p6L3.js.map} +1 -1
- package/dist/components/{p-CdL5cKO8.js → p-JBc2BCIT.js} +4 -4
- package/dist/components/{p-CdL5cKO8.js.map → p-JBc2BCIT.js.map} +1 -1
- package/dist/components/{p-DLF5DiJI.js → p-aOAZ6c8y.js} +10 -10
- package/dist/components/{p-DLF5DiJI.js.map → p-aOAZ6c8y.js.map} +1 -1
- package/dist/components/{p-C9d-OiqW.js → p-iC6XYfS_.js} +3 -3
- package/dist/components/{p-C9d-OiqW.js.map → p-iC6XYfS_.js.map} +1 -1
- package/dist/components/{p-DIeSYRR1.js → p-lTOSc-NN.js} +4 -4
- package/dist/components/{p-DIeSYRR1.js.map → p-lTOSc-NN.js.map} +1 -1
- package/dist/components/{p-BFSBsh85.js → p-p3xY_X0j.js} +3 -3
- package/dist/components/{p-BFSBsh85.js.map → p-p3xY_X0j.js.map} +1 -1
- package/dist/components/{p-eh-K0ick.js → p-rEZh-cMt.js} +9 -9
- package/dist/components/{p-eh-K0ick.js.map → p-rEZh-cMt.js.map} +1 -1
- package/dist/components/{p-BLkddRKK.js → p-ucaurEVy.js} +23 -11
- package/dist/components/p-ucaurEVy.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{ls-document-options_36.entry.js → ls-document-options_37.entry.js} +81 -53
- package/dist/esm/ls-document-options_37.entry.js.map +1 -0
- package/dist/esm/ls-document-viewer.js +1 -1
- package/dist/ls-document-viewer/index.esm.js.map +1 -1
- package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -1
- package/dist/ls-document-viewer/ls-document-viewer.esm.js.map +1 -1
- package/dist/ls-document-viewer/{p-022e8e6d.entry.js → p-79589774.entry.js} +5 -5
- package/dist/ls-document-viewer/p-79589774.entry.js.map +1 -0
- package/dist/types/components/ls-field-properties-advanced/ls-field-properties-advanced.d.ts +12 -0
- package/dist/types/components.d.ts +35 -2
- package/package.json +1 -1
- package/dist/cjs/ls-document-options_36.cjs.entry.js.map +0 -1
- package/dist/components/p-BLkddRKK.js.map +0 -1
- package/dist/components/p-BPk0SaUp.js.map +0 -1
- package/dist/components/p-BwymH8px.js.map +0 -1
- package/dist/components/p-CdEexh_g.js.map +0 -1
- package/dist/components/p-CiKsFis4.js.map +0 -1
- package/dist/components/p-DlVSEuX7.js.map +0 -1
- package/dist/components/p-DsRfjAri.js.map +0 -1
- package/dist/components/p-TVDCAFDo.js.map +0 -1
- package/dist/components/p-rAwrmsb9.js.map +0 -1
- package/dist/esm/ls-document-options_36.entry.js.map +0 -1
- package/dist/ls-document-viewer/clsx-ChV9xqsO.js.map +0 -1
- package/dist/ls-document-viewer/defaultPalette-C00GqV9f.js.map +0 -1
- package/dist/ls-document-viewer/editorUtils-CHIJ1jsX.js +0 -196
- package/dist/ls-document-viewer/editorUtils-CHIJ1jsX.js.map +0 -1
- package/dist/ls-document-viewer/editorUtils-DsvPQaAu.js +0 -197
- package/dist/ls-document-viewer/editorUtils-DsvPQaAu.js.map +0 -1
- package/dist/ls-document-viewer/index-Db-CNFwu.js.map +0 -1
- package/dist/ls-document-viewer/ls-document-viewer.entry.js +0 -25033
- package/dist/ls-document-viewer/ls-editor-field.entry.js +0 -133
- package/dist/ls-document-viewer/ls-field-properties-date.entry.js +0 -34
- package/dist/ls-document-viewer/ls-field-properties-email.entry.js +0 -34
- package/dist/ls-document-viewer/ls-field-properties-file.entry.js +0 -34
- package/dist/ls-document-viewer/ls-field-properties-general.entry.js +0 -32
- package/dist/ls-document-viewer/ls-field-properties-image.entry.js +0 -34
- package/dist/ls-document-viewer/ls-field-properties-number.entry.js +0 -34
- package/dist/ls-document-viewer/ls-field-properties-text.entry.js +0 -34
- package/dist/ls-document-viewer/ls-statusbar.entry.js +0 -57
- package/dist/ls-document-viewer/p-022e8e6d.entry.js.map +0 -1
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, d as getElement, h, e as Host } from './index-Db-CNFwu.js';
|
|
2
|
-
import { b as getInputType } from './editorUtils-DsvPQaAu.js';
|
|
3
|
-
import { d as defaultRolePalette } from './defaultPalette-C00GqV9f.js';
|
|
4
|
-
|
|
5
|
-
const lsEditorFieldCss = ":host{display:block;position:absolute;margin:0px;padding:0px 0px 0px 0px;isolation:isolate}.ls-editor-field-editable{display:block;font-family:inherit;font-size:inherit;overflow:hidden;white-space:nowrap;margin:0;padding:0px 0px 0px 0px;min-width:2em;height:100%;width:100%}.ls-editor-field{opacity:0.7}.ls-editor-field-editable:focus{outline:none}.ls-editor-field-draggable{display:block;font-family:inherit;font-size:inherit;overflow:hidden;white-space:nowrap;min-width:2px;height:98%;width:98%}.hidden-field{display:none}input{all:unset}.draggable-input{font-family:inherit;font-size:inherit;position:relative;height:95%;width:95%}.editing-input{caret-color:rgb(15 23 42);caret-shape:auto;height:100%;width:100%}";
|
|
6
|
-
|
|
7
|
-
const LsEditorField = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
}
|
|
11
|
-
get component() { return getElement(this); }
|
|
12
|
-
dataItem;
|
|
13
|
-
selected;
|
|
14
|
-
readonly;
|
|
15
|
-
palette;
|
|
16
|
-
type;
|
|
17
|
-
page;
|
|
18
|
-
isEditing = false;
|
|
19
|
-
heldEdge = null;
|
|
20
|
-
isEdgeDragging = false;
|
|
21
|
-
innerValue;
|
|
22
|
-
sizeObserver;
|
|
23
|
-
handleInput(e) {
|
|
24
|
-
if (e.code === 'Enter') {
|
|
25
|
-
this.isEditing = false;
|
|
26
|
-
this.sizeObserver.observe(this.component.shadowRoot.getElementById('field-info'));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
handleMouseMove(e) {
|
|
30
|
-
if (this.readonly)
|
|
31
|
-
return;
|
|
32
|
-
if (!e.clientX)
|
|
33
|
-
return;
|
|
34
|
-
// Determine which edge is being moved over and what cursor to show.
|
|
35
|
-
if (Math.abs(e.offsetX) < 5) {
|
|
36
|
-
this.component.style.cursor = 'ew-resize';
|
|
37
|
-
}
|
|
38
|
-
else if (Math.abs(e.offsetX - this.component.clientWidth) < 5) {
|
|
39
|
-
this.component.style.cursor = 'ew-resize';
|
|
40
|
-
}
|
|
41
|
-
else if (Math.abs(e.offsetY) < 5) {
|
|
42
|
-
this.component.style.cursor = 'ns-resize';
|
|
43
|
-
}
|
|
44
|
-
else if (Math.abs(e.offsetY - this.component.clientHeight) < 5) {
|
|
45
|
-
this.component.style.cursor = 'ns-resize';
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
this.component.style.cursor = 'move';
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
handleDoubleClick() {
|
|
52
|
-
if (this.readonly)
|
|
53
|
-
return;
|
|
54
|
-
this.isEditing = true;
|
|
55
|
-
this.heldEdge = null;
|
|
56
|
-
this.isEdgeDragging = false;
|
|
57
|
-
this.sizeObserver.disconnect();
|
|
58
|
-
this.innerValue = this.innerValue ? this.innerValue : this.dataItem?.value;
|
|
59
|
-
const editbox = this.component.shadowRoot.getElementById('editing-input');
|
|
60
|
-
console.log(editbox);
|
|
61
|
-
if (editbox) {
|
|
62
|
-
editbox.className = 'ls-editor-field-editable';
|
|
63
|
-
editbox.focus();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
handleDragStart(event) {
|
|
67
|
-
console.log('dragstart ls-editor-field', event, this.type);
|
|
68
|
-
// Add the target element's id to the data transfer object
|
|
69
|
-
event.dataTransfer.setData('application/json', JSON.stringify({
|
|
70
|
-
type: this.type,
|
|
71
|
-
}));
|
|
72
|
-
event.dataTransfer.dropEffect = 'move';
|
|
73
|
-
}
|
|
74
|
-
watchSelectedHandler(_newValue, _oldValue) {
|
|
75
|
-
if (_newValue) {
|
|
76
|
-
this.component.style.background = `var(--${this.participantColor(this.dataItem?.signer)}-20)`;
|
|
77
|
-
this.component.style.opacity = '0.7';
|
|
78
|
-
this.component.style.boxShadow = '0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -1px rgba(0, 0, 0, 0.06)';
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
this.component.style.background = 'transparent';
|
|
82
|
-
this.component.style.boxShadow = 'none';
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
onInputChange(e) {
|
|
86
|
-
// console.log("INPUT CHANGE", e);
|
|
87
|
-
this.innerValue = e.target.value;
|
|
88
|
-
}
|
|
89
|
-
componentDidLoad() {
|
|
90
|
-
this.sizeObserver = new ResizeObserver(entries => {
|
|
91
|
-
for (const entry of entries) {
|
|
92
|
-
if (entry.contentRect) {
|
|
93
|
-
// const editbox = this.component.shadowRoot.getElementById('editing-input') as HTMLElement;
|
|
94
|
-
const movebox = this.component.shadowRoot.getElementById('field-info');
|
|
95
|
-
// console.log(editbox)
|
|
96
|
-
// editbox.style.height = entry.contentRect.height + "px"
|
|
97
|
-
// editbox.style.width = entry.contentRect.width + "px"
|
|
98
|
-
movebox.style.height = entry.contentRect.height + 'px';
|
|
99
|
-
movebox.style.width = entry.contentRect.width + 'px';
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
this.sizeObserver.observe(this.component);
|
|
104
|
-
// New dropped components automatically need selecting.
|
|
105
|
-
if (this.selected) {
|
|
106
|
-
this.component.style.background = `var(--${this.participantColor(this.dataItem?.signer)}-20)`;
|
|
107
|
-
this.component.style.opacity = '0.7';
|
|
108
|
-
this.component.style.boxShadow = '0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -1px rgba(0, 0, 0, 0.06)';
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
this.component.style.background = `transparent`;
|
|
112
|
-
this.component.style.boxShadow = 'none';
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
participantColor = (index) => {
|
|
116
|
-
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
117
|
-
};
|
|
118
|
-
render() {
|
|
119
|
-
return (h(Host, { key: 'd4c0acce37a6d90f23231d46d6d45a249682d619', style: { border: `2px solid var(--${this.participantColor(this.dataItem?.signer)}-60)` } }, h("div", { key: 'ad95543d614a0945b029347469b4bcfb0c78f418', class: {
|
|
120
|
-
'ls-editor-field': true,
|
|
121
|
-
'is-selected': this.selected,
|
|
122
|
-
} }, h("input", { key: '0c17be950c45c511fb78e5236056ee3946f35dc9', 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) }), h("div", { key: '88c5e8f18f8a87b6e3aaa7d228ef8184a6afe73f', id: "field-info", class: this.isEditing ? 'hidden-field' : 'ls-editor-field-draggable' }, this.innerValue || this.dataItem?.label || this.dataItem?.formElementType))));
|
|
123
|
-
}
|
|
124
|
-
static get watchers() { return {
|
|
125
|
-
"selected": ["watchSelectedHandler"]
|
|
126
|
-
}; }
|
|
127
|
-
};
|
|
128
|
-
LsEditorField.style = lsEditorFieldCss;
|
|
129
|
-
|
|
130
|
-
export { LsEditorField as ls_editor_field };
|
|
131
|
-
//# sourceMappingURL=ls-editor-field.entry.esm.js.map
|
|
132
|
-
|
|
133
|
-
//# sourceMappingURL=ls-editor-field.entry.js.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, e as Host } from './index-Db-CNFwu.js';
|
|
2
|
-
import { d as defaultRolePalette } from './defaultPalette-C00GqV9f.js';
|
|
3
|
-
import { v as validationTypes } from './editorUtils-DsvPQaAu.js';
|
|
4
|
-
|
|
5
|
-
const lsFieldPropertiesDateCss = ":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)}";
|
|
6
|
-
|
|
7
|
-
const LsFieldPropertiesDate = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
}
|
|
11
|
-
dataItem;
|
|
12
|
-
fieldSet = 'content';
|
|
13
|
-
signerColor = (index) => {
|
|
14
|
-
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
15
|
-
};
|
|
16
|
-
render() {
|
|
17
|
-
return (h(Host, { key: 'f8a62f1a7342e43919bf6265b2adbe23b4c2a9f8' }, h("div", { key: '1c75f2f7cf3f2ca4c6c6b6fc45a6ca0bbf545ac5', class: 'tabs-container' }, h("button", { key: '5ad19d8a51f31b7564b7f62a180d67b578093eb1', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), h("button", { key: '2f39c504b8796715952b0a2066b776ecea88d340', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), h("button", { key: 'c261bb2cd3f255db7016ecc022ca765a899b3692', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), h("div", { key: 'b1d1fa19f0d22d43461af7e9f826714349280805', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (h("div", { class: 'field-set' }, h("ls-field-dimensions", { dataItem: this.dataItem }))) : (h("div", { class: 'field-set' }, h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), h("div", { class: 'ls-field-type-wrapper', style: {
|
|
18
|
-
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
19
|
-
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
20
|
-
} }, h("div", { class: 'ls-field-type-inner' }, h("div", { class: 'ls-field-type-icon', style: {
|
|
21
|
-
border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
22
|
-
color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
23
|
-
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
24
|
-
} }, h("ls-icon", { name: "calender", size: "20" })), h("p", { class: 'ls-field-type-name' }, "Date")))), h("div", { class: 'ls-field-properties-section row' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), h("ls-toggle", null)), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), h("div", { class: 'input-wrapper' }, h("ls-icon", { id: "selectorIcon", name: "selector" }), h("select", null, validationTypes
|
|
25
|
-
.filter(type => type.formType === 'date')
|
|
26
|
-
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), h("div", { key: '095d289159aabcf538f9e20ef799fecb5b5eed98', class: 'button-footer' }, h("button", { key: 'f6e78adfa3c0fe9288142ac8ad1739422a7fedad', class: 'secondary' }, h("ls-icon", { key: '4dcac162aa8a108bd05f09f144cb827b66f7c694', name: "field-duplicate", size: "20" }), "Duplicate"), h("button", { key: '0c58210c94a168966180de22f9d456284c320842', class: 'destructive' }, h("ls-icon", { key: 'd6e5e36d6aa6f544945f7c88943384d2da608147', name: "trash", size: "20" }), "Delete")), h("slot", { key: '65e4ff6299ccf3e54eaa7551d061b12e032af5cd' })));
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
LsFieldPropertiesDate.style = lsFieldPropertiesDateCss;
|
|
30
|
-
|
|
31
|
-
export { LsFieldPropertiesDate as ls_field_properties_date };
|
|
32
|
-
//# sourceMappingURL=ls-field-properties-date.entry.esm.js.map
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=ls-field-properties-date.entry.js.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, e as Host } from './index-Db-CNFwu.js';
|
|
2
|
-
import { v as validationTypes } from './editorUtils-DsvPQaAu.js';
|
|
3
|
-
import { d as defaultRolePalette } from './defaultPalette-C00GqV9f.js';
|
|
4
|
-
|
|
5
|
-
const lsFieldPropertiesEmailCss = ":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)}";
|
|
6
|
-
|
|
7
|
-
const LsFieldPropertiesEmail = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
}
|
|
11
|
-
dataItem;
|
|
12
|
-
fieldSet = 'content';
|
|
13
|
-
signerColor = (index) => {
|
|
14
|
-
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
15
|
-
};
|
|
16
|
-
render() {
|
|
17
|
-
return (h(Host, { key: '948de088b2143468da6e9654ff766dac16643c79' }, h("div", { key: '486334cacd59f87708115c3db564176c1b386638', class: 'tabs-container' }, h("button", { key: '68efc31a4aa959e6ca5fc2c3b0ec58aaeafed6fb', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), h("button", { key: '35507216b99521487f8b5cc3a70722d4ce310d15', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), h("button", { key: '7c2816920a36387e59fa375f6e41abf3d4cdb11c', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), h("div", { key: '849cf70f4df8c29f658459fdd088a75409207ac1', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (h("div", { class: 'field-set' }, h("ls-field-dimensions", { dataItem: this.dataItem }))) : (h("div", { class: 'field-set' }, h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), h("div", { class: 'ls-field-type-wrapper', style: {
|
|
18
|
-
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
19
|
-
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
20
|
-
} }, h("div", { class: 'ls-field-type-inner' }, h("div", { class: 'ls-field-type-icon', style: {
|
|
21
|
-
border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
22
|
-
color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
23
|
-
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
24
|
-
} }, h("ls-icon", { name: "at-symbol", size: "20" })), h("p", { class: 'ls-field-type-name' }, "Email")))), h("div", { class: 'ls-field-properties-section row' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), h("ls-toggle", null)), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), h("div", { class: 'input-wrapper' }, h("ls-icon", { id: "selectorIcon", name: "selector" }), h("select", null, validationTypes
|
|
25
|
-
.filter(type => type.formType === 'email')
|
|
26
|
-
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), h("div", { key: '42841601491f479cd4b47bf26d94812505e31bf4', class: 'button-footer' }, h("button", { key: '23d23d122adcabb9fdbf3cc47f558fe2f3cb7acc', class: 'secondary' }, h("ls-icon", { key: '088e5a6e8c5768beab57a8a07d297c16f4a5318a', name: "field-duplicate", size: "20" }), "Duplicate"), h("button", { key: '9be8c8bdb9e4ce6427522fa6726b516125c0b0ff', class: 'destructive' }, h("ls-icon", { key: '015c85ac1baefad1b9299cd660cef7f7fc411bda', name: "trash", size: "20" }), "Delete")), h("slot", { key: 'b8b714e941b63a285f076c794256a33229b327da' })));
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
LsFieldPropertiesEmail.style = lsFieldPropertiesEmailCss;
|
|
30
|
-
|
|
31
|
-
export { LsFieldPropertiesEmail as ls_field_properties_email };
|
|
32
|
-
//# sourceMappingURL=ls-field-properties-email.entry.esm.js.map
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=ls-field-properties-email.entry.js.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, e as Host } from './index-Db-CNFwu.js';
|
|
2
|
-
import { d as defaultRolePalette } from './defaultPalette-C00GqV9f.js';
|
|
3
|
-
import { v as validationTypes } from './editorUtils-DsvPQaAu.js';
|
|
4
|
-
|
|
5
|
-
const lsFieldPropertiesFileCss = ":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)}";
|
|
6
|
-
|
|
7
|
-
const LsFieldPropertiesFile = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
}
|
|
11
|
-
dataItem;
|
|
12
|
-
fieldSet = 'content';
|
|
13
|
-
signerColor = (index) => {
|
|
14
|
-
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
15
|
-
};
|
|
16
|
-
render() {
|
|
17
|
-
return (h(Host, { key: 'e4607aab475fbb0cbe5a26f442f63d4ecee9d8d2' }, h("div", { key: 'e0c7fbf544daf47b9bd11f51bb943953572b6a09', class: 'tabs-container' }, h("button", { key: 'd043891ff8088fe9917d232f567e05f9297e01be', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), h("button", { key: '17de93784c5982b26e242d7ddbad60d17d65398c', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), h("button", { key: '9a8dbea54ee6f7f87890f2b5ea4efce6680f24be', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), h("div", { key: '3f4f372ec2fc4c0e780fcdeed9193210139935d9', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (h("div", { class: 'field-set' }, h("ls-field-dimensions", { dataItem: this.dataItem }))) : (h("div", { class: 'field-set' }, h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), h("div", { class: 'ls-field-type-wrapper', style: {
|
|
18
|
-
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
19
|
-
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
20
|
-
} }, h("div", { class: 'ls-field-type-inner' }, h("div", { class: 'ls-field-type-icon', style: {
|
|
21
|
-
border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
22
|
-
color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
23
|
-
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
24
|
-
} }, h("ls-icon", { name: "upload", size: "20" })), h("p", { class: 'ls-field-type-name' }, "File")))), h("div", { class: 'ls-field-properties-section row' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), h("ls-toggle", null)), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), h("div", { class: 'input-wrapper' }, h("ls-icon", { id: "selectorIcon", name: "selector" }), h("select", null, validationTypes
|
|
25
|
-
.filter(type => type.formType === 'file')
|
|
26
|
-
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), h("div", { key: 'fdb2f6c931b83123b45c02f9cd22415a964d77a2', class: 'button-footer' }, h("button", { key: '05d7e0dcb28a350f8b477b041f6f85318e6684a7', class: 'secondary' }, h("ls-icon", { key: '2e501e83a3f9b778fea6c5537e74881b8a628fd6', name: "field-duplicate", size: "20" }), "Duplicate"), h("button", { key: '83d5fe8648ab705f15c3d824958e64ed1072c394', class: 'destructive' }, h("ls-icon", { key: '9bc2a360580585df8ffdaf6b0150f6a46bcbedb6', name: "trash", size: "20" }), "Delete")), h("slot", { key: 'd44f2ae7fb8c36e9a4523f66435b713c76b84fd0' })));
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
LsFieldPropertiesFile.style = lsFieldPropertiesFileCss;
|
|
30
|
-
|
|
31
|
-
export { LsFieldPropertiesFile as ls_field_properties_file };
|
|
32
|
-
//# sourceMappingURL=ls-field-properties-file.entry.esm.js.map
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=ls-field-properties-file.entry.js.map
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, e as Host } from './index-Db-CNFwu.js';
|
|
2
|
-
import { d as defaultRolePalette } from './defaultPalette-C00GqV9f.js';
|
|
3
|
-
import { v as validationTypes } from './editorUtils-DsvPQaAu.js';
|
|
4
|
-
|
|
5
|
-
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)}";
|
|
6
|
-
|
|
7
|
-
const LsFieldPropertiesGeneral = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
}
|
|
11
|
-
dataItem;
|
|
12
|
-
fieldSet = 'content';
|
|
13
|
-
signerColor = (index) => {
|
|
14
|
-
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
15
|
-
};
|
|
16
|
-
render() {
|
|
17
|
-
return (h(Host, { key: 'df4869eb75576d8e97335d58a256b1e127603bd4' }, h("div", { key: '875986e96873215e4dab0ae0137a0c907e643bde', class: 'tabs-container' }, h("button", { key: '66ac2dfecfab2895d011bc34184b0ce6d0e96228', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), h("button", { key: '6897156fd80a619961436e4703d617ff1a8fdc02', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), h("button", { key: '7e7bfb756e593ee1a4dcbec00609e94825e50e0e', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), h("div", { key: '4562cec4cfd6cdcdeb42e453a6982171e4810e1d', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (h("div", { class: 'field-set' }, h("ls-field-dimensions", { dataItem: this.dataItem }))) : (h("div", { class: 'field-set' }, h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), h("div", { class: 'ls-field-type-wrapper', style: {
|
|
18
|
-
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
19
|
-
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
20
|
-
} }, h("div", { class: 'ls-field-type-inner' }, h("div", { class: 'ls-field-type-icon', style: {
|
|
21
|
-
border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
22
|
-
color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
23
|
-
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
24
|
-
} }, h("ls-icon", { name: "field-placement", size: "20" })), h("p", { class: 'ls-field-type-name' }, "General Field")))), h("div", { class: 'ls-field-properties-section row' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), h("ls-toggle", null)), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), h("div", { class: 'input-wrapper' }, h("ls-icon", { id: "selectorIcon", name: "selector" }), h("select", null, validationTypes.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), h("div", { key: 'd88d65c85a02f88e138a3107785ffbd787cc262c', class: 'button-footer' }, h("button", { key: 'ddb1579c30e4245c8bc0a156ad739cd2ecb772c1', class: 'secondary' }, h("ls-icon", { key: 'f99899893082698972148cffcd11ae4a129dc6ae', name: "field-duplicate", size: "20" }), "Duplicate"), h("button", { key: '97027afe206915eb36acc1f27533d87cbf1c9436', class: 'destructive' }, h("ls-icon", { key: 'f830e0e58ef16bf1f42578d03c4c36706c022b37', name: "trash", size: "20" }), "Delete")), h("slot", { key: '38ebb164f01b8da664caa8a436115ab11ddf6d95' })));
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
LsFieldPropertiesGeneral.style = lsFieldPropertiesGeneralCss;
|
|
28
|
-
|
|
29
|
-
export { LsFieldPropertiesGeneral as ls_field_properties_general };
|
|
30
|
-
//# sourceMappingURL=ls-field-properties-general.entry.esm.js.map
|
|
31
|
-
|
|
32
|
-
//# sourceMappingURL=ls-field-properties-general.entry.js.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, e as Host } from './index-Db-CNFwu.js';
|
|
2
|
-
import { d as defaultRolePalette } from './defaultPalette-C00GqV9f.js';
|
|
3
|
-
import { v as validationTypes } from './editorUtils-DsvPQaAu.js';
|
|
4
|
-
|
|
5
|
-
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)}";
|
|
6
|
-
|
|
7
|
-
const LsFieldPropertiesImage = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
}
|
|
11
|
-
dataItem;
|
|
12
|
-
fieldSet = 'content';
|
|
13
|
-
signerColor = (index) => {
|
|
14
|
-
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
15
|
-
};
|
|
16
|
-
render() {
|
|
17
|
-
return (h(Host, { key: 'eb9d347f592f4568a9c60efc3908e16e5bfc8690' }, h("div", { key: '60a390541b548a392ddef509f13a22d41949ca3a', class: 'tabs-container' }, h("button", { key: 'c46a823488ca5033782436f71e9200b190b1f024', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), h("button", { key: '7c016c16b590b9d417714673f3321c12063fd1a0', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), h("button", { key: 'e31a5c62c26f325da0b2384b92597ac5f28d1230', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), h("div", { key: '5aba1e3eb57a122fff696f51269e81af9784397f', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (h("div", { class: 'field-set' }, h("ls-field-dimensions", { dataItem: this.dataItem }))) : (h("div", { class: 'field-set' }, h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), h("div", { class: 'ls-field-type-wrapper', style: {
|
|
18
|
-
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
19
|
-
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
20
|
-
} }, h("div", { class: 'ls-field-type-inner' }, h("div", { class: 'ls-field-type-icon', style: {
|
|
21
|
-
border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
22
|
-
color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
23
|
-
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
24
|
-
} }, h("ls-icon", { name: "photograph", size: "20" })), h("p", { class: 'ls-field-type-name' }, "Image")))), h("div", { class: 'ls-field-properties-section row' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), h("ls-toggle", null)), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), h("div", { class: 'input-wrapper' }, h("ls-icon", { id: "selectorIcon", name: "selector" }), h("select", null, validationTypes
|
|
25
|
-
.filter(type => type.formType === 'image')
|
|
26
|
-
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), h("div", { key: 'e60ce597209411e5e4418df331d983b63213cf15', class: 'button-footer' }, h("button", { key: 'daff0db392134b67e0077b3abfe618908e97832b', class: 'secondary' }, h("ls-icon", { key: '3d56bfe2d0ffdeb3f802ea9144a77912958ebae2', name: "field-duplicate", size: "20" }), "Duplicate"), h("button", { key: 'a2359200a506c074267284ea6be2e11e32817805', class: 'destructive' }, h("ls-icon", { key: '1bee06068e9f7d254b1007e75bfb88718feb244b', name: "trash", size: "20" }), "Delete")), h("slot", { key: 'ff89b7e102676821330ea50e36cc18a7d75dec96' })));
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
LsFieldPropertiesImage.style = lsFieldPropertiesImageCss;
|
|
30
|
-
|
|
31
|
-
export { LsFieldPropertiesImage as ls_field_properties_image };
|
|
32
|
-
//# sourceMappingURL=ls-field-properties-image.entry.esm.js.map
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=ls-field-properties-image.entry.js.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, e as Host } from './index-Db-CNFwu.js';
|
|
2
|
-
import { v as validationTypes } from './editorUtils-DsvPQaAu.js';
|
|
3
|
-
import { d as defaultRolePalette } from './defaultPalette-C00GqV9f.js';
|
|
4
|
-
|
|
5
|
-
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)}";
|
|
6
|
-
|
|
7
|
-
const LsFieldPropertiesNumber = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
}
|
|
11
|
-
dataItem;
|
|
12
|
-
fieldSet = 'content';
|
|
13
|
-
signerColor = (index) => {
|
|
14
|
-
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
15
|
-
};
|
|
16
|
-
render() {
|
|
17
|
-
return (h(Host, { key: 'ab58ba7af3e6ee51dc956c23c973056e2dea5a20' }, h("div", { key: '5c7c39c8341f4dba83f0c4123054382eeb0d31b3', class: 'tabs-container' }, h("button", { key: '2680abe4bdc33be0b02fc031c6edb74d38c870ac', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), h("button", { key: '13c8e1c2d899e2a1d407d1dcacb96d6effca62ff', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), h("button", { key: '884b4f1af9852a58a61a1ae1b1c7b5312b689e43', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), h("div", { key: '1c4d6155468dfacf7c17296b2608c10e35587473', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (h("div", { class: 'field-set' }, h("ls-field-dimensions", { dataItem: this.dataItem }))) : (h("div", { class: 'field-set' }, h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), h("div", { class: 'ls-field-type-wrapper', style: {
|
|
18
|
-
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
19
|
-
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
20
|
-
} }, h("div", { class: 'ls-field-type-inner' }, h("div", { class: 'ls-field-type-icon', style: {
|
|
21
|
-
border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
22
|
-
color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
23
|
-
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
24
|
-
} }, h("ls-icon", { name: "hashtag", size: "20" })), h("p", { class: 'ls-field-type-name' }, "Number")))), h("div", { class: 'ls-field-properties-section row' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), h("ls-toggle", null)), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), h("div", { class: 'input-wrapper' }, h("ls-icon", { id: "selectorIcon", name: "selector" }), h("select", null, validationTypes
|
|
25
|
-
.filter(type => type.formType === 'number')
|
|
26
|
-
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), h("div", { key: 'd34972fe0ba407ff0737b060858c3222520134e7', class: 'button-footer' }, h("button", { key: '757077f7c0c0bf7807c6aa73fd9c53606a5323f2', class: 'secondary' }, h("ls-icon", { key: '02df61ca5e827e3a653b3f0afd3b54cff453c4b4', name: "field-duplicate", size: "20" }), "Duplicate"), h("button", { key: 'ea68ca6746e95afef78a528d6943d6d713ececa1', class: 'destructive' }, h("ls-icon", { key: '6e42c24976aac9ccb7a3d11fdab4c3537372f695', name: "trash", size: "20" }), "Delete")), h("slot", { key: '59a304b3c85cdfb2ca5c3f2e100d2a8e508cff02' })));
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
LsFieldPropertiesNumber.style = lsFieldPropertiesNumberCss;
|
|
30
|
-
|
|
31
|
-
export { LsFieldPropertiesNumber as ls_field_properties_number };
|
|
32
|
-
//# sourceMappingURL=ls-field-properties-number.entry.esm.js.map
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=ls-field-properties-number.entry.js.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, e as Host } from './index-Db-CNFwu.js';
|
|
2
|
-
import { v as validationTypes } from './editorUtils-DsvPQaAu.js';
|
|
3
|
-
import { d as defaultRolePalette } from './defaultPalette-C00GqV9f.js';
|
|
4
|
-
|
|
5
|
-
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)}";
|
|
6
|
-
|
|
7
|
-
const LsFieldPropertiesText = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
}
|
|
11
|
-
dataItem;
|
|
12
|
-
fieldSet = 'content';
|
|
13
|
-
signerColor = (index) => {
|
|
14
|
-
return index > 200 ? defaultRolePalette[index - 200] : index > 100 ? defaultRolePalette[index - 100] : defaultRolePalette[index] || defaultRolePalette[0];
|
|
15
|
-
};
|
|
16
|
-
render() {
|
|
17
|
-
return (h(Host, { key: '6478f5f35698163507cbd3564e729acd2088f8d8' }, h("div", { key: 'ff9a3ec3aca0648a060bba00c188f5a795db33d8', class: 'tabs-container' }, h("button", { key: '562b9a992cdb49622c9f7b3df3debe9e62649ef1', class: this.fieldSet === 'content' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'content') }, "Content"), h("button", { key: 'dfbe7066501a107d74bd418db70716ed271c8669', class: this.fieldSet === 'placement' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'placement') }, "Placement"), h("button", { key: '6d1a24008bc2ec6d0285f7a9529ebe26e0c75136', class: this.fieldSet === 'dimensions' ? 'ls-tab active' : 'ls-tab', onClick: () => (this.fieldSet = 'dimensions') }, "Dimensions")), h("div", { key: 'e5c23403dd3dafb047ce1006c3040b8b76254575', class: 'scrolling-container' }, this.fieldSet === 'placement' ? (h("ls-field-placement", { dataItem: this.dataItem })) : this.fieldSet === 'dimensions' ? (h("div", { class: 'field-set' }, h("ls-field-dimensions", { dataItem: this.dataItem }))) : (h("div", { class: 'field-set' }, h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Type"), h("p", { class: 'ls-field-properties-section-description' }, "The Field you currently have selected")), h("div", { class: 'ls-field-type-wrapper', style: {
|
|
18
|
-
border: `1px dashed var(--${this.signerColor(this.dataItem?.signer)}-30)`,
|
|
19
|
-
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
20
|
-
} }, h("div", { class: 'ls-field-type-inner' }, h("div", { class: 'ls-field-type-icon', style: {
|
|
21
|
-
border: `1px solid var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
22
|
-
color: `var(--${this.signerColor(this.dataItem?.signer)}-60)`,
|
|
23
|
-
background: `var(--${this.signerColor(this.dataItem?.signer)}-10)`,
|
|
24
|
-
} }, h("ls-icon", { name: "text", size: "20" })), h("p", { class: 'ls-field-type-name' }, "Text")))), h("div", { class: 'ls-field-properties-section row' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Required Field")), h("ls-toggle", null)), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Field Label"), h("p", { class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), h("input", { value: this.dataItem?.label, width: "30", placeholder: "eg. Sign Here" })), h("div", { class: 'ls-field-properties-section' }, h("div", { class: 'ls-field-properties-section-text' }, h("p", { class: 'ls-field-properties-section-title' }, "Content Format"), h("p", { class: 'ls-field-properties-section-description' }, "Select the specific format you want the Recipient to enter..")), h("div", { class: 'input-wrapper' }, h("ls-icon", { id: "selectorIcon", name: "selector" }), h("select", null, validationTypes
|
|
25
|
-
.filter(type => type.formType === 'text')
|
|
26
|
-
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.value }, type.description))))))))), h("div", { key: '96786f04717504b40b25ccbffdd5e916ac050565', class: 'button-footer' }, h("button", { key: '9b88b1d4198f3c492f6b088c919acdde78be3bf9', class: 'secondary' }, h("ls-icon", { key: 'ee3f67e546a8a396bb018f9f02b5f7290f98c605', name: "field-duplicate", size: "20" }), "Duplicate"), h("button", { key: '1f3ad29b71a1622589d1ebfff67f4d98585db19e', class: 'destructive' }, h("ls-icon", { key: '9919066cb9cbf204cd844c5b35972fae3a3556da', name: "trash", size: "20" }), "Delete")), h("slot", { key: '5d981398327a1e336587b452dfc1b024a590f9b6' })));
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
LsFieldPropertiesText.style = lsFieldPropertiesTextCss;
|
|
30
|
-
|
|
31
|
-
export { LsFieldPropertiesText as ls_field_properties_text };
|
|
32
|
-
//# sourceMappingURL=ls-field-properties-text.entry.esm.js.map
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=ls-field-properties-text.entry.js.map
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, d as getElement, h, e as Host } from './index-Db-CNFwu.js';
|
|
2
|
-
import { d as debounce } from './editorUtils-DsvPQaAu.js';
|
|
3
|
-
|
|
4
|
-
const lsStatusbarCss = ":host{position:fixed;z-index:1000;right:1rem;bottom:1rem;display:flex;flex-direction:row;background-color:white;border:1px solid var(--gray-30, #e0e2e5);box-shadow:0px 4px 16px rgba(0, 0, 0, 0.1);border-radius:1rem}*{margin:0;padding:0;box-sizing:border-box}.status-bar-section{display:flex;flex-direction:row;align-items:center;gap:0.75rem;padding:0.5rem 0.75rem}:host>:not(:nth-child(2)){border-left:1px solid var(--gray-30, #e0e2e5)}button{border:0}button:hover{color:var(--gray-100, #45484d);border-radius:0.5rem}input[type=\"range\"]{-webkit-appearance:none;width:100%;height:8px;background:var(--gray-20, #EDEFF2);border-radius:5px;outline:none}input[type=\"range\"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:8px;height:8px;background:var(--gray-70, #4a4c51);border-radius:50%;cursor:pointer}input[type=\"range\"]::-moz-range-thumb{width:8px;height:8%;background:var(--gray-70, #4a4c51);border:none;border-radius:50%;cursor:pointer}input[type=\"range\"]::-moz-range-track{background:var(--gray-20, #EDEFF2);height:8px;border-radius:5px}input[type=\"range\"]::-webkit-slider-runnable-track{background:var(--gray-20, #EDEFF2);height:8px;border-radius:5px}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}button{all:unset;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:var(--gray-80, #6c6e73);text-transform:capitalize}button.tertiaryGrey:hover{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)}";
|
|
5
|
-
|
|
6
|
-
const LsStatusbar = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
}
|
|
10
|
-
get component() { return getElement(this); }
|
|
11
|
-
/**
|
|
12
|
-
* The zoom or scale level 100 === 100%.
|
|
13
|
-
* {number}
|
|
14
|
-
*/
|
|
15
|
-
zoom;
|
|
16
|
-
/**
|
|
17
|
-
* The parent editor control.
|
|
18
|
-
* {LsDocumentViewer}
|
|
19
|
-
*/
|
|
20
|
-
editor;
|
|
21
|
-
setZoom(value) {
|
|
22
|
-
this.editor.setZoom(value);
|
|
23
|
-
this.zoom = value;
|
|
24
|
-
}
|
|
25
|
-
handleZoomInput() {
|
|
26
|
-
const zoomInput = this.component.shadowRoot.getElementById('zoomRange');
|
|
27
|
-
console.log(zoomInput.value);
|
|
28
|
-
debounce(this.setZoom(parseInt(zoomInput.value) / 100), 700);
|
|
29
|
-
}
|
|
30
|
-
fitWidth() {
|
|
31
|
-
const frame = this.editor.component.shadowRoot.getElementById('ls-document-frame');
|
|
32
|
-
const scale = frame.clientWidth / this.editor.pageDimensions[0].width;
|
|
33
|
-
this.setZoom(Math.round(scale * 1e2) / 1e2);
|
|
34
|
-
}
|
|
35
|
-
fitHeight() {
|
|
36
|
-
const frame = this.editor.component.shadowRoot.getElementById('ls-document-frame');
|
|
37
|
-
const scale = frame.clientHeight / this.editor.pageDimensions[0].height;
|
|
38
|
-
this.setZoom(Math.round(scale * 1e2) / 1e2);
|
|
39
|
-
}
|
|
40
|
-
componentDidLoad() {
|
|
41
|
-
this.zoom = this.editor.zoom;
|
|
42
|
-
}
|
|
43
|
-
render() {
|
|
44
|
-
console.log('editor', this.editor);
|
|
45
|
-
return (h(Host, { key: 'fa4c308b2988613d8605e35d897c6eb4bf56886b' }, h("div", { key: '8847fc87285c5ea60d1beaa6cd05685ea799a4ad', class: "status-bar-section" }, h("button", { key: '164cf3a126ab28aca68d0066024c43a01dc7fb2b', onClick: () => this.setZoom(this.editor.zoom * 0.8) }, h("ls-icon", { key: 'fb60105b72120ed0be1fefb5f567a3aa92a474cc', name: "zoom-out" })), h("div", { key: '85374403e1754200b69aa91077998f3f95a0930a' }, h("input", { key: 'd136e2cef56ffb8ba34c58e78f504d500b1e105e', type: "range", min: "1", max: "300", value: this.zoom * 100, class: "slider", id: "zoomRange", onInput: () => this.handleZoomInput() })), h("button", { key: '0dfac9ab257fd7e7838b7b2d1828ff16ae8f99e8', onClick: () => this.setZoom(this.editor.zoom / 0.8) }, h("ls-icon", { key: '724c028a66e931f91ded0ecd1aa79a677fcd6f02', name: "zoom-in" }))), h("div", { key: 'b53ac7eeebf0a32f9388118dd4ea7aef3a9cade4', class: "status-bar-section" }, h("button", { key: 'acd39e8aa4f8642263490b74b2b1d11b632af649', onClick: () => this.fitWidth() }, h("ls-icon", { key: 'a05af9d9cdd4700fd92d9f172c3c65829a5c16aa', name: "fit-width" })), h("button", { key: 'd237cb702b0358865d27df63deaa02b975303d71', onClick: () => this.fitHeight() }, h("ls-icon", { key: '870506fe1d52d05c7830bcd96510879deab54713', name: "fit-height" }))), h("div", { key: 'ec6abd7f5fcfc838c6753ade0ac33d996104caa9', class: "status-bar-section" }, h("button", { key: 'e5fe5ba2bbb9db9092789dbf3049c4b4b46365be', onClick: () => {
|
|
46
|
-
this.editor.pagePrev();
|
|
47
|
-
} }, h("ls-icon", { key: '422b9d7fcd419b9177f02d7daf91e51434b87e95', name: "chevron-left" })), h("p", { key: '7586eaa8fa7322c47e18ec8947b28f5ac90b984f' }, "1 / 2"), h("button", { key: '3a9d1b99344eeb643bcf2c257601d6cc654d3a06', onClick: () => {
|
|
48
|
-
this.editor.pageNext();
|
|
49
|
-
} }, h("ls-icon", { key: '8c63d85e1897c99028b43d173f08826a87b8e874', name: "chevron-right" }))), h("slot", { key: '521cb9b841135a3e6e39d6e621f0ea168d3ad525' })));
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
LsStatusbar.style = lsStatusbarCss;
|
|
53
|
-
|
|
54
|
-
export { LsStatusbar as ls_statusbar };
|
|
55
|
-
//# sourceMappingURL=ls-statusbar.entry.esm.js.map
|
|
56
|
-
|
|
57
|
-
//# sourceMappingURL=ls-statusbar.entry.js.map
|