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