@igea/oac_frontend 1.0.106 → 1.0.107
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
|
@@ -389,6 +389,87 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
389
389
|
var intervalId = setInterval(() => {
|
|
390
390
|
if(_this.form.shadowRoot){
|
|
391
391
|
clearInterval(intervalId);
|
|
392
|
+
// 🔥 Fix alignment for add-property blocks
|
|
393
|
+
const shadow = _this.form.shadowRoot;
|
|
394
|
+
|
|
395
|
+
if (!shadow.querySelector('#oac-final-layout')) {
|
|
396
|
+
const style = document.createElement('style');
|
|
397
|
+
style.id = 'oac-final-layout';
|
|
398
|
+
style.textContent = `
|
|
399
|
+
|
|
400
|
+
/* ============================= */
|
|
401
|
+
/* Layout moderno a 3 elementi */
|
|
402
|
+
/* ============================= */
|
|
403
|
+
|
|
404
|
+
.property-instance {
|
|
405
|
+
display: flex !important;
|
|
406
|
+
align-items: center !important;
|
|
407
|
+
gap: 10px !important;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/* Label senza width fissa */
|
|
411
|
+
.property-instance label {
|
|
412
|
+
width: auto !important;
|
|
413
|
+
min-width: 220px !important;
|
|
414
|
+
white-space: nowrap !important;
|
|
415
|
+
flex-shrink: 0 !important;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/* Editor cresce */
|
|
419
|
+
.property-instance .editor {
|
|
420
|
+
flex: 1 1 auto !important;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/* 🔥 SPUNTA NON PIÙ ASSOLUTA */
|
|
424
|
+
.property-instance.valid::before {
|
|
425
|
+
position: static !important;
|
|
426
|
+
margin-right: 6px !important;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
`;
|
|
430
|
+
shadow.appendChild(style);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
if (!shadow.querySelector('#oac-fix-add-buttons')) {
|
|
434
|
+
const style = document.createElement('style');
|
|
435
|
+
style.id = 'oac-fix-add-buttons';
|
|
436
|
+
style.textContent = `
|
|
437
|
+
|
|
438
|
+
/* Sposta i blocchi add a sinistra */
|
|
439
|
+
shacl-property:not(:has(>.collapsible)),
|
|
440
|
+
shacl-property > .collapsible::part(content) {
|
|
441
|
+
align-items: flex-start !important;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/* Assicura che il + sia inline */
|
|
445
|
+
shacl-property .add-button {
|
|
446
|
+
align-self: flex-start !important;
|
|
447
|
+
margin-right: 0 !important;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
`;
|
|
451
|
+
shadow.appendChild(style);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
if (!shadow.querySelector('#oac-limit-editor-width')) {
|
|
456
|
+
const style = document.createElement('style');
|
|
457
|
+
style.id = 'oac-limit-editor-width';
|
|
458
|
+
style.textContent = `
|
|
459
|
+
|
|
460
|
+
.property-instance .editor {
|
|
461
|
+
flex-grow: 0 !important;
|
|
462
|
+
max-width: 500px !important;
|
|
463
|
+
width: 100% !important;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
`;
|
|
467
|
+
shadow.appendChild(style);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
392
473
|
if(_this.inEditing)
|
|
393
474
|
_this.inputIdentifizier();
|
|
394
475
|
else
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
{% endif %}
|
|
113
113
|
|
|
114
114
|
<div id="shacl-container"
|
|
115
|
-
style="
|
|
116
|
-
<shacl-form id="shacl-form" data-collapse="open"
|
|
115
|
+
style="border:dashed 2px gray; padding:10px; border-radius:5px; max-width: 60%; margin: 0 auto; margin-top:20px;">
|
|
116
|
+
<shacl-form shadow="false" id="shacl-form" data-collapse="open"
|
|
117
117
|
data-values-namespace="indagine:"
|
|
118
118
|
data-shapes-url="/backend/ontology/schema/editing"
|
|
119
119
|
data-generate-node-shape-reference=""
|
package/src/views/v2/layout.twig
CHANGED