@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/lib/style.scss CHANGED
@@ -1,309 +1,309 @@
1
- @import '@scaleflex/widget-core/lib/_utils';
2
- @import '@scaleflex/widget-core/lib/_variables';
3
-
4
- @import './style/filerobot-ProviderBrowser-layoutType--grid';
5
- @import './style/filerobot-ProviderBrowser-layoutType--list';
6
- @import './style/filerobot-ProviderBrowserItem-details';
7
-
8
-
9
- .filerobot-ProviderBrowser {
10
- display: flex;
11
- flex-direction: column;
12
- flex: 1;
13
- font-size: 14px;
14
- font-weight: 400;
15
- height: 100%;
16
- position: relative;
17
- background-color: $white;
18
- }
19
-
20
- .filerobot-ProviderBrowser-user {
21
- margin: 0 8px 0 0;
22
- font-weight: 500;
23
- color: $gray-800;
24
-
25
- [data-filerobot-theme="dark"] & {
26
- color: $gray-200;
27
- }
28
- }
29
-
30
- .filerobot-ProviderBrowser-select {
31
- cursor: pointer;
32
- line-height: 1.5;
33
- color: #000;
34
-
35
- &.--filter {
36
- max-width: 120px;
37
- white-space: nowrap;
38
- text-overflow: ellipsis;
39
- overflow: hidden;
40
- padding-right: 2px;
41
- }
42
-
43
- &:focus {
44
- outline: none;
45
- border-color: transparent;
46
- }
47
- }
48
-
49
- .filerobot-ProviderBrowser-user:after {
50
- content: '\00B7';
51
- position: relative;
52
- left: 4px;
53
- color: $gray-500;
54
- font-weight: normal;
55
- }
56
-
57
- .filerobot-ProviderBrowser-headerBar--simple {
58
- text-align: center;
59
- display: block;
60
- justify-content: center;
61
- }
62
-
63
- .filerobot-ProviderBrowser-headerBar {
64
- display: flex;
65
- align-items: center;
66
- padding: 12px;
67
- color: $gray-600;
68
- line-height: 1.4;
69
- font-size: 12px;
70
- position: relative;
71
- width: 100%;
72
- // height: 40px;
73
-
74
- .filerobot-size--md & {
75
- display: flex;
76
- align-items: center;
77
- justify-content: space-between;
78
- }
79
-
80
- .filerobot-size--height-md & {
81
- display: flex;
82
- align-items: center;
83
- }
84
-
85
- [data-filerobot-theme="dark"] & {
86
- border-bottom: 1px solid $gray-800;
87
- background-color: $gray-900;
88
- }
89
- }
90
-
91
- .filerobot-ProviderBrowser-headerBar--simple {
92
- text-align: center;
93
- display: block;
94
- justify-content: center;
95
- }
96
-
97
- .filerobot-ProviderBrowser-body {
98
- flex: 1;
99
- z-index: 1000;
100
- position: relative;
101
- display: flex;
102
- height: 100%;
103
- }
104
-
105
- .filerobot-ProviderBrowser-body-list {
106
- width: 100%;
107
- overflow-x: auto;
108
- }
109
-
110
- .item-folder.filerobot-ProviderBrowserItem {
111
- padding: 4px;
112
- border-radius: 7px;
113
- outline: none;
114
-
115
- &::before {
116
- content: unset !important;
117
- display: none !important;
118
- padding-top: 0 !important;
119
- }
120
-
121
- .filerobot-ProviderBrowserItem-inner-folder {
122
- display: flex;
123
- align-items: center;
124
- padding: 10px 12px;
125
- border: 1px solid $border;
126
- border-radius: 2px;
127
- box-sizing: border-box;
128
- width: 100%;
129
- height: 36px;
130
- outline: none;
131
-
132
- .filerobot-ProviderBrowserItem-folderLiIcon > * {
133
- width: 20px;
134
- height: 20px;
135
- }
136
-
137
- input {
138
- width: 96%;
139
- }
140
-
141
- .filerobot-Explorer-dots-menu-icon {
142
- display: none;
143
- }
144
- }
145
-
146
- .filerobot-ProviderBrowserItem-inner-folder-title {
147
- flex-grow: 1;
148
- font-weight: 500;
149
- white-space: nowrap;
150
- text-overflow: ellipsis;
151
- overflow: hidden;
152
- font-size: 14px;
153
- line-height: 16px;
154
- color: $primary;
155
- margin-left: 8px;
156
- }
157
-
158
-
159
- button.filerobot-ProviderBrowserItem-inner-folder {
160
- &:hover {
161
- background-color: $hover
162
- }
163
- }
164
-
165
- &--selected {
166
- button.filerobot-ProviderBrowserItem-inner-folder {
167
- background-color: $active !important;
168
- outline: none;
169
-
170
- input {
171
- color: #000;
172
- width: 96%;
173
- }
174
-
175
- * {
176
- fill: $border;
177
- color: $white;
178
- }
179
- }
180
- }
181
- }
182
-
183
- .filerobot-ProviderBrowserItem-inner {
184
- cursor: pointer;
185
- font-weight: 400;
186
- font-size: 14px;
187
- line-height: 16px;
188
- }
189
-
190
- .filerobot-Provider-list-cell-header-title {
191
- white-space: nowrap;
192
- overflow: hidden;
193
- text-overflow: ellipsis;
194
- }
195
-
196
- .filerobot-Provider-list-cell-header-hidableIcon {
197
- visibility: hidden;
198
- }
199
-
200
- .filerobot-Provider-list-cell-wrapper {
201
- font-size: 12px;
202
- display: flex;
203
- align-items: center;
204
-
205
- &:hover .filerobot-Provider-list-cell-header-hidableIcon {
206
- visibility: visible;
207
- }
208
- }
209
-
210
- // ==================================================================
211
- // ========================= side Navigation ========================
212
- // ==================================================================
213
- .filerobot-ProviderBrowser-mainContent {
214
- flex-grow: 1;
215
- overflow: hidden;
216
- overflow-x: auto;
217
- -webkit-overflow-scrolling: touch;
218
- position: relative;
219
- }
220
-
221
- .filerobot-ProviderBrowserItem--draggable-block {
222
- position: sticky;
223
- top: 0;
224
- width: 1px;
225
- height: 100%;
226
- cursor: col-resize;
227
- z-index: 100;
228
- background: $border;
229
- }
230
-
231
- .filerobot-ProviderBrowserItem-SideNav-addNew {
232
- color: $active;
233
- font-weight: 500;
234
- cursor: pointer;
235
- }
236
-
237
- .filerobot-ProviderBrowser-body-sideButtons {
238
- min-width: 40px;
239
- max-width: 40px;
240
- }
241
-
242
- .filerobot-ProviderBrowser-body-leftSideButtons {
243
- margin-right: 20px;
244
- }
245
-
246
- .filerobot-ProviderBrowser-body-leftNavigationButton {
247
- background: $background-primary;
248
- box-shadow: 0px 1px 4px rgba(77, 78, 78, 0.15);
249
- border-radius: 0px 50px 50px 0px;
250
- padding: 10px 14px 10px 10px;
251
- margin-top: 10px;
252
- width: 100%;
253
- position: sticky;
254
- top: 91px;
255
- }
256
-
257
- .filerobot-ProviderBrowser-body-rightSideButtons {
258
- margin-left: 20px;
259
- }
260
-
261
- .filerobot-ProviderBrowser-body-rightNavigationButton {
262
- background: $background-primary;
263
- box-shadow: 0px 1px 4px rgba(77, 78, 78, 0.15);
264
- border-radius: 50px 0px 0px 50px;
265
- padding: 10px 10px 10px 14px;
266
- margin-top: 10px;
267
- width: 100%;
268
- position: sticky;
269
- top: 91px;
270
- }
271
-
272
- .filerobot-Provider-LabelsListLi-selectMode,
273
- .filerobot-Provider-LabelsListLi-selectMode * {
274
- cursor: pointer;
275
- }
276
-
277
- // ==================================================================
278
- // ========================= gridLiBottom options ========================
279
- // ==================================================================
280
- .filerobot-ProviderBrowserItem-ItemHoverBottomOptions {
281
- bottom: 4%;
282
- right: 3%;
283
- top: auto;
284
-
285
- &-selected {
286
- display: flex;
287
- visibility: visible;
288
-
289
- button {
290
- background: $white;
291
-
292
- &:not(:active) {
293
- svg * {
294
- color: $accent;
295
- fill: $accent;
296
- }
297
-
298
- &:hover {
299
- background: $hover;
300
-
301
- svg * {
302
- fill: $accent-hover;
303
- color: $accent-hover;
304
- }
305
- }
306
- }
307
- }
308
- }
309
- }
1
+ @import '@scaleflex/widget-core/lib/_utils';
2
+ @import '@scaleflex/widget-core/lib/_variables';
3
+
4
+ @import './style/filerobot-ProviderBrowser-layoutType--grid';
5
+ @import './style/filerobot-ProviderBrowser-layoutType--list';
6
+ @import './style/filerobot-ProviderBrowserItem-details';
7
+
8
+
9
+ .filerobot-ProviderBrowser {
10
+ display: flex;
11
+ flex-direction: column;
12
+ flex: 1;
13
+ font-size: 14px;
14
+ font-weight: 400;
15
+ height: 100%;
16
+ position: relative;
17
+ background-color: $white;
18
+ }
19
+
20
+ .filerobot-ProviderBrowser-user {
21
+ margin: 0 8px 0 0;
22
+ font-weight: 500;
23
+ color: $gray-800;
24
+
25
+ [data-filerobot-theme="dark"] & {
26
+ color: $gray-200;
27
+ }
28
+ }
29
+
30
+ .filerobot-ProviderBrowser-select {
31
+ cursor: pointer;
32
+ line-height: 1.5;
33
+ color: #000;
34
+
35
+ &.--filter {
36
+ max-width: 120px;
37
+ white-space: nowrap;
38
+ text-overflow: ellipsis;
39
+ overflow: hidden;
40
+ padding-right: 2px;
41
+ }
42
+
43
+ &:focus {
44
+ outline: none;
45
+ border-color: transparent;
46
+ }
47
+ }
48
+
49
+ .filerobot-ProviderBrowser-user:after {
50
+ content: '\00B7';
51
+ position: relative;
52
+ left: 4px;
53
+ color: $gray-500;
54
+ font-weight: normal;
55
+ }
56
+
57
+ .filerobot-ProviderBrowser-headerBar--simple {
58
+ text-align: center;
59
+ display: block;
60
+ justify-content: center;
61
+ }
62
+
63
+ .filerobot-ProviderBrowser-headerBar {
64
+ display: flex;
65
+ align-items: center;
66
+ padding: 12px;
67
+ color: $gray-600;
68
+ line-height: 1.4;
69
+ font-size: 12px;
70
+ position: relative;
71
+ width: 100%;
72
+ // height: 40px;
73
+
74
+ .filerobot-size--md & {
75
+ display: flex;
76
+ align-items: center;
77
+ justify-content: space-between;
78
+ }
79
+
80
+ .filerobot-size--height-md & {
81
+ display: flex;
82
+ align-items: center;
83
+ }
84
+
85
+ [data-filerobot-theme="dark"] & {
86
+ border-bottom: 1px solid $gray-800;
87
+ background-color: $gray-900;
88
+ }
89
+ }
90
+
91
+ .filerobot-ProviderBrowser-headerBar--simple {
92
+ text-align: center;
93
+ display: block;
94
+ justify-content: center;
95
+ }
96
+
97
+ .filerobot-ProviderBrowser-body {
98
+ flex: 1;
99
+ z-index: 1000;
100
+ position: relative;
101
+ display: flex;
102
+ height: 100%;
103
+ }
104
+
105
+ .filerobot-ProviderBrowser-body-list {
106
+ width: 100%;
107
+ overflow-x: auto;
108
+ }
109
+
110
+ .item-folder.filerobot-ProviderBrowserItem {
111
+ padding: 4px;
112
+ border-radius: 7px;
113
+ outline: none;
114
+
115
+ &::before {
116
+ content: unset !important;
117
+ display: none !important;
118
+ padding-top: 0 !important;
119
+ }
120
+
121
+ .filerobot-ProviderBrowserItem-inner-folder {
122
+ display: flex;
123
+ align-items: center;
124
+ padding: 10px 12px;
125
+ border: 1px solid $border;
126
+ border-radius: 2px;
127
+ box-sizing: border-box;
128
+ width: 100%;
129
+ height: 36px;
130
+ outline: none;
131
+
132
+ .filerobot-ProviderBrowserItem-folderLiIcon > * {
133
+ width: 20px;
134
+ height: 20px;
135
+ }
136
+
137
+ input {
138
+ width: 96%;
139
+ }
140
+
141
+ .filerobot-Explorer-dots-menu-icon {
142
+ display: none;
143
+ }
144
+ }
145
+
146
+ .filerobot-ProviderBrowserItem-inner-folder-title {
147
+ flex-grow: 1;
148
+ font-weight: 500;
149
+ white-space: nowrap;
150
+ text-overflow: ellipsis;
151
+ overflow: hidden;
152
+ font-size: 14px;
153
+ line-height: 16px;
154
+ color: $primary;
155
+ margin-left: 8px;
156
+ }
157
+
158
+
159
+ button.filerobot-ProviderBrowserItem-inner-folder {
160
+ &:hover {
161
+ background-color: $hover
162
+ }
163
+ }
164
+
165
+ &--selected {
166
+ button.filerobot-ProviderBrowserItem-inner-folder {
167
+ background-color: $active !important;
168
+ outline: none;
169
+
170
+ input {
171
+ color: #000;
172
+ width: 96%;
173
+ }
174
+
175
+ * {
176
+ fill: $border;
177
+ color: $white;
178
+ }
179
+ }
180
+ }
181
+ }
182
+
183
+ .filerobot-ProviderBrowserItem-inner {
184
+ cursor: pointer;
185
+ font-weight: 400;
186
+ font-size: 14px;
187
+ line-height: 16px;
188
+ }
189
+
190
+ .filerobot-Provider-list-cell-header-title {
191
+ white-space: nowrap;
192
+ overflow: hidden;
193
+ text-overflow: ellipsis;
194
+ }
195
+
196
+ .filerobot-Provider-list-cell-header-hidableIcon {
197
+ visibility: hidden;
198
+ }
199
+
200
+ .filerobot-Provider-list-cell-wrapper {
201
+ font-size: 12px;
202
+ display: flex;
203
+ align-items: center;
204
+
205
+ &:hover .filerobot-Provider-list-cell-header-hidableIcon {
206
+ visibility: visible;
207
+ }
208
+ }
209
+
210
+ // ==================================================================
211
+ // ========================= side Navigation ========================
212
+ // ==================================================================
213
+ .filerobot-ProviderBrowser-mainContent {
214
+ flex-grow: 1;
215
+ overflow: hidden;
216
+ overflow-x: auto;
217
+ -webkit-overflow-scrolling: touch;
218
+ position: relative;
219
+ }
220
+
221
+ .filerobot-ProviderBrowserItem--draggable-block {
222
+ position: sticky;
223
+ top: 0;
224
+ width: 1px;
225
+ height: 100%;
226
+ cursor: col-resize;
227
+ z-index: 100;
228
+ background: $border;
229
+ }
230
+
231
+ .filerobot-ProviderBrowserItem-SideNav-addNew {
232
+ color: $active;
233
+ font-weight: 500;
234
+ cursor: pointer;
235
+ }
236
+
237
+ .filerobot-ProviderBrowser-body-sideButtons {
238
+ min-width: 40px;
239
+ max-width: 40px;
240
+ }
241
+
242
+ .filerobot-ProviderBrowser-body-leftSideButtons {
243
+ margin-right: 20px;
244
+ }
245
+
246
+ .filerobot-ProviderBrowser-body-leftNavigationButton {
247
+ background: $background-primary;
248
+ box-shadow: 0px 1px 4px rgba(77, 78, 78, 0.15);
249
+ border-radius: 0px 50px 50px 0px;
250
+ padding: 10px 14px 10px 10px;
251
+ margin-top: 10px;
252
+ width: 100%;
253
+ position: sticky;
254
+ top: 91px;
255
+ }
256
+
257
+ .filerobot-ProviderBrowser-body-rightSideButtons {
258
+ margin-left: 20px;
259
+ }
260
+
261
+ .filerobot-ProviderBrowser-body-rightNavigationButton {
262
+ background: $background-primary;
263
+ box-shadow: 0px 1px 4px rgba(77, 78, 78, 0.15);
264
+ border-radius: 50px 0px 0px 50px;
265
+ padding: 10px 10px 10px 14px;
266
+ margin-top: 10px;
267
+ width: 100%;
268
+ position: sticky;
269
+ top: 91px;
270
+ }
271
+
272
+ .filerobot-Provider-LabelsListLi-selectMode,
273
+ .filerobot-Provider-LabelsListLi-selectMode * {
274
+ cursor: pointer;
275
+ }
276
+
277
+ // ==================================================================
278
+ // ========================= gridLiBottom options ========================
279
+ // ==================================================================
280
+ .filerobot-ProviderBrowserItem-ItemHoverBottomOptions {
281
+ bottom: 4%;
282
+ right: 3%;
283
+ top: auto;
284
+
285
+ &-selected {
286
+ display: flex;
287
+ visibility: visible;
288
+
289
+ button {
290
+ background: $white;
291
+
292
+ &:not(:active) {
293
+ svg * {
294
+ color: $accent;
295
+ fill: $accent;
296
+ }
297
+
298
+ &:hover {
299
+ background: $hover;
300
+
301
+ svg * {
302
+ fill: $accent-hover;
303
+ color: $accent-hover;
304
+ }
305
+ }
306
+ }
307
+ }
308
+ }
309
+ }
package/lib/utils/View.js CHANGED
@@ -31,12 +31,12 @@ var View = /*#__PURE__*/function () {
31
31
  _defineProperty(this, "recordShiftKeyPress", function (e) {
32
32
  _this.isShiftKeyPressed = e.shiftKey;
33
33
  });
34
- /**
35
- * Toggles file/folder checkbox to on/off state while updating files list.
36
- *
37
- * Note that some extra complexity comes from supporting shift+click to
38
- * toggle multiple checkboxes at once, which is done by getting all files
39
- * in between last checked file and current one.
34
+ /**
35
+ * Toggles file/folder checkbox to on/off state while updating files list.
36
+ *
37
+ * Note that some extra complexity comes from supporting shift+click to
38
+ * toggle multiple checkboxes at once, which is done by getting all files
39
+ * in between last checked file and current one.
40
40
  */
41
41
  _defineProperty(this, "toggleCheckbox", function (e, file) {
42
42
  e.stopPropagation();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scaleflex/widget-provider-views",
3
3
  "description": "View library for Scaleflex remote provider plugins.",
4
- "version": "4.0.7",
4
+ "version": "4.3.0",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
7
7
  "style": "dist/style.min.css",
@@ -17,9 +17,9 @@
17
17
  "dependencies": {
18
18
  "@scaleflex/icons": "^3.0.0-beta.11",
19
19
  "@scaleflex/ui": "^3.0.0-beta.11",
20
- "@scaleflex/widget-common": "^4.0.7",
21
- "@scaleflex/widget-icons": "^4.0.7",
22
- "@scaleflex/widget-utils": "^4.0.7",
20
+ "@scaleflex/widget-common": "^4.3.0",
21
+ "@scaleflex/widget-icons": "^4.3.0",
22
+ "@scaleflex/widget-utils": "^4.3.0",
23
23
  "classnames": "^2.2.6",
24
24
  "use-context-selector": "^1.3.9"
25
25
  },
@@ -32,5 +32,5 @@
32
32
  "react": ">=19.0.0",
33
33
  "react-dom": ">=19.0.0"
34
34
  },
35
- "gitHead": "a940492ab76142f7041379f9a8a1d0bc8367214f"
35
+ "gitHead": "712930995f6dfd4a0d874c0638dde61065fd0683"
36
36
  }