capibara 1.3.75 → 1.3.77
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/dist/index.js +168 -165
- package/package.json +1 -1
- package/src/scss/components/_input_nav.scss +18 -0
- package/src/scss/layout/_detail_day.scss +26 -8
- package/src/util/tableElements.js +9 -2
package/package.json
CHANGED
|
@@ -394,6 +394,24 @@
|
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
+
.cap-checkbox-list-option-content {
|
|
398
|
+
display: flex;
|
|
399
|
+
flex: 1 1 auto;
|
|
400
|
+
flex-direction: column;
|
|
401
|
+
min-width: 0;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.cap-checkbox-list-option-detail {
|
|
405
|
+
color: inherit;
|
|
406
|
+
// Conserva el segundo renglón aunque todavía no exista una previsualización.
|
|
407
|
+
// Así seleccionar una opción no desplaza las demás filas de la lista.
|
|
408
|
+
min-height: 1.25em;
|
|
409
|
+
font-size: 0.78em;
|
|
410
|
+
line-height: 1.25;
|
|
411
|
+
margin-top: 0.12em;
|
|
412
|
+
opacity: 0.7;
|
|
413
|
+
}
|
|
414
|
+
|
|
397
415
|
.input-section-list {
|
|
398
416
|
margin: 16px 0;
|
|
399
417
|
.input-section-title {
|
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
// max-height: min(calc(100% - 0px), 600px);
|
|
9
9
|
//min-width: 250px;
|
|
10
10
|
//max-width: 400px;
|
|
11
|
-
|
|
11
|
+
// El contenido del detalle puede incluir nombres de productos largos.
|
|
12
|
+
// Acotar el panel evita que una sola cadena ensanche toda la planilla.
|
|
13
|
+
width: min(900px, calc(100vw - 2rem));
|
|
14
|
+
max-width: calc(100vw - 2rem);
|
|
12
15
|
border: 1px solid grey;
|
|
13
16
|
padding: 0.75em;
|
|
14
17
|
display: flex;
|
|
@@ -239,18 +242,24 @@
|
|
|
239
242
|
|
|
240
243
|
&.column-flex {
|
|
241
244
|
max-height: 60vh;
|
|
242
|
-
|
|
245
|
+
display: grid;
|
|
246
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
243
247
|
column-gap: 20px;
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
// Una sola
|
|
248
|
+
row-gap: 4px;
|
|
249
|
+
|
|
250
|
+
// Una sola cápsula no necesita reservar columnas vacías.
|
|
247
251
|
&.single-item {
|
|
248
|
-
|
|
252
|
+
grid-template-columns: minmax(0, 1fr);
|
|
249
253
|
}
|
|
250
254
|
|
|
251
|
-
//
|
|
255
|
+
// En pantallas intermedias se reduce la cantidad de columnas antes de
|
|
256
|
+
// que el contenido quede ilegible.
|
|
252
257
|
@media screen and (max-width: 959px) {
|
|
253
|
-
|
|
258
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@media screen and (max-width: 600px) {
|
|
262
|
+
grid-template-columns: minmax(0, 1fr);
|
|
254
263
|
}
|
|
255
264
|
}
|
|
256
265
|
|
|
@@ -282,6 +291,7 @@
|
|
|
282
291
|
border-radius: 6px;
|
|
283
292
|
box-sizing: border-box;
|
|
284
293
|
overflow: hidden;
|
|
294
|
+
min-width: 0;
|
|
285
295
|
|
|
286
296
|
.name {
|
|
287
297
|
font-weight: bold;
|
|
@@ -296,6 +306,14 @@
|
|
|
296
306
|
//min-width: 36px;
|
|
297
307
|
font-weight: 700;
|
|
298
308
|
}
|
|
309
|
+
|
|
310
|
+
.value,
|
|
311
|
+
.suffix,
|
|
312
|
+
.prefix {
|
|
313
|
+
min-width: 0;
|
|
314
|
+
overflow-wrap: anywhere;
|
|
315
|
+
word-break: break-word;
|
|
316
|
+
}
|
|
299
317
|
}
|
|
300
318
|
}
|
|
301
319
|
|
|
@@ -3869,12 +3869,19 @@ export default {
|
|
|
3869
3869
|
const checked = value.indexOf(String(option.id)) !== -1 ? "checked" : "";
|
|
3870
3870
|
str += `<label class="cap-checkbox-list-option">
|
|
3871
3871
|
<input class="input-checkbox-list" type="checkbox" value="${option.id}" ${checked}>
|
|
3872
|
-
<span
|
|
3872
|
+
<span class="cap-checkbox-list-option-content">
|
|
3873
|
+
<span class="cap-checkbox-list-option-label">${option.label}</span>
|
|
3874
|
+
<span class="cap-checkbox-list-option-detail">${option.detail || ""}</span>
|
|
3875
|
+
</span>
|
|
3873
3876
|
</label>`;
|
|
3874
3877
|
});
|
|
3875
3878
|
|
|
3876
3879
|
str += `</div></div></div>`;
|
|
3877
|
-
|
|
3880
|
+
const elem = dom.createElementFromHTML(str);
|
|
3881
|
+
elem.querySelectorAll("input.input-checkbox-list").forEach((input) => {
|
|
3882
|
+
this.addKeyDownInputEvents(input, elem, props);
|
|
3883
|
+
});
|
|
3884
|
+
return elem;
|
|
3878
3885
|
},
|
|
3879
3886
|
|
|
3880
3887
|
/**
|