@creaditor/newsletter-starterkit 1.0.53 → 1.0.55
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 +297 -128
- package/dist/1260.creaditor.bundle.js.gz +0 -0
- package/dist/1271.creaditor.bundle.js +1 -439
- package/dist/1271.creaditor.bundle.js.gz +0 -0
- package/dist/1403.creaditor.bundle.js +110 -0
- package/dist/1403.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/1565.creaditor.bundle.js +338 -138
- package/dist/1565.creaditor.bundle.js.gz +0 -0
- package/dist/168.creaditor.bundle.js +4 -4
- package/dist/168.creaditor.bundle.js.gz +0 -0
- package/dist/170.creaditor.bundle.js +11 -5
- package/dist/170.creaditor.bundle.js.gz +0 -0
- package/dist/2384.creaditor.bundle.js +56 -8
- package/dist/2384.creaditor.bundle.js.gz +0 -0
- package/dist/2590.creaditor.bundle.js +1 -2
- package/dist/2590.creaditor.bundle.js.gz +0 -0
- package/dist/3095.creaditor.bundle.js +91 -58
- package/dist/3095.creaditor.bundle.js.gz +0 -0
- package/dist/3521.creaditor.bundle.js +11 -9
- 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/3932.creaditor.bundle.js +3 -3
- package/dist/3932.creaditor.bundle.js.gz +0 -0
- package/dist/4114.creaditor.bundle.js +1 -0
- package/dist/4114.creaditor.bundle.js.gz +0 -0
- package/dist/4186.creaditor.bundle.js +1 -1
- package/dist/4186.creaditor.bundle.js.gz +0 -0
- package/dist/453.creaditor.bundle.js +1 -1
- package/dist/453.creaditor.bundle.js.gz +0 -0
- package/dist/4569.creaditor.bundle.js +30 -190
- package/dist/4569.creaditor.bundle.js.gz +0 -0
- package/dist/4819.creaditor.bundle.js +198 -235
- package/dist/4819.creaditor.bundle.js.gz +0 -0
- package/dist/5340.creaditor.bundle.js +126 -36
- package/dist/5340.creaditor.bundle.js.gz +0 -0
- package/dist/574.creaditor.bundle.js +5 -5
- package/dist/574.creaditor.bundle.js.gz +0 -0
- package/dist/589.creaditor.bundle.js +9 -9
- package/dist/589.creaditor.bundle.js.gz +0 -0
- package/dist/5926.creaditor.bundle.js +24 -31
- package/dist/5926.creaditor.bundle.js.gz +0 -0
- package/dist/638.creaditor.bundle.js +3 -3
- package/dist/638.creaditor.bundle.js.gz +0 -0
- package/dist/6713.creaditor.bundle.js +151 -0
- package/dist/6713.creaditor.bundle.js.gz +0 -0
- package/dist/7209.creaditor.bundle.js +2 -3
- package/dist/7209.creaditor.bundle.js.gz +0 -0
- package/dist/7238.creaditor.bundle.js +3 -3
- package/dist/7238.creaditor.bundle.js.gz +0 -0
- package/dist/752.creaditor.bundle.js +3 -7
- package/dist/752.creaditor.bundle.js.gz +0 -0
- package/dist/763.creaditor.bundle.js +1 -1
- package/dist/763.creaditor.bundle.js.gz +0 -0
- package/dist/7789.creaditor.bundle.js +25 -0
- package/dist/7789.creaditor.bundle.js.LICENSE.txt +32 -0
- package/dist/7789.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/7789.creaditor.bundle.js.gz +0 -0
- package/dist/7937.creaditor.bundle.js +63 -115
- package/dist/7937.creaditor.bundle.js.gz +0 -0
- package/dist/8173.creaditor.bundle.js +1 -1
- package/dist/8173.creaditor.bundle.js.gz +0 -0
- package/dist/8305.creaditor.bundle.js +6 -6
- package/dist/8305.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/8676.creaditor.bundle.js +1 -0
- package/dist/8676.creaditor.bundle.js.gz +0 -0
- package/dist/8916.creaditor.bundle.js +4 -4
- 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/9158.creaditor.bundle.js +613 -0
- package/dist/9158.creaditor.bundle.js.LICENSE.txt +10 -0
- package/dist/9158.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/9158.creaditor.bundle.js.gz +0 -0
- package/dist/9162.creaditor.bundle.js +4 -3
- package/dist/9162.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/creaditor.bundle.js +2795 -874
- 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,8 +1,8 @@
|
|
|
1
1
|
/*! For license information please see 168.creaditor.bundle.js.LICENSE.txt */
|
|
2
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[168],{
|
|
2
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[168],{80168(e,p,a){a(69130),a(12479),a(45611),a(66564),a(48176);const r=document.createElement("template");r.setAttribute("style","display: none;"),r.innerHTML='<dom-module id="paper-dialog-shared-styles">\n <template>\n <style>\n :host {\n display: block;\n margin: 24px 40px;\n\n background: var(--paper-dialog-background-color, var(--primary-background-color));\n color: var(--paper-dialog-color, var(--primary-text-color));\n\n @apply --paper-font-body1;\n @apply --shadow-elevation-16dp;\n @apply --paper-dialog;\n }\n\n :host > ::slotted(*) {\n margin-top: 20px;\n padding: 0 24px;\n }\n\n :host > ::slotted(.no-padding) {\n padding: 0;\n }\n\n \n :host > ::slotted(*:first-child) {\n margin-top: 24px;\n }\n\n :host > ::slotted(*:last-child) {\n margin-bottom: 24px;\n }\n\n /* In 1.x, this selector was `:host > ::content h2`. In 2.x <slot> allows\n to select direct children only, which increases the weight of this\n selector, so we have to re-define first-child/last-child margins below. */\n :host > ::slotted(h2) {\n position: relative;\n margin: 0;\n\n @apply --paper-font-title;\n @apply --paper-dialog-title;\n }\n\n /* Apply mixin again, in case it sets margin-top. */\n :host > ::slotted(h2:first-child) {\n margin-top: 24px;\n @apply --paper-dialog-title;\n }\n\n /* Apply mixin again, in case it sets margin-bottom. */\n :host > ::slotted(h2:last-child) {\n margin-bottom: 24px;\n @apply --paper-dialog-title;\n }\n\n :host > ::slotted(.paper-dialog-buttons),\n :host > ::slotted(.buttons) {\n position: relative;\n padding: 8px 8px 8px 24px;\n margin: 0;\n\n color: var(--paper-dialog-button-color, var(--primary-color));\n\n @apply --layout-horizontal;\n @apply --layout-end-justified;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(r.content);var o=a(74396),t=a(68876),n=a(53874);const i={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogClick"},ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.__readied=!0},_modalChanged:function(e,p){p&&(e?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.noCancelOnOutsideClick=!0,this.noCancelOnEscKey=!0,this.withBackdrop=!0):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&this.__prevWithBackdrop))},_updateClosingReasonConfirmed:function(e){this.closingReason=this.closingReason||{},this.closingReason.confirmed=e},_onDialogClick:function(e){for(var p=(0,n.tT)(e).path,a=0,r=p.indexOf(this);a<r;a++){var o=p[a];if(o.hasAttribute&&(o.hasAttribute("dialog-dismiss")||o.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(o.hasAttribute("dialog-confirm")),this.close(),e.stopPropagation();break}}}},l=[t.r,i];var f=a(95586),c=a(47351);(0,f.b)({_template:c.q`
|
|
3
3
|
<style include="paper-dialog-shared-styles"></style>
|
|
4
4
|
<slot></slot>
|
|
5
|
-
`,is:"paper-dialog",behaviors:[l,
|
|
5
|
+
`,is:"paper-dialog",behaviors:[l,o.L],listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},_renderOpened:function(){this.cancelAnimation(),this.playAnimation("entry")},_renderClosed:function(){this.cancelAnimation(),this.playAnimation("exit")},_onNeonAnimationFinish:function(){this.opened?this._finishRenderOpened():this._finishRenderClosed()}})},88453(e,p,a){a(69130);const r=a(47351).q`
|
|
6
6
|
<custom-style>
|
|
7
7
|
<style is="custom-style">
|
|
8
8
|
html {
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
|
|
326
326
|
</style>
|
|
327
327
|
</custom-style>
|
|
328
|
-
`;r.setAttribute("style","display: none;"),document.head.appendChild(r.content)},45611(e,a
|
|
328
|
+
`;r.setAttribute("style","display: none;"),document.head.appendChild(r.content)},45611(e,p,a){a(69130),a(88453);const r=a(47351).q`
|
|
329
329
|
<custom-style>
|
|
330
330
|
<style is="custom-style">
|
|
331
331
|
html {
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
--default-primary-color: var(--primary-color);
|
|
382
382
|
}
|
|
383
383
|
</style>
|
|
384
|
-
</custom-style>`;r.setAttribute("style","display: none;"),document.head.appendChild(r.content)},66564(e,a
|
|
384
|
+
</custom-style>`;r.setAttribute("style","display: none;"),document.head.appendChild(r.content)},66564(e,p,a){a(69130);if(!window.polymerSkipLoadingFontRoboto){const e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.crossOrigin="anonymous",e.href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Roboto:400,300,300italic,400italic,500,500italic,700,700italic",document.head.appendChild(e)}const r=a(47351).q`<custom-style>
|
|
385
385
|
<style is="custom-style">
|
|
386
386
|
html {
|
|
387
387
|
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[170],{60170(e,t,r){r.r(t),r.d(t,{BreadCrumbs:()=>a});var s=r(5441),n=r(59929),
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[170],{60170(e,t,r){r.r(t),r.d(t,{BreadCrumbs:()=>a});var s=r(5441),n=r(59929),i=r(86319),o=r(58371),c=r(36565);class a extends n.WF{constructor(){super(),this.crumbs=[],this.cover=function(){const e=document.createElement("div");return e.style.position="fixed",e.style.background="var(--primary)",e.style.zIndex=2,e.style.border="1px dashed black",e.style.opacity=.2,e}(),this.currectCrumb={},this.onSubscribe=()=>{let e;this.crumbs=[];const t=c.Ay.components[c.Ay.components.length-1];if(!t)return;if(e=t.element,!e)return void console.error("selectElement not found","#1ppqmvss6");let r=t.type.getElementType(),s="";t.props.as&&(s=` (${i.M.get("lang",t.props.as)||t.props.as})`),this.currectCrumb={type:r,as:s,name:t.props.name,id:t.id};if(e){let t=e;for(;t&&t.parentElement;)if(t=t.parentElement.closest("[data-type]"),t){const e=i.M.get("components",t.dataset.id);let r=!0;e&&"row"!==e.type&&("col"===e.type&&"block"!==e.parent().type&&(r=!1),r&&this.crumbs.unshift({type:e.type,name:e.props.name,id:e.id,element:e.element,compose:e}))}this.dispatchEvent(new CustomEvent("change",[...this.crumbs]))}},this.onSubscribe=this.onSubscribe.bind(this)}updated(){this.toggleAttribute("hidden-crumbs",0===this.crumbs.length)}onHover(e){if(e){const t=e.getBoundingClientRect();this.cover.style.left=t.left+"px",this.cover.style.top=t.top+"px",this.cover.style.width=t.width+"px",this.cover.style.height=t.height+"px",document.body.appendChild(this.cover)}}render(){const e=i.M.get("langConfig","direction");return this.crumbs.length>0?n.qy`
|
|
2
2
|
<!-- <cdtr-tooltip content="breadcrumbs_info" .opened=${!0}></cdtr-tooltip> -->
|
|
3
3
|
<div>
|
|
4
4
|
${this.crumbs.map((t,r)=>n.qy` <span
|
|
@@ -7,19 +7,25 @@
|
|
|
7
7
|
@mousedown=${()=>this.clickBread(t)}
|
|
8
8
|
class="breadcrumb"
|
|
9
9
|
>${t.name||n.qy`<lang-text text=${t.type}></lang-text>`}</span
|
|
10
|
-
>${this.crumbs.length===r?null:(0,s.A)(
|
|
10
|
+
>${this.crumbs.length===r?null:(0,s.A)(o.D9,{style:{transform:`rotate(${"ltr"===e?"180deg":"0"})`},class:"arrow"})}`)}
|
|
11
11
|
${this.mainText?n.qy` <div class="currect">
|
|
12
12
|
${this.currectCrumb.name||n.qy`<lang-text text=${this.currectCrumb.type}></lang-text
|
|
13
13
|
>${this.currectCrumb.as}`}
|
|
14
14
|
</div>`:null}
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
|
-
`:""}connectedCallback(){super.connectedCallback(),
|
|
17
|
+
`:""}connectedCallback(){super.connectedCallback(),c.Ay.on("select",this.onSubscribe),c.Ay.on("update",this.onSubscribe)}disconnectedCallback(){super.disconnectedCallback(),this.cover.remove(),c.Ay.off("select",this.onSubscribe),c.Ay.off("update",this.onSubscribe)}clickBread(e){this.cover.remove(),c.Ay.clean().selectComponent(e.compose)}}a.styles=n.AH`
|
|
18
18
|
:host {
|
|
19
19
|
direction: var(--direction);
|
|
20
|
-
padding: 10px;
|
|
21
20
|
display: block;
|
|
22
|
-
|
|
21
|
+
}
|
|
22
|
+
:host([hidden-crumbs]) {
|
|
23
|
+
padding: 0;
|
|
24
|
+
height: 0;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
}
|
|
27
|
+
:host(:not([hidden-crumbs])) {
|
|
28
|
+
padding: 10px;
|
|
23
29
|
}
|
|
24
30
|
.currect {
|
|
25
31
|
font-size: 13px;
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2384],{92384(t,e,n){n.r(e),n.d(e,{FontFamilyEditor:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2384],{92384(t,e,n){n.r(e),n.d(e,{FONT_WEIGHTS:()=>i,FontFamilyEditor:()=>s});var o=n(59929),r=n(40120),a=n(86319);const i=[{name:"Thin",value:100},{name:"Light",value:300},{name:"Regular",value:400},{name:"Medium",value:500},{name:"SemiBold",value:600},{name:"Bold",value:700},{name:"Black",value:900}];class s extends o.WF{constructor(){super(),this.onchangeFontWeight=t=>{const e=parseInt(t.target.value,10);Number.isNaN(e)||(this.weight=e,this.dispatchEvent(new CustomEvent("weightchange",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e}})))},this.onchangeFontFamily=t=>{const e=t.target.value,n=this.fontFamilies.find(t=>t.name===e);if(!n)return void console.error("cant set font family, font family not founded..");(0,r.sw)(n),this.value=n.cssRule,this.name=e;const o=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(o)},this.onFilteredFonts=t=>{const e=t.target.value;this.filteredFonts=this.fontFamilies.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))},this.filteredFonts=[],this.fontFamilies=[],this.showWeight=!1}async connectedCallback(){super.connectedCallback();const t=await(0,r.VH)(),e=Array.isArray(t)?t:[];this.filteredFonts=this.fontFamilies=e,e.forEach(t=>{t&&t.url&&t.id&&function(t){if(document.getElementById(t.id))return;const e=document.createElement("link");e.href=t.url,e.id=t.id,e.setAttribute("data-name",t.name),e.rel="stylesheet",e.type="text/css",document.head.appendChild(e)}(t)})}disconnectedCallback(){super.disconnectedCallback()}render(){const t=this.fontFamilies.find(t=>"string"==typeof t?.cssRule&&(-1!==t.cssRule.indexOf(this.value||"")||-1!==t.cssRule.indexOf(this.name||"")));t&&(this.name=t.name);const e=o.qy`<cdtr-dropdown
|
|
2
2
|
style="width:100%"
|
|
3
3
|
.value="${this.name}"
|
|
4
4
|
@change=${this.onchangeFontFamily}
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
</cdtr-dropdown-button>
|
|
12
12
|
<div slot="content">
|
|
13
13
|
<cdtr-input
|
|
14
|
-
.placeholder="${
|
|
14
|
+
.placeholder="${a.M.get("lang","search")}.."
|
|
15
15
|
@input=${this.onFilteredFonts}
|
|
16
16
|
type="search"
|
|
17
17
|
></cdtr-input>
|
|
18
|
-
${this.filteredFonts.map(t=>
|
|
18
|
+
${this.filteredFonts.map(t=>o.qy`<cdtr-dropdown-item
|
|
19
19
|
.focused=${t.name===this.name}
|
|
20
20
|
.selected=${t.name===this.name}
|
|
21
21
|
value="${t.name}"
|
|
@@ -26,21 +26,69 @@
|
|
|
26
26
|
>${t.name}</span>
|
|
27
27
|
</cdtr-dropdown-item>`)}
|
|
28
28
|
</div>
|
|
29
|
-
</cdtr-dropdown>`,n=
|
|
29
|
+
</cdtr-dropdown>`,n=o.qy`
|
|
30
|
+
<cdtr-editor-container>
|
|
31
|
+
<cdtr-row alignItems="center" justify="space-between">
|
|
32
|
+
<cdtr-col sm="12">
|
|
33
|
+
<cdtr-row alignItems="center" justify="flex-end">
|
|
34
|
+
${e}
|
|
35
|
+
</cdtr-row>
|
|
36
|
+
</cdtr-col>
|
|
37
|
+
</cdtr-row>
|
|
38
|
+
</cdtr-editor-container>
|
|
39
|
+
`,r=i.find(t=>String(t.value)===String(this.weight))||i.find(t=>400===t.value),s=o.qy`<cdtr-dropdown
|
|
40
|
+
style="width:100%"
|
|
41
|
+
.value="${String(r?.value)}"
|
|
42
|
+
@change=${this.onchangeFontWeight}
|
|
43
|
+
>
|
|
44
|
+
<cdtr-dropdown-button
|
|
45
|
+
minWidth=${100}
|
|
46
|
+
class="dropdown-button"
|
|
47
|
+
slot="trigger"
|
|
48
|
+
>${r?.value}
|
|
49
|
+
</cdtr-dropdown-button>
|
|
50
|
+
<div slot="content">
|
|
51
|
+
${i.map(t=>o.qy`<cdtr-dropdown-item
|
|
52
|
+
.focused=${String(t.value)===String(r?.value)}
|
|
53
|
+
.selected=${String(t.value)===String(r?.value)}
|
|
54
|
+
value="${t.value}"
|
|
55
|
+
><span style="font-weight:${t.value};">${t.value}</span>
|
|
56
|
+
</cdtr-dropdown-item>`)}
|
|
57
|
+
</div>
|
|
58
|
+
</cdtr-dropdown>`,d=o.qy`
|
|
30
59
|
<cdtr-editor-container>
|
|
31
60
|
<cdtr-row alignItems="center" justify="space-between">
|
|
32
61
|
<cdtr-title pb="0" style="display:block" class="align-lang"
|
|
33
|
-
><lang-text text="
|
|
62
|
+
><lang-text text="fontWeight"></lang-text
|
|
34
63
|
></cdtr-title>
|
|
35
64
|
<cdtr-col sm="12">
|
|
36
65
|
<cdtr-row alignItems="center" justify="flex-end">
|
|
37
|
-
${
|
|
66
|
+
${s}
|
|
38
67
|
</cdtr-row>
|
|
39
68
|
</cdtr-col>
|
|
40
69
|
</cdtr-row>
|
|
41
70
|
</cdtr-editor-container>
|
|
42
|
-
`;return this.light?e
|
|
71
|
+
`;return this.light?this.showWeight?o.qy`<div class="toolbar-flat">${e}${s}</div>`:o.qy`<div class="toolbar-flat">${e}</div>`:this.showWeight?o.qy`${n}${d}`:n}}s.properties={value:{type:String},name:{type:String},fontFamilies:{type:Array},filteredFonts:{type:Array},isOpen:{type:Boolean},light:{type:Boolean},showWeight:{type:Boolean,attribute:!1},weight:{}},s.styles=o.AH`
|
|
43
72
|
.dropdown-button {
|
|
44
73
|
min-width: 100px;
|
|
45
74
|
}
|
|
46
|
-
|
|
75
|
+
/* Toolbar ("light") mode: flatten the picker so it reads as one of the
|
|
76
|
+
flat icon controls rather than a bordered <select>. Scoped to this
|
|
77
|
+
instance only — the bordered look is preserved everywhere else. */
|
|
78
|
+
.toolbar-flat cdtr-dropdown-button::part(button) {
|
|
79
|
+
height: 28px;
|
|
80
|
+
padding: 0 6px 0 8px;
|
|
81
|
+
border-color: transparent !important;
|
|
82
|
+
background: transparent !important;
|
|
83
|
+
border-radius: 7px;
|
|
84
|
+
color: #444b58;
|
|
85
|
+
font-size: 13px;
|
|
86
|
+
font-weight: 500;
|
|
87
|
+
transition: background 0.12s ease, color 0.12s ease;
|
|
88
|
+
}
|
|
89
|
+
.toolbar-flat cdtr-dropdown-button::part(button):hover {
|
|
90
|
+
border-color: transparent !important;
|
|
91
|
+
background: rgba(16, 24, 40, 0.055) !important;
|
|
92
|
+
color: #14171f;
|
|
93
|
+
}
|
|
94
|
+
`,customElements.define("cdtr-font-family-editor",s)}}]);
|
|
Binary file
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2590],{2590(t,e,i){i.r(e),i.d(e,{TitleEditor:()=>l});var n=i(59929),s=i(86319);class l extends n.WF{constructor(){super(),this.text="",this.whiteSpace="pre"}connectedCallback(){super.connectedCallback(),this.style.fontFamily="var(--font-family)",this.bold&&(this.style.fontWeight="bold")}render(){const t=s.M.get("theme");t&&(this.style.direction=t.direction,this.style.textAlign=this.textAlign||t.textAlign);const e=s.M.get("lang",this.text);return n.qy`<slot
|
|
2
2
|
><span
|
|
3
|
-
style="-webkit-font-smoothing: antialiased;text-
|
|
4
|
-
display:inline-block;direction:var(--direction-locale);text-align:var(--text-align-locale);white-space:${this.whiteSpace}"
|
|
3
|
+
style="-webkit-font-smoothing: antialiased;display:inline-block;direction:var(--direction-locale);text-align:var(--text-align-locale);white-space:${this.whiteSpace}"
|
|
5
4
|
>${e||this.text}</span
|
|
6
5
|
></slot
|
|
7
6
|
>`}}l.properties={text:{type:String,reflect:!1},whiteSpace:{type:String},textAlign:{type:String},bold:{type:Boolean}},customElements.get("lang-text")||customElements.define("lang-text",l)}}]);
|
|
Binary file
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3095],{73095(e,t,o){o.r(t),o.d(t,{default:()=>
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[3095],{73095(e,t,o){o.r(t),o.d(t,{default:()=>r});var n=o(59929),i=o(21421),s=o(69600);class r extends n.WF{constructor(){super(),this.contentRef=(0,i._)(),this.toggle=this.toggle.bind(this),this.onEnter=this.onEnter.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.overflow=!0,this.maxHeight=300,this.left=0,this.top=0,this.custom=!1,this.opened=!1}close(){this.toggle()}onBouncing(e){this.searchText=e.target.value;const t=new UIEvent("search",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}render(){return n.qy`
|
|
2
2
|
<slot @click=${()=>this.toggle()} tabindex="0" name="trigger"></slot>
|
|
3
|
-
${this.opened?
|
|
3
|
+
${this.opened?n.qy` <div
|
|
4
4
|
@mouseup=${this.onClickOutside}
|
|
5
|
+
@mousemove=${this.onPointerMove}
|
|
5
6
|
class="backdrop"
|
|
6
|
-
style="z-index:${(0,
|
|
7
|
+
style="z-index:${(0,s.A)()};"
|
|
7
8
|
>
|
|
8
9
|
<div
|
|
9
|
-
${(0,
|
|
10
|
+
${(0,i.K)(this.contentRef)}
|
|
10
11
|
@mouseup=${this.preventClosing}
|
|
11
|
-
style="z-index:${(0,
|
|
12
|
+
style="z-index:${(0,s.A)()};left:${this.left}px;top:${this.top}px;"
|
|
12
13
|
class="dropdown-content fade-in ${this.custom?"":"dropdown-background"}"
|
|
13
14
|
>
|
|
14
|
-
${this.search?
|
|
15
|
+
${this.search?n.qy`<cdtr-input
|
|
15
16
|
@input=${this.onBouncing}
|
|
16
17
|
type="search"
|
|
17
18
|
value=${this.searchText}
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
<slot name="content"></slot>
|
|
20
21
|
</div>
|
|
21
22
|
</div>`:null}
|
|
22
|
-
`}preventClosing(e){return e.stopPropagation(),setTimeout(()=>{this.calcRects()},0),!1}onClickOutside(){this.toggle(!1)}updated(){this.opened&&(setTimeout(()=>{this.calcRects()},0),this.contentRef.value?.classList.add("fade-in"),this.contentRef.value.style.maxHeight=`${this.maxHeight}px`)}calcRects(){let e=0,t=0;const o=this.getBoundingClientRect(),
|
|
23
|
+
`}preventClosing(e){return e.stopPropagation(),setTimeout(()=>{this.calcRects()},0),!1}onClickOutside(){this.toggle(!1)}updated(){this.opened&&(setTimeout(()=>{this.calcRects()},0),this.contentRef.value?.classList.add("fade-in"),this.contentRef.value.style.maxHeight=`${this.maxHeight}px`)}calcRects(){let e=0,t=0;const o=this.getBoundingClientRect(),n=this.contentRef?.value?.getBoundingClientRect();n&&(e=o.left,t=o.top,e<0&&(e=0),t<0&&(t=0),e+n.width>window.innerWidth&&(e=window.innerWidth-n.width),t+n.height>window.innerHeight&&(t=window.innerHeight-n.height),this.left=e,this.top=t,this.contentRef.value.style.left=`${o.left}px`,this.contentRef.value.style.top=`${t+o.height}px`,this.contentRef.value.style.overflow=this.overflow?"hidden auto":"hidden")}toggle(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=e||!this.opened;t?(window.removeEventListener("keydown",this.onKeydown),window.addEventListener("keydown",this.onKeydown),this.style.removeProperty("--cdtr-item-hover"),this.opened=t,setTimeout(()=>{const e=this.focusedItem=this.querySelector("cdtr-dropdown-item[focused]")||this.querySelector("cdtr-dropdown-item");e&&e.focus()},20)):(window.removeEventListener("keydown",this.onKeydown),this.contentRef.value?.classList.add("fade-out"),setTimeout(()=>{this.opened=t},150)),this.setAttribute("aria-expanded",t)}onEnter(e){e.target===this&&13===e.keyCode&&this.toggle()}onPointerMove(){this.style.removeProperty("--cdtr-item-hover")}onKeydown(e){40!==e.keyCode&&38!==e.keyCode||this.style.setProperty("--cdtr-item-hover","transparent"),this.focusedItem&&40===e.keyCode&&this.focusedItem.nextElementSibling&&"CDTR-DROPDOWN-ITEM"===this.focusedItem.nextElementSibling.nodeName?(this.focusedItem=this.focusedItem.nextElementSibling,this.focusedItem&&this.focusedItem.focus()):this.focusedItem&&38===e.keyCode&&this.focusedItem.previousElementSibling&&"CDTR-DROPDOWN-ITEM"===this.focusedItem.previousElementSibling.nodeName?(this.focusedItem=this.focusedItem.previousElementSibling,this.focusedItem&&this.focusedItem.focus()):27===e.keyCode&&this.toggle();const t=new UIEvent("keypress",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.setAttribute("tabindex","0"),this.setAttribute("aria-disabled","false"),this.setAttribute("aria-haspopup","true"),this.setAttribute("aria-expanded",this.opened),this.addEventListener("keydown",this.onEnter),setTimeout(()=>{this.opened&&this.toggle(!0)},50)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keydown",this.onKeydown)}patch(e){this.value=e,this.toggle(!1);const t=new UIEvent("change",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t),setTimeout(()=>{this.focus()},0)}}r.styles=n.AH`
|
|
23
24
|
:host {
|
|
24
25
|
display: inline-block;
|
|
25
26
|
overflow: hidden;
|
|
@@ -35,33 +36,38 @@
|
|
|
35
36
|
background: transparent;
|
|
36
37
|
overflow: hidden;
|
|
37
38
|
}
|
|
39
|
+
/* padding lives here so custom content stays flush against the panel */
|
|
38
40
|
.dropdown-background {
|
|
39
41
|
background: #fff;
|
|
42
|
+
padding: 4px;
|
|
40
43
|
}
|
|
41
44
|
.dropdown-content {
|
|
42
45
|
box-sizing: border-box;
|
|
43
|
-
min-width:
|
|
44
|
-
min-height:
|
|
46
|
+
min-width: 180px;
|
|
47
|
+
min-height: 40px;
|
|
45
48
|
position: fixed;
|
|
46
|
-
border-radius:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
border-radius: 10px;
|
|
50
|
+
border: 1px solid #eceef1;
|
|
51
|
+
/* layered depth: a tight ambient edge + a soft key shadow */
|
|
52
|
+
box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06),
|
|
53
|
+
0 8px 24px -6px rgba(16, 24, 40, 0.16);
|
|
54
|
+
transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
50
55
|
}
|
|
51
56
|
.fade-in {
|
|
52
|
-
animation: fade-in 0.
|
|
57
|
+
animation: fade-in 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
53
58
|
}
|
|
54
59
|
.fade-out {
|
|
55
|
-
animation: fade-out
|
|
60
|
+
animation: fade-out 140ms ease both;
|
|
56
61
|
opacity: 0;
|
|
57
62
|
}
|
|
58
63
|
@keyframes fade-in {
|
|
59
64
|
from {
|
|
60
65
|
opacity: 0;
|
|
61
|
-
|
|
66
|
+
transform: translateY(-6px) scale(0.98);
|
|
62
67
|
}
|
|
63
68
|
to {
|
|
64
69
|
opacity: 1;
|
|
70
|
+
transform: none;
|
|
65
71
|
}
|
|
66
72
|
}
|
|
67
73
|
@keyframes fade-out {
|
|
@@ -69,42 +75,55 @@
|
|
|
69
75
|
opacity: 1;
|
|
70
76
|
}
|
|
71
77
|
to {
|
|
72
|
-
margin-top: 5px;
|
|
73
78
|
opacity: 0;
|
|
79
|
+
transform: translateY(-4px);
|
|
74
80
|
}
|
|
75
81
|
}
|
|
76
|
-
|
|
82
|
+
@media (prefers-reduced-motion: reduce) {
|
|
83
|
+
.fade-in,
|
|
84
|
+
.fade-out {
|
|
85
|
+
animation-duration: 1ms;
|
|
86
|
+
transform: none;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
`,r.properties={search:{type:Boolean},searchText:{type:String},left:{type:Number},top:{type:Number},opened:{type:Boolean},maxHeight:{type:Number},overflow:{type:Boolean},value:{type:String},custom:{type:String}};class d extends n.WF{constructor(){super(),this.minWidth=50}render(){return n.qy`<paper-button style="min-width:${this.minWidth}px"
|
|
77
90
|
><slot></slot> <cdtr-dd-arrow-icon></cdtr-dd-arrow-icon
|
|
78
|
-
></paper-button>`}}
|
|
91
|
+
></paper-button>`}}d.properties={minWidth:{type:Number}},d.styles=n.AH`
|
|
79
92
|
paper-button {
|
|
80
93
|
display: flex;
|
|
94
|
+
align-items: center;
|
|
81
95
|
justify-content: space-between;
|
|
96
|
+
gap: 8px;
|
|
82
97
|
text-transform: capitalize;
|
|
83
98
|
width: 100%;
|
|
84
|
-
|
|
85
|
-
font-
|
|
86
|
-
|
|
99
|
+
line-height: 1.4;
|
|
100
|
+
font-size: 13px;
|
|
101
|
+
font-weight: 500;
|
|
87
102
|
color: rgb(33, 37, 41);
|
|
88
103
|
background: rgb(255, 255, 255);
|
|
89
104
|
background-clip: padding-box;
|
|
90
|
-
border
|
|
91
|
-
border-style: solid;
|
|
92
|
-
border-image: initial;
|
|
105
|
+
border: 1px solid var(--input-border-color, #ced4da);
|
|
93
106
|
appearance: none;
|
|
94
|
-
border-radius:
|
|
107
|
+
border-radius: 8px;
|
|
95
108
|
transition: border-color 0.15s ease-in-out 0s,
|
|
96
|
-
box-shadow 0.15s ease-in-out 0s;
|
|
109
|
+
box-shadow 0.15s ease-in-out 0s, background-color 0.15s ease-in-out 0s;
|
|
97
110
|
margin: 0px;
|
|
98
|
-
font-family: var(--font-family);
|
|
99
|
-
border-color: var(--input-border-color);
|
|
111
|
+
font-family: var(--font-family, "Inter", Arial, sans-serif);
|
|
100
112
|
box-sizing: border-box;
|
|
101
|
-
padding:
|
|
102
|
-
|
|
113
|
+
padding: 7px 10px;
|
|
114
|
+
cursor: pointer;
|
|
103
115
|
}
|
|
104
116
|
paper-button:hover {
|
|
105
|
-
border-color:
|
|
117
|
+
border-color: #9aa1a9;
|
|
118
|
+
background: #fbfbfc;
|
|
106
119
|
}
|
|
107
|
-
|
|
120
|
+
paper-button:focus,
|
|
121
|
+
paper-button:focus-within {
|
|
122
|
+
outline: none;
|
|
123
|
+
border-color: var(--cdtr-dropdown-accent, #7c5cf6);
|
|
124
|
+
box-shadow: 0 0 0 3px rgba(124, 92, 246, 0.2);
|
|
125
|
+
}
|
|
126
|
+
`;class a extends n.WF{constructor(){super(),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this)}focus(){this.shadowRoot.querySelector(".dropdown-item").focus()}onFocus(){this.focused=!0}onBlur(){this.focused=!1}onClick(e){if(this.notClickable)return;const t=this.closest("cdtr-dropdown");t&&t.patch(this.value,e,this)}onPress(e){if(13===e.keyCode){const t=new UIEvent("click",{view:window,bubbles:!0,cancelable:!0});this.dispatchEvent(t);const o=this.closest("cdtr-dropdown");o&&o.patch(this.value,e,this)}}connectedCallback(){super.connectedCallback(),this.selected&&this.scrollIntoView({behavior:"smooth",block:"start"})}render(){return n.qy`<div role="button"
|
|
108
127
|
@click=${this.onClick}
|
|
109
128
|
@keydown=${this.onPress}
|
|
110
129
|
@blur=${this.onBlur}
|
|
@@ -112,50 +131,64 @@
|
|
|
112
131
|
class="dropdown-item"
|
|
113
132
|
tabindex="0"
|
|
114
133
|
>
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
134
|
+
<slot></slot>
|
|
135
|
+
${this.selected?n.qy` <svg
|
|
136
|
+
class="check"
|
|
137
|
+
fill="currentColor"
|
|
118
138
|
xmlns="http://www.w3.org/2000/svg"
|
|
119
139
|
viewBox="0 0 24 24"
|
|
120
|
-
|
|
121
|
-
height="24"
|
|
140
|
+
aria-hidden="true"
|
|
122
141
|
>
|
|
123
142
|
<path fill="none" d="M0 0h24v24H0z" />
|
|
124
143
|
<path
|
|
125
144
|
d="M10 15.172l9.192-9.193 1.415 1.414L10 18l-6.364-6.364 1.414-1.414z"
|
|
126
145
|
/>
|
|
127
146
|
</svg>`:null}
|
|
128
|
-
|
|
129
|
-
</div>`}}c.properties={focused:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0},value:{type:String,reflect:!0},notClickable:{type:Boolean}},c.styles=i.AH`
|
|
147
|
+
</div>`}}a.properties={focused:{type:Boolean,reflect:!0},selected:{type:Boolean,reflect:!0},value:{type:String,reflect:!0},notClickable:{type:Boolean}},a.styles=n.AH`
|
|
130
148
|
.dropdown-item {
|
|
131
149
|
position: relative;
|
|
132
150
|
box-sizing: border-box;
|
|
133
151
|
display: flex;
|
|
134
|
-
font-family: Arial, Helvetica, sans-serif;
|
|
135
|
-
font-size: 12px;
|
|
136
|
-
cursor: pointer;
|
|
137
|
-
margin-bottom: 2px;
|
|
138
|
-
display: flex;
|
|
139
152
|
align-items: center;
|
|
140
|
-
user-select: none;
|
|
141
|
-
width: 100%;
|
|
142
153
|
justify-content: space-between;
|
|
143
|
-
|
|
144
|
-
|
|
154
|
+
gap: 10px;
|
|
155
|
+
width: 100%;
|
|
156
|
+
padding: 8px 12px;
|
|
157
|
+
border-radius: 6px;
|
|
158
|
+
font-family: var(--font-family, "Inter", Arial, sans-serif);
|
|
159
|
+
font-size: 13px;
|
|
160
|
+
line-height: 1.4;
|
|
161
|
+
color: #212529;
|
|
162
|
+
cursor: pointer;
|
|
163
|
+
user-select: none;
|
|
164
|
+
transition: background-color 120ms ease, color 120ms ease,
|
|
165
|
+
box-shadow 120ms ease;
|
|
145
166
|
}
|
|
167
|
+
/* hover = a translucent violet wash: ephemeral pointer feedback. The
|
|
168
|
+
parent sets --cdtr-item-hover to transparent while arrow-key
|
|
169
|
+
navigating so it never competes with the keyboard cursor below. */
|
|
146
170
|
.dropdown-item:hover {
|
|
147
|
-
background:
|
|
171
|
+
background: var(--cdtr-item-hover, rgba(124, 92, 246, 0.1));
|
|
148
172
|
}
|
|
173
|
+
/* keyboard cursor: stronger wash + a left accent bar, so "where am I"
|
|
174
|
+
reads at a glance and is distinct from both hover and selected */
|
|
149
175
|
.dropdown-item:focus {
|
|
150
|
-
color: var(--primary-color);
|
|
151
176
|
outline: none;
|
|
152
|
-
background:
|
|
177
|
+
background: rgba(124, 92, 246, 0.16);
|
|
178
|
+
color: var(--cdtr-dropdown-accent-ink, #5a3cc9);
|
|
179
|
+
box-shadow: inset 3px 0 0 var(--cdtr-dropdown-accent, #7c5cf6);
|
|
180
|
+
}
|
|
181
|
+
/* selected = the committed choice: a SOLID chip (opaque, not a wash),
|
|
182
|
+
accent text, weight, and a check — so it can't be mistaken for hover */
|
|
183
|
+
:host([selected]) .dropdown-item {
|
|
184
|
+
color: var(--cdtr-dropdown-accent-ink, #5a3cc9);
|
|
185
|
+
font-weight: 600;
|
|
186
|
+
background: var(--cdtr-dropdown-selected-bg, #efeaff);
|
|
153
187
|
}
|
|
154
|
-
.
|
|
188
|
+
.check {
|
|
155
189
|
width: 16px;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
top: 50%;
|
|
190
|
+
height: 16px;
|
|
191
|
+
flex: none;
|
|
192
|
+
color: var(--cdtr-dropdown-accent, #7c5cf6);
|
|
160
193
|
}
|
|
161
|
-
`,customElements.get("cdtr-dropdown-item")||customElements.define("cdtr-dropdown-item",
|
|
194
|
+
`,customElements.get("cdtr-dropdown-item")||customElements.define("cdtr-dropdown-item",a),customElements.get("cdtr-dropdown-button")||customElements.define("cdtr-dropdown-button",d),customElements.get("cdtr-dropdown")||customElements.define("cdtr-dropdown",r)}}]);
|
|
Binary file
|
|
@@ -1,12 +1,14 @@
|
|
|
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:()=>
|
|
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),r=i(59929),n=i(36565),s=i(18057),d=i(86319);i.e(8315).then(i.bind(i,68315));class l extends r.WF{constructor(){super(),this.lastEditor=null,d.M.set({injectEditor:t=>{this.injected=!0,this.lastEditor=this.editor,this.backToEditor=this.editor,this.editor=t}}),this.editor=r.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,n.Ay.on("select",this.connect)}connect(t){let{editor:e}=t;if(!e)return;let i=e.type;if("string"!=typeof i)return;if(this.editor?.type===i)return;if(!this.editors[i]){const t=d.M.get("config","editor","configure","plugins");if(Array.isArray(t)){const e=t.find(t=>t.name===i);if(e&&"function"==typeof e.createEditor){this.editor=document.createElement("cdtr-editor-builder"),this.editor.type=i;const t=e.createEditor();return void(t&&(this.editor.editors=t.layout,t!==this.backToEditor&&this.lastEditor&&(this.lastEditor=null)))}}i="no_editor"}this.type=i;const r=(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[i]&&!this.editors[i].component&&(this.editors[i].load().then(()=>{if(r.remove(),this.editors[i].attrs)for(const t in this.editors[i].attrs)if(Object.hasOwnProperty.call(this.editors[i].attrs,t)){const e=this.editors[i].attrs[t];this.editors[i].component[t]=e}}),this.editors[i].component=document.createElement(this.editors[i].selector),this.editors[i].component.appendChild(r)),this.editors[i].component&&(this.editor=this.editors[i].component)}goBack(){this.lastEditor&&(this.editor=this.lastEditor,this.lastEditor=null)}createRenderRoot(){return this}render(){return r.qy` ${this.lastEditor?r.qy
|
|
5
|
-
<
|
|
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,n.Ay.on("select",this.connect)}connect(t){let{editor:e}=t;if(!e)return;let i=e.type;if("string"!=typeof i)return;if(this.editor?.type===i)return;if(!this.editors[i]){const t=d.M.get("config","editor","configure","plugins");if(Array.isArray(t)){const e=t.find(t=>t.name===i);if(e&&"function"==typeof e.createEditor){this.editor=document.createElement("cdtr-editor-builder"),this.editor.type=i;const t=e.createEditor();return void(t&&(this.editor.editors=t.layout,t!==this.backToEditor&&this.lastEditor&&(this.lastEditor=null)))}}i="no_editor"}this.type=i;const r=(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[i]&&!this.editors[i].component&&(this.editors[i].load().then(()=>{if(r.remove(),this.editors[i].attrs)for(const t in this.editors[i].attrs)if(Object.hasOwnProperty.call(this.editors[i].attrs,t)){const e=this.editors[i].attrs[t];this.editors[i].component[t]=e}}),this.editors[i].component=document.createElement(this.editors[i].selector),this.editors[i].component.appendChild(r)),this.editors[i].component&&(this.editor=this.editors[i].component)}goBack(){this.lastEditor&&(this.editor=this.lastEditor,this.lastEditor=null)}createRenderRoot(){return this}render(){return r.qy` ${this.lastEditor?r.qy`<div style="display:flex;justify-content:flex-start;padding:12px 16px 4px;direction:var(--direction-locale);">
|
|
5
|
+
<span
|
|
6
6
|
@click=${this.goBack}
|
|
7
|
-
style="
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
></
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
style="display:inline-flex;align-items:center;gap:3px;font-size:12px;color:#555;cursor:pointer;font-family:inherit;"
|
|
8
|
+
@mouseover=${t=>{t.currentTarget.style.color="#333",t.currentTarget.style.textDecoration="underline"}}
|
|
9
|
+
@mouseout=${t=>{t.currentTarget.style.color="#555",t.currentTarget.style.textDecoration="none"}}
|
|
10
|
+
><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg
|
|
11
|
+
><lang-text text="go_back"></lang-text
|
|
12
|
+
></span>
|
|
13
|
+
</div>`:""}
|
|
14
|
+
${this.editor}`}}l.properties={type:{type:String},editor:{type:Object},injected:{type:Boolean}},customElements.define("design-factory",l)}}]);
|
|
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(36565),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
|
|
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:()=>n});var i=r(59929);const s=r(45888);class n 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}}n.styles=i.AH`
|
|
15
15
|
:host {
|
|
16
16
|
position: relative;
|
|
17
17
|
display: inline-block;
|
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
transform: scale(1.1);
|
|
28
28
|
fill: var(--dark);
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,n.properties={value:{type:String,reflect:!0},color:{type:String,reflect:!0}},customElements.define("cdtr-eye-dropper",n)}}]);
|
|
Binary file
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
>
|
|
11
11
|
<path fill="none" d="M0 0h24v24H0z" />
|
|
12
12
|
<path
|
|
13
|
+
fill="currentColor"
|
|
13
14
|
d="M2.213 14.06a9.945 9.945 0 0 1 0-4.12c1.11.13 2.08-.237 2.396-1.001.317-.765-.108-1.71-.986-2.403a9.945 9.945 0 0 1 2.913-2.913c.692.877 1.638 1.303 2.403.986.765-.317 1.132-1.286 1.001-2.396a9.945 9.945 0 0 1 4.12 0c-.13 1.11.237 2.08 1.001 2.396.765.317 1.71-.108 2.403-.986a9.945 9.945 0 0 1 2.913 2.913c-.877.692-1.303 1.638-.986 2.403.317.765 1.286 1.132 2.396 1.001a9.945 9.945 0 0 1 0 4.12c-1.11-.13-2.08.237-2.396 1.001-.317.765.108 1.71.986 2.403a9.945 9.945 0 0 1-2.913 2.913c-.692-.877-1.638-1.303-2.403-.986-.765.317-1.132 1.286-1.001 2.396a9.945 9.945 0 0 1-4.12 0c.13-1.11-.237-2.08-1.001-2.396-.765-.317-1.71.108-2.403.986a9.945 9.945 0 0 1-2.913-2.913c.877-.692 1.303-1.638.986-2.403-.317-.765-1.286-1.132-2.396-1.001zM4 12.21c1.1.305 2.007 1.002 2.457 2.086.449 1.085.3 2.22-.262 3.212.096.102.195.201.297.297.993-.562 2.127-.71 3.212-.262 1.084.45 1.781 1.357 2.086 2.457.14.004.28.004.42 0 .305-1.1 1.002-2.007 2.086-2.457 1.085-.449 2.22-.3 3.212.262.102-.096.201-.195.297-.297-.562-.993-.71-2.127-.262-3.212.45-1.084 1.357-1.781 2.457-2.086.004-.14.004-.28 0-.42-1.1-.305-2.007-1.002-2.457-2.086-.449-1.085-.3-2.22.262-3.212a7.935 7.935 0 0 0-.297-.297c-.993.562-2.127.71-3.212.262C13.212 6.007 12.515 5.1 12.21 4a7.935 7.935 0 0 0-.42 0c-.305 1.1-1.002 2.007-2.086 2.457-1.085.449-2.22.3-3.212-.262-.102.096-.201.195-.297.297.562.993.71 2.127.262 3.212C6.007 10.788 5.1 11.485 4 11.79c-.004.14-.004.28 0 .42zM12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"
|
|
14
15
|
/>
|
|
15
16
|
</svg>
|
|
Binary file
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
<div id="secondaryProgress" hidden\$="[[_hideSecondaryProgress(secondaryRatio)]]"></div>
|
|
164
164
|
<div id="primaryProgress"></div>
|
|
165
165
|
</div>
|
|
166
|
-
`,is:"paper-progress",behaviors:[i.K],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(e){this.toggleClass("indeterminate",e,this.$.primaryProgress)},_transformProgress:function(e,t){var r="scaleX("+t/100+")";e.style.transform=e.style.webkitTransform=r},_mainRatioChanged:function(e){this._transformProgress(this.$.primaryProgress,e)},_progressChanged:function(e,t,r,i,a){e=this._clampValue(e),t=this._clampValue(t);var s=100*this._calcRatio(e),n=100*this._calcRatio(t);this._setSecondaryRatio(s),this._transformProgress(this.$.secondaryProgress,s),this._transformProgress(this.$.primaryProgress,n),this.secondaryProgress=e,a?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",t),this.setAttribute("aria-valuemin",r),this.setAttribute("aria-valuemax",i)},_disabledChanged:function(e){this.setAttribute("aria-disabled",e?"true":"false")},_hideSecondaryProgress:function(e){return 0===e}})},14186(e,t,r){r.r(t);r(12479),r(
|
|
166
|
+
`,is:"paper-progress",behaviors:[i.K],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(e){this.toggleClass("indeterminate",e,this.$.primaryProgress)},_transformProgress:function(e,t){var r="scaleX("+t/100+")";e.style.transform=e.style.webkitTransform=r},_mainRatioChanged:function(e){this._transformProgress(this.$.primaryProgress,e)},_progressChanged:function(e,t,r,i,a){e=this._clampValue(e),t=this._clampValue(t);var s=100*this._calcRatio(e),n=100*this._calcRatio(t);this._setSecondaryRatio(s),this._transformProgress(this.$.secondaryProgress,s),this._transformProgress(this.$.primaryProgress,n),this.secondaryProgress=e,a?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",t),this.setAttribute("aria-valuemin",r),this.setAttribute("aria-valuemax",i)},_disabledChanged:function(e){this.setAttribute("aria-disabled",e?"true":"false")},_hideSecondaryProgress:function(e){return 0===e}})},14186(e,t,r){r.r(t);r(12479),r(9158),r(89281),r(88453);var i=r(35915),a=r(19911),s=r(87335),n=r(56379),o=r(95586),l=r(15055);const d=r(69130).qy`
|
|
167
167
|
<style>
|
|
168
168
|
:host {
|
|
169
169
|
@apply --layout;
|
|
Binary file
|