@emailmaker/filemanager 0.10.27 → 0.10.29
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 +110 -38
- 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/file-manager.js.LICENSE.txt +0 -2
- 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,29 @@
|
|
|
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
|
}
|
|
918
|
+
.uploadProgress__body .ant-list-item-meta-content {
|
|
919
|
+
width: 330px;
|
|
920
|
+
}
|
|
921
|
+
.uploadProgress__body .ant-list-item-meta-title {
|
|
922
|
+
margin: 0;
|
|
923
|
+
}
|
|
924
|
+
.uploadProgress__body .ant-list-item-action {
|
|
925
|
+
margin-inline-start: 40px;
|
|
926
|
+
}
|
|
881
927
|
|
|
882
|
-
.em-filemanager .
|
|
928
|
+
.em-filemanager .uploadProgress__status-icon {
|
|
883
929
|
display: flex;
|
|
884
930
|
align-items: center;
|
|
885
931
|
justify-content: center;
|
|
@@ -887,56 +933,69 @@
|
|
|
887
933
|
height: 20px;
|
|
888
934
|
}
|
|
889
935
|
|
|
890
|
-
.em-filemanager .
|
|
936
|
+
.em-filemanager .uploadProgress__status-icon-icon {
|
|
937
|
+
font-size: 20px;
|
|
938
|
+
color: #52c41a;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.em-filemanager .uploadProgress__file-list {
|
|
891
942
|
max-height: 300px;
|
|
892
|
-
overflow-y: auto;
|
|
893
943
|
}
|
|
894
944
|
|
|
895
|
-
.em-filemanager .
|
|
945
|
+
.em-filemanager .uploadProgress__file-item {
|
|
896
946
|
padding: 8px 0 !important;
|
|
897
947
|
border-bottom: 1px solid var(--colorBorderSecondary);
|
|
898
948
|
}
|
|
899
949
|
|
|
900
|
-
.
|
|
950
|
+
.uploadProgress__body--error .uploadProgress__file-item {
|
|
951
|
+
display: grid !important;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
.em-filemanager .uploadProgress__file-item:last-child {
|
|
901
955
|
border-bottom: none;
|
|
902
956
|
}
|
|
903
957
|
|
|
904
|
-
.em-filemanager .
|
|
958
|
+
.em-filemanager .uploadProgress__file-avatar {
|
|
905
959
|
background-color: transparent !important;
|
|
906
960
|
}
|
|
907
961
|
|
|
908
|
-
.em-filemanager .
|
|
962
|
+
.em-filemanager .uploadProgress__file-info {
|
|
909
963
|
display: flex;
|
|
910
964
|
flex-direction: column;
|
|
911
965
|
gap: 2px;
|
|
912
966
|
}
|
|
913
967
|
|
|
914
|
-
.em-filemanager .
|
|
968
|
+
.em-filemanager .uploadProgress__file-name {
|
|
915
969
|
font-size: 13px;
|
|
916
970
|
line-height: 1.2;
|
|
917
971
|
}
|
|
918
972
|
|
|
919
|
-
.em-filemanager .
|
|
973
|
+
.em-filemanager .uploadProgress__file-size {
|
|
974
|
+
font-size: 12px;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.em-filemanager .uploadProgress__progress-bar {
|
|
920
978
|
margin-top: 4px;
|
|
921
979
|
}
|
|
922
980
|
|
|
923
|
-
.em-filemanager .
|
|
981
|
+
.em-filemanager .uploadProgress__error-note {
|
|
924
982
|
margin-top: 8px;
|
|
925
983
|
padding: 8px;
|
|
926
984
|
background-color: #fff2f0;
|
|
927
985
|
border: 1px solid #ffccc7;
|
|
928
986
|
border-radius: 4px;
|
|
987
|
+
line-height: 1.2;
|
|
929
988
|
}
|
|
930
989
|
|
|
931
990
|
/* Минимизированное состояние */
|
|
932
|
-
.em-filemanager .
|
|
991
|
+
.em-filemanager .uploadProgress__minimized {
|
|
933
992
|
position: fixed;
|
|
934
993
|
top: 20px;
|
|
935
994
|
left: 20px;
|
|
936
995
|
z-index: 1000;
|
|
937
996
|
}
|
|
938
997
|
|
|
939
|
-
.em-filemanager .
|
|
998
|
+
.em-filemanager .uploadProgress__minimized-button {
|
|
940
999
|
font-size: 12px;
|
|
941
1000
|
height: 28px;
|
|
942
1001
|
padding: 0 12px;
|
|
@@ -944,30 +1003,30 @@
|
|
|
944
1003
|
}
|
|
945
1004
|
|
|
946
1005
|
/* Скроллбар для списка файлов */
|
|
947
|
-
.em-filemanager .
|
|
1006
|
+
.em-filemanager .uploadProgress__file-list::-webkit-scrollbar {
|
|
948
1007
|
width: 6px;
|
|
949
1008
|
}
|
|
950
1009
|
|
|
951
|
-
.em-filemanager .
|
|
1010
|
+
.em-filemanager .uploadProgress__file-list::-webkit-scrollbar-track {
|
|
952
1011
|
background: #f1f1f1;
|
|
953
1012
|
border-radius: 3px;
|
|
954
1013
|
}
|
|
955
1014
|
|
|
956
|
-
.em-filemanager .
|
|
1015
|
+
.em-filemanager .uploadProgress__file-list::-webkit-scrollbar-thumb {
|
|
957
1016
|
background: #c1c1c1;
|
|
958
1017
|
border-radius: 3px;
|
|
959
1018
|
}
|
|
960
1019
|
|
|
961
|
-
.em-filemanager .
|
|
1020
|
+
.em-filemanager .uploadProgress__file-list::-webkit-scrollbar-thumb:hover {
|
|
962
1021
|
background: #a8a8a8;
|
|
963
1022
|
}
|
|
964
1023
|
|
|
965
1024
|
/* Анимации */
|
|
966
|
-
.em-filemanager .
|
|
1025
|
+
.em-filemanager .uploadProgress {
|
|
967
1026
|
animation: slideInFromLeft 0.3s ease-out;
|
|
968
1027
|
}
|
|
969
1028
|
|
|
970
|
-
.em-filemanager .
|
|
1029
|
+
.em-filemanager .uploadProgress__minimized {
|
|
971
1030
|
animation: slideInFromLeft 0.3s ease-out;
|
|
972
1031
|
}
|
|
973
1032
|
|
|
@@ -983,22 +1042,18 @@
|
|
|
983
1042
|
}
|
|
984
1043
|
/* Адаптивность */
|
|
985
1044
|
@media (max-width: 768px) {
|
|
986
|
-
.em-filemanager .
|
|
1045
|
+
.em-filemanager .uploadProgress {
|
|
987
1046
|
top: 10px;
|
|
988
1047
|
left: 10px;
|
|
989
1048
|
right: 10px;
|
|
990
1049
|
max-width: calc(100vw - 20px);
|
|
991
1050
|
min-width: auto;
|
|
992
1051
|
}
|
|
993
|
-
.em-filemanager .
|
|
1052
|
+
.em-filemanager .uploadProgress__minimized {
|
|
994
1053
|
top: 10px;
|
|
995
1054
|
left: 10px;
|
|
996
1055
|
}
|
|
997
1056
|
}
|
|
998
|
-
.body {
|
|
999
|
-
font-size: 20px;
|
|
1000
|
-
color: #52c41a;
|
|
1001
|
-
}
|
|
1002
1057
|
.em-filemanager .gifTab {
|
|
1003
1058
|
height: 100%;
|
|
1004
1059
|
}
|
|
@@ -1433,6 +1488,7 @@
|
|
|
1433
1488
|
.em-filemanager .imageAi {
|
|
1434
1489
|
height: calc(100% - 142px);
|
|
1435
1490
|
padding: calc(var(--marginLG) * 1px);
|
|
1491
|
+
overflow: hidden;
|
|
1436
1492
|
}
|
|
1437
1493
|
.em-filemanager .imageAi .imageAiExample {
|
|
1438
1494
|
padding-bottom: calc(var(--marginLG) * 1px);
|
|
@@ -1588,7 +1644,7 @@
|
|
|
1588
1644
|
}
|
|
1589
1645
|
@charset "UTF-8";
|
|
1590
1646
|
/* FileManagerApp стили */
|
|
1591
|
-
.em-filemanager
|
|
1647
|
+
.em-filemanager.ant-app {
|
|
1592
1648
|
width: 100%;
|
|
1593
1649
|
height: 100%;
|
|
1594
1650
|
}
|
|
@@ -2071,7 +2127,7 @@
|
|
|
2071
2127
|
transform: scale(1.05);
|
|
2072
2128
|
}
|
|
2073
2129
|
|
|
2074
|
-
/* Global Tree styles for both sidebar and modals */
|
|
2130
|
+
/* Global Tree styles for both sidebar and modals (scoped to file manager) */
|
|
2075
2131
|
.em-filemanager .ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-node-content-wrapper:before,
|
|
2076
2132
|
.em-filemanager .ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-node-content-wrapper:hover:before {
|
|
2077
2133
|
background-color: transparent;
|
|
@@ -2204,6 +2260,22 @@
|
|
|
2204
2260
|
top: 4px;
|
|
2205
2261
|
}
|
|
2206
2262
|
|
|
2263
|
+
.em-filemanager .fm-upload-progress .ant-list .ant-list-item .ant-list-item-meta .ant-list-item-meta-content {
|
|
2264
|
+
width: 330px;
|
|
2265
|
+
}
|
|
2266
|
+
.em-filemanager .fm-upload-progress .ant-list .ant-list-item .ant-list-item-meta .ant-list-item-meta-title {
|
|
2267
|
+
margin: 0;
|
|
2268
|
+
}
|
|
2269
|
+
.em-filemanager .fm-upload-progress .ant-list .ant-list-item .ant-list-item-meta .ant-list-item-action {
|
|
2270
|
+
margin-inline-start: 40px;
|
|
2271
|
+
}
|
|
2272
|
+
.em-filemanager .fm-upload-progress .ant-list .ant-list-item .ant-list-item-meta .ant-list-item-meta-avatar {
|
|
2273
|
+
margin-inline-end: 8px;
|
|
2274
|
+
}
|
|
2275
|
+
.em-filemanager .fm-upload-progress .ant-list .ant-list-item .ant-list-item-action {
|
|
2276
|
+
margin-inline-start: 32px;
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2207
2279
|
/* Specific styles for sidebar tree */
|
|
2208
2280
|
.em-filemanager .file-manager-modal-root .ant-modal-content .ant-tree .ant-tree-switcher,
|
|
2209
2281
|
.em-filemanager .file-manager__layout .file-manager-sider .ant-tree .ant-tree-switcher {
|
|
@@ -2221,7 +2293,7 @@
|
|
|
2221
2293
|
white-space: nowrap;
|
|
2222
2294
|
}
|
|
2223
2295
|
|
|
2224
|
-
/* Specific styles for modal tree */
|
|
2296
|
+
/* Specific styles for modal tree (scoped to file manager root) */
|
|
2225
2297
|
.em-filemanager .ant-modal-root {
|
|
2226
2298
|
position: relative;
|
|
2227
2299
|
}
|
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 {
|