legalesign-document-viewer 0.4.10 → 0.5.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_46.cjs.entry.js +84 -129
- package/dist/cjs/ls-document-viewer.cjs.js +1 -1
- package/dist/collection/components/ls-document-options/ls-document-options.js +0 -1
- package/dist/collection/components/ls-document-options/ls-document-options.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/editorCalculator.js +4 -6
- package/dist/collection/components/ls-document-viewer/editorCalculator.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-document-viewer/keyHandlers.js +0 -4
- package/dist/collection/components/ls-document-viewer/keyHandlers.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js +5 -40
- package/dist/collection/components/ls-document-viewer/ls-document-viewer.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/mouseHandlers.js +8 -8
- package/dist/collection/components/ls-document-viewer/mouseHandlers.js.map +1 -1
- package/dist/collection/components/ls-editor-field/ls-editor-field.js +5 -6
- package/dist/collection/components/ls-editor-field/ls-editor-field.js.map +1 -1
- package/dist/collection/components/ls-field-alignment/ls-field-alignment.js +2 -7
- package/dist/collection/components/ls-field-alignment/ls-field-alignment.js.map +1 -1
- package/dist/collection/components/ls-field-content/ls-field-content.js +2 -3
- package/dist/collection/components/ls-field-content/ls-field-content.js.map +1 -1
- package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js +3 -5
- package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js.map +1 -1
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.js +6 -33
- package/dist/collection/components/ls-field-distribute/ls-field-distribute.js.map +1 -1
- package/dist/collection/components/ls-field-footer/ls-field-footer.js +24 -13
- package/dist/collection/components/ls-field-footer/ls-field-footer.js.map +1 -1
- package/dist/collection/components/ls-field-format/ls-field-format.js +11 -34
- package/dist/collection/components/ls-field-format/ls-field-format.js.map +1 -1
- package/dist/collection/components/ls-field-placement/ls-field-placement.js +1 -25
- package/dist/collection/components/ls-field-placement/ls-field-placement.js.map +1 -1
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js +2 -26
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js.map +1 -1
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js +1 -1
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js.map +1 -1
- package/dist/collection/components/ls-field-size/ls-field-size.js +1 -24
- package/dist/collection/components/ls-field-size/ls-field-size.js.map +1 -1
- package/dist/collection/components/ls-participant-card/ls-participant-card.js +8 -33
- package/dist/collection/components/ls-participant-card/ls-participant-card.js.map +1 -1
- package/dist/collection/components/ls-title-input/ls-title-input.js +1 -24
- package/dist/collection/components/ls-title-input/ls-title-input.js.map +1 -1
- package/dist/collection/components/ls-toolbar/ls-toolbar.js +1 -2
- package/dist/collection/components/ls-toolbar/ls-toolbar.js.map +1 -1
- package/dist/components/ls-document-options.js +1 -1
- package/dist/components/ls-document-viewer.js +33 -46
- package/dist/components/ls-document-viewer.js.map +1 -1
- package/dist/components/ls-editor-field.js +1 -1
- package/dist/components/ls-field-alignment.js +1 -1
- package/dist/components/ls-field-content.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.js +1 -1
- package/dist/components/ls-field-properties-autosign.js +1 -1
- package/dist/components/ls-field-properties-date.js +1 -1
- package/dist/components/ls-field-properties-dropdown.js +6 -6
- 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-participant-card.js +1 -1
- package/dist/components/ls-participant-manager.js +1 -1
- package/dist/components/ls-statusbar.js +1 -1
- package/dist/components/ls-title-input.js +1 -1
- package/dist/components/ls-toolbar.js +1 -1
- package/dist/components/{p-DR6nQwpS.js → p-BxPfWmRj.js} +17 -24
- package/dist/components/p-BxPfWmRj.js.map +1 -0
- package/dist/components/{p-DL5OFC6L.js → p-C6TaBByt.js} +8 -8
- package/dist/components/{p-DL5OFC6L.js.map → p-C6TaBByt.js.map} +1 -1
- package/dist/components/{p-DsHIGb44.js → p-C9CUft6J.js} +4 -8
- package/dist/components/p-C9CUft6J.js.map +1 -0
- package/dist/components/{p--CN66FDL.js → p-CDGosSW8.js} +8 -8
- package/dist/components/{p--CN66FDL.js.map → p-CDGosSW8.js.map} +1 -1
- package/dist/components/{p-BNetnt57.js → p-CDgBo5Zz.js} +8 -8
- package/dist/components/{p-BNetnt57.js.map → p-CDgBo5Zz.js.map} +1 -1
- package/dist/components/{p-C6vXxe-0.js → p-CGQK3l8F.js} +24 -13
- package/dist/components/p-CGQK3l8F.js.map +1 -0
- package/dist/components/{p-n8Mvlim4.js → p-CPZtW_1V.js} +2 -3
- package/dist/components/p-CPZtW_1V.js.map +1 -0
- package/dist/components/{p-BMH2H6ZU.js → p-C_uR3x8J.js} +8 -8
- package/dist/components/{p-BMH2H6ZU.js.map → p-C_uR3x8J.js.map} +1 -1
- package/dist/components/{p-C3WsOnJj.js → p-CgKvhxXq.js} +3 -3
- package/dist/components/{p-C3WsOnJj.js.map → p-CgKvhxXq.js.map} +1 -1
- package/dist/components/{p-BwLBJKzU.js → p-Co-Giqfy.js} +13 -16
- package/dist/components/p-Co-Giqfy.js.map +1 -0
- package/dist/components/{p-B016luU7.js → p-Czz58vGf.js} +8 -8
- package/dist/components/{p-B016luU7.js.map → p-Czz58vGf.js.map} +1 -1
- package/dist/components/{p-WBcBFI9v.js → p-DGiUKXDO.js} +21 -21
- package/dist/components/{p-WBcBFI9v.js.map → p-DGiUKXDO.js.map} +1 -1
- package/dist/components/{p-SBrheH1U.js → p-DMZN9Rei.js} +8 -8
- package/dist/components/{p-SBrheH1U.js.map → p-DMZN9Rei.js.map} +1 -1
- package/dist/components/{p-Dhhv3wHm.js → p-DYQekJvr.js} +5 -7
- package/dist/components/p-DYQekJvr.js.map +1 -0
- package/dist/components/{p-DY-DgM1S.js → p-D_mOmvQA.js} +3 -3
- package/dist/components/{p-DY-DgM1S.js.map → p-D_mOmvQA.js.map} +1 -1
- package/dist/components/{p-C5h5dv41.js → p-DoAxt8ZN.js} +3 -6
- package/dist/components/p-DoAxt8ZN.js.map +1 -0
- package/dist/components/{p-BkY_IdVa.js → p-DpHCeHja.js} +4 -5
- package/dist/components/p-DpHCeHja.js.map +1 -0
- package/dist/components/{p-CYmYmhQR.js → p-DsR1ud4V.js} +12 -16
- package/dist/components/p-DsR1ud4V.js.map +1 -0
- package/dist/components/{p-CNL8fkln.js → p-DskHTNiF.js} +10 -10
- package/dist/components/p-DskHTNiF.js.map +1 -0
- package/dist/components/{p-DJ2drrXa.js → p-HpepQ3-E.js} +8 -8
- package/dist/components/{p-DJ2drrXa.js.map → p-HpepQ3-E.js.map} +1 -1
- package/dist/components/{p-wqey-dda.js → p-JIZHOmMy.js} +3 -6
- package/dist/components/p-JIZHOmMy.js.map +1 -0
- package/dist/components/{p-5KCL3hvK.js → p-KMRQyALr.js} +3 -7
- package/dist/components/p-KMRQyALr.js.map +1 -0
- package/dist/components/{p-BNg8t35-.js → p-YcP4tU0u.js} +4 -9
- package/dist/components/p-YcP4tU0u.js.map +1 -0
- package/dist/components/{p-VTbVKsqR.js → p-aA8RuwY_.js} +5 -6
- package/dist/components/p-aA8RuwY_.js.map +1 -0
- package/dist/components/{p-DVjWdmVm.js → p-iIvOyhST.js} +5 -5
- package/dist/components/{p-DVjWdmVm.js.map → p-iIvOyhST.js.map} +1 -1
- package/dist/components/{p-SRaB2k2a.js → p-w39shV-b.js} +8 -8
- package/dist/components/{p-SRaB2k2a.js.map → p-w39shV-b.js.map} +1 -1
- package/dist/components/{p-GUP3f2W9.js → p-w7mOEBr4.js} +10 -15
- package/dist/components/p-w7mOEBr4.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/ls-document-options_46.entry.js +84 -129
- package/dist/esm/ls-document-viewer.js +1 -1
- package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -1
- package/dist/ls-document-viewer/{p-44b51bdb.entry.js → p-20b9c119.entry.js} +5 -5
- package/dist/ls-document-viewer/p-20b9c119.entry.js.map +1 -0
- package/dist/types/components/ls-document-viewer/ls-document-viewer.d.ts +0 -2
- package/dist/types/components/ls-field-distribute/ls-field-distribute.d.ts +0 -1
- package/dist/types/components/ls-field-footer/ls-field-footer.d.ts +4 -1
- package/dist/types/components/ls-field-format/ls-field-format.d.ts +0 -1
- package/dist/types/components/ls-field-placement/ls-field-placement.d.ts +0 -1
- package/dist/types/components/ls-field-properties-advanced/ls-field-properties-advanced.d.ts +0 -1
- package/dist/types/components/ls-field-size/ls-field-size.d.ts +0 -1
- package/dist/types/components/ls-participant-card/ls-participant-card.d.ts +0 -1
- package/dist/types/components/ls-title-input/ls-title-input.d.ts +0 -1
- package/dist/types/components.d.ts +2 -18
- package/package.json +1 -1
- package/dist/components/p-5KCL3hvK.js.map +0 -1
- package/dist/components/p-BNg8t35-.js.map +0 -1
- package/dist/components/p-BkY_IdVa.js.map +0 -1
- package/dist/components/p-BwLBJKzU.js.map +0 -1
- package/dist/components/p-C5h5dv41.js.map +0 -1
- package/dist/components/p-C6vXxe-0.js.map +0 -1
- package/dist/components/p-CNL8fkln.js.map +0 -1
- package/dist/components/p-CYmYmhQR.js.map +0 -1
- package/dist/components/p-DR6nQwpS.js.map +0 -1
- package/dist/components/p-Dhhv3wHm.js.map +0 -1
- package/dist/components/p-DsHIGb44.js.map +0 -1
- package/dist/components/p-GUP3f2W9.js.map +0 -1
- package/dist/components/p-VTbVKsqR.js.map +0 -1
- package/dist/components/p-n8Mvlim4.js.map +0 -1
- package/dist/components/p-wqey-dda.js.map +0 -1
- package/dist/ls-document-viewer/p-44b51bdb.entry.js.map +0 -1
|
@@ -61,7 +61,6 @@ const LsDocumentOptions = class {
|
|
|
61
61
|
this.titletimer = setTimeout(() => {
|
|
62
62
|
this.template = { ...this.template, ...diff };
|
|
63
63
|
const diffs = [{ action: 'update', data: this.template }];
|
|
64
|
-
this.update.emit(diffs);
|
|
65
64
|
this.mutate.emit(diffs);
|
|
66
65
|
}, delay);
|
|
67
66
|
}
|
|
@@ -35171,21 +35170,19 @@ const findDimensions = (frameContainer, sourceField, pageHeight, pageWidth, zoom
|
|
|
35171
35170
|
const frmDims = frameContainer.getBoundingClientRect();
|
|
35172
35171
|
// dimensions relative to viewport
|
|
35173
35172
|
const { height, width } = sourceField.getBoundingClientRect();
|
|
35174
|
-
const zwidth = width / zoom;
|
|
35175
|
-
const zheight = height / zoom;
|
|
35176
35173
|
const top = Math.floor((sourceField.getBoundingClientRect().top - frmDims.top) / zoom);
|
|
35177
35174
|
const left = Math.floor((sourceField.getBoundingClientRect().left - frmDims.left) / zoom);
|
|
35178
35175
|
// Returns X, Y coordinates
|
|
35179
35176
|
const ax = left > 0 ? left / pageWidth : 0;
|
|
35180
35177
|
const ay = top > 0 ? top / pageHeight : 0;
|
|
35181
|
-
const bx = (left +
|
|
35182
|
-
const by = (top +
|
|
35178
|
+
const bx = (left + (width / zoom)) / pageWidth;
|
|
35179
|
+
const by = (top + (height / zoom)) / pageHeight;
|
|
35183
35180
|
// Return with calculated styles that try to place it as it would appear on legacy signing page
|
|
35184
35181
|
return {
|
|
35185
35182
|
top,
|
|
35186
35183
|
left,
|
|
35187
|
-
height,
|
|
35188
|
-
width,
|
|
35184
|
+
height: Math.round(height / zoom),
|
|
35185
|
+
width: Math.round(width / zoom),
|
|
35189
35186
|
ax,
|
|
35190
35187
|
ay,
|
|
35191
35188
|
bx,
|
|
@@ -35371,7 +35368,6 @@ function alter(diffFn) {
|
|
|
35371
35368
|
return { action: 'update', data: diffFn(c.dataItem) };
|
|
35372
35369
|
});
|
|
35373
35370
|
this.mutate.emit(diffs);
|
|
35374
|
-
this.update.emit(diffs);
|
|
35375
35371
|
}
|
|
35376
35372
|
function debounce$1(func, timeout = 300) {
|
|
35377
35373
|
let timer;
|
|
@@ -35382,7 +35378,7 @@ function debounce$1(func, timeout = 300) {
|
|
|
35382
35378
|
}, timeout);
|
|
35383
35379
|
};
|
|
35384
35380
|
}
|
|
35385
|
-
//
|
|
35381
|
+
// After a mutation ensure that the new data is stored in fields and template
|
|
35386
35382
|
function matchData(data) {
|
|
35387
35383
|
const newObj = data.result;
|
|
35388
35384
|
const prefix = atob(data.obj.id).substring(0, 3);
|
|
@@ -35591,9 +35587,6 @@ function keyDown(ev) {
|
|
|
35591
35587
|
this.mutate.emit(arr.map(s => {
|
|
35592
35588
|
return { action: 'delete', data: s.dataItem };
|
|
35593
35589
|
}));
|
|
35594
|
-
this.update.emit(arr.map(s => {
|
|
35595
|
-
return { action: 'delete', data: s.dataItem };
|
|
35596
|
-
}));
|
|
35597
35590
|
}
|
|
35598
35591
|
else if (ev.key === 'd' || ev.key === 'D' || ev.key === 'keyD') {
|
|
35599
35592
|
const arr = Array.from(this.selected);
|
|
@@ -35607,7 +35600,6 @@ function keyDown(ev) {
|
|
|
35607
35600
|
return { action: 'create', data: newItem, select: 'clear' };
|
|
35608
35601
|
});
|
|
35609
35602
|
this.mutate.emit(createdItems.map(item => ({ action: 'create', data: item.data })));
|
|
35610
|
-
this.update.emit(createdItems);
|
|
35611
35603
|
}
|
|
35612
35604
|
else if (ev.key === 'Escape') {
|
|
35613
35605
|
console.log('Clearing selection');
|
|
@@ -35738,7 +35730,7 @@ function mouseMove(event) {
|
|
|
35738
35730
|
var scale = this.hitField.dataItem.formElementType === 'signature' && this._template.fixSignatureScale;
|
|
35739
35731
|
switch (this.edgeSide) {
|
|
35740
35732
|
case 'n':
|
|
35741
|
-
if (outOfBounds({ ...this.hitField.dataItem, top: this.startMouse.top + movedY, height: this.startMouse.height - movedY }))
|
|
35733
|
+
if (outOfBounds({ ...this.hitField.dataItem, top: (this.startMouse.top + movedY) / this.zoom, height: (this.startMouse.height - movedY) / this.zoom }))
|
|
35742
35734
|
break;
|
|
35743
35735
|
this.hitField.style.top = this.startMouse.top + movedY + 'px';
|
|
35744
35736
|
this.hitField.style.height = this.startMouse.height - movedY + 'px';
|
|
@@ -35749,7 +35741,7 @@ function mouseMove(event) {
|
|
|
35749
35741
|
this.hitField.dataItem = { ...this.hitField.dataItem, top: this.startMouse.top + movedY, height: this.startMouse.height - movedY, width };
|
|
35750
35742
|
break;
|
|
35751
35743
|
case 's':
|
|
35752
|
-
if (outOfBounds({ ...this.hitField.dataItem, height: this.startMouse.height + movedY }))
|
|
35744
|
+
if (outOfBounds({ ...this.hitField.dataItem, height: (this.startMouse.height + movedY) / this.zoom }))
|
|
35753
35745
|
break;
|
|
35754
35746
|
this.hitField.style.height = this.startMouse.height + movedY + 'px';
|
|
35755
35747
|
if (scale) {
|
|
@@ -35759,17 +35751,17 @@ function mouseMove(event) {
|
|
|
35759
35751
|
this.hitField.dataItem = { ...this.hitField.dataItem, height: this.startMouse.height + movedY, width };
|
|
35760
35752
|
break;
|
|
35761
35753
|
case 'e':
|
|
35762
|
-
if (outOfBounds({ ...this.hitField.dataItem, width: this.startMouse.width + movedX }))
|
|
35754
|
+
if (outOfBounds({ ...this.hitField.dataItem, width: (this.startMouse.width + movedX) / this.zoom }))
|
|
35763
35755
|
break;
|
|
35764
35756
|
this.hitField.style.width = this.startMouse.width + movedX + 'px';
|
|
35765
35757
|
if (scale) {
|
|
35766
35758
|
height = Math.round((this.startMouse.width + movedX) / 3.8);
|
|
35767
35759
|
this.hitField.style.height = height + 'px';
|
|
35768
35760
|
}
|
|
35769
|
-
this.hitField.dataItem = { ...this.hitField.dataItem, width: this.startMouse.width + movedX, height };
|
|
35761
|
+
this.hitField.dataItem = { ...this.hitField.dataItem, width: (this.startMouse.width + movedX) / this.zoom, height };
|
|
35770
35762
|
break;
|
|
35771
35763
|
case 'w':
|
|
35772
|
-
if (outOfBounds({ ...this.hitField.dataItem, left: this.startMouse.left + movedX, width: this.startMouse.width - movedX }))
|
|
35764
|
+
if (outOfBounds({ ...this.hitField.dataItem, left: (this.startMouse.left + movedX) / this.zoom, width: (this.startMouse.width - movedX) / this.zoom }))
|
|
35773
35765
|
break;
|
|
35774
35766
|
this.hitField.style.left = this.startMouse.left + movedX + 'px';
|
|
35775
35767
|
this.hitField.style.width = this.startMouse.width - movedX + 'px';
|
|
@@ -35810,8 +35802,8 @@ function mouseMove(event) {
|
|
|
35810
35802
|
for (let i = 0; i < this.selected.length; i++) {
|
|
35811
35803
|
if (this.startLocations[i].left + movedX >= 0 &&
|
|
35812
35804
|
this.startLocations[i].top + movedY >= 0 &&
|
|
35813
|
-
this.startLocations[i].left + movedX <= this.pageDimensions[this.pageNum - 1].width - this.selected[i].dataItem.width &&
|
|
35814
|
-
this.startLocations[i].top + movedY <= this.pageDimensions[this.pageNum - 1].height - this.selected[i].dataItem.height) {
|
|
35805
|
+
this.startLocations[i].left + movedX <= (this.pageDimensions[this.pageNum - 1].width - this.selected[i].dataItem.width) * this.zoom &&
|
|
35806
|
+
this.startLocations[i].top + movedY <= (this.pageDimensions[this.pageNum - 1].height - this.selected[i].dataItem.height) * this.zoom) {
|
|
35815
35807
|
this.selected[i].style.left = this.startLocations[i].left + movedX + 'px';
|
|
35816
35808
|
this.selected[i].style.top = this.startLocations[i].top + movedY + 'px';
|
|
35817
35809
|
}
|
|
@@ -35850,7 +35842,7 @@ function mouseClick(e) {
|
|
|
35850
35842
|
// Calculate new positions and update the dataItem on the control
|
|
35851
35843
|
const delta = {
|
|
35852
35844
|
...fx.dataItem,
|
|
35853
|
-
...findDimensions(divFrame, fx,
|
|
35845
|
+
...findDimensions(divFrame, fx, fx.dataItem.pageDimensions.height, fx.dataItem.pageDimensions.width, this.zoom),
|
|
35854
35846
|
};
|
|
35855
35847
|
// TODO:: out of bounds handler (UNDO)
|
|
35856
35848
|
// update the data in the html element
|
|
@@ -40238,7 +40230,6 @@ const LsDocumentViewer = class {
|
|
|
40238
40230
|
this.pageChange = createEvent(this, "pageChange", 7);
|
|
40239
40231
|
this.selectFields = createEvent(this, "selectFields", 7);
|
|
40240
40232
|
this.mutate = createEvent(this, "mutate", 7);
|
|
40241
|
-
this.update = createEvent(this, "update", 7);
|
|
40242
40233
|
}
|
|
40243
40234
|
get component() { return getElement(this); }
|
|
40244
40235
|
isPageRendering;
|
|
@@ -40398,13 +40389,13 @@ const LsDocumentViewer = class {
|
|
|
40398
40389
|
selectFields;
|
|
40399
40390
|
// Send an external event to be processed
|
|
40400
40391
|
mutate;
|
|
40401
|
-
// Send an internal event to be processed
|
|
40402
|
-
update;
|
|
40403
40392
|
adapter;
|
|
40404
40393
|
// Action an external data action and use the result (if required)
|
|
40405
40394
|
mutateHandler(event) {
|
|
40406
40395
|
if (this.token && this.adapter)
|
|
40407
|
-
event.detail.forEach(me => this.adapter.handleEvent(me, this.token)
|
|
40396
|
+
event.detail.forEach(me => this.adapter.handleEvent(me, this.token)
|
|
40397
|
+
.then(result => matchData.bind(this)(result))
|
|
40398
|
+
.then(() => this.syncChange(me)));
|
|
40408
40399
|
}
|
|
40409
40400
|
handleFieldTypeSelected(event) {
|
|
40410
40401
|
const fields = this.component.shadowRoot.querySelectorAll('ls-toolbox-field');
|
|
@@ -40414,11 +40405,6 @@ const LsDocumentViewer = class {
|
|
|
40414
40405
|
this.fieldTypeSelected = event.detail;
|
|
40415
40406
|
}
|
|
40416
40407
|
// Updates are internal event between LS controls not to be confused with mutate
|
|
40417
|
-
updateHandler(event) {
|
|
40418
|
-
if (event.detail)
|
|
40419
|
-
event.detail.forEach(fx => this.syncChange(fx));
|
|
40420
|
-
}
|
|
40421
|
-
// Updates are internal event between LS controls not to be confused with mutate
|
|
40422
40408
|
addParticpantHandler(event) {
|
|
40423
40409
|
const defaultExperience = this.groupInfo.experienceConnection.experiences.find(x => x.defaultExperience === true);
|
|
40424
40410
|
const parent = this._template.roles.find(r => r.id === event.detail.parent);
|
|
@@ -40438,7 +40424,6 @@ const LsDocumentViewer = class {
|
|
|
40438
40424
|
},
|
|
40439
40425
|
},
|
|
40440
40426
|
];
|
|
40441
|
-
this.update.emit(data);
|
|
40442
40427
|
this.mutate.emit(data);
|
|
40443
40428
|
}
|
|
40444
40429
|
// Updates are internal event between LS controls not to be confused with mutate
|
|
@@ -40671,7 +40656,6 @@ const LsDocumentViewer = class {
|
|
|
40671
40656
|
this.selected = Array.from(fields).filter(fx => fx.selected);
|
|
40672
40657
|
}
|
|
40673
40658
|
else if (update.action === 'delete') {
|
|
40674
|
-
console.log('Deleting field via syncChange', update.data);
|
|
40675
40659
|
const fi = this.component.shadowRoot.getElementById('ls-field-' + update.data.id);
|
|
40676
40660
|
if (!fi)
|
|
40677
40661
|
return;
|
|
@@ -40777,7 +40761,7 @@ const LsDocumentViewer = class {
|
|
|
40777
40761
|
return this.filtertoolbox === null || this.filtertoolbox.split('|').includes(fieldFormType);
|
|
40778
40762
|
}
|
|
40779
40763
|
render() {
|
|
40780
|
-
return (h(Host, { key: '
|
|
40764
|
+
return (h(Host, { key: '592c7144dc4fd461a0d3b8e227db8e4048467c9f' }, h(h.Fragment, null, this.isLoading && h("ls-page-loader", { key: '113947587a6fe8e00d89ed00edde9afc8be74593' }), h("div", { key: '677507d66bd4838f83b23b3709a150f3d84f29bd', class: "page-header" }, h("div", { key: '22a111c262260ccba582b3d67e3821e26600b6d9', class: 'left-slot-wrapper' }, h("slot", { key: '6cbdd90b06fe4932945be175c34d30425315fa0f', name: "left-button" })), h("div", { key: '69fc0abcc276a7df62c64f8110be565fcf64543f', class: 'right-slot-wrapper' }, h("slot", { key: '5fcd702fb09f97d0e3ad7c36c1964a4f76511c56', name: "right-button" })), this.mode === 'editor' && (h("div", { key: '26c37fb4933d625f83b4e2e79c64fc404a2bca83' }, h("span", { key: 'ff58207753e287214f7b54301067812ac7a1864f', class: "header-text-1" }, "Template Creation"), h("span", { key: '91f36b80b04d9dd46ebc04250f28c1e0a9ae340a' }, "/"), h("span", { key: 'f0b3432388b7924e8c7e88d088ec8882e74da179', class: "header-text-2" }, this._template?.title))), this.mode === 'compose' && (h("div", { key: '174d1395ed9283ccfff0e7054d922d1a099d6ac6', style: { display: 'flex', alignItems: 'center', gap: '0.25rem' } }, h("span", { key: 'e45eede718f3acfbf2597e207ac84cda4f3d93f5', class: "header-text-1" }, "Compose"), " ", h("span", { key: '18f911514cf2b4c5058cb49de8b93cfc9d7319a3' }, "/"), " ", h("ls-title-input", { key: '71f7afcfed3fa23b92a81a22211578e5a1ae0837', template: this._template })))), this.mode === 'editor' && (h("div", { key: '44e9e1b2e8e9a8d8d3bfe49075bd9c27272d0bfd', class: 'validation-tag-wrapper' }, h("ls-validation-tag", { key: '15ab405d7eddf10eba6adc64f2ca9460ae05f3bc', validationErrors: this.validationErrors }))), h("form", { key: '38a29a27b4fac98b46fcff7748e1225bc44b2220', id: "ls-editor-form" }, this.mode !== 'preview' ? (h("div", { id: "ls-left-box", class: "leftBox", style: this.mode === 'compose' ? { borderRadius: '1.75rem' } : {} }, h("div", { class: !this.selected || this.selected.length === 0 ? 'left-box-inner' : 'hidden' }, this.mode === 'editor' && (h("ls-feature-column", { mode: this.mode, onManage: manager => {
|
|
40781
40765
|
if (manager.detail === 'document') {
|
|
40782
40766
|
var documentManager = this.component.shadowRoot.getElementById('ls-document-options');
|
|
40783
40767
|
documentManager.template = this._template;
|
|
@@ -40788,7 +40772,6 @@ const LsDocumentViewer = class {
|
|
|
40788
40772
|
}
|
|
40789
40773
|
else if (manager.detail === 'validation') {
|
|
40790
40774
|
var validationManager = this.component.shadowRoot.getElementById('ls-validation-manager');
|
|
40791
|
-
console.log(validationManager);
|
|
40792
40775
|
validationManager.validationErrors = this.validationErrors;
|
|
40793
40776
|
}
|
|
40794
40777
|
this.manager = manager.detail;
|
|
@@ -40796,7 +40779,7 @@ const LsDocumentViewer = class {
|
|
|
40796
40779
|
this._recipients.map(recipient => (h("ls-recipient-card", { recipient: recipient, activeRecipient: this.signer, filtertoolbox: this.filtertoolbox, template: this._template, validationErrors: this.validationErrors, fieldTypeSelected: this.fieldTypeSelected, "data-signer-index": recipient.signerIndex })))))), !this.displayTable && (h("div", { class: this.selected.length > 0 ? 'field-properties-outer' : 'hidden' }, h("div", { class: 'properties-header' }, h("div", { class: 'properties-header-icon' }, h("ls-icon", { name: "pre-filled-content" })), h("h1", { class: 'properties-header-title' }, "Field Properties"), h("button", { class: 'tertiaryGrey', onClick: e => {
|
|
40797
40780
|
this.selected = [];
|
|
40798
40781
|
e.preventDefault();
|
|
40799
|
-
}, "data-tooltip": "Close Properties Panel" }, h("ls-icon", { name: "x", size: "1.25rem" }))), h("ls-field-properties", { id: "my-field-panel" }), h("slot", null))))) : (h(h.Fragment, null)), this.selected.length > 0 && h("ls-toolbar", { key: '
|
|
40782
|
+
}, "data-tooltip": "Close Properties Panel" }, h("ls-icon", { name: "x", size: "1.25rem" }))), h("ls-field-properties", { id: "my-field-panel" }), h("slot", null))))) : (h(h.Fragment, null)), this.selected.length > 0 && h("ls-toolbar", { key: 'a88185257ac871dc06d0cdfb469ce707f5181e4d', id: "ls-toolbar", template: this._template, editor: this, groupInfo: this.groupInfo }), h("div", { key: '45e36f82ccbc164030b88b77d5e5bee3d492adbd', id: "ls-mid-area" }, h("div", { key: 'ccfb67c4439afa826187684cb5607aa578d7e2c7', class: 'document-frame-wrapper', id: "document-frame-wrapper" }, h("div", { key: '8db690eef40e7681d55a741dd73b5baf04746b65', id: "ls-document-frame" }, h("canvas", { key: 'b3c5a5dd0628bc64ed4778331d55f9e21379b030', id: "pdf-canvas", class: this.displayTable || this.isLoading ? 'hidden' : '' }), h("ls-editor-table", { key: 'ad39cdc485dc2338cd1a0d352d80b86c9c21aa02', editor: this, class: this.displayTable ? '' : 'hidden' }), h("div", { key: '50f7fd13fa475862059e0068282dd679b019f53a', id: "ls-box-selector" }))), h("ls-statusbar", { key: '21e4863029cf8b59ad3f902a5dc9c2658aa1cefe', editor: this, page: this.pageNum, pageCount: this.pageCount })))), h("ls-tooltip", { key: 'd55c2e32d2b66bd63aa0fa20873e753736a7aff2', id: "ls-tooltip-master" })));
|
|
40800
40783
|
}
|
|
40801
40784
|
static get watchers() { return {
|
|
40802
40785
|
"mode": ["modeHandler"],
|
|
@@ -41158,7 +41141,6 @@ const LsEditorField = class {
|
|
|
41158
41141
|
this.labeltimer = setTimeout(() => {
|
|
41159
41142
|
const diffs = [{ action: 'update', data }];
|
|
41160
41143
|
this.mutate.emit(diffs);
|
|
41161
|
-
this.update.emit(diffs);
|
|
41162
41144
|
}, delay);
|
|
41163
41145
|
}
|
|
41164
41146
|
hexToRgba(hex, alpha) {
|
|
@@ -41173,10 +41155,10 @@ const LsEditorField = class {
|
|
|
41173
41155
|
? { border: `2px ${defaultRolePalette[this.dataItem?.signer % 100].s60} solid`, boxShadow: '0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -1px rgba(0, 0, 0, 0.06)' }
|
|
41174
41156
|
: { border: `2px ${defaultRolePalette[this.dataItem?.signer % 100].s60} solid` };
|
|
41175
41157
|
const zoomValue = parseFloat(this.zoom) || 1;
|
|
41176
|
-
return (h(Host, { key: '
|
|
41158
|
+
return (h(Host, { key: '89a2f93e5353a2660bb262af4830b6911bd7ee64', id: this.dataItem ? 'ls-field-' + this.dataItem.id : undefined, style: hostStyle, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("div", { key: '95decbf8fee094a5ac8e7f3e7314374b659b6579', class: {
|
|
41177
41159
|
'ls-editor-field': true,
|
|
41178
41160
|
'is-selected': this.selected,
|
|
41179
|
-
} }, !this.dataItem?.optional && h("ls-icon", { key: '
|
|
41161
|
+
} }, !this.dataItem?.optional && h("ls-icon", { key: '14b5c38881517f955428bf35d31f4282aae1e286', name: "required", size: `${0.75 * zoomValue}rem`, class: "required-icon", customStyle: { position: 'absolute', verticalAlign: 'top', top: `${0.125 * zoomValue}rem`, right: `${0.125 * zoomValue}rem` } }), h("input", { key: '404b2803acd1c74cfd8a8853623dad2c3ca74b20', id: "editing-input", class: this.isEditing ? 'ls-editor-field-editable' : 'hidden-field', type: getInputType(this.dataItem.validation).inputType, value: this.dataItem?.value, checked: this.dataItem?.value ? true : false, onInput: e => this.alter({ value: e.target.value }) }), h("div", { key: 'bb8c8de6ac5c3bce79b6bbf7df9a86da5084c572', id: "field-info", class: this.isEditing ? 'hidden-field' : 'ls-editor-field-draggable', style: { color: `${defaultRolePalette[this.dataItem?.signer % 100].s100}` } }, (this.dataItem.value.length && this.dataItem.value) || this.dataItem?.formElementType), (this.floatingActive || this.selected) && this.dataItem?.label && (h("div", { key: '21ebed73fd616a3655d55c10e3625592bdc6de64', style: {
|
|
41180
41162
|
position: 'absolute',
|
|
41181
41163
|
background: `${defaultRolePalette[this.dataItem?.signer % 100].s20}`,
|
|
41182
41164
|
color: `${defaultRolePalette[this.dataItem?.signer % 100].s80}`,
|
|
@@ -41187,7 +41169,7 @@ const LsEditorField = class {
|
|
|
41187
41169
|
left: `-${2 * zoomValue}px`,
|
|
41188
41170
|
whiteSpace: 'nowrap',
|
|
41189
41171
|
width: 'fit-content',
|
|
41190
|
-
} }, this.dataItem?.label)), (this.floatingActive || this.selected) && (h("p", { key: '
|
|
41172
|
+
} }, this.dataItem?.label)), (this.floatingActive || this.selected) && (h("p", { key: 'e14e6cce83af912df7de7464dca48f8a55c2867f', style: {
|
|
41191
41173
|
position: 'absolute',
|
|
41192
41174
|
color: 'var(--gray-80, #3a3a3a)',
|
|
41193
41175
|
bottom: `-${1.75 * zoomValue}rem`,
|
|
@@ -41195,9 +41177,9 @@ const LsEditorField = class {
|
|
|
41195
41177
|
left: '0',
|
|
41196
41178
|
whiteSpace: 'nowrap',
|
|
41197
41179
|
width: 'fit-content',
|
|
41198
|
-
} }, "Assigned to: ", this.assignee)), this.floatingActive && (h("button", { key: '
|
|
41180
|
+
} }, "Assigned to: ", this.assignee)), this.floatingActive && (h("button", { key: '5e4ed8ed5bd08c555f203708544d24ac6a847f2d', class: 'x-button', style: {
|
|
41199
41181
|
padding: `${0.125 * zoomValue}rem`,
|
|
41200
|
-
}, onClick: () => this.deleteField() }, h("ls-icon", { key: '
|
|
41182
|
+
}, onClick: () => this.deleteField() }, h("ls-icon", { key: 'c63cbfd8a4c71b8dfc6693a5bdd339e37414774a', name: "x", size: `${0.625 * zoomValue}rem` }))))));
|
|
41201
41183
|
}
|
|
41202
41184
|
static get watchers() { return {
|
|
41203
41185
|
"selected": ["watchSelectedHandler"]
|
|
@@ -41304,7 +41286,6 @@ const LsFieldAlignment = class {
|
|
|
41304
41286
|
});
|
|
41305
41287
|
this.dataItem = diffs.map(d => d.data);
|
|
41306
41288
|
this.mutate.emit(diffs);
|
|
41307
|
-
this.update.emit(diffs);
|
|
41308
41289
|
}
|
|
41309
41290
|
right() {
|
|
41310
41291
|
const rightmost = this.dataItem.reduce((rightmost, current) => {
|
|
@@ -41325,7 +41306,6 @@ const LsFieldAlignment = class {
|
|
|
41325
41306
|
});
|
|
41326
41307
|
this.dataItem = diffs.map(d => d.data);
|
|
41327
41308
|
this.mutate.emit(diffs);
|
|
41328
|
-
this.update.emit(diffs);
|
|
41329
41309
|
}
|
|
41330
41310
|
center() {
|
|
41331
41311
|
const addcentres = this.dataItem.reduce((total, current) => {
|
|
@@ -41350,7 +41330,6 @@ const LsFieldAlignment = class {
|
|
|
41350
41330
|
console.log(diffs);
|
|
41351
41331
|
this.dataItem = diffs.map(d => d.data);
|
|
41352
41332
|
this.mutate.emit(diffs);
|
|
41353
|
-
this.update.emit(diffs);
|
|
41354
41333
|
}
|
|
41355
41334
|
top() {
|
|
41356
41335
|
const topmost = this.dataItem.reduce((most, current) => {
|
|
@@ -41384,7 +41363,6 @@ const LsFieldAlignment = class {
|
|
|
41384
41363
|
});
|
|
41385
41364
|
this.dataItem = diffs.map(d => d.data);
|
|
41386
41365
|
this.mutate.emit(diffs);
|
|
41387
|
-
this.update.emit(diffs);
|
|
41388
41366
|
}
|
|
41389
41367
|
bottom() {
|
|
41390
41368
|
const lowest = this.dataItem.reduce((acc, current) => {
|
|
@@ -41404,15 +41382,14 @@ const LsFieldAlignment = class {
|
|
|
41404
41382
|
});
|
|
41405
41383
|
this.dataItem = diffs.map(d => d.data);
|
|
41406
41384
|
this.mutate.emit(diffs);
|
|
41407
|
-
this.update.emit(diffs);
|
|
41408
41385
|
}
|
|
41409
41386
|
componentDidLoad() {
|
|
41410
41387
|
attachAllTooltips(this.component.shadowRoot);
|
|
41411
41388
|
}
|
|
41412
41389
|
render() {
|
|
41413
|
-
return (h(Host, { key: '
|
|
41390
|
+
return (h(Host, { key: '400db25c25a36e1c2556bb4ec06724864b9bf83d' }, h("div", { key: '47e10979f5e40df74c8ee295f2e0f3c24f026215', class: 'ls-field-properties-section' }, h("div", { key: '9c101afb5812f8958f420f9e3f2b180085156f0c', class: 'ls-field-properties-section-text' }, h("p", { key: 'd2f6af742ae404699954d0a038e98553ca6de830', class: 'ls-field-properties-section-title' }, "Alignment"), h("p", { key: '1ad0db4521681851ad7d2ea04b54714033f8983e', class: 'ls-field-properties-section-description' }, "Align your Fields relative to the page or multi-select and align then to each other.")), h("div", { key: 'c8aa1676673aa7dd6272fe215c2b932c3cf7b31e', class: 'multi-button-group-row' }, h("div", { key: '0fdba69a2964a55718efd5d7c0c8084fbb3f3c5b', class: 'button-group' }, h("button", { key: 'bce8132bc2b3d2c932312b5f5ce7202936ba0372', onClick: () => this.left(), "aria-label": "Align selected fields vertically about their left edge.", "data-tooltip": "Align Left" }, h("ls-icon", { key: '4ecde43b70300205a93860415001744d24e9e31f', name: "field-alignment-left" })), h("button", { key: 'd7b62d1433ab7d98573774b2e8ba11dfc933f09e', onClick: () => this.center(), "aria-label": "Align selected fields vertically about their centre.", "data-tooltip": "Align Center" }, h("ls-icon", { key: '88af50eb18c0e5c9759c38785374a080e0c68889', name: "field-alignment-centre" })), h("button", { key: 'f6567ecc6bcf13c853a92985a6c8892fbf9e2360', onClick: () => {
|
|
41414
41391
|
this.right();
|
|
41415
|
-
}, "aria-label": "Align selected fields vertically about their right edge.", "data-tooltip": "Align Right" }, h("ls-icon", { key: '
|
|
41392
|
+
}, "aria-label": "Align selected fields vertically about their right edge.", "data-tooltip": "Align Right" }, h("ls-icon", { key: 'b4a316f3b22d598206e53b0aadc152af935a6c92', name: "field-alignment-right" }))), h("div", { key: 'ee1b1aaa94d60b6f8599c48cd41485699eaf8ec1', class: 'button-group' }, h("button", { key: '0533eb85453764ca44a586c7d189d09b9222fd03', onClick: () => this.top(), "aria-label": "Align selected fields by their top.", "data-tooltip": "Align Top" }, h("ls-icon", { key: '6baca0ef2df8e60749ca46f26fa614675aaabdaa', name: "field-alignment-top" })), h("button", { key: '1e2ef35fbe0f0b520091e40c3120ea6112f9b8b7', onClick: () => this.middle(), "aria-label": "Align selected fields by their middles.", "data-tooltip": "Align Middle" }, h("ls-icon", { key: 'b91876a9aec1e5c3f528ee679ac468298e8922f4', name: "field-alignment-middle" })), h("button", { key: 'ef6d7f773708d14ba4621ca900204dda6b5fb016', onClick: () => this.bottom(), "aria-label": "Align selected fields by their bottoms.", "data-tooltip": "Align Bottom" }, h("ls-icon", { key: 'b35d93c535bb179901af3c0a1fbb25a69bde5579', name: "field-alignment-bottom" }))))), h("slot", { key: 'be48e72ff93e6490eae685759d20d21cc0944745' }), h("ls-tooltip", { key: '8fe30e3b47397e4d9bdab32cce7629450bf4123e', id: "ls-tooltip-master" })));
|
|
41416
41393
|
}
|
|
41417
41394
|
};
|
|
41418
41395
|
LsFieldAlignment.style = lsFieldAlignmentCss();
|
|
@@ -41444,7 +41421,6 @@ const LsFieldContent = class {
|
|
|
41444
41421
|
this.labeltimer = setTimeout(() => {
|
|
41445
41422
|
const diffs = [{ action: 'update', data }];
|
|
41446
41423
|
this.mutate.emit(diffs);
|
|
41447
|
-
this.update.emit(diffs);
|
|
41448
41424
|
}, delay);
|
|
41449
41425
|
}
|
|
41450
41426
|
supportsValue() {
|
|
@@ -41452,9 +41428,9 @@ const LsFieldContent = class {
|
|
|
41452
41428
|
return !typesWithValue.includes(this.dataItem?.elementType);
|
|
41453
41429
|
}
|
|
41454
41430
|
render() {
|
|
41455
|
-
return (h(Host, { key: '
|
|
41431
|
+
return (h(Host, { key: '3aa145da2c93db6900ba96388d86c72472686aa3' }, h("ls-props-section", { key: '4d08885c91a113e3c58b79046abc18e0b57ac1e4', sectionTitle: "Field Type", sectionDescription: "The Field you currently have selected" }, h("ls-field-type-display", { key: '166c7438df51abd4ee13952444a9e0996dd3d1ac', fieldType: this.dataItem?.elementType, assignee: this.dataItem?.signer })), h("ls-props-section", { key: '7a8f379af5a5bcfd3317dcd143129e493e963b08', sectionTitle: "Required Field", row: true }, h("ls-toggle", { key: '48ff9c0929d5cc38303b33423c8af14ef41d402a', id: "toggle-required", checked: !this.dataItem?.optional, onValueChange: (ev) => this.alter({ optional: !ev.detail }) })), h("ls-props-section", { key: '589a7bf1ff07a9c0cccfc347d0d8e2ccd4292629', sectionTitle: "Field Label", sectionDescription: "Add a label to clarify the information required from the Recipient." }, h("input", { key: 'bfd8071a1f1f54b9b1c1ee7a44b29c126b8f481b', value: this.dataItem?.label, placeholder: "eg. Sign Here", onInput: (e) => this.alter({ label: e.target.value }) })), this.supportsValue() && (h("ls-props-section", { key: '1fc16d46a133d7f8724b7e89fec0430908a5d440', sectionTitle: "Value", sectionDescription: "A prefilled value that can be altered by the signer." }, h("input", { key: '5c891526edb6a685222cfbc8f322a089e7cd5279', value: this.dataItem?.value, placeholder: "e.g. Gordon Smith", onInput: (e) => this.alter({ value: e.target.value }) }))), this.dataItem.validation === 20 && (h("ls-props-section", { key: '681316a7a8e67745fd9bf1735dc5d282ce62e756', sectionTitle: "Options", sectionDescription: "Define the options available in the dropdown. One option per line." }, h("textarea", { key: 'c919685a5b466e8ff6fd4d7ee4dbbcf9c66bfcee', value: this.dataItem?.options, placeholder: "Option 1\nOption 2\nOption 3", onInput: (e) => this.alter({ options: e.target.value }) }))), this.showValidationTypes && (h("ls-props-section", { key: '21d860e34e7a1715a5618b375c57c979acfb5dcb', sectionTitle: "Content Format", sectionDescription: "Select the specific format you want the Recipient to enter." }, h("ls-input-wrapper", { key: 'e4cc5533901b4a0842ea97bb6a97f4f55816d1cb', select: true }, h("select", { key: '4875147dbdcfdeadf4485f2b283bed89fe43c083', onChange: (ev) => this.alter({ validation: parseInt(ev.target.value) }) }, validationTypes
|
|
41456
41432
|
.filter(type => type.formType === this.dataItem?.elementType)
|
|
41457
|
-
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.id }, type.description))))))), h("slot", { key: '
|
|
41433
|
+
.map(type => (h("option", { selected: this.dataItem?.validation === type.id, value: type.id }, type.description))))))), h("slot", { key: 'de3eef5f0ea1297b43c3e92851935552f1fdcef9' })));
|
|
41458
41434
|
}
|
|
41459
41435
|
};
|
|
41460
41436
|
LsFieldContent.style = lsFieldContentCss();
|
|
@@ -41493,32 +41469,30 @@ const LsFieldDimensions = class {
|
|
|
41493
41469
|
});
|
|
41494
41470
|
this.dataItem = diffs.map(d => d.data);
|
|
41495
41471
|
this.mutate.emit(diffs);
|
|
41496
|
-
this.update.emit(diffs);
|
|
41497
41472
|
}
|
|
41498
41473
|
else {
|
|
41499
41474
|
const singleDiff = { action: 'update', data: { ...this.dataItem, ...diff } };
|
|
41500
41475
|
this.dataItem = singleDiff.data;
|
|
41501
41476
|
this.mutate.emit([singleDiff]);
|
|
41502
|
-
this.update.emit([singleDiff]);
|
|
41503
41477
|
}
|
|
41504
41478
|
}
|
|
41505
41479
|
componentDidLoad() {
|
|
41506
41480
|
attachAllTooltips(this.component.shadowRoot);
|
|
41507
41481
|
}
|
|
41508
41482
|
render() {
|
|
41509
|
-
return (h(Host, { key: '
|
|
41483
|
+
return (h(Host, { key: 'd003ec4d22c43fdc9ff1b7d5c42847cb5d21fa58' }, this.isMultiple(this.dataItem) && (h("div", { key: 'c97175dfa0099066e8fd997fb7c732916a45dcad', class: 'ls-field-properties-section' }, h("div", { key: 'ff4bbd9b97f2035521472682e323bd6539453138', class: 'ls-field-properties-section-text' }, h("p", { key: 'a6ce84a435637f5844483a6199c3a7d1f0ffe5fa', class: 'ls-field-properties-section-title' }, "Height and Width"), h("p", { key: 'f7b6c29969724037862c0ce90bc4c19b5d8a0b8d', class: 'ls-field-properties-section-description' }, "Define the height and width of one or multiple fields")), h("div", { key: '81cbc0cbe5a8d35cb1313b39fde5c42d268fabdc', class: 'input-row' }, h("div", { key: 'eaa01d8a7992511edd9f4cf45048069e37ab1701', class: 'input-wrapper', "data-tooltip": "Set field width in pixels" }, h("ls-icon", { key: 'd8993e0e168487aa14bebb340961940249961367', id: "selectLeadingIcon", name: "field-match-width" }), h("input", { key: '7b769e44b527c088c4f62bae3259e755da0c7d88', class: 'has-leading-icon', aria: "field-width", id: "field-width", onChange: e => this.alter({ width: e.target.value }) })), h("div", { key: '17e100d57b703c0fbc401006e021df4049f55049', class: 'input-wrapper', "data-tooltip": "Set field height in pixels" }, h("ls-icon", { key: '0cfc394ae203d751300160247e31d6e27ea943f7', id: "selectLeadingIcon", name: "field-match-height" }), h("input", { key: '619218eb16ea31fa460c31cc717edc1d74b94c19', class: 'has-leading-icon', aria: "field-height", id: "field-height", onChange: e => this.alter({ height: e.target.value }) }))))), this.isSingle(this.dataItem) && (h("div", { key: '9b7fd1db9c1ee0cd5e501190dab54c076e4d7bf0', class: 'field-set' }, h("div", { key: 'bdfea8edc67c3ccd17d9a59d6f9a8cf0a06fccba', class: 'ls-field-properties-section' }, h("div", { key: '3aa013fdf3dbdbd3631042a9159ab337054e9062', class: 'ls-field-properties-section-text' }, h("p", { key: '83d1f77ddecc1b06aa1a3e6e320babde8d64fb0f', class: 'ls-field-properties-section-title' }, "Height and Width"), h("p", { key: '702d3ea7ab57828852e701d21fa45d07506a9ddb', class: 'ls-field-properties-section-description' }, "Define the height and width of one or multiple fields")), h("div", { key: '836c4e59244430a6e3f914a912b1fe699a79e1f1', class: 'input-row' }, h("div", { key: 'a893194799297e84bddd5726c5e86d61824532a5', class: 'input-wrapper', "data-tooltip": "Set field width in pixels" }, h("ls-icon", { key: '3dcbee06779a17a700d515973698b7041e7592f9', id: "selectLeadingIcon", name: "field-match-width" }), h("input", { key: 'd7f64794d2880e9f0f444d8a98d5d7bd21c122cb', type: "number", class: 'has-leading-icon', aria: "field-width", id: "field-width", min: 5, max: this.dataItem.pageDimensions.width - this.dataItem.width, value: this.dataItem?.width, onChange: e => {
|
|
41510
41484
|
const di = this.getDataItem();
|
|
41511
41485
|
if (parseInt(e.target.value) > di.pageDimensions.width - di.left) {
|
|
41512
41486
|
return;
|
|
41513
41487
|
}
|
|
41514
41488
|
this.alter({ width: e.target.value });
|
|
41515
|
-
} })), h("div", { key: '
|
|
41489
|
+
} })), h("div", { key: '1956af6a1d388ca243b9f2b18d687d067a856513', class: 'input-wrapper', "data-tooltip": "Set field height in pixels" }, h("ls-icon", { key: '9971388d6ac1441ed86730a8448c5b1187a7cbcd', id: "selectLeadingIcon", name: "field-match-height" }), h("input", { key: '9162dadc492c6fc63e26ee85ab218bf7f6a4e0b2', type: "number", class: 'has-leading-icon', aria: "field-height", id: "field-height", value: this.dataItem?.height, onChange: e => {
|
|
41516
41490
|
const di = this.getDataItem();
|
|
41517
41491
|
if (parseInt(e.target.value) > di.pageDimensions.height - di.top) {
|
|
41518
41492
|
return;
|
|
41519
41493
|
}
|
|
41520
41494
|
this.alter({ height: e.target.value });
|
|
41521
|
-
} })))), h("div", { key: '
|
|
41495
|
+
} })))), h("div", { key: '9e75e3ef36f663c4a2fdddcb3e2c208ddf6e656f', class: 'ls-field-properties-section' }, h("div", { key: 'a8c072b8487a51da788c06357ba3dc9e1303166c', class: 'ls-field-properties-section-text' }, h("p", { key: 'c0dfd34d92f34c4477987a4d2e038dc8110cff31', class: 'ls-field-properties-section-title' }, "Scale and Resize"), h("p", { key: 'ff3b7ed6b10c183adb2a71a4d52c78054ed226f0', class: 'ls-field-properties-section-description' }, "Multi-select fields and match their dimensions")), h("div", { key: 'c165300dbd7e39554d7cbdf0df050b91dd0696c1', class: 'button-group' }, h("button", { key: '37c07a694dc7bf78a944746f6cdcae8a9f0ad310', disabled: true, "data-tooltip": "Select multiple Fields to to access scale controls" }, h("ls-icon", { key: '0c1732003117b1ba1baa92dc940e1975ad44a857', name: "field-scale" })), h("button", { key: 'de2248e7f9ed41276fe394bec2e55a114861ccd8', disabled: true, "data-tooltip": "Select multiple Fields to to access match width controls" }, h("ls-icon", { key: '08748b6107dbd25162dc15c45ff0686bf90e8d13', name: "field-match-width" })), h("button", { key: 'ffabf838749929cdc4795aed33618ecaf00f34f5', disabled: true, "data-tooltip": "Select multiple Fields to to access match height controls" }, h("ls-icon", { key: '595cafe4a70003633c037b8da411d151df287fd6', name: "field-match-height" })))))), h("ls-tooltip", { key: '1729af7c643432890b18d5f68fc7561494100c14', id: "ls-tooltip-master" })));
|
|
41522
41496
|
}
|
|
41523
41497
|
};
|
|
41524
41498
|
LsFieldDimensions.style = lsFieldDimensionsCss();
|
|
@@ -41529,11 +41503,9 @@ const LsFieldDistribute = class {
|
|
|
41529
41503
|
constructor(hostRef) {
|
|
41530
41504
|
registerInstance(this, hostRef);
|
|
41531
41505
|
this.mutate = createEvent(this, "mutate", 7);
|
|
41532
|
-
this.update = createEvent(this, "update", 7);
|
|
41533
41506
|
}
|
|
41534
41507
|
dataItem;
|
|
41535
41508
|
mutate;
|
|
41536
|
-
update;
|
|
41537
41509
|
get component() { return getElement(this); }
|
|
41538
41510
|
// Send one or more mutations up the chain
|
|
41539
41511
|
// The source of the chain fires the mutation
|
|
@@ -41544,7 +41516,6 @@ const LsFieldDistribute = class {
|
|
|
41544
41516
|
});
|
|
41545
41517
|
this.dataItem = diffs.map(d => d.data);
|
|
41546
41518
|
this.mutate.emit(diffs);
|
|
41547
|
-
this.update.emit(diffs);
|
|
41548
41519
|
}
|
|
41549
41520
|
distributeHorizontal() {
|
|
41550
41521
|
var spacing = this.component.shadowRoot.getElementById('ls-fix-horizontal-space');
|
|
@@ -41565,7 +41536,7 @@ const LsFieldDistribute = class {
|
|
|
41565
41536
|
avgspace = Math.floor(totalWidth / (sorted.length - 1));
|
|
41566
41537
|
}
|
|
41567
41538
|
const filtered = sorted.filter((c, index) => {
|
|
41568
|
-
return outOfBounds({ ...c, left: Math.floor(leftmost - (c.width / 2) + avgspace * index) }) === false
|
|
41539
|
+
return outOfBounds({ ...c, left: (Math.floor(leftmost - (c.width / 2) + avgspace * index)) }) === false
|
|
41569
41540
|
&& index !== 0
|
|
41570
41541
|
&& index !== sorted.length - 1;
|
|
41571
41542
|
});
|
|
@@ -41580,7 +41551,6 @@ const LsFieldDistribute = class {
|
|
|
41580
41551
|
});
|
|
41581
41552
|
this.dataItem = diffs.map(d => d.data);
|
|
41582
41553
|
this.mutate.emit(diffs);
|
|
41583
|
-
this.update.emit(diffs);
|
|
41584
41554
|
}
|
|
41585
41555
|
gapVertical(spacing) {
|
|
41586
41556
|
const sorted = this.dataItem.sort((a, b) => a.top - b.top);
|
|
@@ -41604,7 +41574,6 @@ const LsFieldDistribute = class {
|
|
|
41604
41574
|
});
|
|
41605
41575
|
this.dataItem = diffs.map(d => d.data);
|
|
41606
41576
|
this.mutate.emit(diffs);
|
|
41607
|
-
this.update.emit(diffs);
|
|
41608
41577
|
}
|
|
41609
41578
|
gapHorizontal(spacing) {
|
|
41610
41579
|
const sorted = this.dataItem.sort((a, b) => a.top - b.top);
|
|
@@ -41629,7 +41598,6 @@ const LsFieldDistribute = class {
|
|
|
41629
41598
|
});
|
|
41630
41599
|
this.dataItem = diffs.map(d => d.data);
|
|
41631
41600
|
this.mutate.emit(diffs);
|
|
41632
|
-
this.update.emit(diffs);
|
|
41633
41601
|
}
|
|
41634
41602
|
distributeVertical() {
|
|
41635
41603
|
var spacing = this.component.shadowRoot.getElementById('ls-fix-vertical-space');
|
|
@@ -41663,21 +41631,20 @@ const LsFieldDistribute = class {
|
|
|
41663
41631
|
});
|
|
41664
41632
|
this.dataItem = diffs.map(d => d.data);
|
|
41665
41633
|
this.mutate.emit(diffs);
|
|
41666
|
-
this.update.emit(diffs);
|
|
41667
41634
|
}
|
|
41668
41635
|
componentDidLoad() {
|
|
41669
41636
|
attachAllTooltips(this.component.shadowRoot);
|
|
41670
41637
|
}
|
|
41671
41638
|
render() {
|
|
41672
|
-
return (h(Host, { key: '
|
|
41639
|
+
return (h(Host, { key: '9183c6d98eba74df69f024a583940a25c0f7547c' }, h("div", { key: 'efe9718b9b662956d0cf829d687df3d558cdad31', class: 'ls-field-properties-section' }, h("div", { key: '24e5a2d203432ee0b0894a517870a19e6081b9dc', class: 'ls-field-properties-section-text' }, h("p", { key: 'ced15352bbbdd00133d20de812fede32e1c281d6', class: 'ls-field-properties-section-title' }, "Distribution"), h("p", { key: 'a08ae1961bfbc738b1359b7c938ff80ece5ef4fe', class: 'ls-field-properties-section-description' }, "Multi-select fields and evenly space them out")), h("div", { key: 'a720baf91f2917458c47a0c8a2cc91bda6d9d92d', class: 'button-group' }, h("button", { key: 'e2303f2c8324e126ae5d8c5e3db65c6c04498ccc', onClick: () => {
|
|
41673
41640
|
this.distributeVertical();
|
|
41674
|
-
}, "aria-label": "Distribute selected fields vertically.", "data-tooltip": "Distribute selected fields vertically" }, h("ls-icon", { key: '
|
|
41641
|
+
}, "aria-label": "Distribute selected fields vertically.", "data-tooltip": "Distribute selected fields vertically" }, h("ls-icon", { key: 'b3def31389be531f8d93b7a4aba31da1972573e1', name: "field-distribute-vertically" })), h("button", { key: 'fcfd3704ac035ee406b1b5579e9b6dfbf8f7eec0', onClick: () => {
|
|
41675
41642
|
this.distributeHorizontal();
|
|
41676
|
-
}, "aria-label": "Distribute selected fields horizontally.", "data-tooltip": "Distribute selected fields horizontally" }, h("ls-icon", { key: '
|
|
41643
|
+
}, "aria-label": "Distribute selected fields horizontally.", "data-tooltip": "Distribute selected fields horizontally" }, h("ls-icon", { key: 'a8fe7f099ef6002e6459d6e0e85c3abb301f4d58', name: "field-distribute-horizontally" })))), h("div", { key: '2371a9653b583f97ad1df8a45a4145291b20ac21', class: 'ls-field-properties-section' }, h("div", { key: 'a6b4714f995ba5017e0cfb894a40c828676a764d', class: 'ls-field-properties-section-text' }, h("p", { key: 'efa830b42e36555694cd413c7faf85e9c81e4ff2', class: 'ls-field-properties-section-title' }, "Gap"), h("p", { key: 'dfd54671699a6b8840b867a9a9635639a9b801aa', class: 'ls-field-properties-section-description' }, "Define the exact gap between multi-select fields.")), h("div", { key: '7a970651367e27007aaa57af06a1918efbc06889', class: 'input-row' }, h("div", { key: '4494e7585a4f4a41cccd5db632f917946e53a5f7', class: 'input-wrapper', "data-tooltip": "Set vertical gap between selected fields" }, h("ls-icon", { key: 'c4cf75483efe34297a283693413ea91a70dc3965', id: "selectLeadingIcon", name: "field-distribute-vertically" }), h("input", { key: '0480f8f9b0227599fc31658e8799ee999712d37f', type: "number", class: 'has-leading-icon', id: "ls-fix-vertical-space", onChange: e => {
|
|
41677
41644
|
this.gapVertical(parseInt(e.target.value));
|
|
41678
|
-
}, value: '', size: 4, min: 0, max: 9999 })), h("div", { key: '
|
|
41645
|
+
}, value: '', size: 4, min: 0, max: 9999 })), h("div", { key: 'c793ffb33e2892914bb546b8643628dce38f209a', class: 'input-wrapper', "data-tooltip": "Set horizontal gap between selected fields" }, h("ls-icon", { key: '726eda22cf535a5d760df8d5c2443e2a8d20c7f7', id: "selectLeadingIcon", name: "field-distribute-horizontally" }), h("input", { key: 'd064bf24692fb0a6cdb4de546f9166115565b5d5', type: "number", class: 'has-leading-icon', id: "ls-fix-horizontal-space", onChange: e => {
|
|
41679
41646
|
this.gapHorizontal(parseInt(e.target.value));
|
|
41680
|
-
}, value: '', size: 4, min: 0, max: 9999 })))), h("ls-tooltip", { key: '
|
|
41647
|
+
}, value: '', size: 4, min: 0, max: 9999 })))), h("ls-tooltip", { key: 'c699c7d28bc03981a8fdcd9960ce2b81bc7ed2f7', id: "ls-tooltip-master" }), h("slot", { key: 'e2bdf922af96349adfc40efba97dccb434a850eb' })));
|
|
41681
41648
|
}
|
|
41682
41649
|
};
|
|
41683
41650
|
LsFieldDistribute.style = lsFieldDistributeCss();
|
|
@@ -41699,22 +41666,33 @@ const LsFieldFooter = class {
|
|
|
41699
41666
|
mutate;
|
|
41700
41667
|
update;
|
|
41701
41668
|
selectFields;
|
|
41669
|
+
isSingle(dt) {
|
|
41670
|
+
return dt.length === undefined;
|
|
41671
|
+
}
|
|
41672
|
+
isMultiple(dt) {
|
|
41673
|
+
return typeof dt.length === 'number';
|
|
41674
|
+
}
|
|
41675
|
+
getItems() {
|
|
41676
|
+
if (this.isSingle(this.dataItem)) {
|
|
41677
|
+
return [this.dataItem];
|
|
41678
|
+
}
|
|
41679
|
+
return this.dataItem;
|
|
41680
|
+
}
|
|
41702
41681
|
deleteField = () => {
|
|
41703
|
-
this.
|
|
41704
|
-
this.mutate.emit([{ action: 'delete', data: this.dataItem }]);
|
|
41682
|
+
this.mutate.emit(this.getItems().map(di => { return { action: 'delete', data: di }; }));
|
|
41705
41683
|
};
|
|
41706
41684
|
duplicateField = () => {
|
|
41707
|
-
|
|
41708
|
-
|
|
41709
|
-
|
|
41710
|
-
|
|
41711
|
-
|
|
41712
|
-
|
|
41713
|
-
|
|
41714
|
-
|
|
41685
|
+
this.getItems().forEach(current => {
|
|
41686
|
+
const newItem = { ...current, id: btoa('ele' + crypto.randomUUID()) };
|
|
41687
|
+
const newTop = current.top + current.height;
|
|
41688
|
+
if (newTop + current.height < current.pageDimensions.height) {
|
|
41689
|
+
newItem.top = newTop;
|
|
41690
|
+
}
|
|
41691
|
+
this.mutate.emit([{ action: 'create', data: newItem, select: 'clear' }]);
|
|
41692
|
+
});
|
|
41715
41693
|
};
|
|
41716
41694
|
render() {
|
|
41717
|
-
return (h(Host, { key: '
|
|
41695
|
+
return (h(Host, { key: 'b304511650fb8ab792ee4112ce4eb6ecabfad7b1' }, h("div", { key: 'ffb272b2be2e33164600f4751d91df4aabe6a37d', class: 'button-footer' }, h("button", { key: '4186e5559318e08134f5d3d3eef95be7dd277583', class: 'secondary', onClick: () => this.duplicateField() }, h("ls-icon", { key: '421a920a74da3f785236ca4051df988bada70e2d', name: "field-duplicate", size: "1.25rem" }), "Duplicate"), h("button", { key: 'd7f34ff31f29b11d3d1801bdf4d88fe23e8d5c9d', class: 'destructive', onClick: () => this.deleteField() }, h("ls-icon", { key: '91abcc24bf4bea621252a5982442d38a7a36644d', name: "trash", size: "1.25rem", color: 'var(--red-60)' }), "Delete")), h("slot", { key: 'df560039d19466975b12468042f2bfd0a3b81b6f' })));
|
|
41718
41696
|
}
|
|
41719
41697
|
};
|
|
41720
41698
|
LsFieldFooter.style = lsFieldFooterCss();
|
|
@@ -41725,11 +41703,9 @@ const LsFieldFormat = class {
|
|
|
41725
41703
|
constructor(hostRef) {
|
|
41726
41704
|
registerInstance(this, hostRef);
|
|
41727
41705
|
this.mutate = createEvent(this, "mutate", 7);
|
|
41728
|
-
this.update = createEvent(this, "update", 7);
|
|
41729
41706
|
}
|
|
41730
41707
|
dataItem;
|
|
41731
41708
|
mutate;
|
|
41732
|
-
update;
|
|
41733
41709
|
get component() { return getElement(this); }
|
|
41734
41710
|
handleKeyDown = (event) => {
|
|
41735
41711
|
event.stopPropagation();
|
|
@@ -41758,7 +41734,6 @@ const LsFieldFormat = class {
|
|
|
41758
41734
|
});
|
|
41759
41735
|
this.dataItem = diffs.map(d => d.data);
|
|
41760
41736
|
this.mutate.emit(diffs);
|
|
41761
|
-
this.update.emit(diffs);
|
|
41762
41737
|
}
|
|
41763
41738
|
componentDidLoad() {
|
|
41764
41739
|
attachAllTooltips(this.component.shadowRoot);
|
|
@@ -41773,31 +41748,31 @@ const LsFieldFormat = class {
|
|
|
41773
41748
|
return { isSame: allFontsSame && allFontSizesSame, fontName: allFontsSame ? firstFontName : 'mixed', fontSize: allFontSizesSame ? firstFontSize : 'mixed' };
|
|
41774
41749
|
};
|
|
41775
41750
|
render() {
|
|
41776
|
-
return (h(Host, { key: '
|
|
41751
|
+
return (h(Host, { key: '2febff4877dec0adfb5d71c5f98064739e1cb048', onKeyDown: this.handleKeyDown, onKeyUp: this.handleKeyUp }, this.dataItem && this.dataItem.length > 1 && (h("div", { key: '40ecbca3f11893001206f172fdcc095dcbb8cc80', class: 'ls-field-format-bar' }, h("div", { key: '50365c3d96ece24129314ed7362a12732c90adf8', class: "input-wrapper", "data-tooltip": "Font Family" }, h("ls-icon", { key: '7abb18b79ce54cd10d03ae2b6bf7755210c87e75', id: "selectLeadingIcon", name: "typeface" }), h("select", { key: '10dc6add8b33c982dec5807a711bb9c6bab69d65', id: "ls-toolbar-font-select", onChange: input => {
|
|
41777
41752
|
this.alter({ fontName: input.target.value });
|
|
41778
|
-
}, class: 'has-leading-icon' }, h("option", { key: '
|
|
41753
|
+
}, class: 'has-leading-icon' }, h("option", { key: '095097496e0a5570943ad483b628e35aae980ae7', disabled: true, selected: this.allElementsSame()?.fontName === 'mixed', value: 'mixed' }, "Mixed"), h("option", { key: 'bdec564e84e8856ba2a76a954c8619e265ace754', value: "arial" }, "Arial"), h("option", { key: 'fbd43ae7332189f128c56f92eb2533733680cd80', value: "liberation sans" }, "Liberation Sans"), h("option", { key: 'd0335e99d771789f722aaadf4230ccc31ea8a5df', value: "courier" }, "Courier"), h("option", { key: 'd9cc11757352ab6be9878b88b1c549c791c82779', value: "helvetica" }, "Helvetica"), h("option", { key: '3375f3d30fddd0d7de6b5b7f2ab9febd23166680', value: "verdana" }, "Verdana")), h("ls-icon", { key: '5188818c50510b4cc8da9bd7c98cde7f5b505642', id: "selectorIcon", name: "selector" })), h("div", { key: '4db7c26767369994c1d95100fc5f21751efd84b0', class: "input-wrapper", "data-tooltip": "Font Size" }, h("ls-icon", { key: 'e8c0eee85932d18bc845769e1e8ef6d5747cc347', id: "selectLeadingIcon", name: "typesize" }), h("input", { key: 'a3d24673e0a2dec7b6b1d54002c4cfd7015323d0', id: "ls-toolbar-font-size", type: 'number', min: "4", value: this.allElementsSame()?.fontSize, onChange: input => {
|
|
41779
41754
|
if (input.target.value === '')
|
|
41780
41755
|
return;
|
|
41781
41756
|
this.alter({ fontSize: input.target.value });
|
|
41782
|
-
}, class: 'has-leading-icon' })), h("div", { key: '
|
|
41757
|
+
}, class: 'has-leading-icon' })), h("div", { key: '118011caf609420d103dca5aedec499d0303eeda', class: 'button-group' }, h("button", { key: '5eed2838a98ede95838bf3133f8642b6ff60aecb', onClick: () => {
|
|
41783
41758
|
this.alter({ align: 'left' });
|
|
41784
|
-
}, "data-tooltip": "Align Text Left" }, h("ls-icon", { key: '
|
|
41759
|
+
}, "data-tooltip": "Align Text Left" }, h("ls-icon", { key: 'a06ba7d34c0ae7f44b02434b5deb1258d55f5a83', name: "menu-alt-2" })), h("button", { key: 'b9e6efe9f6320301386f64b8b1256eea01a142ab', onClick: () => {
|
|
41785
41760
|
this.alter({ align: 'center' });
|
|
41786
|
-
}, "data-tooltip": "Align Text Center" }, h("ls-icon", { key: '
|
|
41761
|
+
}, "data-tooltip": "Align Text Center" }, h("ls-icon", { key: 'bd8a286ea76add2e60093a245869d40785b6e2d4', name: "menu-alt-5" })), h("button", { key: '81cb6def72ee8d51e455291f93d349dc5eed4315', onClick: () => {
|
|
41787
41762
|
this.alter({ align: 'right' });
|
|
41788
|
-
}, "data-tooltip": "Align Text Right" }, h("ls-icon", { key: '
|
|
41763
|
+
}, "data-tooltip": "Align Text Right" }, h("ls-icon", { key: 'f11af16c93bad521bba0e1b4c0f4d5343e42d853', name: "menu-alt-3" }))))), this.dataItem && this.dataItem.length === 1 && (h("div", { key: '642496b309e0ea729063daa7f90d665a4b79e622', class: 'ls-field-format-bar' }, h("div", { key: '058d36a9258d3a839aecfd6e6a263fc3fa86d637', class: "input-wrapper", "data-tooltip": "Font Family" }, h("ls-icon", { key: '757aecdbe113df3391046735295e94eb762bfa7a', id: "selectorIcon", name: "selector" }), h("ls-icon", { key: '7dbc085ec4583952acc129d7bf90d0454a9593db', id: "selectLeadingIcon", name: "typeface" }), h("select", { key: '7bd9b7527286ff946aeef9ef6822f63efbfb51d9', id: "ls-toolbar-font-select", onChange: input => {
|
|
41789
41764
|
this.alter({ fontName: input.target.value });
|
|
41790
|
-
}, class: 'has-leading-icon' }, h("option", { key: '
|
|
41765
|
+
}, class: 'has-leading-icon' }, h("option", { key: '8360b7525a706d83fbb71c6360d720ecc7665c9f', value: "arial" }, "Arial"), h("option", { key: 'bb4b4aba366ed7b28cd30c8d09f6955443f21547', value: "liberation sans" }, "Liberation Sans"), h("option", { key: '1a25159c21514bbf65bccb351d366a8d8ddc4d6c', value: "courier" }, "Courier"), h("option", { key: 'f63e8cb76ea72af5ad5d2e947cbc34ef13cbf818', value: "helvetica" }, "Helvetica"), h("option", { key: 'f5c81a38eacce8c0e059a7b53d7c8b8b7f24524d', value: "verdana" }, "Verdana"))), h("div", { key: '9dd75e7f634664d54f227f8a14c02776ae77baa6', class: "input-wrapper", "data-tooltip": "Font Size" }, h("ls-icon", { key: '68b63c5e021facce3e62cd1e8dc6b61f28fb5be2', id: "selectLeadingIcon", name: "typesize" }), h("input", { key: '444572a1f8620c21e03570c5efbbde5938fb0882', id: "ls-toolbar-font-size", type: "number", min: "4", size: 4, value: this.dataItem[0].fontSize, onChange: input => {
|
|
41791
41766
|
if (input.target.value === '')
|
|
41792
41767
|
return;
|
|
41793
41768
|
this.alter({ fontSize: input.target.value });
|
|
41794
|
-
}, class: 'has-leading-icon' })), h("div", { key: '
|
|
41769
|
+
}, class: 'has-leading-icon' })), h("div", { key: '1e44265fe1d9584b064dd80cd1c99efd631ee05b', class: 'button-group' }, h("button", { key: '9eb6dcba91bc226f8e8b0096fb8e3195058710ff', onClick: () => {
|
|
41795
41770
|
this.alter({ align: 'left' });
|
|
41796
|
-
}, "data-tooltip": "Align Text Left" }, h("ls-icon", { key: '
|
|
41771
|
+
}, "data-tooltip": "Align Text Left" }, h("ls-icon", { key: '20414ba17f91b462979b78017d8af7180a33c34b', name: "menu-alt-2" })), h("button", { key: '6321ba075e9059a2c1ef3a4b052783686b265f03', onClick: () => {
|
|
41797
41772
|
this.alter({ align: 'center' });
|
|
41798
|
-
}, "data-tooltip": "Align Text Center" }, h("ls-icon", { key: '
|
|
41773
|
+
}, "data-tooltip": "Align Text Center" }, h("ls-icon", { key: '55cfc3f4653c6ca86d5fd7dbfe57c1076363552b', name: "menu-alt-5" })), h("button", { key: '35f0b7b03c2293f48f84bb011833be7514de46f7', onClick: () => {
|
|
41799
41774
|
this.alter({ align: 'right' });
|
|
41800
|
-
}, "data-tooltip": "Align Text Right" }, h("ls-icon", { key: '
|
|
41775
|
+
}, "data-tooltip": "Align Text Right" }, h("ls-icon", { key: '1d389afb29a9f96cb0ffe16bf129b3e5e7e153e9', name: "menu-alt-3" }))))), h("ls-tooltip", { key: '1453c1f8b125c9caf780bdcfb378878fd2cbbe27', id: "ls-tooltip-master" })));
|
|
41801
41776
|
}
|
|
41802
41777
|
static get watchers() { return {
|
|
41803
41778
|
"dataItem": ["selectFieldsHandler"]
|
|
@@ -41811,12 +41786,10 @@ const LsFieldPlacement = class {
|
|
|
41811
41786
|
constructor(hostRef) {
|
|
41812
41787
|
registerInstance(this, hostRef);
|
|
41813
41788
|
this.mutate = createEvent(this, "mutate", 7);
|
|
41814
|
-
this.update = createEvent(this, "update", 7);
|
|
41815
41789
|
}
|
|
41816
41790
|
get component() { return getElement(this); }
|
|
41817
41791
|
dataItem;
|
|
41818
41792
|
mutate;
|
|
41819
|
-
update;
|
|
41820
41793
|
isSingle(dt) {
|
|
41821
41794
|
return dt.length === undefined;
|
|
41822
41795
|
}
|
|
@@ -41841,13 +41814,11 @@ const LsFieldPlacement = class {
|
|
|
41841
41814
|
});
|
|
41842
41815
|
this.dataItem = diffs.map(d => d.data);
|
|
41843
41816
|
this.mutate.emit(diffs);
|
|
41844
|
-
this.update.emit(diffs);
|
|
41845
41817
|
}
|
|
41846
41818
|
else {
|
|
41847
41819
|
const singleDiff = { action: 'update', data: { ...this.dataItem, ...diff } };
|
|
41848
41820
|
this.dataItem = singleDiff.data;
|
|
41849
41821
|
this.mutate.emit([singleDiff]);
|
|
41850
|
-
this.update.emit([singleDiff]);
|
|
41851
41822
|
}
|
|
41852
41823
|
}
|
|
41853
41824
|
center() {
|
|
@@ -41866,7 +41837,7 @@ const LsFieldPlacement = class {
|
|
|
41866
41837
|
attachAllTooltips(this.component.shadowRoot);
|
|
41867
41838
|
}
|
|
41868
41839
|
render() {
|
|
41869
|
-
return (h(Host, { key: '
|
|
41840
|
+
return (h(Host, { key: 'c634a96d87d02843dbe72f677aa6e7b14694f581' }, this.isMultiple(this.dataItem) && (h("div", { key: '044ff815e3f26547f78bb2482e7e47b796066b3e', class: 'ls-field-properties-section' }, h("div", { key: 'cf68b63b5038dc0dcd7b415b14753772768cb20e', class: 'ls-field-properties-section-text' }, h("p", { key: '309b54d667bcfcd0d82fd0601836d9020bc1c549', class: 'ls-field-properties-section-title' }, "Location"), h("p", { key: '933ef9c922d40f5ec67369d2935c7470fc7a1d98', class: 'ls-field-properties-section-description' }, "Use coordinates to move your fields on the page")), h("div", { key: 'fad7b3df23e164bc0ac188e795a4cd5c34b21035', class: 'input-row' }, h("div", { key: '42bd70ecfbeee0532ab121ed3313450c65b2ec8b', class: 'input-wrapper' }, h("ls-icon", { key: '4bf6f52036de2c329cd3d1ad286fa01a4ec8f990', id: "selectLeadingIcon", name: "x-letter" }), h("input", { key: 'd81850eb0e5b7a7f95c36625a77a1410cd880ce7', type: "number", class: 'has-leading-icon', aria: "top-location", id: "top-location", onChange: e => this.alter({ left: e.target.value }) })), h("div", { key: '9ac1ceae38f27ccd59da01eda945fceedd267c0d', class: 'input-wrapper' }, h("ls-icon", { key: 'd967fac0657315ad403ef0068beab8d69df89cd7', id: "selectLeadingIcon", name: "y" }), h("input", { key: '58250555187ab6fab6e646c5b491e02126eb1d94', type: "number", class: 'has-leading-icon', aria: "left-location", id: "left-location", onChange: e => this.alter({ top: e.target.value }) }))))), this.isSingle(this.dataItem) && (h("div", { key: '5eb0b5f2e221377d12cb9c4dae3e62dfa375f56a', class: 'field-set' }, h("div", { key: '074e855bae1efabd0608f679b17f744c29d2c13c', class: 'ls-field-properties-section' }, h("div", { key: 'bbb011ac0c0e891254a356fcb27768a5f12ac551', class: 'ls-field-properties-section-text' }, h("p", { key: '6bf7a08225bf1ea325781fd9e5ad353d268a93d3', class: 'ls-field-properties-section-title' }, "Alignment"), h("p", { key: '28e764426c670d4d77ade31d225acf06e948fb96', class: 'ls-field-properties-section-description' }, "Align your Fields relative to the page or multi-select and align then to each other.")), h("div", { key: '5279c5a19011d2e3e10027d5ed252fe14b3c78a7', class: 'multi-button-group-row' }, h("div", { key: '8e89191e1f792dd1ee2aaee7b36730232d573c4e', class: 'button-group' }, h("button", { key: '3b3f60acb8a82eb8a551d52fae1e7c9162fefc2e', onClick: () => { this.alter({ left: 0 }); }, "data-tooltip": "Align Left" }, h("ls-icon", { key: '4e228bb4c09c9b00bab056bb496c12572f6b151a', name: "field-alignment-left" })), h("button", { key: '7a05f93a649be5f222c498edbbb93e32b725537c', onClick: () => { this.alter({ left: this.center() }); }, "data-tooltip": "Align Center" }, h("ls-icon", { key: 'b7a1d02377861f25d78f2d69586a5cf5b021ac5e', name: "field-alignment-centre" })), h("button", { key: 'ad8bc98aa32bea2be3da0d8374a5c8fd84448378', onClick: () => { this.alter({ left: this.right() }); }, "data-tooltip": "Align Right" }, h("ls-icon", { key: '7ea2cb0d65a64050cac2e06746a3044567f8ef30', name: "field-alignment-right" }))), h("div", { key: '276a46d5023fb0581c68b995f1ba990049b1707f', class: 'button-group' }, h("button", { key: '639559ce5ed812963a3c44e10d3afcc3f0b8ddd2', onClick: () => this.alter({ top: 0 }), "data-tooltip": "Align Top" }, h("ls-icon", { key: '699da10bf15c17cb15c4557aad53fbb8fed66852', name: "field-alignment-top" })), h("button", { key: '1b39193438fa81f8a49a8f312762060614de60df', onClick: () => { this.alter({ top: this.middle() }); }, "data-tooltip": "Align Middle" }, h("ls-icon", { key: 'ce845282439d102477a1a05910cd6bd15775942a', name: "field-alignment-middle" })), h("button", { key: 'b162767b02693c5961dfc84fafdcfb85912ea09e', onClick: () => { this.alter({ top: this.bottom() }); }, "data-tooltip": "Align Bottom" }, h("ls-icon", { key: '4ace10a21e3264b4236ff3618d4db5129bc6329a', name: "field-alignment-bottom" }))))), h("div", { key: 'e5f446913a0790e9e048c1343507b64c17572790', class: 'ls-field-properties-section' }, h("div", { key: '75d1af4c23dd81ee0c4db9cd92752c8d27cde953', class: 'ls-field-properties-section-text' }, h("p", { key: 'edb2296be70eb3daebb56266e421592957b6c37b', class: 'ls-field-properties-section-title' }, "Location"), h("p", { key: '6315f4791e5a5ad707dba570417308e65b4e9a9e', class: 'ls-field-properties-section-description' }, "Use coordinates to move your fields on the page")), h("div", { key: '2c9dfe5c74dcad282fd216d3e300571722204a2a', class: 'input-row' }, h("div", { key: '6562ff2e2d84f36f709b69fd2f5b09eba8f36bc8', class: 'input-wrapper' }, h("ls-icon", { key: 'e845b49ad34a27e84bbeb33ab8bcd87d80fdda29', id: "selectLeadingIcon", name: "x-letter" }), h("input", { key: 'ff42359ab105d12a8a6580972e0c974714c64a87', type: "number", class: 'has-leading-icon', aria: "top-location", id: "top-location", value: this.dataItem?.left, onChange: e => this.alter({ left: e.target.value }) })), h("div", { key: '7e6d15ebe386d96d0f13b555f3bdf917e1fd0831', class: 'input-wrapper' }, h("ls-icon", { key: 'a98e37e9fa71467ab4d13cbd8d38357311f1f225', id: "selectLeadingIcon", name: "y" }), h("input", { key: 'ad3c14a161a8f7624f6afe122f65f0140db17391', type: "number", class: 'has-leading-icon', aria: "left-location", id: "left-location", value: this.dataItem?.top, onChange: e => this.alter({ top: e.target.value }), width: "30" })))), h("div", { key: 'cbe1a006c7963f3848f86321f5938426c8a6f066', class: 'ls-field-properties-section' }, h("div", { key: '661acc6cbc0a5e51bed406e20746e0b290af3768', class: 'ls-field-properties-section-text' }, h("p", { key: 'a0d739ef2e67b863340f091322f233594938a1b6', class: 'ls-field-properties-section-title' }, "Distribution"), h("p", { key: '1991851f81de9de4431fd61d84e6b51eb484f96b', class: 'ls-field-properties-section-description' }, "Multi-select fields and evenly space them out")), h("div", { key: '8d44dfaf9fb36a3353e678fcda20d6e521bedcc0', class: 'button-group' }, h("button", { key: '169c38f14e14d0a7e35742a878ff992f1203265c', disabled: true, "data-tooltip": "Select multiple Fields to to access distribution controls" }, h("ls-icon", { key: '602ffcf4bc0abc0f78b841071833387a3b3db2ea', name: "field-distribute-vertically" })), h("button", { key: '81cbf088282c93b47e5aa367ce38fbea83a86b28', disabled: true, "data-tooltip": "Select multiple Fields to to access distribution controls" }, h("ls-icon", { key: '9b45920bd267d4b846475d3cd5196c27310d3482', name: "field-distribute-horizontally" })))), h("div", { key: '7ee0dbb4a04f2c85231c7a1e2abea068158dc679', class: 'ls-field-properties-section' }, h("div", { key: 'c9ad0439b1497431f6b6de46aad5edeee84842eb', class: 'ls-field-properties-section-text' }, h("p", { key: '50de6dcd1cad58aa989030b37aeb0e997963db05', class: 'ls-field-properties-section-title' }, "Gap"), h("p", { key: '7add4b16b05b484c4033309286ad1eae9770de45', class: 'ls-field-properties-section-description' }, "Define the exact gap between multi-select fields.")), h("div", { key: '529a5c5a0f098f4f46a0025836ec75cf5553336a', class: 'input-row' }, h("div", { key: '2784028e38a8bcac7e0527b8fe2a727a35204056', class: 'input-wrapper', "data-tooltip": "Select multiple Fields to to access gap controls" }, h("ls-icon", { key: '1daf9dba08891570496a039667a007d7b0f6c113', id: "selectLeadingIconDisabled", name: "field-distribute-vertically" }), h("input", { key: '8fbba7e8ac95e7b060003d735021a3fcfe4ee1fe', type: "number", value: "0", class: 'has-leading-icon', aria: "vertical-gap", id: "vertical-gap", disabled: true })), h("div", { key: 'dafd6d4add86fb81ef89b57c1761dd685577924b', class: 'input-wrapper', "data-tooltip": "Select multiple Fields to to access gap controls" }, h("ls-icon", { key: '45e20ce1cb261cfbaa3566bf407affb6d2630dd0', id: "selectLeadingIconDisabled", name: "field-distribute-horizontally" }), h("input", { key: 'a8711242e79a07b3a31eb53464304607dbb45607', type: "number", value: "0", class: 'has-leading-icon', aria: "horizontal-gap", id: "horizontal-gap", disabled: true })))))), h("ls-tooltip", { key: 'e852290e234a73d02f5307dab93b5c94ff401c83', id: "ls-tooltip-master" })));
|
|
41870
41841
|
}
|
|
41871
41842
|
};
|
|
41872
41843
|
LsFieldPlacement.style = lsFieldPlacementCss();
|
|
@@ -41926,12 +41897,10 @@ const LsFieldPropertiesAdvanced = class {
|
|
|
41926
41897
|
constructor(hostRef) {
|
|
41927
41898
|
registerInstance(this, hostRef);
|
|
41928
41899
|
this.mutate = createEvent(this, "mutate", 7);
|
|
41929
|
-
this.update = createEvent(this, "update", 7);
|
|
41930
41900
|
}
|
|
41931
41901
|
dataItem;
|
|
41932
41902
|
expanded = false;
|
|
41933
41903
|
mutate;
|
|
41934
|
-
update;
|
|
41935
41904
|
isSingle(dt) {
|
|
41936
41905
|
return dt.length === undefined;
|
|
41937
41906
|
}
|
|
@@ -41957,7 +41926,6 @@ const LsFieldPropertiesAdvanced = class {
|
|
|
41957
41926
|
diffs = [{ action: 'update', data: { ...this.dataItem, ...diff } }];
|
|
41958
41927
|
}
|
|
41959
41928
|
if (bounceDelay === 0) {
|
|
41960
|
-
this.update.emit(diffs);
|
|
41961
41929
|
this.mutate.emit(diffs);
|
|
41962
41930
|
}
|
|
41963
41931
|
else {
|
|
@@ -41969,7 +41937,6 @@ const LsFieldPropertiesAdvanced = class {
|
|
|
41969
41937
|
if (this.titletimer)
|
|
41970
41938
|
clearTimeout(this.titletimer);
|
|
41971
41939
|
this.titletimer = setTimeout(() => {
|
|
41972
|
-
this.update.emit(diffs);
|
|
41973
41940
|
this.mutate.emit(diffs);
|
|
41974
41941
|
}, delay);
|
|
41975
41942
|
}
|
|
@@ -41983,10 +41950,10 @@ const LsFieldPropertiesAdvanced = class {
|
|
|
41983
41950
|
return '';
|
|
41984
41951
|
}
|
|
41985
41952
|
render() {
|
|
41986
|
-
return (h(Host, { key: '
|
|
41953
|
+
return (h(Host, { key: 'e9ac5dd173d35533caa4cd5db2f49b39839619ba' }, h("div", { key: 'af379f38f2482561d4f9ad20261ba2283b902084', class: 'expand-fields-row', onClick: () => (this.expanded = !this.expanded) }, h("ls-icon", { key: 'a512c02d85d63df763ba2fe7c20ef235f1c1ff5e', name: this.expanded ? 'expand' : 'collapse', size: "1.25rem", solid: true }), h("p", { key: '4e5fd01f51c5afe298712e0335b3aba3aa1d703c' }, "Advanced Properties")), this.expanded && (h("div", { key: '1bf64e8cad73f6a2c1eaae417b33199d050b3313', class: 'field-set' }, h("ls-props-section", { key: '909312980807fd6ca0919147e6e4739f0b3ec44e', sectionTitle: "Field Order", sectionDescription: "Determines what order fields will be filled in by the user" }, h("input", { key: '4f970be565a2a38076def87d0c1b21db197ba9ba', value: this.getValue('fieldOrder'), type: "number", placeholder: "eg. 1", onInput: e => {
|
|
41987
41954
|
console.log(e);
|
|
41988
41955
|
this.alter({ fieldOrder: e.target.value }, 100);
|
|
41989
|
-
}, onChange: () => { console.log('onchange'); } })), h("ls-props-section", { key: '
|
|
41956
|
+
}, onChange: () => { console.log('onchange'); } })), h("ls-props-section", { key: 'd8aebb59d99983d424b4aceb9f1c9c7993a73f74', sectionTitle: "Ref. Name" }, h("input", { key: 'd685a14ca825dc2937199d9796406ff1c3e3c170', value: this.getValue('link'), placeholder: "eg. checkbox group", onInput: e => this.alter({ link: e.target.value }, 300) })), h("ls-props-section", { key: 'b8f6177da6587e0cde03e4e337241aa90bba900d', sectionTitle: "Link Type", sectionDescription: "Determines in what way this field is linked to other fields" }, h("select", { key: 'c5da59c1417b54ee5df7569fb5ba1f3fe7ccdbe5', onChange: e => this.alter({ linkType: e.target.value }), name: "Link Field", "aria-label": "Link Field" }, h("option", { key: '710d749eb5e84d8366b020d2ef941e4325aa84e7', value: "0", selected: this.getValue('linkType') === '0' }, "None"), h("option", { key: '44f2fb1516921a1b9b52597e64106ace62bd5093', value: "1", selected: this.getValue('linkType') === '1' }, "One of a group (e.g. select one checkbox)"), h("option", { key: '85797cf5c3e386a6d5666c786c9df90b4634dd4f', value: "2", selected: this.getValue('linkType') === '2' }, "Add to a total"), h("option", { key: '4d6280c6fb0b674ece811c9b211ce9ad21262b64', value: "3", selected: this.getValue('linkType') === '3' }, "Make this conditional upon..."))), h("ls-props-section", { key: '72897363a045674a9653588cf5a0903ede05eff2', sectionTitle: "Link Value", sectionDescription: "Fields with the same Link Value will be linked together" }, h("input", { key: 'b3a0bfd715ea6d402072e828baf20022b562992c', value: this.getValue('logicAction'), width: "30", placeholder: "eg. checkbox group", onChange: e => this.alter({ logicAction: e.target.value }) }))))));
|
|
41990
41957
|
}
|
|
41991
41958
|
};
|
|
41992
41959
|
LsFieldPropertiesAdvanced.style = lsFieldPropertiesAdvancedCss();
|
|
@@ -42173,7 +42140,7 @@ const LsFieldPropertiesMultiple = class {
|
|
|
42173
42140
|
border: `1px solid ${defaultRolePalette[this.allSignersSame().signer % 100].s60}`,
|
|
42174
42141
|
color: defaultRolePalette[this.allSignersSame().signer % 100].s60,
|
|
42175
42142
|
background: defaultRolePalette[this.allSignersSame().signer % 100].s10,
|
|
42176
|
-
} }, h("ls-icon", { key: '7bdd33ecf47ff7f282031091f06d7cde704819da', name: getFieldIcon(this.allElementsSame().elementType), size: "1.25rem" })), h("p", { key: 'b1d773176ea02bd27d46cea0c5b997ebe5c575fc', class: 'ls-field-type-name' }, this.dataItem.length, " ", this.allElementsSame().elementType, " ", 'Fields')))), h("div", { key: '398a8ddf0fdb5466baf13d3185746d4515bf8de6', class: 'ls-field-properties-section row' }, h("div", { key: '2777add4b21cefd15d430f0a64cd4888e53569ca', class: 'ls-field-properties-section-text' }, h("p", { key: '91672c9039cc267bbfe5b6c82ec1b415028d16ba', class: 'ls-field-properties-section-title' }, "Required Field")), h("ls-toggle", { key: 'e1581cbd990fd085f9164abf3ecaae4f608eaf70', onValueChange: (ev) => this.alter({ optional: !ev.detail }), checked: !this.allFieldsOptional().optional, indeterminate: this.allFieldsOptional().isSame === false })), h("div", { key: '654f98a2b3fdbfc1f75ebbc6fdcd4924c34d0f77', class: 'ls-field-properties-section' }, h("div", { key: 'c8379e6ac365ee97c77a2fc62f52691386e9e9fc', class: 'ls-field-properties-section-text' }, h("p", { key: '927458b6483aca60507bb384c6b8183e64fa0560', class: 'ls-field-properties-section-title' }, "Field Label"), h("p", { key: '6c26748b388121507b19d8a83fdaf82f5f461bbb', class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), h("input", { key: '23309345964c6cabdf7342b669eebec4b3506363', value: this.allLabelsSame().label, onInput: (e) => this.alter({ label: e.target.value }), width: "30", placeholder: "eg. Sign Here" }))), h("div", { key: '81fb6ba5642271ef254e73acc510ac757f647e6c', class: 'field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: 'c24eefb1f599624eaa6b6fee9b9c938a99f697f8', dataItem: this.dataItem }), h("ls-field-size", { key: '6fd636331dd35bf6b02ea2769c88864773a67ae6', dataItem: this.dataItem })), h("div", { key: '88875c4d8fe159a136ad39429be909f4cd25d620', class: 'field-set', slot: "placement" }, h("ls-field-alignment", { key: '8e9601b8157a65ed12dcde1e5a76f9234b111137', dataItem: this.dataItem }), h("ls-field-placement", { key: '349b804d481e72abb977b0b35ed475c679be70cc', dataItem: this.dataItem }), h("ls-field-distribute", { key: 'c0611739c68d01c64e9b74c2ff0e8a48758b4730', dataItem: this.dataItem }))), h("ls-field-footer", { key: '
|
|
42143
|
+
} }, h("ls-icon", { key: '7bdd33ecf47ff7f282031091f06d7cde704819da', name: getFieldIcon(this.allElementsSame().elementType), size: "1.25rem" })), h("p", { key: 'b1d773176ea02bd27d46cea0c5b997ebe5c575fc', class: 'ls-field-type-name' }, this.dataItem.length, " ", this.allElementsSame().elementType, " ", 'Fields')))), h("div", { key: '398a8ddf0fdb5466baf13d3185746d4515bf8de6', class: 'ls-field-properties-section row' }, h("div", { key: '2777add4b21cefd15d430f0a64cd4888e53569ca', class: 'ls-field-properties-section-text' }, h("p", { key: '91672c9039cc267bbfe5b6c82ec1b415028d16ba', class: 'ls-field-properties-section-title' }, "Required Field")), h("ls-toggle", { key: 'e1581cbd990fd085f9164abf3ecaae4f608eaf70', onValueChange: (ev) => this.alter({ optional: !ev.detail }), checked: !this.allFieldsOptional().optional, indeterminate: this.allFieldsOptional().isSame === false })), h("div", { key: '654f98a2b3fdbfc1f75ebbc6fdcd4924c34d0f77', class: 'ls-field-properties-section' }, h("div", { key: 'c8379e6ac365ee97c77a2fc62f52691386e9e9fc', class: 'ls-field-properties-section-text' }, h("p", { key: '927458b6483aca60507bb384c6b8183e64fa0560', class: 'ls-field-properties-section-title' }, "Field Label"), h("p", { key: '6c26748b388121507b19d8a83fdaf82f5f461bbb', class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), h("input", { key: '23309345964c6cabdf7342b669eebec4b3506363', value: this.allLabelsSame().label, onInput: (e) => this.alter({ label: e.target.value }), width: "30", placeholder: "eg. Sign Here" }))), h("div", { key: '81fb6ba5642271ef254e73acc510ac757f647e6c', class: 'field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: 'c24eefb1f599624eaa6b6fee9b9c938a99f697f8', dataItem: this.dataItem }), h("ls-field-size", { key: '6fd636331dd35bf6b02ea2769c88864773a67ae6', dataItem: this.dataItem })), h("div", { key: '88875c4d8fe159a136ad39429be909f4cd25d620', class: 'field-set', slot: "placement" }, h("ls-field-alignment", { key: '8e9601b8157a65ed12dcde1e5a76f9234b111137', dataItem: this.dataItem }), h("ls-field-placement", { key: '349b804d481e72abb977b0b35ed475c679be70cc', dataItem: this.dataItem }), h("ls-field-distribute", { key: 'c0611739c68d01c64e9b74c2ff0e8a48758b4730', dataItem: this.dataItem }))), h("ls-field-footer", { key: 'ac9eb4498ff3fe01a637f6efe793f1ed3fc8bc1e', dataItem: this.dataItem }), h("slot", { key: 'c7325b861d666c153aa043980901761a90f74a23' })));
|
|
42177
42144
|
}
|
|
42178
42145
|
};
|
|
42179
42146
|
LsFieldPropertiesMultiple.style = lsFieldPropertiesMultipleCss();
|
|
@@ -42223,12 +42190,10 @@ const LsFieldSize = class {
|
|
|
42223
42190
|
constructor(hostRef) {
|
|
42224
42191
|
registerInstance(this, hostRef);
|
|
42225
42192
|
this.mutate = createEvent(this, "mutate", 7);
|
|
42226
|
-
this.update = createEvent(this, "update", 7);
|
|
42227
42193
|
}
|
|
42228
42194
|
get component() { return getElement(this); }
|
|
42229
42195
|
dataItem;
|
|
42230
42196
|
mutate;
|
|
42231
|
-
update;
|
|
42232
42197
|
// Send one or more mutations up the chain
|
|
42233
42198
|
// The source of the chain fires the mutation
|
|
42234
42199
|
alter(diff) {
|
|
@@ -42237,13 +42202,12 @@ const LsFieldSize = class {
|
|
|
42237
42202
|
});
|
|
42238
42203
|
this.dataItem = diffs.map(d => d.data);
|
|
42239
42204
|
this.mutate.emit(diffs);
|
|
42240
|
-
this.update.emit(diffs);
|
|
42241
42205
|
}
|
|
42242
42206
|
componentDidLoad() {
|
|
42243
42207
|
attachAllTooltips(this.component.shadowRoot);
|
|
42244
42208
|
}
|
|
42245
42209
|
render() {
|
|
42246
|
-
return (h(Host, { key: '
|
|
42210
|
+
return (h(Host, { key: 'dbe299779d6c711ab4c573046c0a28c85a031c00' }, h("div", { key: 'fc9be902cb356590f7c620625f1f47fabb2cf67c', class: 'ls-field-properties-section' }, h("div", { key: '5f1ddddb7199cea1285d0ea4d1bf9a59a20ae6d9', class: 'ls-field-properties-section-text' }, h("p", { key: 'b19c54d239899f6185962b59e9c92294fe0afa54', class: 'ls-field-properties-section-title' }, "Scale and Resize"), h("p", { key: 'fc2b7c80220327a722e4086f9a5039aa80cb4860', class: 'ls-field-properties-section-description' }, "Multi-select fields and match their dimensions")), h("div", { key: '167632c88d912240869b9701870e90eb48e69fd4', class: 'button-group' }, h("button", { key: '8e70a0edde1bc68f61f5425d08e5e8640195bf23', onClick: () => this.alter({ width: this.dataItem[0].width, height: this.dataItem[0].height }), "aria-label": "Make selected fields the same height and width as the first selected field.", "data-tooltip": "Make selected fields the same height and width as the first selected field" }, h("ls-icon", { key: 'faa63bf4691da3cebcddae34b3677e141ff4db9a', name: "field-scale" })), h("button", { key: 'fc352bd9467fd9aea4f8cf6c5add70f858d53988', "aria-label": "Make selected fields the same width as the first selected field", onClick: () => this.alter({ width: this.dataItem[0].width }), "data-tooltip": "Make selected fields the same width as the first selected field" }, h("ls-icon", { key: '3a477a26e144a72081bfb0522a84dcee77a396c9', name: "field-match-width" })), h("button", { key: '1c9af90f2e4936a3b1f72dbde18a258b8ec6fce3', onClick: () => this.alter({ height: this.dataItem[0].height }), "aria-label": "Make selected fields the same height as the first selected field.", "data-tooltip": "Make selected fields the same height as the first selected field" }, h("ls-icon", { key: 'e09a2f40e7bc67276fe72b2f79a841509d565818', name: "field-match-height" })))), h("slot", { key: 'adf05acf2c42816ba4afc209dd28a7020f4ef70d' }), h("ls-tooltip", { key: 'f9216b38ca5b304c81ea41fb24ef63b956a8712d', id: "ls-tooltip-master" })));
|
|
42247
42211
|
}
|
|
42248
42212
|
};
|
|
42249
42213
|
LsFieldSize.style = lsFieldSizeCss();
|
|
@@ -50945,7 +50909,6 @@ const LsParticipantCard = class {
|
|
|
50945
50909
|
constructor(hostRef) {
|
|
50946
50910
|
registerInstance(this, hostRef);
|
|
50947
50911
|
this.mutate = createEvent(this, "mutate", 7);
|
|
50948
|
-
this.update = createEvent(this, "update", 7);
|
|
50949
50912
|
this.opened = createEvent(this, "opened", 7);
|
|
50950
50913
|
this.addParticipant = createEvent(this, "addParticipant", 7);
|
|
50951
50914
|
}
|
|
@@ -50955,7 +50918,6 @@ const LsParticipantCard = class {
|
|
|
50955
50918
|
editable = false;
|
|
50956
50919
|
template;
|
|
50957
50920
|
mutate;
|
|
50958
|
-
update;
|
|
50959
50921
|
opened;
|
|
50960
50922
|
// Send one or more mutations up the chain
|
|
50961
50923
|
// The source of the chain fires the mutation
|
|
@@ -50971,15 +50933,12 @@ const LsParticipantCard = class {
|
|
|
50971
50933
|
this.labeltimer = setTimeout(() => {
|
|
50972
50934
|
const diffs = [{ action: 'update', data }];
|
|
50973
50935
|
this.mutate.emit(diffs);
|
|
50974
|
-
this.update.emit(diffs);
|
|
50975
50936
|
}, delay);
|
|
50976
50937
|
}
|
|
50977
50938
|
deleteHandler(role) {
|
|
50978
|
-
this.update.emit([{ action: 'delete', data: role }]);
|
|
50979
50939
|
this.mutate.emit([{ action: 'delete', data: role }]);
|
|
50980
50940
|
}
|
|
50981
50941
|
swapHandler(role1, role2) {
|
|
50982
|
-
this.update.emit([{ action: 'swap', data: role1, data2: role2 }]);
|
|
50983
50942
|
this.mutate.emit([{ action: 'swap', data: role1, data2: role2 }]);
|
|
50984
50943
|
}
|
|
50985
50944
|
modeHandler(_editable) {
|
|
@@ -50999,36 +50958,36 @@ const LsParticipantCard = class {
|
|
|
50999
50958
|
render() {
|
|
51000
50959
|
const participantFields = this.template.elementConnection.templateElements.filter(f => f.signer === this.signer.signerIndex) || [];
|
|
51001
50960
|
const child = this.template.roles.find(r => r.signerParent === this.signer.id);
|
|
51002
|
-
return (h(Host, { key: '
|
|
50961
|
+
return (h(Host, { key: '6544ccd5c1f82dbf34c009cfebd4971e5296dafe' }, h("div", { key: '94c77eb16f286db1d9f8d2ef7a221bf04803ba25', class: 'participant-card' + (child ? ' top-card' : this.signer?.signerParent ? ' bottom-card' : ' full-card'), style: {
|
|
51003
50962
|
background: defaultRolePalette[this.signer?.signerIndex % 100].s10,
|
|
51004
50963
|
border: `1px solid ${defaultRolePalette[this.signer?.signerIndex % 100].s60}`,
|
|
51005
50964
|
marginTop: this.signer.roleType === 'WITNESS' ? '-0.813rem' : '0',
|
|
51006
50965
|
}, onMouseEnter: e => e.currentTarget.querySelector('.button-set')?.classList.remove('hidden'), onMouseLeave: e => e.currentTarget.querySelector('.button-set')?.classList.add('hidden'), onDblClick: () => {
|
|
51007
50966
|
this.editable = true;
|
|
51008
|
-
} }, h("div", { key: '
|
|
50967
|
+
} }, h("div", { key: '210f95f85e9c270924fbeddb018f5fa1c21b72cc', class: 'participant-card-inner' }, h("div", { key: '137f2a79ce29db51973ec1bdbebc6e9fe28d3abb', class: 'participant-card-top-items' }, h("div", { key: '8874fe0285e86cf57e3c10e2848f909ca9afa87b', class: 'role-label', style: {
|
|
51009
50968
|
background: defaultRolePalette[this.signer?.signerIndex % 100].s20,
|
|
51010
50969
|
color: defaultRolePalette[this.signer?.signerIndex % 100].s90,
|
|
51011
|
-
} }, h("ls-icon", { key: '
|
|
50970
|
+
} }, h("ls-icon", { key: 'a06597041afdee46ec2953b8908819ce17e642f3', name: this.signer?.roleType === 'APPROVER' ? 'check-circle' : this.signer?.roleType === 'SIGNER' ? 'signature' : 'eye' }), (this.signer?.ordinal || '')), h("div", { key: '719fde9663b77fcd59a480c7549ab807111e6ca6', class: 'button-set hidden' }, this.index > 0 && this.signer.roleType !== 'WITNESS' && (h("div", { key: '988f376f318682781f5a462216bb9b95445478db', class: "innerButton", onClick: () => {
|
|
51012
50971
|
this.swapHandler(this.signer, this.template.roles[this.index - 1]);
|
|
51013
50972
|
}, style: {
|
|
51014
50973
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
51015
50974
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
51016
|
-
}, "data-tooltip": "Move Up" }, h("ls-icon", { key: '
|
|
50975
|
+
}, "data-tooltip": "Move Up" }, h("ls-icon", { key: '0d63c5756bc03f707048bf12c051fedf48efbfba', name: "arrow-up", size: "1.125rem" }))), this.signer.signerIndex !== this.template.roles.length && this.signer.roleType !== 'WITNESS' && (h("div", { key: '69a89fda199b1059bff753e4914e32f11aa9e0f3', class: "innerButton", onClick: () => {
|
|
51017
50976
|
this.swapHandler(this.signer, this.template.roles[this.index + 1]);
|
|
51018
50977
|
}, style: {
|
|
51019
50978
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
51020
50979
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
51021
|
-
}, "data-tooltip": "Move Down" }, h("ls-icon", { key: '
|
|
50980
|
+
}, "data-tooltip": "Move Down" }, h("ls-icon", { key: '8709b37acbffc8fb0044e437827c8cf549dba129', name: "arrow-down", size: "1.125rem" }))), h("div", { key: 'f92fee2c1179c0bafb1d2e03b88dfab22ec7411b', class: "innerButton", onClick: () => {
|
|
51022
50981
|
this.editable = !this.editable;
|
|
51023
50982
|
}, style: {
|
|
51024
50983
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
51025
50984
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
51026
|
-
} }, h("ls-icon", { key: '
|
|
50985
|
+
} }, h("ls-icon", { key: '0a06776685d90355af3e6a619e2bfe8e34e95196', name: this.editable ? 'check' : 'pencil-alt', size: "1.125rem", "data-tooltip": this.editable ? "Save Changes" : "Edit Participant" })), h("div", { key: '396f7f5c35c35d6def57a3562c86680d8fb004df', class: "innerButton", onClick: () => {
|
|
51027
50986
|
this.deleteHandler(this.signer);
|
|
51028
50987
|
}, style: {
|
|
51029
50988
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
51030
50989
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
51031
|
-
}, "data-tooltip": "Delete Participant", "data-tooltip-placement": "top-end" }, h("ls-icon", { key: '
|
|
50990
|
+
}, "data-tooltip": "Delete Participant", "data-tooltip-placement": "top-end" }, h("ls-icon", { key: 'b08c1a184b9f3e7bc13713d19de94ad1dbe89254', name: "trash", size: "1.125rem" })))), this.editable ? (h("div", { class: 'participant-card-inner' }, this.signer?.roleType !== 'WITNESS' ? (h("ls-input-wrapper", { select: true, leadingIcon: this.signer?.roleType === 'APPROVER' ? 'check-circle' : 'signature' }, h("select", { name: "roleType", id: "role-type", class: 'has-leading-icon', onChange: e => this.alter({ roleType: e.target.value }), disabled: child ? true : false }, h("option", { value: "APPROVER", selected: this.signer?.roleType === 'APPROVER' }, "Approver"), h("option", { value: "SIGNER", selected: this.signer?.roleType === 'SIGNER' }, "Signer")))) : (h("ls-input-wrapper", { leadingIcon: "eye" }, h("input", { name: "roleType", id: "role-type", class: 'has-leading-icon', disabled: true, value: "Witness" }))), h("input", { type: "text", id: "participant-description", name: "participantDescription", placeholder: "Description, eg. Tenant 1, Agent", defaultValue: this.signer.name, onInput: e => this.alter({ name: e.target.value }), onKeyUp: e => {
|
|
51032
50991
|
if (e.key === 'Enter' || e.keyCode === 13)
|
|
51033
50992
|
this.editable = false;
|
|
51034
50993
|
} }), this.signer?.roleType === 'SIGNER' && !child ? (h("button", { class: 'tertiary', onClick: () => this.addParticipant.emit({ type: 'WITNESS', parent: this.signer.id }) }, h("ls-icon", { name: "plus", style: { marginRight: '0.25rem' } }), "Add Witness")) : this.signer?.roleType === 'SIGNER' && child ? (h("button", { class: 'destructive', onClick: () => {
|
|
@@ -51043,7 +51002,7 @@ const LsParticipantCard = class {
|
|
|
51043
51002
|
} }, this.signer.roleType.toLowerCase()), this.signer?.roleType !== 'APPROVER' && (h("div", { class: 'role-label fields', style: {
|
|
51044
51003
|
background: participantFields.length === 0 ? defaultRolePalette[this.signer?.signerIndex % 100].s60 : defaultRolePalette[this.signer?.signerIndex % 100].s20,
|
|
51045
51004
|
color: participantFields.length === 0 ? 'white' : defaultRolePalette[this.signer?.signerIndex % 100].s90,
|
|
51046
|
-
} }, participantFields.length === 0 && h("ls-icon", { name: "exclamation-circle", size: "1rem", style: { marginRight: '0.125rem' } }), participantFields.length === 0 ? 'Signature Required' : `${participantFields.length} ${participantFields.length === 1 ? 'Field' : 'Fields'}`)))))), h("slot", { key: '
|
|
51005
|
+
} }, participantFields.length === 0 && h("ls-icon", { name: "exclamation-circle", size: "1rem", style: { marginRight: '0.125rem' } }), participantFields.length === 0 ? 'Signature Required' : `${participantFields.length} ${participantFields.length === 1 ? 'Field' : 'Fields'}`)))))), h("slot", { key: '7a6f8bd6073c0d6c5ef72fe60f0316e89f9ca6eb' }), h("ls-tooltip", { key: '57ee7a3ab8577a205ac07ededa3e71c93b2fa832', id: "ls-tooltip-master" })));
|
|
51047
51006
|
}
|
|
51048
51007
|
static get watchers() { return {
|
|
51049
51008
|
"editable": ["modeHandler"]
|
|
@@ -51403,13 +51362,11 @@ const LsTitleInput = class {
|
|
|
51403
51362
|
constructor(hostRef) {
|
|
51404
51363
|
registerInstance(this, hostRef);
|
|
51405
51364
|
this.mutate = createEvent(this, "mutate", 7);
|
|
51406
|
-
this.update = createEvent(this, "update", 7);
|
|
51407
51365
|
}
|
|
51408
51366
|
get component() { return getElement(this); }
|
|
51409
51367
|
template;
|
|
51410
51368
|
editTitle = false;
|
|
51411
51369
|
mutate;
|
|
51412
|
-
update;
|
|
51413
51370
|
// Send one or more mutations up the chain
|
|
51414
51371
|
// The source of the chain fires the mutation
|
|
51415
51372
|
// NOTE this alter is debounced to account for typing
|
|
@@ -51423,12 +51380,11 @@ const LsTitleInput = class {
|
|
|
51423
51380
|
this.titletimer = setTimeout(() => {
|
|
51424
51381
|
this.template = { ...this.template, ...diff };
|
|
51425
51382
|
const diffs = [{ action: 'update', data: this.template }];
|
|
51426
|
-
this.update.emit(diffs);
|
|
51427
51383
|
this.mutate.emit(diffs);
|
|
51428
51384
|
}, delay);
|
|
51429
51385
|
}
|
|
51430
51386
|
render() {
|
|
51431
|
-
return (h(Host, { key: '
|
|
51387
|
+
return (h(Host, { key: 'df0dddae77292b9d87eeca2b53137055abd1b732' }, this.editTitle ? (h("div", { style: { display: 'flex', gap: '0.5rem', alignItems: 'center' } }, h("input", { value: this.template?.title, style: { height: '1.25rem', padding: '0 0.25rem', width: 'fit-content' }, onInput: e => {
|
|
51432
51388
|
e.preventDefault();
|
|
51433
51389
|
this.alter({ title: e.target.value });
|
|
51434
51390
|
}, onKeyUp: e => {
|
|
@@ -51504,10 +51460,9 @@ const LsToolbar = class {
|
|
|
51504
51460
|
});
|
|
51505
51461
|
this.dataItem = diffs.map(d => d.data);
|
|
51506
51462
|
this.mutate.emit(diffs);
|
|
51507
|
-
this.update.emit(diffs);
|
|
51508
51463
|
}
|
|
51509
51464
|
render() {
|
|
51510
|
-
return (h(Host, { key: '
|
|
51465
|
+
return (h(Host, { key: '55d84a2c19190fb4149d658151ccdb369b32da84' }, (this.dataItem && this.dataItem.length > 1) ? (h("div", { class: 'rowbox' }, h("ls-field-format", { dataItem: this?.dataItem }))) : (h("div", { class: 'rowbox' }, h("ls-field-format", { dataItem: this?.dataItem, style: { visibility: this.dataItem && this.dataItem.length === 1 ? 'visible' : 'hidden' } }), h("ls-participant-select", { id: "ls-participant-select", roles: this.template?.roles, style: { display: this.dataItem && this.dataItem.length === 1 ? 'none' : 'block' } }))), h("ls-tooltip", { key: 'c700f50c2fe2829bc653a5a8c791f642ce966a8f', id: "ls-tooltip-master" }), h("slot", { key: '09a19a62da326c4131cdbddced63de71106da892' })));
|
|
51511
51466
|
}
|
|
51512
51467
|
};
|
|
51513
51468
|
LsToolbar.style = lsToolbarCss();
|