@creaditor/web-starterkit 1.0.69 → 1.0.71
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9468],{79468(t,e,
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9468],{79468(t,e,o){o.r(e),o.d(e,{BackgroundHandleBar:()=>i});var r=o(59929);class i extends r.WF{constructor(){super()}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(){return r.qy`<cdtr-row
|
|
2
2
|
alignItems="center"
|
|
3
3
|
justify="space-evenly"
|
|
4
4
|
class="wrapper"
|
|
5
5
|
>
|
|
6
|
-
${this.sectionCounter>1?
|
|
6
|
+
${this.sectionCounter>1?r.qy` <cdtr-tooltip content="drag_section">
|
|
7
7
|
<paper-button class="section-handle--sortable">
|
|
8
8
|
<!-- TODO: if ok move the svg to component -->
|
|
9
9
|
<svg
|
|
@@ -67,7 +67,15 @@
|
|
|
67
67
|
<cdtr-setting-icon></cdtr-setting-icon>
|
|
68
68
|
</paper-button>
|
|
69
69
|
</cdtr-tooltip>
|
|
70
|
-
|
|
70
|
+
<cdtr-tooltip content="duplicate_section">
|
|
71
|
+
<paper-button @mouseup=${this.onClone}>
|
|
72
|
+
<cdtr-dupicate-icon
|
|
73
|
+
width=${"20"}
|
|
74
|
+
height=${"20"}
|
|
75
|
+
></cdtr-dupicate-icon>
|
|
76
|
+
</paper-button>
|
|
77
|
+
</cdtr-tooltip>
|
|
78
|
+
${this.sectionCounter>1?r.qy` <cdtr-tooltip content="delete_section">
|
|
71
79
|
<paper-button @mouseup=${this.onRemove}>
|
|
72
80
|
<cdtr-remove-icon
|
|
73
81
|
width=${"20"}
|
|
@@ -75,7 +83,7 @@
|
|
|
75
83
|
></cdtr-remove-icon>
|
|
76
84
|
</paper-button>
|
|
77
85
|
</cdtr-tooltip>`:null}
|
|
78
|
-
</cdtr-row>`}}i.properties={target:{type:String},sectionCounter:{type:Number}},i.styles=
|
|
86
|
+
</cdtr-row>`}}i.properties={target:{type:String},sectionCounter:{type:Number}},i.styles=r.AH`
|
|
79
87
|
:host {
|
|
80
88
|
position: absolute;
|
|
81
89
|
top: 0;
|
|
@@ -99,6 +107,19 @@
|
|
|
99
107
|
background: var(--color-bg, #fff);
|
|
100
108
|
border-radius: var(--radius-sm, 6px);
|
|
101
109
|
min-height: 90px;
|
|
110
|
+
position: relative;
|
|
111
|
+
}
|
|
112
|
+
/* The wrapper is pushed past the section's edge, which left a few px of
|
|
113
|
+
canvas between the two. Crossing that strip hovered the page instead of
|
|
114
|
+
the section, so the bar was removed before the pointer reached it. This
|
|
115
|
+
invisible bridge belongs to the bar (and so to the section). */
|
|
116
|
+
.wrapper::before {
|
|
117
|
+
content: "";
|
|
118
|
+
position: absolute;
|
|
119
|
+
top: 0;
|
|
120
|
+
bottom: 0;
|
|
121
|
+
right: 100%;
|
|
122
|
+
width: 16px;
|
|
102
123
|
}
|
|
103
124
|
paper-button {
|
|
104
125
|
padding: var(--space-1, 4px);
|
|
Binary file
|