jodit 3.9.4 → 3.9.6
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/.idea/workspace.xml +84 -82
- package/CHANGELOG.MD +109 -5
- package/build/jodit.css +450 -427
- package/build/jodit.es2018.css +298 -283
- package/build/jodit.es2018.en.css +298 -283
- package/build/jodit.es2018.en.js +539 -336
- package/build/jodit.es2018.en.min.css +1 -1
- package/build/jodit.es2018.en.min.js +1 -1
- package/build/jodit.es2018.js +575 -372
- package/build/jodit.es2018.min.css +1 -1
- package/build/jodit.es2018.min.js +1 -1
- package/build/jodit.js +1142 -876
- package/build/jodit.min.css +2 -2
- package/build/jodit.min.js +1 -1
- package/package.json +1 -1
- package/src/config.ts +18 -19
- package/src/core/component/component.ts +16 -15
- package/src/core/storage/engines/local-storage-provider.ts +9 -3
- package/src/core/storage/engines/memory-storage-provider.ts +6 -3
- package/src/core/storage/storage.ts +7 -4
- package/src/core/ui/icon.ts +1 -0
- package/src/core/ui/index.ts +1 -3
- package/src/core/ui/list/group.less +8 -2
- package/src/{modules/file-browser/consts.ts → core/ui/list/index.ts} +4 -4
- package/src/core/ui/list/list.less +9 -1
- package/src/core/ui/list/list.ts +20 -3
- package/src/core/ui/{separator.ts → list/separator.ts} +2 -2
- package/src/core/ui/list/spacer.ts +15 -0
- package/src/core/view/view-with-toolbar.ts +2 -1
- package/src/modules/dialog/dialog.less +1 -15
- package/src/modules/dialog/dialog.ts +8 -1
- package/src/modules/file-browser/builders/context-menu.ts +29 -22
- package/src/modules/file-browser/config.ts +10 -2
- package/src/modules/file-browser/file-browser.ts +50 -29
- package/src/modules/file-browser/listeners/native-listeners.ts +37 -19
- package/src/modules/file-browser/listeners/state-listeners.ts +48 -22
- package/src/modules/file-browser/styles/file-browser.less +4 -291
- package/src/modules/file-browser/styles/preview.less +11 -8
- package/src/modules/file-browser/ui/files/files.less +174 -0
- package/src/modules/file-browser/ui/files/files.ts +14 -0
- package/{types/modules/file-browser/consts.d.ts → src/modules/file-browser/ui/index.ts} +3 -3
- package/src/modules/file-browser/ui/tree/tree.less +118 -0
- package/src/modules/file-browser/ui/tree/tree.ts +14 -0
- package/src/modules/toolbar/collection/collection.ts +17 -3
- package/src/modules/toolbar/collection/editor-collection.ts +22 -1
- package/src/plugins/clipboard/drag-and-drop.ts +4 -1
- package/src/plugins/inline-popup/config/config.ts +1 -0
- package/src/plugins/inline-popup/config/items/toolbar.ts +33 -0
- package/src/plugins/inline-popup/inline-popup.ts +17 -0
- package/src/plugins/size/resize-handler.ts +5 -2
- package/src/plugins/size/size.less +2 -17
- package/src/plugins/size/size.ts +6 -1
- package/src/plugins/sticky/sticky.ts +2 -0
- package/src/styles/icons/index.ts +2 -0
- package/src/{plugins/size/assests → styles/icons}/resize-handler.svg +0 -0
- package/src/styles/mixins.less +20 -0
- package/src/types/ajax.d.ts +0 -1
- package/src/types/file-browser.d.ts +13 -1
- package/src/types/jodit.d.ts +7 -1
- package/src/types/select.d.ts +2 -0
- package/src/types/storage.ts +3 -3
- package/src/types/style.d.ts +7 -1
- package/src/types/toolbar.d.ts +7 -1
- package/src/types/types.d.ts +1 -1
- package/src/types/view.d.ts +1 -1
- package/types/core/component/component.d.ts +4 -3
- package/types/core/storage/engines/local-storage-provider.d.ts +3 -3
- package/types/core/storage/engines/memory-storage-provider.d.ts +3 -3
- package/types/core/storage/storage.d.ts +3 -3
- package/types/core/ui/index.d.ts +1 -3
- package/types/core/ui/list/index.d.ts +9 -0
- package/types/core/ui/{separator.d.ts → list/separator.d.ts} +1 -1
- package/types/core/ui/list/spacer.d.ts +9 -0
- package/types/core/view/view-with-toolbar.d.ts +2 -1
- package/types/modules/file-browser/file-browser.d.ts +3 -2
- package/types/modules/file-browser/listeners/native-listeners.d.ts +5 -1
- package/types/modules/file-browser/ui/files/files.d.ts +10 -0
- package/types/modules/file-browser/ui/index.d.ts +7 -0
- package/types/modules/file-browser/ui/tree/tree.d.ts +10 -0
- package/types/modules/toolbar/collection/collection.d.ts +5 -2
- package/types/modules/toolbar/collection/editor-collection.d.ts +9 -1
- package/types/plugins/inline-popup/inline-popup.d.ts +4 -0
- package/types/styles/icons/index.d.ts +2 -1
- package/types/types/ajax.d.ts +0 -1
- package/types/types/file-browser.d.ts +13 -1
- package/types/types/jodit.d.ts +7 -1
- package/types/types/select.d.ts +2 -0
- package/types/types/storage.d.ts +3 -3
- package/types/types/storage.ts +3 -3
- package/types/types/style.d.ts +7 -1
- package/types/types/toolbar.d.ts +7 -1
- package/types/types/types.d.ts +1 -1
- package/types/types/view.d.ts +1 -1
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
height: 100%;
|
|
21
21
|
font-family: var(--font-default);
|
|
22
22
|
|
|
23
|
-
&
|
|
23
|
+
&_no-files_true {
|
|
24
24
|
padding: var(--padding-default);
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
width: 100%;
|
|
36
36
|
height: 100%;
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
div {
|
|
39
39
|
position: absolute;
|
|
40
40
|
top: 50%;
|
|
41
41
|
left: 50%;
|
|
@@ -62,302 +62,15 @@
|
|
|
62
62
|
visibility: hidden;
|
|
63
63
|
word-break: break-all;
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
&_success_true {
|
|
66
66
|
color: #c5c5c5;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
&_active_true {
|
|
70
70
|
opacity: 1;
|
|
71
71
|
visibility: visible;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
&__tree,
|
|
76
|
-
&__files {
|
|
77
|
-
position: relative;
|
|
78
|
-
display: none;
|
|
79
|
-
height: 100%;
|
|
80
|
-
vertical-align: top;
|
|
81
|
-
|
|
82
|
-
.jodit-button {
|
|
83
|
-
border-radius: 0;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&.jodit-filebrowser_active {
|
|
87
|
-
display: flex;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.scrollbarSlim();
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&__tree.jodit-filebrowser_active {
|
|
94
|
-
z-index: 2;
|
|
95
|
-
width: var(--first_column);
|
|
96
|
-
min-width: 200px;
|
|
97
|
-
max-width: 290px;
|
|
98
|
-
flex-direction: column;
|
|
99
|
-
|
|
100
|
-
@media (max-width: @screen-xs) {
|
|
101
|
-
width: auto;
|
|
102
|
-
max-width: 100%;
|
|
103
|
-
height: 100px;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
background-color: var(--color-background-filebrowser-folders);
|
|
107
|
-
overflow-y: auto;
|
|
108
|
-
|
|
109
|
-
&::-webkit-scrollbar {
|
|
110
|
-
width: calc(var(--padding-default) / 2);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&::-webkit-scrollbar-track {
|
|
114
|
-
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&::-webkit-scrollbar-thumb {
|
|
118
|
-
background-color: rgba(127, 127, 127, 0.5);
|
|
119
|
-
outline: 1px solid slategrey;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.jodit-filebrowser__source-title {
|
|
123
|
-
position: relative;
|
|
124
|
-
display: block;
|
|
125
|
-
padding: 2px 4px;
|
|
126
|
-
border-bottom: 1px solid #484848;
|
|
127
|
-
background: #5a5a5a;
|
|
128
|
-
color: #969696;
|
|
129
|
-
font-size: 12px;
|
|
130
|
-
user-select: none;
|
|
131
|
-
word-break: break-all;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
--text-color: #b1b1b1;
|
|
135
|
-
|
|
136
|
-
.jodit-filebrowser__tree-item {
|
|
137
|
-
position: relative;
|
|
138
|
-
display: flex;
|
|
139
|
-
min-height: 38px;
|
|
140
|
-
align-items: center;
|
|
141
|
-
justify-content: space-between;
|
|
142
|
-
padding: calc(var(--padding-default) / 2) var(--padding-default);
|
|
143
|
-
border-bottom: 1px solid #474747;
|
|
144
|
-
color: var(--text-color);
|
|
145
|
-
text-decoration: none;
|
|
146
|
-
transition: background-color 0.2s ease 0s;
|
|
147
|
-
word-break: break-all;
|
|
148
|
-
|
|
149
|
-
&-title {
|
|
150
|
-
flex: 1;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.jodit-icon_folder {
|
|
154
|
-
display: flex;
|
|
155
|
-
width: calc(var(--icon-size) + 4px);
|
|
156
|
-
height: calc(var(--icon-size) + 4px);
|
|
157
|
-
|
|
158
|
-
align-items: center;
|
|
159
|
-
justify-content: center;
|
|
160
|
-
|
|
161
|
-
margin-left: calc(var(--padding-default) / 2);
|
|
162
|
-
|
|
163
|
-
opacity: 0.3;
|
|
164
|
-
|
|
165
|
-
& svg {
|
|
166
|
-
width: var(--icon-size);
|
|
167
|
-
height: var(--icon-size);
|
|
168
|
-
fill: var(--text-color) !important;
|
|
169
|
-
stroke: var(--text-color) !important;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
&:hover {
|
|
173
|
-
background: #696969;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
&:hover {
|
|
178
|
-
background-color: var(--color-background-button-hover);
|
|
179
|
-
color: #222;
|
|
180
|
-
|
|
181
|
-
i.jodit-icon_folder {
|
|
182
|
-
opacity: 0.6;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
&__files.jodit-filebrowser_active {
|
|
189
|
-
width: 100%;
|
|
190
|
-
flex-wrap: wrap;
|
|
191
|
-
align-content: flex-start;
|
|
192
|
-
padding: calc(var(--padding-default) / 2);
|
|
193
|
-
overflow-y: auto;
|
|
194
|
-
|
|
195
|
-
.jodit-filebrowser__source-title {
|
|
196
|
-
position: relative;
|
|
197
|
-
display: block;
|
|
198
|
-
padding: var(--padding-default);
|
|
199
|
-
margin: calc(var(--padding-default) * -1);
|
|
200
|
-
margin-bottom: 0;
|
|
201
|
-
background: #5a5a5a;
|
|
202
|
-
color: #969696;
|
|
203
|
-
font-size: 16px;
|
|
204
|
-
user-select: none;
|
|
205
|
-
word-break: break-all;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
a + .jodit-filebrowser__source-title {
|
|
209
|
-
margin-top: var(--padding-default);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.jodit-filebrowser__files-item {
|
|
213
|
-
position: relative;
|
|
214
|
-
|
|
215
|
-
display: flex;
|
|
216
|
-
overflow: hidden;
|
|
217
|
-
width: var(--col_size);
|
|
218
|
-
height: var(--col_size);
|
|
219
|
-
|
|
220
|
-
align-items: center;
|
|
221
|
-
justify-content: center;
|
|
222
|
-
|
|
223
|
-
border: 1px solid var(--color-border);
|
|
224
|
-
margin: calc(var(--padding-default) / 2);
|
|
225
|
-
font-size: 0;
|
|
226
|
-
|
|
227
|
-
@media (max-width: @screen-xs) {
|
|
228
|
-
width: calc(50% - var(--padding-default));
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
text-align: center;
|
|
232
|
-
transition: border 0.1s linear, bottom 0.1s linear;
|
|
233
|
-
|
|
234
|
-
img {
|
|
235
|
-
max-width: 100%;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
&:hover {
|
|
239
|
-
border-color: #433b5c;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
&_active_true {
|
|
243
|
-
border-color: var(--color-border-selected);
|
|
244
|
-
background-color: var(--color-border-active);
|
|
245
|
-
|
|
246
|
-
.jodit-filebrowser__files-item-info {
|
|
247
|
-
background-color: var(--color-border-active);
|
|
248
|
-
color: white;
|
|
249
|
-
text-shadow: none;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
&-info {
|
|
254
|
-
position: absolute;
|
|
255
|
-
right: 0;
|
|
256
|
-
bottom: 0;
|
|
257
|
-
left: 0;
|
|
258
|
-
overflow: visible;
|
|
259
|
-
padding: 0.3em 0.6em;
|
|
260
|
-
background-color: var(--info-background);
|
|
261
|
-
color: rgb(51, 51, 51);
|
|
262
|
-
font-size: 14px;
|
|
263
|
-
line-height: 16px;
|
|
264
|
-
opacity: 0.85;
|
|
265
|
-
text-align: left;
|
|
266
|
-
text-shadow: rgb(238, 238, 238) 0 1px 0;
|
|
267
|
-
transition: opacity 400ms ease;
|
|
268
|
-
white-space: normal;
|
|
269
|
-
|
|
270
|
-
> span {
|
|
271
|
-
display: block;
|
|
272
|
-
overflow: hidden;
|
|
273
|
-
font-size: 0.75em;
|
|
274
|
-
text-overflow: ellipsis;
|
|
275
|
-
white-space: nowrap;
|
|
276
|
-
|
|
277
|
-
&.jodit-filebrowser__files-item-info-filename {
|
|
278
|
-
font-size: 0.9em;
|
|
279
|
-
font-weight: bold;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
&:hover:not(.jodit-filebrowser__files-item_active_true) {
|
|
285
|
-
.jodit-filebrowser__files-item-info {
|
|
286
|
-
bottom: -100px;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
&.jodit-filebrowser__files_view_list {
|
|
292
|
-
scroll-behavior: smooth;
|
|
293
|
-
|
|
294
|
-
a {
|
|
295
|
-
display: block;
|
|
296
|
-
width: 100%;
|
|
297
|
-
height: 26px;
|
|
298
|
-
border-width: 0 0 1px 0;
|
|
299
|
-
margin: 0;
|
|
300
|
-
line-height: 26px;
|
|
301
|
-
text-align: left;
|
|
302
|
-
white-space: nowrap;
|
|
303
|
-
|
|
304
|
-
img {
|
|
305
|
-
display: inline-block;
|
|
306
|
-
min-width: 16px;
|
|
307
|
-
max-width: 16px;
|
|
308
|
-
margin-left: 4px;
|
|
309
|
-
vertical-align: middle;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.jodit-filebrowser__files-item-info {
|
|
313
|
-
position: static;
|
|
314
|
-
display: inline-block;
|
|
315
|
-
width: ~'calc(100% - 20px)';
|
|
316
|
-
height: 100%;
|
|
317
|
-
padding: 0;
|
|
318
|
-
margin-left: 4px;
|
|
319
|
-
background-color: transparent;
|
|
320
|
-
font-size: 0;
|
|
321
|
-
line-height: inherit;
|
|
322
|
-
vertical-align: middle;
|
|
323
|
-
|
|
324
|
-
> span {
|
|
325
|
-
display: inline-block;
|
|
326
|
-
height: 100%;
|
|
327
|
-
font-size: 12px;
|
|
328
|
-
|
|
329
|
-
&.jodit-filebrowser__files-item-info-filename {
|
|
330
|
-
width: 50%;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
&.jodit-filebrowser__files-item-info-filesize {
|
|
334
|
-
width: 25%;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
&.jodit-filebrowser__files-item-info-filechanged {
|
|
338
|
-
width: 25%;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
&:hover {
|
|
344
|
-
background-color: #433b5c;
|
|
345
|
-
|
|
346
|
-
.jodit-filebrowser__files-item-info {
|
|
347
|
-
color: #fff;
|
|
348
|
-
text-shadow: none;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
&::before {
|
|
353
|
-
display: inline-block;
|
|
354
|
-
height: 100%;
|
|
355
|
-
content: '';
|
|
356
|
-
vertical-align: middle;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
74
|
}
|
|
362
75
|
|
|
363
76
|
.jodit_draghover {
|
|
@@ -6,18 +6,20 @@
|
|
|
6
6
|
|
|
7
7
|
@import (reference) '../../../styles/variables';
|
|
8
8
|
|
|
9
|
-
.jodit-
|
|
9
|
+
.jodit-filebrowser-preview {
|
|
10
10
|
position: relative;
|
|
11
11
|
display: flex;
|
|
12
12
|
|
|
13
|
-
min-width:
|
|
14
|
-
max-width: 1000px;
|
|
15
|
-
|
|
13
|
+
min-width: 400px;
|
|
14
|
+
max-width: min(100%, 1000px);
|
|
15
|
+
height: 100%;
|
|
16
|
+
min-height: min(100%, 500px);
|
|
16
17
|
max-height: 100%;
|
|
17
18
|
|
|
18
19
|
align-items: center;
|
|
19
20
|
justify-content: center;
|
|
20
21
|
|
|
22
|
+
margin: auto;
|
|
21
23
|
text-align: center;
|
|
22
24
|
|
|
23
25
|
@media (max-width: @screen-sm) {
|
|
@@ -28,20 +30,21 @@
|
|
|
28
30
|
max-height: 100%;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
&
|
|
33
|
+
&__box {
|
|
32
34
|
display: flex;
|
|
33
35
|
flex-grow: 1;
|
|
34
36
|
align-items: center;
|
|
35
37
|
justify-content: center;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
|
-
&
|
|
40
|
+
&__navigation {
|
|
39
41
|
position: absolute;
|
|
40
42
|
top: 0;
|
|
41
43
|
left: 0;
|
|
42
44
|
height: 100%;
|
|
45
|
+
cursor: pointer;
|
|
43
46
|
|
|
44
|
-
|
|
47
|
+
&_arrow_next {
|
|
45
48
|
right: 0;
|
|
46
49
|
left: auto;
|
|
47
50
|
}
|
|
@@ -51,8 +54,8 @@
|
|
|
51
54
|
top: 50%;
|
|
52
55
|
width: 45px;
|
|
53
56
|
height: 45px;
|
|
54
|
-
margin-top: -22px;
|
|
55
57
|
fill: #9e9ba7;
|
|
58
|
+
transform: translateY(-50%);
|
|
56
59
|
transition: fill 0.3s linear;
|
|
57
60
|
}
|
|
58
61
|
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
@import (reference) '../../../../styles/variables';
|
|
2
|
+
@import (reference) '../../../../styles/mixins';
|
|
3
|
+
|
|
4
|
+
.jodit-filebrowser-files {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: none;
|
|
7
|
+
height: 100%;
|
|
8
|
+
vertical-align: top;
|
|
9
|
+
|
|
10
|
+
.jodit-button {
|
|
11
|
+
border-radius: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&_active_true {
|
|
15
|
+
display: flex;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.scrollbarSlim();
|
|
19
|
+
|
|
20
|
+
&_active_true {
|
|
21
|
+
width: 100%;
|
|
22
|
+
flex-wrap: wrap;
|
|
23
|
+
align-content: flex-start;
|
|
24
|
+
padding: calc(var(--padding-default) / 2);
|
|
25
|
+
overflow-y: auto;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__item {
|
|
29
|
+
position: relative;
|
|
30
|
+
|
|
31
|
+
display: flex;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
width: var(--col_size);
|
|
34
|
+
height: var(--col_size);
|
|
35
|
+
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
|
|
39
|
+
border: 1px solid var(--color-border);
|
|
40
|
+
margin: calc(var(--padding-default) / 2);
|
|
41
|
+
font-size: 0;
|
|
42
|
+
|
|
43
|
+
@media (max-width: @screen-xs) {
|
|
44
|
+
width: calc(50% - var(--padding-default));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
text-align: center;
|
|
48
|
+
transition: border 0.1s linear, bottom 0.1s linear;
|
|
49
|
+
|
|
50
|
+
img {
|
|
51
|
+
max-width: 100%;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:hover {
|
|
55
|
+
border-color: #433b5c;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&_active_true {
|
|
59
|
+
border-color: var(--color-border-selected);
|
|
60
|
+
background-color: var(--color-border-active);
|
|
61
|
+
|
|
62
|
+
.jodit-filebrowser-files__item-info {
|
|
63
|
+
background-color: var(--color-border-active);
|
|
64
|
+
color: white;
|
|
65
|
+
text-shadow: none;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&-info {
|
|
70
|
+
position: absolute;
|
|
71
|
+
right: 0;
|
|
72
|
+
bottom: 0;
|
|
73
|
+
left: 0;
|
|
74
|
+
overflow: visible;
|
|
75
|
+
padding: 0.3em 0.6em;
|
|
76
|
+
background-color: var(--info-background);
|
|
77
|
+
color: rgb(51, 51, 51);
|
|
78
|
+
font-size: 14px;
|
|
79
|
+
line-height: 16px;
|
|
80
|
+
opacity: 0.85;
|
|
81
|
+
text-align: left;
|
|
82
|
+
text-shadow: rgb(238, 238, 238) 0 1px 0;
|
|
83
|
+
transition: opacity 400ms ease;
|
|
84
|
+
white-space: normal;
|
|
85
|
+
|
|
86
|
+
> span {
|
|
87
|
+
display: block;
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
font-size: 0.75em;
|
|
90
|
+
text-overflow: ellipsis;
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
|
|
93
|
+
&.jodit-filebrowser-files__item-info-filename {
|
|
94
|
+
font-size: 0.9em;
|
|
95
|
+
font-weight: bold;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:hover:not(&_active_true) &-info {
|
|
101
|
+
bottom: -100px;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&_view_list {
|
|
106
|
+
scroll-behavior: smooth;
|
|
107
|
+
|
|
108
|
+
a {
|
|
109
|
+
display: block;
|
|
110
|
+
width: 100%;
|
|
111
|
+
height: 26px;
|
|
112
|
+
border-width: 0 0 1px 0;
|
|
113
|
+
margin: 0;
|
|
114
|
+
line-height: 26px;
|
|
115
|
+
text-align: left;
|
|
116
|
+
white-space: nowrap;
|
|
117
|
+
|
|
118
|
+
img {
|
|
119
|
+
display: inline-block;
|
|
120
|
+
min-width: 16px;
|
|
121
|
+
max-width: 16px;
|
|
122
|
+
margin-left: 4px;
|
|
123
|
+
vertical-align: middle;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.jodit-filebrowser-files__item-info {
|
|
127
|
+
position: static;
|
|
128
|
+
display: inline-block;
|
|
129
|
+
width: ~'calc(100% - 20px)';
|
|
130
|
+
height: 100%;
|
|
131
|
+
padding: 0;
|
|
132
|
+
margin-left: 4px;
|
|
133
|
+
background-color: transparent;
|
|
134
|
+
font-size: 0;
|
|
135
|
+
line-height: inherit;
|
|
136
|
+
vertical-align: middle;
|
|
137
|
+
|
|
138
|
+
> span {
|
|
139
|
+
display: inline-block;
|
|
140
|
+
height: 100%;
|
|
141
|
+
font-size: 12px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&-filename {
|
|
145
|
+
width: 50%;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&-filesize {
|
|
149
|
+
width: 25%;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&-filechanged {
|
|
153
|
+
width: 25%;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&:hover {
|
|
158
|
+
background-color: #433b5c;
|
|
159
|
+
|
|
160
|
+
.jodit-filebrowser-files__item-info {
|
|
161
|
+
color: #fff;
|
|
162
|
+
text-shadow: none;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&::before {
|
|
167
|
+
display: inline-block;
|
|
168
|
+
height: 100%;
|
|
169
|
+
content: '';
|
|
170
|
+
vertical-align: middle;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import './files.less';
|
|
8
|
+
import { UIGroup } from '../../../../core/ui';
|
|
9
|
+
|
|
10
|
+
export class FileBrowserFiles extends UIGroup {
|
|
11
|
+
override className(): string {
|
|
12
|
+
return 'FilebrowserFiles';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export
|
|
6
|
+
|
|
7
|
+
export * from './files/files';
|
|
8
|
+
export * from './tree/tree';
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
@import (reference) '../../../../styles/variables';
|
|
2
|
+
@import (reference) '../../../../styles/mixins';
|
|
3
|
+
|
|
4
|
+
.jodit-filebrowser-tree {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: none;
|
|
7
|
+
height: 100%;
|
|
8
|
+
vertical-align: top;
|
|
9
|
+
|
|
10
|
+
.jodit-button {
|
|
11
|
+
border-radius: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&_active_true {
|
|
15
|
+
display: flex;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.scrollbarSlim();
|
|
19
|
+
|
|
20
|
+
&_active_true {
|
|
21
|
+
z-index: 2;
|
|
22
|
+
width: var(--first_column);
|
|
23
|
+
min-width: 200px;
|
|
24
|
+
max-width: 290px;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
|
|
27
|
+
@media (max-width: @screen-xs) {
|
|
28
|
+
width: auto;
|
|
29
|
+
max-width: 100%;
|
|
30
|
+
height: 100px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
background-color: var(--color-background-filebrowser-folders);
|
|
34
|
+
overflow-y: auto;
|
|
35
|
+
|
|
36
|
+
&::-webkit-scrollbar {
|
|
37
|
+
width: calc(var(--padding-default) / 2);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&::-webkit-scrollbar-track {
|
|
41
|
+
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&::-webkit-scrollbar-thumb {
|
|
45
|
+
background-color: rgba(127, 127, 127, 0.5);
|
|
46
|
+
outline: 1px solid slategrey;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
--text-color: #b1b1b1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&__item {
|
|
53
|
+
position: relative;
|
|
54
|
+
display: flex;
|
|
55
|
+
min-height: 38px;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
padding: calc(var(--padding-default) / 2) var(--padding-default);
|
|
59
|
+
border-bottom: 1px solid #474747;
|
|
60
|
+
color: var(--text-color);
|
|
61
|
+
text-decoration: none;
|
|
62
|
+
transition: background-color 0.2s ease 0s;
|
|
63
|
+
word-break: break-all;
|
|
64
|
+
|
|
65
|
+
&-title {
|
|
66
|
+
flex: 1;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.jodit-icon_folder {
|
|
70
|
+
display: flex;
|
|
71
|
+
width: calc(var(--icon-size) + 4px);
|
|
72
|
+
height: calc(var(--icon-size) + 4px);
|
|
73
|
+
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
|
|
77
|
+
margin-left: calc(var(--padding-default) / 2);
|
|
78
|
+
|
|
79
|
+
opacity: 0.3;
|
|
80
|
+
|
|
81
|
+
& svg {
|
|
82
|
+
width: var(--icon-size);
|
|
83
|
+
height: var(--icon-size);
|
|
84
|
+
fill: var(--text-color) !important;
|
|
85
|
+
stroke: var(--text-color) !important;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:hover {
|
|
89
|
+
background: #696969;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:hover {
|
|
94
|
+
background-color: var(--color-background-button-hover);
|
|
95
|
+
color: #222;
|
|
96
|
+
|
|
97
|
+
i.jodit-icon_folder {
|
|
98
|
+
opacity: 0.6;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&__source-title {
|
|
104
|
+
position: relative;
|
|
105
|
+
display: block;
|
|
106
|
+
padding: 2px 4px;
|
|
107
|
+
border-bottom: 1px solid #484848;
|
|
108
|
+
background: #5a5a5a;
|
|
109
|
+
color: #969696;
|
|
110
|
+
font-size: 12px;
|
|
111
|
+
user-select: none;
|
|
112
|
+
word-break: break-all;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
a + &__source-title {
|
|
116
|
+
margin-top: var(--padding-default);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import './tree.less';
|
|
8
|
+
import { UIGroup } from '../../../../core/ui';
|
|
9
|
+
|
|
10
|
+
export class FileBrowserTree extends UIGroup {
|
|
11
|
+
override className(): string {
|
|
12
|
+
return 'FilebrowserTree';
|
|
13
|
+
}
|
|
14
|
+
}
|