@scaleflex/widget-provider-views 4.0.7 → 4.3.0
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/CHANGELOG.md +8284 -8256
- package/LICENSE +21 -21
- package/README.md +44 -44
- package/dist/style.css +540 -424
- package/dist/style.min.css +1 -1
- package/lib/components/SearchProviderView/SearchProviderView.js +6 -6
- package/lib/index.js +46 -46
- package/lib/style/filerobot-ProviderBrowser-layoutType--grid.scss +233 -233
- package/lib/style/filerobot-ProviderBrowser-layoutType--list.scss +190 -190
- package/lib/style/filerobot-ProviderBrowserItem-details.scss +207 -207
- package/lib/style.scss +309 -309
- package/lib/utils/View.js +6 -6
- package/package.json +5 -5
- package/types/index.d.ts +28 -28
|
@@ -1,233 +1,233 @@
|
|
|
1
|
-
// ***
|
|
2
|
-
// View type: grid
|
|
3
|
-
// ***
|
|
4
|
-
.filerobot-ProviderBrowser-layoutType--grid {
|
|
5
|
-
ul.filerobot-ProviderBrowser-list {
|
|
6
|
-
&::after {
|
|
7
|
-
content: '';
|
|
8
|
-
flex: auto;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&:focus {
|
|
12
|
-
outline: none;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.filerobot-Provider-ItemCategory {
|
|
17
|
-
&-header {
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
font-weight: 400;
|
|
21
|
-
width: 100%;
|
|
22
|
-
max-width: 130px;
|
|
23
|
-
padding: 0 12px;
|
|
24
|
-
margin-top: 12px;
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
font-size: 12px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&-wrapper {
|
|
30
|
-
padding: 8px 24px 12px;
|
|
31
|
-
|
|
32
|
-
&-list {
|
|
33
|
-
list-style: none;
|
|
34
|
-
padding: 0;
|
|
35
|
-
width: 100%;
|
|
36
|
-
display: grid;
|
|
37
|
-
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
li.filerobot-ProviderBrowserItem {
|
|
43
|
-
min-width: 200px;
|
|
44
|
-
position: relative;
|
|
45
|
-
margin: 0;
|
|
46
|
-
|
|
47
|
-
&::before {
|
|
48
|
-
content: '';
|
|
49
|
-
padding-top: 88%;
|
|
50
|
-
display: block;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&--selected.item-folder,
|
|
54
|
-
&.item-folder:hover {
|
|
55
|
-
.filerobot-ProviderBrowserItem-folderSelectBox {
|
|
56
|
-
display: flex;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&:not(.filerobot-ProviderBrowserItem--beingRenamed):hover {
|
|
61
|
-
.filerobot-Explorer-dots-menu-icon {
|
|
62
|
-
display: block;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&:not(.item-folder) {
|
|
67
|
-
outline: none;
|
|
68
|
-
border: 4px solid transparent;
|
|
69
|
-
|
|
70
|
-
[data-filerobot-theme="dark"] & {
|
|
71
|
-
border: 4px solid $black;
|
|
72
|
-
background-color: $primary;
|
|
73
|
-
|
|
74
|
-
&:hover *,
|
|
75
|
-
&:focus * {
|
|
76
|
-
color: $black;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&.no-selection {
|
|
81
|
-
.filerobot-ProviderBrowserItem-inner {
|
|
82
|
-
cursor: auto;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&:not(.no-selection) {
|
|
87
|
-
.filerobot-ProviderBrowserItem-inner:hover {
|
|
88
|
-
background-color: $hover;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.filerobot-ProviderBrowserItem-videoDuration {
|
|
95
|
-
position: absolute;
|
|
96
|
-
bottom: 33%;
|
|
97
|
-
z-index: 2;
|
|
98
|
-
background: rgba(79, 98, 118, 0.7);
|
|
99
|
-
border-radius: 2px;
|
|
100
|
-
left: 16px;
|
|
101
|
-
padding: 2px 4px;
|
|
102
|
-
text-align: center;
|
|
103
|
-
font-weight: 500;
|
|
104
|
-
line-height: 12px;
|
|
105
|
-
font-size: 11px;
|
|
106
|
-
box-shadow: 0px 1px 2px 0px rgba(77, 78, 78, 0.15);
|
|
107
|
-
color: #fff !important;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
li.filerobot-ProviderBrowserItem--selected {
|
|
111
|
-
.filerobot-ProviderBrowserItem-inner {
|
|
112
|
-
background-color: $active !important;
|
|
113
|
-
|
|
114
|
-
* {
|
|
115
|
-
fill: $white;
|
|
116
|
-
color: $white;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// As with-meta is related to the explorer only so that the styles would be applied to the explorer cards only.
|
|
121
|
-
&.with-meta {
|
|
122
|
-
input {
|
|
123
|
-
text-align: center;
|
|
124
|
-
color: #000 !important;
|
|
125
|
-
margin-top: 4px;
|
|
126
|
-
margin-bottom: -1px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
button.filerobot-ProviderBrowserItem-inner {
|
|
130
|
-
&:focus {
|
|
131
|
-
box-shadow: none !important;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.filerobot-Explorer-Item-fileInfoAndButtons {
|
|
137
|
-
background-color: inherit;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
li.filerobot-ProviderBrowserItem--noPreview {
|
|
142
|
-
.filerobot-ProviderBrowserItem-inner {
|
|
143
|
-
background-color: rgba($gray-500, 0.2);
|
|
144
|
-
|
|
145
|
-
[data-filerobot-theme="dark"] & {
|
|
146
|
-
background-color: rgba($gray-200, 0.2);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
svg {
|
|
151
|
-
fill: rgba($black, 0.7);
|
|
152
|
-
width: 30%;
|
|
153
|
-
height: 30%;
|
|
154
|
-
|
|
155
|
-
[data-filerobot-theme="dark"] & {
|
|
156
|
-
fill: rgba($white, 0.8);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
// button with a large picture
|
|
162
|
-
button.filerobot-ProviderBrowserItem-inner {
|
|
163
|
-
overflow: hidden;
|
|
164
|
-
position: absolute;
|
|
165
|
-
text-align: center;
|
|
166
|
-
top: 0;
|
|
167
|
-
left: 0;
|
|
168
|
-
width: 100%;
|
|
169
|
-
height: 100%;
|
|
170
|
-
border-radius: 2px;
|
|
171
|
-
box-shadow: 0px 1px 2px 0px rgba(77, 78, 78, 0.15);
|
|
172
|
-
background-color: $hover;
|
|
173
|
-
|
|
174
|
-
&:focus {
|
|
175
|
-
outline: none;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&.with-meta {
|
|
179
|
-
display: flex;
|
|
180
|
-
flex-direction: column-reverse;
|
|
181
|
-
align-items: center;
|
|
182
|
-
justify-content: flex-end;
|
|
183
|
-
|
|
184
|
-
&:focus {
|
|
185
|
-
box-shadow: none;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
img {
|
|
189
|
-
object-fit: contain;
|
|
190
|
-
width: 100%;
|
|
191
|
-
height: 100%;
|
|
192
|
-
max-width: 100%;
|
|
193
|
-
max-height: 100%;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// Checkbox
|
|
199
|
-
.filerobot-ProviderBrowserItem-fakeCheckbox {
|
|
200
|
-
display: none;
|
|
201
|
-
position: absolute;
|
|
202
|
-
z-index: 3;
|
|
203
|
-
top: 8px;
|
|
204
|
-
left: 8px;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.filerobot-ProviderBrowserItem-folderSelectBox {
|
|
208
|
-
top: 26px;
|
|
209
|
-
left: 14px;
|
|
210
|
-
position: absolute;
|
|
211
|
-
display: none;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.filerobot-ProviderBrowserItem--selected {
|
|
216
|
-
.filerobot-ProviderBrowserItem-fakeCheckbox {
|
|
217
|
-
display: block;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.filerobot-ProviderBrowserItem-fakeCheckbox {
|
|
222
|
-
*:hover>& {
|
|
223
|
-
display: block;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
.filerobot-Dragging-folders,
|
|
229
|
-
.filerobot-Dragging-files {
|
|
230
|
-
&>* {
|
|
231
|
-
pointer-events: none;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
1
|
+
// ***
|
|
2
|
+
// View type: grid
|
|
3
|
+
// ***
|
|
4
|
+
.filerobot-ProviderBrowser-layoutType--grid {
|
|
5
|
+
ul.filerobot-ProviderBrowser-list {
|
|
6
|
+
&::after {
|
|
7
|
+
content: '';
|
|
8
|
+
flex: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&:focus {
|
|
12
|
+
outline: none;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.filerobot-Provider-ItemCategory {
|
|
17
|
+
&-header {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
width: 100%;
|
|
22
|
+
max-width: 130px;
|
|
23
|
+
padding: 0 12px;
|
|
24
|
+
margin-top: 12px;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
font-size: 12px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-wrapper {
|
|
30
|
+
padding: 8px 24px 12px;
|
|
31
|
+
|
|
32
|
+
&-list {
|
|
33
|
+
list-style: none;
|
|
34
|
+
padding: 0;
|
|
35
|
+
width: 100%;
|
|
36
|
+
display: grid;
|
|
37
|
+
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
li.filerobot-ProviderBrowserItem {
|
|
43
|
+
min-width: 200px;
|
|
44
|
+
position: relative;
|
|
45
|
+
margin: 0;
|
|
46
|
+
|
|
47
|
+
&::before {
|
|
48
|
+
content: '';
|
|
49
|
+
padding-top: 88%;
|
|
50
|
+
display: block;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&--selected.item-folder,
|
|
54
|
+
&.item-folder:hover {
|
|
55
|
+
.filerobot-ProviderBrowserItem-folderSelectBox {
|
|
56
|
+
display: flex;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:not(.filerobot-ProviderBrowserItem--beingRenamed):hover {
|
|
61
|
+
.filerobot-Explorer-dots-menu-icon {
|
|
62
|
+
display: block;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:not(.item-folder) {
|
|
67
|
+
outline: none;
|
|
68
|
+
border: 4px solid transparent;
|
|
69
|
+
|
|
70
|
+
[data-filerobot-theme="dark"] & {
|
|
71
|
+
border: 4px solid $black;
|
|
72
|
+
background-color: $primary;
|
|
73
|
+
|
|
74
|
+
&:hover *,
|
|
75
|
+
&:focus * {
|
|
76
|
+
color: $black;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.no-selection {
|
|
81
|
+
.filerobot-ProviderBrowserItem-inner {
|
|
82
|
+
cursor: auto;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:not(.no-selection) {
|
|
87
|
+
.filerobot-ProviderBrowserItem-inner:hover {
|
|
88
|
+
background-color: $hover;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.filerobot-ProviderBrowserItem-videoDuration {
|
|
95
|
+
position: absolute;
|
|
96
|
+
bottom: 33%;
|
|
97
|
+
z-index: 2;
|
|
98
|
+
background: rgba(79, 98, 118, 0.7);
|
|
99
|
+
border-radius: 2px;
|
|
100
|
+
left: 16px;
|
|
101
|
+
padding: 2px 4px;
|
|
102
|
+
text-align: center;
|
|
103
|
+
font-weight: 500;
|
|
104
|
+
line-height: 12px;
|
|
105
|
+
font-size: 11px;
|
|
106
|
+
box-shadow: 0px 1px 2px 0px rgba(77, 78, 78, 0.15);
|
|
107
|
+
color: #fff !important;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
li.filerobot-ProviderBrowserItem--selected {
|
|
111
|
+
.filerobot-ProviderBrowserItem-inner {
|
|
112
|
+
background-color: $active !important;
|
|
113
|
+
|
|
114
|
+
* {
|
|
115
|
+
fill: $white;
|
|
116
|
+
color: $white;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// As with-meta is related to the explorer only so that the styles would be applied to the explorer cards only.
|
|
121
|
+
&.with-meta {
|
|
122
|
+
input {
|
|
123
|
+
text-align: center;
|
|
124
|
+
color: #000 !important;
|
|
125
|
+
margin-top: 4px;
|
|
126
|
+
margin-bottom: -1px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
button.filerobot-ProviderBrowserItem-inner {
|
|
130
|
+
&:focus {
|
|
131
|
+
box-shadow: none !important;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.filerobot-Explorer-Item-fileInfoAndButtons {
|
|
137
|
+
background-color: inherit;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
li.filerobot-ProviderBrowserItem--noPreview {
|
|
142
|
+
.filerobot-ProviderBrowserItem-inner {
|
|
143
|
+
background-color: rgba($gray-500, 0.2);
|
|
144
|
+
|
|
145
|
+
[data-filerobot-theme="dark"] & {
|
|
146
|
+
background-color: rgba($gray-200, 0.2);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
svg {
|
|
151
|
+
fill: rgba($black, 0.7);
|
|
152
|
+
width: 30%;
|
|
153
|
+
height: 30%;
|
|
154
|
+
|
|
155
|
+
[data-filerobot-theme="dark"] & {
|
|
156
|
+
fill: rgba($white, 0.8);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// button with a large picture
|
|
162
|
+
button.filerobot-ProviderBrowserItem-inner {
|
|
163
|
+
overflow: hidden;
|
|
164
|
+
position: absolute;
|
|
165
|
+
text-align: center;
|
|
166
|
+
top: 0;
|
|
167
|
+
left: 0;
|
|
168
|
+
width: 100%;
|
|
169
|
+
height: 100%;
|
|
170
|
+
border-radius: 2px;
|
|
171
|
+
box-shadow: 0px 1px 2px 0px rgba(77, 78, 78, 0.15);
|
|
172
|
+
background-color: $hover;
|
|
173
|
+
|
|
174
|
+
&:focus {
|
|
175
|
+
outline: none;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&.with-meta {
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: column-reverse;
|
|
181
|
+
align-items: center;
|
|
182
|
+
justify-content: flex-end;
|
|
183
|
+
|
|
184
|
+
&:focus {
|
|
185
|
+
box-shadow: none;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
img {
|
|
189
|
+
object-fit: contain;
|
|
190
|
+
width: 100%;
|
|
191
|
+
height: 100%;
|
|
192
|
+
max-width: 100%;
|
|
193
|
+
max-height: 100%;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// Checkbox
|
|
199
|
+
.filerobot-ProviderBrowserItem-fakeCheckbox {
|
|
200
|
+
display: none;
|
|
201
|
+
position: absolute;
|
|
202
|
+
z-index: 3;
|
|
203
|
+
top: 8px;
|
|
204
|
+
left: 8px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.filerobot-ProviderBrowserItem-folderSelectBox {
|
|
208
|
+
top: 26px;
|
|
209
|
+
left: 14px;
|
|
210
|
+
position: absolute;
|
|
211
|
+
display: none;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.filerobot-ProviderBrowserItem--selected {
|
|
216
|
+
.filerobot-ProviderBrowserItem-fakeCheckbox {
|
|
217
|
+
display: block;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.filerobot-ProviderBrowserItem-fakeCheckbox {
|
|
222
|
+
*:hover>& {
|
|
223
|
+
display: block;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
.filerobot-Dragging-folders,
|
|
229
|
+
.filerobot-Dragging-files {
|
|
230
|
+
&>* {
|
|
231
|
+
pointer-events: none;
|
|
232
|
+
}
|
|
233
|
+
}
|