@imposium-hub/components 2.2.44-2 → 2.2.44-4

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 (33) hide show
  1. package/dist/cjs/components/assets/AssetsUploadMenu.js +129 -25
  2. package/dist/cjs/components/assets/AssetsUploadMenu.js.map +1 -1
  3. package/dist/cjs/components/color-field/ColorField.js +2 -2
  4. package/dist/cjs/components/color-field/ColorField.js.map +1 -1
  5. package/dist/cjs/constants/copy.d.ts +1 -0
  6. package/dist/cjs/constants/copy.js +2 -1
  7. package/dist/cjs/constants/copy.js.map +1 -1
  8. package/dist/cjs/redux/actions/asset-uploads.d.ts +5 -2
  9. package/dist/cjs/redux/actions/asset-uploads.js +258 -138
  10. package/dist/cjs/redux/actions/asset-uploads.js.map +1 -1
  11. package/dist/cjs/redux/reducers/asset-uploads.js +10 -0
  12. package/dist/cjs/redux/reducers/asset-uploads.js.map +1 -1
  13. package/dist/esm/components/assets/AssetsUploadMenu.js +124 -25
  14. package/dist/esm/components/assets/AssetsUploadMenu.js.map +1 -1
  15. package/dist/esm/components/color-field/ColorField.js +2 -2
  16. package/dist/esm/components/color-field/ColorField.js.map +1 -1
  17. package/dist/esm/constants/copy.d.ts +1 -0
  18. package/dist/esm/constants/copy.js +2 -1
  19. package/dist/esm/constants/copy.js.map +1 -1
  20. package/dist/esm/redux/actions/asset-uploads.d.ts +5 -2
  21. package/dist/esm/redux/actions/asset-uploads.js +221 -131
  22. package/dist/esm/redux/actions/asset-uploads.js.map +1 -1
  23. package/dist/esm/redux/reducers/asset-uploads.js +16 -0
  24. package/dist/esm/redux/reducers/asset-uploads.js.map +1 -1
  25. package/dist/styles.css +81 -2
  26. package/dist/styles.less +154 -62
  27. package/less/components/assets.less +154 -63
  28. package/package.json +4 -4
  29. package/src/components/assets/AssetsUploadMenu.tsx +247 -66
  30. package/src/components/color-field/ColorField.tsx +2 -2
  31. package/src/constants/copy.ts +2 -1
  32. package/src/redux/actions/asset-uploads.ts +299 -152
  33. package/src/redux/reducers/asset-uploads.ts +18 -0
package/dist/styles.less CHANGED
@@ -244,33 +244,32 @@ body{
244
244
  }
245
245
  }
246
246
  }
