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