@edc-motor/admin-kit 0.4.38 → 0.4.39
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edc-motor/admin-kit",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.39",
|
|
4
4
|
"description": "EdC Motor — kit del panel de administración: layout, gestores CRUD, imágenes, PDF, páginas, configuración, usuarios y copias (paquete fuente: lo compila el consumidor con Vite)",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@edc-motor/ui": "^0.4.
|
|
36
|
+
"@edc-motor/ui": "^0.4.39",
|
|
37
37
|
"axios": "^1.7.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -368,21 +368,28 @@
|
|
|
368
368
|
|
|
369
369
|
// Campos del bloque seleccionado: etiqueta + valor; los valores largos se
|
|
370
370
|
// recortan a unas pocas líneas.
|
|
371
|
+
// Campo del panel de bloque: «Label: valor» EN LÍNEA; las imágenes van
|
|
372
|
+
// apiladas (is-stacked), con la miniatura debajo del label.
|
|
371
373
|
&__field {
|
|
372
|
-
display:
|
|
373
|
-
|
|
374
|
+
display: flex;
|
|
375
|
+
align-items: baseline;
|
|
376
|
+
gap: $space-1;
|
|
374
377
|
min-width: 0;
|
|
375
378
|
font-size: $fs-13;
|
|
376
379
|
|
|
377
380
|
dt {
|
|
381
|
+
flex: none;
|
|
378
382
|
color: $text-3;
|
|
379
383
|
font-size: $fs-12;
|
|
380
384
|
text-transform: uppercase;
|
|
381
385
|
letter-spacing: 0.04em;
|
|
386
|
+
|
|
387
|
+
&::after { content: ':'; }
|
|
382
388
|
}
|
|
383
389
|
|
|
384
390
|
dd {
|
|
385
391
|
margin: 0;
|
|
392
|
+
min-width: 0;
|
|
386
393
|
color: $text-2;
|
|
387
394
|
overflow-wrap: anywhere;
|
|
388
395
|
display: -webkit-box;
|
|
@@ -391,6 +398,13 @@
|
|
|
391
398
|
line-clamp: 4;
|
|
392
399
|
overflow: hidden;
|
|
393
400
|
}
|
|
401
|
+
|
|
402
|
+
&.is-stacked {
|
|
403
|
+
display: grid;
|
|
404
|
+
gap: 2px;
|
|
405
|
+
|
|
406
|
+
dt::after { content: none; }
|
|
407
|
+
}
|
|
394
408
|
}
|
|
395
409
|
|
|
396
410
|
&__fields {
|
|
@@ -56,8 +56,6 @@ export interface PageBlocksLabels {
|
|
|
56
56
|
/** Título de la sección de interruptores (PDF/Índice) del panel, debajo
|
|
57
57
|
* de las acciones de verdad (editar, borrar…). */
|
|
58
58
|
stateKicker: string
|
|
59
|
-
/** Título de la sección de detalles del panel (el tipo del bloque). */
|
|
60
|
-
details: string
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
const defaultLabels: PageBlocksLabels = {
|
|
@@ -82,7 +80,6 @@ const defaultLabels: PageBlocksLabels = {
|
|
|
82
80
|
parent: 'Bloque padre (índices indentados)',
|
|
83
81
|
parentNone: '— Ninguno —',
|
|
84
82
|
stateKicker: 'Estado',
|
|
85
|
-
details: 'Detalles',
|
|
86
83
|
}
|
|
87
84
|
|
|
88
85
|
const props = withDefaults(
|
|
@@ -770,14 +767,9 @@ defineExpose({ reload: load })
|
|
|
770
767
|
</BaseButton>
|
|
771
768
|
</div>
|
|
772
769
|
|
|
773
|
-
<!--
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
<section class="manager-panel__section">
|
|
777
|
-
<hr class="manager-panel__divider" />
|
|
778
|
-
<p class="manager-panel__kicker">{{ L.details }}</p>
|
|
779
|
-
<h3 class="manager-detail__title">{{ typeName(selected.type) }}</h3>
|
|
780
|
-
</section>
|
|
770
|
+
<!-- El TIPO del bloque como título del panel (patrón de los
|
|
771
|
+
paneles de entidad), debajo del estado y fuera de secciones -->
|
|
772
|
+
<h3 class="manager-detail__title">{{ typeName(selected.type) }}</h3>
|
|
781
773
|
|
|
782
774
|
<!-- Contenido: cada campo del bloque con su valor (truncado) -->
|
|
783
775
|
<section v-if="selectedFields.length" class="manager-panel__section">
|
|
@@ -788,6 +780,7 @@ defineExpose({ reload: load })
|
|
|
788
780
|
v-for="entry in selectedFields"
|
|
789
781
|
:key="entry.field.key"
|
|
790
782
|
class="manager-detail__field"
|
|
783
|
+
:class="{ 'is-stacked': entry.field.type === 'image' }"
|
|
791
784
|
>
|
|
792
785
|
<dt>{{ fieldLabel(entry.field) }}</dt>
|
|
793
786
|
<dd v-if="entry.field.type === 'image'">
|