@creaditor/newsletter-starterkit 1.0.54 → 1.0.56
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 +66 -22
- 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/1565.creaditor.bundle.js +106 -105
- 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 +21 -20
- package/dist/170.creaditor.bundle.js.gz +0 -0
- package/dist/2384.creaditor.bundle.js +4 -4
- package/dist/2384.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 +11 -111
- package/dist/453.creaditor.bundle.js.gz +0 -0
- package/dist/4569.creaditor.bundle.js +64 -257
- package/dist/4569.creaditor.bundle.js.gz +0 -0
- package/dist/4819.creaditor.bundle.js +1 -1
- package/dist/4819.creaditor.bundle.js.gz +0 -0
- package/dist/4970.creaditor.bundle.js +1314 -0
- package/dist/4970.creaditor.bundle.js.gz +0 -0
- package/dist/5340.creaditor.bundle.js +19 -18
- 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/5926.creaditor.bundle.js +10 -6
- package/dist/5926.creaditor.bundle.js.gz +0 -0
- package/dist/752.creaditor.bundle.js +4 -4
- package/dist/752.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/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 +17 -17
- 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/8646.creaditor.bundle.js +1 -0
- package/dist/8646.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/9994.creaditor.bundle.js +114 -0
- package/dist/9994.creaditor.bundle.js.gz +0 -0
- package/dist/creaditor.bundle.js +1653 -565
- 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,20 +1,20 @@
|
|
|
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),
|
|
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),o=r(59929),i=r(86319),n=r(58371),c=r(36565);class a extends o.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?o.qy`
|
|
2
2
|
<!-- <cdtr-tooltip content="breadcrumbs_info" .opened=${!0}></cdtr-tooltip> -->
|
|
3
3
|
<div>
|
|
4
|
-
${this.crumbs.map((t,r)=>
|
|
4
|
+
${this.crumbs.map((t,r)=>o.qy` <span
|
|
5
5
|
@mouseout=${()=>this.cover.remove()}
|
|
6
6
|
@mouseover=${()=>this.onHover(t.element)}
|
|
7
7
|
@mousedown=${()=>this.clickBread(t)}
|
|
8
8
|
class="breadcrumb"
|
|
9
|
-
>${t.name||
|
|
10
|
-
>${this.crumbs.length===r?null:(0,s.A)(
|
|
11
|
-
${this.mainText?
|
|
12
|
-
${this.currectCrumb.name||
|
|
9
|
+
>${t.name||o.qy`<lang-text text=${t.type}></lang-text>`}</span
|
|
10
|
+
>${this.crumbs.length===r?null:(0,s.A)(n.D9,{style:{transform:`rotate(${"ltr"===e?"180deg":"0"})`},class:"arrow"})}`)}
|
|
11
|
+
${this.mainText?o.qy` <div class="currect">
|
|
12
|
+
${this.currectCrumb.name||o.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(),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=
|
|
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=o.AH`
|
|
18
18
|
:host {
|
|
19
19
|
direction: var(--direction);
|
|
20
20
|
display: block;
|
|
@@ -25,33 +25,34 @@
|
|
|
25
25
|
overflow: hidden;
|
|
26
26
|
}
|
|
27
27
|
:host(:not([hidden-crumbs])) {
|
|
28
|
-
padding:
|
|
28
|
+
padding: var(--space-3) var(--space-4);
|
|
29
|
+
border-bottom: 1px solid var(--color-border);
|
|
29
30
|
}
|
|
30
31
|
.currect {
|
|
31
|
-
font-size:
|
|
32
|
+
font-size: var(--text-xs);
|
|
32
33
|
font-family: var(--font-family);
|
|
33
|
-
font-weight:
|
|
34
|
-
color: var(--primary);
|
|
35
|
-
margin-top:
|
|
36
|
-
margin-right:
|
|
37
|
-
margin-left:
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
color: var(--color-primary, var(--primary));
|
|
36
|
+
margin-top: var(--space-1);
|
|
37
|
+
margin-right: var(--space-1);
|
|
38
|
+
margin-left: var(--space-1);
|
|
38
39
|
display:inline-block;
|
|
39
40
|
}
|
|
40
41
|
.breadcrumb {
|
|
41
|
-
font-size:
|
|
42
|
+
font-size: var(--text-xs);
|
|
42
43
|
cursor: pointer;
|
|
43
44
|
font-family: var(--font-family);
|
|
44
|
-
margin-right:
|
|
45
|
-
margin-left:
|
|
46
|
-
color: var(--breadcrumbs);
|
|
45
|
+
margin-right: var(--space-1);
|
|
46
|
+
margin-left: var(--space-1);
|
|
47
|
+
color: var(--color-text-muted, var(--breadcrumbs));
|
|
47
48
|
}
|
|
48
49
|
.breadcrumb:hover {
|
|
49
|
-
color: var(--primary);
|
|
50
|
+
color: var(--color-primary, var(--primary));
|
|
50
51
|
}
|
|
51
52
|
.arrow {
|
|
52
53
|
height: 14px;
|
|
53
54
|
width: 14px;
|
|
54
|
-
fill:
|
|
55
|
+
fill: var(--color-text-faint);
|
|
55
56
|
vertical-align: middle;
|
|
56
57
|
}
|
|
57
58
|
`,a.properties={crumbs:{type:Array},mainText:{type:Boolean,reflect:!0}},customElements.define("cdtr-breadcrumbs",a)}}]);
|
|
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,{FONT_WEIGHTS:()=>
|
|
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,7 +11,7 @@
|
|
|
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>
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
</cdtr-col>
|
|
37
37
|
</cdtr-row>
|
|
38
38
|
</cdtr-editor-container>
|
|
39
|
-
`,r=
|
|
39
|
+
`,r=i.find(t=>String(t.value)===String(this.weight))||i.find(t=>400===t.value),s=o.qy`<cdtr-dropdown
|
|
40
40
|
style="width:100%"
|
|
41
41
|
.value="${String(r?.value)}"
|
|
42
42
|
@change=${this.onchangeFontWeight}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
>${r?.value}
|
|
49
49
|
</cdtr-dropdown-button>
|
|
50
50
|
<div slot="content">
|
|
51
|
-
${
|
|
51
|
+
${i.map(t=>o.qy`<cdtr-dropdown-item
|
|
52
52
|
.focused=${String(t.value)===String(r?.value)}
|
|
53
53
|
.selected=${String(t.value)===String(r?.value)}
|
|
54
54
|
value="${t.value}"
|
|
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
|
|
@@ -1,114 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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?n.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?n.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?n.qy`<cdtr-row
|
|
92
|
-
style="overflow-y: auto;
|
|
93
|
-
max-height: 90vh;max-width:500px;"
|
|
94
|
-
justify="center"
|
|
95
|
-
spacing="10px"
|
|
96
|
-
>
|
|
97
|
-
${u.P.map(p=>n.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=n.AH`
|
|
1
|
+
/*! For license information please see 453.creaditor.bundle.js.LICENSE.txt */
|
|
2
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[453],{70453(t,e,s){s.r(e),s.d(e,{TitleEditor:()=>o});var n=s(59929),r=s(70980);class o extends n.WF{constructor(){super(),this.pb="6px"}render(){const t={fontWeight:this.bold?700:400,paddingBottom:this.pb};return n.qy`<span style=${(0,r.W)(t)}><slot></slot></span>`}}o.styles=n.AH`
|
|
111
3
|
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
font-size: 13px;
|
|
6
|
+
font-weight: 500;
|
|
7
|
+
color: var(--text-dark-color);
|
|
8
|
+
font-family: var(--font-family);
|
|
9
|
+
-webkit-font-smoothing: antialiased;
|
|
10
|
+
text-align: var(--text-align-locale);
|
|
112
11
|
direction: var(--direction-locale);
|
|
12
|
+
user-select: none;
|
|
113
13
|
}
|
|
114
|
-
`,
|
|
14
|
+
`,o.properties={bold:{type:Boolean},pb:{type:String}},customElements.define("cdtr-title",o)},70980(t,e,s){s.d(e,{W:()=>l});var n=s(80181),r=s(16655);const o="important",i=" !"+o,l=(0,r.u$)(class extends r.WL{constructor(t){if(super(t),t.type!==r.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,s)=>{const n=t[s];return null==n?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in e){const n=e[t];if(null!=n){this.ft.add(t);const e="string"==typeof n&&n.endsWith(i);t.includes("-")||e?s.setProperty(t,e?n.slice(0,-11):n,e?o:""):s[t]=n}}return n.c0}})}}]);
|
|
Binary file
|