@creaditor/newsletter-starterkit 1.0.55 → 1.0.57
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 +133 -77
- package/dist/1260.creaditor.bundle.js.gz +0 -0
- package/dist/1271.creaditor.bundle.js +544 -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/170.creaditor.bundle.js +160 -32
- 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 +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/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 +12 -111
- package/dist/453.creaditor.bundle.js.gz +0 -0
- package/dist/4569.creaditor.bundle.js +3 -3
- package/dist/4569.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/4970.creaditor.bundle.js +1314 -0
- package/dist/4970.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/5340.creaditor.bundle.js +17 -17
- package/dist/5340.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 +221 -35
- 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/752.creaditor.bundle.js +8 -6
- 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 +34 -1
- 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 +23 -50
- 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/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 -23
- 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 +114 -0
- package/dist/9994.creaditor.bundle.js.gz +0 -0
- package/dist/creaditor.bundle.js +3508 -2299
- 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
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8570],{28570(t,e,i){i.r(e),i.d(e,{AlignGroup:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8570],{28570(t,e,i){i.r(e),i.d(e,{AlignGroup:()=>f});var l,r,n,o,s,a,c=i(59088),h=i(36936),d=i(59929),u=i(49410);let f=(l=(0,u.MZ)({type:Number}),r=(0,u.MZ)({type:String}),(a=class extends d.WF{constructor(){super(),(0,c.A)(this,"value",o,this),(0,c.A)(this,"justify",s,this),this.onClick=this.onClick.bind(this),this.justify="center"}onClick(t){const e=t.target.closest("[data-align]");if(e){const t={detail:e.getAttribute("data-align"),bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("change",t))}}render(){return d.qy` <cdtr-row justify="${this.justify}">
|
|
2
2
|
<paper-button
|
|
3
3
|
class="${"flex-start"===this.value?"selected":null}"
|
|
4
4
|
@click=${this.onClick}
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
min-width: auto;
|
|
95
95
|
}
|
|
96
96
|
rect[fill="black"] {
|
|
97
|
-
fill: var(--primary);
|
|
97
|
+
fill: var(--color-primary, #6366f1);
|
|
98
98
|
}
|
|
99
99
|
.selected {
|
|
100
100
|
background: #f1f3f5;
|
|
101
101
|
}
|
|
102
|
-
`,n=a,
|
|
102
|
+
`,n=a,o=(0,h.A)(n.prototype,"value",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,h.A)(n.prototype,"justify",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n);customElements.define("cdtr-align-items-group",f)}}]);
|
|
Binary file
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<div class="header">
|
|
13
13
|
<paper-button
|
|
14
14
|
@click=${this.onClose}
|
|
15
|
-
style="padding:
|
|
15
|
+
style="padding:0;z-index:3;min-width:32px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;margin-inline-start:8px;"
|
|
16
16
|
>
|
|
17
17
|
<cdtr-close-icon class="close-icon" icon="close">
|
|
18
18
|
</cdtr-close-icon>
|
|
@@ -38,24 +38,30 @@
|
|
|
38
38
|
display: none !important;
|
|
39
39
|
}
|
|
40
40
|
.header-text {
|
|
41
|
-
margin:
|
|
42
|
-
font-size:
|
|
43
|
-
font-
|
|
41
|
+
margin: 0;
|
|
42
|
+
font-size: var(--text-lg, 16px);
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
font-family: var(--font-sans, -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif);
|
|
44
45
|
text-align: right;
|
|
45
46
|
display: block;
|
|
46
47
|
width: 95%;
|
|
47
48
|
position: absolute;
|
|
48
|
-
top:
|
|
49
|
+
top: 50%;
|
|
49
50
|
left: 0;
|
|
51
|
+
transform: translateY(-50%);
|
|
52
|
+
padding: 0 var(--space-4, 16px);
|
|
50
53
|
direction: var(--direction-locale);
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
color: var(--color-text, #1a1a1f);
|
|
51
56
|
}
|
|
52
57
|
.drawer {
|
|
53
58
|
width: ${500}px;
|
|
54
59
|
height: 100vh;
|
|
55
|
-
background: #fff;
|
|
60
|
+
background: var(--color-bg, #fff);
|
|
56
61
|
position: absolute;
|
|
57
62
|
right: 0;
|
|
58
|
-
|
|
63
|
+
transition: width 0.28s var(--ease-default, cubic-bezier(0.4, 0, 0.2, 1));
|
|
64
|
+
box-shadow: var(--shadow-lg, rgba(0, 0, 0, 0.24) 0px 3px 8px);
|
|
59
65
|
-webkit-animation: slide-in 0.5s forwards;
|
|
60
66
|
-webkit-animation-delay: 2s;
|
|
61
67
|
animation: slide-in 0.5s forwards;
|
|
@@ -66,31 +72,22 @@
|
|
|
66
72
|
animation: slide-out 0.5s forwards;
|
|
67
73
|
}
|
|
68
74
|
.header {
|
|
69
|
-
|
|
70
|
-
margin: 1px;
|
|
75
|
+
height: 48px;
|
|
71
76
|
width: 100%;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
77
|
+
border-bottom: 1px solid var(--color-border, #e8e8ec);
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
position: relative;
|
|
81
|
+
box-sizing: border-box;
|
|
75
82
|
}
|
|
76
83
|
.body {
|
|
77
84
|
width: 100%;
|
|
78
|
-
height: 100vh;
|
|
85
|
+
height: calc(100vh - 48px);
|
|
79
86
|
overflow: hidden;
|
|
80
87
|
}
|
|
81
88
|
.close-button {
|
|
82
89
|
cursor: pointer;
|
|
83
90
|
}
|
|
84
|
-
.close-button:hover {
|
|
85
|
-
-webkit-animation: rotate 0.5s forwards;
|
|
86
|
-
-webkit-animation-delay: 2s;
|
|
87
|
-
animation: rotate 0.5s forwards;
|
|
88
|
-
}
|
|
89
|
-
@keyframes rotate {
|
|
90
|
-
100% {
|
|
91
|
-
transform: rotate(180deg);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
91
|
@-webkit-keyframes slide-in {
|
|
95
92
|
100% {
|
|
96
93
|
transform: rotate(180deg);
|
|
Binary file
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
right: 0;
|
|
83
83
|
height: fit-content;
|
|
84
84
|
background: transparent;
|
|
85
|
-
z-index:
|
|
85
|
+
z-index: var(--z-dropdown, 100);
|
|
86
86
|
display: flex;
|
|
87
87
|
align-items: center;
|
|
88
88
|
width: 24px;
|
|
@@ -91,17 +91,17 @@
|
|
|
91
91
|
.wrapper {
|
|
92
92
|
top: 0;
|
|
93
93
|
right: 0;
|
|
94
|
-
padding:
|
|
94
|
+
padding: var(--space-1, 4px);
|
|
95
95
|
height: 100%;
|
|
96
|
-
width:
|
|
97
|
-
box-shadow:
|
|
96
|
+
width: 32px;
|
|
97
|
+
box-shadow: var(--shadow-sm);
|
|
98
98
|
transform: translate(70%, 0);
|
|
99
|
-
background: #fff;
|
|
100
|
-
border-radius:
|
|
99
|
+
background: var(--color-bg, #fff);
|
|
100
|
+
border-radius: var(--radius-sm, 6px);
|
|
101
101
|
min-height: 90px;
|
|
102
102
|
}
|
|
103
103
|
paper-button {
|
|
104
|
-
padding:
|
|
104
|
+
padding: var(--space-1, 4px);
|
|
105
105
|
min-width: auto;
|
|
106
106
|
display: block;
|
|
107
107
|
margin: auto;
|
|
Binary file
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
<path
|
|
23
23
|
d="M398.86279,261.73389a9.0157,9.0157,0,0,1-8.61133-6.3667l-12.88037-42.07178a8.99884,8.99884,0,0,1,5.9712-11.24023l175.939-53.86377a9.00867,9.00867,0,0,1,11.24072,5.9707l12.88037,42.07227a9.01029,9.01029,0,0,1-5.9707,11.24072L401.49219,261.33887A8.976,8.976,0,0,1,398.86279,261.73389Z"
|
|
24
24
|
transform="translate(-276.18187 -133.91309)"
|
|
25
|
-
fill="var(--primary)"
|
|
25
|
+
fill="var(--color-primary, #6366f1)"
|
|
26
26
|
></path>
|
|
27
27
|
<circle
|
|
28
28
|
cx="190.15351"
|
|
29
29
|
cy="24.95465"
|
|
30
30
|
r="20"
|
|
31
|
-
fill="var(--primary)"
|
|
31
|
+
fill="var(--color-primary, #6366f1)"
|
|
32
32
|
></circle>
|
|
33
33
|
<circle cx="190.15351" cy="24.95465" r="12.66462" fill="#fff"></circle>
|
|
34
34
|
<path
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
<path
|
|
45
45
|
d="M801.81836,318.08691h-184a9.01015,9.01015,0,0,1-9-9v-44a9.01016,9.01016,0,0,1,9-9h184a9.01016,9.01016,0,0,1,9,9v44A9.01015,9.01015,0,0,1,801.81836,318.08691Z"
|
|
46
46
|
transform="translate(-276.18187 -133.91309)"
|
|
47
|
-
fill="var(--primary)"
|
|
47
|
+
fill="var(--color-primary, #6366f1)"
|
|
48
48
|
></path>
|
|
49
49
|
<circle
|
|
50
50
|
cx="433.63626"
|
|
51
51
|
cy="105.17383"
|
|
52
52
|
r="20"
|
|
53
|
-
fill="var(--primary)"
|
|
53
|
+
fill="var(--color-primary, #6366f1)"
|
|
54
54
|
></circle>
|
|
55
55
|
<circle cx="433.63626" cy="105.17383" r="12.18187" fill="#fff"></circle>
|
|
56
56
|
</svg>
|
|
Binary file
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
hr:after {
|
|
12
12
|
content: "";
|
|
13
13
|
height: 1px;
|
|
14
|
-
|
|
14
|
+
/* Matches the rule under an open section, so the panel has one divider
|
|
15
|
+
weight rather than three competing ones. */
|
|
16
|
+
background: var(--color-border-subtle, rgba(0, 0, 0, 0.06));
|
|
15
17
|
display: block;
|
|
16
18
|
width: 100%;
|
|
17
19
|
}
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9041],{19041(t,e,n){n.r(e),n.d(e,{ElementHandleBar:()=>p});var o=n(59929),i=n(86319),a=n(21421),
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9041],{19041(t,e,n){n.r(e),n.d(e,{ElementHandleBar:()=>p});var o=n(59929),i=n(86319),a=n(21421),r=n(36565),s=n(89531),c=n(83965),l=n(67549);const d=r.Ay;s.A,c.i,l.s;class p extends o.WF{constructor(){super(),this.animations=[],this.elementRef=(0,a._)(),this.canDisplayBar=!0;const t=i.M.get("config","editor","configure","editorProps");this.canDisplayBar=!t||!1!==t?.actionBar,this.selected=!1,this.connectWith=this.connectWith.bind(this),this.onRemove=this.onRemove.bind(this)}cloneElement(){let t,e=d.getComponent(this.for);const n=e?.closest("col");let o=0;n&&(o=n.children.length);const i="card"===e?.type||o<2?e.closest("col"):null;if(i&&(e=i),e&&(t=e.parent(),t)){let n=t.children.findIndex(t=>t===e.id);"col"===e.type&&(n+=1),"number"==typeof n&&d.cloneComponent({componentId:e.id,index:n,parentId:t.id})}}onRemove(){const t=i.M.get("components",this.for),e=t?.commands?.remove??t?.remove;"function"==typeof e&&e()}connectWith(){if(this.selected=!1,this.for){const t=d.components.find(t=>t.id===this.for);if(t){const e=t;if("function"!=typeof e.closest)return;const n=e.closest("col");n&&(n.element.getBoundingClientRect(),e.element.getBoundingClientRect());const o=e.closest("card");if(o&&this.elementRef.value){const t=o.element.getBoundingClientRect(),n=e.element.getBoundingClientRect();if(parseInt(String(t.top))>=parseInt(String(n.top))-40){let e=0;t.right>n.right?e=t.right-n.right-100+"px":t.left<n.left&&(e=t.left-n.left+20+"px"),n.left+parseInt(String(e))<t.left&&(e=0),this.elementRef.value.style.transform=`translate(${e},${n.height+10}px)`}else this.elementRef.value.style.transform=""}else this.elementRef.value&&(this.elementRef.value.style.transform="");this.selected=!!e.element?.closest("[draggable-element]");const a=e.props;this.animations=a.interactions?.filter(t=>"animation"===t.type)??[],this.hasAnimations=this.animations.length>0,this.name=a.name||i.M.get("lang",e.type)}}}justifyContent(t){d.store().execCommand("justify",t,{find:"col"})}connectedCallback(){super.connectedCallback(),d.on("select",this.connectWith),d.on("update",this.connectWith),this.classList.add("ignore-cdtr-blur")}disconnectedCallback(){super.disconnectedCallback(),d.off("select",this.connectWith),d.off("update",this.connectWith)}render(){return this.style.display=this.selected?"":"none",o.qy`<cdtr-row
|
|
2
2
|
${(0,a.K)(this.elementRef)}
|
|
3
3
|
class="bar"
|
|
4
4
|
alignItems="center"
|
|
@@ -102,25 +102,24 @@
|
|
|
102
102
|
}
|
|
103
103
|
.bar {
|
|
104
104
|
position: absolute;
|
|
105
|
-
height:
|
|
105
|
+
height: 32px;
|
|
106
106
|
background: transparent;
|
|
107
107
|
min-width: 106px;
|
|
108
|
-
z-index:
|
|
108
|
+
z-index: var(--z-dropdown, 100);
|
|
109
109
|
display: flex;
|
|
110
110
|
align-items: center;
|
|
111
|
-
font-family: var(--font-
|
|
111
|
+
font-family: var(--font-sans);
|
|
112
112
|
left: 0;
|
|
113
113
|
top: -5px;
|
|
114
114
|
transform: translate(0, -100%);
|
|
115
|
-
padding: 0
|
|
116
|
-
background: #fff;
|
|
117
|
-
font-size: 13px;
|
|
118
|
-
border-radius:
|
|
119
|
-
animation: fade_in 0.2s;
|
|
120
|
-
color:
|
|
115
|
+
padding: 0 var(--space-1, 4px);
|
|
116
|
+
background: var(--color-bg, #fff);
|
|
117
|
+
font-size: var(--text-sm, 13px);
|
|
118
|
+
border-radius: var(--radius-sm, 6px);
|
|
119
|
+
animation: fade_in var(--duration-normal, 0.2s);
|
|
120
|
+
color: var(--color-text, #1a1a1f);
|
|
121
121
|
width: auto;
|
|
122
|
-
box-shadow:
|
|
123
|
-
rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
|
|
122
|
+
box-shadow: var(--shadow-sm);
|
|
124
123
|
}
|
|
125
124
|
.bottom-bar {
|
|
126
125
|
top: 100%;
|
|
@@ -133,13 +132,12 @@
|
|
|
133
132
|
left: 101%;
|
|
134
133
|
top: 0;
|
|
135
134
|
background: var(--primary);
|
|
136
|
-
|
|
137
|
-
padding: 5px 5px;
|
|
135
|
+
padding: var(--space-1, 4px);
|
|
138
136
|
display: flex;
|
|
139
137
|
align-items: center;
|
|
140
|
-
border-radius:
|
|
138
|
+
border-radius: var(--radius-sm, 6px);
|
|
141
139
|
overflow: hidden;
|
|
142
|
-
z-index:
|
|
140
|
+
z-index: var(--z-dropdown, 100);
|
|
143
141
|
}
|
|
144
142
|
@keyframes fade_up {
|
|
145
143
|
from {
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9431],{49431(e,t,
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9431],{49431(e,t,s){s.d(t,{default:()=>l});const a=e=>{const{component:t,commands:s,helpers:a}=e,r=t.parent("col");return{select:e=>{let{changeTab:t,tab:s}=e;s.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:a}=e;return[{type:"giphy",active:()=>"style"===a.text,selectedSrc:t.props.src||"",onChange:e=>{const{src:t,alt:a}=e.detail||{};t&&s.execCommand("src",t),null!=a&&s.execCommand("alt",a)}},{type:"input",title:"altText",active:()=>"style"===a.text,value:t.props.alt||"",onChange:e=>{s.execCommand("alt",e.target.value)}},{type:"slider",title:"size",min:50,max:r?.element?.offsetWidth||600,active:()=>"style"===a.text,value:parseInt(t.props.style?.width,10)||200,onInput:e=>{const t=e.target.value;s.execCommand("style",{width:t+"px",height:"auto"})}},{type:"linkpicker",href:t.props.onClick?.link,protocol:t.props.onClick?.link?.protocol,target:t.props.onClick?.link?.target,autofocus:!0,active:()=>"interactions"===a.text,onChange:e=>{const t=e.target.value;s.execCommand("onClick",{link:t})}}]}}},r=e=>{let{helpers:t}=e;return{set:(e,s,a)=>{switch(s){case"src":case"alt":case"onClick":return e[s]=a,!0;case"style":if("object"==typeof a)return e[s]=t.deepMerge(e[s],a),!0}return!1}}},l=()=>{const e="giphy";return{name:e,create:t=>{const{createElement:s,compose:l,helpers:n}=t,{mergeDiff:o}=n,c=document.createElement("div"),i=document.createElement("img");c.appendChild(i);return s({name:e,id:l.id,template:c,defaultProps:{style:{height:"auto",width:"200px",maxWidth:"100%"},src:"",alt:""},draggable:{group:"element"},droppable:{group:"element"},render:()=>{o(i,{style:l.props.style}),o(i,{src:l.props.src||"",alt:l.props.alt||"GIF"})},resizeable:()=>c,handleBar:!0,validator:r({helpers:n}),schema:l.schema,onSelect:e=>c.classList.add(e),onDeselect:e=>c.classList.remove(e),elementProps:l,remove:()=>c.remove(),createEditor:a})}}}}}]);
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9694],{69694(e,n,t){t.d(n,{default:()=>b});const o=e=>{{const{component:n,commands:t}=e;return{select:e=>{let{changeTab:n,tab:t}=e;"
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9694],{69694(e,n,t){t.d(n,{default:()=>b});const o=e=>{{const{component:n,commands:t}=e;return{select:e=>{let{changeTab:n,tab:t}=e;"style"!==t.text&&n("style")},tabs:e=>{const n=[{text:"style"}];return n.forEach(n=>n.selected=n.selected=n.text===e),n},layout:e=>{let{tab:o,changeTab:r,tabs:s}=e;return[{type:"slider",title:"height",unit:"px",value:parseFloat(n.props.size),min:10,max:900,onInput:e=>{const n=e.target.value;t.execCommand("size",n+"px")}}]}}}},r=()=>({set:(e,n,t)=>"size"===n&&(e[n]=t,!0)});var s=t(72591),a=t.n(s),i=t(88639),d=t.n(i),A=t(88128),c=t.n(A),l=t(30855),u=t.n(l),C=t(93051),p=t.n(C),g=t(30772),m={};m.setAttributes=u(),m.insert=c().bind(null,"head"),m.domAPI=d(),m.insertStyleElement=p();a()(g.A,m);const h=g.A&&g.A.locals?g.A.locals:void 0,b=()=>{const e="spacer";return{name:e,create:n=>{let{createElement:t,compose:s,helpers:a}=n;const i=document.createElement("div");i.classList.add(h.root);const d=t({name:e,id:s.id,template:i,defaultProps:{size:"200px"},draggable:{group:"element"},droppable:{group:"element"},handleBar:!0,render:e=>{i.style.height=s.props.size||"200px"},validator:r(),getRenderedHTML:()=>`<div style="height:${s.props.size}"></div>`,schema:s.schema,onSelect:e=>{i.classList.add(e)},onDeselect:e=>{i.classList.remove(e)},elementProps:s,remove:()=>{i.remove()},createEditor:o});return((e,n)=>{const t=document.createElement("div");t.classList.add(h.resizeBar),t.setAttribute("draggable","false"),e.appendChild(t);let o=!1,r=0,s=0;const a=t=>{if(!o)return;const a=t.clientY-r,i=Math.max(10,s+a)+"px";e.style.height=i,n.commands.execCommand("size",i)},i=()=>{o&&(o=!1,t.classList.remove(h.dragging),document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",i))};t.addEventListener("mousedown",n=>{n.preventDefault(),n.stopPropagation(),o=!0,r=n.clientY,s=e.getBoundingClientRect().height,document.addEventListener("mousemove",a),document.addEventListener("mouseup",i),t.classList.add(h.dragging)})})(i,d),d}}}},30772(e,n,t){t.d(n,{A:()=>i});var o=t(82001),r=t.n(o),s=t(40935),a=t.n(s)()(r());a.push([e.id,'.aLJn5aW2t4h6fq41PEdv{\n width: 100%;\n position: relative;\n}\n.aLJn5aW2t4h6fq41PEdv::after{\n content: "";\n outline: 1px dashed rgba(57, 170, 193, 0.459);\n display: block;\n width: 100%;\n height: 100%;\n background-color: rgba(63, 115, 125, 0.005);\n}\n.pxoFCz5GGvHmLd86XtRD{\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 8px;\n cursor: ns-resize;\n z-index: 10;\n background-color: rgba(57, 170, 193, 0.1);\n transition: background-color 0.2s;\n}\n\n.pxoFCz5GGvHmLd86XtRD:hover{\n background-color: rgba(57, 170, 193, 0.6);\n}\n.pxoFCz5GGvHmLd86XtRD._0A7M5j1AiL_VBIzQGDK{\n background-color: rgba(57, 170, 193, 0.8);\n}',"",{version:3,sources:["webpack://./../web-editors/spacer-editor-component/lib/style.module.css"],names:[],mappings:"AAAA;IACI,WAAW;IACX,kBAAkB;AACtB;AACA;IACI,WAAW;IACX,6CAA6C;IAC7C,cAAc;IACd,WAAW;IACX,YAAY;IACZ,2CAA2C;AAC/C;AACA;IACI,kBAAkB;IAClB,SAAS;IACT,OAAO;IACP,WAAW;IACX,WAAW;IACX,iBAAiB;IACjB,WAAW;IACX,yCAAyC;IACzC,iCAAiC;AACrC;;AAEA;IACI,yCAAyC;AAC7C;AACA;IACI,yCAAyC;AAC7C",sourcesContent:['.root{\n width: 100%;\n position: relative;\n}\n.root::after{\n content: "";\n outline: 1px dashed rgba(57, 170, 193, 0.459);\n display: block;\n width: 100%;\n height: 100%;\n background-color: rgba(63, 115, 125, 0.005);\n}\n.resizeBar{\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 8px;\n cursor: ns-resize;\n z-index: 10;\n background-color: rgba(57, 170, 193, 0.1);\n transition: background-color 0.2s;\n}\n\n.resizeBar:hover{\n background-color: rgba(57, 170, 193, 0.6);\n}\n.resizeBar.dragging{\n background-color: rgba(57, 170, 193, 0.8);\n}'],sourceRoot:""}]),a.locals={root:"aLJn5aW2t4h6fq41PEdv",resizeBar:"pxoFCz5GGvHmLd86XtRD",dragging:"_0A7M5j1AiL_VBIzQGDK"};const i=a}}]);
|
|
Binary file
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9994],{19994(p,x,r){r.r(x),r.d(x,{BoxShadowEditor:()=>m});var e=r(59088),t=r(36936),a=r(59929),o=r(49410),i=r(86319);const d=[{rule:"rgba(149, 157, 165, 0.2) 0px 8px 24px;"},{rule:"rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;"},{rule:"rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;"},{rule:"rgba(0, 0, 0, 0.35) 0px 5px 15px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 1px 4px;"},{rule:"rgba(0, 0, 0, 0.24) 0px 3px 8px;"},{rule:"rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 1px 4px, rgb(51, 51, 51) 0px 0px 0px 3px;"},{rule:"rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 4px 12px;"},{rule:"rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;"},{rule:"rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;"},{rule:"rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;"},{rule:"rgb(38, 57, 77) 0px 20px 30px -10px;"},{rule:"rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;"},{rule:"rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;"},{rule:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;"},{rule:"rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;"},{rule:"rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;"},{rule:"rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;"},{rule:"rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;"},{rule:"rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;"},{rule:"rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;"},{rule:"rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;"},{rule:"rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;"},{rule:"rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;"},{rule:"rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;"},{rule:"rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;"},{rule:"rgba(0, 0, 0, 0.1) 0px 0px 5px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;"},{rule:"rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px, rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px, rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;"},{rule:"rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;"},{rule:"rgba(0, 0, 0, 0.2) 0px 18px 50px -10px;"},{rule:"rgba(0, 0, 0, 0.1) 0px 10px 50px;"},{rule:"rgba(240, 46, 170, 0.4) -5px 5px, rgba(240, 46, 170, 0.3) -10px 10px, rgba(240, 46, 170, 0.2) -15px 15px, rgba(240, 46, 170, 0.1) -20px 20px, rgba(240, 46, 170, 0.05) -25px 25px;"},{rule:"rgba(240, 46, 170, 0.4) 0px 5px, rgba(240, 46, 170, 0.3) 0px 10px, rgba(240, 46, 170, 0.2) 0px 15px, rgba(240, 46, 170, 0.1) 0px 20px, rgba(240, 46, 170, 0.05) 0px 25px;"},{rule:"rgba(240, 46, 170, 0.4) 5px 5px, rgba(240, 46, 170, 0.3) 10px 10px, rgba(240, 46, 170, 0.2) 15px 15px, rgba(240, 46, 170, 0.1) 20px 20px, rgba(240, 46, 170, 0.05) 25px 25px;"}];function l(p){try{return function(p){const x=p.split(/ (?![^(]*\))/);let r="",e=0,t=0,a=0,o=0,i=!1;for(let p of x)p=p.trim(),"inset"===p?i=!0:p.endsWith("px")||p.endsWith("em")?0===t?t=parseFloat(p):0===e?e=parseFloat(p):0===a?a=parseFloat(p):0===o&&(o=parseFloat(p)):(p.includes("rgb")||p.includes("#"))&&(r=p);return[{color:r,offsetY:e,offsetX:t,blurRadius:a,spreadRadius:o,inset:i}]}(p)}catch(p){console.error(p)}}var s,n,b,g,u,c;const h=r(36565).Ay,w="#000 0px 0px 0px 0px",f={};let m=(s=(0,o.MZ)({type:String}),n=(0,o.MZ)({type:String}),(c=class extends a.WF{constructor(){super(),(0,e.A)(this,"value",g,this),(0,e.A)(this,"boxShadow",u,this),this.tabName=void 0,this.theme=void 0,this.onChangeBoxShadow=(p,x)=>{const r={color:f.color,offsetY:f.offsetY,offsetX:f.offsetX,blurRadius:f.blurRadius,spreadRadius:f.spreadRadius,inset:!!f.inset};if(void 0!==r[p]&&("string"==typeof x||"number"==typeof x||"boolean"==typeof x)){r[p]=x,f[p]=x;const e=`${r.offsetX}px ${r.offsetY}px ${r.blurRadius}px ${r.spreadRadius}px ${r.color} ${r.inset?"inset":""}`;this.changeBoxShadowValue(e)}},this.tabName="design",this.theme=i.M.get("theme"),this.removeBoxShadow=this.removeBoxShadow.bind(this),this.onChangeBoxShadow=this.onChangeBoxShadow.bind(this)}changeBoxShadowValue(p){h.store().execCommand("style",{boxShadow:p}),this.boxShadow=this.value=p}removeBoxShadow(){h.store().execCommand("style",{boxShadow:w}),this.boxShadow=this.value=w}connectedCallback(){super.connectedCallback(),r.e(1456).then(r.bind(r,11456)),r.e(5666).then(r.bind(r,35666))}disconnectedCallback(){super.disconnectedCallback()}createRenderRoot(){return this}changeTab(p){this.tabName=p.target.value}render(){if(void 0===this.value||this.value!==this.boxShadow){this.value||(this.value=w),this.boxShadow=this.value;const p=l(this.value);Array.isArray(p)&&p.length>0?(f.offsetX=p[0].offsetX,f.offsetY=p[0].offsetY,f.blurRadius=p[0].blurRadius,f.spreadRadius=p[0].spreadRadius,f.color=p[0].color,f.inset=p[0].inset):(f.offsetX=0,f.offsetY=0,f.blurRadius=0,f.spreadRadius=0,f.color="#000",f.inset=void 0)}return a.qy`
|
|
2
|
+
<cdtr-editor-container>
|
|
3
|
+
<cdtr-row alignItems="center" justify="space-between">
|
|
4
|
+
<cdtr-col>
|
|
5
|
+
<cdtr-title>
|
|
6
|
+
<lang-text text="box-shadow"></lang-text>
|
|
7
|
+
</cdtr-title>
|
|
8
|
+
</cdtr-col>
|
|
9
|
+
<cdtr-col sm="2">
|
|
10
|
+
${this.boxShadow!==w?a.qy` <paper-button
|
|
11
|
+
style="min-width:40px;padding:0;"
|
|
12
|
+
@click=${this.removeBoxShadow}
|
|
13
|
+
><cdtr-icon icon="x"></cdtr-icon
|
|
14
|
+
></paper-button>`:null}
|
|
15
|
+
</cdtr-col>
|
|
16
|
+
<cdtr-col sm="3">
|
|
17
|
+
<cdtr-dropdown custom overflow maxHeight="900px" top=${200}>
|
|
18
|
+
<paper-button slot="trigger"
|
|
19
|
+
><cdtr-box-shadow-icon
|
|
20
|
+
.iconStyle="box-shadow:${this.value};"
|
|
21
|
+
></cdtr-box-shadow-icon
|
|
22
|
+
></paper-button>
|
|
23
|
+
<div slot="content">
|
|
24
|
+
<div>
|
|
25
|
+
${"design"===this.tabName?a.qy`
|
|
26
|
+
<cdtr-editor-container>
|
|
27
|
+
<h1 class="mb-2">
|
|
28
|
+
<lang-text
|
|
29
|
+
whiteSpace="break-spaces"
|
|
30
|
+
text="box-shadow"
|
|
31
|
+
></lang-text>
|
|
32
|
+
</h1>
|
|
33
|
+
<cdtr-width-editor
|
|
34
|
+
text="horizontal_shadow_length"
|
|
35
|
+
unit="px"
|
|
36
|
+
max="200"
|
|
37
|
+
min="-200"
|
|
38
|
+
.value=${f.offsetX}
|
|
39
|
+
@input=${p=>this.onChangeBoxShadow("offsetX",p.target.value)}
|
|
40
|
+
></cdtr-width-editor>
|
|
41
|
+
</cdtr-editor-container>
|
|
42
|
+
<cdtr-editor-container>
|
|
43
|
+
<cdtr-width-editor
|
|
44
|
+
text="vertical_shadow_length"
|
|
45
|
+
unit="px"
|
|
46
|
+
max="400"
|
|
47
|
+
min="-400"
|
|
48
|
+
.value=${f.offsetY}
|
|
49
|
+
@input=${p=>this.onChangeBoxShadow("offsetY",p.target.value)}
|
|
50
|
+
></cdtr-width-editor>
|
|
51
|
+
</cdtr-editor-container>
|
|
52
|
+
<cdtr-editor-container>
|
|
53
|
+
<cdtr-width-editor
|
|
54
|
+
text="blur_radius"
|
|
55
|
+
unit="px"
|
|
56
|
+
max="400"
|
|
57
|
+
min="0"
|
|
58
|
+
.value=${f.blurRadius}
|
|
59
|
+
@input=${p=>this.onChangeBoxShadow("blurRadius",p.target.value)}
|
|
60
|
+
></cdtr-width-editor>
|
|
61
|
+
</cdtr-editor-container>
|
|
62
|
+
<cdtr-editor-container>
|
|
63
|
+
<cdtr-width-editor
|
|
64
|
+
text="spread_radius"
|
|
65
|
+
unit="px"
|
|
66
|
+
max="200"
|
|
67
|
+
min="-200"
|
|
68
|
+
.value=${f.spreadRadius}
|
|
69
|
+
@input=${p=>this.onChangeBoxShadow("spreadRadius",p.target.value)}
|
|
70
|
+
></cdtr-width-editor>
|
|
71
|
+
</cdtr-editor-container>
|
|
72
|
+
<cdtr-editor-container>
|
|
73
|
+
<cdtr-colorpicker-editor
|
|
74
|
+
@input=${p=>this.onChangeBoxShadow("color",p.target.value)}
|
|
75
|
+
.value=${f.color}
|
|
76
|
+
text="shadow_color"
|
|
77
|
+
></cdtr-colorpicker-editor>
|
|
78
|
+
</cdtr-editor-container>
|
|
79
|
+
|
|
80
|
+
<cdtr-editor-container>
|
|
81
|
+
<cdtr-row justify="space-between" alignItems="center">
|
|
82
|
+
<cdtr-title
|
|
83
|
+
><lang-text text="inset"></lang-text
|
|
84
|
+
></cdtr-title>
|
|
85
|
+
<cdtr-toggle
|
|
86
|
+
@change=${p=>this.onChangeBoxShadow("inset",!p.target.checked)}
|
|
87
|
+
></cdtr-toggle>
|
|
88
|
+
</cdtr-row>
|
|
89
|
+
</cdtr-editor-container>
|
|
90
|
+
`:null}
|
|
91
|
+
${"gallery"===this.tabName?a.qy`<cdtr-row
|
|
92
|
+
style="overflow-y: auto;
|
|
93
|
+
max-height: 90vh;max-width:500px;"
|
|
94
|
+
justify="center"
|
|
95
|
+
spacing="10px"
|
|
96
|
+
>
|
|
97
|
+
${d.map(p=>a.qy` <cdtr-col sm="5" style="height:120px;"
|
|
98
|
+
><paper-button
|
|
99
|
+
@click=${()=>this.changeBoxShadowValue(p.rule)}
|
|
100
|
+
style="box-shadow:${p.rule};margin:0 25px;width:90%;height:90%;"
|
|
101
|
+
></paper-button
|
|
102
|
+
></cdtr-col>`)}
|
|
103
|
+
</cdtr-row>`:null}
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</cdtr-dropdown>
|
|
107
|
+
</cdtr-col>
|
|
108
|
+
</cdtr-row>
|
|
109
|
+
</cdtr-editor-container>
|
|
110
|
+
`}}).styles=a.AH`
|
|
111
|
+
:host {
|
|
112
|
+
direction: var(--direction-locale);
|
|
113
|
+
}
|
|
114
|
+
`,b=c,g=(0,t.A)(b.prototype,"value",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,t.A)(b.prototype,"boxShadow",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b);customElements.define("cdtr-box-shadow-editor",m)}}]);
|
|
Binary file
|