@creaditor/newsletter-starterkit 1.0.56 → 1.0.58
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/1142.creaditor.bundle.js +1 -1
- package/dist/1142.creaditor.bundle.js.gz +0 -0
- package/dist/1260.creaditor.bundle.js +112 -63
- package/dist/1260.creaditor.bundle.js.gz +0 -0
- package/dist/1271.creaditor.bundle.js +1 -1
- 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/1529.creaditor.bundle.js +1 -1
- package/dist/1529.creaditor.bundle.js.gz +0 -0
- package/dist/170.creaditor.bundle.js +149 -22
- package/dist/170.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/2234.creaditor.bundle.js +121 -1
- package/dist/2234.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/2765.creaditor.bundle.js +1 -1
- package/dist/2765.creaditor.bundle.js.gz +0 -0
- package/dist/2956.creaditor.bundle.js +1 -1
- package/dist/2956.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/353.creaditor.bundle.js +3 -3
- package/dist/353.creaditor.bundle.js.gz +0 -0
- package/dist/3553.creaditor.bundle.js +2 -2
- 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/3847.creaditor.bundle.js +937 -21
- package/dist/3847.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/4061.creaditor.bundle.js +177 -0
- package/dist/4061.creaditor.bundle.js.LICENSE.txt +23 -0
- package/dist/4061.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/4061.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/4288.creaditor.bundle.js +10 -10
- package/dist/4288.creaditor.bundle.js.gz +0 -0
- package/dist/4475.creaditor.bundle.js +1 -1
- package/dist/4475.creaditor.bundle.js.gz +0 -0
- package/dist/453.creaditor.bundle.js +8 -7
- package/dist/453.creaditor.bundle.js.gz +0 -0
- package/dist/4639.creaditor.bundle.js +1 -1
- package/dist/4639.creaditor.bundle.js.gz +0 -0
- package/dist/4762.creaditor.bundle.js +4 -4
- 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/5133.creaditor.bundle.js +3 -3
- package/dist/5133.creaditor.bundle.js.gz +0 -0
- package/dist/5379.creaditor.bundle.js +70 -0
- package/dist/5379.creaditor.bundle.js.gz +0 -0
- package/dist/5391.creaditor.bundle.js +1 -1
- package/dist/5391.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/589.creaditor.bundle.js +25 -8
- package/dist/589.creaditor.bundle.js.gz +0 -0
- package/dist/5909.creaditor.bundle.js +651 -0
- package/dist/5909.creaditor.bundle.js.gz +0 -0
- package/dist/5926.creaditor.bundle.js +216 -34
- package/dist/5926.creaditor.bundle.js.gz +0 -0
- package/dist/638.creaditor.bundle.js +49 -20
- package/dist/638.creaditor.bundle.js.gz +0 -0
- package/dist/6814.creaditor.bundle.js +1 -1
- package/dist/6814.creaditor.bundle.js.gz +0 -0
- package/dist/7209.creaditor.bundle.js +98 -56
- package/dist/7209.creaditor.bundle.js.gz +0 -0
- package/dist/7238.creaditor.bundle.js +1 -1
- package/dist/7238.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/7564.creaditor.bundle.js +1 -1
- package/dist/7564.creaditor.bundle.js.gz +0 -0
- package/dist/763.creaditor.bundle.js +9 -9
- package/dist/763.creaditor.bundle.js.gz +0 -0
- package/dist/7654.creaditor.bundle.js +221 -0
- package/dist/7654.creaditor.bundle.js.gz +0 -0
- package/dist/7918.creaditor.bundle.js +1 -0
- package/dist/7918.creaditor.bundle.js.gz +0 -0
- package/dist/7937.creaditor.bundle.js +21 -48
- package/dist/7937.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/8141.creaditor.bundle.js +2 -3
- package/dist/8141.creaditor.bundle.js.gz +0 -0
- package/dist/8250.creaditor.bundle.js +1 -1
- package/dist/8250.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/8516.creaditor.bundle.js +1 -1
- package/dist/8516.creaditor.bundle.js.gz +0 -0
- package/dist/8547.creaditor.bundle.js +1270 -0
- 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/8646.creaditor.bundle.js +20 -24
- package/dist/8646.creaditor.bundle.js.gz +0 -0
- package/dist/8654.creaditor.bundle.js +7 -7
- package/dist/8654.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 +14 -16
- 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/9431.creaditor.bundle.js +1 -1
- package/dist/9431.creaditor.bundle.js.gz +0 -0
- package/dist/9694.creaditor.bundle.js +1 -1
- package/dist/9694.creaditor.bundle.js.gz +0 -0
- package/dist/9994.creaditor.bundle.js +1 -1
- package/dist/9994.creaditor.bundle.js.gz +0 -0
- package/dist/creaditor.bundle.js +3194 -2205
- package/dist/creaditor.bundle.js.LICENSE.txt +6 -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
|
@@ -1,20 +1,30 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[170],{60170(e,t,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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(15604);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
|
+
@mouseout=${()=>this.cover.remove()}
|
|
3
|
+
@mouseover=${()=>this.onHover(t.element)}
|
|
4
|
+
@mousedown=${()=>this.clickBread(t)}
|
|
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?s.qy`<span
|
|
7
|
+
class="currect${i?" clickable":""}"
|
|
8
|
+
@mousedown=${()=>{i&&this._openMenu()}}
|
|
9
|
+
>${n}</span
|
|
10
|
+
>`:null,c=this._collapsed,l=s.qy`<span
|
|
11
|
+
class="breadcrumb ellipsis"
|
|
12
|
+
@mousedown=${()=>this._openMenu()}
|
|
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
|
+
class="crumb-menu"
|
|
15
|
+
style="left:${this._menuPos.left}px; top:${this._menuPos.top}px;"
|
|
16
|
+
>
|
|
17
|
+
<div class="menu-path">
|
|
18
|
+
${this.crumbs.map(e=>s.qy`${o(e)}<span class="sepc">›</span>`)}
|
|
19
|
+
<span class="crumb-current">${n}</span>
|
|
15
20
|
</div>
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
</div>`:null;return s.qy`
|
|
22
|
+
<div class="row ${c?"collapsed":""}">
|
|
23
|
+
${p}
|
|
24
|
+
${a}
|
|
25
|
+
</div>
|
|
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=s.AH`
|
|
18
28
|
:host {
|
|
19
29
|
direction: var(--direction);
|
|
20
30
|
display: block;
|
|
@@ -30,9 +40,9 @@
|
|
|
30
40
|
}
|
|
31
41
|
.currect {
|
|
32
42
|
font-size: var(--text-xs);
|
|
33
|
-
font-family: var(--font-
|
|
43
|
+
font-family: var(--font-sans);
|
|
34
44
|
font-weight: 600;
|
|
35
|
-
color: var(--color-primary,
|
|
45
|
+
color: var(--color-primary, #6366f1);
|
|
36
46
|
margin-top: var(--space-1);
|
|
37
47
|
margin-right: var(--space-1);
|
|
38
48
|
margin-left: var(--space-1);
|
|
@@ -41,13 +51,13 @@
|
|
|
41
51
|
.breadcrumb {
|
|
42
52
|
font-size: var(--text-xs);
|
|
43
53
|
cursor: pointer;
|
|
44
|
-
font-family: var(--font-
|
|
54
|
+
font-family: var(--font-sans);
|
|
45
55
|
margin-right: var(--space-1);
|
|
46
56
|
margin-left: var(--space-1);
|
|
47
|
-
color: var(--color-text-muted
|
|
57
|
+
color: var(--color-text-muted);
|
|
48
58
|
}
|
|
49
59
|
.breadcrumb:hover {
|
|
50
|
-
color: var(--color-primary,
|
|
60
|
+
color: var(--color-primary, #6366f1);
|
|
51
61
|
}
|
|
52
62
|
.arrow {
|
|
53
63
|
height: 14px;
|
|
@@ -55,4 +65,121 @@
|
|
|
55
65
|
fill: var(--color-text-faint);
|
|
56
66
|
vertical-align: middle;
|
|
57
67
|
}
|
|
58
|
-
|
|
68
|
+
.row {
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
gap: 2px 8px;
|
|
72
|
+
min-width: 0;
|
|
73
|
+
min-height: 32px;
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
}
|
|
77
|
+
.row .breadcrumb,
|
|
78
|
+
.row .currect,
|
|
79
|
+
.sepc {
|
|
80
|
+
flex: 0 0 auto;
|
|
81
|
+
margin: 0;
|
|
82
|
+
}
|
|
83
|
+
/* Cap individual crumb width so a long custom name can't break the row. */
|
|
84
|
+
.row .breadcrumb {
|
|
85
|
+
display: inline-block;
|
|
86
|
+
max-width: 140px;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
text-overflow: ellipsis;
|
|
89
|
+
vertical-align: middle;
|
|
90
|
+
}
|
|
91
|
+
/* When collapsed, the current element is the last (rightmost) crumb; let it
|
|
92
|
+
shrink and ellipsize so a long name (e.g. "Social Networks") truncates
|
|
93
|
+
cleanly instead of hard-clipping into the panel actions. The full name is
|
|
94
|
+
always one "…" click away. */
|
|
95
|
+
.row.collapsed .currect {
|
|
96
|
+
flex: 0 1 auto;
|
|
97
|
+
min-width: 0;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
text-overflow: ellipsis;
|
|
100
|
+
}
|
|
101
|
+
/* Collapsed current crumb opens the full-path popover (to read the full,
|
|
102
|
+
possibly-truncated name), so signal it's interactive. */
|
|
103
|
+
.row .currect.clickable {
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
}
|
|
106
|
+
.row .currect.clickable:hover {
|
|
107
|
+
text-decoration: underline;
|
|
108
|
+
}
|
|
109
|
+
.sepc {
|
|
110
|
+
color: var(--color-text-faint);
|
|
111
|
+
font-size: var(--text-xs);
|
|
112
|
+
}
|
|
113
|
+
.ellipsis {
|
|
114
|
+
color: var(--color-text-muted);
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
max-width: none;
|
|
117
|
+
}
|
|
118
|
+
.ellipsis:hover {
|
|
119
|
+
color: var(--color-primary, #6366f1);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Full-path popover. It opens positioned directly OVER the collapsed row
|
|
123
|
+
(opaque background covers it), so it reads as the breadcrumb expanding
|
|
124
|
+
in place rather than a second breadcrumb below it. Floats (fixed), so
|
|
125
|
+
the panel below never reflows; the extra line paints over the content. */
|
|
126
|
+
.crumb-menu {
|
|
127
|
+
position: fixed;
|
|
128
|
+
z-index: 1000;
|
|
129
|
+
min-width: 170px;
|
|
130
|
+
max-width: 300px;
|
|
131
|
+
background: var(--color-surface, #fff);
|
|
132
|
+
border: 1px solid var(--color-border, #e9e9e9);
|
|
133
|
+
border-radius: 6px;
|
|
134
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
|
|
135
|
+
/* Unfold from the breadcrumb's start (top-left) so it reads as the
|
|
136
|
+
row expanding in place, not a menu dropping in. */
|
|
137
|
+
transform-origin: top left;
|
|
138
|
+
animation: crumb-menu-in 140ms cubic-bezier(0.2, 0, 0, 1);
|
|
139
|
+
}
|
|
140
|
+
@keyframes crumb-menu-in {
|
|
141
|
+
from {
|
|
142
|
+
opacity: 0;
|
|
143
|
+
transform: translateY(-2px) scale(0.97);
|
|
144
|
+
}
|
|
145
|
+
to {
|
|
146
|
+
opacity: 1;
|
|
147
|
+
transform: translateY(0) scale(1);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
@media (prefers-reduced-motion: reduce) {
|
|
151
|
+
.crumb-menu {
|
|
152
|
+
animation: none;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
/* The full breadcrumb laid out horizontally, wrapping onto extra lines —
|
|
156
|
+
same visual language as the row, just complete. */
|
|
157
|
+
.crumb-menu .menu-path {
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-wrap: wrap;
|
|
160
|
+
align-items: center;
|
|
161
|
+
gap: 4px 8px;
|
|
162
|
+
padding: 6px 12px 8px;
|
|
163
|
+
}
|
|
164
|
+
.crumb-menu .menu-path .breadcrumb {
|
|
165
|
+
display: inline-block;
|
|
166
|
+
max-width: 170px;
|
|
167
|
+
margin: 0;
|
|
168
|
+
overflow: hidden;
|
|
169
|
+
text-overflow: ellipsis;
|
|
170
|
+
vertical-align: middle;
|
|
171
|
+
}
|
|
172
|
+
.crumb-menu .menu-path .sepc {
|
|
173
|
+
color: var(--color-text-faint);
|
|
174
|
+
font-size: var(--text-xs);
|
|
175
|
+
}
|
|
176
|
+
.crumb-menu .menu-path .crumb-current {
|
|
177
|
+
font-size: var(--text-xs);
|
|
178
|
+
font-family: var(--font-sans);
|
|
179
|
+
font-weight: 600;
|
|
180
|
+
color: var(--color-primary, #6366f1);
|
|
181
|
+
max-width: 170px;
|
|
182
|
+
overflow: hidden;
|
|
183
|
+
text-overflow: ellipsis;
|
|
184
|
+
}
|
|
185
|
+
`,i.properties={crumbs:{type:Array},mainText:{type:Boolean,reflect:!0},_menuOpen:{type:Boolean,state:!0},_menuPos:{type:Object,state:!0},_collapsed:{type:Boolean,state:!0}},customElements.define("cdtr-breadcrumbs",i)}}]);
|
|
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)
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[211],{70211(e,n,t){t.r(n),t.d(n,{ParticlesJsBackground:()=>s});var i=t(59929),a=t(21421),o=t(12106);class s extends i.WF{constructor(){super(),this.containerRef=(0,a._)(),this.containerId="particles-"+(0,o.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(),t.e(3545).then(t.t.bind(t,5926,23)).then(()=>{setTimeout(()=>{Array.isArray(window.pJSDom)||(window.pJSDom=[]),particlesJS(this.containerId,this.config)},0)})}disconnectedCallback(){super.disconnectedCallback();try{const e=window.pJSDom||[],n=[];for(let t=0;t<e.length;t++){const i=e[t]?.pJS?.canvas?.el;i&&i.parentElement&&i.parentElement.id===this.containerId?e[t].pJS.fn.vendors.destroypJS():n.push(e[t])}window.pJSDom=n}catch(e){Array.isArray(window.pJSDom)||(window.pJSDom=[])}}}s.properties={name:{}},s.styles=i.AH``,customElements.define("cdtr-particlesjs",s)}}]);
|
|
Binary file
|
|
@@ -1 +1,121 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2234],{62234(
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2234],{62234(t,a,s){s.r(a),s.d(a,{ToastProvider:()=>i});var e=s(59929),o=s(49937);let r=0;class i extends e.WF{constructor(){super(),this._toasts=[],this._handleSnackbar=this._handleSnackbar.bind(this)}connectedCallback(){super.connectedCallback(),o.A.subscribe("snackbar",this._handleSnackbar),window.snackbar=t=>{"string"==typeof t&&(t={text:t}),this._handleSnackbar(t)}}disconnectedCallback(){super.disconnectedCallback()}_handleSnackbar(){let{text:t,type:a,action:s,timeout:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!t)return;const o=++r,i={id:o,text:t,type:a||"neutral",action:s||null};this._toasts=[...this._toasts,i],this._toasts.length>3&&(this._toasts=this._toasts.slice(-3)),setTimeout(()=>this._dismiss(o),e||4e3)}_dismiss(t){const a=this.shadowRoot?.querySelector(`[data-toast-id="${t}"]`);a?(a.classList.add("removing"),setTimeout(()=>{this._toasts=this._toasts.filter(a=>a.id!==t)},120)):this._toasts=this._toasts.filter(a=>a.id!==t)}_onAction(t){t.action&&"function"==typeof t.action.onClick&&t.action.onClick(),this._dismiss(t.id)}render(){return e.qy`${this._toasts.map(t=>e.qy`
|
|
2
|
+
<div class="toast ${t.type}" data-toast-id="${t.id}">
|
|
3
|
+
<span class="toast-text">${t.text}</span>
|
|
4
|
+
${t.action?e.qy`<button class="toast-action" @click=${()=>this._onAction(t)}>${t.action.label}</button>`:null}
|
|
5
|
+
<button class="toast-close" @click=${()=>this._dismiss(t.id)}>
|
|
6
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round">
|
|
7
|
+
<line x1="18" y1="6" x2="6" y2="18"></line>
|
|
8
|
+
<line x1="6" y1="6" x2="18" y2="18"></line>
|
|
9
|
+
</svg>
|
|
10
|
+
</button>
|
|
11
|
+
</div>
|
|
12
|
+
`)}`}}i.properties={_toasts:{state:!0}},i.styles=e.AH`
|
|
13
|
+
:host {
|
|
14
|
+
position: fixed;
|
|
15
|
+
bottom: 0;
|
|
16
|
+
left: 50%;
|
|
17
|
+
transform: translateX(-50%);
|
|
18
|
+
z-index: var(--z-toast, 1100);
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column-reverse;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: var(--space-2, 8px);
|
|
23
|
+
padding: var(--space-6, 24px);
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
direction: ltr;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.toast {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: var(--space-3, 12px);
|
|
32
|
+
max-width: 420px;
|
|
33
|
+
min-width: 200px;
|
|
34
|
+
padding: var(--space-3, 12px) var(--space-4, 16px);
|
|
35
|
+
background: var(--color-text, #1a1a1f);
|
|
36
|
+
color: #fff;
|
|
37
|
+
border-radius: var(--radius-md, 10px);
|
|
38
|
+
box-shadow: var(--shadow-lg);
|
|
39
|
+
font-family: var(--font-sans, -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif);
|
|
40
|
+
font-size: var(--text-sm, 13px);
|
|
41
|
+
font-weight: 500;
|
|
42
|
+
line-height: 1.4;
|
|
43
|
+
pointer-events: auto;
|
|
44
|
+
animation: cdtr-toast-in var(--duration-normal, 200ms) var(--ease-out, cubic-bezier(0, 0, 0.2, 1));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.toast.removing {
|
|
48
|
+
animation: cdtr-toast-out var(--duration-fast, 120ms) var(--ease-default, ease) forwards;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Accent stripe on the left for semantic variants */
|
|
52
|
+
.toast::before {
|
|
53
|
+
content: '';
|
|
54
|
+
flex: 0 0 auto;
|
|
55
|
+
width: 3px;
|
|
56
|
+
align-self: stretch;
|
|
57
|
+
border-radius: 2px;
|
|
58
|
+
background: transparent;
|
|
59
|
+
}
|
|
60
|
+
.toast.success::before { background: var(--color-success, #16a34a); }
|
|
61
|
+
.toast.error::before { background: var(--color-danger, #dc2626); }
|
|
62
|
+
.toast.warning::before { background: var(--color-warning, #d97706); }
|
|
63
|
+
|
|
64
|
+
.toast-text {
|
|
65
|
+
flex: 1 1 auto;
|
|
66
|
+
min-width: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.toast-action {
|
|
70
|
+
flex: 0 0 auto;
|
|
71
|
+
background: transparent;
|
|
72
|
+
border: 1px solid rgba(255, 255, 255, 0.25);
|
|
73
|
+
color: #fff;
|
|
74
|
+
padding: var(--space-1, 4px) var(--space-2, 8px);
|
|
75
|
+
border-radius: var(--radius-sm, 6px);
|
|
76
|
+
font: inherit;
|
|
77
|
+
font-size: var(--text-xs, 12px);
|
|
78
|
+
font-weight: 600;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
white-space: nowrap;
|
|
81
|
+
transition: background var(--duration-fast, 120ms) ease;
|
|
82
|
+
}
|
|
83
|
+
.toast-action:hover {
|
|
84
|
+
background: rgba(255, 255, 255, 0.15);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.toast-close {
|
|
88
|
+
flex: 0 0 auto;
|
|
89
|
+
background: transparent;
|
|
90
|
+
border: none;
|
|
91
|
+
color: rgba(255, 255, 255, 0.5);
|
|
92
|
+
padding: var(--space-1, 4px);
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
border-radius: var(--radius-sm, 6px);
|
|
98
|
+
transition: color var(--duration-fast, 120ms) ease;
|
|
99
|
+
}
|
|
100
|
+
.toast-close:hover {
|
|
101
|
+
color: #fff;
|
|
102
|
+
}
|
|
103
|
+
.toast-close svg {
|
|
104
|
+
width: 14px;
|
|
105
|
+
height: 14px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@keyframes cdtr-toast-in {
|
|
109
|
+
from {
|
|
110
|
+
opacity: 0;
|
|
111
|
+
transform: translateY(16px);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@keyframes cdtr-toast-out {
|
|
116
|
+
to {
|
|
117
|
+
opacity: 0;
|
|
118
|
+
transform: translateY(8px);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
`,customElements.define("cdtr-toast-provider",i)}}]);
|
|
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,
|
|
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 +1 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2765],{12765(e,t,o){o.d(t,{default:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2765],{12765(e,t,o){o.d(t,{default:()=>s});var n=o(61919);const r=e=>{{const{component:t,commands:o}=e;return{select:e=>{let{changeTab:t,tab:o}=e;o.text||t("style")},tabs:e=>{const t=[{text:"style",selected:!0},{text:"interactions"},{text:"settings"}];return e?(t.forEach(t=>t.selected=t.text===e),t):t},layout:e=>{let{tab:r}=e;const i=t.props.src.includes("img.creaditor.ai"),s=()=>"style"===r.text;return[{type:"heading",level:6,text:"icon",active:s},{type:"icons",active:s,selectedIcon:t.props.src,useIconsApi:!0,iconColor:t.props.iconColor||"000000",iconSize:parseInt(t.props.style?.width,10)||24,onChange:e=>{const n=e.detail;if(n){const e=n.urlPng||n.src;e&&o.execCommand("src",e),t.props.alt&&"icon"!==t.props.alt||o.execCommand("alt",n.name),n.size?.width&&n.size?.height&&o.execCommand("style",{width:n.size.width+"px",height:n.size.height+"px"}),null!=n.category&&null!=n.name&&(o.execCommand("iconCategory",n.category),o.execCommand("iconName",n.name));const r=(n.color??t.props.iconColor??"000000").toString().replace(/^#/,"");o.execCommand("iconColor",r)}}},{type:"input",title:"altText",active:s,value:t.props.alt||"",onChange:e=>{const t=e.target.value;o.execCommand("alt",t)}},{type:"heading",level:6,text:"size",active:s},{type:"slider",title:"size",min:8,max:256,active:s,value:parseInt(t.props.style?.width,10)||24,onInput:e=>{const t=e.target.value;o.execCommand("style",{width:t+"px",height:t+"px"})}},{type:"heading",level:6,text:"colors",active:()=>s()&&i},{type:"colorpicker",title:"icon_color",alpha:!1,active:()=>s()&&i,value:t.props.iconColor?t.props.iconColor.startsWith("#")?t.props.iconColor:"#"+t.props.iconColor:"#000000",onChange:e=>{let t=e.target.value;t=(0,n.A)(t).toHex(),t.startsWith("#")&&(t=t.slice(1)),o.execCommand("iconColor",t)}},{type:"heading",level:6,text:"link",active:()=>"interactions"===r.text},{type:"linkpicker",href:t.props.onClick?.link,protocol:t.props.onClick?.link?.protocol,target:t.props.onClick?.link?.target,autofocus:!0,active:()=>"interactions"===r.text,onChange:e=>{const t={link:e.target.value};o.execCommand("onClick",t)}}]}}}},i=e=>{let{helpers:t}=e;return{set:(e,o,n)=>{switch(o){case"style":return e[o]=t.deepMerge(e[o],n),!0;case"src":case"alt":case"iconColor":case"iconCategory":case"iconName":return e[o]=n,!0;case"onClick":if(n&&n.link)return e[o]=n,!0}}}};const s=()=>{const e="icon";return{name:e,create:t=>{const{createElement:o,compose:n,helpers:s}=t,{mergeDiff:a}=s,c=document.createElement("div"),l=document.createElement("img");c.appendChild(l);return o({name:e,id:n.id,template:c,defaultProps:{style:{height:"24px",width:"24px",display:"inline-block"},src:"",alt:"",iconColor:"000000"},draggable:{group:"element"},droppable:{group:"element"},render:()=>{a(l,{style:n.props.style});const e=function(e){const t=e.props.iconCategory,o=e.props.iconName;if(!t||!o)return null;let n=parseInt(e.props.style?.width,10)||24,r=parseInt(e.props.style?.height,10)||24;n=Math.min(512,Math.max(1,n)),r=Math.min(512,Math.max(1,r));const i=function(e){let t=(e||"000000").toString().trim();return t.startsWith("#")&&(t=t.slice(1)),3===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),6!==t.length?"000000":t}(e.props.iconColor);return`https://img.creaditor.ai/icons/serve/${encodeURIComponent(t)}/${encodeURIComponent(o)}.png?${new URLSearchParams({width:String(n),height:String(r),color:i}).toString()}`}(n)||n.props.src;a(l,{src:e,alt:n.props.alt||""})},resizeable:null,handleBar:!0,validator:i({helpers:s}),schema:n.schema,onSelect:e=>{c.classList.add(e)},onDeselect:e=>{c.classList.remove(e)},elementProps:n,remove:()=>{c.remove()},createEditor:r})}}}}}]);
|
|
Binary file
|
|
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(15604),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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[353],{40353(e,t,s){var n=s(59929),i=s(40156),
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[353],{40353(e,t,s){s.r(t),s.d(t,{HaloBackground:()=>c});var n=s(59929),i=s(40156),o=s(21421),r=s(12106);class c extends n.WF{constructor(){super(),this.containerRef=(0,o._)(),this.renderStyles=()=>`#${this.containerId} canvas {height:100% !important;width:100% !important;}`,this.containerId="halo-"+(0,r.A)(),this.config={mouseControls:!0,touchControls:!0,gyroControls:!1,minHeight:200,minWidth:200,size:1}}createRenderRoot(){return this}render(){return n.qy`<div
|
|
2
2
|
style="height:100%;width:100%;"
|
|
3
3
|
id=${this.containerId}
|
|
4
|
-
${(0,
|
|
4
|
+
${(0,o.K)(this.containerRef)}
|
|
5
5
|
>
|
|
6
6
|
<style>
|
|
7
7
|
${this.renderStyles()}
|
|
8
8
|
</style>
|
|
9
|
-
</div>`}connectedCallback(){super.connectedCallback(),(0,i.A)("https://cdnjs.cloudflare.com/ajax/libs/three.js/r121/three.min.js",()=>{(0,i.A)("https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.halo.min.js",()=>{setTimeout(()=>{window.VANTA&&(this.config.el=this.containerRef.value,this.effect=window.VANTA.HALO(this.config))},100)})})}disconnectedCallback(){super.disconnectedCallback()}}
|
|
9
|
+
</div>`}connectedCallback(){super.connectedCallback(),(0,i.A)("https://cdnjs.cloudflare.com/ajax/libs/three.js/r121/three.min.js",()=>{(0,i.A)("https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.halo.min.js",()=>{setTimeout(()=>{window.VANTA&&(this.config.el=this.containerRef.value,this.effect=window.VANTA.HALO(this.config))},100)})})}disconnectedCallback(){super.disconnectedCallback(),this.effect&&"function"==typeof this.effect.destroy&&(this.effect.destroy(),this.effect=null)}}c.properties={name:{}},c.styles=n.AH``,customElements.define("cdtr-halo-preset",c)}}]);
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3553],{3553(e,t,n){n.r(t),n.d(t,{AnimationEditor:()=>r});var s=n(59929),o=n(
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3553],{3553(e,t,n){n.r(t),n.d(t,{AnimationEditor:()=>r});var s=n(59929),o=n(15604),i=n(49937),a=n(86319),c=n(49549);const d=[{id:1,name:"fade_in",class_code:"fadeIn",src:"",props:{},puzzle:[{type:"fade-in"}]},{id:1,name:"fade_in_down",class_code:"fadeInDown",puzzle:[{type:"fade-in-down"}],props:{}},{id:1,name:"back_in_down",class_code:"backInDown",puzzle:[{type:"back-in-down"}],props:{}},{id:1,name:"back_in_right",class_code:"backInRight",puzzle:[{type:"back-in-right"}],props:{}},{id:1,name:"bounce",class_code:"bounce",puzzle:[{type:"bounce"}],props:{}},{id:1,name:"tada",class_code:"tada",puzzle:[{type:"tada"}],props:{}}];class r extends s.WF{constructor(){super(),this.animationsOptions=[{type:"scroll",props:{},title:"on_scroll"}],this.stack=[],this.selectedAnimations=null,this.animations=d,this.onInspect=this.onInspect.bind(this)}onMouseClick(e,t){switch(e){case"scroll":o.Ay.store().execCommand("interactions",e=>{const n=e.props.interactions,s=n.findIndex(e=>"scroll"===e.on&&"animation"===e.type);let o;return-1!==s&&(o=n[s],n.splice(s,1)),o&&o.value===t.class_code&&"className"===o.as&&"scroll"===o.on?(i.A.dispatch("snackbar",{text:a.M.get("lang","animation_deleted")}),n):(n.push({on:"scroll",type:"animation",as:"className",value:t.class_code}),i.A.dispatch("snackbar",{text:a.M.get("lang","animation_added")}),n)});break;case"hover":o.Ay.store().execCommand("interactions",e=>{const n=e.props.interactions,s=n.findIndex(e=>"hover"===e.on&&"animation"===e.type);let o;return-1!==s&&(o=n[s],n.splice(s,1)),o&&o.value===t.class_code&&"className"===o.as&&"hover"===o.on?(i.A.dispatch("snackbar",{text:a.M.get("lang","animation_deleted")}),n):(n.push({on:"hover",type:"animation",as:"className",value:t.class_code}),i.A.dispatch("snackbar",{text:a.M.get("lang","animation_added")}),n)})}}onMouseEnter(e){setTimeout(()=>{e.overed=!0,o.Ay.components.forEach(t=>{this.stack.push({animation:e,component:t}),t.element.classList.add(`cdtr__animate__${e.class_code}`),t.element.classList.add("cdtr__animated")}),this.animations=JSON.parse(JSON.stringify(this.animations))},20)}onMouseLeave(e){e.overed=!1,this.stack.forEach(e=>{let{component:t,animation:n}=e;t.element.classList.remove(`cdtr__animate__${n.class_code}`),t.element.classList.remove("cdtr__animated")}),this.stack=[],this.animations=JSON.parse(JSON.stringify(this.animations))}onInspect(){const e=o.Ay.components[0];if(e){const t=e.props.interactions.filter(e=>e.type="animation");this.selectedAnimations=t}}connectedCallback(){super.connectedCallback(),this.style.zIndex=99,this.onInspect(),o.Ay.on("select",this.onInspect),o.Ay.on("update",this.onInspect)}disconnectedCallback(){super.disconnectedCallback(),o.Ay.off("select",this.onInspect),o.Ay.off("update",this.onInspect)}render(){return s.qy`
|
|
2
2
|
<cdtr-accordion-item isOpen=${!0} label="on_scroll">
|
|
3
3
|
<cdtr-row>
|
|
4
4
|
${(0,c.u)(this.animations,e=>e.id,e=>s.qy`<cdtr-col
|
|
@@ -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
|