- Change TRAICIE_VACANCY_DEFINTION_SPECIALIST to TRAICIE_ROLE_DEFINITION_SPECIALIST

- Introduce new vanilla-jsoneditor iso older jsoneditor (for viewing a.o. ChatSessions)
- Introduce use of npm to install required javascript libraries
- update Material-kit-pro
- Introduce new top bar to show session defaults, remove old navbar buttons
- Correct Task & Tools editor
This commit is contained in:
Josako
2025-05-27 17:37:32 +02:00
parent 1fdbd2ff45
commit 5123de55cc
1041 changed files with 4480 additions and 292099 deletions

View File

@@ -704,210 +704,113 @@ select.select2[multiple] {
font-size: 1.1rem;
}
/* Aanpassingen voor JSONEditor */
.json-editor-container {
height: 400px;
margin-bottom: 1rem;
border-radius: 8px;
overflow: hidden;
border: 1px solid #e9ecef;
/* JSON Editor Styling - EveAI Aanpassingen */
:root {
/* Hoofdkleuren gebaseerd op EveAI kleurenschema */
--jse-theme-color: var(--bs-primary); /* Paars als hoofdkleur */
--jse-theme-color-highlight: var(--bs-secondary); /* Secundair paars voor highlights */
/* Achtergrondkleuren */
--jse-background-color: #fff;
--jse-panel-background: #f8f9fa;
--jse-panel-border: 1px solid var(--bs-secondary);
--jse-panel-border-radius: 0.375rem;
/* Tekstkleuren */
--jse-text-color: var(--bs-body-color);
--jse-text-color-inverse: #ffffff;
/* Navigatie */
--jse-navigation-bar-background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
--jse-navigation-bar-background-highlight: var(--bs-secondary);
--jse-navigation-bar-text-color: #ffffff;
/* Status balk */
--jse-status-bar-background: var(--bs-light);
--jse-status-bar-color: var(--bs-body-color);
--jse-status-bar-border: 1px solid var(--bs-secondary);
--jse-status-bar-border-radius: 0 0 0.375rem 0.375rem;
/* Main menu bar */
--jse-main-menu-background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
--jse-main-menu-color: #ffffff;
--jse-main-menu-button-background-highlight: var(--bs-secondary);
--jse-main-menu-button-color-highlight: #ffffff;
/* Contextmenu */
--jse-context-menu-background: #fff;
--jse-context-menu-background-highlight: var(--bs-secondary);
--jse-context-menu-color: var(--bs-body-color);
--jse-context-menu-color-highlight: #ffffff;
--jse-context-menu-border: 1px solid var(--bs-secondary);
--jse-context-menu-box-shadow: 0 4px 8px rgba(118, 89, 154, 0.2);
--jse-context-menu-border-radius: 0.375rem;
/* Knoppen */
--jse-button-background: var(--bs-primary);
--jse-button-background-highlight: var(--bs-secondary);
--jse-button-color: #ffffff;
--jse-button-color-highlight: #ffffff;
--jse-button-border-radius: 0.375rem;
/* JSON Tree Mode */
--jse-key-color: var(--bs-info);
--jse-delimiter-color: #666;
--jse-string-color: var(--bs-primary);
--jse-number-color: var(--bs-warning);
--jse-boolean-color: var(--bs-danger);
--jse-null-color: #888;
--jse-invalid-color: #e0b4b4;
--jse-readonly-color: #888;
--jse-readonly-background-color: #f0f0f0;
/* Selectie */
--jse-selection-background-color: rgba(118, 89, 154, 0.2);
--jse-selection-background-inactive-color: rgba(118, 89, 154, 0.1);
/* Foutmeldingen */
--jse-error-color: var(--bs-danger);
--jse-error-background-color: rgba(156, 45, 102, 0.1);
/* Tooltips */
--jse-tooltip-background: var(--bs-primary);
--jse-tooltip-color: #ffffff;
--jse-tooltip-border-radius: 0.375rem;
--jse-tooltip-box-shadow: 0 4px 8px rgba(118, 89, 154, 0.2);
}
/* Hoofdmenu styling */
.jsoneditor-menu {
background-color: #ee912e !important;
border-bottom: 1px solid #ee912e !important;
color: #495057 !important;
/* Extra stijlen voor de containers */
.jsoneditor-initialized {
border: 1px solid var(--bs-secondary);
border-radius: 0.375rem;
min-height: 300px;
box-shadow: 0 4px 8px rgba(118, 89, 154, 0.1);
}
/* Speciaal voor read-only modus */
.jsoneditor-readonly-mode .jsoneditor-menu {
background-color: #ee912e !important;
border-bottom: 1px solid #ee912e !important;
.jsoneditor-readonly-mode {
background-color: var(--bs-light);
}
/* Verberg bewerkingsknoppen in readonly mode, maar behoud expand/collapse knoppen */
.jsoneditor-readonly-mode .jsoneditor-modes,
.jsoneditor-readonly-mode button.jsoneditor-separator,
.jsoneditor-readonly-mode button.jsoneditor-repair,
.jsoneditor-readonly-mode button.jsoneditor-undo,
.jsoneditor-readonly-mode button.jsoneditor-redo,
.jsoneditor-readonly-mode button.jsoneditor-compact,
.jsoneditor-readonly-mode button.jsoneditor-sort,
.jsoneditor-readonly-mode button.jsoneditor-transform {
display: none !important;
/* Stijlen voor de knoppen in de editor */
.jse-button {
border: none !important;
transition: background-color 0.3s ease;
}
/* Toon belangrijke navigatieknoppen in read-only modus */
.jsoneditor-readonly-mode .jsoneditor-expand-all,
.jsoneditor-readonly-mode .jsoneditor-collapse-all,
.jsoneditor-readonly-mode .jsoneditor-search {
display: inline-block !important;
/* Stijlen voor veldlabels in de boom */
.jse-tree .jse-key {
font-weight: 500;
}
/* Verberg alle bewerkingselementen in de tree-view */
.jsoneditor-readonly-mode td.jsoneditor-tree button.jsoneditor-button.jsoneditor-contextmenu-button {
visibility: hidden !important;
/* Stijlen voor waarden in de boom */
.jse-tree .jse-value {
font-family: monospace;
}
/* Behoud wel de expand/collapse knoppen in de tree */
.jsoneditor-readonly-mode td.jsoneditor-tree button.jsoneditor-button.jsoneditor-expanded,
.jsoneditor-readonly-mode td.jsoneditor-tree button.jsoneditor-button.jsoneditor-collapsed {
visibility: visible !important;
}
/* Knoppen in het menu */
.jsoneditor-menu button {
background-color: transparent !important;
color: #495057 !important;
border: none !important;
}
.jsoneditor-menu button:hover {
background-color: #e8a34d !important;
}
/* Mode selector (Tree ▾) */
.jsoneditor-modes button {
background-color: transparent !important;
color: #495057 !important;
border: none !important;
padding: 4px 10px !important;
}
.jsoneditor-modes button:hover {
background-color: #e8a34d !important;
}
/* Zoekbalk */
.jsoneditor-search {
background-color: transparent !important;
}
.jsoneditor-search input {
border: 1px solid #ced4da !important;
border-radius: 4px !important;
color: #495057 !important;
padding: 4px 8px !important;
}
.jsoneditor-search button {
background-color: transparent !important;
color: #495057 !important;
}
/* Binnengebied */
.jsoneditor-outer {
border: none !important;
background-color: #fff !important;
}
/* Tree view */
.jsoneditor-tree {
background-color: #fff !important;
color: #212529 !important;
}
/* Read-only tree achtergrond */
.jsoneditor-readonly-mode .jsoneditor-tree {
background-color: #f8f9fa !important;
}
/* Value & field styling */
div.jsoneditor-field, div.jsoneditor-value {
color: #212529 !important;
}
div.jsoneditor-value.jsoneditor-string {
color: #0d6efd !important; /* Bootstrap primary color voor strings */
}
div.jsoneditor-value.jsoneditor-number {
color: #198754 !important; /* Bootstrap success color voor getallen */
}
div.jsoneditor-value.jsoneditor-boolean {
color: #dc3545 !important; /* Bootstrap danger color voor booleans */
}
div.jsoneditor-value.jsoneditor-null {
color: #6c757d !important; /* Bootstrap secondary color voor null */
}
/* Expand/collapse knoppen */
.jsoneditor-button.jsoneditor-expanded,
.jsoneditor-button.jsoneditor-collapsed {
filter: brightness(0.8) !important;
}
/* Context menu buttons (drie puntjes) */
.jsoneditor-button.jsoneditor-contextmenu-button {
filter: brightness(0.8) !important;
}
/* Verberg context menu knoppen in read-only modus */
.jsoneditor-readonly-mode .jsoneditor-contextmenu-button {
display: none !important;
}
/* Hover effect op rijen */
.jsoneditor-tree tr:hover {
background-color: rgba(0, 123, 255, 0.05) !important;
}
/* Geselecteerde rij */
.jsoneditor-tree tr.jsoneditor-selected {
background-color: rgba(0, 123, 255, 0.1) !important;
}
/* Consistent font */
.jsoneditor, .jsoneditor-tree, div.jsoneditor-field, div.jsoneditor-value {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
font-size: 0.875rem !important;
}
/* Consistente separators */
td.jsoneditor-separator {
color: #6c757d !important;
}
/* Contextmenu indien nodig */
div.jsoneditor-contextmenu {
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
border-radius: 4px !important;
border: 1px solid rgba(0, 0, 0, 0.15) !important;
}
div.jsoneditor-contextmenu ul li button {
color: #212529 !important;
}
div.jsoneditor-contextmenu ul li button:hover {
background-color: #f8f9fa !important;
}
/* Onzichtbare dragarea buttons verbergen voor een schoner uiterlijk */
.jsoneditor-button.jsoneditor-dragarea {
visibility: hidden !important;
}
/* Alleen tonen bij hover */
tr:hover .jsoneditor-button.jsoneditor-dragarea {
visibility: visible !important;
opacity: 0.6 !important;
}
/* Verberg de textarea met JSON-data */
.d-none {
display: none !important;
}
/* Zorg ervoor dat de JSONEditor goed zichtbaar is */
.jsoneditor {
width: 100% !important;
height: 100% !important;
border: none !important;
/* Verbeter de leesbaarheid van de tekstmodus */
.jse-text-mode {
font-family: monospace;
line-height: 1.5;
}