@creaditor/web-starterkit 1.0.22 → 1.0.24
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 +55 -41
- package/dist/1260.creaditor.bundle.js.gz +0 -0
- package/dist/1271.creaditor.bundle.js +469 -364
- package/dist/1271.creaditor.bundle.js.gz +0 -0
- package/dist/1334.creaditor.bundle.js +1 -1
- package/dist/1334.creaditor.bundle.js.gz +0 -0
- package/dist/170.creaditor.bundle.js +15 -15
- package/dist/170.creaditor.bundle.js.gz +0 -0
- package/dist/2590.creaditor.bundle.js +1 -1
- package/dist/2590.creaditor.bundle.js.gz +0 -0
- package/dist/271.creaditor.bundle.js +6 -6
- package/dist/271.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 +12 -4
- package/dist/3606.creaditor.bundle.js.gz +0 -0
- package/dist/3932.creaditor.bundle.js +4 -4
- package/dist/3932.creaditor.bundle.js.gz +0 -0
- package/dist/4186.creaditor.bundle.js +5 -1
- package/dist/4186.creaditor.bundle.js.gz +0 -0
- package/dist/453.creaditor.bundle.js +8 -6
- package/dist/453.creaditor.bundle.js.gz +0 -0
- package/dist/4762.creaditor.bundle.js +1 -1
- package/dist/4762.creaditor.bundle.js.gz +0 -0
- package/dist/5133.creaditor.bundle.js +3 -3
- package/dist/5133.creaditor.bundle.js.gz +0 -0
- package/dist/567.creaditor.bundle.js +469 -364
- package/dist/567.creaditor.bundle.js.gz +0 -0
- package/dist/5849.creaditor.bundle.js +2 -2
- package/dist/5849.creaditor.bundle.js.gz +0 -0
- package/dist/5909.creaditor.bundle.js +33 -30
- package/dist/5909.creaditor.bundle.js.gz +0 -0
- package/dist/5926.creaditor.bundle.js +74 -13
- package/dist/5926.creaditor.bundle.js.gz +0 -0
- package/dist/638.creaditor.bundle.js +1 -1
- package/dist/638.creaditor.bundle.js.gz +0 -0
- package/dist/7209.creaditor.bundle.js +1 -1
- package/dist/7209.creaditor.bundle.js.gz +0 -0
- package/dist/752.creaditor.bundle.js +6 -4
- package/dist/752.creaditor.bundle.js.gz +0 -0
- package/dist/7654.creaditor.bundle.js +37 -14
- package/dist/7654.creaditor.bundle.js.gz +0 -0
- package/dist/7997.creaditor.bundle.js +1 -1
- package/dist/7997.creaditor.bundle.js.gz +0 -0
- package/dist/8443.creaditor.bundle.js +1 -1
- package/dist/8443.creaditor.bundle.js.gz +0 -0
- package/dist/8547.creaditor.bundle.js +125 -108
- package/dist/8547.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/8854.creaditor.bundle.js +4 -4
- package/dist/8854.creaditor.bundle.js.gz +0 -0
- package/dist/8916.creaditor.bundle.js +3 -1
- package/dist/8916.creaditor.bundle.js.gz +0 -0
- package/dist/9041.creaditor.bundle.js +1 -1
- package/dist/9041.creaditor.bundle.js.gz +0 -0
- package/dist/9250.creaditor.bundle.js +1 -1
- package/dist/9250.creaditor.bundle.js.gz +0 -0
- package/dist/creaditor.bundle.js +201 -182
- 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
|
|
Binary file
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[170],{60170(e,t,o){o.r(t),o.d(t,{BreadCrumbs:()=>i});var
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[170],{60170(e,t,o){o.r(t),o.d(t,{BreadCrumbs:()=>i});var s=o(59929),r=o(86319),n=o(36565);class i extends s.WF{constructor(){super(),this.crumbs=[],this._menuOpen=!1,this._menuPos={left:0,top:0},this._collapsed=!1,this._fitScheduled=!1,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._onDocMouseDown=e=>{this._menuOpen&&(e.composedPath().includes(this)||this._closeMenu())},this._onDocKeyDown=e=>{this._menuOpen&&"Escape"===e.key&&this._closeMenu()},this.onSubscribe=()=>{let e;this.crumbs=[],this._menuOpen=!1,this._collapsed=!1;const t=n.Ay.components[n.Ay.components.length-1];if(!t)return;if(e=t.element,!e)return void console.error("selectElement not found","#1ppqmvss6");let o=t.type.getElementType(),s="";t.props.as&&(s=` (${r.M.get("lang",t.props.as)||t.props.as})`),this.currectCrumb={type:o,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=r.M.get("components",t.dataset.id);let o=!0;e&&"row"!==e.type&&("col"===e.type&&"block"!==e.parent().type&&(o=!1),o&&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)}updated(){if(this.toggleAttribute("hidden-crumbs",0===this.crumbs.length),!this._collapsed&&this.crumbs.length>1&&!this._fitScheduled&&(this._fitScheduled=!0,requestAnimationFrame(()=>{this._fitScheduled=!1;const e=this.shadowRoot.querySelector(".row");e&&!this._collapsed&&e.scrollWidth>e.clientWidth+1&&(this._collapsed=!0)})),this._menuOpen){const e=this.shadowRoot.querySelector(".crumb-menu");if(e){const t=e.offsetWidth,o=window.innerWidth-t-8,s=Math.max(8,Math.min(this._menuPos.left,o));s!==this._menuPos.left&&(e.style.left=s+"px")}}}_openMenu(){if(this._menuOpen)return void this._closeMenu();const e=this.getBoundingClientRect();this._menuPos={left:e.left,top:e.top},this._menuOpen=!0}_closeMenu(){this._menuOpen=!1}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(){if(0===this.crumbs.length)return"";const e=(e,t,o)=>e||`${r.M.get("lang",t)||t||""}${o||""}`,t=()=>s.qy`<span class="sepc">›</span>`,o=t=>s.qy`<span
|
|
2
2
|
@mouseout=${()=>this.cover.remove()}
|
|
3
3
|
@mouseover=${()=>this.onHover(t.element)}
|
|
4
4
|
@mousedown=${()=>this.clickBread(t)}
|
|
5
5
|
class="breadcrumb"
|
|
6
|
-
>${e(t.name,t.type)}</span>`,n=e(this.currectCrumb.name,this.currectCrumb.type,this.currectCrumb.as),i=this._collapsed,a=this.mainText?
|
|
6
|
+
>${e(t.name,t.type)}</span>`,n=e(this.currectCrumb.name,this.currectCrumb.type,this.currectCrumb.as),i=this._collapsed,a=this.mainText?s.qy`<span
|
|
7
7
|
class="currect${i?" clickable":""}"
|
|
8
8
|
@mousedown=${()=>{i&&this._openMenu()}}
|
|
9
9
|
>${n}</span
|
|
10
|
-
>`:null,c=this._collapsed,l=
|
|
10
|
+
>`:null,c=this._collapsed,l=s.qy`<span
|
|
11
11
|
class="breadcrumb ellipsis"
|
|
12
12
|
@mousedown=${()=>this._openMenu()}
|
|
13
|
-
>…</span>`,p=c?
|
|
13
|
+
>…</span>`,p=c?s.qy`${o(this.crumbs[0])}${t()}${l}${t()}${o(this.crumbs[this.crumbs.length-1])}${t()}`:s.qy`${this.crumbs.map(e=>s.qy`${o(e)}${t()}`)}`,d=this._menuOpen?s.qy`<div
|
|
14
14
|
class="crumb-menu"
|
|
15
15
|
style="left:${this._menuPos.left}px; top:${this._menuPos.top}px;"
|
|
16
16
|
>
|
|
17
17
|
<div class="menu-path">
|
|
18
|
-
${this.crumbs.map(e=>
|
|
18
|
+
${this.crumbs.map(e=>s.qy`${o(e)}<span class="sepc">›</span>`)}
|
|
19
19
|
<span class="crumb-current">${n}</span>
|
|
20
20
|
</div>
|
|
21
|
-
</div>`:null;return
|
|
21
|
+
</div>`:null;return s.qy`
|
|
22
22
|
<div class="row ${c?"collapsed":""}">
|
|
23
23
|
${p}
|
|
24
24
|
${a}
|
|
25
25
|
</div>
|
|
26
26
|
${d}
|
|
27
|
-
`}connectedCallback(){super.connectedCallback(),n.Ay.on("select",this.onSubscribe),n.Ay.on("update",this.onSubscribe),document.addEventListener("mousedown",this._onDocMouseDown),document.addEventListener("keydown",this._onDocKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.cover.remove(),n.Ay.off("select",this.onSubscribe),n.Ay.off("update",this.onSubscribe),document.removeEventListener("mousedown",this._onDocMouseDown),document.removeEventListener("keydown",this._onDocKeyDown)}clickBread(e){this.cover.remove(),n.Ay.clean().selectComponent(e.compose)}}i.styles=
|
|
27
|
+
`}connectedCallback(){super.connectedCallback(),n.Ay.on("select",this.onSubscribe),n.Ay.on("update",this.onSubscribe),document.addEventListener("mousedown",this._onDocMouseDown),document.addEventListener("keydown",this._onDocKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.cover.remove(),n.Ay.off("select",this.onSubscribe),n.Ay.off("update",this.onSubscribe),document.removeEventListener("mousedown",this._onDocMouseDown),document.removeEventListener("keydown",this._onDocKeyDown)}clickBread(e){this.cover.remove(),n.Ay.clean().selectComponent(e.compose)}}i.styles=s.AH`
|
|
28
28
|
:host {
|
|
29
29
|
direction: var(--direction);
|
|
30
30
|
display: block;
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
}
|
|
41
41
|
.currect {
|
|
42
42
|
font-size: var(--text-xs);
|
|
43
|
-
font-family: var(--font-
|
|
43
|
+
font-family: var(--font-sans);
|
|
44
44
|
font-weight: 600;
|
|
45
|
-
color: var(--color-primary,
|
|
45
|
+
color: var(--color-primary, #6366f1);
|
|
46
46
|
margin-top: var(--space-1);
|
|
47
47
|
margin-right: var(--space-1);
|
|
48
48
|
margin-left: var(--space-1);
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
.breadcrumb {
|
|
52
52
|
font-size: var(--text-xs);
|
|
53
53
|
cursor: pointer;
|
|
54
|
-
font-family: var(--font-
|
|
54
|
+
font-family: var(--font-sans);
|
|
55
55
|
margin-right: var(--space-1);
|
|
56
56
|
margin-left: var(--space-1);
|
|
57
|
-
color: var(--color-text-muted
|
|
57
|
+
color: var(--color-text-muted);
|
|
58
58
|
}
|
|
59
59
|
.breadcrumb:hover {
|
|
60
|
-
color: var(--color-primary,
|
|
60
|
+
color: var(--color-primary, #6366f1);
|
|
61
61
|
}
|
|
62
62
|
.arrow {
|
|
63
63
|
height: 14px;
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
max-width: none;
|
|
117
117
|
}
|
|
118
118
|
.ellipsis:hover {
|
|
119
|
-
color: var(--color-primary,
|
|
119
|
+
color: var(--color-primary, #6366f1);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
/* Full-path popover. It opens positioned directly OVER the collapsed row
|
|
@@ -175,9 +175,9 @@
|
|
|
175
175
|
}
|
|
176
176
|
.crumb-menu .menu-path .crumb-current {
|
|
177
177
|
font-size: var(--text-xs);
|
|
178
|
-
font-family: var(--font-
|
|
178
|
+
font-family: var(--font-sans);
|
|
179
179
|
font-weight: 600;
|
|
180
|
-
color: var(--color-primary,
|
|
180
|
+
color: var(--color-primary, #6366f1);
|
|
181
181
|
max-width: 170px;
|
|
182
182
|
overflow: hidden;
|
|
183
183
|
text-overflow: ellipsis;
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2590],{2590(t,e,n){n.r(e),n.d(e,{TitleEditor:()=>l});var i=n(59929),s=n(86319);class l extends i.WF{constructor(){super(),this.text="",this.whiteSpace="pre"}connectedCallback(){super.connectedCallback(),this.style.fontFamily="var(--font-
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2590],{2590(t,e,n){n.r(e),n.d(e,{TitleEditor:()=>l});var i=n(59929),s=n(86319);class l extends i.WF{constructor(){super(),this.text="",this.whiteSpace="pre"}connectedCallback(){super.connectedCallback(),this.style.fontFamily="var(--font-sans)",this.bold&&(this.style.fontWeight="bold"),this._onStoreChange=()=>this.requestUpdate(),s.M.connect(["lang","theme"],this._onStoreChange)}disconnectedCallback(){this._onStoreChange&&(s.M.disconnect(this._onStoreChange),this._onStoreChange=null),super.disconnectedCallback()}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 i.qy`<slot
|
|
2
2
|
><span
|
|
3
3
|
style="-webkit-font-smoothing: antialiased;display:inline-block;direction:var(--direction-locale);text-align:var(--text-align-locale);white-space:${this.whiteSpace}"
|
|
4
4
|
>${e||this.text}</span
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
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:()=>r});var n=i(59929),s=i(21663),o=i(21421);class r 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
3
|
${(0,o.K)(this.inputRef)}
|
|
4
4
|
style="${this.inputStyle}"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
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,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)}}
|
|
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)}}r.styles=n.AH`
|
|
28
28
|
:host {
|
|
29
29
|
display: inline-block;
|
|
30
30
|
--cdtr-input-height: 30px;
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
border-radius: 0.25rem;
|
|
75
75
|
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
76
76
|
margin: 0;
|
|
77
|
-
font-family: var(--font-
|
|
77
|
+
font-family: var(--font-sans);
|
|
78
78
|
border-color: var(--input-border-color);
|
|
79
79
|
outline: var(--input-border-color);
|
|
80
80
|
box-sizing: border-box;
|
|
@@ -83,10 +83,10 @@
|
|
|
83
83
|
border-color: black;
|
|
84
84
|
}
|
|
85
85
|
input::placeholder {
|
|
86
|
-
font-family: var(--font-
|
|
86
|
+
font-family: var(--font-sans);
|
|
87
87
|
}
|
|
88
88
|
input:focus {
|
|
89
|
-
border-color: var(--primary);
|
|
89
|
+
border-color: var(--color-primary, #6366f1);
|
|
90
90
|
}
|
|
91
91
|
input[type="number"] {
|
|
92
92
|
padding-right: 0px;
|
|
@@ -96,4 +96,4 @@
|
|
|
96
96
|
input[type="number"] {
|
|
97
97
|
-moz-appearance: textfield;
|
|
98
98
|
}
|
|
99
|
-
`,
|
|
99
|
+
`,r.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",r)}}]);
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3521],{83521(t,e,i){i.r(e),i.d(e,{DesignFactory:()=>l});var o=i(5441),
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3521],{83521(t,e,i){i.r(e),i.d(e,{DesignFactory:()=>l});var o=i(5441),n=i(59929),r=i(36565),s=i(18057),d=i(86319);i.e(8315).then(i.bind(i,68315));class l extends n.WF{constructor(){super(),this.lastEditor=null,this._selectedComponentId=null,this._injectedForId=null,d.M.set({injectEditor:t=>{this.injected=!0,this._injectedForId=this._selectedComponentId,this.lastEditor=this.editor,this.backToEditor=this.editor,this.editor=t}}),this.editor=n.qy`<cdtr-ilustration-preference
|
|
2
2
|
width="200px"
|
|
3
3
|
height="200px"
|
|
4
|
-
></cdtr-ilustration-preference>`,this.delayer=new s.A,this.connect=this.connect.bind(this),this.editors={block:{selector:"block-editor",load:()=>i.e(1260).then(i.bind(i,91260)),component:null},no_editor:{selector:"cdtr-no-component",load:()=>i.e(8854).then(i.bind(i,68854)),component:null,attrs:{style:"margin:auto;display:block;max-width:150px;margin-top:30px;"}}},this.type=null,
|
|
4
|
+
></cdtr-ilustration-preference>`,this.delayer=new s.A,this.connect=this.connect.bind(this),this.editors={block:{selector:"block-editor",load:()=>i.e(1260).then(i.bind(i,91260)),component:null},no_editor:{selector:"cdtr-no-component",load:()=>i.e(8854).then(i.bind(i,68854)),component:null,attrs:{style:"margin:auto;display:block;max-width:150px;margin-top:30px;"}}},this.type=null,r.Ay.on("select",this.connect)}connect(t){let{editor:e,component:i}=t;if(!e)return;let n=e.type;if("string"!=typeof n)return;const r=i?.id??null;if(this.injected){if(null==r||r===this._injectedForId)return;this.injected=!1,this._injectedForId=null}if(this._selectedComponentId=r,this.editor?.type===n)return;if(!this.editors[n]){const t=d.M.get("config","editor","configure","plugins");if(Array.isArray(t)){const e=t.find(t=>t.name===n);if(e&&"function"==typeof e.createEditor){this.editor=document.createElement("cdtr-editor-builder"),this.editor.type=n;const t=e.createEditor();return void(t&&(this.editor.editors=t.layout,t!==this.backToEditor&&this.lastEditor&&(this.lastEditor=null)))}}n="no_editor"}this.type=n;const s=(0,o.A)("div",null,(0,o.A)("cdtr-block-loader",null),(0,o.A)("cdtr-title",{style:"text-align:center;"},(0,o.A)("lang-text",{text:"please_wait_downloading_new_version"})));this.editors[n]&&!this.editors[n].component&&(this.editors[n].load().then(()=>{if(s.remove(),this.editors[n].attrs)for(const t in this.editors[n].attrs)if(Object.hasOwnProperty.call(this.editors[n].attrs,t)){const e=this.editors[n].attrs[t];this.editors[n].component[t]=e}}),this.editors[n].component=document.createElement(this.editors[n].selector),this.editors[n].component.appendChild(s)),this.editors[n].component&&(this.editor=this.editors[n].component)}goBack(){this.lastEditor&&(this.editor=this.lastEditor,this.lastEditor=null,this.injected=!1,this._injectedForId=null)}createRenderRoot(){return this}render(){return n.qy` ${this.lastEditor?n.qy`<div style="display:flex;justify-content:flex-start;padding:12px 16px 4px;direction:var(--direction-locale);">
|
|
5
5
|
<span
|
|
6
6
|
@click=${this.goBack}
|
|
7
7
|
style="display:inline-flex;align-items:center;gap:3px;font-size:12px;color:#555;cursor:pointer;font-family:inherit;"
|
|
Binary file
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</cdtr-accordion-item>
|
|
46
46
|
`}getActiveAnimationName(e){this.selectedAnimations.find(t=>t.value===e.class_code);const t=this.selectedAnimations.find(t=>"scroll"===t.on&&t.value===e.class_code),n=this.selectedAnimations.find(t=>"hover"===t.on&&t.value===e.class_code),s=[];return t&&s.push(a.M.get("lang","active_on-scroll")),s.length>0&&s.push("\n"),n&&s.push(a.M.get("lang","active_on-hover")),s.join("")}isActiveAnimation(e,t){return this.selectedAnimations.find(n=>n.value===e.class_code&&t.type===n.on)}}r.properties={name:{},animations:{type:Array},selected:{type:String}},r.styles=s.AH`
|
|
47
47
|
.gallery {
|
|
48
|
-
background-color: var(--primary);
|
|
48
|
+
background-color: var(--color-primary, #6366f1);
|
|
49
49
|
color: var(--primaryText);
|
|
50
50
|
}
|
|
51
51
|
.config {
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3606],{13606(e,t,i){i.r(t),i.d(t,{Checkbox:()=>s});var n=i(59929),
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3606],{13606(e,t,i){i.r(t),i.d(t,{Checkbox:()=>s});var n=i(59929),o=i(12106);class s extends n.WF{constructor(){super(),this.inputId=void 0,this.event=void 0,this.value=void 0,this.checked=!0,this.controlled=!0,this.inputId=(0,o.A)(),this.event=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0})}onToggle(){this.controlled||(this.checked=!this.checked),this.dispatchEvent(this.event)}toggle(){this.checked=!this.checked,this.dispatchEvent(this.event)}render(){return n.qy`<span
|
|
2
2
|
@click=${this.onToggle}
|
|
3
3
|
tabindex="0"
|
|
4
4
|
class="root ${this.checked?"checked":""}"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.root.checked {
|
|
59
|
-
color: var(--primary);
|
|
59
|
+
color: var(--color-primary, #6366f1);
|
|
60
60
|
}
|
|
61
61
|
.svg-wrapper {
|
|
62
62
|
position: relative;
|
|
@@ -107,7 +107,15 @@
|
|
|
107
107
|
font-size: 1.5rem;
|
|
108
108
|
}
|
|
109
109
|
label {
|
|
110
|
-
margin
|
|
111
|
-
|
|
110
|
+
/* No margin of its own: the label wraps a <slot>, so when a caller passes
|
|
111
|
+
no text (most editor-panel checkboxes) the old symmetric 7px margins
|
|
112
|
+
still reserved 14px of empty width beside the box — which read as the
|
|
113
|
+
checkbox being oddly far from the label sitting next to it. */
|
|
114
|
+
margin: 0;
|
|
115
|
+
}
|
|
116
|
+
/* Only pay for the gap when something is actually slotted in, and put it on
|
|
117
|
+
the leading edge so it follows the locale's direction. */
|
|
118
|
+
::slotted(*) {
|
|
119
|
+
margin-inline-start: 7px;
|
|
112
120
|
}
|
|
113
121
|
`,customElements.define("cdtr-checkbox",s)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3932],{33932(e,t,r){r.r(t),r.d(t,{EyeDroppper:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3932],{33932(e,t,r){r.r(t),r.d(t,{EyeDroppper:()=>o});var i=r(59929);const s=r(45888);class o extends i.WF{constructor(){super(),this.isValid=void 0,this.event=void 0,this.openEyeDropper=async()=>{const e=new AbortController;try{const t=new EyeDropper,{sRGBHex:r}=await t.open({signal:e.signal}),i=s(r).setAlpha(1).toRgbString();this.value=this.color=i,this.dispatchEvent(this.event)}catch(e){console.error(e)}e.abort()},this.isValid=!!window.EyeDropper,this.event=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0})}render(){return this.isValid?i.qy`
|
|
2
2
|
<svg
|
|
3
3
|
tabIndex="0"
|
|
4
4
|
@click=${this.openEyeDropper}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
d="m20.71 5.63-2.34-2.34a.9959.9959 0 0 0-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42zM6.92 19 5 17.08l8.06-8.06 1.92 1.92L6.92 19z"
|
|
12
12
|
></path>
|
|
13
13
|
</svg>
|
|
14
|
-
`:null}}
|
|
14
|
+
`:null}}o.styles=i.AH`
|
|
15
15
|
:host {
|
|
16
16
|
position: relative;
|
|
17
17
|
display: inline-block;
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
cursor: pointer;
|
|
22
22
|
}
|
|
23
23
|
svg:hover {
|
|
24
|
-
fill: var(--primary);
|
|
24
|
+
fill: var(--color-primary, #6366f1);
|
|
25
25
|
}
|
|
26
26
|
svg:active {
|
|
27
27
|
transform: scale(1.1);
|
|
28
28
|
fill: var(--dark);
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,o.properties={value:{type:String,reflect:!0},color:{type:String,reflect:!0}},customElements.define("cdtr-eye-dropper",o)}}]);
|
|
Binary file
|
|
@@ -300,9 +300,13 @@
|
|
|
300
300
|
transition: left 0.08s ease;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
.slider-knob:focus {
|
|
303
|
+
.slider-knob:focus:not(:focus-visible) {
|
|
304
304
|
outline: none;
|
|
305
305
|
}
|
|
306
|
+
.slider-knob:focus-visible {
|
|
307
|
+
outline: none;
|
|
308
|
+
box-shadow: var(--focus-ring);
|
|
309
|
+
}
|
|
306
310
|
|
|
307
311
|
.slider-knob.dragging {
|
|
308
312
|
transition: none;
|
|
Binary file
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[453],{70453(t,e,o){o.r(e),o.d(e,{TitleEditor:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[453],{70453(t,e,o){o.r(e),o.d(e,{TitleEditor:()=>i});var s=o(59929),n=o(70980);class i extends s.WF{constructor(){super(),this.pb="4px"}render(){const t={fontWeight:this.bold?700:400,paddingBottom:this.pb};return s.qy`<span style=${(0,n.W)(t)}><slot></slot></span>`}}i.styles=s.AH`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
font-
|
|
4
|
+
/* Bolder than the group heading above it, not lighter: labels are what
|
|
5
|
+
you act on. */
|
|
6
|
+
font-size: var(--text-xs, 12px);
|
|
7
|
+
font-weight: 600;
|
|
8
|
+
color: var(--color-text, #1a1a1f);
|
|
9
|
+
font-family: var(--font-sans);
|
|
8
10
|
-webkit-font-smoothing: antialiased;
|
|
9
11
|
text-align: var(--text-align-locale);
|
|
10
12
|
direction: var(--direction-locale);
|
|
11
13
|
user-select: none;
|
|
12
14
|
}
|
|
13
|
-
`,
|
|
15
|
+
`,i.properties={bold:{type:Boolean},pb:{type:String}},customElements.define("cdtr-title",i)}}]);
|
|
Binary file
|
|
Binary file
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
border-radius: 0.25rem;
|
|
44
44
|
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
45
45
|
margin: 0;
|
|
46
|
-
font-family: var(--font-
|
|
46
|
+
font-family: var(--font-sans);
|
|
47
47
|
border-color: var(--input-border-color);
|
|
48
48
|
outline: var(--input-border-color);
|
|
49
49
|
box-sizing: border-box;
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
border-color: black;
|
|
53
53
|
}
|
|
54
54
|
textarea::placeholder {
|
|
55
|
-
font-family: var(--font-
|
|
55
|
+
font-family: var(--font-sans);
|
|
56
56
|
}
|
|
57
57
|
textarea:focus {
|
|
58
|
-
border-color: var(--primary);
|
|
58
|
+
border-color: var(--color-primary, #6366f1);
|
|
59
59
|
}
|
|
60
60
|
`,customElements.define("cdtr-textarea",o)}}]);
|
|
Binary file
|