@gooddata/sdk-ui-dashboard 10.33.0-alpha.74 → 10.33.0-alpha.76
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/_staging/layout/sizing.js +1 -1
- package/esm/_staging/layout/sizing.js.map +1 -1
- package/esm/presentation/dragAndDrop/LayoutResizeContext.d.ts +3 -1
- package/esm/presentation/dragAndDrop/LayoutResizeContext.d.ts.map +1 -1
- package/esm/presentation/dragAndDrop/LayoutResizeContext.js +6 -2
- package/esm/presentation/dragAndDrop/LayoutResizeContext.js.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBarContainer.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar.d.ts +8 -0
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar.d.ts.map +1 -0
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar.js +23 -0
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar.js.map +1 -0
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.js +2 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.js.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.js +4 -4
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/WidthResizerHotspot.js.map +1 -1
- package/esm/presentation/layout/dragAndDrop/Resize/HeightResizerHotspot.js +1 -1
- package/esm/presentation/layout/dragAndDrop/Resize/HeightResizerHotspot.js.map +1 -1
- package/esm/presentation/layout/dragAndDrop/Resize/WidthResizerHotspot.js +1 -1
- package/esm/presentation/layout/dragAndDrop/Resize/WidthResizerHotspot.js.map +1 -1
- package/package.json +15 -15
- package/styles/css/dragAndDrop.css +3 -0
- package/styles/css/dragAndDrop.css.map +1 -1
- package/styles/css/main.css +71 -15
- package/styles/css/main.css.map +1 -1
- package/styles/css/resizing.css +68 -15
- package/styles/css/resizing.css.map +1 -1
- package/styles/scss/dragAndDrop.scss +4 -0
- package/styles/scss/resizing.scss +82 -13
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar/Bullet.d.ts +0 -9
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar/Bullet.d.ts.map +0 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar/Bullet.js +0 -16
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar/Bullet.js.map +0 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar/BulletsBar.d.ts +0 -3
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar/BulletsBar.d.ts.map +0 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar/BulletsBar.js +0 -20
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar/BulletsBar.js.map +0 -1
package/styles/css/resizing.css
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
top: 0;
|
9
9
|
right: 20px;
|
10
10
|
bottom: 100%;
|
11
|
-
width: 0;
|
12
11
|
height: 100%;
|
13
12
|
}
|
14
13
|
|
@@ -23,8 +22,8 @@
|
|
23
22
|
.dash-width-resizer-hotspot,
|
24
23
|
.resizer-drag-preview {
|
25
24
|
display: flex;
|
26
|
-
|
27
|
-
|
25
|
+
justify-content: center;
|
26
|
+
width: 20px;
|
28
27
|
cursor: col-resize;
|
29
28
|
}
|
30
29
|
|
@@ -181,9 +180,6 @@
|
|
181
180
|
background: var(--gd-dashboards-content-backgroundColor-from-theme, var(--gd-palette-complementary-0-from-theme, rgba(255, 255, 255, 0.95)));
|
182
181
|
}
|
183
182
|
|
184
|
-
.gd-grid-layout-width-resizer-drag-preview {
|
185
|
-
padding: 0 0 0 10px;
|
186
|
-
}
|
187
183
|
.gd-grid-layout-width-resizer-drag-preview.gd-first-container-row-widget .gd-fluidlayout-width-resizer__container {
|
188
184
|
padding-top: 0;
|
189
185
|
}
|
@@ -195,16 +191,15 @@
|
|
195
191
|
}
|
196
192
|
.gd-grid-layout-resizer-drag-preview .gd-fluidlayout-width-resizer,
|
197
193
|
.gd-grid-layout .gd-fluidlayout-width-resizer {
|
198
|
-
padding: 4px 0;
|
199
194
|
display: flex;
|
200
195
|
flex-direction: column;
|
201
196
|
border-radius: 4px;
|
197
|
+
align-items: center;
|
202
198
|
}
|
203
199
|
.gd-grid-layout-resizer-drag-preview .gd-fluidlayout-width-resizer .width-resizer-line,
|
204
200
|
.gd-grid-layout .gd-fluidlayout-width-resizer .width-resizer-line {
|
205
201
|
flex: 1 0 auto;
|
206
202
|
width: 0;
|
207
|
-
margin-left: 4px;
|
208
203
|
height: unset;
|
209
204
|
}
|
210
205
|
.gd-grid-layout-resizer-drag-preview .dash-height-resizer-container,
|
@@ -259,17 +254,20 @@
|
|
259
254
|
}
|
260
255
|
|
261
256
|
.gd-grid-layout .dash-width-resizer-container {
|
262
|
-
position:
|
263
|
-
|
264
|
-
|
265
|
-
|
257
|
+
position: absolute;
|
258
|
+
right: -20px;
|
259
|
+
width: 20px;
|
260
|
+
display: flex;
|
261
|
+
justify-content: center;
|
266
262
|
}
|
267
263
|
.gd-grid-layout .dash-width-resizer-container.gd-first-container-row-widget .gd-fluidlayout-width-resizer__container {
|
268
264
|
padding-top: 0;
|
269
265
|
}
|
270
266
|
.gd-grid-layout .gd-fluidlayout-width-resizer__container {
|
271
267
|
background: var(--gd-dashboards-content-backgroundColor, var(--gd-palette-complementary-0, #fff));
|
272
|
-
width:
|
268
|
+
width: 20px;
|
269
|
+
display: flex;
|
270
|
+
justify-content: center;
|
273
271
|
}
|
274
272
|
.gd-grid-layout .dash-height-resizer-hotspot {
|
275
273
|
position: absolute;
|
@@ -293,9 +291,10 @@
|
|
293
291
|
}
|
294
292
|
|
295
293
|
.sdk-edit-mode-on .gd-grid-layout .dash-width-resizer-hotspot {
|
296
|
-
position:
|
294
|
+
position: static;
|
297
295
|
width: 20px;
|
298
|
-
|
296
|
+
display: flex;
|
297
|
+
justify-content: center;
|
299
298
|
}
|
300
299
|
.sdk-edit-mode-on .gd-grid-layout .gd-resize-overlay-text {
|
301
300
|
right: -10px;
|
@@ -328,4 +327,58 @@
|
|
328
327
|
left: unset;
|
329
328
|
}
|
330
329
|
|
330
|
+
.gd-grid-layout-ruler {
|
331
|
+
--bullet-size: 6px;
|
332
|
+
--bullet-size-active: 9px;
|
333
|
+
--gap: 20px;
|
334
|
+
padding: 20px 0 20px var(--gap);
|
335
|
+
position: absolute;
|
336
|
+
left: 0;
|
337
|
+
right: 0;
|
338
|
+
display: flex;
|
339
|
+
}
|
340
|
+
.gd-grid-layout-ruler__grid {
|
341
|
+
flex-grow: 1;
|
342
|
+
flex-shrink: 0;
|
343
|
+
display: grid;
|
344
|
+
gap: var(--gap);
|
345
|
+
grid-template-columns: repeat(var(--columns-num), 1fr);
|
346
|
+
grid-template-rows: auto;
|
347
|
+
justify-content: start;
|
348
|
+
align-items: stretch;
|
349
|
+
}
|
350
|
+
.gd-grid-layout-ruler__bullet-container {
|
351
|
+
width: var(--gap);
|
352
|
+
display: flex;
|
353
|
+
justify-content: center;
|
354
|
+
align-items: center;
|
355
|
+
position: relative;
|
356
|
+
left: calc(var(--gap) * -1);
|
357
|
+
}
|
358
|
+
.gd-grid-layout-ruler__bullet-container--last {
|
359
|
+
left: 0;
|
360
|
+
}
|
361
|
+
.gd-grid-layout-ruler__bullet {
|
362
|
+
width: var(--bullet-size);
|
363
|
+
height: var(--bullet-size);
|
364
|
+
border-radius: 100%;
|
365
|
+
background-color: var(--gd-palette-complementary-6-from-theme, #b0beca);
|
366
|
+
position: absolute;
|
367
|
+
opacity: 0;
|
368
|
+
transform: translateY(-20px);
|
369
|
+
transition: transform 0.2s ease-out, opacity 0.1s ease-in, width 0.1s ease-out, height 0.1s ease-out;
|
370
|
+
}
|
371
|
+
.gd-grid-layout-ruler--active .gd-grid-layout-ruler__bullet {
|
372
|
+
opacity: 1;
|
373
|
+
transform: translateY(0);
|
374
|
+
}
|
375
|
+
.gd-grid-layout-ruler__bullet--active {
|
376
|
+
background-color: var(--gd-palette-primary-base, #14b2e2);
|
377
|
+
width: var(--bullet-size-active);
|
378
|
+
height: var(--bullet-size-active);
|
379
|
+
}
|
380
|
+
.gd-grid-layout-ruler__bullet--initial {
|
381
|
+
background-color: var(--gd-palette-complementary-9, #000);
|
382
|
+
}
|
383
|
+
|
331
384
|
/*# sourceMappingURL=resizing.css.map */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../node_modules/@gooddata/sdk-ui-kit/styles/scss/mixins.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Bubble/_variables.scss","../scss/resizing.scss","../scss/_variables.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/variables.scss","../scss/_zIndexes.scss"],"names":[],"mappings":"AA0HA;AA4DA;ACjLA;AAAA;AAAA;ACAA;EACI;EACA;EACA;EACA;EACA
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../node_modules/@gooddata/sdk-ui-kit/styles/scss/mixins.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/Bubble/_variables.scss","../scss/resizing.scss","../scss/_variables.scss","../../node_modules/@gooddata/sdk-ui-kit/styles/scss/variables.scss","../scss/_zIndexes.scss"],"names":[],"mappings":"AA0HA;AA4DA;ACjLA;AAAA;AAAA;ACAA;EACI;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;EACA;;;AAGJ;AAAA;EAEI;EACA;EACA;EACA;;;AAGJ;AAAA;EAEI;EACA;EACA;EAC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EACI;;AAKZ;EACI,YC3OgC;ED4OhC;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;;AAGJ;EACI;EACA;;AAEJ;EACI;EACA;EACA;EACA;EACA;;AAGJ;EACI;;;AAKJ;EACI;EACA;EACA;EACA;;AAGJ;EACI;EACA;;;AAIR;EAEI;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;;;AAIR;EAGI;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;AAIR;EACI;EACA;EACA;EACA;EAIA;EAEA;EACA;EACA;;AAEA;EACI;EACA;;AAGJ;EACI,kBEvYc;EFwYd;EACA;;AAGJ;EACI","file":"resizing.css"}
|
@@ -8,7 +8,6 @@
|
|
8
8
|
top: 0;
|
9
9
|
right: 20px;
|
10
10
|
bottom: 100%;
|
11
|
-
width: 0;
|
12
11
|
height: 100%;
|
13
12
|
}
|
14
13
|
|
@@ -23,8 +22,8 @@
|
|
23
22
|
.dash-width-resizer-hotspot,
|
24
23
|
.resizer-drag-preview {
|
25
24
|
display: flex;
|
26
|
-
|
27
|
-
|
25
|
+
justify-content: center;
|
26
|
+
width: 20px;
|
28
27
|
cursor: col-resize;
|
29
28
|
}
|
30
29
|
|
@@ -209,7 +208,6 @@
|
|
209
208
|
}
|
210
209
|
|
211
210
|
.gd-grid-layout-width-resizer-drag-preview {
|
212
|
-
padding: 0 0 0 10px;
|
213
211
|
&.gd-first-container-row-widget {
|
214
212
|
.gd-fluidlayout-width-resizer__container {
|
215
213
|
padding-top: 0;
|
@@ -224,15 +222,14 @@
|
|
224
222
|
border-radius: 4px;
|
225
223
|
}
|
226
224
|
.gd-fluidlayout-width-resizer {
|
227
|
-
padding: 4px 0;
|
228
225
|
display: flex;
|
229
226
|
flex-direction: column;
|
230
227
|
border-radius: 4px;
|
228
|
+
align-items: center;
|
231
229
|
|
232
230
|
.width-resizer-line {
|
233
231
|
flex: 1 0 auto;
|
234
232
|
width: 0;
|
235
|
-
margin-left: 4px;
|
236
233
|
height: unset;
|
237
234
|
}
|
238
235
|
}
|
@@ -289,10 +286,11 @@
|
|
289
286
|
|
290
287
|
.gd-grid-layout {
|
291
288
|
.dash-width-resizer-container {
|
292
|
-
position:
|
293
|
-
|
294
|
-
|
295
|
-
|
289
|
+
position: absolute;
|
290
|
+
right: -20px;
|
291
|
+
width: 20px;
|
292
|
+
display: flex;
|
293
|
+
justify-content: center;
|
296
294
|
&.gd-first-container-row-widget {
|
297
295
|
.gd-fluidlayout-width-resizer__container {
|
298
296
|
padding-top: 0;
|
@@ -302,7 +300,9 @@
|
|
302
300
|
|
303
301
|
.gd-fluidlayout-width-resizer__container {
|
304
302
|
background: variables.$gd-dashboards-content-backgroundColor;
|
305
|
-
width:
|
303
|
+
width: 20px;
|
304
|
+
display: flex;
|
305
|
+
justify-content: center;
|
306
306
|
}
|
307
307
|
|
308
308
|
.dash-height-resizer-hotspot {
|
@@ -331,9 +331,10 @@
|
|
331
331
|
|
332
332
|
.sdk-edit-mode-on .gd-grid-layout {
|
333
333
|
.dash-width-resizer-hotspot {
|
334
|
-
position:
|
334
|
+
position: static;
|
335
335
|
width: 20px;
|
336
|
-
|
336
|
+
display: flex;
|
337
|
+
justify-content: center;
|
337
338
|
}
|
338
339
|
|
339
340
|
.gd-resize-overlay-text {
|
@@ -371,3 +372,71 @@
|
|
371
372
|
left: unset;
|
372
373
|
}
|
373
374
|
}
|
375
|
+
|
376
|
+
.gd-grid-layout-ruler {
|
377
|
+
$root: &;
|
378
|
+
|
379
|
+
--bullet-size: 6px;
|
380
|
+
--bullet-size-active: 9px;
|
381
|
+
--gap: 20px;
|
382
|
+
|
383
|
+
padding: 20px 0 20px var(--gap);
|
384
|
+
position: absolute;
|
385
|
+
left: 0;
|
386
|
+
right: 0;
|
387
|
+
display: flex;
|
388
|
+
|
389
|
+
&__grid {
|
390
|
+
flex-grow: 1;
|
391
|
+
flex-shrink: 0;
|
392
|
+
display: grid;
|
393
|
+
gap: var(--gap);
|
394
|
+
grid-template-columns: repeat(var(--columns-num), 1fr);
|
395
|
+
grid-template-rows: auto;
|
396
|
+
justify-content: start;
|
397
|
+
align-items: stretch;
|
398
|
+
}
|
399
|
+
|
400
|
+
&__bullet-container {
|
401
|
+
width: var(--gap);
|
402
|
+
display: flex;
|
403
|
+
justify-content: center;
|
404
|
+
align-items: center;
|
405
|
+
position: relative;
|
406
|
+
left: calc(var(--gap) * -1);
|
407
|
+
|
408
|
+
&--last {
|
409
|
+
left: 0;
|
410
|
+
}
|
411
|
+
}
|
412
|
+
|
413
|
+
&__bullet {
|
414
|
+
width: var(--bullet-size);
|
415
|
+
height: var(--bullet-size);
|
416
|
+
border-radius: 100%;
|
417
|
+
background-color: var(
|
418
|
+
--gd-palette-complementary-6-from-theme,
|
419
|
+
kit-variables.$default-gd-color-disabled
|
420
|
+
);
|
421
|
+
position: absolute;
|
422
|
+
|
423
|
+
opacity: 0;
|
424
|
+
transform: translateY(-20px);
|
425
|
+
transition: transform 0.2s ease-out, opacity 0.1s ease-in, width 0.1s ease-out, height 0.1s ease-out;
|
426
|
+
|
427
|
+
#{$root}--active & {
|
428
|
+
opacity: 1;
|
429
|
+
transform: translateY(0);
|
430
|
+
}
|
431
|
+
|
432
|
+
&--active {
|
433
|
+
background-color: kit-variables.$gd-palette-primary-base;
|
434
|
+
width: var(--bullet-size-active);
|
435
|
+
height: var(--bullet-size-active);
|
436
|
+
}
|
437
|
+
|
438
|
+
&--initial {
|
439
|
+
background-color: var(--gd-palette-complementary-9, #000);
|
440
|
+
}
|
441
|
+
}
|
442
|
+
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Bullet.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar/Bullet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,WAAW;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAoBxC,CAAC"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
// (C) 2019-2024 GoodData Corporation
|
2
|
-
import React from "react";
|
3
|
-
import classnames from "classnames";
|
4
|
-
export const Bullet = ({ isCurrent, isInitial, isLast, index }) => {
|
5
|
-
const bulletStyle = classnames("gd-resize-bullet", `s-resize-bullet-${index}`, {
|
6
|
-
"gd-resize-bullet--last": isLast,
|
7
|
-
});
|
8
|
-
return (React.createElement("div", { className: bulletStyle },
|
9
|
-
React.createElement("svg", { className: "gd-resize-bullet-icon" },
|
10
|
-
React.createElement("circle", { cx: "3", cy: "3", r: "3", className: classnames({
|
11
|
-
active: isCurrent,
|
12
|
-
initial: isInitial,
|
13
|
-
passive: !isCurrent && !isInitial,
|
14
|
-
}) }))));
|
15
|
-
};
|
16
|
-
//# sourceMappingURL=Bullet.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Bullet.js","sourceRoot":"","sources":["../../../../../../src/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar/Bullet.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AASpC,MAAM,CAAC,MAAM,MAAM,GAA0B,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;IACrF,MAAM,WAAW,GAAG,UAAU,CAAC,kBAAkB,EAAE,mBAAmB,KAAK,EAAE,EAAE;QAC3E,wBAAwB,EAAE,MAAM;KACnC,CAAC,CAAC;IACH,OAAO,CACH,6BAAK,SAAS,EAAE,WAAW;QACvB,6BAAK,SAAS,EAAC,uBAAuB;YAClC,gCACI,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,CAAC,EAAC,GAAG,EACL,SAAS,EAAE,UAAU,CAAC;oBAClB,MAAM,EAAE,SAAS;oBACjB,OAAO,EAAE,SAAS;oBAClB,OAAO,EAAE,CAAC,SAAS,IAAI,CAAC,SAAS;iBACpC,CAAC,GACJ,CACA,CACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"BulletsBar.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar/BulletsBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAuC9B,CAAC"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
// (C) 2019-2024 GoodData Corporation
|
2
|
-
import React from "react";
|
3
|
-
import { DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT } from "../../../../../_staging/dashboard/flexibleLayout/config.js";
|
4
|
-
import { useResizeWidthStatus } from "../../../../dragAndDrop/index.js";
|
5
|
-
import { Bullet } from "./Bullet.js";
|
6
|
-
export const BulletsBar = () => {
|
7
|
-
const widthResizingStatus = useResizeWidthStatus();
|
8
|
-
if (!widthResizingStatus.isResizingWidth) {
|
9
|
-
return null;
|
10
|
-
}
|
11
|
-
// CSS Grid: grid setup copies the main dashboard grid with 12 columns. Each column contains one bullet
|
12
|
-
// that marks the grid column start. The last bullet is rendered next to the grid in flex container and
|
13
|
-
// shifted via CSS to the left so, it is placed directly on the grid line. This could be done entirely
|
14
|
-
// in CSS, but we need to be able to style bullets based on state (current, initial).
|
15
|
-
return (React.createElement("div", { className: "gd-grid-layout__ruler" },
|
16
|
-
React.createElement("div", { className: "gd-grid-layout__container--root" }, [...Array(DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT)].map((_, index) => (React.createElement("div", { key: index, className: "gd-grid-layout__item--span-1" },
|
17
|
-
React.createElement(Bullet, { key: index, index: index, isInitial: widthResizingStatus.initialIndex === index, isCurrent: widthResizingStatus.currentIndex === index }),
|
18
|
-
index === DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT - 1 ? (React.createElement(Bullet, { index: DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT, isInitial: widthResizingStatus.initialIndex === DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT, isCurrent: widthResizingStatus.currentIndex === DASHBOARD_LAYOUT_GRID_COLUMNS_COUNT, isLast: true })) : null))))));
|
19
|
-
};
|
20
|
-
//# sourceMappingURL=BulletsBar.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"BulletsBar.js","sourceRoot":"","sources":["../../../../../../src/presentation/flexibleLayout/dragAndDrop/Resize/BulletsBar/BulletsBar.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mCAAmC,EAAE,MAAM,4DAA4D,CAAC;AACjH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,UAAU,GAAa,GAAG,EAAE;IACrC,MAAM,mBAAmB,GAAG,oBAAoB,EAAE,CAAC;IAEnD,IAAI,CAAC,mBAAmB,CAAC,eAAe,EAAE,CAAC;QACvC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,uGAAuG;IACvG,uGAAuG;IACvG,sGAAsG;IACtG,qFAAqF;IACrF,OAAO,CACH,6BAAK,SAAS,EAAC,uBAAuB;QAClC,6BAAK,SAAS,EAAC,iCAAiC,IAC3C,CAAC,GAAG,KAAK,CAAC,mCAAmC,CAAC,CAAC,CAAC,GAAG,CAAC,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