@creaditor/newsletter-starterkit 1.0.43 → 1.0.46
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/112.creaditor.bundle.js +3 -3
- package/dist/112.creaditor.bundle.js.gz +0 -0
- package/dist/1260.creaditor.bundle.js +11 -11
- package/dist/1260.creaditor.bundle.js.gz +0 -0
- package/dist/1271.creaditor.bundle.js +6 -6
- package/dist/1271.creaditor.bundle.js.gz +0 -0
- package/dist/1334.creaditor.bundle.js +3 -3
- package/dist/1334.creaditor.bundle.js.gz +0 -0
- package/dist/1452.creaditor.bundle.js +3 -3
- package/dist/1452.creaditor.bundle.js.gz +0 -0
- package/dist/1456.creaditor.bundle.js +3 -3
- package/dist/1456.creaditor.bundle.js.gz +0 -0
- package/dist/1529.creaditor.bundle.js +2 -2
- package/dist/1529.creaditor.bundle.js.gz +0 -0
- package/dist/1565.creaditor.bundle.js +100 -100
- package/dist/1565.creaditor.bundle.js.gz +0 -0
- package/dist/170.creaditor.bundle.js +8 -8
- package/dist/170.creaditor.bundle.js.gz +0 -0
- package/dist/175.creaditor.bundle.js +5 -5
- package/dist/175.creaditor.bundle.js.gz +0 -0
- package/dist/1972.creaditor.bundle.js +2 -2
- package/dist/1972.creaditor.bundle.js.gz +0 -0
- package/dist/211.creaditor.bundle.js +1 -1
- package/dist/211.creaditor.bundle.js.gz +0 -0
- package/dist/2112.creaditor.bundle.js +3 -3
- package/dist/2112.creaditor.bundle.js.gz +0 -0
- package/dist/2350.creaditor.bundle.js +3 -3
- package/dist/2350.creaditor.bundle.js.gz +0 -0
- package/dist/2377.creaditor.bundle.js +7 -7
- package/dist/2377.creaditor.bundle.js.gz +0 -0
- package/dist/2384.creaditor.bundle.js +6 -6
- package/dist/2384.creaditor.bundle.js.gz +0 -0
- package/dist/2397.creaditor.bundle.js +4 -4
- package/dist/2397.creaditor.bundle.js.gz +0 -0
- package/dist/2409.creaditor.bundle.js +4 -4
- package/dist/2409.creaditor.bundle.js.gz +0 -0
- package/dist/2438.creaditor.bundle.js +5 -5
- package/dist/2438.creaditor.bundle.js.gz +0 -0
- package/dist/2547.creaditor.bundle.js +2 -2
- package/dist/2547.creaditor.bundle.js.gz +0 -0
- package/dist/2590.creaditor.bundle.js +2 -2
- package/dist/2590.creaditor.bundle.js.gz +0 -0
- package/dist/271.creaditor.bundle.js +7 -7
- package/dist/271.creaditor.bundle.js.gz +0 -0
- package/dist/2773.creaditor.bundle.js +3 -3
- package/dist/2773.creaditor.bundle.js.gz +0 -0
- package/dist/2833.creaditor.bundle.js +3 -3
- package/dist/2833.creaditor.bundle.js.gz +0 -0
- package/dist/2834.creaditor.bundle.js +2 -2
- package/dist/2834.creaditor.bundle.js.gz +0 -0
- package/dist/2956.creaditor.bundle.js +3 -3
- package/dist/2956.creaditor.bundle.js.gz +0 -0
- package/dist/2963.creaditor.bundle.js +3 -3
- package/dist/2963.creaditor.bundle.js.gz +0 -0
- package/dist/307.creaditor.bundle.js +3 -3
- package/dist/307.creaditor.bundle.js.gz +0 -0
- package/dist/3095.creaditor.bundle.js +13 -13
- package/dist/3095.creaditor.bundle.js.gz +0 -0
- package/dist/3233.creaditor.bundle.js +2 -2
- package/dist/3233.creaditor.bundle.js.gz +0 -0
- package/dist/3521.creaditor.bundle.js +3 -3
- package/dist/3521.creaditor.bundle.js.gz +0 -0
- package/dist/353.creaditor.bundle.js +3 -3
- package/dist/353.creaditor.bundle.js.gz +0 -0
- package/dist/3553.creaditor.bundle.js +5 -5
- package/dist/3553.creaditor.bundle.js.gz +0 -0
- package/dist/3606.creaditor.bundle.js +5 -5
- package/dist/3606.creaditor.bundle.js.gz +0 -0
- package/dist/365.creaditor.bundle.js +3 -3
- package/dist/365.creaditor.bundle.js.gz +0 -0
- package/dist/3827.creaditor.bundle.js +3 -3
- package/dist/3827.creaditor.bundle.js.gz +0 -0
- package/dist/3875.creaditor.bundle.js +3 -3
- package/dist/3875.creaditor.bundle.js.gz +0 -0
- package/dist/3932.creaditor.bundle.js +3 -3
- package/dist/3932.creaditor.bundle.js.gz +0 -0
- package/dist/3971.creaditor.bundle.js +3 -3
- package/dist/3971.creaditor.bundle.js.gz +0 -0
- package/dist/407.creaditor.bundle.js +3 -3
- package/dist/407.creaditor.bundle.js.gz +0 -0
- package/dist/4074.creaditor.bundle.js +3 -3
- package/dist/4074.creaditor.bundle.js.gz +0 -0
- package/dist/4100.creaditor.bundle.js +2 -2
- package/dist/4100.creaditor.bundle.js.gz +0 -0
- package/dist/4114.creaditor.bundle.js +3 -3
- package/dist/4114.creaditor.bundle.js.gz +0 -0
- package/dist/4161.creaditor.bundle.js +3 -3
- package/dist/4161.creaditor.bundle.js.gz +0 -0
- package/dist/4217.creaditor.bundle.js +7 -7
- package/dist/4217.creaditor.bundle.js.gz +0 -0
- package/dist/4288.creaditor.bundle.js +4 -4
- package/dist/4288.creaditor.bundle.js.gz +0 -0
- package/dist/4413.creaditor.bundle.js +3 -3
- package/dist/4413.creaditor.bundle.js.gz +0 -0
- package/dist/4475.creaditor.bundle.js +3 -3
- package/dist/4475.creaditor.bundle.js.gz +0 -0
- package/dist/453.creaditor.bundle.js +12 -12
- package/dist/453.creaditor.bundle.js.gz +0 -0
- package/dist/4569.creaditor.bundle.js +72 -72
- package/dist/4569.creaditor.bundle.js.gz +0 -0
- package/dist/4615.creaditor.bundle.js +2 -2
- package/dist/4615.creaditor.bundle.js.gz +0 -0
- package/dist/467.creaditor.bundle.js +3 -3
- package/dist/467.creaditor.bundle.js.gz +0 -0
- package/dist/4762.creaditor.bundle.js +3 -3
- package/dist/4762.creaditor.bundle.js.gz +0 -0
- package/dist/4770.creaditor.bundle.js +3 -3
- package/dist/4770.creaditor.bundle.js.gz +0 -0
- package/dist/4947.creaditor.bundle.js +3 -3
- package/dist/4947.creaditor.bundle.js.gz +0 -0
- package/dist/4988.creaditor.bundle.js +2 -2
- package/dist/4988.creaditor.bundle.js.gz +0 -0
- package/dist/5133.creaditor.bundle.js +5 -5
- package/dist/5133.creaditor.bundle.js.gz +0 -0
- package/dist/5156.creaditor.bundle.js +7 -7
- package/dist/5156.creaditor.bundle.js.gz +0 -0
- package/dist/5340.creaditor.bundle.js +5 -5
- package/dist/5340.creaditor.bundle.js.gz +0 -0
- package/dist/5391.creaditor.bundle.js +3 -3
- package/dist/5391.creaditor.bundle.js.gz +0 -0
- package/dist/5411.creaditor.bundle.js +3 -3
- package/dist/5411.creaditor.bundle.js.gz +0 -0
- package/dist/5428.creaditor.bundle.js +3 -3
- package/dist/5428.creaditor.bundle.js.gz +0 -0
- package/dist/5501.creaditor.bundle.js +13 -13
- package/dist/5501.creaditor.bundle.js.gz +0 -0
- package/dist/5530.creaditor.bundle.js +4 -4
- package/dist/5530.creaditor.bundle.js.gz +0 -0
- package/dist/5666.creaditor.bundle.js +3 -3
- package/dist/5666.creaditor.bundle.js.gz +0 -0
- package/dist/567.creaditor.bundle.js +6 -6
- package/dist/567.creaditor.bundle.js.gz +0 -0
- package/dist/578.creaditor.bundle.js +4 -4
- package/dist/578.creaditor.bundle.js.gz +0 -0
- package/dist/5839.creaditor.bundle.js +2 -2
- package/dist/5839.creaditor.bundle.js.gz +0 -0
- package/dist/5849.creaditor.bundle.js +3 -3
- package/dist/5849.creaditor.bundle.js.gz +0 -0
- package/dist/5850.creaditor.bundle.js +3 -3
- package/dist/5850.creaditor.bundle.js.gz +0 -0
- package/dist/589.creaditor.bundle.js +11 -11
- package/dist/589.creaditor.bundle.js.gz +0 -0
- package/dist/5926.creaditor.bundle.js +6 -6
- package/dist/5926.creaditor.bundle.js.gz +0 -0
- package/dist/6036.creaditor.bundle.js +2 -2
- package/dist/6036.creaditor.bundle.js.gz +0 -0
- package/dist/638.creaditor.bundle.js +3 -3
- package/dist/638.creaditor.bundle.js.gz +0 -0
- package/dist/6442.creaditor.bundle.js +3 -3
- package/dist/6442.creaditor.bundle.js.gz +0 -0
- package/dist/6459.creaditor.bundle.js +3 -3
- package/dist/6459.creaditor.bundle.js.gz +0 -0
- package/dist/6496.creaditor.bundle.js +3 -3
- package/dist/6496.creaditor.bundle.js.gz +0 -0
- package/dist/653.creaditor.bundle.js +3 -3
- package/dist/653.creaditor.bundle.js.gz +0 -0
- package/dist/7155.creaditor.bundle.js +3 -3
- package/dist/7155.creaditor.bundle.js.gz +0 -0
- package/dist/7209.creaditor.bundle.js +26 -26
- package/dist/7209.creaditor.bundle.js.gz +0 -0
- package/dist/7238.creaditor.bundle.js +6 -6
- package/dist/7238.creaditor.bundle.js.gz +0 -0
- package/dist/7255.creaditor.bundle.js +2 -2
- package/dist/7255.creaditor.bundle.js.gz +0 -0
- package/dist/7307.creaditor.bundle.js +11 -11
- package/dist/7307.creaditor.bundle.js.gz +0 -0
- package/dist/738.creaditor.bundle.js +2 -2
- package/dist/738.creaditor.bundle.js.gz +0 -0
- package/dist/7380.creaditor.bundle.js +2 -2
- package/dist/7380.creaditor.bundle.js.gz +0 -0
- package/dist/752.creaditor.bundle.js +3 -3
- package/dist/752.creaditor.bundle.js.gz +0 -0
- package/dist/7523.creaditor.bundle.js +3 -3
- package/dist/7523.creaditor.bundle.js.gz +0 -0
- package/dist/767.creaditor.bundle.js +7 -7
- package/dist/767.creaditor.bundle.js.gz +0 -0
- package/dist/7759.creaditor.bundle.js +3 -3
- package/dist/7759.creaditor.bundle.js.gz +0 -0
- package/dist/7838.creaditor.bundle.js +3 -3
- package/dist/7838.creaditor.bundle.js.gz +0 -0
- package/dist/7937.creaditor.bundle.js +12 -12
- package/dist/7937.creaditor.bundle.js.gz +0 -0
- package/dist/7997.creaditor.bundle.js +3 -3
- package/dist/7997.creaditor.bundle.js.gz +0 -0
- package/dist/8042.creaditor.bundle.js +5 -5
- package/dist/8042.creaditor.bundle.js.gz +0 -0
- package/dist/8064.creaditor.bundle.js +3 -3
- package/dist/8064.creaditor.bundle.js.gz +0 -0
- package/dist/8141.creaditor.bundle.js +2 -2
- package/dist/8141.creaditor.bundle.js.gz +0 -0
- package/dist/8251.creaditor.bundle.js +3 -3
- package/dist/8251.creaditor.bundle.js.gz +0 -0
- package/dist/8305.creaditor.bundle.js +3 -3
- package/dist/8305.creaditor.bundle.js.gz +0 -0
- package/dist/8315.creaditor.bundle.js +2 -2
- package/dist/8315.creaditor.bundle.js.gz +0 -0
- package/dist/8443.creaditor.bundle.js +3 -3
- package/dist/8443.creaditor.bundle.js.gz +0 -0
- package/dist/8516.creaditor.bundle.js +2 -2
- package/dist/8516.creaditor.bundle.js.gz +0 -0
- package/dist/8570.creaditor.bundle.js +3 -3
- package/dist/8570.creaditor.bundle.js.gz +0 -0
- package/dist/8646.creaditor.bundle.js +5 -5
- package/dist/8646.creaditor.bundle.js.gz +0 -0
- package/dist/8654.creaditor.bundle.js +5 -5
- package/dist/8654.creaditor.bundle.js.gz +0 -0
- package/dist/8676.creaditor.bundle.js +3 -3
- package/dist/8676.creaditor.bundle.js.gz +0 -0
- package/dist/8854.creaditor.bundle.js +3 -3
- package/dist/8854.creaditor.bundle.js.gz +0 -0
- package/dist/8916.creaditor.bundle.js +2 -2
- package/dist/8916.creaditor.bundle.js.gz +0 -0
- package/dist/8921.creaditor.bundle.js +3 -3
- package/dist/8921.creaditor.bundle.js.gz +0 -0
- package/dist/9041.creaditor.bundle.js +8 -8
- package/dist/9041.creaditor.bundle.js.gz +0 -0
- package/dist/9089.creaditor.bundle.js +3 -3
- package/dist/9089.creaditor.bundle.js.gz +0 -0
- package/dist/9162.creaditor.bundle.js +3 -3
- package/dist/9162.creaditor.bundle.js.gz +0 -0
- package/dist/9184.creaditor.bundle.js +3 -3
- package/dist/9184.creaditor.bundle.js.gz +0 -0
- package/dist/9250.creaditor.bundle.js +3 -3
- package/dist/9250.creaditor.bundle.js.gz +0 -0
- package/dist/9386.creaditor.bundle.js +3 -3
- package/dist/9386.creaditor.bundle.js.gz +0 -0
- package/dist/9453.creaditor.bundle.js +3 -3
- package/dist/9453.creaditor.bundle.js.gz +0 -0
- package/dist/9570.creaditor.bundle.js +3 -3
- package/dist/9570.creaditor.bundle.js.gz +0 -0
- package/dist/975.creaditor.bundle.js +3 -3
- package/dist/975.creaditor.bundle.js.gz +0 -0
- package/dist/976.creaditor.bundle.js +3 -3
- package/dist/976.creaditor.bundle.js.gz +0 -0
- package/dist/9986.creaditor.bundle.js +3 -3
- package/dist/9986.creaditor.bundle.js.gz +0 -0
- package/dist/9990.creaditor.bundle.js +3 -3
- package/dist/9990.creaditor.bundle.js.gz +0 -0
- package/dist/creaditor.bundle.js +269 -268
- 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
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[170],{60170(e,t,r){r.r(t),r.d(t,{BreadCrumbs:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[170],{60170(e,t,r){r.r(t),r.d(t,{BreadCrumbs:()=>a});var s=r(5441),n=r(59929),o=r(86319),i=r(58371),c=r(9507);class a extends n.WF{constructor(){super(),this.crumbs=[],this.cover=function(){const e=document.createElement("div");return e.style.position="fixed",e.style.background="var(--primary)",e.style.zIndex=2,e.style.border="1px dashed black",e.style.opacity=.2,e}(),this.currectCrumb={},this.onSubscribe=()=>{let e;this.crumbs=[];const t=c.Ay.components[c.Ay.components.length-1];if(!t)return;if(e=t.element,!e)return void console.error("selectElement not found","#1ppqmvss6");let r=t.type.getElementType(),s="";t.props.as&&(s=` (${o.M.get("lang",t.props.as)||t.props.as})`),this.currectCrumb={type:r,as:s,name:t.props.name,id:t.id};if(e){let t=e;for(;t&&t.parentElement;)if(t=t.parentElement.closest("[data-type]"),t){const e=o.M.get("components",t.dataset.id);let r=!0;e&&"row"!==e.type&&("col"===e.type&&"block"!==e.parent().type&&(r=!1),r&&this.crumbs.unshift({type:e.type,name:e.props.name,id:e.id,element:e.element,compose:e}))}this.dispatchEvent(new CustomEvent("change",[...this.crumbs]))}},this.onSubscribe=this.onSubscribe.bind(this)}onHover(e){if(e){const t=e.getBoundingClientRect();this.cover.style.left=t.left+"px",this.cover.style.top=t.top+"px",this.cover.style.width=t.width+"px",this.cover.style.height=t.height+"px",document.body.appendChild(this.cover)}}render(){const e=o.M.get("langConfig","direction");return this.crumbs.length>0?n.qy`
|
|
2
2
|
<!-- <cdtr-tooltip content="breadcrumbs_info" .opened=${!0}></cdtr-tooltip> -->
|
|
3
3
|
<div>
|
|
4
|
-
${this.crumbs.map((t,r)=>
|
|
4
|
+
${this.crumbs.map((t,r)=>n.qy` <span
|
|
5
5
|
@mouseout=${()=>this.cover.remove()}
|
|
6
6
|
@mouseover=${()=>this.onHover(t.element)}
|
|
7
7
|
@mousedown=${()=>this.clickBread(t)}
|
|
8
8
|
class="breadcrumb"
|
|
9
|
-
>${t.name||
|
|
10
|
-
>${this.crumbs.length===r?null:(0,
|
|
11
|
-
${this.mainText?
|
|
12
|
-
${this.currectCrumb.name||
|
|
9
|
+
>${t.name||n.qy`<lang-text text=${t.type}></lang-text>`}</span
|
|
10
|
+
>${this.crumbs.length===r?null:(0,s.A)(i.D9,{style:{transform:`rotate(${"ltr"===e?"180deg":"0"})`},class:"arrow"})}`)}
|
|
11
|
+
${this.mainText?n.qy` <div class="currect">
|
|
12
|
+
${this.currectCrumb.name||n.qy`<lang-text text=${this.currectCrumb.type}></lang-text
|
|
13
13
|
>${this.currectCrumb.as}`}
|
|
14
14
|
</div>`:null}
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
|
-
`:""}connectedCallback(){super.connectedCallback(),document.body.appendChild(this.cover),
|
|
17
|
+
`:""}connectedCallback(){super.connectedCallback(),document.body.appendChild(this.cover),c.Ay.on("select",this.onSubscribe),c.Ay.on("update",this.onSubscribe)}disconnectedCallback(){super.disconnectedCallback(),this.cover.remove(),c.Ay.off("select",this.onSubscribe),c.Ay.off("update",this.onSubscribe)}clickBread(e){this.cover.remove(),c.Ay.clean().selectComponent(e.compose)}}a.styles=n.AH`
|
|
18
18
|
:host {
|
|
19
19
|
direction: var(--direction);
|
|
20
20
|
padding: 10px;
|
|
@@ -48,4 +48,4 @@
|
|
|
48
48
|
fill: #42465694;
|
|
49
49
|
vertical-align: middle;
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
`,a.properties={crumbs:{type:Array},mainText:{type:Boolean,reflect:!0}},customElements.define("cdtr-breadcrumbs",a)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[175],{60175(t,e,r){r.r(e),r.d(e,{BorderEditor:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[175],{60175(t,e,r){r.r(e),r.d(e,{BorderEditor:()=>i});var o=r(59929),d=r(86319);class i extends o.WF{constructor(t){super(),this.theme=d.M.get("theme"),this.borderStyle="solid",this.borderTypes=[{name:"none",value:"none"},{name:"solid",value:"solid"},{name:"dashed",value:"dashed"},{name:"dotted",value:"dotted"},{name:"outset",value:"outset"},{name:"groove",value:"groove"},{name:"double",value:"double"},{name:"ridge",value:"ridge"}],this.cmds={onChangeBorderWidth:t=>{if(t.target.isLock)this.borderWidth=t.target.value+"px",this.borderTopWidth=t.target.value,this.borderBottomWidth=t.target.value,this.borderLeftWidth=t.target.value,this.borderRightWidth=t.target.value,this.key="borderWidth",this.dispacher();else{const e=t.target.topValue,r=t.target.bottomValue,o=t.target.leftValue,d=t.target.rightValue;this.borderWidth=e,this.borderTopWidth=e,this.borderBottomWidth=r,this.borderLeftWidth=o,this.borderRightWidth=d,this.key="borderWidth",this.dispacher()}},onChangeborderStyle:t=>{this.borderStyle=t,this.key="borderStyle",this.dispacher()},onChangeColor(t){const e=t.target.value;this.color=e,this.borderColor=e,this.key="color",this.dispacher()},onChangeRadius:t=>{const e=t.target.json;this.borderTopRightRadius=e.borderTopRightRadius,this.borderTopLeftRadius=e.borderTopLeftRadius,this.borderBottomRightRadius=e.borderBottomRightRadius,this.borderBottomLeftRadius=e.borderBottomLeftRadius,this.key="borderRadius",this.dispacher()}}}dispacher(){const t={borderColor:this.borderColor||this.color||"",borderStyle:this.borderStyle||"solid",borderWidth:this.borderWidth||0,borderTopWidth:this.borderTopWidth??0,borderBottomWidth:this.borderBottomWidth??0,borderLeftWidth:this.borderLeftWidth??0,borderRightWidth:this.borderRightWidth??0,borderRadius:this.borderRadius??0,borderTopRightRadius:this.borderTopRightRadius??0,borderTopLeftRadius:this.borderTopLeftRadius??0,borderBottomRightRadius:this.borderBottomRightRadius??0,borderBottomLeftRadius:this.borderBottomLeftRadius??0,key:this.key},e=new CustomEvent("change",{bubbles:!0,cancelable:!0,detail:t});this.dispatchEvent(e)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}render(){const t=(this.borderRadius||"").toString().split(/\s+/);let[e=0,r=0,d=0,i=0]=t.map(t=>parseFloat(t)||0);const s=this.borderTopWidth||0,h=this.borderBottomWidth||0,a=this.borderLeftWidth||0,l=this.borderRightWidth||0;return e=this.borderTopRightRadius||e,r=this.borderTopLeftRadius||r,d=this.borderBottomRightRadius||d,i=this.borderBottomLeftRadius||i,o.qy`
|
|
2
2
|
<h5>
|
|
3
3
|
<lang-text text="border_editor"></lang-text>
|
|
4
4
|
</h5>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<cdtr-radius-editor
|
|
18
18
|
.borderTopRightRadius=${e}
|
|
19
19
|
.borderTopLeftRadius=${r}
|
|
20
|
-
.borderBottomRightRadius=${
|
|
20
|
+
.borderBottomRightRadius=${d}
|
|
21
21
|
.borderBottomLeftRadius=${i}
|
|
22
22
|
@input=${this.cmds.onChangeRadius}
|
|
23
23
|
></cdtr-radius-editor>
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
><lang-text text="${this.borderStyle}"></lang-text>
|
|
51
51
|
</cdtr-dropdown-button>
|
|
52
52
|
<div slot="content">
|
|
53
|
-
${this.borderTypes.map(t=>
|
|
53
|
+
${this.borderTypes.map(t=>o.qy`<cdtr-dropdown-item
|
|
54
54
|
.focused=${t.value===this.borderStyle}
|
|
55
55
|
.selected=${t.value===this.borderStyle}
|
|
56
56
|
value="${t.value}"
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
</cdtr-col>
|
|
69
69
|
</cdtr-row>
|
|
70
70
|
</cdtr-editor-container>
|
|
71
|
-
`}}
|
|
71
|
+
`}}i.styles=o.AH`
|
|
72
72
|
:host {
|
|
73
73
|
direction: var(--direction-locale);
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
`,i.properties={type:{type:String},color:{type:String},borderColor:{type:String},borderStyle:{type:String},borderWidth:{type:Number},borderRadius:{type:Number},borderTopRightRadius:{type:Number},borderTopLeftRadius:{type:Number},borderBottomRightRadius:{type:Number},borderBottomLeftRadius:{type:Number},borderTopWidth:{type:Number},borderBottomWidth:{type:Number},borderLeftWidth:{type:Number},borderRightWidth:{type:Number}},customElements.define("cdtr-border-editor",i)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1972],{41972(t,e,r){r.r(e),r.d(e,{DdArrowIcon:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1972],{41972(t,e,r){r.r(e),r.d(e,{DdArrowIcon:()=>o});var i=r(59929);class o extends i.WF{constructor(){super(),this.iconStyle=""}render(){return i.qy`<svg style="${this.iconStyle}" stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><g><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 15l-4.243-4.243 1.415-1.414L12 12.172l2.828-2.829 1.415 1.414z"></path></g></svg>`}}o.styles=i.AH`
|
|
2
2
|
:host {
|
|
3
3
|
display: inherit;
|
|
4
4
|
--cdtr-icon-width: 20px;
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
height: var(--cdtr-icon-height);
|
|
10
10
|
color: var(--cdtr-icon-color);
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
`,o.properties={iconStyle:{type:String}},customElements.define("cdtr-dd-arrow-icon",o)}}]);
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[211],{70211(e,t,n){var i=n(
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[211],{70211(e,t,n){var i=n(59929),a=n(21421),s=n(12106);class c extends i.WF{constructor(){super(),this.containerRef=(0,a._)(),this.containerId="particles-"+(0,s.A)(),this.config={particles:{number:{value:20},color:{value:"#ffffff"},shape:{type:"circle",stroke:{width:0,color:"#000000"},polygon:{nb_sides:5}},opacity:{value:.5,random:!1,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:10,random:!0,anim:{enable:!1,speed:80,size_min:.1,sync:!1}},line_linked:{enable:!0,distance:300,color:"#484554",opacity:.4,width:2},move:{enable:!0,speed:5,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!1,mode:"repulse"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:800,line_linked:{opacity:1}},bubble:{distance:800,size:80,duration:2,opacity:.8,speed:3},repulse:{distance:400,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0}}createRenderRoot(){return this}render(){return i.qy`<div id=${this.containerId} ${(0,a.K)(this.containerRef)}></div>`}connectedCallback(){super.connectedCallback(),n.e(3545).then(n.t.bind(n,5926,23)).then(()=>{setTimeout(()=>{particlesJS(this.containerId,this.config)},0)})}disconnectedCallback(){super.disconnectedCallback()}}c.properties={name:{}},c.styles=i.AH``,customElements.define("cdtr-particlesjs",c)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2112],{2112(t,e,i){i.r(e),i.d(e,{SortIcon:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2112],{2112(t,e,i){i.r(e),i.d(e,{SortIcon:()=>h});var s=i(59929);class h extends s.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return s.qy`<svg
|
|
2
2
|
style="${this.iconStyle}"
|
|
3
3
|
width="${this.width}"
|
|
4
4
|
height="${this.height}"
|
|
@@ -19,6 +19,6 @@
|
|
|
19
19
|
<path d="M11 13H15"></path>
|
|
20
20
|
<path d="M10 17L7 20L4 17"></path>
|
|
21
21
|
<path d="M7 5V19"></path>
|
|
22
|
-
</svg>`}}
|
|
22
|
+
</svg>`}}h.styles=s.AH`
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
`,h.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-sort-icon",h)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2350],{72350(t,i,e){e.r(i),e.d(i,{ChatIcon:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2350],{72350(t,i,e){e.r(i),e.d(i,{ChatIcon:()=>s});var h=e(59929);class s extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
viewBox="0 0 24 24"
|
|
4
4
|
style="${this.iconStyle}"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<path
|
|
10
10
|
d="M5.763 17H20V5H4v13.385L5.763 17zm.692 2L2 22.5V4a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6.455z"
|
|
11
11
|
/>
|
|
12
|
-
</svg>`}}
|
|
12
|
+
</svg>`}}s.styles=h.AH`
|
|
13
13
|
:host {
|
|
14
14
|
display: inherit;
|
|
15
15
|
--cdtr-icon-width: 24px;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
height: var(--cdtr-icon-height);
|
|
21
21
|
color: var(--cdtr-icon-color);
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
`,s.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-chat-icon",s)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2377],{22377(t,e,i){i.r(e),i.d(e,{default:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2377],{22377(t,e,i){i.r(e),i.d(e,{default:()=>h});var o=i(59929),s=i(21421),n=i(69600);const d=[];class h extends o.WF{constructor(){super(),this.contentRef=(0,s._)(),this.left=0,this.top=0,this.opened=!1,this.width=200,this.height=300}updated(t){t.has("opened")&&(this.opened&&(0,n.h)(this),d.forEach(t=>{t!==this&&(t.opened=!1)}))}connectedCallback(){super.connectedCallback(),d.push(this)}disconnectedCallback(){super.disconnectedCallback();const t=d.indexOf(this);t>-1&&d.splice(t,1),this.close()}handleWindowClick(t){t&&(this.positionInitialized||(this.left||(this.left=`${t.clientX}`),this.top||(this.top=`${t.clientY}`),this.positionInitialized=!0))}close(){this.opened=!1}toggle(t){this.handleWindowClick(t),this.opened=!this.opened,this.opened?requestAnimationFrame(()=>this.updatePosition()):this.positionInitialized=!1}updatePosition(){const t=this.contentRef.value;if(t){const e=t.getBoundingClientRect(),i=window.innerWidth,o=window.innerHeight;e.right>i&&(this.left=""+(i-e.width-30)),e.top-e.height>o&&(this.top=""+(o-this.height-10))}else setTimeout(()=>{this.updatePosition()},100)}render(){return this.height=parseInt(this.height,10)||400,o.qy`
|
|
2
2
|
<slot @click=${this.toggle} tabindex="0" name="trigger"></slot>
|
|
3
3
|
<cdtr-draggable-element
|
|
4
4
|
handle=".header"
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
role="dialog"
|
|
9
9
|
aria-modal="true"
|
|
10
10
|
aria-labelledby="dialog-title"
|
|
11
|
-
${(0,
|
|
11
|
+
${(0,s.K)(this.contentRef)}
|
|
12
12
|
@mouseup=${this.preventClosing}
|
|
13
|
-
style="height:auto;max-height:${this.height+"px"};z-index:${(0,
|
|
13
|
+
style="height:auto;max-height:${this.height+"px"};z-index:${(0,n.A)()};left:${this.left}px;top:${this.top}px;width:${this.width}px;display:${this.opened?"block":"none"};"
|
|
14
14
|
class="box-content fade-in"
|
|
15
15
|
>
|
|
16
16
|
<paper-button @click=${()=>{this.close()}} style="position:absolute;left:0;top:0;">
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
</paper-button>
|
|
19
19
|
<div id="dialog-title" class="header">
|
|
20
20
|
<slot class="header" name="header"></slot>
|
|
21
|
-
${this.title?
|
|
21
|
+
${this.title?o.qy`<lang-text text=${this.title}></lang-text>`:""}
|
|
22
22
|
</div>
|
|
23
23
|
<cdtr-divider></cdtr-divider>
|
|
24
|
-
${this.opened?
|
|
24
|
+
${this.opened?o.qy`<div
|
|
25
25
|
style="max-height:${this.height-100}px;overflow:auto;"
|
|
26
26
|
class="content drop-modal-draggable"
|
|
27
27
|
>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
</div>`:null}
|
|
30
30
|
</div>
|
|
31
31
|
</cdtr-draggable-element>
|
|
32
|
-
`}}
|
|
32
|
+
`}}h.styles=o.AH`
|
|
33
33
|
.box-content {
|
|
34
34
|
position: fixed;
|
|
35
35
|
width: auto;
|
|
@@ -61,4 +61,4 @@
|
|
|
61
61
|
opacity: 1;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
`,h.properties={title:{type:String},opened:{type:Boolean},width:{type:Number},height:{type:Number},left:{type:String},top:{type:String}},customElements.define("cdtr-draggable-box",h)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2384],{92384(t,e,n){n.r(e),n.d(e,{FontFamilyEditor:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2384],{92384(t,e,n){n.r(e),n.d(e,{FontFamilyEditor:()=>r});var i=n(59929),s=n(40120),o=n(86319);class r extends i.WF{constructor(){super(),this.onchangeFontFamily=t=>{const e=t.target.value,n=this.fontFamilies.find(t=>t.name===e);if(!n)return void console.error("cant set font family, font family not founded..");(0,s.sw)(n),this.value=n.cssRule,this.name=e;const i=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(i)},this.onFilteredFonts=t=>{const e=t.target.value;this.filteredFonts=this.fontFamilies.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))},this.filteredFonts=[],this.fontFamilies=[]}connectedCallback(){super.connectedCallback();const t=o.M.get("config","editor","configure","editorProps","fonts"),e=Array.isArray(t)?t:[];this.filteredFonts=this.fontFamilies=e,e.forEach(t=>{t&&t.url&&t.id&&function(t){if(document.getElementById(t.id))return;const e=document.createElement("link");e.href=t.url,e.id=t.id,e.setAttribute("data-name",t.name),e.rel="stylesheet",e.type="text/css",document.head.appendChild(e)}(t)})}disconnectedCallback(){super.disconnectedCallback()}render(){const t=this.fontFamilies.find(t=>"string"==typeof t?.cssRule&&(-1!==t.cssRule.indexOf(this.value||"")||-1!==t.cssRule.indexOf(this.name||"")));t&&(this.name=t.name);const e=i.qy`<cdtr-dropdown
|
|
2
2
|
style="width:100%"
|
|
3
3
|
.value="${this.name}"
|
|
4
4
|
@change=${this.onchangeFontFamily}
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
</cdtr-dropdown-button>
|
|
12
12
|
<div slot="content">
|
|
13
13
|
<cdtr-input
|
|
14
|
-
.placeholder="${
|
|
14
|
+
.placeholder="${o.M.get("lang","search")}.."
|
|
15
15
|
@input=${this.onFilteredFonts}
|
|
16
16
|
type="search"
|
|
17
17
|
></cdtr-input>
|
|
18
|
-
${this.filteredFonts.map(t=>
|
|
18
|
+
${this.filteredFonts.map(t=>i.qy`<cdtr-dropdown-item
|
|
19
19
|
.focused=${t.name===this.name}
|
|
20
20
|
.selected=${t.name===this.name}
|
|
21
21
|
value="${t.name}"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
>${t.name}</span>
|
|
27
27
|
</cdtr-dropdown-item>`)}
|
|
28
28
|
</div>
|
|
29
|
-
</cdtr-dropdown>`,n=
|
|
29
|
+
</cdtr-dropdown>`,n=i.qy`
|
|
30
30
|
<cdtr-editor-container>
|
|
31
31
|
<cdtr-row alignItems="center" justify="space-between">
|
|
32
32
|
<cdtr-title pb="0" style="display:block" class="align-lang"
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
</cdtr-col>
|
|
40
40
|
</cdtr-row>
|
|
41
41
|
</cdtr-editor-container>
|
|
42
|
-
`;return this.light?e:n}}
|
|
42
|
+
`;return this.light?e:n}}r.properties={value:{type:String},name:{type:String},fontFamilies:{type:Array},filteredFonts:{type:Array},isOpen:{type:Boolean},light:{type:Boolean}},r.styles=i.AH`
|
|
43
43
|
.dropdown-button {
|
|
44
44
|
min-width: 100px;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
`,customElements.define("cdtr-font-family-editor",r)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2397],{22397(t,i,e){e.r(i),e.d(i,{UndoRedoIcon:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2397],{22397(t,i,e){e.r(i),e.d(i,{UndoRedoIcon:()=>s});var h=e(59929);class s extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return"left"===this.direction?h.qy`
|
|
2
2
|
<svg
|
|
3
3
|
style="${this.iconStyle}"
|
|
4
4
|
width="${this.width}"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
d="M18.172 7H11a6 6 0 1 0 0 12h9v2h-9a8 8 0 1 1 0-16h7.172l-2.536-2.536L17.05 1.05 22 6l-4.95 4.95-1.414-1.414L18.172 7z"
|
|
12
12
|
/>
|
|
13
13
|
</svg>
|
|
14
|
-
`:
|
|
14
|
+
`:h.qy`
|
|
15
15
|
<svg
|
|
16
16
|
style="${this.iconStyle}"
|
|
17
17
|
width="${this.width}"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
d="M5.828 7l2.536 2.536L6.95 10.95 2 6l4.95-4.95 1.414 1.414L5.828 5H13a8 8 0 1 1 0 16H4v-2h9a6 6 0 1 0 0-12H5.828z"
|
|
25
25
|
/>
|
|
26
26
|
</svg>
|
|
27
|
-
`}}
|
|
27
|
+
`}}s.styles=h.AH`
|
|
28
28
|
:host {
|
|
29
29
|
display: inherit;
|
|
30
30
|
--cdtr-icon-width: 20px;
|
|
@@ -35,4 +35,4 @@
|
|
|
35
35
|
height: var(--cdtr-icon-height);
|
|
36
36
|
color: var(--cdtr-icon-color);
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
`,s.properties={iconStyle:{type:String},width:{type:String},height:{type:String},direction:{type:String}},customElements.define("cdtr-undo-redo-icon",s)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2409],{22409(t,h,i){i.r(h),i.d(h,{LockIcon:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2409],{22409(t,h,i){i.r(h),i.d(h,{LockIcon:()=>s});var e=i(59929);class s extends e.WF{constructor(){super(),this.iconStyle="",this.width="18",this.height="18",this.color="#0a0a0a"}render(){return this.locked?e.qy` <svg
|
|
2
2
|
fill="${this.color}"
|
|
3
3
|
style="${this.iconStyle}"
|
|
4
4
|
width="${this.width}"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<path
|
|
11
11
|
d="M19 10h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1V9a7 7 0 1 1 14 0v1zM5 12v8h14v-8H5zm6 2h2v4h-2v-4zm6-4V9A5 5 0 0 0 7 9v1h10z"
|
|
12
12
|
/>
|
|
13
|
-
</svg>`:
|
|
13
|
+
</svg>`:e.qy`<svg
|
|
14
14
|
fill="${this.color}"
|
|
15
15
|
style="${this.iconStyle}"
|
|
16
16
|
width="${this.width}"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<path
|
|
23
23
|
d="M7 10h13a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1V9a7 7 0 0 1 13.262-3.131l-1.789.894A5 5 0 0 0 7 9v1zm-2 2v8h14v-8H5zm5 3h4v2h-4v-2z"
|
|
24
24
|
/>
|
|
25
|
-
</svg>`}}
|
|
25
|
+
</svg>`}}s.styles=e.AH`
|
|
26
26
|
:host {
|
|
27
27
|
display: inherit;
|
|
28
28
|
--cdtr-icon-width: 18px;
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
height: var(--cdtr-icon-height);
|
|
34
34
|
fill: var(--cdtr-icon-color);
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
`,s.properties={iconStyle:{type:String},width:{type:String},height:{type:String},locked:{type:Boolean},color:{type:String}},customElements.define("cdtr-lock-icon",s)}}]);
|
|
Binary file
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2438],{22438(t,e,i){i.r(e),i.d(e,{NextButton:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2438],{22438(t,e,i){i.r(e),i.d(e,{NextButton:()=>r});var o=i(59929),n=i(86319),s=i(93432);class r extends o.WF{constructor(){super(),this.isLoading=!1,this.isLocked=!1,this.lockTimer=null}connectedCallback(){super.connectedCallback(),this.onNextStep||(this.onNextStep=n.M.get("config","onNextStep"))}disconnectedCallback(){super.disconnectedCallback(),this.clearTimers()}clearTimers(){this.lockTimer&&(clearTimeout(this.lockTimer),this.lockTimer=null)}async handleClick(){if(!this.isLocked&&!this.isLoading){this.isLoading=!0,this.isLocked=!0,this.lockTimer=setTimeout(()=>{this.clearTimers(),this.isLoading=!1,this.isLocked=!1},1e4);try{"function"==typeof this.onNextStep&&await this.onNextStep({toHTML:s.FE,toJSON:s.U2})}catch(t){console.error("Error in onNextStep:",t)}}}render(){return this.onNextStep?o.qy`
|
|
2
2
|
<paper-button
|
|
3
3
|
@click=${this.handleClick}
|
|
4
4
|
class="next-button"
|
|
5
5
|
?disabled=${this.isLocked}
|
|
6
6
|
>
|
|
7
|
-
${this.isLoading?
|
|
7
|
+
${this.isLoading?o.qy`
|
|
8
8
|
<div class="loading-spinner"></div>
|
|
9
|
-
`:
|
|
9
|
+
`:o.qy`
|
|
10
10
|
<div class="button-content ${this.isLoading?"loading":""}">
|
|
11
11
|
<lang-text text="next"></lang-text>
|
|
12
12
|
</div>
|
|
13
13
|
`}
|
|
14
14
|
</paper-button>
|
|
15
|
-
`:null}}
|
|
15
|
+
`:null}}r.styles=o.AH`
|
|
16
16
|
:host {
|
|
17
17
|
display: block;
|
|
18
18
|
}
|
|
@@ -64,4 +64,4 @@
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
`,r.properties={onNextStep:{type:Function},isLoading:{type:Boolean},isLocked:{type:Boolean},lockTimer:{type:Number}},customElements.define("cdtr-next-button",r)}}]);
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2547],{92547(t,e,s){s.r(e),s.d(e,{DraggableElement:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2547],{92547(t,e,s){s.r(e),s.d(e,{DraggableElement:()=>r});var i=s(59929);let n,o;class h{constructor(t,e){this.target=void 0,this.options=void 0,this.handle=void 0,this.x=void 0,this.y=void 0,this.initX=void 0,this.initY=void 0,this.firstX=void 0,this.firstY=void 0,this.target=t,this.options=e||{},this.handle=this.options.handle,this.x=n||0,this.y=o||0,this.initX=0,this.initY=0,this.firstX=0,this.firstY=0,this.onMouseDown=this.onMouseDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.init()}onMouseMove(t){const e=this.initY+(t.pageY-this.firstY),s=this.initX+(t.pageX-this.firstX),i=t.pageX-this.firstX,h=t.pageY-this.firstY;(Math.abs(i)>10||Math.abs(h)>10)&&(this.y=e,this.x=s,n=s,o=e,this.options.onMove&&this.options.onMove(s,e))}onMouseDown(t){if(1!==t.which)return;if(t.target.closest("input,textarea,cdtr-input,.cdtr-ignore"))return;if(t.target.closest("[role='button']"))return;if(t.preventDefault(),this.handle&&!t.target.closest(this.handle))return;const e=this.target.getBoundingClientRect();this.initX=e.left+window.scrollX,this.initY=e.top+window.scrollY,this.firstX=t.pageX,this.firstY=t.pageY,this.target.addEventListener("blur",this.onMouseUp,!1),window.addEventListener("mouseup",this.onMouseUp,!1),window.addEventListener("mousemove",this.onMouseMove,!1)}onMouseUp(){this.firstX=this.x,this.firstY=this.y,this.target.removeEventListener("blur",this.onMouseUp,!1),window.removeEventListener("mouseup",this.onMouseUp,!1),window.removeEventListener("mousemove",this.onMouseMove,!1),this.options.onEnd&&this.options.onEnd(this.x,this.y)}init(){this.options.onMove&&n&&o&&this.options.onMove(n,o),this.target&&this.target.addEventListener("mousedown",this.onMouseDown,!1)}destroy(){this.target&&this.target.removeEventListener("mousedown",this.onMouseDown,!1)}}class r extends i.WF{constructor(){super(),this.draggableInstance=null,this.clientX="",this.clientY="",this.x="",this.y="",this.handle=""}render(){return this.style.left=this.x,this.style.top=this.y,i.qy` <slot></slot> `}disconnectedCallback(){super.disconnectedCallback(),this.draggableInstance&&this.draggableInstance.destroy()}connectedCallback(){super.connectedCallback(),this.draggableInstance=new h(this.children[0],{handle:this.handle,onMove:(t,e)=>{this.x=String(t),this.y=String(e),this.clientX=String(t),this.clientY=String(e);const s=new UIEvent("move",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(s)},onEnd:(t,e)=>{const s=new UIEvent("end",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(s)}})}}r.styles=i.AH`
|
|
2
2
|
:host {
|
|
3
3
|
position: absolute;
|
|
4
4
|
display: block;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
`,r.properties={x:{type:String,reflect:!0},y:{type:String,reflect:!0},handle:{type:String,reflect:!0}},customElements.define("cdtr-draggable-element",r)}}]);
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2590],{2590(t,e,i){i.r(e),i.d(e,{TitleEditor:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2590],{2590(t,e,i){i.r(e),i.d(e,{TitleEditor:()=>l});var n=i(59929),s=i(86319);class l extends n.WF{constructor(){super(),this.text="",this.whiteSpace="pre"}connectedCallback(){super.connectedCallback(),this.style.fontFamily="var(--font-family)",this.bold&&(this.style.fontWeight="bold")}render(){const t=s.M.get("theme");t&&(this.style.direction=t.direction,this.style.textAlign=this.textAlign||t.textAlign);const e=s.M.get("lang",this.text);return n.qy`<slot
|
|
2
2
|
><span
|
|
3
3
|
style="-webkit-font-smoothing: antialiased;text-transform:capitalize;
|
|
4
4
|
display:inline-block;direction:var(--direction-locale);text-align:var(--text-align-locale);white-space:${this.whiteSpace}"
|
|
5
5
|
>${e||this.text}</span
|
|
6
6
|
></slot
|
|
7
|
-
>`}}
|
|
7
|
+
>`}}l.properties={text:{type:String,reflect:!1},whiteSpace:{type:String},textAlign:{type:String},bold:{type:Boolean}},customElements.get("lang-text")||customElements.define("lang-text",l)}}]);
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[271],{40271(e,t,i){i.r(t),i.d(t,{Input:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[271],{40271(e,t,i){i.r(t),i.d(t,{Input:()=>a});var n=i(59929),s=i(21663),o=i(21421);class a extends n.WF{constructor(){super(),this.type=void 0,this.inputRef=(0,o._)(),this.sliderRef=(0,o._)(),this.sliderRefX=(0,o._)(),this.min=0,this.max=100,this.step=1,this.autofocus=!1,this.type="number",this.value="number"===this.type?"0":"",this.placeholder="",this.onMouseDown=this.onMouseDown.bind(this),this.onChangeValue=this.onChangeValue.bind(this)}onSubmit(e){e.preventDefault();const t=new UIEvent("submit",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}onFocus(){const e=new UIEvent("focus",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e)}onBlur(){const e=new UIEvent("blur",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e)}getFloatCtrl(e){return parseFloat(e.value)}getIntCtrl(e){return parseInt(e.value)}onMouseDown(e){const t=e.clientX;let i=this.getFloatCtrl(this);isNaN(i)&&(i=0);const n=e=>{const n=Math.ceil(e.clientX-t);this.scaledIntCtrl(i,n)},s=()=>{window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",s)};window.addEventListener("mousemove",n),window.addEventListener("mouseup",s)}scaledIntCtrl(e,t){const i=this.max,n=this.min,s=e+Math.round(Math.sign(t)*Math.pow(Math.abs(t)/10,1.6));if(s<=parseInt(String(i))&&s>=parseInt(String(n))){this.value=String(s);const e=new UIEvent("input",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e)}}onChangeValue(e){this.value=e.target.value}mouseCtrl(){const e=this.sliderRef.value,t=this.sliderRefX.value;e?.addEventListener("mousedown",this.onMouseDown),t?.addEventListener("mousedown",this.onMouseDown)}render(){return n.qy`<form class="form" @submit=${this.onSubmit}>
|
|
2
2
|
<input
|
|
3
|
-
${(0,
|
|
3
|
+
${(0,o.K)(this.inputRef)}
|
|
4
4
|
style="${this.inputStyle}"
|
|
5
5
|
.autofocus="${this.autofocus}"
|
|
6
6
|
.placeholder="${this.placeholder}"
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
.max="${String(this.max)}"
|
|
12
12
|
.step="${String(this.step)}"
|
|
13
13
|
.value="${String(this.value)}"
|
|
14
|
-
/>${"text"===this.type&&this.maxLength?
|
|
14
|
+
/>${"text"===this.type&&this.maxLength?n.qy`<span class="counter"
|
|
15
15
|
>${this.value.length}/${this.maxLength}</span
|
|
16
16
|
> `:null}
|
|
17
17
|
<span
|
|
18
18
|
@input=${this.onChangeValue}
|
|
19
|
-
${(0,
|
|
19
|
+
${(0,o.K)(this.sliderRef)}
|
|
20
20
|
class="slider"
|
|
21
21
|
></span>
|
|
22
22
|
<span
|
|
23
23
|
@input=${this.onChangeValue}
|
|
24
|
-
${(0,
|
|
24
|
+
${(0,o.K)(this.sliderRefX)}
|
|
25
25
|
class="slider-x"
|
|
26
26
|
></span>
|
|
27
|
-
</form>`}firstUpdated(){this.autofocus&&this.inputRef.value&&this.inputRef.value.focus()}focus(){super.focus(),this.inputRef.value&&this.inputRef.value.focus()}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.mouseCtrl(),this.setDir()},50)}setValue(e){if(!this.inputRef.value)return;const t=this.inputRef.value;if(this.max&&t.value.length>this.max)return t.value=this.value,void this.inputRef.value.focus();if(this.value=t.value,this.setDir(),this.value){const t=new UIEvent(e.type,{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}}setDir(){const e=this.inputRef.value,t=this.value||e?.placeholder;e&&("number"===this.type||"color"===this.type||t&&!(0,
|
|
27
|
+
</form>`}firstUpdated(){this.autofocus&&this.inputRef.value&&this.inputRef.value.focus()}focus(){super.focus(),this.inputRef.value&&this.inputRef.value.focus()}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.mouseCtrl(),this.setDir()},50)}setValue(e){if(!this.inputRef.value)return;const t=this.inputRef.value;if(this.max&&t.value.length>this.max)return t.value=this.value,void this.inputRef.value.focus();if(this.value=t.value,this.setDir(),this.value){const t=new UIEvent(e.type,{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}}setDir(){const e=this.inputRef.value,t=this.value||e?.placeholder;e&&("number"===this.type||"color"===this.type||t&&!(0,s.A)(t)?(e.style.textAlign="left",e.style.direction="ltr"):(e.style.textAlign="right",e.style.direction="rtl"))}patch(e){this.value=String(e)}}a.styles=n.AH`
|
|
28
28
|
:host {
|
|
29
29
|
display: inline-block;
|
|
30
30
|
--cdtr-input-height: 30px;
|
|
@@ -96,4 +96,4 @@
|
|
|
96
96
|
input[type="number"] {
|
|
97
97
|
-moz-appearance: textfield;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
`,a.properties={value:{type:String,reflect:!0},step:{type:Number,reflect:!0},min:{type:Number,reflect:!0},max:{type:Number,reflect:!0},placeholder:{type:String,reflect:!0},autofocus:{type:Boolean,reflect:!0},inputStyle:{type:String,reflect:!0},maxLength:{type:Number}},customElements.define("cdtr-number-input",a)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2773],{2773(t,e,i){i.r(e),i.d(e,{FormatColor:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2773],{2773(t,e,i){i.r(e),i.d(e,{FormatColor:()=>s});var r=i(59929);class s extends r.WF{constructor(){super(),this.iconStyle=""}render(){return r.qy`<svg
|
|
2
2
|
style=${this.iconStyle}
|
|
3
3
|
viewBox="0 0 24 24"
|
|
4
4
|
preserveAspectRatio="xMidYMid meet"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
></path>
|
|
12
12
|
<path style="fill:${this.color}" d="M0 20h24v4H0z"></path>
|
|
13
13
|
</g>
|
|
14
|
-
</svg>`}}
|
|
14
|
+
</svg>`}}s.styles=r.AH`
|
|
15
15
|
:host {
|
|
16
16
|
display: inherit;
|
|
17
17
|
--cdtr-icon-width: 20px;
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
height: var(--cdtr-icon-height);
|
|
23
23
|
color: var(--cdtr-icon-color);
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
`,s.properties={iconStyle:{type:String},color:{type:String}},customElements.define("cdtr-format-color",s)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2833],{52833(t,i,e){e.r(i),e.d(i,{LinkdinIcon:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2833],{52833(t,i,e){e.r(i),e.d(i,{LinkdinIcon:()=>n});var h=e(59929);class n extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy` <svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
viewBox="0 0 24 24"
|
|
4
4
|
width="24"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<path
|
|
10
10
|
d="M18.335 18.339H15.67v-4.177c0-.996-.02-2.278-1.39-2.278-1.389 0-1.601 1.084-1.601 2.205v4.25h-2.666V9.75h2.56v1.17h.035c.358-.674 1.228-1.387 2.528-1.387 2.7 0 3.2 1.778 3.2 4.091v4.715zM7.003 8.575a1.546 1.546 0 0 1-1.548-1.549 1.548 1.548 0 1 1 1.547 1.549zm1.336 9.764H5.666V9.75H8.34v8.589zM19.67 3H4.329C3.593 3 3 3.58 3 4.297v15.406C3 20.42 3.594 21 4.328 21h15.338C20.4 21 21 20.42 21 19.703V4.297C21 3.58 20.4 3 19.666 3h.003z"
|
|
11
11
|
/>
|
|
12
|
-
</svg>`}}
|
|
12
|
+
</svg>`}}n.styles=h.AH`
|
|
13
13
|
:host {
|
|
14
14
|
display: inherit;
|
|
15
15
|
--cdtr-icon-width: 20px;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
height: var(--cdtr-icon-height);
|
|
21
21
|
color: var(--cdtr-icon-color);
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
`,n.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-linkdin-icon",n)}}]);
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see 2834.creaditor.bundle.js.LICENSE.txt */
|
|
2
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2834],{70453(t,e,s){s.r(e),s.d(e,{TitleEditor:()=>
|
|
2
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2834],{70453(t,e,s){s.r(e),s.d(e,{TitleEditor:()=>o});var n=s(59929),r=s(70980);class o extends n.WF{constructor(){super(),this.pb="6px"}render(){const t={fontWeight:this.bold?700:400,paddingBottom:this.pb};return n.qy`<span style=${(0,r.W)(t)}><slot></slot></span>`}}o.styles=n.AH`
|
|
3
3
|
:host {
|
|
4
4
|
display: block;
|
|
5
5
|
font-size: 13px;
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
direction: var(--direction-locale);
|
|
12
12
|
user-select: none;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
`,o.properties={bold:{type:Boolean},pb:{type:String}},customElements.define("cdtr-title",o)},70980(t,e,s){s.d(e,{W:()=>l});var n=s(80181),r=s(16655);const o="important",i=" !"+o,l=(0,r.u$)(class extends r.WL{constructor(t){if(super(t),t.type!==r.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,s)=>{const n=t[s];return null==n?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in e){const n=e[t];if(null!=n){this.ft.add(t);const e="string"==typeof n&&n.endsWith(i);t.includes("-")||e?s.setProperty(t,e?n.slice(0,-11):n,e?o:""):s[t]=n}}return n.c0}})}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2956],{2956(e,t,i){i.r(t),i.d(t,{MergeTags:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2956],{2956(e,t,i){i.r(t),i.d(t,{MergeTags:()=>a});var r=i(59929),s=i(86319);class a extends r.WF{constructor(){super()}connectedCallback(){if(super.connectedCallback(),this.level=0,this.mergeTags=s.M.get("config","editor","configure","editorProps","mergeTags","items"),!this.mergeTags)return r.qy``;this.storage={0:[...this.mergeTags]},this.pprefix=s.M.get("config","editor","configure","editorProps","mergeTags","prefix")||"",this.suffix=s.M.get("config","editor","configure","editorProps","mergeTags","suffix")||"",this.title=s.M.get("config","editor","configure","editorProps","mergeTags","title")||"Merge Tags",this.createdEvent=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0})}dispatch(e){this.value=this.pprefix+e.target.value+this.suffix,this.dispatchEvent(this.createdEvent)}render(){return this.mergeTags?r.qy`<cdtr-list-picker
|
|
2
2
|
.height="${this.height}"
|
|
3
3
|
.left="${this.left}"
|
|
4
4
|
@change="${this.dispatch}"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
.list=${this.mergeTags}
|
|
8
8
|
hasModal=${!0}
|
|
9
9
|
hasSearch=${!0}
|
|
10
|
-
></cdtr-list-picker> `:
|
|
10
|
+
></cdtr-list-picker> `:r.qy``}}a.styles=r.AH`
|
|
11
11
|
@keyframes slide-in {
|
|
12
12
|
from {
|
|
13
13
|
opacity: 0;
|
|
@@ -37,4 +37,4 @@
|
|
|
37
37
|
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
|
|
38
38
|
border-radius: 10px;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
`,a.properties={value:{type:String,reflect:!1},mergeTags:{type:Array},level:{type:Number},left:{type:String},top:{type:String},height:{type:Number}},customElements.define("cdtr-merge-tags",a)}}]);
|
|
Binary file
|