@creaditor/newsletter-starterkit 1.0.15 → 1.0.17

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 (37) hide show
  1. package/dist/1290.creaditor.bundle.js +1 -0
  2. package/dist/1290.creaditor.bundle.js.gz +0 -0
  3. package/dist/1867.creaditor.bundle.js +1 -1
  4. package/dist/1867.creaditor.bundle.js.gz +0 -0
  5. package/dist/3622.creaditor.bundle.js +5 -5
  6. package/dist/3622.creaditor.bundle.js.gz +0 -0
  7. package/dist/5279.creaditor.bundle.js +1023 -0
  8. package/dist/5279.creaditor.bundle.js.gz +0 -0
  9. package/dist/5674.creaditor.bundle.js +29 -0
  10. package/dist/5674.creaditor.bundle.js.gz +0 -0
  11. package/dist/5936.creaditor.bundle.js +986 -0
  12. package/dist/5936.creaditor.bundle.js.gz +0 -0
  13. package/dist/6085.creaditor.bundle.js +1 -0
  14. package/dist/6085.creaditor.bundle.js.gz +0 -0
  15. package/dist/6652.creaditor.bundle.js +1 -1
  16. package/dist/6652.creaditor.bundle.js.gz +0 -0
  17. package/dist/6737.creaditor.bundle.js +26 -16
  18. package/dist/6737.creaditor.bundle.js.gz +0 -0
  19. package/dist/7911.creaditor.bundle.js +2 -2
  20. package/dist/7911.creaditor.bundle.js.gz +0 -0
  21. package/dist/7946.creaditor.bundle.js +1 -1
  22. package/dist/7946.creaditor.bundle.js.gz +0 -0
  23. package/dist/7988.creaditor.bundle.js +1 -1
  24. package/dist/7988.creaditor.bundle.js.gz +0 -0
  25. package/dist/901.creaditor.bundle.js +1 -1
  26. package/dist/901.creaditor.bundle.js.gz +0 -0
  27. package/dist/9530.creaditor.bundle.js +33 -36
  28. package/dist/9530.creaditor.bundle.js.gz +0 -0
  29. package/dist/9766.creaditor.bundle.js +24 -16
  30. package/dist/9766.creaditor.bundle.js.gz +0 -0
  31. package/dist/9800.creaditor.bundle.js +1 -1
  32. package/dist/9800.creaditor.bundle.js.gz +0 -0
  33. package/dist/creaditor.bundle.js +397 -263
  34. package/dist/creaditor.bundle.js.gz +0 -0
  35. package/dist/service-worker.js +1 -1
  36. package/dist/service-worker.js.gz +0 -0
  37. package/package.json +1 -1
Binary file
@@ -0,0 +1,29 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[5674],{55674:(t,e,i)=>{i.r(e),i.d(e,{default:()=>r});var o=i(56666),s=i(21293);class n extends s.oi{constructor(){super(),this.onInput=this.onInput.bind(this),this.isLocked=!0,this.top=0,this.left=0,this.bottom=0,this.right=0}connectedCallback(){super.connectedCallback()}onInput(t,e){t.preventDefault();const i=t.target.value,o=i;this.isLocked?(this.top=i,this.left=i,this.bottom=i,this.right=i,this.json={top:o,left:o,bottom:o,right:o}):(this.top=parseInt(this.top||0)||0,this.left=parseInt(this.left||0)||0,this.bottom=parseInt(this.bottom||0)||0,this.right=parseInt(this.right||0)||0,this.json={top:parseInt(this.top||0)||0,left:parseInt(this.left||0)||0,bottom:parseInt(this.bottom||0)||0,right:parseInt(this.right||0)||0},this.json[e]=o),this.value=i,this.directionKey=e;const s=new UIEvent("input",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(s)}resolveIcon(t){let e;switch(t){case"top":e="arrowUp";break;case"left":e="arrowLeft";break;case"bottom":e="arrowDown";break;case"right":e="arrowRight"}return s.dy`<cdtr-icon
2
+ width="15"
3
+ height="15"
4
+ icon="${e}"
5
+ ></cdtr-icon>`}onChangeLock(){this.isLocked=!this.isLocked}render(){this.isLocked=this.top===this.left&&this.bottom===this.right&&this.top===this.bottom;this.onChange;const t=this.onInput;return s.dy`<cdtr-row
6
+ alignItems="center"
7
+ spacing="3px"
8
+ style="position:relative;"
9
+ >
10
+ ${["top","left","bottom","right"].map((e=>s.dy`<cdtr-col>
11
+ ${this.resolveIcon(e)}
12
+ <cdtr-number-input
13
+ .type=${"number"}
14
+ .max=${300}
15
+ .min=${0}
16
+ value="${parseFloat(this[e])}"
17
+ @input=${i=>t(i,e)}
18
+ style="width:100%"
19
+ ></cdtr-number-input
20
+ ></cdtr-col>`))}
21
+ <cdtr-button @click=${this.onChangeLock}>
22
+ <cdtr-icon
23
+ style="height:10px"
24
+ width="20"
25
+ height="20"
26
+ .icon="${this.isLocked?"lock":"unlock"}"
27
+ ></cdtr-icon>
28
+ </cdtr-button>
29
+ </cdtr-row>`}}(0,o.Z)(n,"properties",{value:{type:Number},json:{type:Object},onChange:{type:Function},top:{type:Number},left:{type:Number},bottom:{type:Number},right:{type:Number},isLocked:{type:Boolean},directionKey:{type:String}});const r=n}}]);
Binary file