@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.
- package/dist/1290.creaditor.bundle.js +1 -0
- package/dist/1290.creaditor.bundle.js.gz +0 -0
- package/dist/1867.creaditor.bundle.js +1 -1
- package/dist/1867.creaditor.bundle.js.gz +0 -0
- package/dist/3622.creaditor.bundle.js +5 -5
- package/dist/3622.creaditor.bundle.js.gz +0 -0
- package/dist/5279.creaditor.bundle.js +1023 -0
- package/dist/5279.creaditor.bundle.js.gz +0 -0
- package/dist/5674.creaditor.bundle.js +29 -0
- package/dist/5674.creaditor.bundle.js.gz +0 -0
- package/dist/5936.creaditor.bundle.js +986 -0
- package/dist/5936.creaditor.bundle.js.gz +0 -0
- package/dist/6085.creaditor.bundle.js +1 -0
- package/dist/6085.creaditor.bundle.js.gz +0 -0
- package/dist/6652.creaditor.bundle.js +1 -1
- package/dist/6652.creaditor.bundle.js.gz +0 -0
- package/dist/6737.creaditor.bundle.js +26 -16
- package/dist/6737.creaditor.bundle.js.gz +0 -0
- package/dist/7911.creaditor.bundle.js +2 -2
- package/dist/7911.creaditor.bundle.js.gz +0 -0
- package/dist/7946.creaditor.bundle.js +1 -1
- package/dist/7946.creaditor.bundle.js.gz +0 -0
- package/dist/7988.creaditor.bundle.js +1 -1
- package/dist/7988.creaditor.bundle.js.gz +0 -0
- package/dist/901.creaditor.bundle.js +1 -1
- package/dist/901.creaditor.bundle.js.gz +0 -0
- package/dist/9530.creaditor.bundle.js +33 -36
- package/dist/9530.creaditor.bundle.js.gz +0 -0
- package/dist/9766.creaditor.bundle.js +24 -16
- package/dist/9766.creaditor.bundle.js.gz +0 -0
- package/dist/9800.creaditor.bundle.js +1 -1
- package/dist/9800.creaditor.bundle.js.gz +0 -0
- package/dist/creaditor.bundle.js +397 -263
- package/dist/creaditor.bundle.js.gz +0 -0
- package/dist/service-worker.js +1 -1
- package/dist/service-worker.js.gz +0 -0
- 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
|