@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.
Files changed (30) hide show
  1. package/esm/__version.d.ts +1 -1
  2. package/esm/__version.js +1 -1
  3. package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.d.ts.map +1 -1
  4. package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js +1 -0
  5. package/esm/presentation/dashboard/DefaultDashboardContent/DefaultDashboardMainContent.js.map +1 -1
  6. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.d.ts.map +1 -1
  7. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js +4 -6
  8. package/esm/presentation/flexibleLayout/DashboardLayoutWidget.js.map +1 -1
  9. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.d.ts +5 -2
  10. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.d.ts.map +1 -1
  11. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.js +16 -17
  12. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/Hotspot.js.map +1 -1
  13. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.d.ts.map +1 -1
  14. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.js +1 -3
  15. package/esm/presentation/flexibleLayout/dragAndDrop/draggableWidget/RowEndHotspot.js.map +1 -1
  16. package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.d.ts.map +1 -1
  17. package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.js +0 -4
  18. package/esm/presentation/widget/widget/DashboardNestedLayoutWidget/EditableDashboardNestedLayoutWidget.js.map +1 -1
  19. package/package.json +15 -15
  20. package/styles/css/dashboard.css +3 -0
  21. package/styles/css/dashboard.css.map +1 -1
  22. package/styles/css/dashboardNestedLayoutWidget.css +78 -48
  23. package/styles/css/dashboardNestedLayoutWidget.css.map +1 -1
  24. package/styles/css/dragAndDrop.css +10 -13
  25. package/styles/css/dragAndDrop.css.map +1 -1
  26. package/styles/css/main.css +91 -61
  27. package/styles/css/main.css.map +1 -1
  28. package/styles/scss/dashboard.scss +5 -0
  29. package/styles/scss/dashboardNestedLayoutWidget.scss +131 -76
  30. 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
- .gd-hotspot-border__container {
120
- display: none;
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
- .gd-first-container-row-dropzone .gd-hotspot-border__container {
128
- padding-top: 0;
124
+ &--type-prev {
125
+ .drop-hint {
126
+ float: left;
127
+ margin-left: -3px;
128
+ }
129
129
  }
130
130
 
131
- .gd-hotspot-border__drop-target {
132
- width: 100%;
133
- height: 100%;
134
- padding: 2px;
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
- .dropzone.prev.active {
149
- .gd-hotspot-border__container {
150
- left: -15px;
151
- display: block;
152
- }
138
+ &--hidden {
139
+ display: none;
153
140
  }
154
141
 
155
- .dropzone.next.active {
156
- .gd-hotspot-border__container {
157
- right: -15px;
158
- display: block;
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
- // The class is used in the nested layout, no need to nest this inside of .gd-grid-layout.
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
- &.prev {
178
- top: 0;
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
- &.full {
197
+ &#{$dropzoneRoot}--full {
181
198
  width: 50%;
182
199
  }
200
+ }
201
+
202
+ &#{$dropzoneRoot}--type-prev {
203
+ top: 0;
183
204
 
184
- &.active {
185
- .gd-hotspot-border__container {
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
- &.next {
212
+ &#{$dropzoneRoot}--type-next {
193
213
  bottom: 0;
194
214
 
195
- &.full {
196
- width: 50%;
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
- &.gd-nested-layout-hotspot {
208
- &.prev,
209
- &.next {
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
- &.gd-first-container-row-dropzone {
217
- &.prev {
218
- &.active {
231
+ &#{$dropzoneRoot}--isInFirstRow {
232
+ &#{$dropzoneRoot}--type-prev {
233
+ &#{$dropzoneRoot}--active {
219
234
  // stylelint-disable-next-line max-nesting-depth
220
- .gd-hotspot-border__container {
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
- .gd-hotspot-border__container {
229
- padding: 0; // remove padding defined for vertical hotspot to have drop zone same width as widget
230
- width: 100%;
231
- height: 10px;
232
- }
243
+ // drop target inside of the drop zone
244
+ &__drop-target {
245
+ display: none;
246
+ position: absolute;
233
247
 
234
- .gd-hotspot-border__drop-target {
235
- .drop-target-inner {
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
- .dropzone {
194
- z-index: zIndexes.$drag-and-drop-drop-zone;
195
- &.next,
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
- .drop-hint {
207
- float: right;
208
- margin-left: 3px;
197
+ &.next,
198
+ &.prev {
199
+ position: absolute;
200
+ top: 0;
201
+ bottom: 0;
202
+ width: 50%;
209
203
  }
210
204
 
211
- &.full {
212
- width: 100%;
213
- }
214
- }
205
+ &.next {
206
+ right: 0;
215
207
 
216
- &.prev {
217
- left: 0;
208
+ .drop-hint {
209
+ float: right;
210
+ margin-left: 3px;
211
+ }
218
212
 
219
- .drop-hint {
220
- float: left;
221
- margin-left: -3px;
213
+ &.full {
214
+ width: 100%;
215
+ }
222
216
  }
223
217
 
224
- &.full {
225
- width: 100%;
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
- &.hidden {
230
- display: none;
231
- }
231
+ &.hidden {
232
+ display: none;
233
+ }
232
234
 
233
- &.extended {
234
- width: 100%;
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