@schukai/monster 4.40.1 → 4.42.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.
@@ -50,7 +50,6 @@
50
50
  align-items: center;
51
51
  gap: 2rem;
52
52
  }
53
-
54
53
  }
55
54
 
56
55
  :host {
@@ -58,6 +57,12 @@
58
57
  margin: 0;
59
58
  }
60
59
 
60
+
61
+ :host(.is-resizing) {
62
+ cursor: col-resize;
63
+ user-select: none;
64
+ }
65
+
61
66
  ::slotted(.monster-button-group) {
62
67
  margin: 0 !important;
63
68
  flex-grow: 2;
@@ -81,7 +86,6 @@
81
86
  line-height: 1.2;
82
87
  border-bottom: 1px dashed var(--monster-theme-control-border-color);
83
88
  box-sizing: border-box;
84
-
85
89
  min-width: 0;
86
90
  overflow: auto;
87
91
 
@@ -129,13 +133,11 @@
129
133
  }
130
134
 
131
135
  @for $i from 0 to 500 {
132
- &:has([data-monster-insert-reference$=row-$(i)]:hover) [data-monster-insert-reference$=row-$(i)
133
-
134
- ] {
135
- color: var(--monster-theme-control-hover-color);
136
- background-color: var(--monster-theme-control-hover-bg-color);
137
- box-sizing: border-box;
138
- }
136
+ &:has([data-monster-insert-reference$=row-$(i)]:hover) [data-monster-insert-reference$=row-$(i)] {
137
+ color: var(--monster-theme-control-hover-color);
138
+ background-color: var(--monster-theme-control-hover-bg-color);
139
+ box-sizing: border-box;
140
+ }
139
141
  }
140
142
 
141
143
  & .monster-form {
@@ -143,7 +145,6 @@
143
145
  flex-direction: column;
144
146
  gap: 0.5rem;
145
147
  }
146
-
147
148
  }
148
149
 
149
150
 
@@ -162,7 +163,6 @@
162
163
  display: none;
163
164
  }
164
165
  }
165
-
166
166
  }
167
167
 
168
168
  [data-monster-role=datatable-headers] {
@@ -172,13 +172,19 @@
172
172
  @mixin text;
173
173
  font-weight: bold;
174
174
  padding: 0.3rem 0.2rem;
175
+ position: relative;
175
176
  display: flex;
176
177
  align-items: center;
177
- justify-content: flex-start;
178
- text-overflow: ellipsis;
179
- white-space: nowrap;
180
- overflow: hidden;
181
- max-width: 100%;
178
+ justify-content: flex-start;
179
+ overflow: visible;
180
+ padding-right: 28px;
181
+
182
+ & a[data-monster-sortable] {
183
+ flex-grow: 1;
184
+ overflow: hidden;
185
+ text-overflow: ellipsis;
186
+ white-space: nowrap;
187
+ }
182
188
 
183
189
  & a[data-monster-sortable]:after {
184
190
  content: "";
@@ -212,8 +218,38 @@
212
218
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z'/%3E%3C/svg%3E");
213
219
  mask-size: cover;
214
220
  }
221
+
222
+ & .resize-handle {
223
+ position: absolute;
224
+ right: 0;
225
+ top: 0;
226
+ bottom: 0;
227
+ width: 20px;
228
+ cursor: col-resize;
229
+ display: flex;
230
+ align-items: center;
231
+ justify-content: center;
232
+ z-index: 10;
233
+ opacity: 1;
234
+ transition: opacity 0.15s ease-in-out, transform 0.05s ease-in-out;
235
+ pointer-events: auto;
215
236
  }
216
237
 
238
+ & .resize-handle svg {
239
+ width: 14px;
240
+ height: 20px;
241
+ pointer-events: none;
242
+ transform: scale(1.4);
243
+ }
244
+
245
+ &:hover .resize-handle {
246
+ opacity: 1;
247
+ }
248
+
249
+ & .resize-handle:active {
250
+ transform: scale(1.05);
251
+ }
252
+ }
217
253
 
218
254
  & .flex-start {
219
255
  justify-content: flex-start;
@@ -226,7 +262,6 @@
226
262
  & .flex-center {
227
263
  justify-content: center;
228
264
  }
229
-
230
265
  }
231
266
 
232
267
  a[data-monster-role="copy-all"] {
@@ -271,7 +306,6 @@ monster-state[data-monster-role=empty-without-action]::part(action) {
271
306
 
272
307
  [data-monster-role="control"].small {
273
308
 
274
-
275
309
  & [data-monster-role="datatable-headers"] {
276
310
  display: none;
277
311
  }
@@ -292,12 +326,10 @@ monster-state[data-monster-role=empty-without-action]::part(action) {
292
326
  }
293
327
 
294
328
  @for $i from 0 to 500 {
295
- &:has([data-monster-insert-reference=row-$(i)]:hover) [data-monster-insert-reference=row-$(i)
296
-
297
- ] {
298
- /*background-color: var(--monster-bg-color-selection-2);*/
299
- box-sizing: border-box;
300
- }
329
+ &:has([data-monster-insert-reference=row-$(i)]:hover) [data-monster-insert-reference=row-$(i)] {
330
+ /*background-color: var(--monster-bg-color-selection-2);*/
331
+ box-sizing: border-box;
332
+ }
301
333
  }
302
334
  }
303
335
 
@@ -305,10 +337,8 @@ monster-state[data-monster-role=empty-without-action]::part(action) {
305
337
  display: flex;
306
338
  flex-direction: column !important;
307
339
  }
308
-
309
340
  }
310
341
 
311
-
312
342
  [data-monster-role=control].small {
313
343
 
314
344
  ::slotted(.monster-button-group) {
@@ -331,16 +361,5 @@ monster-state[data-monster-role=empty-without-action]::part(action) {
331
361
  &.center {
332
362
  justify-content: flex-start;
333
363
  }
334
-
335
364
  }
336
-
337
- }
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
365
+ }