@emailmaker/filemanager 0.10.27 → 0.10.28
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/file-manager.css +84 -37
- package/file-manager.d.ts +0 -1
- package/file-manager.esm.js +9 -9
- package/file-manager.esm.js.map +1 -1
- package/file-manager.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +0 -1
package/file-manager.css
CHANGED
|
@@ -55,6 +55,11 @@
|
|
|
55
55
|
flex-direction: column;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
.em-filemanager .filesContainer:has(.noFiles) {
|
|
59
|
+
justify-content: center;
|
|
60
|
+
align-items: center;
|
|
61
|
+
}
|
|
62
|
+
|
|
58
63
|
.em-filemanager .searchContainer {
|
|
59
64
|
display: flex;
|
|
60
65
|
gap: 16px;
|
|
@@ -446,6 +451,38 @@
|
|
|
446
451
|
text-align: center;
|
|
447
452
|
pointer-events: none;
|
|
448
453
|
}
|
|
454
|
+
|
|
455
|
+
.em-filemanager .noFiles {
|
|
456
|
+
width: 640px;
|
|
457
|
+
text-align: center;
|
|
458
|
+
padding: calc(var(--marginLG) * 1px);
|
|
459
|
+
padding-top: 57px !important;
|
|
460
|
+
padding-bottom: 57px !important;
|
|
461
|
+
line-height: 1.3;
|
|
462
|
+
border: 1px solid var(--colorBorderSecondary);
|
|
463
|
+
border-radius: calc(var(--borderRadius) * 2px);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.em-filemanager .noFilesIcon {
|
|
467
|
+
color: var(--colorPrimary);
|
|
468
|
+
margin-bottom: calc(var(--margin) * 1px);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.em-filemanager .textTitle_trash {
|
|
472
|
+
margin-top: 2px;
|
|
473
|
+
font-size: 16px;
|
|
474
|
+
font-style: normal;
|
|
475
|
+
font-weight: 600;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.em-filemanager .textDescription_trash {
|
|
479
|
+
margin-top: 10px;
|
|
480
|
+
font-size: 14px;
|
|
481
|
+
font-style: normal;
|
|
482
|
+
font-weight: 400;
|
|
483
|
+
line-height: normal;
|
|
484
|
+
color: #8C8C8C;
|
|
485
|
+
}
|
|
449
486
|
@charset "UTF-8";
|
|
450
487
|
.em-filemanager .folderTree .emptyFolderContainer {
|
|
451
488
|
text-align: center;
|
|
@@ -820,16 +857,16 @@
|
|
|
820
857
|
min-width: 0; /* Позволяет flex-элементам сжиматься */
|
|
821
858
|
}
|
|
822
859
|
@charset "UTF-8";
|
|
823
|
-
.em-filemanager .
|
|
860
|
+
.em-filemanager .uploadProgress {
|
|
824
861
|
position: fixed;
|
|
825
|
-
|
|
826
|
-
|
|
862
|
+
bottom: 20px;
|
|
863
|
+
right: 20px;
|
|
827
864
|
z-index: 1000;
|
|
828
865
|
max-width: 400px;
|
|
829
866
|
min-width: 320px;
|
|
830
867
|
}
|
|
831
868
|
|
|
832
|
-
.em-filemanager .
|
|
869
|
+
.em-filemanager .uploadProgress__card {
|
|
833
870
|
background: #fff;
|
|
834
871
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
835
872
|
border-radius: 8px;
|
|
@@ -837,7 +874,7 @@
|
|
|
837
874
|
overflow: hidden;
|
|
838
875
|
}
|
|
839
876
|
|
|
840
|
-
.em-filemanager .
|
|
877
|
+
.em-filemanager .uploadProgress__header {
|
|
841
878
|
display: flex;
|
|
842
879
|
justify-content: space-between;
|
|
843
880
|
align-items: center;
|
|
@@ -846,17 +883,17 @@
|
|
|
846
883
|
border-bottom: 1px solid #f0f0f0;
|
|
847
884
|
}
|
|
848
885
|
|
|
849
|
-
.em-filemanager .
|
|
886
|
+
.em-filemanager .uploadProgress__header-title {
|
|
850
887
|
font-size: 14px;
|
|
851
888
|
color: rgba(0, 0, 0, 0.85);
|
|
852
889
|
}
|
|
853
890
|
|
|
854
|
-
.em-filemanager .
|
|
891
|
+
.em-filemanager .uploadProgress__header-buttons {
|
|
855
892
|
display: flex;
|
|
856
893
|
gap: 4px;
|
|
857
894
|
}
|
|
858
895
|
|
|
859
|
-
.em-filemanager .
|
|
896
|
+
.em-filemanager .uploadProgress__header-button {
|
|
860
897
|
padding: 0;
|
|
861
898
|
width: 24px;
|
|
862
899
|
height: 24px;
|
|
@@ -866,20 +903,20 @@
|
|
|
866
903
|
color: rgba(0, 0, 0, 0.45);
|
|
867
904
|
}
|
|
868
905
|
|
|
869
|
-
.em-filemanager .
|
|
906
|
+
.em-filemanager .uploadProgress__header-button:hover {
|
|
870
907
|
background-color: rgba(0, 0, 0, 0.04);
|
|
871
908
|
color: rgba(0, 0, 0, 0.65);
|
|
872
909
|
}
|
|
873
910
|
|
|
874
|
-
.em-filemanager .
|
|
911
|
+
.em-filemanager .uploadProgress__close-icon {
|
|
875
912
|
color: rgba(0, 0, 0, 0.45) !important;
|
|
876
913
|
}
|
|
877
914
|
|
|
878
|
-
.
|
|
915
|
+
.uploadProgress__body {
|
|
879
916
|
padding: 12px;
|
|
880
917
|
}
|
|
881
918
|
|
|
882
|
-
.em-filemanager .
|
|
919
|
+
.em-filemanager .uploadProgress__status-icon {
|
|
883
920
|
display: flex;
|
|
884
921
|
align-items: center;
|
|
885
922
|
justify-content: center;
|
|
@@ -887,40 +924,53 @@
|
|
|
887
924
|
height: 20px;
|
|
888
925
|
}
|
|
889
926
|
|
|
890
|
-
.em-filemanager .
|
|
927
|
+
.em-filemanager .uploadProgress__status-icon-icon {
|
|
928
|
+
font-size: 20px;
|
|
929
|
+
color: #52c41a;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.em-filemanager .uploadProgress__file-list {
|
|
891
933
|
max-height: 300px;
|
|
892
934
|
overflow-y: auto;
|
|
893
935
|
}
|
|
894
936
|
|
|
895
|
-
.em-filemanager .
|
|
937
|
+
.em-filemanager .uploadProgress__file-item {
|
|
896
938
|
padding: 8px 0 !important;
|
|
897
939
|
border-bottom: 1px solid var(--colorBorderSecondary);
|
|
898
940
|
}
|
|
899
941
|
|
|
900
|
-
.
|
|
942
|
+
.uploadProgress__body--error .uploadProgress__file-item {
|
|
943
|
+
display: grid !important;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
.em-filemanager .uploadProgress__file-item:last-child {
|
|
901
947
|
border-bottom: none;
|
|
902
948
|
}
|
|
903
949
|
|
|
904
|
-
.em-filemanager .
|
|
950
|
+
.em-filemanager .uploadProgress__file-avatar {
|
|
905
951
|
background-color: transparent !important;
|
|
906
952
|
}
|
|
907
953
|
|
|
908
|
-
.em-filemanager .
|
|
954
|
+
.em-filemanager .uploadProgress__file-info {
|
|
909
955
|
display: flex;
|
|
910
956
|
flex-direction: column;
|
|
911
957
|
gap: 2px;
|
|
912
958
|
}
|
|
913
959
|
|
|
914
|
-
.em-filemanager .
|
|
960
|
+
.em-filemanager .uploadProgress__file-name {
|
|
915
961
|
font-size: 13px;
|
|
916
962
|
line-height: 1.2;
|
|
917
963
|
}
|
|
918
964
|
|
|
919
|
-
.em-filemanager .
|
|
965
|
+
.em-filemanager .uploadProgress__file-size {
|
|
966
|
+
font-size: 12px;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
.em-filemanager .uploadProgress__progress-bar {
|
|
920
970
|
margin-top: 4px;
|
|
921
971
|
}
|
|
922
972
|
|
|
923
|
-
.em-filemanager .
|
|
973
|
+
.em-filemanager .uploadProgress__error-note {
|
|
924
974
|
margin-top: 8px;
|
|
925
975
|
padding: 8px;
|
|
926
976
|
background-color: #fff2f0;
|
|
@@ -929,14 +979,14 @@
|
|
|
929
979
|
}
|
|
930
980
|
|
|
931
981
|
/* Минимизированное состояние */
|
|
932
|
-
.em-filemanager .
|
|
982
|
+
.em-filemanager .uploadProgress__minimized {
|
|
933
983
|
position: fixed;
|
|
934
984
|
top: 20px;
|
|
935
985
|
left: 20px;
|
|
936
986
|
z-index: 1000;
|
|
937
987
|
}
|
|
938
988
|
|
|
939
|
-
.em-filemanager .
|
|
989
|
+
.em-filemanager .uploadProgress__minimized-button {
|
|
940
990
|
font-size: 12px;
|
|
941
991
|
height: 28px;
|
|
942
992
|
padding: 0 12px;
|
|
@@ -944,30 +994,30 @@
|
|
|
944
994
|
}
|
|
945
995
|
|
|
946
996
|
/* Скроллбар для списка файлов */
|
|
947
|
-
.em-filemanager .
|
|
997
|
+
.em-filemanager .uploadProgress__file-list::-webkit-scrollbar {
|
|
948
998
|
width: 6px;
|
|
949
999
|
}
|
|
950
1000
|
|
|
951
|
-
.em-filemanager .
|
|
1001
|
+
.em-filemanager .uploadProgress__file-list::-webkit-scrollbar-track {
|
|
952
1002
|
background: #f1f1f1;
|
|
953
1003
|
border-radius: 3px;
|
|
954
1004
|
}
|
|
955
1005
|
|
|
956
|
-
.em-filemanager .
|
|
1006
|
+
.em-filemanager .uploadProgress__file-list::-webkit-scrollbar-thumb {
|
|
957
1007
|
background: #c1c1c1;
|
|
958
1008
|
border-radius: 3px;
|
|
959
1009
|
}
|
|
960
1010
|
|
|
961
|
-
.em-filemanager .
|
|
1011
|
+
.em-filemanager .uploadProgress__file-list::-webkit-scrollbar-thumb:hover {
|
|
962
1012
|
background: #a8a8a8;
|
|
963
1013
|
}
|
|
964
1014
|
|
|
965
1015
|
/* Анимации */
|
|
966
|
-
.em-filemanager .
|
|
1016
|
+
.em-filemanager .uploadProgress {
|
|
967
1017
|
animation: slideInFromLeft 0.3s ease-out;
|
|
968
1018
|
}
|
|
969
1019
|
|
|
970
|
-
.em-filemanager .
|
|
1020
|
+
.em-filemanager .uploadProgress__minimized {
|
|
971
1021
|
animation: slideInFromLeft 0.3s ease-out;
|
|
972
1022
|
}
|
|
973
1023
|
|
|
@@ -983,22 +1033,18 @@
|
|
|
983
1033
|
}
|
|
984
1034
|
/* Адаптивность */
|
|
985
1035
|
@media (max-width: 768px) {
|
|
986
|
-
.em-filemanager .
|
|
1036
|
+
.em-filemanager .uploadProgress {
|
|
987
1037
|
top: 10px;
|
|
988
1038
|
left: 10px;
|
|
989
1039
|
right: 10px;
|
|
990
1040
|
max-width: calc(100vw - 20px);
|
|
991
1041
|
min-width: auto;
|
|
992
1042
|
}
|
|
993
|
-
.em-filemanager .
|
|
1043
|
+
.em-filemanager .uploadProgress__minimized {
|
|
994
1044
|
top: 10px;
|
|
995
1045
|
left: 10px;
|
|
996
1046
|
}
|
|
997
1047
|
}
|
|
998
|
-
.body {
|
|
999
|
-
font-size: 20px;
|
|
1000
|
-
color: #52c41a;
|
|
1001
|
-
}
|
|
1002
1048
|
.em-filemanager .gifTab {
|
|
1003
1049
|
height: 100%;
|
|
1004
1050
|
}
|
|
@@ -1433,6 +1479,7 @@
|
|
|
1433
1479
|
.em-filemanager .imageAi {
|
|
1434
1480
|
height: calc(100% - 142px);
|
|
1435
1481
|
padding: calc(var(--marginLG) * 1px);
|
|
1482
|
+
overflow: hidden;
|
|
1436
1483
|
}
|
|
1437
1484
|
.em-filemanager .imageAi .imageAiExample {
|
|
1438
1485
|
padding-bottom: calc(var(--marginLG) * 1px);
|
|
@@ -1588,7 +1635,7 @@
|
|
|
1588
1635
|
}
|
|
1589
1636
|
@charset "UTF-8";
|
|
1590
1637
|
/* FileManagerApp стили */
|
|
1591
|
-
.em-filemanager
|
|
1638
|
+
.em-filemanager.ant-app {
|
|
1592
1639
|
width: 100%;
|
|
1593
1640
|
height: 100%;
|
|
1594
1641
|
}
|
|
@@ -2071,7 +2118,7 @@
|
|
|
2071
2118
|
transform: scale(1.05);
|
|
2072
2119
|
}
|
|
2073
2120
|
|
|
2074
|
-
/* Global Tree styles for both sidebar and modals */
|
|
2121
|
+
/* Global Tree styles for both sidebar and modals (scoped to file manager) */
|
|
2075
2122
|
.em-filemanager .ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-node-content-wrapper:before,
|
|
2076
2123
|
.em-filemanager .ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-node-content-wrapper:hover:before {
|
|
2077
2124
|
background-color: transparent;
|
|
@@ -2221,7 +2268,7 @@
|
|
|
2221
2268
|
white-space: nowrap;
|
|
2222
2269
|
}
|
|
2223
2270
|
|
|
2224
|
-
/* Specific styles for modal tree */
|
|
2271
|
+
/* Specific styles for modal tree (scoped to file manager root) */
|
|
2225
2272
|
.em-filemanager .ant-modal-root {
|
|
2226
2273
|
position: relative;
|
|
2227
2274
|
}
|
package/file-manager.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Config, CustomIcons, File, FileManagerDataProviders, NotifyListener, Notify, NotifyEvent, ThumbnailFile } from './types';
|
|
3
|
-
import 'antd/dist/reset.css';
|
|
4
3
|
import './styles/index.scss';
|
|
5
4
|
export declare const FileManagerAppWithContext: (props: FileManagerAppProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export interface Options {
|