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
|
@@ -64,7 +64,6 @@ const LsDocumentOptions = class {
|
|
|
64
64
|
this.titletimer = setTimeout(() => {
|
|
65
65
|
this.template = { ...this.template, ...diff };
|
|
66
66
|
const diffs = [{ action: 'update', data: this.template }];
|
|
67
|
-
this.update.emit(diffs);
|
|
68
67
|
this.mutate.emit(diffs);
|
|
69
68
|
}, delay);
|
|
70
69
|
}
|
|
@@ -35174,21 +35173,19 @@ const findDimensions = (frameContainer, sourceField, pageHeight, pageWidth, zoom
|
|
|
35174
35173
|
const frmDims = frameContainer.getBoundingClientRect();
|
|
35175
35174
|
// dimensions relative to viewport
|
|
35176
35175
|
const { height, width } = sourceField.getBoundingClientRect();
|
|
35177
|
-
const zwidth = width / zoom;
|
|
35178
|
-
const zheight = height / zoom;
|
|
35179
35176
|
const top = Math.floor((sourceField.getBoundingClientRect().top - frmDims.top) / zoom);
|
|
35180
35177
|
const left = Math.floor((sourceField.getBoundingClientRect().left - frmDims.left) / zoom);
|
|
35181
35178
|
// Returns X, Y coordinates
|
|
35182
35179
|
const ax = left > 0 ? left / pageWidth : 0;
|
|
35183
35180
|
const ay = top > 0 ? top / pageHeight : 0;
|
|
35184
|
-
const bx = (left +
|
|
35185
|
-
const by = (top +
|
|
35181
|
+
const bx = (left + (width / zoom)) / pageWidth;
|
|
35182
|
+
const by = (top + (height / zoom)) / pageHeight;
|
|
35186
35183
|
// Return with calculated styles that try to place it as it would appear on legacy signing page
|
|
35187
35184
|
return {
|
|
35188
35185
|
top,
|
|
35189
35186
|
left,
|
|
35190
|
-
height,
|
|
35191
|
-
width,
|
|
35187
|
+
height: Math.round(height / zoom),
|
|
35188
|
+
width: Math.round(width / zoom),
|
|
35192
35189
|
ax,
|
|
35193
35190
|
ay,
|
|
35194
35191
|
bx,
|
|
@@ -35374,7 +35371,6 @@ function alter(diffFn) {
|
|
|
35374
35371
|
return { action: 'update', data: diffFn(c.dataItem) };
|
|
35375
35372
|
});
|
|
35376
35373
|
this.mutate.emit(diffs);
|
|
35377
|
-
this.update.emit(diffs);
|
|
35378
35374
|
}
|
|
35379
35375
|
function debounce$1(func, timeout = 300) {
|
|
35380
35376
|
let timer;
|
|
@@ -35385,7 +35381,7 @@ function debounce$1(func, timeout = 300) {
|
|
|
35385
35381
|
}, timeout);
|
|
35386
35382
|
};
|
|
35387
35383
|
}
|
|
35388
|
-
//
|
|
35384
|
+
// After a mutation ensure that the new data is stored in fields and template
|
|
35389
35385
|
function matchData(data) {
|
|
35390
35386
|
const newObj = data.result;
|
|
35391
35387
|
const prefix = atob(data.obj.id).substring(0, 3);
|
|
@@ -35594,9 +35590,6 @@ function keyDown(ev) {
|
|
|
35594
35590
|
this.mutate.emit(arr.map(s => {
|
|
35595
35591
|
return { action: 'delete', data: s.dataItem };
|
|
35596
35592
|
}));
|
|
35597
|
-
this.update.emit(arr.map(s => {
|
|
35598
|
-
return { action: 'delete', data: s.dataItem };
|
|
35599
|
-
}));
|
|
35600
35593
|
}
|
|
35601
35594
|
else if (ev.key === 'd' || ev.key === 'D' || ev.key === 'keyD') {
|
|
35602
35595
|
const arr = Array.from(this.selected);
|
|
@@ -35610,7 +35603,6 @@ function keyDown(ev) {
|
|
|
35610
35603
|
return { action: 'create', data: newItem, select: 'clear' };
|
|
35611
35604
|
});
|
|
35612
35605
|
this.mutate.emit(createdItems.map(item => ({ action: 'create', data: item.data })));
|
|
35613
|
-
this.update.emit(createdItems);
|
|
35614
35606
|
}
|
|
35615
35607
|
else if (ev.key === 'Escape') {
|
|
35616
35608
|
console.log('Clearing selection');
|
|
@@ -35741,7 +35733,7 @@ function mouseMove(event) {
|
|
|
35741
35733
|
var scale = this.hitField.dataItem.formElementType === 'signature' && this._template.fixSignatureScale;
|
|
35742
35734
|
switch (this.edgeSide) {
|
|
35743
35735
|
case 'n':
|
|
35744
|
-
if (outOfBounds({ ...this.hitField.dataItem, top: this.startMouse.top + movedY, height: this.startMouse.height - movedY }))
|
|
35736
|
+
if (outOfBounds({ ...this.hitField.dataItem, top: (this.startMouse.top + movedY) / this.zoom, height: (this.startMouse.height - movedY) / this.zoom }))
|
|
35745
35737
|
break;
|
|
35746
35738
|
this.hitField.style.top = this.startMouse.top + movedY + 'px';
|
|
35747
35739
|
this.hitField.style.height = this.startMouse.height - movedY + 'px';
|
|
@@ -35752,7 +35744,7 @@ function mouseMove(event) {
|
|
|
35752
35744
|
this.hitField.dataItem = { ...this.hitField.dataItem, top: this.startMouse.top + movedY, height: this.startMouse.height - movedY, width };
|
|
35753
35745
|
break;
|
|
35754
35746
|
case 's':
|
|
35755
|
-
if (outOfBounds({ ...this.hitField.dataItem, height: this.startMouse.height + movedY }))
|
|
35747
|
+
if (outOfBounds({ ...this.hitField.dataItem, height: (this.startMouse.height + movedY) / this.zoom }))
|
|
35756
35748
|
break;
|
|
35757
35749
|
this.hitField.style.height = this.startMouse.height + movedY + 'px';
|
|
35758
35750
|
if (scale) {
|
|
@@ -35762,17 +35754,17 @@ function mouseMove(event) {
|
|
|
35762
35754
|
this.hitField.dataItem = { ...this.hitField.dataItem, height: this.startMouse.height + movedY, width };
|
|
35763
35755
|
break;
|
|
35764
35756
|
case 'e':
|
|
35765
|
-
if (outOfBounds({ ...this.hitField.dataItem, width: this.startMouse.width + movedX }))
|
|
35757
|
+
if (outOfBounds({ ...this.hitField.dataItem, width: (this.startMouse.width + movedX) / this.zoom }))
|
|
35766
35758
|
break;
|
|
35767
35759
|
this.hitField.style.width = this.startMouse.width + movedX + 'px';
|
|
35768
35760
|
if (scale) {
|
|
35769
35761
|
height = Math.round((this.startMouse.width + movedX) / 3.8);
|
|
35770
35762
|
this.hitField.style.height = height + 'px';
|
|
35771
35763
|
}
|
|
35772
|
-
this.hitField.dataItem = { ...this.hitField.dataItem, width: this.startMouse.width + movedX, height };
|
|
35764
|
+
this.hitField.dataItem = { ...this.hitField.dataItem, width: (this.startMouse.width + movedX) / this.zoom, height };
|
|
35773
35765
|
break;
|
|
35774
35766
|
case 'w':
|
|
35775
|
-
if (outOfBounds({ ...this.hitField.dataItem, left: this.startMouse.left + movedX, width: this.startMouse.width - movedX }))
|
|
35767
|
+
if (outOfBounds({ ...this.hitField.dataItem, left: (this.startMouse.left + movedX) / this.zoom, width: (this.startMouse.width - movedX) / this.zoom }))
|
|
35776
35768
|
break;
|
|
35777
35769
|
this.hitField.style.left = this.startMouse.left + movedX + 'px';
|
|
35778
35770
|
this.hitField.style.width = this.startMouse.width - movedX + 'px';
|
|
@@ -35813,8 +35805,8 @@ function mouseMove(event) {
|
|
|
35813
35805
|
for (let i = 0; i < this.selected.length; i++) {
|
|
35814
35806
|
if (this.startLocations[i].left + movedX >= 0 &&
|
|
35815
35807
|
this.startLocations[i].top + movedY >= 0 &&
|
|
35816
|
-
this.startLocations[i].left + movedX <= this.pageDimensions[this.pageNum - 1].width - this.selected[i].dataItem.width &&
|
|
35817
|
-
this.startLocations[i].top + movedY <= this.pageDimensions[this.pageNum - 1].height - this.selected[i].dataItem.height) {
|
|
35808
|
+
this.startLocations[i].left + movedX <= (this.pageDimensions[this.pageNum - 1].width - this.selected[i].dataItem.width) * this.zoom &&
|
|
35809
|
+
this.startLocations[i].top + movedY <= (this.pageDimensions[this.pageNum - 1].height - this.selected[i].dataItem.height) * this.zoom) {
|
|
35818
35810
|
this.selected[i].style.left = this.startLocations[i].left + movedX + 'px';
|
|
35819
35811
|
this.selected[i].style.top = this.startLocations[i].top + movedY + 'px';
|
|
35820
35812
|
}
|
|
@@ -35853,7 +35845,7 @@ function mouseClick(e) {
|
|
|
35853
35845
|
// Calculate new positions and update the dataItem on the control
|
|
35854
35846
|
const delta = {
|
|
35855
35847
|
...fx.dataItem,
|
|
35856
|
-
...findDimensions(divFrame, fx,
|
|
35848
|
+
...findDimensions(divFrame, fx, fx.dataItem.pageDimensions.height, fx.dataItem.pageDimensions.width, this.zoom),
|
|
35857
35849
|
};
|
|
35858
35850
|
// TODO:: out of bounds handler (UNDO)
|
|
35859
35851
|
// update the data in the html element
|
|
@@ -40241,7 +40233,6 @@ const LsDocumentViewer = class {
|
|
|
40241
40233
|
this.pageChange = index.createEvent(this, "pageChange", 7);
|
|
40242
40234
|
this.selectFields = index.createEvent(this, "selectFields", 7);
|
|
40243
40235
|
this.mutate = index.createEvent(this, "mutate", 7);
|
|
40244
|
-
this.update = index.createEvent(this, "update", 7);
|
|
40245
40236
|
}
|
|
40246
40237
|
get component() { return index.getElement(this); }
|
|
40247
40238
|
isPageRendering;
|
|
@@ -40401,13 +40392,13 @@ const LsDocumentViewer = class {
|
|
|
40401
40392
|
selectFields;
|
|
40402
40393
|
// Send an external event to be processed
|
|
40403
40394
|
mutate;
|
|
40404
|
-
// Send an internal event to be processed
|
|
40405
|
-
update;
|
|
40406
40395
|
adapter;
|
|
40407
40396
|
// Action an external data action and use the result (if required)
|
|
40408
40397
|
mutateHandler(event) {
|
|
40409
40398
|
if (this.token && this.adapter)
|
|
40410
|
-
event.detail.forEach(me => this.adapter.handleEvent(me, this.token)
|
|
40399
|
+
event.detail.forEach(me => this.adapter.handleEvent(me, this.token)
|
|
40400
|
+
.then(result => matchData.bind(this)(result))
|
|
40401
|
+
.then(() => this.syncChange(me)));
|
|
40411
40402
|
}
|
|
40412
40403
|
handleFieldTypeSelected(event) {
|
|
40413
40404
|
const fields = this.component.shadowRoot.querySelectorAll('ls-toolbox-field');
|
|
@@ -40417,11 +40408,6 @@ const LsDocumentViewer = class {
|
|
|
40417
40408
|
this.fieldTypeSelected = event.detail;
|
|
40418
40409
|
}
|
|
40419
40410
|
// Updates are internal event between LS controls not to be confused with mutate
|
|
40420
|
-
updateHandler(event) {
|
|
40421
|
-
if (event.detail)
|
|
40422
|
-
event.detail.forEach(fx => this.syncChange(fx));
|
|
40423
|
-
}
|
|
40424
|
-
// Updates are internal event between LS controls not to be confused with mutate
|
|
40425
40411
|
addParticpantHandler(event) {
|
|
40426
40412
|
const defaultExperience = this.groupInfo.experienceConnection.experiences.find(x => x.defaultExperience === true);
|
|
40427
40413
|
const parent = this._template.roles.find(r => r.id === event.detail.parent);
|
|
@@ -40441,7 +40427,6 @@ const LsDocumentViewer = class {
|
|
|
40441
40427
|
},
|
|
40442
40428
|
},
|
|
40443
40429
|
];
|
|
40444
|
-
this.update.emit(data);
|
|
40445
40430
|
this.mutate.emit(data);
|
|
40446
40431
|
}
|
|
40447
40432
|
// Updates are internal event between LS controls not to be confused with mutate
|
|
@@ -40674,7 +40659,6 @@ const LsDocumentViewer = class {
|
|
|
40674
40659
|
this.selected = Array.from(fields).filter(fx => fx.selected);
|
|
40675
40660
|
}
|
|
40676
40661
|
else if (update.action === 'delete') {
|
|
40677
|
-
console.log('Deleting field via syncChange', update.data);
|
|
40678
40662
|
const fi = this.component.shadowRoot.getElementById('ls-field-' + update.data.id);
|
|
40679
40663
|
if (!fi)
|
|
40680
40664
|
return;
|
|
@@ -40780,7 +40764,7 @@ const LsDocumentViewer = class {
|
|
|
40780
40764
|
return this.filtertoolbox === null || this.filtertoolbox.split('|').includes(fieldFormType);
|
|
40781
40765
|
}
|
|
40782
40766
|
render() {
|
|
40783
|
-
return (index.h(index.Host, { key: '
|
|
40767
|
+
return (index.h(index.Host, { key: '592c7144dc4fd461a0d3b8e227db8e4048467c9f' }, index.h(index.h.Fragment, null, this.isLoading && index.h("ls-page-loader", { key: '113947587a6fe8e00d89ed00edde9afc8be74593' }), index.h("div", { key: '677507d66bd4838f83b23b3709a150f3d84f29bd', class: "page-header" }, index.h("div", { key: '22a111c262260ccba582b3d67e3821e26600b6d9', class: 'left-slot-wrapper' }, index.h("slot", { key: '6cbdd90b06fe4932945be175c34d30425315fa0f', name: "left-button" })), index.h("div", { key: '69fc0abcc276a7df62c64f8110be565fcf64543f', class: 'right-slot-wrapper' }, index.h("slot", { key: '5fcd702fb09f97d0e3ad7c36c1964a4f76511c56', name: "right-button" })), this.mode === 'editor' && (index.h("div", { key: '26c37fb4933d625f83b4e2e79c64fc404a2bca83' }, index.h("span", { key: 'ff58207753e287214f7b54301067812ac7a1864f', class: "header-text-1" }, "Template Creation"), index.h("span", { key: '91f36b80b04d9dd46ebc04250f28c1e0a9ae340a' }, "/"), index.h("span", { key: 'f0b3432388b7924e8c7e88d088ec8882e74da179', class: "header-text-2" }, this._template?.title))), this.mode === 'compose' && (index.h("div", { key: '174d1395ed9283ccfff0e7054d922d1a099d6ac6', style: { display: 'flex', alignItems: 'center', gap: '0.25rem' } }, index.h("span", { key: 'e45eede718f3acfbf2597e207ac84cda4f3d93f5', class: "header-text-1" }, "Compose"), " ", index.h("span", { key: '18f911514cf2b4c5058cb49de8b93cfc9d7319a3' }, "/"), " ", index.h("ls-title-input", { key: '71f7afcfed3fa23b92a81a22211578e5a1ae0837', template: this._template })))), this.mode === 'editor' && (index.h("div", { key: '44e9e1b2e8e9a8d8d3bfe49075bd9c27272d0bfd', class: 'validation-tag-wrapper' }, index.h("ls-validation-tag", { key: '15ab405d7eddf10eba6adc64f2ca9460ae05f3bc', validationErrors: this.validationErrors }))), index.h("form", { key: '38a29a27b4fac98b46fcff7748e1225bc44b2220', id: "ls-editor-form" }, this.mode !== 'preview' ? (index.h("div", { id: "ls-left-box", class: "leftBox", style: this.mode === 'compose' ? { borderRadius: '1.75rem' } : {} }, index.h("div", { class: !this.selected || this.selected.length === 0 ? 'left-box-inner' : 'hidden' }, this.mode === 'editor' && (index.h("ls-feature-column", { mode: this.mode, onManage: manager => {
|
|
40784
40768
|
if (manager.detail === 'document') {
|
|
40785
40769
|
var documentManager = this.component.shadowRoot.getElementById('ls-document-options');
|
|
40786
40770
|
documentManager.template = this._template;
|
|
@@ -40791,7 +40775,6 @@ const LsDocumentViewer = class {
|
|
|
40791
40775
|
}
|
|
40792
40776
|
else if (manager.detail === 'validation') {
|
|
40793
40777
|
var validationManager = this.component.shadowRoot.getElementById('ls-validation-manager');
|
|
40794
|
-
console.log(validationManager);
|
|
40795
40778
|
validationManager.validationErrors = this.validationErrors;
|
|
40796
40779
|
}
|
|
40797
40780
|
this.manager = manager.detail;
|
|
@@ -40799,7 +40782,7 @@ const LsDocumentViewer = class {
|
|
|
40799
40782
|
this._recipients.map(recipient => (index.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 && (index.h("div", { class: this.selected.length > 0 ? 'field-properties-outer' : 'hidden' }, index.h("div", { class: 'properties-header' }, index.h("div", { class: 'properties-header-icon' }, index.h("ls-icon", { name: "pre-filled-content" })), index.h("h1", { class: 'properties-header-title' }, "Field Properties"), index.h("button", { class: 'tertiaryGrey', onClick: e => {
|
|
40800
40783
|
this.selected = [];
|
|
40801
40784
|
e.preventDefault();
|
|
40802
|
-
}, "data-tooltip": "Close Properties Panel" }, index.h("ls-icon", { name: "x", size: "1.25rem" }))), index.h("ls-field-properties", { id: "my-field-panel" }), index.h("slot", null))))) : (index.h(index.h.Fragment, null)), this.selected.length > 0 && index.h("ls-toolbar", { key: '
|
|
40785
|
+
}, "data-tooltip": "Close Properties Panel" }, index.h("ls-icon", { name: "x", size: "1.25rem" }))), index.h("ls-field-properties", { id: "my-field-panel" }), index.h("slot", null))))) : (index.h(index.h.Fragment, null)), this.selected.length > 0 && index.h("ls-toolbar", { key: 'a88185257ac871dc06d0cdfb469ce707f5181e4d', id: "ls-toolbar", template: this._template, editor: this, groupInfo: this.groupInfo }), index.h("div", { key: '45e36f82ccbc164030b88b77d5e5bee3d492adbd', id: "ls-mid-area" }, index.h("div", { key: 'ccfb67c4439afa826187684cb5607aa578d7e2c7', class: 'document-frame-wrapper', id: "document-frame-wrapper" }, index.h("div", { key: '8db690eef40e7681d55a741dd73b5baf04746b65', id: "ls-document-frame" }, index.h("canvas", { key: 'b3c5a5dd0628bc64ed4778331d55f9e21379b030', id: "pdf-canvas", class: this.displayTable || this.isLoading ? 'hidden' : '' }), index.h("ls-editor-table", { key: 'ad39cdc485dc2338cd1a0d352d80b86c9c21aa02', editor: this, class: this.displayTable ? '' : 'hidden' }), index.h("div", { key: '50f7fd13fa475862059e0068282dd679b019f53a', id: "ls-box-selector" }))), index.h("ls-statusbar", { key: '21e4863029cf8b59ad3f902a5dc9c2658aa1cefe', editor: this, page: this.pageNum, pageCount: this.pageCount })))), index.h("ls-tooltip", { key: 'd55c2e32d2b66bd63aa0fa20873e753736a7aff2', id: "ls-tooltip-master" })));
|
|
40803
40786
|
}
|
|
40804
40787
|
static get watchers() { return {
|
|
40805
40788
|
"mode": ["modeHandler"],
|
|
@@ -41161,7 +41144,6 @@ const LsEditorField = class {
|
|
|
41161
41144
|
this.labeltimer = setTimeout(() => {
|
|
41162
41145
|
const diffs = [{ action: 'update', data }];
|
|
41163
41146
|
this.mutate.emit(diffs);
|
|
41164
|
-
this.update.emit(diffs);
|
|
41165
41147
|
}, delay);
|
|
41166
41148
|
}
|
|
41167
41149
|
hexToRgba(hex, alpha) {
|
|
@@ -41176,10 +41158,10 @@ const LsEditorField = class {
|
|
|
41176
41158
|
? { 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)' }
|
|
41177
41159
|
: { border: `2px ${defaultRolePalette[this.dataItem?.signer % 100].s60} solid` };
|
|
41178
41160
|
const zoomValue = parseFloat(this.zoom) || 1;
|
|
41179
|
-
return (index.h(index.Host, { key: '
|
|
41161
|
+
return (index.h(index.Host, { key: '89a2f93e5353a2660bb262af4830b6911bd7ee64', id: this.dataItem ? 'ls-field-' + this.dataItem.id : undefined, style: hostStyle, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, index.h("div", { key: '95decbf8fee094a5ac8e7f3e7314374b659b6579', class: {
|
|
41180
41162
|
'ls-editor-field': true,
|
|
41181
41163
|
'is-selected': this.selected,
|
|
41182
|
-
} }, !this.dataItem?.optional && index.h("ls-icon", { key: '
|
|
41164
|
+
} }, !this.dataItem?.optional && index.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` } }), index.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 }) }), index.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 && (index.h("div", { key: '21ebed73fd616a3655d55c10e3625592bdc6de64', style: {
|
|
41183
41165
|
position: 'absolute',
|
|
41184
41166
|
background: `${defaultRolePalette[this.dataItem?.signer % 100].s20}`,
|
|
41185
41167
|
color: `${defaultRolePalette[this.dataItem?.signer % 100].s80}`,
|
|
@@ -41190,7 +41172,7 @@ const LsEditorField = class {
|
|
|
41190
41172
|
left: `-${2 * zoomValue}px`,
|
|
41191
41173
|
whiteSpace: 'nowrap',
|
|
41192
41174
|
width: 'fit-content',
|
|
41193
|
-
} }, this.dataItem?.label)), (this.floatingActive || this.selected) && (index.h("p", { key: '
|
|
41175
|
+
} }, this.dataItem?.label)), (this.floatingActive || this.selected) && (index.h("p", { key: 'e14e6cce83af912df7de7464dca48f8a55c2867f', style: {
|
|
41194
41176
|
position: 'absolute',
|
|
41195
41177
|
color: 'var(--gray-80, #3a3a3a)',
|
|
41196
41178
|
bottom: `-${1.75 * zoomValue}rem`,
|
|
@@ -41198,9 +41180,9 @@ const LsEditorField = class {
|
|
|
41198
41180
|
left: '0',
|
|
41199
41181
|
whiteSpace: 'nowrap',
|
|
41200
41182
|
width: 'fit-content',
|
|
41201
|
-
} }, "Assigned to: ", this.assignee)), this.floatingActive && (index.h("button", { key: '
|
|
41183
|
+
} }, "Assigned to: ", this.assignee)), this.floatingActive && (index.h("button", { key: '5e4ed8ed5bd08c555f203708544d24ac6a847f2d', class: 'x-button', style: {
|
|
41202
41184
|
padding: `${0.125 * zoomValue}rem`,
|
|
41203
|
-
}, onClick: () => this.deleteField() }, index.h("ls-icon", { key: '
|
|
41185
|
+
}, onClick: () => this.deleteField() }, index.h("ls-icon", { key: 'c63cbfd8a4c71b8dfc6693a5bdd339e37414774a', name: "x", size: `${0.625 * zoomValue}rem` }))))));
|
|
41204
41186
|
}
|
|
41205
41187
|
static get watchers() { return {
|
|
41206
41188
|
"selected": ["watchSelectedHandler"]
|
|
@@ -41307,7 +41289,6 @@ const LsFieldAlignment = class {
|
|
|
41307
41289
|
});
|
|
41308
41290
|
this.dataItem = diffs.map(d => d.data);
|
|
41309
41291
|
this.mutate.emit(diffs);
|
|
41310
|
-
this.update.emit(diffs);
|
|
41311
41292
|
}
|
|
41312
41293
|
right() {
|
|
41313
41294
|
const rightmost = this.dataItem.reduce((rightmost, current) => {
|
|
@@ -41328,7 +41309,6 @@ const LsFieldAlignment = class {
|
|
|
41328
41309
|
});
|
|
41329
41310
|
this.dataItem = diffs.map(d => d.data);
|
|
41330
41311
|
this.mutate.emit(diffs);
|
|
41331
|
-
this.update.emit(diffs);
|
|
41332
41312
|
}
|
|
41333
41313
|
center() {
|
|
41334
41314
|
const addcentres = this.dataItem.reduce((total, current) => {
|
|
@@ -41353,7 +41333,6 @@ const LsFieldAlignment = class {
|
|
|
41353
41333
|
console.log(diffs);
|
|
41354
41334
|
this.dataItem = diffs.map(d => d.data);
|
|
41355
41335
|
this.mutate.emit(diffs);
|
|
41356
|
-
this.update.emit(diffs);
|
|
41357
41336
|
}
|
|
41358
41337
|
top() {
|
|
41359
41338
|
const topmost = this.dataItem.reduce((most, current) => {
|
|
@@ -41387,7 +41366,6 @@ const LsFieldAlignment = class {
|
|
|
41387
41366
|
});
|
|
41388
41367
|
this.dataItem = diffs.map(d => d.data);
|
|
41389
41368
|
this.mutate.emit(diffs);
|
|
41390
|
-
this.update.emit(diffs);
|
|
41391
41369
|
}
|
|
41392
41370
|
bottom() {
|
|
41393
41371
|
const lowest = this.dataItem.reduce((acc, current) => {
|
|
@@ -41407,15 +41385,14 @@ const LsFieldAlignment = class {
|
|
|
41407
41385
|
});
|
|
41408
41386
|
this.dataItem = diffs.map(d => d.data);
|
|
41409
41387
|
this.mutate.emit(diffs);
|
|
41410
|
-
this.update.emit(diffs);
|
|
41411
41388
|
}
|
|
41412
41389
|
componentDidLoad() {
|
|
41413
41390
|
attachAllTooltips(this.component.shadowRoot);
|
|
41414
41391
|
}
|
|
41415
41392
|
render() {
|
|
41416
|
-
return (index.h(index.Host, { key: '
|
|
41393
|
+
return (index.h(index.Host, { key: '400db25c25a36e1c2556bb4ec06724864b9bf83d' }, index.h("div", { key: '47e10979f5e40df74c8ee295f2e0f3c24f026215', class: 'ls-field-properties-section' }, index.h("div", { key: '9c101afb5812f8958f420f9e3f2b180085156f0c', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'd2f6af742ae404699954d0a038e98553ca6de830', class: 'ls-field-properties-section-title' }, "Alignment"), index.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.")), index.h("div", { key: 'c8aa1676673aa7dd6272fe215c2b932c3cf7b31e', class: 'multi-button-group-row' }, index.h("div", { key: '0fdba69a2964a55718efd5d7c0c8084fbb3f3c5b', class: 'button-group' }, index.h("button", { key: 'bce8132bc2b3d2c932312b5f5ce7202936ba0372', onClick: () => this.left(), "aria-label": "Align selected fields vertically about their left edge.", "data-tooltip": "Align Left" }, index.h("ls-icon", { key: '4ecde43b70300205a93860415001744d24e9e31f', name: "field-alignment-left" })), index.h("button", { key: 'd7b62d1433ab7d98573774b2e8ba11dfc933f09e', onClick: () => this.center(), "aria-label": "Align selected fields vertically about their centre.", "data-tooltip": "Align Center" }, index.h("ls-icon", { key: '88af50eb18c0e5c9759c38785374a080e0c68889', name: "field-alignment-centre" })), index.h("button", { key: 'f6567ecc6bcf13c853a92985a6c8892fbf9e2360', onClick: () => {
|
|
41417
41394
|
this.right();
|
|
41418
|
-
}, "aria-label": "Align selected fields vertically about their right edge.", "data-tooltip": "Align Right" }, index.h("ls-icon", { key: '
|
|
41395
|
+
}, "aria-label": "Align selected fields vertically about their right edge.", "data-tooltip": "Align Right" }, index.h("ls-icon", { key: 'b4a316f3b22d598206e53b0aadc152af935a6c92', name: "field-alignment-right" }))), index.h("div", { key: 'ee1b1aaa94d60b6f8599c48cd41485699eaf8ec1', class: 'button-group' }, index.h("button", { key: '0533eb85453764ca44a586c7d189d09b9222fd03', onClick: () => this.top(), "aria-label": "Align selected fields by their top.", "data-tooltip": "Align Top" }, index.h("ls-icon", { key: '6baca0ef2df8e60749ca46f26fa614675aaabdaa', name: "field-alignment-top" })), index.h("button", { key: '1e2ef35fbe0f0b520091e40c3120ea6112f9b8b7', onClick: () => this.middle(), "aria-label": "Align selected fields by their middles.", "data-tooltip": "Align Middle" }, index.h("ls-icon", { key: 'b91876a9aec1e5c3f528ee679ac468298e8922f4', name: "field-alignment-middle" })), index.h("button", { key: 'ef6d7f773708d14ba4621ca900204dda6b5fb016', onClick: () => this.bottom(), "aria-label": "Align selected fields by their bottoms.", "data-tooltip": "Align Bottom" }, index.h("ls-icon", { key: 'b35d93c535bb179901af3c0a1fbb25a69bde5579', name: "field-alignment-bottom" }))))), index.h("slot", { key: 'be48e72ff93e6490eae685759d20d21cc0944745' }), index.h("ls-tooltip", { key: '8fe30e3b47397e4d9bdab32cce7629450bf4123e', id: "ls-tooltip-master" })));
|
|
41419
41396
|
}
|
|
41420
41397
|
};
|
|
41421
41398
|
LsFieldAlignment.style = lsFieldAlignmentCss();
|
|
@@ -41447,7 +41424,6 @@ const LsFieldContent = class {
|
|
|
41447
41424
|
this.labeltimer = setTimeout(() => {
|
|
41448
41425
|
const diffs = [{ action: 'update', data }];
|
|
41449
41426
|
this.mutate.emit(diffs);
|
|
41450
|
-
this.update.emit(diffs);
|
|
41451
41427
|
}, delay);
|
|
41452
41428
|
}
|
|
41453
41429
|
supportsValue() {
|
|
@@ -41455,9 +41431,9 @@ const LsFieldContent = class {
|
|
|
41455
41431
|
return !typesWithValue.includes(this.dataItem?.elementType);
|
|
41456
41432
|
}
|
|
41457
41433
|
render() {
|
|
41458
|
-
return (index.h(index.Host, { key: '
|
|
41434
|
+
return (index.h(index.Host, { key: '3aa145da2c93db6900ba96388d86c72472686aa3' }, index.h("ls-props-section", { key: '4d08885c91a113e3c58b79046abc18e0b57ac1e4', sectionTitle: "Field Type", sectionDescription: "The Field you currently have selected" }, index.h("ls-field-type-display", { key: '166c7438df51abd4ee13952444a9e0996dd3d1ac', fieldType: this.dataItem?.elementType, assignee: this.dataItem?.signer })), index.h("ls-props-section", { key: '7a8f379af5a5bcfd3317dcd143129e493e963b08', sectionTitle: "Required Field", row: true }, index.h("ls-toggle", { key: '48ff9c0929d5cc38303b33423c8af14ef41d402a', id: "toggle-required", checked: !this.dataItem?.optional, onValueChange: (ev) => this.alter({ optional: !ev.detail }) })), index.h("ls-props-section", { key: '589a7bf1ff07a9c0cccfc347d0d8e2ccd4292629', sectionTitle: "Field Label", sectionDescription: "Add a label to clarify the information required from the Recipient." }, index.h("input", { key: 'bfd8071a1f1f54b9b1c1ee7a44b29c126b8f481b', value: this.dataItem?.label, placeholder: "eg. Sign Here", onInput: (e) => this.alter({ label: e.target.value }) })), this.supportsValue() && (index.h("ls-props-section", { key: '1fc16d46a133d7f8724b7e89fec0430908a5d440', sectionTitle: "Value", sectionDescription: "A prefilled value that can be altered by the signer." }, index.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 && (index.h("ls-props-section", { key: '681316a7a8e67745fd9bf1735dc5d282ce62e756', sectionTitle: "Options", sectionDescription: "Define the options available in the dropdown. One option per line." }, index.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 && (index.h("ls-props-section", { key: '21d860e34e7a1715a5618b375c57c979acfb5dcb', sectionTitle: "Content Format", sectionDescription: "Select the specific format you want the Recipient to enter." }, index.h("ls-input-wrapper", { key: 'e4cc5533901b4a0842ea97bb6a97f4f55816d1cb', select: true }, index.h("select", { key: '4875147dbdcfdeadf4485f2b283bed89fe43c083', onChange: (ev) => this.alter({ validation: parseInt(ev.target.value) }) }, validationTypes
|
|
41459
41435
|
.filter(type => type.formType === this.dataItem?.elementType)
|
|
41460
|
-
.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.id }, type.description))))))), index.h("slot", { key: '
|
|
41436
|
+
.map(type => (index.h("option", { selected: this.dataItem?.validation === type.id, value: type.id }, type.description))))))), index.h("slot", { key: 'de3eef5f0ea1297b43c3e92851935552f1fdcef9' })));
|
|
41461
41437
|
}
|
|
41462
41438
|
};
|
|
41463
41439
|
LsFieldContent.style = lsFieldContentCss();
|
|
@@ -41496,32 +41472,30 @@ const LsFieldDimensions = class {
|
|
|
41496
41472
|
});
|
|
41497
41473
|
this.dataItem = diffs.map(d => d.data);
|
|
41498
41474
|
this.mutate.emit(diffs);
|
|
41499
|
-
this.update.emit(diffs);
|
|
41500
41475
|
}
|
|
41501
41476
|
else {
|
|
41502
41477
|
const singleDiff = { action: 'update', data: { ...this.dataItem, ...diff } };
|
|
41503
41478
|
this.dataItem = singleDiff.data;
|
|
41504
41479
|
this.mutate.emit([singleDiff]);
|
|
41505
|
-
this.update.emit([singleDiff]);
|
|
41506
41480
|
}
|
|
41507
41481
|
}
|
|
41508
41482
|
componentDidLoad() {
|
|
41509
41483
|
attachAllTooltips(this.component.shadowRoot);
|
|
41510
41484
|
}
|
|
41511
41485
|
render() {
|
|
41512
|
-
return (index.h(index.Host, { key: '
|
|
41486
|
+
return (index.h(index.Host, { key: 'd003ec4d22c43fdc9ff1b7d5c42847cb5d21fa58' }, this.isMultiple(this.dataItem) && (index.h("div", { key: 'c97175dfa0099066e8fd997fb7c732916a45dcad', class: 'ls-field-properties-section' }, index.h("div", { key: 'ff4bbd9b97f2035521472682e323bd6539453138', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'a6ce84a435637f5844483a6199c3a7d1f0ffe5fa', class: 'ls-field-properties-section-title' }, "Height and Width"), index.h("p", { key: 'f7b6c29969724037862c0ce90bc4c19b5d8a0b8d', class: 'ls-field-properties-section-description' }, "Define the height and width of one or multiple fields")), index.h("div", { key: '81cbc0cbe5a8d35cb1313b39fde5c42d268fabdc', class: 'input-row' }, index.h("div", { key: 'eaa01d8a7992511edd9f4cf45048069e37ab1701', class: 'input-wrapper', "data-tooltip": "Set field width in pixels" }, index.h("ls-icon", { key: 'd8993e0e168487aa14bebb340961940249961367', id: "selectLeadingIcon", name: "field-match-width" }), index.h("input", { key: '7b769e44b527c088c4f62bae3259e755da0c7d88', class: 'has-leading-icon', aria: "field-width", id: "field-width", onChange: e => this.alter({ width: e.target.value }) })), index.h("div", { key: '17e100d57b703c0fbc401006e021df4049f55049', class: 'input-wrapper', "data-tooltip": "Set field height in pixels" }, index.h("ls-icon", { key: '0cfc394ae203d751300160247e31d6e27ea943f7', id: "selectLeadingIcon", name: "field-match-height" }), index.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) && (index.h("div", { key: '9b7fd1db9c1ee0cd5e501190dab54c076e4d7bf0', class: 'field-set' }, index.h("div", { key: 'bdfea8edc67c3ccd17d9a59d6f9a8cf0a06fccba', class: 'ls-field-properties-section' }, index.h("div", { key: '3aa013fdf3dbdbd3631042a9159ab337054e9062', class: 'ls-field-properties-section-text' }, index.h("p", { key: '83d1f77ddecc1b06aa1a3e6e320babde8d64fb0f', class: 'ls-field-properties-section-title' }, "Height and Width"), index.h("p", { key: '702d3ea7ab57828852e701d21fa45d07506a9ddb', class: 'ls-field-properties-section-description' }, "Define the height and width of one or multiple fields")), index.h("div", { key: '836c4e59244430a6e3f914a912b1fe699a79e1f1', class: 'input-row' }, index.h("div", { key: 'a893194799297e84bddd5726c5e86d61824532a5', class: 'input-wrapper', "data-tooltip": "Set field width in pixels" }, index.h("ls-icon", { key: '3dcbee06779a17a700d515973698b7041e7592f9', id: "selectLeadingIcon", name: "field-match-width" }), index.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 => {
|
|
41513
41487
|
const di = this.getDataItem();
|
|
41514
41488
|
if (parseInt(e.target.value) > di.pageDimensions.width - di.left) {
|
|
41515
41489
|
return;
|
|
41516
41490
|
}
|
|
41517
41491
|
this.alter({ width: e.target.value });
|
|
41518
|
-
} })), index.h("div", { key: '
|
|
41492
|
+
} })), index.h("div", { key: '1956af6a1d388ca243b9f2b18d687d067a856513', class: 'input-wrapper', "data-tooltip": "Set field height in pixels" }, index.h("ls-icon", { key: '9971388d6ac1441ed86730a8448c5b1187a7cbcd', id: "selectLeadingIcon", name: "field-match-height" }), index.h("input", { key: '9162dadc492c6fc63e26ee85ab218bf7f6a4e0b2', type: "number", class: 'has-leading-icon', aria: "field-height", id: "field-height", value: this.dataItem?.height, onChange: e => {
|
|
41519
41493
|
const di = this.getDataItem();
|
|
41520
41494
|
if (parseInt(e.target.value) > di.pageDimensions.height - di.top) {
|
|
41521
41495
|
return;
|
|
41522
41496
|
}
|
|
41523
41497
|
this.alter({ height: e.target.value });
|
|
41524
|
-
} })))), index.h("div", { key: '
|
|
41498
|
+
} })))), index.h("div", { key: '9e75e3ef36f663c4a2fdddcb3e2c208ddf6e656f', class: 'ls-field-properties-section' }, index.h("div", { key: 'a8c072b8487a51da788c06357ba3dc9e1303166c', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'c0dfd34d92f34c4477987a4d2e038dc8110cff31', class: 'ls-field-properties-section-title' }, "Scale and Resize"), index.h("p", { key: 'ff3b7ed6b10c183adb2a71a4d52c78054ed226f0', class: 'ls-field-properties-section-description' }, "Multi-select fields and match their dimensions")), index.h("div", { key: 'c165300dbd7e39554d7cbdf0df050b91dd0696c1', class: 'button-group' }, index.h("button", { key: '37c07a694dc7bf78a944746f6cdcae8a9f0ad310', disabled: true, "data-tooltip": "Select multiple Fields to to access scale controls" }, index.h("ls-icon", { key: '0c1732003117b1ba1baa92dc940e1975ad44a857', name: "field-scale" })), index.h("button", { key: 'de2248e7f9ed41276fe394bec2e55a114861ccd8', disabled: true, "data-tooltip": "Select multiple Fields to to access match width controls" }, index.h("ls-icon", { key: '08748b6107dbd25162dc15c45ff0686bf90e8d13', name: "field-match-width" })), index.h("button", { key: 'ffabf838749929cdc4795aed33618ecaf00f34f5', disabled: true, "data-tooltip": "Select multiple Fields to to access match height controls" }, index.h("ls-icon", { key: '595cafe4a70003633c037b8da411d151df287fd6', name: "field-match-height" })))))), index.h("ls-tooltip", { key: '1729af7c643432890b18d5f68fc7561494100c14', id: "ls-tooltip-master" })));
|
|
41525
41499
|
}
|
|
41526
41500
|
};
|
|
41527
41501
|
LsFieldDimensions.style = lsFieldDimensionsCss();
|
|
@@ -41532,11 +41506,9 @@ const LsFieldDistribute = class {
|
|
|
41532
41506
|
constructor(hostRef) {
|
|
41533
41507
|
index.registerInstance(this, hostRef);
|
|
41534
41508
|
this.mutate = index.createEvent(this, "mutate", 7);
|
|
41535
|
-
this.update = index.createEvent(this, "update", 7);
|
|
41536
41509
|
}
|
|
41537
41510
|
dataItem;
|
|
41538
41511
|
mutate;
|
|
41539
|
-
update;
|
|
41540
41512
|
get component() { return index.getElement(this); }
|
|
41541
41513
|
// Send one or more mutations up the chain
|
|
41542
41514
|
// The source of the chain fires the mutation
|
|
@@ -41547,7 +41519,6 @@ const LsFieldDistribute = class {
|
|
|
41547
41519
|
});
|
|
41548
41520
|
this.dataItem = diffs.map(d => d.data);
|
|
41549
41521
|
this.mutate.emit(diffs);
|
|
41550
|
-
this.update.emit(diffs);
|
|
41551
41522
|
}
|
|
41552
41523
|
distributeHorizontal() {
|
|
41553
41524
|
var spacing = this.component.shadowRoot.getElementById('ls-fix-horizontal-space');
|
|
@@ -41568,7 +41539,7 @@ const LsFieldDistribute = class {
|
|
|
41568
41539
|
avgspace = Math.floor(totalWidth / (sorted.length - 1));
|
|
41569
41540
|
}
|
|
41570
41541
|
const filtered = sorted.filter((c, index) => {
|
|
41571
|
-
return outOfBounds({ ...c, left: Math.floor(leftmost - (c.width / 2) + avgspace * index) }) === false
|
|
41542
|
+
return outOfBounds({ ...c, left: (Math.floor(leftmost - (c.width / 2) + avgspace * index)) }) === false
|
|
41572
41543
|
&& index !== 0
|
|
41573
41544
|
&& index !== sorted.length - 1;
|
|
41574
41545
|
});
|
|
@@ -41583,7 +41554,6 @@ const LsFieldDistribute = class {
|
|
|
41583
41554
|
});
|
|
41584
41555
|
this.dataItem = diffs.map(d => d.data);
|
|
41585
41556
|
this.mutate.emit(diffs);
|
|
41586
|
-
this.update.emit(diffs);
|
|
41587
41557
|
}
|
|
41588
41558
|
gapVertical(spacing) {
|
|
41589
41559
|
const sorted = this.dataItem.sort((a, b) => a.top - b.top);
|
|
@@ -41607,7 +41577,6 @@ const LsFieldDistribute = class {
|
|
|
41607
41577
|
});
|
|
41608
41578
|
this.dataItem = diffs.map(d => d.data);
|
|
41609
41579
|
this.mutate.emit(diffs);
|
|
41610
|
-
this.update.emit(diffs);
|
|
41611
41580
|
}
|
|
41612
41581
|
gapHorizontal(spacing) {
|
|
41613
41582
|
const sorted = this.dataItem.sort((a, b) => a.top - b.top);
|
|
@@ -41632,7 +41601,6 @@ const LsFieldDistribute = class {
|
|
|
41632
41601
|
});
|
|
41633
41602
|
this.dataItem = diffs.map(d => d.data);
|
|
41634
41603
|
this.mutate.emit(diffs);
|
|
41635
|
-
this.update.emit(diffs);
|
|
41636
41604
|
}
|
|
41637
41605
|
distributeVertical() {
|
|
41638
41606
|
var spacing = this.component.shadowRoot.getElementById('ls-fix-vertical-space');
|
|
@@ -41666,21 +41634,20 @@ const LsFieldDistribute = class {
|
|
|
41666
41634
|
});
|
|
41667
41635
|
this.dataItem = diffs.map(d => d.data);
|
|
41668
41636
|
this.mutate.emit(diffs);
|
|
41669
|
-
this.update.emit(diffs);
|
|
41670
41637
|
}
|
|
41671
41638
|
componentDidLoad() {
|
|
41672
41639
|
attachAllTooltips(this.component.shadowRoot);
|
|
41673
41640
|
}
|
|
41674
41641
|
render() {
|
|
41675
|
-
return (index.h(index.Host, { key: '
|
|
41642
|
+
return (index.h(index.Host, { key: '9183c6d98eba74df69f024a583940a25c0f7547c' }, index.h("div", { key: 'efe9718b9b662956d0cf829d687df3d558cdad31', class: 'ls-field-properties-section' }, index.h("div", { key: '24e5a2d203432ee0b0894a517870a19e6081b9dc', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'ced15352bbbdd00133d20de812fede32e1c281d6', class: 'ls-field-properties-section-title' }, "Distribution"), index.h("p", { key: 'a08ae1961bfbc738b1359b7c938ff80ece5ef4fe', class: 'ls-field-properties-section-description' }, "Multi-select fields and evenly space them out")), index.h("div", { key: 'a720baf91f2917458c47a0c8a2cc91bda6d9d92d', class: 'button-group' }, index.h("button", { key: 'e2303f2c8324e126ae5d8c5e3db65c6c04498ccc', onClick: () => {
|
|
41676
41643
|
this.distributeVertical();
|
|
41677
|
-
}, "aria-label": "Distribute selected fields vertically.", "data-tooltip": "Distribute selected fields vertically" }, index.h("ls-icon", { key: '
|
|
41644
|
+
}, "aria-label": "Distribute selected fields vertically.", "data-tooltip": "Distribute selected fields vertically" }, index.h("ls-icon", { key: 'b3def31389be531f8d93b7a4aba31da1972573e1', name: "field-distribute-vertically" })), index.h("button", { key: 'fcfd3704ac035ee406b1b5579e9b6dfbf8f7eec0', onClick: () => {
|
|
41678
41645
|
this.distributeHorizontal();
|
|
41679
|
-
}, "aria-label": "Distribute selected fields horizontally.", "data-tooltip": "Distribute selected fields horizontally" }, index.h("ls-icon", { key: '
|
|
41646
|
+
}, "aria-label": "Distribute selected fields horizontally.", "data-tooltip": "Distribute selected fields horizontally" }, index.h("ls-icon", { key: 'a8fe7f099ef6002e6459d6e0e85c3abb301f4d58', name: "field-distribute-horizontally" })))), index.h("div", { key: '2371a9653b583f97ad1df8a45a4145291b20ac21', class: 'ls-field-properties-section' }, index.h("div", { key: 'a6b4714f995ba5017e0cfb894a40c828676a764d', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'efa830b42e36555694cd413c7faf85e9c81e4ff2', class: 'ls-field-properties-section-title' }, "Gap"), index.h("p", { key: 'dfd54671699a6b8840b867a9a9635639a9b801aa', class: 'ls-field-properties-section-description' }, "Define the exact gap between multi-select fields.")), index.h("div", { key: '7a970651367e27007aaa57af06a1918efbc06889', class: 'input-row' }, index.h("div", { key: '4494e7585a4f4a41cccd5db632f917946e53a5f7', class: 'input-wrapper', "data-tooltip": "Set vertical gap between selected fields" }, index.h("ls-icon", { key: 'c4cf75483efe34297a283693413ea91a70dc3965', id: "selectLeadingIcon", name: "field-distribute-vertically" }), index.h("input", { key: '0480f8f9b0227599fc31658e8799ee999712d37f', type: "number", class: 'has-leading-icon', id: "ls-fix-vertical-space", onChange: e => {
|
|
41680
41647
|
this.gapVertical(parseInt(e.target.value));
|
|
41681
|
-
}, value: '', size: 4, min: 0, max: 9999 })), index.h("div", { key: '
|
|
41648
|
+
}, value: '', size: 4, min: 0, max: 9999 })), index.h("div", { key: 'c793ffb33e2892914bb546b8643628dce38f209a', class: 'input-wrapper', "data-tooltip": "Set horizontal gap between selected fields" }, index.h("ls-icon", { key: '726eda22cf535a5d760df8d5c2443e2a8d20c7f7', id: "selectLeadingIcon", name: "field-distribute-horizontally" }), index.h("input", { key: 'd064bf24692fb0a6cdb4de546f9166115565b5d5', type: "number", class: 'has-leading-icon', id: "ls-fix-horizontal-space", onChange: e => {
|
|
41682
41649
|
this.gapHorizontal(parseInt(e.target.value));
|
|
41683
|
-
}, value: '', size: 4, min: 0, max: 9999 })))), index.h("ls-tooltip", { key: '
|
|
41650
|
+
}, value: '', size: 4, min: 0, max: 9999 })))), index.h("ls-tooltip", { key: 'c699c7d28bc03981a8fdcd9960ce2b81bc7ed2f7', id: "ls-tooltip-master" }), index.h("slot", { key: 'e2bdf922af96349adfc40efba97dccb434a850eb' })));
|
|
41684
41651
|
}
|
|
41685
41652
|
};
|
|
41686
41653
|
LsFieldDistribute.style = lsFieldDistributeCss();
|
|
@@ -41702,22 +41669,33 @@ const LsFieldFooter = class {
|
|
|
41702
41669
|
mutate;
|
|
41703
41670
|
update;
|
|
41704
41671
|
selectFields;
|
|
41672
|
+
isSingle(dt) {
|
|
41673
|
+
return dt.length === undefined;
|
|
41674
|
+
}
|
|
41675
|
+
isMultiple(dt) {
|
|
41676
|
+
return typeof dt.length === 'number';
|
|
41677
|
+
}
|
|
41678
|
+
getItems() {
|
|
41679
|
+
if (this.isSingle(this.dataItem)) {
|
|
41680
|
+
return [this.dataItem];
|
|
41681
|
+
}
|
|
41682
|
+
return this.dataItem;
|
|
41683
|
+
}
|
|
41705
41684
|
deleteField = () => {
|
|
41706
|
-
this.
|
|
41707
|
-
this.mutate.emit([{ action: 'delete', data: this.dataItem }]);
|
|
41685
|
+
this.mutate.emit(this.getItems().map(di => { return { action: 'delete', data: di }; }));
|
|
41708
41686
|
};
|
|
41709
41687
|
duplicateField = () => {
|
|
41710
|
-
|
|
41711
|
-
|
|
41712
|
-
|
|
41713
|
-
|
|
41714
|
-
|
|
41715
|
-
|
|
41716
|
-
|
|
41717
|
-
|
|
41688
|
+
this.getItems().forEach(current => {
|
|
41689
|
+
const newItem = { ...current, id: btoa('ele' + crypto.randomUUID()) };
|
|
41690
|
+
const newTop = current.top + current.height;
|
|
41691
|
+
if (newTop + current.height < current.pageDimensions.height) {
|
|
41692
|
+
newItem.top = newTop;
|
|
41693
|
+
}
|
|
41694
|
+
this.mutate.emit([{ action: 'create', data: newItem, select: 'clear' }]);
|
|
41695
|
+
});
|
|
41718
41696
|
};
|
|
41719
41697
|
render() {
|
|
41720
|
-
return (index.h(index.Host, { key: '
|
|
41698
|
+
return (index.h(index.Host, { key: 'b304511650fb8ab792ee4112ce4eb6ecabfad7b1' }, index.h("div", { key: 'ffb272b2be2e33164600f4751d91df4aabe6a37d', class: 'button-footer' }, index.h("button", { key: '4186e5559318e08134f5d3d3eef95be7dd277583', class: 'secondary', onClick: () => this.duplicateField() }, index.h("ls-icon", { key: '421a920a74da3f785236ca4051df988bada70e2d', name: "field-duplicate", size: "1.25rem" }), "Duplicate"), index.h("button", { key: 'd7f34ff31f29b11d3d1801bdf4d88fe23e8d5c9d', class: 'destructive', onClick: () => this.deleteField() }, index.h("ls-icon", { key: '91abcc24bf4bea621252a5982442d38a7a36644d', name: "trash", size: "1.25rem", color: 'var(--red-60)' }), "Delete")), index.h("slot", { key: 'df560039d19466975b12468042f2bfd0a3b81b6f' })));
|
|
41721
41699
|
}
|
|
41722
41700
|
};
|
|
41723
41701
|
LsFieldFooter.style = lsFieldFooterCss();
|
|
@@ -41728,11 +41706,9 @@ const LsFieldFormat = class {
|
|
|
41728
41706
|
constructor(hostRef) {
|
|
41729
41707
|
index.registerInstance(this, hostRef);
|
|
41730
41708
|
this.mutate = index.createEvent(this, "mutate", 7);
|
|
41731
|
-
this.update = index.createEvent(this, "update", 7);
|
|
41732
41709
|
}
|
|
41733
41710
|
dataItem;
|
|
41734
41711
|
mutate;
|
|
41735
|
-
update;
|
|
41736
41712
|
get component() { return index.getElement(this); }
|
|
41737
41713
|
handleKeyDown = (event) => {
|
|
41738
41714
|
event.stopPropagation();
|
|
@@ -41761,7 +41737,6 @@ const LsFieldFormat = class {
|
|
|
41761
41737
|
});
|
|
41762
41738
|
this.dataItem = diffs.map(d => d.data);
|
|
41763
41739
|
this.mutate.emit(diffs);
|
|
41764
|
-
this.update.emit(diffs);
|
|
41765
41740
|
}
|
|
41766
41741
|
componentDidLoad() {
|
|
41767
41742
|
attachAllTooltips(this.component.shadowRoot);
|
|
@@ -41776,31 +41751,31 @@ const LsFieldFormat = class {
|
|
|
41776
41751
|
return { isSame: allFontsSame && allFontSizesSame, fontName: allFontsSame ? firstFontName : 'mixed', fontSize: allFontSizesSame ? firstFontSize : 'mixed' };
|
|
41777
41752
|
};
|
|
41778
41753
|
render() {
|
|
41779
|
-
return (index.h(index.Host, { key: '
|
|
41754
|
+
return (index.h(index.Host, { key: '2febff4877dec0adfb5d71c5f98064739e1cb048', onKeyDown: this.handleKeyDown, onKeyUp: this.handleKeyUp }, this.dataItem && this.dataItem.length > 1 && (index.h("div", { key: '40ecbca3f11893001206f172fdcc095dcbb8cc80', class: 'ls-field-format-bar' }, index.h("div", { key: '50365c3d96ece24129314ed7362a12732c90adf8', class: "input-wrapper", "data-tooltip": "Font Family" }, index.h("ls-icon", { key: '7abb18b79ce54cd10d03ae2b6bf7755210c87e75', id: "selectLeadingIcon", name: "typeface" }), index.h("select", { key: '10dc6add8b33c982dec5807a711bb9c6bab69d65', id: "ls-toolbar-font-select", onChange: input => {
|
|
41780
41755
|
this.alter({ fontName: input.target.value });
|
|
41781
|
-
}, class: 'has-leading-icon' }, index.h("option", { key: '
|
|
41756
|
+
}, class: 'has-leading-icon' }, index.h("option", { key: '095097496e0a5570943ad483b628e35aae980ae7', disabled: true, selected: this.allElementsSame()?.fontName === 'mixed', value: 'mixed' }, "Mixed"), index.h("option", { key: 'bdec564e84e8856ba2a76a954c8619e265ace754', value: "arial" }, "Arial"), index.h("option", { key: 'fbd43ae7332189f128c56f92eb2533733680cd80', value: "liberation sans" }, "Liberation Sans"), index.h("option", { key: 'd0335e99d771789f722aaadf4230ccc31ea8a5df', value: "courier" }, "Courier"), index.h("option", { key: 'd9cc11757352ab6be9878b88b1c549c791c82779', value: "helvetica" }, "Helvetica"), index.h("option", { key: '3375f3d30fddd0d7de6b5b7f2ab9febd23166680', value: "verdana" }, "Verdana")), index.h("ls-icon", { key: '5188818c50510b4cc8da9bd7c98cde7f5b505642', id: "selectorIcon", name: "selector" })), index.h("div", { key: '4db7c26767369994c1d95100fc5f21751efd84b0', class: "input-wrapper", "data-tooltip": "Font Size" }, index.h("ls-icon", { key: 'e8c0eee85932d18bc845769e1e8ef6d5747cc347', id: "selectLeadingIcon", name: "typesize" }), index.h("input", { key: 'a3d24673e0a2dec7b6b1d54002c4cfd7015323d0', id: "ls-toolbar-font-size", type: 'number', min: "4", value: this.allElementsSame()?.fontSize, onChange: input => {
|
|
41782
41757
|
if (input.target.value === '')
|
|
41783
41758
|
return;
|
|
41784
41759
|
this.alter({ fontSize: input.target.value });
|
|
41785
|
-
}, class: 'has-leading-icon' })), index.h("div", { key: '
|
|
41760
|
+
}, class: 'has-leading-icon' })), index.h("div", { key: '118011caf609420d103dca5aedec499d0303eeda', class: 'button-group' }, index.h("button", { key: '5eed2838a98ede95838bf3133f8642b6ff60aecb', onClick: () => {
|
|
41786
41761
|
this.alter({ align: 'left' });
|
|
41787
|
-
}, "data-tooltip": "Align Text Left" }, index.h("ls-icon", { key: '
|
|
41762
|
+
}, "data-tooltip": "Align Text Left" }, index.h("ls-icon", { key: 'a06ba7d34c0ae7f44b02434b5deb1258d55f5a83', name: "menu-alt-2" })), index.h("button", { key: 'b9e6efe9f6320301386f64b8b1256eea01a142ab', onClick: () => {
|
|
41788
41763
|
this.alter({ align: 'center' });
|
|
41789
|
-
}, "data-tooltip": "Align Text Center" }, index.h("ls-icon", { key: '
|
|
41764
|
+
}, "data-tooltip": "Align Text Center" }, index.h("ls-icon", { key: 'bd8a286ea76add2e60093a245869d40785b6e2d4', name: "menu-alt-5" })), index.h("button", { key: '81cb6def72ee8d51e455291f93d349dc5eed4315', onClick: () => {
|
|
41790
41765
|
this.alter({ align: 'right' });
|
|
41791
|
-
}, "data-tooltip": "Align Text Right" }, index.h("ls-icon", { key: '
|
|
41766
|
+
}, "data-tooltip": "Align Text Right" }, index.h("ls-icon", { key: 'f11af16c93bad521bba0e1b4c0f4d5343e42d853', name: "menu-alt-3" }))))), this.dataItem && this.dataItem.length === 1 && (index.h("div", { key: '642496b309e0ea729063daa7f90d665a4b79e622', class: 'ls-field-format-bar' }, index.h("div", { key: '058d36a9258d3a839aecfd6e6a263fc3fa86d637', class: "input-wrapper", "data-tooltip": "Font Family" }, index.h("ls-icon", { key: '757aecdbe113df3391046735295e94eb762bfa7a', id: "selectorIcon", name: "selector" }), index.h("ls-icon", { key: '7dbc085ec4583952acc129d7bf90d0454a9593db', id: "selectLeadingIcon", name: "typeface" }), index.h("select", { key: '7bd9b7527286ff946aeef9ef6822f63efbfb51d9', id: "ls-toolbar-font-select", onChange: input => {
|
|
41792
41767
|
this.alter({ fontName: input.target.value });
|
|
41793
|
-
}, class: 'has-leading-icon' }, index.h("option", { key: '
|
|
41768
|
+
}, class: 'has-leading-icon' }, index.h("option", { key: '8360b7525a706d83fbb71c6360d720ecc7665c9f', value: "arial" }, "Arial"), index.h("option", { key: 'bb4b4aba366ed7b28cd30c8d09f6955443f21547', value: "liberation sans" }, "Liberation Sans"), index.h("option", { key: '1a25159c21514bbf65bccb351d366a8d8ddc4d6c', value: "courier" }, "Courier"), index.h("option", { key: 'f63e8cb76ea72af5ad5d2e947cbc34ef13cbf818', value: "helvetica" }, "Helvetica"), index.h("option", { key: 'f5c81a38eacce8c0e059a7b53d7c8b8b7f24524d', value: "verdana" }, "Verdana"))), index.h("div", { key: '9dd75e7f634664d54f227f8a14c02776ae77baa6', class: "input-wrapper", "data-tooltip": "Font Size" }, index.h("ls-icon", { key: '68b63c5e021facce3e62cd1e8dc6b61f28fb5be2', id: "selectLeadingIcon", name: "typesize" }), index.h("input", { key: '444572a1f8620c21e03570c5efbbde5938fb0882', id: "ls-toolbar-font-size", type: "number", min: "4", size: 4, value: this.dataItem[0].fontSize, onChange: input => {
|
|
41794
41769
|
if (input.target.value === '')
|
|
41795
41770
|
return;
|
|
41796
41771
|
this.alter({ fontSize: input.target.value });
|
|
41797
|
-
}, class: 'has-leading-icon' })), index.h("div", { key: '
|
|
41772
|
+
}, class: 'has-leading-icon' })), index.h("div", { key: '1e44265fe1d9584b064dd80cd1c99efd631ee05b', class: 'button-group' }, index.h("button", { key: '9eb6dcba91bc226f8e8b0096fb8e3195058710ff', onClick: () => {
|
|
41798
41773
|
this.alter({ align: 'left' });
|
|
41799
|
-
}, "data-tooltip": "Align Text Left" }, index.h("ls-icon", { key: '
|
|
41774
|
+
}, "data-tooltip": "Align Text Left" }, index.h("ls-icon", { key: '20414ba17f91b462979b78017d8af7180a33c34b', name: "menu-alt-2" })), index.h("button", { key: '6321ba075e9059a2c1ef3a4b052783686b265f03', onClick: () => {
|
|
41800
41775
|
this.alter({ align: 'center' });
|
|
41801
|
-
}, "data-tooltip": "Align Text Center" }, index.h("ls-icon", { key: '
|
|
41776
|
+
}, "data-tooltip": "Align Text Center" }, index.h("ls-icon", { key: '55cfc3f4653c6ca86d5fd7dbfe57c1076363552b', name: "menu-alt-5" })), index.h("button", { key: '35f0b7b03c2293f48f84bb011833be7514de46f7', onClick: () => {
|
|
41802
41777
|
this.alter({ align: 'right' });
|
|
41803
|
-
}, "data-tooltip": "Align Text Right" }, index.h("ls-icon", { key: '
|
|
41778
|
+
}, "data-tooltip": "Align Text Right" }, index.h("ls-icon", { key: '1d389afb29a9f96cb0ffe16bf129b3e5e7e153e9', name: "menu-alt-3" }))))), index.h("ls-tooltip", { key: '1453c1f8b125c9caf780bdcfb378878fd2cbbe27', id: "ls-tooltip-master" })));
|
|
41804
41779
|
}
|
|
41805
41780
|
static get watchers() { return {
|
|
41806
41781
|
"dataItem": ["selectFieldsHandler"]
|
|
@@ -41814,12 +41789,10 @@ const LsFieldPlacement = class {
|
|
|
41814
41789
|
constructor(hostRef) {
|
|
41815
41790
|
index.registerInstance(this, hostRef);
|
|
41816
41791
|
this.mutate = index.createEvent(this, "mutate", 7);
|
|
41817
|
-
this.update = index.createEvent(this, "update", 7);
|
|
41818
41792
|
}
|
|
41819
41793
|
get component() { return index.getElement(this); }
|
|
41820
41794
|
dataItem;
|
|
41821
41795
|
mutate;
|
|
41822
|
-
update;
|
|
41823
41796
|
isSingle(dt) {
|
|
41824
41797
|
return dt.length === undefined;
|
|
41825
41798
|
}
|
|
@@ -41844,13 +41817,11 @@ const LsFieldPlacement = class {
|
|
|
41844
41817
|
});
|
|
41845
41818
|
this.dataItem = diffs.map(d => d.data);
|
|
41846
41819
|
this.mutate.emit(diffs);
|
|
41847
|
-
this.update.emit(diffs);
|
|
41848
41820
|
}
|
|
41849
41821
|
else {
|
|
41850
41822
|
const singleDiff = { action: 'update', data: { ...this.dataItem, ...diff } };
|
|
41851
41823
|
this.dataItem = singleDiff.data;
|
|
41852
41824
|
this.mutate.emit([singleDiff]);
|
|
41853
|
-
this.update.emit([singleDiff]);
|
|
41854
41825
|
}
|
|
41855
41826
|
}
|
|
41856
41827
|
center() {
|
|
@@ -41869,7 +41840,7 @@ const LsFieldPlacement = class {
|
|
|
41869
41840
|
attachAllTooltips(this.component.shadowRoot);
|
|
41870
41841
|
}
|
|
41871
41842
|
render() {
|
|
41872
|
-
return (index.h(index.Host, { key: '
|
|
41843
|
+
return (index.h(index.Host, { key: 'c634a96d87d02843dbe72f677aa6e7b14694f581' }, this.isMultiple(this.dataItem) && (index.h("div", { key: '044ff815e3f26547f78bb2482e7e47b796066b3e', class: 'ls-field-properties-section' }, index.h("div", { key: 'cf68b63b5038dc0dcd7b415b14753772768cb20e', class: 'ls-field-properties-section-text' }, index.h("p", { key: '309b54d667bcfcd0d82fd0601836d9020bc1c549', class: 'ls-field-properties-section-title' }, "Location"), index.h("p", { key: '933ef9c922d40f5ec67369d2935c7470fc7a1d98', class: 'ls-field-properties-section-description' }, "Use coordinates to move your fields on the page")), index.h("div", { key: 'fad7b3df23e164bc0ac188e795a4cd5c34b21035', class: 'input-row' }, index.h("div", { key: '42bd70ecfbeee0532ab121ed3313450c65b2ec8b', class: 'input-wrapper' }, index.h("ls-icon", { key: '4bf6f52036de2c329cd3d1ad286fa01a4ec8f990', id: "selectLeadingIcon", name: "x-letter" }), index.h("input", { key: 'd81850eb0e5b7a7f95c36625a77a1410cd880ce7', type: "number", class: 'has-leading-icon', aria: "top-location", id: "top-location", onChange: e => this.alter({ left: e.target.value }) })), index.h("div", { key: '9ac1ceae38f27ccd59da01eda945fceedd267c0d', class: 'input-wrapper' }, index.h("ls-icon", { key: 'd967fac0657315ad403ef0068beab8d69df89cd7', id: "selectLeadingIcon", name: "y" }), index.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) && (index.h("div", { key: '5eb0b5f2e221377d12cb9c4dae3e62dfa375f56a', class: 'field-set' }, index.h("div", { key: '074e855bae1efabd0608f679b17f744c29d2c13c', class: 'ls-field-properties-section' }, index.h("div", { key: 'bbb011ac0c0e891254a356fcb27768a5f12ac551', class: 'ls-field-properties-section-text' }, index.h("p", { key: '6bf7a08225bf1ea325781fd9e5ad353d268a93d3', class: 'ls-field-properties-section-title' }, "Alignment"), index.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.")), index.h("div", { key: '5279c5a19011d2e3e10027d5ed252fe14b3c78a7', class: 'multi-button-group-row' }, index.h("div", { key: '8e89191e1f792dd1ee2aaee7b36730232d573c4e', class: 'button-group' }, index.h("button", { key: '3b3f60acb8a82eb8a551d52fae1e7c9162fefc2e', onClick: () => { this.alter({ left: 0 }); }, "data-tooltip": "Align Left" }, index.h("ls-icon", { key: '4e228bb4c09c9b00bab056bb496c12572f6b151a', name: "field-alignment-left" })), index.h("button", { key: '7a05f93a649be5f222c498edbbb93e32b725537c', onClick: () => { this.alter({ left: this.center() }); }, "data-tooltip": "Align Center" }, index.h("ls-icon", { key: 'b7a1d02377861f25d78f2d69586a5cf5b021ac5e', name: "field-alignment-centre" })), index.h("button", { key: 'ad8bc98aa32bea2be3da0d8374a5c8fd84448378', onClick: () => { this.alter({ left: this.right() }); }, "data-tooltip": "Align Right" }, index.h("ls-icon", { key: '7ea2cb0d65a64050cac2e06746a3044567f8ef30', name: "field-alignment-right" }))), index.h("div", { key: '276a46d5023fb0581c68b995f1ba990049b1707f', class: 'button-group' }, index.h("button", { key: '639559ce5ed812963a3c44e10d3afcc3f0b8ddd2', onClick: () => this.alter({ top: 0 }), "data-tooltip": "Align Top" }, index.h("ls-icon", { key: '699da10bf15c17cb15c4557aad53fbb8fed66852', name: "field-alignment-top" })), index.h("button", { key: '1b39193438fa81f8a49a8f312762060614de60df', onClick: () => { this.alter({ top: this.middle() }); }, "data-tooltip": "Align Middle" }, index.h("ls-icon", { key: 'ce845282439d102477a1a05910cd6bd15775942a', name: "field-alignment-middle" })), index.h("button", { key: 'b162767b02693c5961dfc84fafdcfb85912ea09e', onClick: () => { this.alter({ top: this.bottom() }); }, "data-tooltip": "Align Bottom" }, index.h("ls-icon", { key: '4ace10a21e3264b4236ff3618d4db5129bc6329a', name: "field-alignment-bottom" }))))), index.h("div", { key: 'e5f446913a0790e9e048c1343507b64c17572790', class: 'ls-field-properties-section' }, index.h("div", { key: '75d1af4c23dd81ee0c4db9cd92752c8d27cde953', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'edb2296be70eb3daebb56266e421592957b6c37b', class: 'ls-field-properties-section-title' }, "Location"), index.h("p", { key: '6315f4791e5a5ad707dba570417308e65b4e9a9e', class: 'ls-field-properties-section-description' }, "Use coordinates to move your fields on the page")), index.h("div", { key: '2c9dfe5c74dcad282fd216d3e300571722204a2a', class: 'input-row' }, index.h("div", { key: '6562ff2e2d84f36f709b69fd2f5b09eba8f36bc8', class: 'input-wrapper' }, index.h("ls-icon", { key: 'e845b49ad34a27e84bbeb33ab8bcd87d80fdda29', id: "selectLeadingIcon", name: "x-letter" }), index.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 }) })), index.h("div", { key: '7e6d15ebe386d96d0f13b555f3bdf917e1fd0831', class: 'input-wrapper' }, index.h("ls-icon", { key: 'a98e37e9fa71467ab4d13cbd8d38357311f1f225', id: "selectLeadingIcon", name: "y" }), index.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" })))), index.h("div", { key: 'cbe1a006c7963f3848f86321f5938426c8a6f066', class: 'ls-field-properties-section' }, index.h("div", { key: '661acc6cbc0a5e51bed406e20746e0b290af3768', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'a0d739ef2e67b863340f091322f233594938a1b6', class: 'ls-field-properties-section-title' }, "Distribution"), index.h("p", { key: '1991851f81de9de4431fd61d84e6b51eb484f96b', class: 'ls-field-properties-section-description' }, "Multi-select fields and evenly space them out")), index.h("div", { key: '8d44dfaf9fb36a3353e678fcda20d6e521bedcc0', class: 'button-group' }, index.h("button", { key: '169c38f14e14d0a7e35742a878ff992f1203265c', disabled: true, "data-tooltip": "Select multiple Fields to to access distribution controls" }, index.h("ls-icon", { key: '602ffcf4bc0abc0f78b841071833387a3b3db2ea', name: "field-distribute-vertically" })), index.h("button", { key: '81cbf088282c93b47e5aa367ce38fbea83a86b28', disabled: true, "data-tooltip": "Select multiple Fields to to access distribution controls" }, index.h("ls-icon", { key: '9b45920bd267d4b846475d3cd5196c27310d3482', name: "field-distribute-horizontally" })))), index.h("div", { key: '7ee0dbb4a04f2c85231c7a1e2abea068158dc679', class: 'ls-field-properties-section' }, index.h("div", { key: 'c9ad0439b1497431f6b6de46aad5edeee84842eb', class: 'ls-field-properties-section-text' }, index.h("p", { key: '50de6dcd1cad58aa989030b37aeb0e997963db05', class: 'ls-field-properties-section-title' }, "Gap"), index.h("p", { key: '7add4b16b05b484c4033309286ad1eae9770de45', class: 'ls-field-properties-section-description' }, "Define the exact gap between multi-select fields.")), index.h("div", { key: '529a5c5a0f098f4f46a0025836ec75cf5553336a', class: 'input-row' }, index.h("div", { key: '2784028e38a8bcac7e0527b8fe2a727a35204056', class: 'input-wrapper', "data-tooltip": "Select multiple Fields to to access gap controls" }, index.h("ls-icon", { key: '1daf9dba08891570496a039667a007d7b0f6c113', id: "selectLeadingIconDisabled", name: "field-distribute-vertically" }), index.h("input", { key: '8fbba7e8ac95e7b060003d735021a3fcfe4ee1fe', type: "number", value: "0", class: 'has-leading-icon', aria: "vertical-gap", id: "vertical-gap", disabled: true })), index.h("div", { key: 'dafd6d4add86fb81ef89b57c1761dd685577924b', class: 'input-wrapper', "data-tooltip": "Select multiple Fields to to access gap controls" }, index.h("ls-icon", { key: '45e20ce1cb261cfbaa3566bf407affb6d2630dd0', id: "selectLeadingIconDisabled", name: "field-distribute-horizontally" }), index.h("input", { key: 'a8711242e79a07b3a31eb53464304607dbb45607', type: "number", value: "0", class: 'has-leading-icon', aria: "horizontal-gap", id: "horizontal-gap", disabled: true })))))), index.h("ls-tooltip", { key: 'e852290e234a73d02f5307dab93b5c94ff401c83', id: "ls-tooltip-master" })));
|
|
41873
41844
|
}
|
|
41874
41845
|
};
|
|
41875
41846
|
LsFieldPlacement.style = lsFieldPlacementCss();
|
|
@@ -41929,12 +41900,10 @@ const LsFieldPropertiesAdvanced = class {
|
|
|
41929
41900
|
constructor(hostRef) {
|
|
41930
41901
|
index.registerInstance(this, hostRef);
|
|
41931
41902
|
this.mutate = index.createEvent(this, "mutate", 7);
|
|
41932
|
-
this.update = index.createEvent(this, "update", 7);
|
|
41933
41903
|
}
|
|
41934
41904
|
dataItem;
|
|
41935
41905
|
expanded = false;
|
|
41936
41906
|
mutate;
|
|
41937
|
-
update;
|
|
41938
41907
|
isSingle(dt) {
|
|
41939
41908
|
return dt.length === undefined;
|
|
41940
41909
|
}
|
|
@@ -41960,7 +41929,6 @@ const LsFieldPropertiesAdvanced = class {
|
|
|
41960
41929
|
diffs = [{ action: 'update', data: { ...this.dataItem, ...diff } }];
|
|
41961
41930
|
}
|
|
41962
41931
|
if (bounceDelay === 0) {
|
|
41963
|
-
this.update.emit(diffs);
|
|
41964
41932
|
this.mutate.emit(diffs);
|
|
41965
41933
|
}
|
|
41966
41934
|
else {
|
|
@@ -41972,7 +41940,6 @@ const LsFieldPropertiesAdvanced = class {
|
|
|
41972
41940
|
if (this.titletimer)
|
|
41973
41941
|
clearTimeout(this.titletimer);
|
|
41974
41942
|
this.titletimer = setTimeout(() => {
|
|
41975
|
-
this.update.emit(diffs);
|
|
41976
41943
|
this.mutate.emit(diffs);
|
|
41977
41944
|
}, delay);
|
|
41978
41945
|
}
|
|
@@ -41986,10 +41953,10 @@ const LsFieldPropertiesAdvanced = class {
|
|
|
41986
41953
|
return '';
|
|
41987
41954
|
}
|
|
41988
41955
|
render() {
|
|
41989
|
-
return (index.h(index.Host, { key: '
|
|
41956
|
+
return (index.h(index.Host, { key: 'e9ac5dd173d35533caa4cd5db2f49b39839619ba' }, index.h("div", { key: 'af379f38f2482561d4f9ad20261ba2283b902084', class: 'expand-fields-row', onClick: () => (this.expanded = !this.expanded) }, index.h("ls-icon", { key: 'a512c02d85d63df763ba2fe7c20ef235f1c1ff5e', name: this.expanded ? 'expand' : 'collapse', size: "1.25rem", solid: true }), index.h("p", { key: '4e5fd01f51c5afe298712e0335b3aba3aa1d703c' }, "Advanced Properties")), this.expanded && (index.h("div", { key: '1bf64e8cad73f6a2c1eaae417b33199d050b3313', class: 'field-set' }, index.h("ls-props-section", { key: '909312980807fd6ca0919147e6e4739f0b3ec44e', sectionTitle: "Field Order", sectionDescription: "Determines what order fields will be filled in by the user" }, index.h("input", { key: '4f970be565a2a38076def87d0c1b21db197ba9ba', value: this.getValue('fieldOrder'), type: "number", placeholder: "eg. 1", onInput: e => {
|
|
41990
41957
|
console.log(e);
|
|
41991
41958
|
this.alter({ fieldOrder: e.target.value }, 100);
|
|
41992
|
-
}, onChange: () => { console.log('onchange'); } })), index.h("ls-props-section", { key: '
|
|
41959
|
+
}, onChange: () => { console.log('onchange'); } })), index.h("ls-props-section", { key: 'd8aebb59d99983d424b4aceb9f1c9c7993a73f74', sectionTitle: "Ref. Name" }, index.h("input", { key: 'd685a14ca825dc2937199d9796406ff1c3e3c170', value: this.getValue('link'), placeholder: "eg. checkbox group", onInput: e => this.alter({ link: e.target.value }, 300) })), index.h("ls-props-section", { key: 'b8f6177da6587e0cde03e4e337241aa90bba900d', sectionTitle: "Link Type", sectionDescription: "Determines in what way this field is linked to other fields" }, index.h("select", { key: 'c5da59c1417b54ee5df7569fb5ba1f3fe7ccdbe5', onChange: e => this.alter({ linkType: e.target.value }), name: "Link Field", "aria-label": "Link Field" }, index.h("option", { key: '710d749eb5e84d8366b020d2ef941e4325aa84e7', value: "0", selected: this.getValue('linkType') === '0' }, "None"), index.h("option", { key: '44f2fb1516921a1b9b52597e64106ace62bd5093', value: "1", selected: this.getValue('linkType') === '1' }, "One of a group (e.g. select one checkbox)"), index.h("option", { key: '85797cf5c3e386a6d5666c786c9df90b4634dd4f', value: "2", selected: this.getValue('linkType') === '2' }, "Add to a total"), index.h("option", { key: '4d6280c6fb0b674ece811c9b211ce9ad21262b64', value: "3", selected: this.getValue('linkType') === '3' }, "Make this conditional upon..."))), index.h("ls-props-section", { key: '72897363a045674a9653588cf5a0903ede05eff2', sectionTitle: "Link Value", sectionDescription: "Fields with the same Link Value will be linked together" }, index.h("input", { key: 'b3a0bfd715ea6d402072e828baf20022b562992c', value: this.getValue('logicAction'), width: "30", placeholder: "eg. checkbox group", onChange: e => this.alter({ logicAction: e.target.value }) }))))));
|
|
41993
41960
|
}
|
|
41994
41961
|
};
|
|
41995
41962
|
LsFieldPropertiesAdvanced.style = lsFieldPropertiesAdvancedCss();
|
|
@@ -42176,7 +42143,7 @@ const LsFieldPropertiesMultiple = class {
|
|
|
42176
42143
|
border: `1px solid ${defaultRolePalette[this.allSignersSame().signer % 100].s60}`,
|
|
42177
42144
|
color: defaultRolePalette[this.allSignersSame().signer % 100].s60,
|
|
42178
42145
|
background: defaultRolePalette[this.allSignersSame().signer % 100].s10,
|
|
42179
|
-
} }, index.h("ls-icon", { key: '7bdd33ecf47ff7f282031091f06d7cde704819da', name: getFieldIcon(this.allElementsSame().elementType), size: "1.25rem" })), index.h("p", { key: 'b1d773176ea02bd27d46cea0c5b997ebe5c575fc', class: 'ls-field-type-name' }, this.dataItem.length, " ", this.allElementsSame().elementType, " ", 'Fields')))), index.h("div", { key: '398a8ddf0fdb5466baf13d3185746d4515bf8de6', class: 'ls-field-properties-section row' }, index.h("div", { key: '2777add4b21cefd15d430f0a64cd4888e53569ca', class: 'ls-field-properties-section-text' }, index.h("p", { key: '91672c9039cc267bbfe5b6c82ec1b415028d16ba', class: 'ls-field-properties-section-title' }, "Required Field")), index.h("ls-toggle", { key: 'e1581cbd990fd085f9164abf3ecaae4f608eaf70', onValueChange: (ev) => this.alter({ optional: !ev.detail }), checked: !this.allFieldsOptional().optional, indeterminate: this.allFieldsOptional().isSame === false })), index.h("div", { key: '654f98a2b3fdbfc1f75ebbc6fdcd4924c34d0f77', class: 'ls-field-properties-section' }, index.h("div", { key: 'c8379e6ac365ee97c77a2fc62f52691386e9e9fc', class: 'ls-field-properties-section-text' }, index.h("p", { key: '927458b6483aca60507bb384c6b8183e64fa0560', class: 'ls-field-properties-section-title' }, "Field Label"), index.h("p", { key: '6c26748b388121507b19d8a83fdaf82f5f461bbb', class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), index.h("input", { key: '23309345964c6cabdf7342b669eebec4b3506363', value: this.allLabelsSame().label, onInput: (e) => this.alter({ label: e.target.value }), width: "30", placeholder: "eg. Sign Here" }))), index.h("div", { key: '81fb6ba5642271ef254e73acc510ac757f647e6c', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: 'c24eefb1f599624eaa6b6fee9b9c938a99f697f8', dataItem: this.dataItem }), index.h("ls-field-size", { key: '6fd636331dd35bf6b02ea2769c88864773a67ae6', dataItem: this.dataItem })), index.h("div", { key: '88875c4d8fe159a136ad39429be909f4cd25d620', class: 'field-set', slot: "placement" }, index.h("ls-field-alignment", { key: '8e9601b8157a65ed12dcde1e5a76f9234b111137', dataItem: this.dataItem }), index.h("ls-field-placement", { key: '349b804d481e72abb977b0b35ed475c679be70cc', dataItem: this.dataItem }), index.h("ls-field-distribute", { key: 'c0611739c68d01c64e9b74c2ff0e8a48758b4730', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: '
|
|
42146
|
+
} }, index.h("ls-icon", { key: '7bdd33ecf47ff7f282031091f06d7cde704819da', name: getFieldIcon(this.allElementsSame().elementType), size: "1.25rem" })), index.h("p", { key: 'b1d773176ea02bd27d46cea0c5b997ebe5c575fc', class: 'ls-field-type-name' }, this.dataItem.length, " ", this.allElementsSame().elementType, " ", 'Fields')))), index.h("div", { key: '398a8ddf0fdb5466baf13d3185746d4515bf8de6', class: 'ls-field-properties-section row' }, index.h("div", { key: '2777add4b21cefd15d430f0a64cd4888e53569ca', class: 'ls-field-properties-section-text' }, index.h("p", { key: '91672c9039cc267bbfe5b6c82ec1b415028d16ba', class: 'ls-field-properties-section-title' }, "Required Field")), index.h("ls-toggle", { key: 'e1581cbd990fd085f9164abf3ecaae4f608eaf70', onValueChange: (ev) => this.alter({ optional: !ev.detail }), checked: !this.allFieldsOptional().optional, indeterminate: this.allFieldsOptional().isSame === false })), index.h("div", { key: '654f98a2b3fdbfc1f75ebbc6fdcd4924c34d0f77', class: 'ls-field-properties-section' }, index.h("div", { key: 'c8379e6ac365ee97c77a2fc62f52691386e9e9fc', class: 'ls-field-properties-section-text' }, index.h("p", { key: '927458b6483aca60507bb384c6b8183e64fa0560', class: 'ls-field-properties-section-title' }, "Field Label"), index.h("p", { key: '6c26748b388121507b19d8a83fdaf82f5f461bbb', class: 'ls-field-properties-section-description' }, "Add a label to clarify the information required from the Recipient.")), index.h("input", { key: '23309345964c6cabdf7342b669eebec4b3506363', value: this.allLabelsSame().label, onInput: (e) => this.alter({ label: e.target.value }), width: "30", placeholder: "eg. Sign Here" }))), index.h("div", { key: '81fb6ba5642271ef254e73acc510ac757f647e6c', class: 'field-set', slot: "dimensions" }, index.h("ls-field-dimensions", { key: 'c24eefb1f599624eaa6b6fee9b9c938a99f697f8', dataItem: this.dataItem }), index.h("ls-field-size", { key: '6fd636331dd35bf6b02ea2769c88864773a67ae6', dataItem: this.dataItem })), index.h("div", { key: '88875c4d8fe159a136ad39429be909f4cd25d620', class: 'field-set', slot: "placement" }, index.h("ls-field-alignment", { key: '8e9601b8157a65ed12dcde1e5a76f9234b111137', dataItem: this.dataItem }), index.h("ls-field-placement", { key: '349b804d481e72abb977b0b35ed475c679be70cc', dataItem: this.dataItem }), index.h("ls-field-distribute", { key: 'c0611739c68d01c64e9b74c2ff0e8a48758b4730', dataItem: this.dataItem }))), index.h("ls-field-footer", { key: 'ac9eb4498ff3fe01a637f6efe793f1ed3fc8bc1e', dataItem: this.dataItem }), index.h("slot", { key: 'c7325b861d666c153aa043980901761a90f74a23' })));
|
|
42180
42147
|
}
|
|
42181
42148
|
};
|
|
42182
42149
|
LsFieldPropertiesMultiple.style = lsFieldPropertiesMultipleCss();
|
|
@@ -42226,12 +42193,10 @@ const LsFieldSize = class {
|
|
|
42226
42193
|
constructor(hostRef) {
|
|
42227
42194
|
index.registerInstance(this, hostRef);
|
|
42228
42195
|
this.mutate = index.createEvent(this, "mutate", 7);
|
|
42229
|
-
this.update = index.createEvent(this, "update", 7);
|
|
42230
42196
|
}
|
|
42231
42197
|
get component() { return index.getElement(this); }
|
|
42232
42198
|
dataItem;
|
|
42233
42199
|
mutate;
|
|
42234
|
-
update;
|
|
42235
42200
|
// Send one or more mutations up the chain
|
|
42236
42201
|
// The source of the chain fires the mutation
|
|
42237
42202
|
alter(diff) {
|
|
@@ -42240,13 +42205,12 @@ const LsFieldSize = class {
|
|
|
42240
42205
|
});
|
|
42241
42206
|
this.dataItem = diffs.map(d => d.data);
|
|
42242
42207
|
this.mutate.emit(diffs);
|
|
42243
|
-
this.update.emit(diffs);
|
|
42244
42208
|
}
|
|
42245
42209
|
componentDidLoad() {
|
|
42246
42210
|
attachAllTooltips(this.component.shadowRoot);
|
|
42247
42211
|
}
|
|
42248
42212
|
render() {
|
|
42249
|
-
return (index.h(index.Host, { key: '
|
|
42213
|
+
return (index.h(index.Host, { key: 'dbe299779d6c711ab4c573046c0a28c85a031c00' }, index.h("div", { key: 'fc9be902cb356590f7c620625f1f47fabb2cf67c', class: 'ls-field-properties-section' }, index.h("div", { key: '5f1ddddb7199cea1285d0ea4d1bf9a59a20ae6d9', class: 'ls-field-properties-section-text' }, index.h("p", { key: 'b19c54d239899f6185962b59e9c92294fe0afa54', class: 'ls-field-properties-section-title' }, "Scale and Resize"), index.h("p", { key: 'fc2b7c80220327a722e4086f9a5039aa80cb4860', class: 'ls-field-properties-section-description' }, "Multi-select fields and match their dimensions")), index.h("div", { key: '167632c88d912240869b9701870e90eb48e69fd4', class: 'button-group' }, index.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" }, index.h("ls-icon", { key: 'faa63bf4691da3cebcddae34b3677e141ff4db9a', name: "field-scale" })), index.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" }, index.h("ls-icon", { key: '3a477a26e144a72081bfb0522a84dcee77a396c9', name: "field-match-width" })), index.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" }, index.h("ls-icon", { key: 'e09a2f40e7bc67276fe72b2f79a841509d565818', name: "field-match-height" })))), index.h("slot", { key: 'adf05acf2c42816ba4afc209dd28a7020f4ef70d' }), index.h("ls-tooltip", { key: 'f9216b38ca5b304c81ea41fb24ef63b956a8712d', id: "ls-tooltip-master" })));
|
|
42250
42214
|
}
|
|
42251
42215
|
};
|
|
42252
42216
|
LsFieldSize.style = lsFieldSizeCss();
|
|
@@ -50948,7 +50912,6 @@ const LsParticipantCard = class {
|
|
|
50948
50912
|
constructor(hostRef) {
|
|
50949
50913
|
index.registerInstance(this, hostRef);
|
|
50950
50914
|
this.mutate = index.createEvent(this, "mutate", 7);
|
|
50951
|
-
this.update = index.createEvent(this, "update", 7);
|
|
50952
50915
|
this.opened = index.createEvent(this, "opened", 7);
|
|
50953
50916
|
this.addParticipant = index.createEvent(this, "addParticipant", 7);
|
|
50954
50917
|
}
|
|
@@ -50958,7 +50921,6 @@ const LsParticipantCard = class {
|
|
|
50958
50921
|
editable = false;
|
|
50959
50922
|
template;
|
|
50960
50923
|
mutate;
|
|
50961
|
-
update;
|
|
50962
50924
|
opened;
|
|
50963
50925
|
// Send one or more mutations up the chain
|
|
50964
50926
|
// The source of the chain fires the mutation
|
|
@@ -50974,15 +50936,12 @@ const LsParticipantCard = class {
|
|
|
50974
50936
|
this.labeltimer = setTimeout(() => {
|
|
50975
50937
|
const diffs = [{ action: 'update', data }];
|
|
50976
50938
|
this.mutate.emit(diffs);
|
|
50977
|
-
this.update.emit(diffs);
|
|
50978
50939
|
}, delay);
|
|
50979
50940
|
}
|
|
50980
50941
|
deleteHandler(role) {
|
|
50981
|
-
this.update.emit([{ action: 'delete', data: role }]);
|
|
50982
50942
|
this.mutate.emit([{ action: 'delete', data: role }]);
|
|
50983
50943
|
}
|
|
50984
50944
|
swapHandler(role1, role2) {
|
|
50985
|
-
this.update.emit([{ action: 'swap', data: role1, data2: role2 }]);
|
|
50986
50945
|
this.mutate.emit([{ action: 'swap', data: role1, data2: role2 }]);
|
|
50987
50946
|
}
|
|
50988
50947
|
modeHandler(_editable) {
|
|
@@ -51002,36 +50961,36 @@ const LsParticipantCard = class {
|
|
|
51002
50961
|
render() {
|
|
51003
50962
|
const participantFields = this.template.elementConnection.templateElements.filter(f => f.signer === this.signer.signerIndex) || [];
|
|
51004
50963
|
const child = this.template.roles.find(r => r.signerParent === this.signer.id);
|
|
51005
|
-
return (index.h(index.Host, { key: '
|
|
50964
|
+
return (index.h(index.Host, { key: '6544ccd5c1f82dbf34c009cfebd4971e5296dafe' }, index.h("div", { key: '94c77eb16f286db1d9f8d2ef7a221bf04803ba25', class: 'participant-card' + (child ? ' top-card' : this.signer?.signerParent ? ' bottom-card' : ' full-card'), style: {
|
|
51006
50965
|
background: defaultRolePalette[this.signer?.signerIndex % 100].s10,
|
|
51007
50966
|
border: `1px solid ${defaultRolePalette[this.signer?.signerIndex % 100].s60}`,
|
|
51008
50967
|
marginTop: this.signer.roleType === 'WITNESS' ? '-0.813rem' : '0',
|
|
51009
50968
|
}, onMouseEnter: e => e.currentTarget.querySelector('.button-set')?.classList.remove('hidden'), onMouseLeave: e => e.currentTarget.querySelector('.button-set')?.classList.add('hidden'), onDblClick: () => {
|
|
51010
50969
|
this.editable = true;
|
|
51011
|
-
} }, index.h("div", { key: '
|
|
50970
|
+
} }, index.h("div", { key: '210f95f85e9c270924fbeddb018f5fa1c21b72cc', class: 'participant-card-inner' }, index.h("div", { key: '137f2a79ce29db51973ec1bdbebc6e9fe28d3abb', class: 'participant-card-top-items' }, index.h("div", { key: '8874fe0285e86cf57e3c10e2848f909ca9afa87b', class: 'role-label', style: {
|
|
51012
50971
|
background: defaultRolePalette[this.signer?.signerIndex % 100].s20,
|
|
51013
50972
|
color: defaultRolePalette[this.signer?.signerIndex % 100].s90,
|
|
51014
|
-
} }, index.h("ls-icon", { key: '
|
|
50973
|
+
} }, index.h("ls-icon", { key: 'a06597041afdee46ec2953b8908819ce17e642f3', name: this.signer?.roleType === 'APPROVER' ? 'check-circle' : this.signer?.roleType === 'SIGNER' ? 'signature' : 'eye' }), (this.signer?.ordinal || '')), index.h("div", { key: '719fde9663b77fcd59a480c7549ab807111e6ca6', class: 'button-set hidden' }, this.index > 0 && this.signer.roleType !== 'WITNESS' && (index.h("div", { key: '988f376f318682781f5a462216bb9b95445478db', class: "innerButton", onClick: () => {
|
|
51015
50974
|
this.swapHandler(this.signer, this.template.roles[this.index - 1]);
|
|
51016
50975
|
}, style: {
|
|
51017
50976
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
51018
50977
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
51019
|
-
}, "data-tooltip": "Move Up" }, index.h("ls-icon", { key: '
|
|
50978
|
+
}, "data-tooltip": "Move Up" }, index.h("ls-icon", { key: '0d63c5756bc03f707048bf12c051fedf48efbfba', name: "arrow-up", size: "1.125rem" }))), this.signer.signerIndex !== this.template.roles.length && this.signer.roleType !== 'WITNESS' && (index.h("div", { key: '69a89fda199b1059bff753e4914e32f11aa9e0f3', class: "innerButton", onClick: () => {
|
|
51020
50979
|
this.swapHandler(this.signer, this.template.roles[this.index + 1]);
|
|
51021
50980
|
}, style: {
|
|
51022
50981
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
51023
50982
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
51024
|
-
}, "data-tooltip": "Move Down" }, index.h("ls-icon", { key: '
|
|
50983
|
+
}, "data-tooltip": "Move Down" }, index.h("ls-icon", { key: '8709b37acbffc8fb0044e437827c8cf549dba129', name: "arrow-down", size: "1.125rem" }))), index.h("div", { key: 'f92fee2c1179c0bafb1d2e03b88dfab22ec7411b', class: "innerButton", onClick: () => {
|
|
51025
50984
|
this.editable = !this.editable;
|
|
51026
50985
|
}, style: {
|
|
51027
50986
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
51028
50987
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
51029
|
-
} }, index.h("ls-icon", { key: '
|
|
50988
|
+
} }, index.h("ls-icon", { key: '0a06776685d90355af3e6a619e2bfe8e34e95196', name: this.editable ? 'check' : 'pencil-alt', size: "1.125rem", "data-tooltip": this.editable ? "Save Changes" : "Edit Participant" })), index.h("div", { key: '396f7f5c35c35d6def57a3562c86680d8fb004df', class: "innerButton", onClick: () => {
|
|
51030
50989
|
this.deleteHandler(this.signer);
|
|
51031
50990
|
}, style: {
|
|
51032
50991
|
'--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
|
|
51033
50992
|
'--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
|
|
51034
|
-
}, "data-tooltip": "Delete Participant", "data-tooltip-placement": "top-end" }, index.h("ls-icon", { key: '
|
|
50993
|
+
}, "data-tooltip": "Delete Participant", "data-tooltip-placement": "top-end" }, index.h("ls-icon", { key: 'b08c1a184b9f3e7bc13713d19de94ad1dbe89254', name: "trash", size: "1.125rem" })))), this.editable ? (index.h("div", { class: 'participant-card-inner' }, this.signer?.roleType !== 'WITNESS' ? (index.h("ls-input-wrapper", { select: true, leadingIcon: this.signer?.roleType === 'APPROVER' ? 'check-circle' : 'signature' }, index.h("select", { name: "roleType", id: "role-type", class: 'has-leading-icon', onChange: e => this.alter({ roleType: e.target.value }), disabled: child ? true : false }, index.h("option", { value: "APPROVER", selected: this.signer?.roleType === 'APPROVER' }, "Approver"), index.h("option", { value: "SIGNER", selected: this.signer?.roleType === 'SIGNER' }, "Signer")))) : (index.h("ls-input-wrapper", { leadingIcon: "eye" }, index.h("input", { name: "roleType", id: "role-type", class: 'has-leading-icon', disabled: true, value: "Witness" }))), index.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 => {
|
|
51035
50994
|
if (e.key === 'Enter' || e.keyCode === 13)
|
|
51036
50995
|
this.editable = false;
|
|
51037
50996
|
} }), this.signer?.roleType === 'SIGNER' && !child ? (index.h("button", { class: 'tertiary', onClick: () => this.addParticipant.emit({ type: 'WITNESS', parent: this.signer.id }) }, index.h("ls-icon", { name: "plus", style: { marginRight: '0.25rem' } }), "Add Witness")) : this.signer?.roleType === 'SIGNER' && child ? (index.h("button", { class: 'destructive', onClick: () => {
|
|
@@ -51046,7 +51005,7 @@ const LsParticipantCard = class {
|
|
|
51046
51005
|
} }, this.signer.roleType.toLowerCase()), this.signer?.roleType !== 'APPROVER' && (index.h("div", { class: 'role-label fields', style: {
|
|
51047
51006
|
background: participantFields.length === 0 ? defaultRolePalette[this.signer?.signerIndex % 100].s60 : defaultRolePalette[this.signer?.signerIndex % 100].s20,
|
|
51048
51007
|
color: participantFields.length === 0 ? 'white' : defaultRolePalette[this.signer?.signerIndex % 100].s90,
|
|
51049
|
-
} }, participantFields.length === 0 && index.h("ls-icon", { name: "exclamation-circle", size: "1rem", style: { marginRight: '0.125rem' } }), participantFields.length === 0 ? 'Signature Required' : `${participantFields.length} ${participantFields.length === 1 ? 'Field' : 'Fields'}`)))))), index.h("slot", { key: '
|
|
51008
|
+
} }, participantFields.length === 0 && index.h("ls-icon", { name: "exclamation-circle", size: "1rem", style: { marginRight: '0.125rem' } }), participantFields.length === 0 ? 'Signature Required' : `${participantFields.length} ${participantFields.length === 1 ? 'Field' : 'Fields'}`)))))), index.h("slot", { key: '7a6f8bd6073c0d6c5ef72fe60f0316e89f9ca6eb' }), index.h("ls-tooltip", { key: '57ee7a3ab8577a205ac07ededa3e71c93b2fa832', id: "ls-tooltip-master" })));
|
|
51050
51009
|
}
|
|
51051
51010
|
static get watchers() { return {
|
|
51052
51011
|
"editable": ["modeHandler"]
|
|
@@ -51406,13 +51365,11 @@ const LsTitleInput = class {
|
|
|
51406
51365
|
constructor(hostRef) {
|
|
51407
51366
|
index.registerInstance(this, hostRef);
|
|
51408
51367
|
this.mutate = index.createEvent(this, "mutate", 7);
|
|
51409
|
-
this.update = index.createEvent(this, "update", 7);
|
|
51410
51368
|
}
|
|
51411
51369
|
get component() { return index.getElement(this); }
|
|
51412
51370
|
template;
|
|
51413
51371
|
editTitle = false;
|
|
51414
51372
|
mutate;
|
|
51415
|
-
update;
|
|
51416
51373
|
// Send one or more mutations up the chain
|
|
51417
51374
|
// The source of the chain fires the mutation
|
|
51418
51375
|
// NOTE this alter is debounced to account for typing
|
|
@@ -51426,12 +51383,11 @@ const LsTitleInput = class {
|
|
|
51426
51383
|
this.titletimer = setTimeout(() => {
|
|
51427
51384
|
this.template = { ...this.template, ...diff };
|
|
51428
51385
|
const diffs = [{ action: 'update', data: this.template }];
|
|
51429
|
-
this.update.emit(diffs);
|
|
51430
51386
|
this.mutate.emit(diffs);
|
|
51431
51387
|
}, delay);
|
|
51432
51388
|
}
|
|
51433
51389
|
render() {
|
|
51434
|
-
return (index.h(index.Host, { key: '
|
|
51390
|
+
return (index.h(index.Host, { key: 'df0dddae77292b9d87eeca2b53137055abd1b732' }, this.editTitle ? (index.h("div", { style: { display: 'flex', gap: '0.5rem', alignItems: 'center' } }, index.h("input", { value: this.template?.title, style: { height: '1.25rem', padding: '0 0.25rem', width: 'fit-content' }, onInput: e => {
|
|
51435
51391
|
e.preventDefault();
|
|
51436
51392
|
this.alter({ title: e.target.value });
|
|
51437
51393
|
}, onKeyUp: e => {
|
|
@@ -51507,10 +51463,9 @@ const LsToolbar = class {
|
|
|
51507
51463
|
});
|
|
51508
51464
|
this.dataItem = diffs.map(d => d.data);
|
|
51509
51465
|
this.mutate.emit(diffs);
|
|
51510
|
-
this.update.emit(diffs);
|
|
51511
51466
|
}
|
|
51512
51467
|
render() {
|
|
51513
|
-
return (index.h(index.Host, { key: '
|
|
51468
|
+
return (index.h(index.Host, { key: '55d84a2c19190fb4149d658151ccdb369b32da84' }, (this.dataItem && this.dataItem.length > 1) ? (index.h("div", { class: 'rowbox' }, index.h("ls-field-format", { dataItem: this?.dataItem }))) : (index.h("div", { class: 'rowbox' }, index.h("ls-field-format", { dataItem: this?.dataItem, style: { visibility: this.dataItem && this.dataItem.length === 1 ? 'visible' : 'hidden' } }), index.h("ls-participant-select", { id: "ls-participant-select", roles: this.template?.roles, style: { display: this.dataItem && this.dataItem.length === 1 ? 'none' : 'block' } }))), index.h("ls-tooltip", { key: 'c700f50c2fe2829bc653a5a8c791f642ce966a8f', id: "ls-tooltip-master" }), index.h("slot", { key: '09a19a62da326c4131cdbddced63de71106da892' })));
|
|
51514
51469
|
}
|
|
51515
51470
|
};
|
|
51516
51471
|
LsToolbar.style = lsToolbarCss();
|