@gooddata/sdk-ui-dashboard 10.33.0-alpha.41 → 10.33.0-alpha.43
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/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.d.ts.map +1 -1
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js +1 -0
- package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +4 -6
- package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.d.ts +5 -2
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.js +16 -17
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.js +1 -3
- package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.js.map +1 -1
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.js +0 -4
- package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.js.map +1 -1
- package/package.json +15 -15
- package/styles/css/dashboard.css +3 -0
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/dashboardNestedLayoutWidget.css +78 -48
- package/styles/css/dashboardNestedLayoutWidget.css.map +1 -1
- package/styles/css/dragAndDrop.css +10 -13
- package/styles/css/dragAndDrop.css.map +1 -1
- package/styles/css/main.css +91 -61
- package/styles/css/main.css.map +1 -1
- package/styles/scss/dashboard.scss +5 -0
- package/styles/scss/dashboardNestedLayoutWidget.scss +131 -76
- package/styles/scss/dragAndDrop.scss +35 -40
@@ -46,12 +46,6 @@
|
|
46
46
|
}
|
47
47
|
}
|
48
48
|
|
49
|
-
.gd-nested-layout-widget-renderer {
|
50
|
-
.gd-nested-layout-hotspot.dropzone {
|
51
|
-
width: 50px;
|
52
|
-
}
|
53
|
-
}
|
54
|
-
|
55
49
|
.gd-dashboard-nested-layout-tab {
|
56
50
|
display: none;
|
57
51
|
width: auto;
|
@@ -115,109 +109,130 @@
|
|
115
109
|
min-height: 300px;
|
116
110
|
}
|
117
111
|
}
|
112
|
+
}
|
118
113
|
|
119
|
-
|
120
|
-
|
114
|
+
// Definition of horizontal and vertical hot and drop zones.
|
115
|
+
.gd-grid-layout-dropzone {
|
116
|
+
$dropzoneRoot: &;
|
117
|
+
z-index: zIndexes.$drag-and-drop-drop-zone;
|
118
|
+
|
119
|
+
&--type-prev,
|
120
|
+
&--type-next {
|
121
121
|
position: absolute;
|
122
|
-
padding: 10px 0;
|
123
|
-
width: 10px;
|
124
|
-
height: 100%;
|
125
122
|
}
|
126
123
|
|
127
|
-
|
128
|
-
|
124
|
+
&--type-prev {
|
125
|
+
.drop-hint {
|
126
|
+
float: left;
|
127
|
+
margin-left: -3px;
|
128
|
+
}
|
129
129
|
}
|
130
130
|
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
border: 1px dashed kit-variables.$gd-palette-primary-base;
|
136
|
-
border-radius: 15px;
|
137
|
-
background-color: kit-variables.$gd-palette-primary-dimmed;
|
138
|
-
|
139
|
-
.drop-target-inner {
|
140
|
-
width: 4px;
|
141
|
-
height: 100%;
|
142
|
-
padding: 0;
|
143
|
-
border-radius: 2px;
|
144
|
-
background-color: kit-variables.$gd-palette-primary-base;
|
131
|
+
&--type-next {
|
132
|
+
.drop-hint {
|
133
|
+
float: right;
|
134
|
+
margin-left: 3px;
|
145
135
|
}
|
146
136
|
}
|
147
137
|
|
148
|
-
|
149
|
-
|
150
|
-
left: -15px;
|
151
|
-
display: block;
|
152
|
-
}
|
138
|
+
&--hidden {
|
139
|
+
display: none;
|
153
140
|
}
|
154
141
|
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
142
|
+
// definition of horizontal drop zones
|
143
|
+
&--direction-row {
|
144
|
+
&#{$dropzoneRoot}--type-prev,
|
145
|
+
&#{$dropzoneRoot}--type-next {
|
146
|
+
top: 0;
|
147
|
+
bottom: 0;
|
148
|
+
width: 50%;
|
149
|
+
|
150
|
+
&#{$dropzoneRoot}--full {
|
151
|
+
width: 100%;
|
152
|
+
}
|
159
153
|
}
|
160
|
-
}
|
161
|
-
}
|
162
154
|
|
163
|
-
|
164
|
-
// The block redefines the vertical hot zones and drop zones to horizontal one for column layout.
|
165
|
-
.gd-dashboard-nested-layout-widget--column {
|
166
|
-
.dropzone {
|
167
|
-
&.prev,
|
168
|
-
&.next {
|
169
|
-
top: unset;
|
170
|
-
right: 0;
|
171
|
-
bottom: unset;
|
155
|
+
&#{$dropzoneRoot}--type-prev {
|
172
156
|
left: 0;
|
157
|
+
|
158
|
+
&#{$dropzoneRoot}--active {
|
159
|
+
#{$dropzoneRoot}__drop-target--direction-row {
|
160
|
+
left: -15px;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
&#{$dropzoneRoot}--type-next {
|
166
|
+
right: 0;
|
167
|
+
|
168
|
+
&#{$dropzoneRoot}--active {
|
169
|
+
#{$dropzoneRoot}__drop-target--direction-row {
|
170
|
+
right: -15px;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
&#{$dropzoneRoot}--extended {
|
173
176
|
width: 100%;
|
174
|
-
height: 50%;
|
175
177
|
}
|
176
178
|
|
177
|
-
|
178
|
-
|
179
|
+
&#{$dropzoneRoot}--isOverNestedLayout {
|
180
|
+
&#{$dropzoneRoot}--type-prev,
|
181
|
+
&#{$dropzoneRoot}--type-next {
|
182
|
+
// nested container has has narrower hotspot so it is possible to drop widget into it, while
|
183
|
+
// the non-container widgets inside of it are split half and half (50%)
|
184
|
+
width: 50px;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
}
|
188
|
+
|
189
|
+
// definition of vertical drop zones
|
190
|
+
&--direction-column {
|
191
|
+
&#{$dropzoneRoot}--type-prev,
|
192
|
+
&#{$dropzoneRoot}--type-next {
|
193
|
+
right: 0;
|
194
|
+
left: 0;
|
195
|
+
height: 50%;
|
179
196
|
|
180
|
-
|
197
|
+
&#{$dropzoneRoot}--full {
|
181
198
|
width: 50%;
|
182
199
|
}
|
200
|
+
}
|
201
|
+
|
202
|
+
&#{$dropzoneRoot}--type-prev {
|
203
|
+
top: 0;
|
183
204
|
|
184
|
-
|
185
|
-
|
186
|
-
left: unset; // remove left shift defined for vertical hotspot
|
205
|
+
&#{$dropzoneRoot}--active {
|
206
|
+
#{$dropzoneRoot}__drop-target--direction-column {
|
187
207
|
top: -5px; // shift above the widget, in the middle of space between two widgets
|
188
208
|
}
|
189
209
|
}
|
190
210
|
}
|
191
211
|
|
192
|
-
|
212
|
+
&#{$dropzoneRoot}--type-next {
|
193
213
|
bottom: 0;
|
194
214
|
|
195
|
-
|
196
|
-
|
197
|
-
}
|
198
|
-
|
199
|
-
&.active {
|
200
|
-
.gd-hotspot-border__container {
|
201
|
-
right: unset; // remove right shift defined for vertical hotspot
|
215
|
+
&#{$dropzoneRoot}--active {
|
216
|
+
#{$dropzoneRoot}__drop-target--direction-column {
|
202
217
|
bottom: -5px; // shift below the widget, in the middle of space between two widgets
|
203
218
|
}
|
204
219
|
}
|
205
220
|
}
|
206
221
|
|
207
|
-
|
208
|
-
|
209
|
-
|
222
|
+
&#{$dropzoneRoot}--isOverNestedLayout {
|
223
|
+
&#{$dropzoneRoot}--type-prev,
|
224
|
+
&#{$dropzoneRoot}--type-next {
|
210
225
|
// nested container has has narrower hotspot so it is possible to drop widget into it, while
|
211
226
|
// the non-container widgets inside of it are split half and half (50%)
|
212
227
|
height: 50px;
|
213
228
|
}
|
214
229
|
}
|
215
230
|
|
216
|
-
|
217
|
-
|
218
|
-
|
231
|
+
&#{$dropzoneRoot}--isInFirstRow {
|
232
|
+
&#{$dropzoneRoot}--type-prev {
|
233
|
+
&#{$dropzoneRoot}--active {
|
219
234
|
// stylelint-disable-next-line max-nesting-depth
|
220
|
-
|
235
|
+
#{$dropzoneRoot}__drop-target--direction-column {
|
221
236
|
top: -15px; // the first widget does not have same padding as the subsequent ones
|
222
237
|
}
|
223
238
|
}
|
@@ -225,15 +240,55 @@
|
|
225
240
|
}
|
226
241
|
}
|
227
242
|
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
}
|
243
|
+
// drop target inside of the drop zone
|
244
|
+
&__drop-target {
|
245
|
+
display: none;
|
246
|
+
position: absolute;
|
233
247
|
|
234
|
-
|
235
|
-
|
248
|
+
&--direction-row {
|
249
|
+
padding: 10px 0;
|
250
|
+
width: 10px;
|
251
|
+
height: 100%;
|
252
|
+
|
253
|
+
#{$dropzoneRoot}__drop-target-inner {
|
254
|
+
width: 4px;
|
255
|
+
}
|
256
|
+
}
|
257
|
+
|
258
|
+
&--direction-column {
|
259
|
+
padding: 0;
|
236
260
|
width: 100%;
|
261
|
+
height: 10px;
|
262
|
+
|
263
|
+
#{$dropzoneRoot}__drop-target-inner {
|
264
|
+
width: 100%;
|
265
|
+
}
|
237
266
|
}
|
267
|
+
|
268
|
+
&#{$dropzoneRoot}--isInFirstRow {
|
269
|
+
padding-top: 0;
|
270
|
+
}
|
271
|
+
}
|
272
|
+
|
273
|
+
&--active {
|
274
|
+
#{$dropzoneRoot}__drop-target {
|
275
|
+
display: block;
|
276
|
+
}
|
277
|
+
}
|
278
|
+
|
279
|
+
&__drop-target-border {
|
280
|
+
width: 100%;
|
281
|
+
height: 100%;
|
282
|
+
padding: 2px;
|
283
|
+
border: 1px dashed kit-variables.$gd-palette-primary-base;
|
284
|
+
border-radius: 15px;
|
285
|
+
background-color: kit-variables.$gd-palette-primary-dimmed;
|
286
|
+
}
|
287
|
+
|
288
|
+
&__drop-target-inner {
|
289
|
+
height: 100%;
|
290
|
+
padding: 0;
|
291
|
+
border-radius: 2px;
|
292
|
+
background-color: kit-variables.$gd-palette-primary-base;
|
238
293
|
}
|
239
294
|
}
|
@@ -190,48 +190,51 @@
|
|
190
190
|
background-image: url("@gooddata/sdk-ui-dashboard/esm/assets/add-attribute-filter-placeholder.svg");
|
191
191
|
}
|
192
192
|
|
193
|
-
.
|
194
|
-
|
195
|
-
|
196
|
-
&.prev {
|
197
|
-
position: absolute;
|
198
|
-
top: 0;
|
199
|
-
bottom: 0;
|
200
|
-
width: 50%;
|
201
|
-
}
|
202
|
-
|
203
|
-
&.next {
|
204
|
-
right: 0;
|
193
|
+
.gd-fluid-layout {
|
194
|
+
.dropzone {
|
195
|
+
z-index: zIndexes.$drag-and-drop-drop-zone;
|
205
196
|
|
206
|
-
|
207
|
-
|
208
|
-
|
197
|
+
&.next,
|
198
|
+
&.prev {
|
199
|
+
position: absolute;
|
200
|
+
top: 0;
|
201
|
+
bottom: 0;
|
202
|
+
width: 50%;
|
209
203
|
}
|
210
204
|
|
211
|
-
&.
|
212
|
-
|
213
|
-
}
|
214
|
-
}
|
205
|
+
&.next {
|
206
|
+
right: 0;
|
215
207
|
|
216
|
-
|
217
|
-
|
208
|
+
.drop-hint {
|
209
|
+
float: right;
|
210
|
+
margin-left: 3px;
|
211
|
+
}
|
218
212
|
|
219
|
-
|
220
|
-
|
221
|
-
|
213
|
+
&.full {
|
214
|
+
width: 100%;
|
215
|
+
}
|
222
216
|
}
|
223
217
|
|
224
|
-
&.
|
225
|
-
|
218
|
+
&.prev {
|
219
|
+
left: 0;
|
220
|
+
|
221
|
+
.drop-hint {
|
222
|
+
float: left;
|
223
|
+
margin-left: -3px;
|
224
|
+
}
|
225
|
+
|
226
|
+
&.full {
|
227
|
+
width: 100%;
|
228
|
+
}
|
226
229
|
}
|
227
|
-
}
|
228
230
|
|
229
|
-
|
230
|
-
|
231
|
-
|
231
|
+
&.hidden {
|
232
|
+
display: none;
|
233
|
+
}
|
232
234
|
|
233
|
-
|
234
|
-
|
235
|
+
&.extended {
|
236
|
+
width: 100%;
|
237
|
+
}
|
235
238
|
}
|
236
239
|
}
|
237
240
|
|
@@ -710,14 +713,6 @@
|
|
710
713
|
}
|
711
714
|
}
|
712
715
|
|
713
|
-
.dropzone {
|
714
|
-
&.next {
|
715
|
-
.drop-hint {
|
716
|
-
float: unset;
|
717
|
-
}
|
718
|
-
}
|
719
|
-
}
|
720
|
-
|
721
716
|
.row-hotspot-container {
|
722
717
|
.row-hotspot {
|
723
718
|
top: -20px; // move active dropzone over the section hotspot row
|