@creaditor/newsletter-starterkit 1.0.41 → 1.0.42

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.
Files changed (114) hide show
  1. package/dist/1317.creaditor.bundle.js +3 -3
  2. package/dist/1317.creaditor.bundle.js.gz +0 -0
  3. package/dist/1529.creaditor.bundle.js +16 -0
  4. package/dist/1529.creaditor.bundle.js.gz +0 -0
  5. package/dist/1565.creaditor.bundle.js +1016 -0
  6. package/dist/1565.creaditor.bundle.js.gz +0 -0
  7. package/dist/168.creaditor.bundle.js +5 -421
  8. package/dist/168.creaditor.bundle.js.gz +0 -0
  9. package/dist/170.creaditor.bundle.js +1 -1
  10. package/dist/170.creaditor.bundle.js.gz +0 -0
  11. package/dist/2234.creaditor.bundle.js +1 -1
  12. package/dist/2234.creaditor.bundle.js.gz +0 -0
  13. package/dist/2384.creaditor.bundle.js +1 -1
  14. package/dist/2384.creaditor.bundle.js.gz +0 -0
  15. package/dist/2438.creaditor.bundle.js +67 -0
  16. package/dist/2438.creaditor.bundle.js.gz +0 -0
  17. package/dist/2547.creaditor.bundle.js +6 -0
  18. package/dist/2547.creaditor.bundle.js.gz +0 -0
  19. package/dist/2706.creaditor.bundle.js +2 -2
  20. package/dist/2706.creaditor.bundle.js.gz +0 -0
  21. package/dist/271.creaditor.bundle.js +99 -0
  22. package/dist/271.creaditor.bundle.js.gz +0 -0
  23. package/dist/2834.creaditor.bundle.js +14 -0
  24. package/dist/2834.creaditor.bundle.js.LICENSE.txt +5 -0
  25. package/dist/2834.creaditor.bundle.js.gz +0 -0
  26. package/dist/3095.creaditor.bundle.js +161 -0
  27. package/dist/3095.creaditor.bundle.js.gz +0 -0
  28. package/dist/3521.creaditor.bundle.js +2 -2
  29. package/dist/3521.creaditor.bundle.js.gz +0 -0
  30. package/dist/3553.creaditor.bundle.js +1 -1
  31. package/dist/3553.creaditor.bundle.js.gz +0 -0
  32. package/dist/3606.creaditor.bundle.js +113 -0
  33. package/dist/3606.creaditor.bundle.js.gz +0 -0
  34. package/dist/3932.creaditor.bundle.js +30 -0
  35. package/dist/3932.creaditor.bundle.js.gz +0 -0
  36. package/dist/4186.creaditor.bundle.js +453 -0
  37. package/dist/4186.creaditor.bundle.js.LICENSE.txt +10 -0
  38. package/dist/4186.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  39. package/dist/4186.creaditor.bundle.js.gz +0 -0
  40. package/dist/4288.creaditor.bundle.js +98 -0
  41. package/dist/4288.creaditor.bundle.js.gz +0 -0
  42. package/dist/453.creaditor.bundle.js +111 -11
  43. package/dist/453.creaditor.bundle.js.gz +0 -0
  44. package/dist/4569.creaditor.bundle.js +1043 -19
  45. package/dist/4569.creaditor.bundle.js.gz +0 -0
  46. package/dist/4819.creaditor.bundle.js +1 -1
  47. package/dist/4819.creaditor.bundle.js.gz +0 -0
  48. package/dist/5133.creaditor.bundle.js +60 -0
  49. package/dist/5133.creaditor.bundle.js.gz +0 -0
  50. package/dist/5501.creaditor.bundle.js +112 -0
  51. package/dist/5501.creaditor.bundle.js.gz +0 -0
  52. package/dist/5713.creaditor.bundle.js +2 -152
  53. package/dist/5713.creaditor.bundle.js.LICENSE.txt +0 -11
  54. package/dist/5713.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  55. package/dist/5713.creaditor.bundle.js.gz +0 -0
  56. package/dist/574.creaditor.bundle.js +4 -68
  57. package/dist/574.creaditor.bundle.js.gz +0 -0
  58. package/dist/5849.creaditor.bundle.js +1 -1
  59. package/dist/5849.creaditor.bundle.js.gz +0 -0
  60. package/dist/5926.creaditor.bundle.js +1 -1
  61. package/dist/5926.creaditor.bundle.js.gz +0 -0
  62. package/dist/6036.creaditor.bundle.js +34 -0
  63. package/dist/6036.creaditor.bundle.js.gz +0 -0
  64. package/dist/6151.creaditor.bundle.js +1 -0
  65. package/dist/6151.creaditor.bundle.js.gz +0 -0
  66. package/dist/638.creaditor.bundle.js +23 -0
  67. package/dist/638.creaditor.bundle.js.gz +0 -0
  68. package/dist/6442.creaditor.bundle.js +236 -0
  69. package/dist/6442.creaditor.bundle.js.gz +0 -0
  70. package/dist/7307.creaditor.bundle.js +186 -0
  71. package/dist/7307.creaditor.bundle.js.gz +0 -0
  72. package/dist/741.creaditor.bundle.js +234 -0
  73. package/dist/741.creaditor.bundle.js.gz +0 -0
  74. package/dist/7466.creaditor.bundle.js +1 -1
  75. package/dist/7466.creaditor.bundle.js.gz +0 -0
  76. package/dist/752.creaditor.bundle.js +40 -0
  77. package/dist/752.creaditor.bundle.js.gz +0 -0
  78. package/dist/767.creaditor.bundle.js +1 -1
  79. package/dist/767.creaditor.bundle.js.gz +0 -0
  80. package/dist/8042.creaditor.bundle.js +71 -0
  81. package/dist/8042.creaditor.bundle.js.gz +0 -0
  82. package/dist/8141.creaditor.bundle.js +1 -1
  83. package/dist/8141.creaditor.bundle.js.gz +0 -0
  84. package/dist/8173.creaditor.bundle.js +3 -3
  85. package/dist/8173.creaditor.bundle.js.gz +0 -0
  86. package/dist/8443.creaditor.bundle.js +72 -0
  87. package/dist/8443.creaditor.bundle.js.gz +0 -0
  88. package/dist/8516.creaditor.bundle.js +1 -1
  89. package/dist/8516.creaditor.bundle.js.gz +0 -0
  90. package/dist/8570.creaditor.bundle.js +102 -0
  91. package/dist/8570.creaditor.bundle.js.gz +0 -0
  92. package/dist/8646.creaditor.bundle.js +122 -0
  93. package/dist/8646.creaditor.bundle.js.gz +0 -0
  94. package/dist/8654.creaditor.bundle.js +109 -0
  95. package/dist/8654.creaditor.bundle.js.gz +0 -0
  96. package/dist/8854.creaditor.bundle.js +1 -1
  97. package/dist/8854.creaditor.bundle.js.gz +0 -0
  98. package/dist/8916.creaditor.bundle.js +18 -0
  99. package/dist/8916.creaditor.bundle.js.gz +0 -0
  100. package/dist/898.creaditor.bundle.js +5 -357
  101. package/dist/898.creaditor.bundle.js.gz +0 -0
  102. package/dist/9041.creaditor.bundle.js +171 -0
  103. package/dist/9041.creaditor.bundle.js.gz +0 -0
  104. package/dist/9193.creaditor.bundle.js +1 -1
  105. package/dist/9193.creaditor.bundle.js.gz +0 -0
  106. package/dist/9990.creaditor.bundle.js +16 -0
  107. package/dist/9990.creaditor.bundle.js.gz +0 -0
  108. package/dist/creaditor.bundle.js +1277 -1671
  109. package/dist/creaditor.bundle.js.LICENSE.txt +8 -0
  110. package/dist/creaditor.bundle.js.LICENSE.txt.gz +0 -0
  111. package/dist/creaditor.bundle.js.gz +0 -0
  112. package/dist/service-worker.js +1 -1
  113. package/dist/service-worker.js.gz +0 -0
  114. package/package.json +1 -1
