@creaditor/newsletter-starterkit 1.0.41 → 1.0.43
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/1260.creaditor.bundle.js +234 -0
- package/dist/1260.creaditor.bundle.js.gz +0 -0
- package/dist/1317.creaditor.bundle.js +3 -3
- package/dist/1317.creaditor.bundle.js.gz +0 -0
- package/dist/1529.creaditor.bundle.js +16 -0
- package/dist/1529.creaditor.bundle.js.gz +0 -0
- package/dist/1565.creaditor.bundle.js +1016 -0
- package/dist/1565.creaditor.bundle.js.gz +0 -0
- package/dist/168.creaditor.bundle.js +5 -421
- package/dist/168.creaditor.bundle.js.gz +0 -0
- package/dist/170.creaditor.bundle.js +1 -1
- package/dist/170.creaditor.bundle.js.gz +0 -0
- package/dist/2234.creaditor.bundle.js +1 -1
- package/dist/2234.creaditor.bundle.js.gz +0 -0
- package/dist/2384.creaditor.bundle.js +1 -1
- package/dist/2384.creaditor.bundle.js.gz +0 -0
- package/dist/2438.creaditor.bundle.js +67 -0
- package/dist/2438.creaditor.bundle.js.gz +0 -0
- package/dist/2547.creaditor.bundle.js +6 -0
- package/dist/2547.creaditor.bundle.js.gz +0 -0
- package/dist/2706.creaditor.bundle.js +2 -2
- package/dist/2706.creaditor.bundle.js.gz +0 -0
- package/dist/271.creaditor.bundle.js +99 -0
- package/dist/271.creaditor.bundle.js.gz +0 -0
- package/dist/2834.creaditor.bundle.js +14 -0
- package/dist/2834.creaditor.bundle.js.LICENSE.txt +5 -0
- package/dist/2834.creaditor.bundle.js.gz +0 -0
- package/dist/3095.creaditor.bundle.js +161 -0
- package/dist/3095.creaditor.bundle.js.gz +0 -0
- package/dist/3521.creaditor.bundle.js +2 -2
- package/dist/3521.creaditor.bundle.js.gz +0 -0
- package/dist/3553.creaditor.bundle.js +1 -1
- package/dist/3553.creaditor.bundle.js.gz +0 -0
- package/dist/3606.creaditor.bundle.js +113 -0
- package/dist/3606.creaditor.bundle.js.gz +0 -0
- package/dist/3932.creaditor.bundle.js +30 -0
- package/dist/3932.creaditor.bundle.js.gz +0 -0
- package/dist/4186.creaditor.bundle.js +453 -0
- package/dist/4186.creaditor.bundle.js.LICENSE.txt +10 -0
- package/dist/4186.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/4186.creaditor.bundle.js.gz +0 -0
- package/dist/4288.creaditor.bundle.js +98 -0
- package/dist/4288.creaditor.bundle.js.gz +0 -0
- package/dist/453.creaditor.bundle.js +111 -11
- package/dist/453.creaditor.bundle.js.gz +0 -0
- package/dist/4569.creaditor.bundle.js +1043 -19
- package/dist/4569.creaditor.bundle.js.gz +0 -0
- package/dist/4819.creaditor.bundle.js +1 -1
- package/dist/4819.creaditor.bundle.js.gz +0 -0
- package/dist/5133.creaditor.bundle.js +60 -0
- package/dist/5133.creaditor.bundle.js.gz +0 -0
- package/dist/5501.creaditor.bundle.js +112 -0
- package/dist/5501.creaditor.bundle.js.gz +0 -0
- package/dist/5713.creaditor.bundle.js +2 -152
- package/dist/5713.creaditor.bundle.js.LICENSE.txt +0 -11
- package/dist/5713.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/5713.creaditor.bundle.js.gz +0 -0
- package/dist/574.creaditor.bundle.js +4 -68
- package/dist/574.creaditor.bundle.js.gz +0 -0
- package/dist/5849.creaditor.bundle.js +1 -1
- package/dist/5849.creaditor.bundle.js.gz +0 -0
- package/dist/5926.creaditor.bundle.js +1 -1
- package/dist/5926.creaditor.bundle.js.gz +0 -0
- package/dist/6036.creaditor.bundle.js +34 -0
- package/dist/6036.creaditor.bundle.js.gz +0 -0
- package/dist/6151.creaditor.bundle.js +1 -0
- package/dist/6151.creaditor.bundle.js.gz +0 -0
- package/dist/638.creaditor.bundle.js +23 -0
- package/dist/638.creaditor.bundle.js.gz +0 -0
- package/dist/6442.creaditor.bundle.js +236 -0
- package/dist/6442.creaditor.bundle.js.gz +0 -0
- package/dist/7307.creaditor.bundle.js +186 -0
- package/dist/7307.creaditor.bundle.js.gz +0 -0
- package/dist/741.creaditor.bundle.js +234 -0
- package/dist/741.creaditor.bundle.js.gz +0 -0
- package/dist/7466.creaditor.bundle.js +1 -1
- package/dist/7466.creaditor.bundle.js.gz +0 -0
- package/dist/752.creaditor.bundle.js +40 -0
- package/dist/752.creaditor.bundle.js.gz +0 -0
- package/dist/767.creaditor.bundle.js +1 -1
- package/dist/767.creaditor.bundle.js.gz +0 -0
- package/dist/8042.creaditor.bundle.js +71 -0
- package/dist/8042.creaditor.bundle.js.gz +0 -0
- package/dist/8141.creaditor.bundle.js +1 -1
- package/dist/8141.creaditor.bundle.js.gz +0 -0
- package/dist/8173.creaditor.bundle.js +3 -3
- package/dist/8173.creaditor.bundle.js.gz +0 -0
- package/dist/8443.creaditor.bundle.js +72 -0
- package/dist/8443.creaditor.bundle.js.gz +0 -0
- package/dist/8516.creaditor.bundle.js +1 -1
- package/dist/8516.creaditor.bundle.js.gz +0 -0
- package/dist/8570.creaditor.bundle.js +102 -0
- package/dist/8570.creaditor.bundle.js.gz +0 -0
- package/dist/8646.creaditor.bundle.js +122 -0
- package/dist/8646.creaditor.bundle.js.gz +0 -0
- package/dist/8654.creaditor.bundle.js +109 -0
- package/dist/8654.creaditor.bundle.js.gz +0 -0
- package/dist/8854.creaditor.bundle.js +1 -1
- package/dist/8854.creaditor.bundle.js.gz +0 -0
- package/dist/8916.creaditor.bundle.js +18 -0
- package/dist/8916.creaditor.bundle.js.gz +0 -0
- package/dist/898.creaditor.bundle.js +5 -357
- package/dist/898.creaditor.bundle.js.gz +0 -0
- package/dist/9041.creaditor.bundle.js +171 -0
- package/dist/9041.creaditor.bundle.js.gz +0 -0
- package/dist/9193.creaditor.bundle.js +1 -1
- package/dist/9193.creaditor.bundle.js.gz +0 -0
- package/dist/9990.creaditor.bundle.js +16 -0
- package/dist/9990.creaditor.bundle.js.gz +0 -0
- package/dist/creaditor.bundle.js +1241 -1657
- package/dist/creaditor.bundle.js.LICENSE.txt +8 -0
- package/dist/creaditor.bundle.js.LICENSE.txt.gz +0 -0
- 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
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[6036],{26036(e,t,s){s.r(t),s.d(t,{ImageSkeleton:()=>r});var i=s(24586),n=s(59929);class r extends n.WF{constructor(){super()}render(){return n.qy` <div class="skeleton-item skeleton-image"></div>`}}(0,i.A)(r,"styles",n.AH`
|
|
2
|
+
:host {
|
|
3
|
+
display: block;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
}
|
|
7
|
+
.skeleton-item {
|
|
8
|
+
background: #e8e4f0;
|
|
9
|
+
border-radius: 4px;
|
|
10
|
+
position: relative;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
}
|
|
15
|
+
.skeleton-item::after {
|
|
16
|
+
content: "";
|
|
17
|
+
position: absolute;
|
|
18
|
+
top: 0;
|
|
19
|
+
left: 0;
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 100%;
|
|
22
|
+
background: linear-gradient(90deg, #e8e4f0, #f0ecf8, #e8e4f0);
|
|
23
|
+
animation: skeleton-shimmer 1.6s ease-in-out infinite;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@keyframes skeleton-shimmer {
|
|
27
|
+
0% {
|
|
28
|
+
transform: translate3d(-100%, 0, 0);
|
|
29
|
+
}
|
|
30
|
+
100% {
|
|
31
|
+
transform: translate3d(100%, 0, 0);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`),customElements.define("cdtr-image-skeleton",r)}}]);
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[6151],{36151(e,n,t){t.d(n,{default:()=>x});let a=!0;const o=e=>{{const{component:n,commands:t,helpers:o}=e,i=n.parent("col");return{select:e=>{let{changeTab:n,tab:t}=e;t.text||n("image")},tabs:e=>{const n=[{text:"image",selected:!0},{text:"design"},{text:"link"},{text:"ai"},{text:"settings"}];return e?(n.forEach(n=>n.selected=n.selected=n.text===e),n):n},layout:e=>{const{tab:o,changeTab:s,tabs:r}=e;return[{type:"info",text:"image_micro_copy",active:()=>"image"===o.text},{type:"imagePrompt",active:()=>"ai"===o.text,onChange:e=>{e.target.value}},{type:"gallery",active:()=>"image"===o.text,src:n.props.src,hasPreview:!0,text:"openGalleryImage",justify:"flex-start",onChange:e=>{let n=e.detail;Array.isArray(n)&&(n=n[0]),t.execCommand("src",n.src)}},{type:"input",title:"add_urlAddress_from_media_site",active:()=>"image"===o.text,value:n.props.src||"",onChange:e=>{const n=e.target.value;t.execCommand("src",n)}},{type:"input",title:"altText",active:()=>"image"===o.text,value:n.props.alt||"",onChange:e=>{const n=e.target.value;t.execCommand("alt",n)}},{type:"checkbox",title:"fullWidthOnMobile",checked:!!n.props.isFullWidthOnMobile,active:()=>"image"===o.text,onChange:e=>{const n=e.target.checked;t.execCommand("isFullWidthOnMobile",n)}},{type:"divider",active:()=>"design"===o.text},{type:"checkbox",title:"keep_ratio",checked:!!a,active:()=>"design"===o.text,onChange:e=>{a=!a,s("design")}},{type:"slider",min:10,title:"size",active:()=>"design"===o.text&&a,max:a?1e3:i?.element?.offsetWidth,value:parseInt(n.props.style.width),onInput:e=>{const n=e.target.value;t.execCommand("style",{width:n+"px",height:"auto"})}},{type:"slider",min:10,title:"width",active:()=>"design"===o.text&&!a,max:a?1e3:i?.element?.offsetWidth,value:parseInt(n.props.style.width),onInput:e=>{const a=e.target.value,o=n.atomElement.getBoundingClientRect().height;t.execCommand("style",{width:a+"px",height:o+"px"})}},{type:"slider",min:10,title:"height",active:()=>"design"===o.text&&!a,max:2*i?.element?.offsetWidth,value:parseInt(n.props.style.height),onInput:e=>{const a=e.target.value,o=n.atomElement.getBoundingClientRect().width;t.execCommand("style",{height:a+"px",width:o+"px"})}},{type:"radius",title:"radius",active:()=>"design"===o.text,min:0,max:parseInt(n.props.style.width)/2,value:parseInt(n.props.style.borderRadius),elementId:n.id,borderTopRightRadius:parseInt(n.props.style.borderTopRightRadius),borderTopLeftRadius:parseInt(n.props.style.borderTopLeftRadius),borderBottomRightRadius:parseInt(n.props.style.borderBottomRightRadius),borderBottomLeftRadius:parseInt(n.props.style.borderBottomLeftRadius),onInput:e=>{const n=e.target.json;t.execCommand("style",{borderTopRightRadius:n.borderTopRightRadius+"px",borderTopLeftRadius:n.borderTopLeftRadius+"px",borderBottomRightRadius:n.borderBottomRightRadius+"px",borderBottomLeftRadius:n.borderBottomLeftRadius+"px",borderRadius:null})}},{type:"divider",active:()=>"design"===o.text},{type:"linkpicker",href:n.props.onClick?.link,protocol:n.props.onClick?.link?.protocol,target:n.props.onClick?.link?.target,autofocus:!0,active:()=>"link"===o.text,onChange:e=>{const n={link:e.target.value};t.execCommand("onClick",n)}}]}}}};var i=t(52144);const s=()=>({set:(e,n,t)=>{switch(n){case"src":case"isFullWidthOnMobile":case"isOpenWithModal":case"isCircle":case"alt":case"onClick":return e[n]=t,!0;case"style":if("object"==typeof t)return e[n]=(0,i.A)(e[n],t),!0}}});var r=t(72591),l=t.n(r),d=t(88639),A=t.n(d),c=t(88128),p=t.n(c),m=t(30855),g=t.n(m),u=t(93051),h=t.n(u),C=t(98481),E={};E.setAttributes=g(),E.insert=p().bind(null,"head"),E.domAPI=A(),E.insertStyleElement=h();l()(C.A,E);const y=C.A&&C.A.locals?C.A.locals:void 0;function b(e){const n=document.createElement("div");n.className=y.wrapper;const t=document.createElement("div");t.className=y.skeleton;const a=document.createElement("div");a.className=y.shimmer,t.appendChild(a);const o=document.createElement("div");o.className=y.scanline,t.appendChild(o);const i=document.createElement("div");i.className=y.imageContainer,i.appendChild(e);let s=!1;function r(){if(!s)return;s=!1,n.classList.remove(y.loading),n.classList.add(y.revealed),e.classList.remove(y.imageHidden),e.classList.add(y.imageRevealed);const t=()=>{n.classList.remove(y.revealed),e.classList.remove(y.imageRevealed),e.removeEventListener("animationend",t)};e.addEventListener("animationend",t)}return e.addEventListener("load",r),e.addEventListener("error",r),{wrapper:n,showLoader:function(){(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||e.src&&!e.complete)&&(s=!0,n.classList.add(y.loading),e.classList.add(y.imageHidden))},hideLoader:r,wrap:function(e){n.appendChild(t),n.appendChild(i),e.appendChild(n)},skeleton:t}}var v=t(44217),f={};f.setAttributes=g(),f.insert=p().bind(null,"head"),f.domAPI=A(),f.insertStyleElement=h();l()(v.A,f);const k=v.A&&v.A.locals?v.A.locals:void 0,x=()=>{const e="image";return{name:e,create:n=>{const{createElement:t,compose:a,helpers:i}=n,{arrayToString:r,mergeDiff:l}=i,d=document.createElement("img"),A=document.createElement("div");a.props.style&&!parseInt(a.props.style.height)&&(a.props.style.height="auto"),d.addEventListener("drop",e=>{e.preventDefault();var n=e.dataTransfer.getData("text/html");const t=document.createElement("div");t.innerHTML=n;const o=t.querySelector("img");o&&o.src&&a.editor.store().updateComponent(a,"src",o.src)}),d.draggable=!0,d.src=a.props.src;const c=r(a.classList);d.className=r(c,"editor-image",k.image),A.append(d);const p=b(d);p.wrap(A);let m=a.props.src;function g(e){const n=e.target;n.classList.contains("amazingbar-content-wrapper")&&"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&("Delete"!==e.key&&"Backspace"!==e.key||u.commands.remove())}a.props.src&&p.showLoader(),d.addEventListener("dblclick",()=>{const e=document.createElement("cdtr-gallery");e.opened=!0,e.multi=!0,document.body.append(e),e.addEventListener("file",n=>{let t=n.detail;Array.isArray(t)&&(t=t[0]),a.editor.store().execCommands([{key:"src",value:t.src},{key:"style",value:{height:"auto"}}]),e.opened=!1,setTimeout(()=>{e.remove()},1500)}),e.addEventListener("close",()=>{e.remove()})});const u=t({name:e,id:a.id,template:A,defaultProps:{style:{height:"auto",width:"200px"}},draggable:{group:"element"},droppable:{group:"element"},render:()=>{l(d,{style:a.props.style}),d.width=a.props.width||a.props.style.width,d.height=a.props.height||a.props.style.height,a.props.src&&a.props.src!==m&&(m=a.props.src,p.showLoader(!0)),l(d,{src:a.props.src}),l(d,{alt:a.props.alt})},resizeable:()=>A,handleBar:!0,validator:s(),schema:a.schema,onSelect:e=>{d.classList.add(e),document.addEventListener("keyup",g)},onDeselect:e=>{d.classList.remove(e),document.removeEventListener("keyup",g)},elementProps:a,remove:()=>{A.remove()},createEditor:o});let h=0,C=0,E=!1,y=!1,v=!1,f=!1;return d.addEventListener("dragover",e=>{e.preventDefault()}),d.addEventListener("dragstart",e=>{h=e.clientX,C=e.clientY,E=!0,y=!1,v=!1,f=!1}),d.addEventListener("drag",e=>{if(!E)return;const n=d.closest(".block-component")||d.closest("[data-block]")||d.parentElement;if(!n)return;const t=n.getBoundingClientRect(),a=t.width,o=t.left,i=e.clientX-o,s=.3*a,r=.7*a;if(i<s&&!y){y=!0,f=!1,v=!1;const e=u.parent("col");e&&e.commands.execCommand("justify","start")}else if(i>r&&!v){v=!0,f=!1,y=!1;const e=u.parent("col");e&&e.commands.execCommand("justify","end")}else if(i>=s&&i<=r&&!f){f=!0,y=!1,v=!1;const e=u.closest("col");e&&e.commands.execCommand("justify","center")}}),d.addEventListener("dragend",e=>{E=!1,y=!1,v=!1,f=!1}),u}}}},98481(e,n,t){t.d(n,{A:()=>r});var a=t(82001),o=t.n(a),i=t(40935),s=t.n(i)()(o());s.push([e.id,".lohuqKHS721dHgrbXSxR {\n position: relative;\n display: inline-block;\n overflow: hidden;\n}\n\n.svsvvszZebJje0J5_aR0 {\n position: relative;\n display: block;\n line-height: 0;\n}\n\n.X_p_Nfsu3cFahVFu4_Bw {\n opacity: 0;\n transition: opacity 0.15s ease-out;\n}\n\n._6bzBNhs7hY6_EZJBee1 {\n animation: RDp05pdkytBCK3jwjH1H 0.4s ease-out forwards;\n}\n\n@keyframes RDp05pdkytBCK3jwjH1H {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n/* Skeleton overlay - light purple placeholder */\n.gT24aWaYLc3ogXj85wMz {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: linear-gradient(\n 110deg,\n #e8e4f0 8%,\n #f0ecf8 18%,\n #e8e4f0 33%\n );\n background-size: 200% 100%;\n animation: _Mzf8MsKMSARt4xYISlA 1.5s ease-in-out infinite;\n pointer-events: none;\n}\n\n.lohuqKHS721dHgrbXSxR.MhfE6WSo5ganwIXH6eLf .gT24aWaYLc3ogXj85wMz {\n opacity: 1;\n z-index: 1;\n}\n\n.lohuqKHS721dHgrbXSxR:not(.MhfE6WSo5ganwIXH6eLf) .gT24aWaYLc3ogXj85wMz {\n opacity: 0;\n pointer-events: none;\n z-index: -1;\n transition: opacity 0.2s ease-out;\n}\n\n.lohuqKHS721dHgrbXSxR.MsTRDhZG2BCJz9_2FibU .gT24aWaYLc3ogXj85wMz {\n animation: j0DUaUfa5Px2EIxpK3zU 0.4s ease-out forwards;\n}\n\n@keyframes _Mzf8MsKMSARt4xYISlA {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n\n@keyframes j0DUaUfa5Px2EIxpK3zU {\n to {\n opacity: 0;\n }\n}\n\n/* Shimmer highlight sweep */\n.EcbfYuWAe3Ej6GnLZxPW {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n rgba(255, 255, 255, 0.4) 50%,\n transparent 100%\n );\n background-size: 50% 100%;\n animation: dOhdOxhPYbAyl0kAuAmR 2s ease-in-out infinite;\n}\n\n@keyframes dOhdOxhPYbAyl0kAuAmR {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(200%);\n }\n}\n\n/* Print-style scanline */\n.ixwwhz1RPbWh52COfXpg {\n position: absolute;\n left: 0;\n right: 0;\n height: 2px;\n background: linear-gradient(\n to bottom,\n transparent,\n rgba(255, 255, 255, 0.6),\n transparent\n );\n animation: qDDvb69LDcaVxWWlah1p 1.2s ease-in-out infinite;\n box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);\n}\n\n@keyframes qDDvb69LDcaVxWWlah1p {\n 0% {\n top: 0;\n opacity: 1;\n }\n 90% {\n top: 100%;\n opacity: 0.8;\n }\n 100% {\n top: 100%;\n opacity: 0;\n }\n}\n","",{version:3,sources:["webpack://./../web-editors/image-editor-component/lib/image-loader.module.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,qBAAqB;EACrB,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,cAAc;EACd,cAAc;AAChB;;AAEA;EACE,UAAU;EACV,kCAAkC;AACpC;;AAEA;EACE,sDAA6C;AAC/C;;AAEA;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF;;AAEA,gDAAgD;AAChD;EACE,kBAAkB;EAClB,MAAQ;EAAR,QAAQ;EAAR,SAAQ;EAAR,OAAQ;EACR;;;;;GAKC;EACD,0BAA0B;EAC1B,yDAAoD;EACpD,oBAAoB;AACtB;;AAEA;EACE,UAAU;EACV,UAAU;AACZ;;AAEA;EACE,UAAU;EACV,oBAAoB;EACpB,WAAW;EACX,iCAAiC;AACnC;;AAEA;EACE,sDAAiD;AACnD;;AAEA;EACE;IACE,2BAA2B;EAC7B;EACA;IACE,4BAA4B;EAC9B;AACF;;AAEA;EACE;IACE,UAAU;EACZ;AACF;;AAEA,4BAA4B;AAC5B;EACE,kBAAkB;EAClB,MAAQ;EAAR,QAAQ;EAAR,SAAQ;EAAR,OAAQ;EACR;;;;;GAKC;EACD,yBAAyB;EACzB,uDAA+C;AACjD;;AAEA;EACE;IACE,4BAA4B;EAC9B;EACA;IACE,2BAA2B;EAC7B;AACF;;AAEA,yBAAyB;AACzB;EACE,kBAAkB;EAClB,OAAO;EACP,QAAQ;EACR,WAAW;EACX;;;;;GAKC;EACD,yDAAiD;EACjD,4CAA4C;AAC9C;;AAEA;EACE;IACE,MAAM;IACN,UAAU;EACZ;EACA;IACE,SAAS;IACT,YAAY;EACd;EACA;IACE,SAAS;IACT,UAAU;EACZ;AACF",sourcesContent:[".wrapper {\n position: relative;\n display: inline-block;\n overflow: hidden;\n}\n\n.imageContainer {\n position: relative;\n display: block;\n line-height: 0;\n}\n\n.imageHidden {\n opacity: 0;\n transition: opacity 0.15s ease-out;\n}\n\n.imageRevealed {\n animation: imageFadeIn 0.4s ease-out forwards;\n}\n\n@keyframes imageFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n/* Skeleton overlay - light purple placeholder */\n.skeleton {\n position: absolute;\n inset: 0;\n background: linear-gradient(\n 110deg,\n #e8e4f0 8%,\n #f0ecf8 18%,\n #e8e4f0 33%\n );\n background-size: 200% 100%;\n animation: skeletonShimmer 1.5s ease-in-out infinite;\n pointer-events: none;\n}\n\n.wrapper.loading .skeleton {\n opacity: 1;\n z-index: 1;\n}\n\n.wrapper:not(.loading) .skeleton {\n opacity: 0;\n pointer-events: none;\n z-index: -1;\n transition: opacity 0.2s ease-out;\n}\n\n.wrapper.revealed .skeleton {\n animation: skeletonFadeOut 0.4s ease-out forwards;\n}\n\n@keyframes skeletonShimmer {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n}\n\n@keyframes skeletonFadeOut {\n to {\n opacity: 0;\n }\n}\n\n/* Shimmer highlight sweep */\n.shimmer {\n position: absolute;\n inset: 0;\n background: linear-gradient(\n 90deg,\n transparent 0%,\n rgba(255, 255, 255, 0.4) 50%,\n transparent 100%\n );\n background-size: 50% 100%;\n animation: shimmerSweep 2s ease-in-out infinite;\n}\n\n@keyframes shimmerSweep {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(200%);\n }\n}\n\n/* Print-style scanline */\n.scanline {\n position: absolute;\n left: 0;\n right: 0;\n height: 2px;\n background: linear-gradient(\n to bottom,\n transparent,\n rgba(255, 255, 255, 0.6),\n transparent\n );\n animation: scanlineMove 1.2s ease-in-out infinite;\n box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);\n}\n\n@keyframes scanlineMove {\n 0% {\n top: 0;\n opacity: 1;\n }\n 90% {\n top: 100%;\n opacity: 0.8;\n }\n 100% {\n top: 100%;\n opacity: 0;\n }\n}\n"],sourceRoot:""}]),s.locals={wrapper:"lohuqKHS721dHgrbXSxR",imageContainer:"svsvvszZebJje0J5_aR0",imageHidden:"X_p_Nfsu3cFahVFu4_Bw",imageRevealed:"_6bzBNhs7hY6_EZJBee1",imageFadeIn:"RDp05pdkytBCK3jwjH1H",skeleton:"gT24aWaYLc3ogXj85wMz",skeletonShimmer:"_Mzf8MsKMSARt4xYISlA",loading:"MhfE6WSo5ganwIXH6eLf",revealed:"MsTRDhZG2BCJz9_2FibU",skeletonFadeOut:"j0DUaUfa5Px2EIxpK3zU",shimmer:"EcbfYuWAe3Ej6GnLZxPW",shimmerSweep:"dOhdOxhPYbAyl0kAuAmR",scanline:"ixwwhz1RPbWh52COfXpg",scanlineMove:"qDDvb69LDcaVxWWlah1p"};const r=s},44217(e,n,t){t.d(n,{A:()=>r});var a=t(82001),o=t.n(a),i=t(40935),s=t.n(i)()(o());s.push([e.id,".YbsG1_k3QD06_W0gNo53{\n display: block;\n max-width: 100%;\n}","",{version:3,sources:["webpack://./../web-editors/image-editor-component/lib/style.module.css"],names:[],mappings:"AAAA;IACI,cAAc;IACd,eAAe;AACnB",sourcesContent:[".image{\n display: block;\n max-width: 100%;\n}"],sourceRoot:""}]),s.locals={image:"YbsG1_k3QD06_W0gNo53"};const r=s}}]);
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[638],{638(e,t,i){i.r(t),i.d(t,{DevicePicker:()=>h});var o,r,c,n,d=i(59088),p=i(24586),s=i(36936),l=i(59929);let h=(o=(0,i(49410).MZ)({type:String}),n=class extends l.WF{constructor(){super(),(0,d.A)(this,"device",c,this)}choose(e){this.device=e}render(){return l.qy` <cdtr-row alignItems="center">
|
|
2
|
+
<paper-button @click=${()=>this.choose("phone")}>
|
|
3
|
+
<cdtr-tooltip content="design_for_phone">
|
|
4
|
+
<cdtr-icon
|
|
5
|
+
color=${"phone"===this.device?"var(--primary)":""}
|
|
6
|
+
width="18"
|
|
7
|
+
icon="phone"
|
|
8
|
+
></cdtr-icon>
|
|
9
|
+
</cdtr-tooltip>
|
|
10
|
+
</paper-button>
|
|
11
|
+
<paper-button @click=${()=>this.choose("desktop")}
|
|
12
|
+
><cdtr-tooltip content="design_for_desktop"
|
|
13
|
+
><cdtr-icon
|
|
14
|
+
color=${"desktop"===this.device?"var(--primary)":""}
|
|
15
|
+
width="18"
|
|
16
|
+
icon="desktop"
|
|
17
|
+
></cdtr-icon></cdtr-tooltip></paper-button
|
|
18
|
+
></cdtr-row>`}},(0,p.A)(n,"styles",l.AH`
|
|
19
|
+
paper-button {
|
|
20
|
+
padding: 0;
|
|
21
|
+
min-width: 0;
|
|
22
|
+
}
|
|
23
|
+
`),r=n,c=(0,s.A)(r.prototype,"device",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);customElements.define("cdtr-device-picker",h)}}]);
|
|
Binary file
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[6442],{66442(e,i,a){a.r(i),a.d(i,{CouchMark:()=>o});var s=a(24586),t=a(59929);class o extends t.WF{constructor(){super()}render(){return t.qy`<div class="pulser">
|
|
2
|
+
<div class="pulse pulse1"></div>
|
|
3
|
+
<div class="pulse pulse2"></div>
|
|
4
|
+
<div class="pulse pulse4"></div>
|
|
5
|
+
</div>`}}(0,s.A)(o,"properties",{name:{}}),(0,s.A)(o,"styles",t.AH`
|
|
6
|
+
:host {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: inline-block;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.pulse {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 50%;
|
|
14
|
+
left: 50%;
|
|
15
|
+
transform: translate(-50%, -50%);
|
|
16
|
+
width: 30px;
|
|
17
|
+
height: 30px;
|
|
18
|
+
-webkit-border-radius: 50%;
|
|
19
|
+
-moz-border-radius: 50%;
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
-webkit-box-sizing: border-box;
|
|
22
|
+
-moz-box-sizing: border-box;
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.pulse1 {
|
|
27
|
+
border: 13px solid #845EC2;
|
|
28
|
+
-webkit-animation: pulse1 2s linear infinite;
|
|
29
|
+
-moz-animation: pulse1 2s linear infinite;
|
|
30
|
+
animation: pulse1 2s linear infinite;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pulse2 {
|
|
34
|
+
border: 8px solid #845EC2;
|
|
35
|
+
opacity: 0.2;
|
|
36
|
+
-webkit-animation: pulse2 2s linear infinite;
|
|
37
|
+
-moz-animation: pulse2 2s linear infinite;
|
|
38
|
+
animation: pulse2 2s linear infinite;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.pulse3 {
|
|
42
|
+
border: 10px solid #845EC2;
|
|
43
|
+
opacity: 0.5;
|
|
44
|
+
-webkit-animation: pulse3 2s linear infinite;
|
|
45
|
+
-moz-animation: pulse3 2s linear infinite;
|
|
46
|
+
animation: pulse3 2s linear infinite;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.pulse4 {
|
|
50
|
+
border: 15px solid #845EC2;
|
|
51
|
+
opacity: 0.1;
|
|
52
|
+
-webkit-animation: pulse4 2s linear infinite;
|
|
53
|
+
-moz-animation: pulse4 2s linear infinite;
|
|
54
|
+
animation: pulse4 2s linear infinite;
|
|
55
|
+
width: 30px;
|
|
56
|
+
height: 30px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* moz */
|
|
60
|
+
@-moz-keyframes pulse1 {
|
|
61
|
+
0% {
|
|
62
|
+
-moz-transform: scale(0);
|
|
63
|
+
opacity: 0;
|
|
64
|
+
}
|
|
65
|
+
20% {
|
|
66
|
+
-moz-transform: scale(0);
|
|
67
|
+
opacity: 0;
|
|
68
|
+
}
|
|
69
|
+
40% {
|
|
70
|
+
-moz-transform: scale(0.2);
|
|
71
|
+
opacity: 0.4;
|
|
72
|
+
}
|
|
73
|
+
60% {
|
|
74
|
+
-moz-transform: scale(0.4);
|
|
75
|
+
opacity: 0.6;
|
|
76
|
+
}
|
|
77
|
+
100% {
|
|
78
|
+
-moz-transform: scale(0.6);
|
|
79
|
+
opacity: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@-moz-keyframes pulse2 {
|
|
84
|
+
0% {
|
|
85
|
+
-moz-transform: scale(0);
|
|
86
|
+
opacity: 0;
|
|
87
|
+
}
|
|
88
|
+
25% {
|
|
89
|
+
-moz-transform: scale(0.2);
|
|
90
|
+
opacity: 0.7;
|
|
91
|
+
}
|
|
92
|
+
40% {
|
|
93
|
+
-moz-transform: scale(0.4);
|
|
94
|
+
opacity: 0.5;
|
|
95
|
+
}
|
|
96
|
+
65% {
|
|
97
|
+
-moz-transform: scale(0.6);
|
|
98
|
+
opacity: 0.3;
|
|
99
|
+
}
|
|
100
|
+
100% {
|
|
101
|
+
-moz-transform: scale(0.8);
|
|
102
|
+
opacity: 0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@-moz-keyframes pulse3 {
|
|
107
|
+
0% {
|
|
108
|
+
-moz-transform: scale(0.1);
|
|
109
|
+
opacity: 0;
|
|
110
|
+
}
|
|
111
|
+
25% {
|
|
112
|
+
-moz-transform: scale(0.3);
|
|
113
|
+
opacity: 0.7;
|
|
114
|
+
}
|
|
115
|
+
50% {
|
|
116
|
+
-moz-transform: scale(0.5);
|
|
117
|
+
opacity: 0.5;
|
|
118
|
+
}
|
|
119
|
+
75% {
|
|
120
|
+
-moz-transform: scale(0.6);
|
|
121
|
+
opacity: 0.3;
|
|
122
|
+
}
|
|
123
|
+
100% {
|
|
124
|
+
-moz-transform: scale(0.66);
|
|
125
|
+
opacity: 0;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@-moz-keyframes pulse4 {
|
|
130
|
+
0% {
|
|
131
|
+
-moz-transform: scale(0.1);
|
|
132
|
+
opacity: 0;
|
|
133
|
+
}
|
|
134
|
+
30% {
|
|
135
|
+
-moz-transform: scale(0.3);
|
|
136
|
+
opacity: 0.6;
|
|
137
|
+
}
|
|
138
|
+
80% {
|
|
139
|
+
-moz-transform: scale(0.6);
|
|
140
|
+
opacity: 0.4;
|
|
141
|
+
}
|
|
142
|
+
100% {
|
|
143
|
+
-moz-transform: scale(0.8);
|
|
144
|
+
opacity: 0;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* webkit */
|
|
149
|
+
@-webkit-keyframes pulse1 {
|
|
150
|
+
0% {
|
|
151
|
+
-webkit-transform: scale(0);
|
|
152
|
+
opacity: 0;
|
|
153
|
+
}
|
|
154
|
+
20% {
|
|
155
|
+
-webkit-transform: scale(0);
|
|
156
|
+
opacity: 0;
|
|
157
|
+
}
|
|
158
|
+
40% {
|
|
159
|
+
-webkit-transform: scale(0.2);
|
|
160
|
+
opacity: 0.4;
|
|
161
|
+
}
|
|
162
|
+
60% {
|
|
163
|
+
-webkit-transform: scale(0.4);
|
|
164
|
+
opacity: 0.6;
|
|
165
|
+
}
|
|
166
|
+
100% {
|
|
167
|
+
-webkit-transform: scale(0.6);
|
|
168
|
+
opacity: 0;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@-webkit-keyframes pulse2 {
|
|
173
|
+
0% {
|
|
174
|
+
-webkit-transform: scale(0);
|
|
175
|
+
opacity: 0;
|
|
176
|
+
}
|
|
177
|
+
25% {
|
|
178
|
+
-webkit-transform: scale(0.2);
|
|
179
|
+
opacity: 0.7;
|
|
180
|
+
}
|
|
181
|
+
40% {
|
|
182
|
+
-webkit-transform: scale(0.4);
|
|
183
|
+
opacity: 0.5;
|
|
184
|
+
}
|
|
185
|
+
65% {
|
|
186
|
+
-webkit-transform: scale(0.6);
|
|
187
|
+
opacity: 0.3;
|
|
188
|
+
}
|
|
189
|
+
100% {
|
|
190
|
+
-webkit-transform: scale(0.8);
|
|
191
|
+
opacity: 0;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@-webkit-keyframes pulse3 {
|
|
196
|
+
0% {
|
|
197
|
+
-webkit-transform: scale(0.1);
|
|
198
|
+
opacity: 0;
|
|
199
|
+
}
|
|
200
|
+
25% {
|
|
201
|
+
-webkit-transform: scale(0.3);
|
|
202
|
+
opacity: 0.7;
|
|
203
|
+
}
|
|
204
|
+
50% {
|
|
205
|
+
-webkit-transform: scale(0.5);
|
|
206
|
+
opacity: 0.5;
|
|
207
|
+
}
|
|
208
|
+
75% {
|
|
209
|
+
-webkit-transform: scale(0.6);
|
|
210
|
+
opacity: 0.3;
|
|
211
|
+
}
|
|
212
|
+
100% {
|
|
213
|
+
-webkit-transform: scale(0.66);
|
|
214
|
+
opacity: 0;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@-webkit-keyframes pulse4 {
|
|
219
|
+
0% {
|
|
220
|
+
-webkit-transform: scale(0.1);
|
|
221
|
+
opacity: 0;
|
|
222
|
+
}
|
|
223
|
+
30% {
|
|
224
|
+
-webkit-transform: scale(0.3);
|
|
225
|
+
opacity: 0.6;
|
|
226
|
+
}
|
|
227
|
+
80% {
|
|
228
|
+
-webkit-transform: scale(0.6);
|
|
229
|
+
opacity: 0.4;
|
|
230
|
+
}
|
|
231
|
+
100% {
|
|
232
|
+
-webkit-transform: scale(0.8);
|
|
233
|
+
opacity: 0;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
`),customElements.define("cdtr-couch-mark",o)}}]);
|
|
Binary file
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[7307],{47307(t,e,s){s.r(e),s.d(e,{default:()=>r});var i=s(24586),n=s(59929),a=s(21421),o=s(91597),l=s(81744),c=s(86319);const u=(0,o.S)();class r extends n.WF{constructor(){super(),(0,i.A)(this,"inputRef",(0,a._)()),this.min=0,this.max=100,this.step=1,this.autofocus=!1,this.type="text",this.value="number"===this.type?"0":"",this.placeholder="",this.oldValue=this.value,this.successActive=!1,this._successTimeout=null}onSubmit(t){t.preventDefault();const e=new UIEvent("submit",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(e),this.oldValue=this.value}focus(){const t=this.inputRef.value;t.focus(),t.setSelectionRange(t.value.length,t.value.length)}onFocus(){const t=new UIEvent("focus",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}onBlur(){const t=new UIEvent("blur",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t),this.oldValue=this.value}render(){this.fullWidth&&(this.style.width="100%"),this.value||"text"!==this.type||(this.value=""),this.icon&&"string"!=typeof this.inputStyle&&(this.inputStyle="");const t=c.M.get("lang",this.placeholder)||this.placeholder||"";t&&("string"!=typeof this.inputStyle&&(this.inputStyle=""),-1===this.inputStyle.indexOf("text-align")&&(this.inputStyle+=";text-align:"+("rtl"===(0,l.o)(t)?"right":"")));const e=this.multiline?n.qy` <textarea
|
|
2
|
+
row=${this.row||4}
|
|
3
|
+
.disabled=${this.disabled}
|
|
4
|
+
dir="auto"
|
|
5
|
+
${(0,a.K)(this.inputRef)}
|
|
6
|
+
style="${this.inputStyle}"
|
|
7
|
+
.autofocus="${this.autofocus}"
|
|
8
|
+
.placeholder="${t}"
|
|
9
|
+
@input="${this.setValue}"
|
|
10
|
+
@change="${this.setValue}"
|
|
11
|
+
.min="${String(this.min)}"
|
|
12
|
+
.max="${String(this.max)}"
|
|
13
|
+
.step="${String(this.step)}"
|
|
14
|
+
.value="${String(this.value)}"
|
|
15
|
+
/>`:n.qy` <input
|
|
16
|
+
.disabled=${this.disabled}
|
|
17
|
+
dir="auto"
|
|
18
|
+
${(0,a.K)(this.inputRef)}
|
|
19
|
+
style="${this.inputStyle}"
|
|
20
|
+
.autofocus="${this.autofocus}"
|
|
21
|
+
.placeholder="${t}"
|
|
22
|
+
@input="${this.setValue}"
|
|
23
|
+
@change="${this.setValue}"
|
|
24
|
+
.min="${String(this.min)}"
|
|
25
|
+
.type="${this.type}"
|
|
26
|
+
.max="${String(this.max)}"
|
|
27
|
+
.step="${String(this.step)}"
|
|
28
|
+
.value="${String(this.value)}"
|
|
29
|
+
/>`;return n.qy`<form @submit=${this.onSubmit}>
|
|
30
|
+
${e}
|
|
31
|
+
${!this.icon||this.couchOnEmpty||this.successActive?null:n.qy`<cdtr-icon
|
|
32
|
+
color="#d9d9d9"
|
|
33
|
+
width=${20}
|
|
34
|
+
height=${20}
|
|
35
|
+
style="position: absolute;
|
|
36
|
+
transform: translateY(-50%);top:50%;z-index:1;
|
|
37
|
+
left: 10px;"
|
|
38
|
+
icon="${this.icon}"
|
|
39
|
+
></cdtr-icon>`}
|
|
40
|
+
${this.successActive?n.qy`<div class="success-overlay" aria-live="polite">
|
|
41
|
+
<cdtr-couch-mark></cdtr-couch-mark>
|
|
42
|
+
<span class="success-icon">✓</span>
|
|
43
|
+
</div>`:null}
|
|
44
|
+
${!this.couchOnEmpty||this.value||this.successActive?null:n.qy`<cdtr-couch-mark
|
|
45
|
+
style="position: absolute;
|
|
46
|
+
transform: translateY(-50%);
|
|
47
|
+
left: 0;"
|
|
48
|
+
></cdtr-couch-mark>`}
|
|
49
|
+
${"text"===this.type&&this.maxLength?n.qy`<span class="counter"
|
|
50
|
+
>${this.value.length}/${this.maxLength}</span
|
|
51
|
+
> `:null}
|
|
52
|
+
</form>`}firstUpdated(){this.autofocus&&setTimeout(()=>{this.inputRef.value&&this.inputRef.value.focus()},500),void 0===this.value&&(this.value="")}focus(){super.focus(),this.inputRef.value.focus()}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._successTimeout&&(clearTimeout(this._successTimeout),this._successTimeout=null)}setValue(t){if(this.selectionStart=this.inputRef.value.selectionStart,!this.inputRef.value)return;const e=this.inputRef.value;if("text"===this.type&&this.max&&e.value.length>this.max)return e.value=this.value,void this.inputRef.value.focus();this.value=e.value;const s=new UIEvent(t.type,{view:window,bubbles:!0,cancelable:!0});if(this.dispatchEvent(s),"input"===t.type){const t=()=>{const t=new UIEvent("debounce",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)};u.run(t,500)}}success(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e3;this._successTimeout&&(clearTimeout(this._successTimeout),this._successTimeout=null),this.successActive=!0;const e=Number(t);!Number.isFinite(e)||e<=0||(this._successTimeout=setTimeout(()=>{this.successActive=!1,this._successTimeout=null},e))}patch(t){this.value=t}}(0,i.A)(r,"styles",n.AH`
|
|
53
|
+
:host {
|
|
54
|
+
display: inline-block;
|
|
55
|
+
--cdtr-input-height: 30px;
|
|
56
|
+
--cdtr-input-padding: 0.105rem 0.45rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
form {
|
|
60
|
+
position: relative;
|
|
61
|
+
}
|
|
62
|
+
.counter {
|
|
63
|
+
font-size: 10px;
|
|
64
|
+
}
|
|
65
|
+
input,
|
|
66
|
+
textarea {
|
|
67
|
+
height: var(--cdtr-input-height);
|
|
68
|
+
display: inline-block;
|
|
69
|
+
width: 100%;
|
|
70
|
+
padding: var(--cdtr-input-padding);
|
|
71
|
+
font-size: 14px;
|
|
72
|
+
font-weight: 400;
|
|
73
|
+
line-height: 1.5;
|
|
74
|
+
color: #212529;
|
|
75
|
+
background: #fff;
|
|
76
|
+
background-clip: padding-box;
|
|
77
|
+
border: 1px solid #ced4da;
|
|
78
|
+
-webkit-appearance: none;
|
|
79
|
+
-moz-appearance: none;
|
|
80
|
+
appearance: none;
|
|
81
|
+
border-radius: 0.25rem;
|
|
82
|
+
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
83
|
+
margin: 0;
|
|
84
|
+
font-family: var(--font-family);
|
|
85
|
+
border-color: var(--input-border-color);
|
|
86
|
+
outline: var(--input-border-color);
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
}
|
|
89
|
+
textarea {
|
|
90
|
+
height: auto;
|
|
91
|
+
resize: none;
|
|
92
|
+
}
|
|
93
|
+
input:disabled,
|
|
94
|
+
textrea:disabled,
|
|
95
|
+
textareap[readonly],
|
|
96
|
+
input[readonly] {
|
|
97
|
+
background-color: #e9ecef;
|
|
98
|
+
opacity: 0.5;
|
|
99
|
+
}
|
|
100
|
+
input:hover,
|
|
101
|
+
textarea:hover {
|
|
102
|
+
border-color: black;
|
|
103
|
+
}
|
|
104
|
+
input::placeholder,
|
|
105
|
+
textarea::placeholder {
|
|
106
|
+
font-family: var(--font-family);
|
|
107
|
+
}
|
|
108
|
+
input:focus,
|
|
109
|
+
textarea:focus {
|
|
110
|
+
border-color: var(--primary);
|
|
111
|
+
}
|
|
112
|
+
input[type="number"] {
|
|
113
|
+
padding-right: 0px;
|
|
114
|
+
padding-left: 4px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
input[type="number"] {
|
|
118
|
+
-moz-appearance: textfield;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.success-overlay {
|
|
122
|
+
position: absolute;
|
|
123
|
+
top: 50%;
|
|
124
|
+
left: 4px;
|
|
125
|
+
transform: translateY(-50%);
|
|
126
|
+
width: 28px;
|
|
127
|
+
height: 28px;
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
pointer-events: none;
|
|
132
|
+
z-index: 2;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.success-overlay cdtr-couch-mark {
|
|
136
|
+
position: absolute;
|
|
137
|
+
top: 50%;
|
|
138
|
+
left: 50%;
|
|
139
|
+
transform: translate(-50%, -50%) scale(0.75);
|
|
140
|
+
opacity: 0.85;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.success-overlay .success-icon {
|
|
144
|
+
position: absolute;
|
|
145
|
+
top: 50%;
|
|
146
|
+
left: 50%;
|
|
147
|
+
width: 20px;
|
|
148
|
+
height: 20px;
|
|
149
|
+
border-radius: 999px;
|
|
150
|
+
display: flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
justify-content: center;
|
|
153
|
+
background: var(--primary);
|
|
154
|
+
color: #f6fff9;
|
|
155
|
+
font-size: 14px;
|
|
156
|
+
font-weight: 600;
|
|
157
|
+
transform: translate(-50%, -50%) scale(0.85);
|
|
158
|
+
opacity: 0;
|
|
159
|
+
animation: successPop 0.32s ease-out forwards;
|
|
160
|
+
box-shadow: 0 0 6px rgba(79, 192, 111, 0.25);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@keyframes successPop {
|
|
164
|
+
0% {
|
|
165
|
+
transform: translate(-50%, -50%) scale(0.85);
|
|
166
|
+
opacity: 0;
|
|
167
|
+
}
|
|
168
|
+
50% {
|
|
169
|
+
transform: translate(-50%, -50%) scale(1.05);
|
|
170
|
+
opacity: 1;
|
|
171
|
+
}
|
|
172
|
+
100% {
|
|
173
|
+
transform: translate(-50%, -50%) scale(1);
|
|
174
|
+
opacity: 1;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@keyframes successGlow {
|
|
179
|
+
0% {
|
|
180
|
+
box-shadow: 0 0 6px rgba(79, 192, 111, 0.25);
|
|
181
|
+
}
|
|
182
|
+
100% {
|
|
183
|
+
box-shadow: 0 0 10px rgba(79, 192, 111, 0.2);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
`),(0,i.A)(r,"properties",{value:{type:String,reflect:!0},step:{type:Number,reflect:!0},min:{type:Number,reflect:!0},max:{type:Number,reflect:!0},type:{type:String,reflect:!0},inputDir:{type:String},icon:{type:String,reflect:!0},placeholder:{type:String,reflect:!0},autofocus:{type:Boolean,reflect:!0},fullWidth:{type:Boolean,reflect:!0},selectionStart:{type:Number},inputStyle:{type:String,reflect:!0},maxLength:{type:Number},couchOnEmpty:{type:Boolean},disabled:{type:Boolean},multiline:{type:Boolean},row:{type:Number},successActive:{type:Boolean}}),customElements.get("cdtr-input")||customElements.define("cdtr-input",r)}}]);
|
|
Binary file
|