247
-
248
- .new-tag{
247
+ .new-tag {
249
248
  display: inline-block;
250
- width:150px;
251
- height:@inputHeight;
249
+ width: 150px;
250
+ height: @inputHeight;
252
251
  vertical-align: top;
253
252
  margin-top: 1px;
254
- margin-left:2px;
255
- input{
256
- width:100%;
257
- height:@inputHeight;
253
+ margin-left: 2px;
254
+ input {
255
+ width: 100%;
256
+ height: @inputHeight;
258
257
  display: inline-block;
259
- background:none;
260
- border:none;
261
- color:@textDefault;
262
- font-size:@fontSizeSmall;
263
- box-sizing:border-box;
258
+ background: none;
259
+ border: none;
260
+ color: @textDefault;
261
+ font-size: @fontSizeSmall;
262
+ box-sizing: border-box;
264
263
  vertical-align: top;
265
- border-radius:0px;
266
- appearance:none;
264
+ border-radius: 0px;
265
+ appearance: none;
267
266
 
268
- &:hover{
269
- background:rgba(0,0,0,0.2);
267
+ &:hover {
268
+ background: rgba(0, 0, 0, 0.2);
270
269
  }
271
270
 
272
- &:focus{
273
- background:rgba(0,0,0,0.2);
271
+ &:focus {
272
+ background: rgba(0, 0, 0, 0.2);
274
273
  }
275
274
  }
276
275
  }
@@ -288,9 +287,53 @@ body{
288
287
  display: none;
289
288
  }
290
289
 
290
+ .no-ongoing-uploads {
291
+ text-align: center;
292
+ margin: auto;
293
+ }
294
+
295
+ .uploads-dropzone {
296
+ &.show {
297
+ position: absolute;
298
+ top: 0;
299
+ height: 100%;
300
+ z-index: 200000;
301
+ }
302
+
303
+ &.table-hover {
304
+ .uploads-menu {
305
+ display: none;
306
+ }
307
+ }
308
+ &.asset-over {
309
+ .uploads-menu {
310
+ opacity: 0.3;
311
+ }
312
+ .overlay {
313
+ border-style: dashed;
314
+ border-color: hsl(225, 100%, 50%);
315
+ border-width: medium;
316
+ position: absolute;
317
+ top: 50%;
318
+ left: 50%;
319
+ transform: translate(-50%, -50%);
320
+ -ms-transform: translate(-50%, -50%);
321
+ text-align: center;
322
+ height: 98%;
323
+ width: 99%;
324
+ display: flex;
325
+ z-index: 1;
326
+ p {
327
+ vertical-align: middle;
328
+ margin: auto;
329
+ }
330
+ }
331
+ }
332
+ }
333
+
291
334
  .uploads-menu {
292
- width: 670px;
293
- height: 175px;
335
+ width: 703px;
336
+ height: 100%;
294
337
  overflow-y: auto;
295
338
  display: flex;
296
339
  flex-direction: column;
@@ -307,11 +350,12 @@ body{
307
350
 
308
351
  .uploads-list {
309
352
  width: 100%;
353
+ height: 100%;
310
354
  box-sizing: border-box;
311
355
  margin-top: 5px;
312
356
  padding: 5px;
313
357
  border-top: 1px solid #494949;
314
-
358
+ margin-bottom: 25px;
315
359
  .ongoing-upload {
316
360
  display: flex;
317
361
  flex-direction: column;
@@ -320,15 +364,30 @@ body{
320
364
  }
321
365
  }
322
366
 
323
- .form-field{
367
+ .uploads-confirm {
368
+ display: flex;
369
+ flex-direction: row;
370
+ position: absolute;
371
+ bottom: 0;
372
+ width: 100%;
373
+ border-top: 1px solid #494949;
374
+ background: #272727;
375
+ .checkbox-field {
376
+ top: 2px;
377
+ }
378
+ .imposium-btn {
379
+ padding-top: 3px;
380
+ }
381
+ }
324
382
 
325
- vertical-align:top;
326
- label{
327
- width:120px;
383
+ .form-field {
384
+ vertical-align: top;
385
+ label {
386
+ width: 120px;
328
387
  }
329
388
 
330
- .form-field-content{
331
- width:calc(100% - 120px);
389
+ .form-field-content {
390
+ width: calc(100% - 120px);
332
391
  }
333
392
  }
334
393
  }
@@ -337,9 +396,9 @@ body{
337
396
  padding: 7px;
338
397
  border-bottom: 1px solid #494949;
339
398
  background: @background;
340
- display:inline-block;
341
- &:hover{
342
- background:@backgroundLight;
399
+ display: inline-block;
400
+ &:hover {
401
+ background: @backgroundLight;
343
402
  }
344
403
  }
345
404
 
@@ -373,8 +432,8 @@ body{
373
432
  }
374
433
 
375
434
  .tags-column {
376
- position:relative;
377
- padding-right:50px;
435
+ position: relative;
436
+ padding-right: 50px;
378
437
  display: flex;
379
438
  align-items: center;
380
439
  flex-wrap: wrap;
@@ -386,34 +445,36 @@ body{
386
445
  .form-field {
387
446
  margin: 0 0.6rem 0 0;
388
447
 
389
- .form-field-buttons{
448
+ .form-field-buttons {
390
449
  height: 22px;
391
450
  }
392
- textarea{
451
+ textarea {
393
452
  height: unset;
394
453
  }
395
454
  }
396
455
  }
397
456
 
398
- .tags-column, .new-tag, .asset-details {
457
+ .tags-column,
458
+ .new-tag,
459
+ .asset-details {
399
460
  .rta {
400
461
  margin-left: 5px;
401
462
  .rta__textarea {
402
463
  height: 22px;
403
464
  }
404
- .rta__autocomplete{
465
+ .rta__autocomplete {
405
466
  position: absolute;
406
467
  top: 22px !important;
407
468
  z-index: 1;
408
469
  background: #161616;
409
470
  border: 1px solid #272727;
410
471
  overflow: auto;
411
- .rta__list{
472
+ .rta__list {
412
473
  list-style: none;
413
474
  height: 60px;
414
- .rta__item{
475
+ .rta__item {
415
476
  padding-bottom: 1px;
416
- .rta__entity--selected{
477
+ .rta__entity--selected {
417
478
  background-color: #353535;
418
479
  }
419
480
  .variable {
@@ -425,11 +486,12 @@ body{
425
486
  }
426
487
  }
427
488
 
428
- .tags-column, .asset-details {
489
+ .tags-column,
490
+ .asset-details {
429
491
  .rta .rta__autocomplete {
430
492
  left: 105px !important;
431
493
  }
432
- }
494
+ }
433
495
 
434
496
  .tags-column .rta .rta__autocomplete {
435
497
  width: 173px;
@@ -464,53 +526,82 @@ body{
464
526
  margin-top: -3px;
465
527
  }
466
528
 
467
- .asset-status-cell{
468
- width:100%;
469
- height:100%;
529
+ .asset-status-cell {
530
+ width: 100%;
531
+ height: 100%;
470
532
  display: flex;
471
533
  justify-content: center;
472
534
  align-items: center;
473
535
 
474
- .status-indicator{
475
- width:5px;
476
- height:100%;
477
- box-sizing:border-box;
536
+ .status-indicator {
537
+ width: 5px;
538
+ height: 100%;
539
+ box-sizing: border-box;
478
540
 
479
- &.processing{
480
- background:#c5b73d;
541
+ &.processing {
542
+ background: #c5b73d;
481
543
  }
482
544
 
483
- &.complete{
484
- background:#307f35;
545
+ &.complete {
546
+ background: #307f35;
485
547
  }
486
548
  }
487
549
  }
488
550
 
489
- .ongoing-upload-inner{
551
+ .ongoing-upload-inner {
490
552
  display: flex;
491
553
  flex-direction: row;
492
554
  justify-content: space-between;
493
- width: 100%
555
+ width: 100%;
556
+ .tags-column {
557
+ width: unset;
558
+ padding: unset;
559
+ bottom: 2px;
560
+ margin-right: auto;
561
+ }
562
+
563
+ .upload-filename {
564
+ display: inline-block;
565
+ background: #1d1d1d;
566
+ border: none;
567
+ color: #dfdfdf;
568
+ font-size: 12px;
569
+ box-sizing: border-box;
570
+ vertical-align: top;
571
+ height: 20px;
572
+ width: 200px;
573
+ font-family: 'Roboto Condensed', sans-serif;
574
+ border-radius: 0;
575
+ appearance: none;
576
+ padding: 4px;
577
+ margin-right: 5px;
578
+ }
579
+
580
+ .imposium-btn {
581
+ height: fit-content;
582
+ position: relative;
583
+ top: 2px;
584
+ }
494
585
  }
495
586
 
496
- .asset-preview-background{
497
- border:1px solid @backgroundDark;
587
+ .asset-preview-background {
588
+ border: 1px solid @backgroundDark;
498
589
  background-color: @background;
499
-
500
- &.transparent{
590
+
591
+ &.transparent {
501
592
  .chess;
502
593
  }
503
594
 
504
- &.hidden{
595
+ &.hidden {
505
596
  opacity: 0;
506
597
  }
507
598
  }
508
- .close-icon-preview{
599
+ .close-icon-preview {
509
600
  z-index: 9999 !important;
510
601
  justify-content: flex-end;
511
602
  display: flex;
512
603
  height: 30px !important;
513
- align-items: center
604
+ align-items: center;
514
605
  }
515
606
 
516
607
  .error-preview {
@@ -522,6 +613,7 @@ body{
522
613
  height: 30px !important;
523
614
  }
524
615
  }
616
+
525
617
  .auth-gate {
526
618
  .layer;
527
619
  display: flex;
@@ -1,30 +1,29 @@
1
-
2
- .new-tag{
1
+ .new-tag {
3
2
  display: inline-block;
4
- width:150px;
5
- height:@inputHeight;
3
+ width: 150px;
4
+ height: @inputHeight;
6
5
  vertical-align: top;
7
6
  margin-top: 1px;
8
- margin-left:2px;
9
- input{
10
- width:100%;
11
- height:@inputHeight;
7
+ margin-left: 2px;
8
+ input {
9
+ width: 100%;
10
+ height: @inputHeight;
12
11
  display: inline-block;
13
- background:none;
14
- border:none;
15
- color:@textDefault;
16
- font-size:@fontSizeSmall;
17
- box-sizing:border-box;
12
+ background: none;
13
+ border: none;
14
+ color: @textDefault;
15
+ font-size: @fontSizeSmall;
16
+ box-sizing: border-box;
18
17
  vertical-align: top;
19
- border-radius:0px;
20
- appearance:none;
18
+ border-radius: 0px;
19
+ appearance: none;
21
20
 
22
- &:hover{
23
- background:rgba(0,0,0,0.2);
21
+ &:hover {
22
+ background: rgba(0, 0, 0, 0.2);
24
23
  }
25
24
 
26
- &:focus{
27
- background:rgba(0,0,0,0.2);
25
+ &:focus {
26
+ background: rgba(0, 0, 0, 0.2);
28
27
  }
29
28
  }
30
29
  }
@@ -42,9 +41,53 @@
42
41
  display: none;
43
42
  }
44
43
 
44
+ .no-ongoing-uploads {
45
+ text-align: center;
46
+ margin: auto;
47
+ }
48
+
49
+ .uploads-dropzone {
50
+ &.show {
51
+ position: absolute;
52
+ top: 0;
53
+ height: 100%;
54
+ z-index: 200000;
55
+ }
56
+
57
+ &.table-hover {
58
+ .uploads-menu {
59
+ display: none;
60
+ }
61
+ }
62
+ &.asset-over {
63
+ .uploads-menu {
64
+ opacity: 0.3;
65
+ }
66
+ .overlay {
67
+ border-style: dashed;
68
+ border-color: hsl(225, 100%, 50%);
69
+ border-width: medium;
70
+ position: absolute;
71
+ top: 50%;
72
+ left: 50%;
73
+ transform: translate(-50%, -50%);
74
+ -ms-transform: translate(-50%, -50%);
75
+ text-align: center;
76
+ height: 98%;
77
+ width: 99%;
78
+ display: flex;
79
+ z-index: 1;
80
+ p {
81
+ vertical-align: middle;
82
+ margin: auto;
83
+ }
84
+ }
85
+ }
86
+ }
87
+
45
88
  .uploads-menu {
46
- width: 670px;
47
- height: 175px;
89
+ width: 703px;
90
+ height: 100%;
48
91
  overflow-y: auto;
49
92
  display: flex;
50
93
  flex-direction: column;
@@ -61,11 +104,12 @@
61
104
 
62
105
  .uploads-list {
63
106
  width: 100%;
107
+ height: 100%;
64
108
  box-sizing: border-box;
65
109
  margin-top: 5px;
66
110
  padding: 5px;
67
111
  border-top: 1px solid #494949;
68
-
112
+ margin-bottom: 25px;
69
113
  .ongoing-upload {
70
114
  display: flex;
71
115
  flex-direction: column;
@@ -74,15 +118,30 @@
74
118
  }
75
119
  }
76
120
 
77
- .form-field{
121
+ .uploads-confirm {
122
+ display: flex;
123
+ flex-direction: row;
124
+ position: absolute;
125
+ bottom: 0;
126
+ width: 100%;
127
+ border-top: 1px solid #494949;
128
+ background: #272727;
129
+ .checkbox-field {
130
+ top: 2px;
131
+ }
132
+ .imposium-btn {
133
+ padding-top: 3px;
134
+ }
135
+ }
78
136
 
79
- vertical-align:top;
80
- label{
81
- width:120px;
137
+ .form-field {
138
+ vertical-align: top;
139
+ label {
140
+ width: 120px;
82
141
  }
83
142
 
84
- .form-field-content{
85
- width:calc(100% - 120px);
143
+ .form-field-content {
144
+ width: calc(100% - 120px);
86
145
  }
87
146
  }
88
147
  }
@@ -91,9 +150,9 @@
91
150
  padding: 7px;
92
151
  border-bottom: 1px solid #494949;
93
152
  background: @background;
94
- display:inline-block;
95
- &:hover{
96
- background:@backgroundLight;
153
+ display: inline-block;
154
+ &:hover {
155
+ background: @backgroundLight;
97
156
  }
98
157
  }
99
158
 
@@ -127,8 +186,8 @@
127
186
  }
128
187
 
129
188
  .tags-column {
130
- position:relative;
131
- padding-right:50px;
189
+ position: relative;
190
+ padding-right: 50px;
132
191
  display: flex;
133
192
  align-items: center;
134
193
  flex-wrap: wrap;
@@ -140,34 +199,36 @@
140
199
  .form-field {
141
200
  margin: 0 0.6rem 0 0;
142
201
 
143
- .form-field-buttons{
202
+ .form-field-buttons {
144
203
  height: 22px;
145
204
  }
146
- textarea{
205
+ textarea {
147
206
  height: unset;
148
207
  }
149
208
  }
150
209
  }
151
210
 
152
- .tags-column, .new-tag, .asset-details {
211
+ .tags-column,
212
+ .new-tag,
213
+ .asset-details {
153
214
  .rta {
154
215
  margin-left: 5px;
155
216
  .rta__textarea {
156
217
  height: 22px;
157
218
  }
158
- .rta__autocomplete{
219
+ .rta__autocomplete {
159
220
  position: absolute;
160
221
  top: 22px !important;
161
222
  z-index: 1;
162
223
  background: #161616;
163
224
  border: 1px solid #272727;
164
225
  overflow: auto;
165
- .rta__list{
226
+ .rta__list {
166
227
  list-style: none;
167
228
  height: 60px;
168
- .rta__item{
229
+ .rta__item {
169
230
  padding-bottom: 1px;
170
- .rta__entity--selected{
231
+ .rta__entity--selected {
171
232
  background-color: #353535;
172
233
  }
173
234
  .variable {
@@ -179,11 +240,12 @@
179
240
  }
180
241
  }
181
242
 
182
- .tags-column, .asset-details {
243
+ .tags-column,
244
+ .asset-details {
183
245
  .rta .rta__autocomplete {
184
246
  left: 105px !important;
185
247
  }
186
- }
248
+ }
187
249
 
188
250
  .tags-column .rta .rta__autocomplete {
189
251
  width: 173px;
@@ -218,53 +280,82 @@
218
280
  margin-top: -3px;
219
281
  }
220
282
 
221
- .asset-status-cell{
222
- width:100%;
223
- height:100%;
283
+ .asset-status-cell {
284
+ width: 100%;
285
+ height: 100%;
224
286
  display: flex;
225
287
  justify-content: center;
226
288
  align-items: center;
227
289
 
228
- .status-indicator{
229
- width:5px;
230
- height:100%;
231
- box-sizing:border-box;
290
+ .status-indicator {
291
+ width: 5px;
292
+ height: 100%;
293
+ box-sizing: border-box;
232
294
 
233
- &.processing{
234
- background:#c5b73d;
295
+ &.processing {
296
+ background: #c5b73d;
235
297
  }
236
298
 
237
- &.complete{
238
- background:#307f35;
299
+ &.complete {
300
+ background: #307f35;
239
301
  }
240
302
  }
241
303
  }
242
304
 
243
- .ongoing-upload-inner{
305
+ .ongoing-upload-inner {
244
306
  display: flex;
245
307
  flex-direction: row;
246
308
  justify-content: space-between;
247
- width: 100%
309
+ width: 100%;
310
+ .tags-column {
311
+ width: unset;
312
+ padding: unset;
313
+ bottom: 2px;
314
+ margin-right: auto;
315
+ }
316
+
317
+ .upload-filename {
318
+ display: inline-block;
319
+ background: #1d1d1d;
320
+ border: none;
321
+ color: #dfdfdf;
322
+ font-size: 12px;
323
+ box-sizing: border-box;
324
+ vertical-align: top;
325
+ height: 20px;
326
+ width: 200px;
327
+ font-family: 'Roboto Condensed', sans-serif;
328
+ border-radius: 0;
329
+ appearance: none;
330
+ padding: 4px;
331
+ margin-right: 5px;
332
+ }
333
+
334
+ .imposium-btn {
335
+ height: fit-content;
336
+ position: relative;
337
+ top: 2px;
338
+ }
248
339
  }
249
340
 
250
- .asset-preview-background{
251
- border:1px solid @backgroundDark;
341
+ .asset-preview-background {
342
+ border: 1px solid @backgroundDark;
252
343
  background-color: @background;
253
-
254
- &.transparent{
344
+
345
+ &.transparent {
255
346
  .chess;
256
347
  }
257
348
 
258
- &.hidden{
349
+ &.hidden {
259
350
  opacity: 0;
260
351
  }
261
352
  }
262
- .close-icon-preview{
353
+ .close-icon-preview {
263
354
  z-index: 9999 !important;
264
355
  justify-content: flex-end;
265
356
  display: flex;
266
357
  height: 30px !important;
267
- align-items: center
358
+ align-items: center;
268
359
  }
269
360
 
270
361
  .error-preview {
@@ -275,4 +366,4 @@
275
366
  &.audio {
276
367
  height: 30px !important;
277
368
  }
278
- }
369
+ }