@@ -0,0 +1,453 @@
1
+ /*! For license information please see 4186.creaditor.bundle.js.LICENSE.txt */
2
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[4186],{87335(e,t,r){r.d(t,{K:()=>i});r(69130);const i={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(e){return(this._clampValue(e)-this.min)/(this.max-this.min)},_clampValue:function(e){return Math.min(this.max,Math.max(this.min,this._calcStep(e)))},_calcStep:function(e){if(e=parseFloat(e),!this.step)return e;var t=Math.round((e-this.min)/this.step);return this.step<1?t/(1/this.step)+this.min:t*this.step+this.min},_validateValue:function(){var e=this._clampValue(this.value);return this.value=this.oldValue=isNaN(e)?this.oldValue:e,this.value!==e},_update:function(){this._validateValue(),this._setRatio(100*this._calcRatio(this.value))}}},56379(e,t,r){r.d(t,{O:()=>o,o:()=>n});r(69130);var i=r(71920),a=r(90703),s=r(82239);const n={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(e){e&&this.ensureRipple(),this.hasRipple()&&(this._ripple.holdDown=e)},_createRipple:function(){var e=s.v._createRipple();return e.id="ink",e.setAttribute("center",""),e.classList.add("circle"),e}},o=[i.a,a.x,s.v,n]},89281(e,t,r){r(69130),r(12479),r(88453);var i=r(87335),a=r(95586),s=r(47351);(0,a.b)({_template:s.q`
3
+ <style>
4
+ :host {
5
+ display: block;
6
+ width: 200px;
7
+ position: relative;
8
+ overflow: hidden;
9
+ }
10
+
11
+ :host([hidden]), [hidden] {
12
+ display: none !important;
13
+ }
14
+
15
+ #progressContainer {
16
+ @apply --paper-progress-container;
17
+ position: relative;
18
+ }
19
+
20
+ #progressContainer,
21
+ /* the stripe for the indeterminate animation*/
22
+ .indeterminate::after {
23
+ height: var(--paper-progress-height, 4px);
24
+ }
25
+
26
+ #primaryProgress,
27
+ #secondaryProgress,
28
+ .indeterminate::after {
29
+ @apply --layout-fit;
30
+ }
31
+
32
+ #progressContainer,
33
+ .indeterminate::after {
34
+ background: var(--paper-progress-container-color, var(--google-grey-300));
35
+ }
36
+
37
+ :host(.transiting) #primaryProgress,
38
+ :host(.transiting) #secondaryProgress {
39
+ -webkit-transition-property: -webkit-transform;
40
+ transition-property: transform;
41
+
42
+ /* Duration */
43
+ -webkit-transition-duration: var(--paper-progress-transition-duration, 0.08s);
44
+ transition-duration: var(--paper-progress-transition-duration, 0.08s);
45
+
46
+ /* Timing function */
47
+ -webkit-transition-timing-function: var(--paper-progress-transition-timing-function, ease);
48
+ transition-timing-function: var(--paper-progress-transition-timing-function, ease);
49
+
50
+ /* Delay */
51
+ -webkit-transition-delay: var(--paper-progress-transition-delay, 0s);
52
+ transition-delay: var(--paper-progress-transition-delay, 0s);
53
+ }
54
+
55
+ #primaryProgress,
56
+ #secondaryProgress {
57
+ @apply --layout-fit;
58
+ -webkit-transform-origin: left center;
59
+ transform-origin: left center;
60
+ -webkit-transform: scaleX(0);
61
+ transform: scaleX(0);
62
+ will-change: transform;
63
+ }
64
+
65
+ #primaryProgress {
66
+ background: var(--paper-progress-active-color, var(--google-green-500));
67
+ }
68
+
69
+ #secondaryProgress {
70
+ background: var(--paper-progress-secondary-color, var(--google-green-100));
71
+ }
72
+
73
+ :host([disabled]) #primaryProgress {
74
+ background: var(--paper-progress-disabled-active-color, var(--google-grey-500));
75
+ }
76
+
77
+ :host([disabled]) #secondaryProgress {
78
+ background: var(--paper-progress-disabled-secondary-color, var(--google-grey-300));
79
+ }
80
+
81
+ :host(:not([disabled])) #primaryProgress.indeterminate {
82
+ -webkit-transform-origin: right center;
83
+ transform-origin: right center;
84
+ -webkit-animation: indeterminate-bar var(--paper-progress-indeterminate-cycle-duration, 2s) linear infinite;
85
+ animation: indeterminate-bar var(--paper-progress-indeterminate-cycle-duration, 2s) linear infinite;
86
+ }
87
+
88
+ :host(:not([disabled])) #primaryProgress.indeterminate::after {
89
+ content: "";
90
+ -webkit-transform-origin: center center;
91
+ transform-origin: center center;
92
+
93
+ -webkit-animation: indeterminate-splitter var(--paper-progress-indeterminate-cycle-duration, 2s) linear infinite;
94
+ animation: indeterminate-splitter var(--paper-progress-indeterminate-cycle-duration, 2s) linear infinite;
95
+ }
96
+
97
+ @-webkit-keyframes indeterminate-bar {
98
+ 0% {
99
+ -webkit-transform: scaleX(1) translateX(-100%);
100
+ }
101
+ 50% {
102
+ -webkit-transform: scaleX(1) translateX(0%);
103
+ }
104
+ 75% {
105
+ -webkit-transform: scaleX(1) translateX(0%);
106
+ -webkit-animation-timing-function: cubic-bezier(.28,.62,.37,.91);
107
+ }
108
+ 100% {
109
+ -webkit-transform: scaleX(0) translateX(0%);
110
+ }
111
+ }
112
+
113
+ @-webkit-keyframes indeterminate-splitter {
114
+ 0% {
115
+ -webkit-transform: scaleX(.75) translateX(-125%);
116
+ }
117
+ 30% {
118
+ -webkit-transform: scaleX(.75) translateX(-125%);
119
+ -webkit-animation-timing-function: cubic-bezier(.42,0,.6,.8);
120
+ }
121
+ 90% {
122
+ -webkit-transform: scaleX(.75) translateX(125%);
123
+ }
124
+ 100% {
125
+ -webkit-transform: scaleX(.75) translateX(125%);
126
+ }
127
+ }
128
+
129
+ @keyframes indeterminate-bar {
130
+ 0% {
131
+ transform: scaleX(1) translateX(-100%);
132
+ }
133
+ 50% {
134
+ transform: scaleX(1) translateX(0%);
135
+ }
136
+ 75% {
137
+ transform: scaleX(1) translateX(0%);
138
+ animation-timing-function: cubic-bezier(.28,.62,.37,.91);
139
+ }
140
+ 100% {
141
+ transform: scaleX(0) translateX(0%);
142
+ }
143
+ }
144
+
145
+ @keyframes indeterminate-splitter {
146
+ 0% {
147
+ transform: scaleX(.75) translateX(-125%);
148
+ }
149
+ 30% {
150
+ transform: scaleX(.75) translateX(-125%);
151
+ animation-timing-function: cubic-bezier(.42,0,.6,.8);
152
+ }
153
+ 90% {
154
+ transform: scaleX(.75) translateX(125%);
155
+ }
156
+ 100% {
157
+ transform: scaleX(.75) translateX(125%);
158
+ }
159
+ }
160
+ </style>
161
+
162
+ <div id="progressContainer">
163
+ <div id="secondaryProgress" hidden\$="[[_hideSecondaryProgress(secondaryRatio)]]"></div>
164
+ <div id="primaryProgress"></div>
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(95813),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
+ <style>
168
+ :host {
169
+ @apply --layout;
170
+ @apply --layout-justified;
171
+ @apply --layout-center;
172
+ width: 200px;
173
+ cursor: default;
174
+ -webkit-user-select: none;
175
+ -moz-user-select: none;
176
+ -ms-user-select: none;
177
+ user-select: none;
178
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
179
+ --paper-progress-active-color: var(--cdtr-slider-active-color, var(--google-blue-700));
180
+ --paper-progress-secondary-color: var(--cdtr-slider-secondary-color, var(--google-blue-300));
181
+ --paper-progress-disabled-active-color: var(--cdtr-slider-disabled-active-color, var(--paper-grey-400));
182
+ --paper-progress-disabled-secondary-color: var(--cdtr-slider-disabled-secondary-color, var(--paper-grey-400));
183
+ --calculated-cdtr-slider-height: var(--cdtr-slider-height, 2px);
184
+ }
185
+
186
+ /* focus shows the ripple */
187
+ :host(:focus) {
188
+ outline: none;
189
+ }
190
+
191
+ /**
192
+ * NOTE(keanulee): Though :host-context is not universally supported, some pages
193
+ * still rely on cdtr-slider being flipped when dir="rtl" is set on body. For full
194
+ * compatibility, dir="rtl" must be explicitly set on cdtr-slider.
195
+ */
196
+ :dir(rtl) #sliderContainer {
197
+ -webkit-transform: scaleX(-1);
198
+ transform: scaleX(-1);
199
+ }
200
+
201
+ /**
202
+ * NOTE(keanulee): This is separate from the rule above because :host-context may
203
+ * not be recognized.
204
+ */
205
+ :host([dir="rtl"]) #sliderContainer {
206
+ -webkit-transform: scaleX(-1);
207
+ transform: scaleX(-1);
208
+ }
209
+
210
+ /**
211
+ * NOTE(keanulee): Needed to override the :host-context rule (where supported)
212
+ * to support LTR sliders in RTL pages.
213
+ */
214
+ :host([dir="ltr"]) #sliderContainer {
215
+ -webkit-transform: scaleX(1);
216
+ transform: scaleX(1);
217
+ }
218
+
219
+ #sliderContainer {
220
+ position: relative;
221
+ width: 100%;
222
+ height: calc(30px + var(--calculated-cdtr-slider-height));
223
+ }
224
+
225
+ #sliderContainer:focus {
226
+ outline: 0;
227
+ }
228
+
229
+ #sliderContainer.editable {
230
+ margin-top: 12px;
231
+ margin-bottom: 12px;
232
+ }
233
+
234
+ .bar-container {
235
+ position: absolute;
236
+ top: 0;
237
+ bottom: 0;
238
+ left: 0;
239
+ right: 0;
240
+ overflow: hidden;
241
+ }
242
+
243
+ .ring > .bar-container {
244
+ left: calc(5px + var(--calculated-cdtr-slider-height)/2);
245
+ transition: left 0.18s ease;
246
+ }
247
+
248
+ .ring.expand.dragging > .bar-container {
249
+ transition: none;
250
+ }
251
+
252
+ .ring.expand:not(.pin) > .bar-container {
253
+ left: calc(8px + var(--calculated-cdtr-slider-height)/2);
254
+ }
255
+
256
+ #sliderBar {
257
+ padding: 15px 0;
258
+ width: 100%;
259
+ background-color: var(--cdtr-slider-bar-color, transparent);
260
+ --paper-progress-container-color: var(--cdtr-slider-container-color, var(--paper-grey-400));
261
+ --paper-progress-height: var(--calculated-cdtr-slider-height);
262
+ }
263
+
264
+ .slider-markers {
265
+ position: absolute;
266
+ /* slider-knob is 30px + the slider-height so that the markers should start at a offset of 15px*/
267
+ top: 15px;
268
+ height: var(--calculated-cdtr-slider-height);
269
+ left: 0;
270
+ right: -1px;
271
+ box-sizing: border-box;
272
+ pointer-events: none;
273
+ @apply --layout-horizontal;
274
+ }
275
+
276
+ .slider-marker {
277
+ @apply --layout-flex;
278
+ }
279
+ .slider-markers::after,
280
+ .slider-marker::after {
281
+ content: "";
282
+ display: block;
283
+ margin-left: -1px;
284
+ width: 2px;
285
+ height: var(--calculated-cdtr-slider-height);
286
+ border-radius: 50%;
287
+ background-color: var(--cdtr-slider-markers-color, #000);
288
+ }
289
+
290
+ .slider-knob {
291
+ position: absolute;
292
+ left: 0;
293
+ top: 0;
294
+ margin-left: calc(-15px - var(--calculated-cdtr-slider-height)/2);
295
+ width: calc(30px + var(--calculated-cdtr-slider-height));
296
+ height: calc(30px + var(--calculated-cdtr-slider-height));
297
+ }
298
+
299
+ .transiting > .slider-knob {
300
+ transition: left 0.08s ease;
301
+ }
302
+
303
+ .slider-knob:focus {
304
+ outline: none;
305
+ }
306
+
307
+ .slider-knob.dragging {
308
+ transition: none;
309
+ }
310
+
311
+ .snaps > .slider-knob.dragging {
312
+ transition: -webkit-transform 0.08s ease;
313
+ transition: transform 0.08s ease;
314
+ }
315
+
316
+ .slider-knob-inner {
317
+ margin: 10px;
318
+ width: calc(100% - 20px);
319
+ height: calc(100% - 20px);
320
+ background-color: var(--cdtr-slider-knob-color, var(--google-blue-700));
321
+ border: 2px solid var(--cdtr-slider-knob-color, var(--google-blue-700));
322
+ border-radius: 50%;
323
+
324
+ -moz-box-sizing: border-box;
325
+ box-sizing: border-box;
326
+
327
+ transition-property: -webkit-transform, background-color, border;
328
+ transition-property: transform, background-color, border;
329
+ transition-duration: 0.18s;
330
+ transition-timing-function: ease;
331
+ }
332
+
333
+ .expand:not(.pin) > .slider-knob > .slider-knob-inner {
334
+ -webkit-transform: scale(1.5);
335
+ transform: scale(1.5);
336
+ }
337
+
338
+ .ring > .slider-knob > .slider-knob-inner {
339
+ background-color: var(--cdtr-slider-knob-start-color, transparent);
340
+ border: 2px solid var(--cdtr-slider-knob-start-border-color, var(--paper-grey-400));
341
+ }
342
+
343
+ .slider-knob-inner::before {
344
+ background-color: var(--cdtr-slider-pin-color, var(--google-blue-700));
345
+ }
346
+
347
+ .pin > .slider-knob > .slider-knob-inner::before {
348
+ content: "";
349
+ position: absolute;
350
+ top: 0;
351
+ left: 50%;
352
+ margin-left: -13px;
353
+ width: 26px;
354
+ height: 26px;
355
+ border-radius: 50% 50% 50% 0;
356
+
357
+ -webkit-transform: rotate(-45deg) scale(0) translate(0);
358
+ transform: rotate(-45deg) scale(0) translate(0);
359
+ }
360
+
361
+ .slider-knob-inner::before,
362
+ .slider-knob-inner::after {
363
+ transition: -webkit-transform .18s ease, background-color .18s ease;
364
+ transition: transform .18s ease, background-color .18s ease;
365
+ }
366
+
367
+ .pin.ring > .slider-knob > .slider-knob-inner::before {
368
+ background-color: var(--cdtr-slider-pin-start-color, var(--paper-grey-400));
369
+ }
370
+
371
+ .pin.expand > .slider-knob > .slider-knob-inner::before {
372
+ -webkit-transform: rotate(-45deg) scale(1) translate(17px, -17px);
373
+ transform: rotate(-45deg) scale(1) translate(17px, -17px);
374
+ }
375
+
376
+ .pin > .slider-knob > .slider-knob-inner::after {
377
+ content: attr(value);
378
+ position: absolute;
379
+ top: 0;
380
+ left: 50%;
381
+ margin-left: -16px;
382
+ width: 32px;
383
+ height: 26px;
384
+ text-align: center;
385
+ color: var(--cdtr-slider-font-color, #fff);
386
+ font-size: 10px;
387
+
388
+ -webkit-transform: scale(0) translate(0);
389
+ transform: scale(0) translate(0);
390
+ }
391
+
392
+ .pin.expand > .slider-knob > .slider-knob-inner::after {
393
+ -webkit-transform: scale(1) translate(0, -17px);
394
+ transform: scale(1) translate(0, -17px);
395
+ }
396
+
397
+ /* paper-input */
398
+ .slider-input {
399
+ width: 50px;
400
+ overflow: hidden;
401
+ --paper-input-container-input: {
402
+ text-align: center;
403
+ @apply --cdtr-slider-input-container-input;
404
+ };
405
+ @apply --cdtr-slider-input;
406
+ }
407
+
408
+ /* disabled state */
409
+ #sliderContainer.disabled {
410
+ pointer-events: none;
411
+ }
412
+
413
+ .disabled > .slider-knob > .slider-knob-inner {
414
+ background-color: var(--cdtr-slider-disabled-knob-color, var(--paper-grey-400));
415
+ border: 2px solid var(--cdtr-slider-disabled-knob-color, var(--paper-grey-400));
416
+ -webkit-transform: scale3d(0.75, 0.75, 1);
417
+ transform: scale3d(0.75, 0.75, 1);
418
+ }
419
+
420
+ .disabled.ring > .slider-knob > .slider-knob-inner {
421
+ background-color: var(--cdtr-slider-knob-start-color, transparent);
422
+ border: 2px solid var(--cdtr-slider-knob-start-border-color, var(--paper-grey-400));
423
+ }
424
+
425
+ paper-ripple {
426
+ color: var(--cdtr-slider-knob-color, var(--google-blue-700));
427
+ }
428
+ </style>
429
+
430
+ <div id="sliderContainer" class\$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]]">
431
+ <div class="bar-container">
432
+ <paper-progress disabled\$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick">
433
+ </paper-progress>
434
+ </div>
435
+
436
+ <template is="dom-if" if="[[snaps]]">
437
+ <div class="slider-markers">
438
+ <template is="dom-repeat" items="[[markers]]">
439
+ <div class="slider-marker"></div>
440
+ </template>
441
+ </div>
442
+ </template>
443
+
444
+ <div id="sliderKnob" class="slider-knob" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">
445
+ <div class="slider-knob-inner" value\$="[[immediateValue]]"></div>
446
+ </div>
447
+ </div>
448
+
449
+ <template is="dom-if" if="[[editable]]">
450
+ <paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input" disabled\$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float>
451
+ </paper-input>
452
+ </template>
453
+ `;d.setAttribute("strip-whitespace",""),(0,o.b)({_template:d,is:"cdtr-slider",behaviors:[i.D,a.x,n.O,s.K],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean,value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}}},observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},keyBindings:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&(0,l.wB)(this.$.sliderBar,"auto")},increment:function(){this.value=this._clampValue(this.value+this.step)},decrement:function(){this.value=this._clampValue(this.value-this.step)},_updateKnob:function(e,t,r,i,a){this.setAttribute("aria-valuemin",t),this.setAttribute("aria-valuemax",r),this.setAttribute("aria-valuenow",e),this._positionKnob(100*this._calcRatio(e))},_valueChanged:function(){this.fire("value-change",{composed:!0})},_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},_expandKnob:function(){this._setExpand(!0)},_resetKnob:function(){this.cancelDebouncer("expandKnob"),this._setExpand(!1)},_positionKnob:function(e){this._setImmediateValue(this._calcStep(this._calcKnobPosition(e))),this._setRatio(100*this._calcRatio(this.immediateValue)),this.$.sliderKnob.style.left=this.ratio+"%",this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},_calcKnobPosition:function(e){return(this.max-this.min)*e/100+this.min},_onTrack:function(e){switch(e.stopPropagation(),e.detail.state){case"start":this._trackStart(e);break;case"track":this._trackX(e);break;case"end":this._trackEnd()}},_trackStart:function(e){this._setTransiting(!1),this._w=this.$.sliderBar.offsetWidth,this._x=this.ratio*this._w/100,this._startx=this._x,this._knobstartx=this._startx,this._minx=-this._startx,this._maxx=this._w-this._startx,this.$.sliderKnob.classList.add("dragging"),this._setDragging(!0)},_trackX:function(e){this.dragging||this._trackStart(e);var t=this._isRTL?-1:1,r=Math.min(this._maxx,Math.max(this._minx,e.detail.dx*t));this._x=this._startx+r;var i=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(i);var a=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(a+"px",0,0,this.$.sliderKnob)},_trackEnd:function(){var e=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging"),this._setDragging(!1),this._resetKnob(),this.value=this.immediateValue,e.transform=e.webkitTransform="",this.fire("change",{composed:!0})},_knobdown:function(e){this._expandKnob(),e.preventDefault(),this.focus()},_bartrack:function(e){this._allowBarEvent(e)&&this._onTrack(e)},_barclick:function(e){this._w=this.$.sliderBar.offsetWidth;var t=this.$.sliderBar.getBoundingClientRect(),r=(e.detail.x-t.left)/this._w*100;this._isRTL&&(r=100-r);var i=this.ratio;this._setTransiting(!0),this._positionKnob(r),i===this.ratio&&this._setTransiting(!1),this.async(function(){this.fire("change",{composed:!0})}),e.preventDefault(),this.focus()},_bardown:function(e){this._allowBarEvent(e)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(e))},_knobTransitionEnd:function(e){e.target===this.$.sliderKnob&&this._setTransiting(!1)},_updateMarkers:function(e,t,r,i){i||this._setMarkers([]);var a=Math.round((r-t)/this.step);a>e&&(a=e),(a<0||!isFinite(a))&&(a=0),this._setMarkers(new Array(a))},_mergeClasses:function(e){return Object.keys(e).filter(function(t){return e[t]}).join(" ")},_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},_allowBarEvent:function(e){return!this.ignoreBarTouch||e instanceof MouseEvent},get _isRTL(){return void 0===this.__isRTL&&(this.__isRTL="rtl"===window.getComputedStyle(this).direction),this.__isRTL},_leftKey:function(e){this._isRTL?this._incrementKey(e):this._decrementKey(e)},_rightKey:function(e){this._isRTL?this._decrementKey(e):this._incrementKey(e)},_incrementKey:function(e){this.disabled||("end"===e.detail.key?this.value=this.max:this.increment(),this.fire("change"),e.preventDefault())},_decrementKey:function(e){this.disabled||("home"===e.detail.key?this.value=this.min:this.decrement(),this.fire("change"),e.preventDefault())},_changeValue:function(e){this.value=e.target.value,this.fire("change",{composed:!0})},_inputKeyDown:function(e){e.stopPropagation()},_createRipple:function(){return this._rippleContainer=this.$.sliderKnob,n.o._createRipple.call(this)},_focusedChanged:function(e){e&&this.ensureRipple(),this.hasRipple()&&(this._ripple.style.display=e?"":"none",this._ripple.holdDown=e)}})}}]);
@@ -0,0 +1,10 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at
5
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
6
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
7
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
8
+ part of the polymer project is also subject to an additional IP rights grant
9
+ found at http://polymer.github.io/PATENTS.txt
10
+ */
Binary file
@@ -0,0 +1,98 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[4288],{64288(t,e,o){o.r(e),o.d(e,{ElementHandleBar:()=>c});var i=o(24586),s=o(59929),n=o(86319),r=o(90142);class c extends s.WF{constructor(){super(),this.show_click_message=!0,this.onRemove=this.onRemove.bind(this)}onRemove(){const t={detail:this.closest(this.target),bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("remove",t))}onClone(){const t={detail:this.closest(this.target),bubbles:!0,composed:!0};this.dispatchEvent(new CustomEvent("clone",t))}render(){const t="20",e="20",o=n.M.get("config","editor","configure","onSaveBlock");return s.qy`<cdtr-row
2
+ alignItems="center"
3
+ justify="space-evenly"
4
+ class="wrapper"
5
+ >
6
+ <cdtr-tooltip content="drag_section">
7
+ <div class="block-handle--sortable button">
8
+ <!-- TODO: if ok move the svg to component -->
9
+ <svg
10
+ width="24"
11
+ height="24"
12
+ viewBox="0 0 24 24"
13
+ fill="none"
14
+ xmlns="http://www.w3.org/2000/svg"
15
+ >
16
+ <path
17
+ d="M11 10.5V5.828L9.17196 7.657L7.75696 6.243L12 2L16.243 6.243L14.828 7.657L13 5.828V13V18.172L14.828 16.343L16.243 17.757L12 22L7.75696 17.757L9.17196 16.343L11 18.172V13V10.5Z"
18
+ fill="black"
19
+ />
20
+ <rect
21
+ x="3.5"
22
+ y="10.5"
23
+ width="17"
24
+ height="3"
25
+ fill="white"
26
+ stroke="black"
27
+ />
28
+ </svg>
29
+ </div>
30
+ </cdtr-tooltip>
31
+ <div class="button">
32
+ <cdtr-tooltip content="duplicate_block">
33
+ <cdtr-dupicate-icon
34
+ width=${t}
35
+ height=${e}
36
+ @mouseup=${this.onClone}
37
+ ></cdtr-dupicate-icon>
38
+ </cdtr-tooltip>
39
+ </div>
40
+ ${o&&s.qy` <div class="button" @mouseup=${r.A}>
41
+ <cdtr-tooltip content="save_block">
42
+ <svg
43
+ xmlns="http://www.w3.org/2000/svg"
44
+ viewBox="0 0 24 24"
45
+ fill="#000"
46
+ width=${t}
47
+ height=${e}
48
+ >
49
+ <path
50
+ d="M7 19V13H17V19H19V7.82843L16.1716 5H5V19H7ZM4 3H17L21 7V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM9 15V19H15V15H9Z"
51
+ ></path>
52
+ </svg>
53
+ </cdtr-tooltip>
54
+ </div>`}
55
+ <div class="button" @mouseup=${this.onRemove}>
56
+ <cdtr-tooltip content="remove_block">
57
+ <cdtr-remove-icon width=${t} height=${e}></cdtr-remove-icon>
58
+ </cdtr-tooltip>
59
+ </div>
60
+ </cdtr-row>`}}(0,i.A)(c,"properties",{target:{type:String},show_click_message:{type:Boolean}}),(0,i.A)(c,"styles",s.AH`
61
+ :host {
62
+ position: absolute;
63
+ top: 0;
64
+ right: 0;
65
+ height: 25px;
66
+ background: transparent;
67
+ z-index: 101;
68
+ display: flex;
69
+ align-items: center;
70
+ width: 40%;
71
+ transform: translateY(-100%);
72
+ }
73
+ .wrapper {
74
+ position: absolute;
75
+ right: 0;
76
+ padding: 5px;
77
+ height: 100%;
78
+ width: auto;
79
+ box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
80
+ transform: translateY(-30%);
81
+ background: #fff;
82
+ border-radius: 0.2rem;
83
+ }
84
+ .button {
85
+ padding: 1px 7px;
86
+ min-width: auto;
87
+ }
88
+
89
+ cdtr-tooltip {
90
+ display: block;
91
+ }
92
+ .drag_block {
93
+ cursor: grab;
94
+ }
95
+ .drag_block:active {
96
+ cursor: grabbing !important;
97
+ }
98
+ `),customElements.define("cdtr-element-handle-bar",c)}}]);
Binary file