@kmme/kmme-ui-angular 0.0.3 → 0.0.4

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.
@@ -5,12 +5,15 @@ import { CommonModule } from '@angular/common';
5
5
  import * as i2 from '@angular/forms';
6
6
  import { FormsModule } from '@angular/forms';
7
7
  import { Router } from '@angular/router';
8
- import * as i3 from '@angular/material/icon';
8
+ import * as i1$1 from '@angular/material/icon';
9
9
  import { MatIconRegistry, MatIconModule } from '@angular/material/icon';
10
10
  import * as i4 from '@angular/material/button';
11
11
  import { MatButtonModule } from '@angular/material/button';
12
12
  import { MatTooltipModule } from '@angular/material/tooltip';
13
+ import * as i2$1 from '@angular/platform-browser';
13
14
  import { DomSanitizer } from '@angular/platform-browser';
15
+ import * as i4$1 from '@progress/kendo-angular-grid';
16
+ import { GridModule } from '@progress/kendo-angular-grid';
14
17
 
15
18
  class KmmeUiAngular {
16
19
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: KmmeUiAngular, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -243,7 +246,7 @@ class MeetingListTable {
243
246
  return labels[origin];
244
247
  }
245
248
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MeetingListTable, deps: [], target: i0.ɵɵFactoryTarget.Component });
246
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: MeetingListTable, isStandalone: true, selector: "kavaa-meeting-list-table", inputs: { items: "items", loading: "loading" }, outputs: { openMeetingRequested: "openMeetingRequested", editMeetingRequested: "editMeetingRequested", archiveMeetingRequested: "archiveMeetingRequested", startMeetingRequested: "startMeetingRequested", closeMeetingRequested: "closeMeetingRequested", manageMeetingSectionRequested: "manageMeetingSectionRequested", generateOccurrenceRequested: "generateOccurrenceRequested", refreshRequested: "refreshRequested" }, host: { listeners: { "document:click": "onDocumentClick($event)" } }, ngImport: i0, template: "<div class=\"kavaa-table-wrapper\">\n <div class=\"toolbar\">\n \n <div class=\"search-box\">\n <svg class=\"search-icon\" viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z\"/></svg>\n <input\n type=\"text\"\n placeholder=\"Rechercher...\"\n [(ngModel)]=\"searchTerm\"\n (ngModelChange)=\"onSearchChange()\"\n />\n </div>\n\n <select [(ngModel)]=\"statusFilter\" (ngModelChange)=\"onStatusFilterChange()\">\n <option *ngFor=\"let opt of statusOptions\" [value]=\"opt.value\">{{ opt.label }}</option>\n </select>\n <div class=\"create-menu\">\n <button\n class=\"btn-primary-red toolbar-add-btn\"\n type=\"button\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"openCreateMenu\"\n (click)=\"toggleCreateMenu($event)\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z\"/></svg>\n <span>Ajouter une r\u00E9union</span>\n <svg class=\"chevron\" viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"m7 10 5 5 5-5z\"/></svg>\n </button>\n\n <div class=\"create-menu-dropdown\" *ngIf=\"openCreateMenu\" role=\"menu\">\n <button type=\"button\" role=\"menuitem\" (click)=\"createMeeting('meeting')\">\n <strong>R\u00E9union normale</strong>\n <span>Cr\u00E9er une r\u00E9union unique</span>\n </button>\n <button type=\"button\" role=\"menuitem\" (click)=\"createMeeting('series')\">\n <strong>R\u00E9union r\u00E9currente</strong>\n <span>Cr\u00E9er une s\u00E9rie de r\u00E9unions</span>\n </button>\n </div>\n </div>\n </div>\n\n <p *ngIf=\"loading\" class=\"loading-state\">Chargement...</p>\n\n <div class=\"grouping-hint\" *ngIf=\"!loading\">Pour regrouper, glissez un en-t\u00EAte de colonne et d\u00E9posez-le ici.</div>\n <div class=\"table-scroll\" *ngIf=\"!loading\">\n <table class=\"kavaa-table\">\n <thead><tr><th *ngFor=\"let column of columns\" [hidden]=\"!column.visible\"><div class=\"header-content\"><button class=\"header-label\" type=\"button\" (click)=\"toggleSort(column.key)\">{{ column.label }}</button><div class=\"column-menu-wrapper\"><button class=\"column-menu-trigger\" type=\"button\" (click)=\"toggleColumnMenu(column.key, $event)\">\u22EE</button><div class=\"column-menu\" *ngIf=\"openColumnMenu === column.key\"><button type=\"button\" (click)=\"sortColumn(column.key, 'asc')\">\u2191 Tri croissant</button><button type=\"button\" (click)=\"sortColumn(column.key, 'desc')\">\u2193 Tri d\u00E9croissant</button><button type=\"button\" class=\"columns-button\" (click)=\"toggleColumnSelector()\"><span class=\"columns-icon\">\u25A5</span> Colonnes <span class=\"chevron\">\u2303</span></button><div class=\"column-selector\" *ngIf=\"showColumnSelector\"><label *ngFor=\"let selectableColumn of columns\" class=\"column-visibility-option\"><input type=\"checkbox\" [checked]=\"selectableColumn.visible\" (change)=\"toggleColumnVisibility(selectableColumn)\"><span>{{ selectableColumn.label }}</span></label><div class=\"column-selector-actions\"><button type=\"button\" class=\"apply-columns\" (click)=\"applyColumnSelection()\">Apply</button><button type=\"button\" class=\"reset-columns\" (click)=\"resetColumnSelection()\">Reset</button></div></div></div></div></div></th><th class=\"actions-col\"><div class=\"actions-header\"><span class=\"actions-title\">Actions</span><button class=\"column-menu-trigger actions-menu-trigger\" type=\"button\" (click)=\"$event.stopPropagation()\" aria-label=\"Actions\">\u22EE</button></div></th></tr></thead>\n <tbody>\n <tr *ngFor=\"let m of paginatedItems; let i = index\">\n <td *ngIf=\"isColumnVisible('title')\" class=\"strong-cell\">{{ m.title }}</td>\n <td *ngIf=\"isColumnVisible('meetingTypeCode')\">{{ m.meetingTypeCode }}</td>\n <td *ngIf=\"isColumnVisible('origin')\"><span class=\"origin-badge origin-{{ m.origin | lowercase }}\">{{ originLabel(m.origin) }}</span></td>\n <td *ngIf=\"isColumnVisible('status')\"><span class=\"badge status-{{ m.status | lowercase }}\">{{ statusLabel(m.status) }}</span></td>\n <td *ngIf=\"isColumnVisible('scheduledAt')\">{{ m.scheduledAt | date:\"short\" }}</td>\n <td class=\"actions-col\">\n <div class=\"row-actions\" aria-label=\"Actions de la r\u00E9union\">\n <button class=\"action-icon\" type=\"button\" (click)=\"onOpen(m.meetingId)\" aria-label=\"Voir la r\u00E9union\" data-tooltip=\"Voir la r\u00E9union\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 12.5a5 5 0 1 1 5-5 5 5 0 0 1-5 5zm0-8a3 3 0 1 0 3 3 3 3 0 0 0-3-3z\"/></svg>\n </button>\n <button class=\"action-icon\" type=\"button\" (click)=\"onEdit(m.meetingId)\" aria-label=\"Modifier la r\u00E9union\" data-tooltip=\"Modifier la r\u00E9union\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.42l-2.34-2.34a1 1 0 0 0-1.42 0l-1.83 1.83 3.75 3.75 1.84-1.82z\"/></svg>\n </button>\n <button class=\"action-icon\" type=\"button\" (click)=\"onWorkspace(m.meetingId)\" aria-label=\"Espace de r\u00E9union\" data-tooltip=\"Espace de r\u00E9union\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M3 3h8v8H3V3zm10 0h8v5h-8V3zm0 7h8v11h-8V10zM3 13h8v8H3v-8z\"/></svg>\n </button>\n <ng-container *ngIf=\"m.status === 'PLANNED'\">\n <button type=\"button\" class=\"action-icon status-action\" (click)=\"onStartMeeting(m.meetingId)\" aria-label=\"Ouvrir la r\u00E9union\" data-tooltip=\"Ouvrir la r\u00E9union\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M8 5v14l11-7L8 5Z\"/></svg>\n </button>\n <button type=\"button\" class=\"action-icon status-action\" (click)=\"openMeetingSection(m.meetingId, 'invitations')\" aria-label=\"G\u00E9rer les invitations\" data-tooltip=\"G\u00E9rer les invitations\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z\"/></svg>\n </button>\n </ng-container>\n <ng-container *ngIf=\"m.status === 'IN_SESSION'\">\n <button type=\"button\" class=\"action-icon status-action\" (click)=\"onCloseMeeting(m.meetingId)\" aria-label=\"Cl\u00F4turer la r\u00E9union\" data-tooltip=\"Cl\u00F4turer la r\u00E9union\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M6 6h12v12H6V6Z\"/></svg>\n </button>\n <button type=\"button\" class=\"action-icon status-action\" (click)=\"onAttendance(m.meetingId)\" aria-label=\"G\u00E9rer les pr\u00E9sences\" data-tooltip=\"G\u00E9rer les pr\u00E9sences\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M16 11c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3ZM8 11c1.66 0 3-1.34 3-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3Zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5C15 14.17 10.33 13 8 13Z\"/></svg>\n </button>\n </ng-container>\n <ng-container *ngIf=\"m.status === 'CLOSED'\">\n <button type=\"button\" class=\"action-icon status-action\" (click)=\"onArchiveMeeting(m.meetingId)\" aria-label=\"Archiver la r\u00E9union\" data-tooltip=\"Archiver la r\u00E9union\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M20.5 5.2 19.1 3.6A1.5 1.5 0 0 0 18 3H6c-.5 0-.9.2-1.2.6L3.5 5.2A2 2 0 0 0 3 6.5V19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.5c0-.5-.2-.9-.5-1.3ZM12 17.5 6.5 12H10v-2h4v2h3.5L12 17.5ZM5.1 5l.8-1h12l1 1H5.1Z\"/></svg>\n </button>\n <button type=\"button\" class=\"action-icon status-action\" (click)=\"onMinutes(m.meetingId)\" aria-label=\"Proc\u00E8s-verbal de la r\u00E9union\" data-tooltip=\"Proc\u00E8s-verbal de la r\u00E9union\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M6 2h9l5 5v15H6V2Zm8 1.5V8h4.5L14 3.5ZM9 12v2h8v-2H9Zm0 4v2h8v-2H9Z\"/></svg>\n </button>\n </ng-container>\n <button *ngIf=\"isRecurringMeeting(m)\" class=\"action-icon status-action\" type=\"button\" (click)=\"onGenerateOccurrence(m)\" aria-label=\"G\u00E9n\u00E9rer une occurrence\" data-tooltip=\"G\u00E9n\u00E9rer une occurrence\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M12 4a8 8 0 1 0 8 8h-2a6 6 0 1 1-6-6V2L16 6l-4 4V4z\"/></svg>\n </button>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n\n <p *ngIf=\"paginatedItems.length === 0\" class=\"empty-state\">Aucune r\u00E9union trouv\u00E9e.</p>\n </div>\n\n <div class=\"pager\" *ngIf=\"!loading && totalItems > 0\">\n <div class=\"pager-navigation\">\n <button class=\"pager-btn pager-first\" type=\"button\" (click)=\"goToPage(1)\" [disabled]=\"currentPage === 1\" aria-label=\"Premi\u00E8re page\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"M6 6h2v12H6zm3.5 6 7-6v12z\"/></svg></button>\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage - 1)\" [disabled]=\"currentPage === 1\" aria-label=\"Page pr\u00E9c\u00E9dente\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"m15 6-6 6 6 6z\"/></svg></button>\n <button *ngFor=\"let page of visiblePages\" class=\"pager-number\" type=\"button\" [class.active]=\"page === currentPage\" (click)=\"goToPage(page)\">{{ page }}</button>\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage + 1)\" [disabled]=\"currentPage === totalPages\" aria-label=\"Page suivante\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"m9 6 6 6-6 6z\"/></svg></button>\n <button class=\"pager-btn pager-last\" type=\"button\" (click)=\"goToPage(totalPages)\" [disabled]=\"currentPage === totalPages\" aria-label=\"Derniere page\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"m8 6 7 6-7 6zm8 0h2v12h-2z\"/></svg></button>\n </div>\n <select [(ngModel)]=\"pageSize\" (ngModelChange)=\"onPageSizeChange()\" aria-label=\"Elements par page\">\n <option *ngFor=\"let size of pageSizeOptions\" [value]=\"size\">{{ size }}</option>\n </select>\n <span class=\"page-info\">Total : {{ totalItems }}</span>\n <button class=\"pager-refresh\" mat-stroked-button color=\"primary\" type=\"button\" (click)=\"refresh()\" aria-label=\"Refresh\" data-tooltip=\"refresh\"><mat-icon [svgIcon]=\"'heroicons_outline:refresh'\" aria-hidden=\"true\"></mat-icon></button>\n </div>\n</div>\n\n\n\n\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n", styles: [".kavaa-table-wrapper{font-family:system-ui,sans-serif;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;padding:16px}.toolbar{display:flex;gap:12px;margin-bottom:16px}.search-box{position:relative;display:flex;align-items:center}.search-icon{position:absolute;right:10px;color:#495057;pointer-events:none}.search-box input{padding:8px 32px 8px 12px;border:1px solid #e0e0e0;border-radius:6px;width:250px;color:#495057;font-size:13px}.toolbar{display:flex;align-items:center;gap:12px}.toolbar-add-btn{margin-left:auto;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 18px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;border:none;background:#c22b22;color:#fff;transition:all .2s ease}.toolbar-add-btn:hover{background:#a82219;transform:translateY(-1px)}.toolbar-add-btn:active{transform:scale(.98)}.toolbar-add-btn svg{width:16px;height:16px;fill:currentColor;flex-shrink:0}.toolbar-add-btn .chevron{transition:transform .2s ease}.toolbar-add-btn[aria-expanded=true] .chevron{transform:rotate(180deg)}.create-menu-dropdown{position:absolute;top:calc(100% + 8px);right:0;z-index:20;width:250px;padding:6px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;box-shadow:0 14px 32px #0f172a29}.create-menu-dropdown button{display:flex;flex-direction:column;gap:3px;width:100%;padding:10px 12px;border:0;border-radius:7px;color:#1f2937;background:transparent;text-align:left;cursor:pointer}.create-menu-dropdown button:hover{color:#a82219;background:#fef2f2}.create-menu-dropdown strong{font-size:13px}.create-menu-dropdown span{color:#64748b;font-size:12px}.toolbar select{padding:8px 12px;border:1px solid #e0e0e0;border-radius:6px;color:#495057;font-size:13px;background:#fff}.table-scroll{overflow-x:auto}.kavaa-table{width:100%;border-collapse:collapse}.kavaa-table th{text-align:left;font-size:12px;text-transform:uppercase;color:#495057;padding:10px 8px;border-bottom:2px solid #f5f5f5;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;font-weight:600}.kavaa-table th:hover{background:#f5f5f5}.sort-icon{font-size:10px;margin-left:4px}.kavaa-table td{padding:10px 8px;border-bottom:1px solid #f5f5f5;font-size:13px;color:#495057}.kavaa-table tbody tr:hover{background:#fafafa}.strong-cell{font-weight:600}.badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:12px;letter-spacing:.3px;background:#f5f5f5;color:#495057}.status-draft{background:#fff3cd;color:#856404}.status-planned{background:#d1ecf1;color:#0c5460}.status-in_session{background:#d4edda;color:#155724}.status-closed{background:#e2e3e5;color:#383d41}.status-archived{background:#f5f5f5;color:#6c757d}.actions-col{width:50px;text-align:center;position:relative}.row-actions{display:inline-flex;align-items:center;justify-content:center;gap:6px}.action-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;color:#475569;border:1px solid #e2e8f0;border-radius:7px;background:#fff;cursor:pointer}.action-icon:hover{color:#a6192e;border-color:#a6192e;background:#fff6f7}.recurrence-action{color:#a6192e}.menu-wrapper{position:relative;display:inline-block}.menu-trigger{background:none;border:none;cursor:pointer;padding:4px;color:#495057;display:flex;align-items:center;justify-content:center;border-radius:4px}.menu-trigger:hover{background:#f5f5f5}.menu-dropdown{position:absolute;right:0;top:100%;background:#fff;border:1px solid #f5f5f5;border-radius:6px;box-shadow:0 4px 12px #0000001f;z-index:10;min-width:210px;overflow:hidden}.menu-dropdown button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:8px 12px;background:none;border:none;cursor:pointer;font-size:13px;color:#495057}.menu-dropdown button:hover{background:#f5f5f5}.pager{display:flex;align-items:center;gap:12px;margin-top:16px;justify-content:flex-end}.pager select{padding:6px 8px;border:1px solid #e0e0e0;border-radius:6px;color:#495057;font-size:13px}.pager-btn{display:flex;align-items:center;justify-content:center;padding:6px;border:1px solid #e0e0e0;border-radius:6px;background:#fff;color:#495057;cursor:pointer}.pager-btn:hover:not(:disabled){background:#f5f5f5}.pager-btn:disabled{opacity:.35;cursor:not-allowed}.page-info{font-size:13px;color:#495057}.loading-state,.empty-state{color:#6c757d;font-style:italic;padding:24px;text-align:center}.origin-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}.origin-badge:before{width:6px;height:6px;border-radius:50%;background:currentColor;content:\"\"}.origin-manual{background:#f1f5f9;color:#64748b}.origin-template{background:#fdecea;color:#c22b22}.origin-recurrence{background:#ede9fe;color:#6d28d9}.kavaa-table-wrapper{padding:0;border-radius:7px;box-shadow:none;overflow:hidden}.toolbar{min-height:39px;margin:0;padding:5px 9px;gap:8px;background:#ececec;border-bottom:1px solid #d7d7d7}.search-box input{width:185px;height:27px;padding:5px 29px 5px 7px;border:1px solid #d5d9df;border-radius:3px;color:#4b5563;background:#fff;font-size:10px;box-sizing:border-box}.search-icon{right:7px;width:16px;height:16px;color:#28364b}.toolbar select{height:27px;padding:3px 23px 3px 7px;border:1px solid #d5d9df;border-radius:14px;background:#fff;font-size:10px}.toolbar-add-btn{min-height:29px!important;height:29px;padding:0 10px;border-radius:4px;font-size:10px;box-shadow:none}.toolbar-add-btn:hover{transform:none}.grouping-hint{padding:10px 8px 8px;border-bottom:1px solid #d9dce1;color:#5f6670;background:#fff;font-size:11px}.kavaa-table{min-width:900px}.kavaa-table th{padding:9px 8px;border-right:1px solid #d9dce1;border-bottom:1px solid #d9dce1;color:#d5312c;background:#fff;font-size:12px;font-weight:700;text-transform:none}.kavaa-table th:hover{background:#f7f7f7}.kavaa-table td{height:43px;padding:7px 10px;border-right:1px solid #e1e3e6;border-bottom:1px solid #e5e7eb;color:#14213a;font-size:10px}.kavaa-table tbody tr:nth-child(odd){background:#ededed}.kavaa-table tbody tr:nth-child(2n){background:#fff}.kavaa-table tbody tr:hover{background:#e7edf5}.strong-cell{font-weight:500;color:#14213a}.badge,.origin-badge{padding:4px 8px;border-radius:12px;font-size:9px;font-weight:600;letter-spacing:0}.origin-badge:before{display:none}.actions-col{width:62px}.menu-trigger{width:28px;height:28px;padding:4px;color:#667085;border-radius:4px}.menu-trigger:hover{color:#c22b22;background:#f9eeee}.menu-dropdown{border-color:#dfe3e8;border-radius:5px;box-shadow:0 7px 18px #0f172a26}.menu-dropdown button{min-height:31px;padding:7px 9px;font-size:10px}.pager{min-height:43px;margin:0;padding:6px 10px;justify-content:flex-start;gap:11px;border-top:1px solid #d3d7dc;background:#fff}.pager-navigation{display:inline-flex;align-items:center;gap:4px}.pager-btn,.pager-number{display:inline-flex;width:25px!important;height:25px!important;min-height:25px!important;align-items:center;justify-content:center;padding:0!important;border:0;border-radius:50%;color:#24324b;background:transparent;font-size:11px;cursor:pointer}.pager-btn:hover:not(:disabled),.pager-number:hover{background:#eef1f4}.pager-number.active{color:#fff;background:#cf584e}.pager-btn:disabled{opacity:.35}.pager select{width:53px;height:25px;min-height:25px;padding:2px 6px;border:1px solid #d3d7dc;border-radius:3px;background:#f7f7f7;font-size:10px}.page-info{color:#14213a;font-size:10px;font-weight:700}@media(max-width:640px){.toolbar{flex-wrap:wrap}.search-box,.search-box input{width:100%}.create-menu{margin-left:auto}}.kavaa-table-wrapper .search-box input{width:220px;height:30px;min-height:30px;padding:5px 31px 5px 9px;border-radius:4px;font-family:Arial,Helvetica,sans-serif;font-size:14px}.toolbar-add-btn{height:28px!important;min-height:28px!important;padding:0 9px!important;font-size:12px!important}.kavaa-table th{font-family:Arial,Helvetica,sans-serif;font-size:14px}.pager{height:55px;min-height:55px;padding:0 18px;gap:18px;border:1px solid #e2e6eb;border-top:0}.pager-navigation{gap:11px}.pager-btn{width:16px!important;height:35px!important;min-height:35px!important;padding:0!important;border-radius:0!important;color:#9baec0!important}.pager-btn:disabled{opacity:1!important;color:#c8d3df!important}.pager-number{width:35px!important;height:35px!important;min-height:35px!important;font-size:12px!important}.pager-number.active{width:35px!important;height:35px!important;min-height:35px!important;background:#d85f52!important}.pager-btn svg{width:14px;height:14px}.pager select{width:78px;height:34px;min-height:34px;border-radius:3px;font-size:13px}.page-info{font-family:Courier New,monospace;font-size:13px;font-weight:700}.kavaa-table th{padding:0}.header-content{display:flex;min-height:43px;align-items:center}.header-label{flex:1;padding:9px 8px;border:0;background:transparent;color:#d5312c;text-align:left;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:700;cursor:pointer}.column-menu-wrapper{position:relative}.column-menu-trigger{width:37px;height:43px;padding:0;border:0;background:#fff;color:#4b4f55;font-size:22px;cursor:pointer}.column-menu{position:absolute;top:43px;right:0;z-index:40;width:250px;padding:4px 0 7px;border:1px solid #d7d7d7;background:#fff;box-shadow:0 4px 10px #0000002e;color:#4b4f55;font-family:Arial,Helvetica,sans-serif;font-size:14px}.column-menu button{display:flex;width:100%;min-height:34px;align-items:center;padding:6px 12px;border:0;background:#fff;text-align:left;font:inherit;cursor:pointer}.column-menu button:hover,.column-visibility-option:hover{background:#f3f3f3}.columns-button{border-top:1px solid #e3e3e3!important}.column-visibility-option{display:flex;min-height:27px;align-items:center;gap:8px;padding:2px 12px;font-size:13px;cursor:pointer}.actions-title{display:flex;min-height:43px;align-items:center;justify-content:center;color:#d5312c;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:700}.column-visibility-option input{accent-color:#c22b22}.actions-header{display:flex;min-height:43px;align-items:center}.actions-title{flex:1}.actions-menu-trigger{flex:0 0 37px;border-left:0!important}.columns-icon{font-size:20px;line-height:1}.chevron{margin-left:auto;font-size:20px}.kavaa-table-wrapper .toolbar{height:48px;min-height:48px;padding:7px 6px;background:#eee}.kavaa-table-wrapper .search-box{width:220px;max-width:220px}.kavaa-table-wrapper .search-box input{width:220px;height:30px;min-height:30px;padding:5px 31px 5px 9px;border:1px solid #e3e3e3;border-radius:4px;font-family:Arial,Helvetica,sans-serif;font-size:14px}.kavaa-table-wrapper .search-icon{right:6px;width:23px;height:23px;color:#333}.column-selector{display:block!important;max-height:230px;overflow-y:auto;border-top:1px solid #ddd;background:#fff}.column-visibility-option{display:flex;min-height:32px;align-items:center;gap:7px;padding:3px 12px;font-size:14px}.column-visibility-option input{width:18px;height:18px;accent-color:#c92d27}.column-selector-actions{display:flex;gap:10px;padding:8px 12px;border-top:1px solid #ddd;background:#fff}.column-selector-actions button{display:flex!important;flex:1;min-height:34px!important;justify-content:center;border:1px solid #d5d5d5!important;border-radius:4px!important;text-align:center!important}.column-selector-actions .apply-columns{border-color:#c92d27!important;background:#c92d27!important;color:#fff!important}.column-selector-actions .reset-columns{background:#f4f4f4!important;color:#555!important}.kavaa-table-wrapper .search-box{width:280px;max-width:280px}.kavaa-table-wrapper .search-box input{width:280px;height:34px;min-height:34px;padding:6px 35px 6px 10px;font-size:16px}.kavaa-table-wrapper .search-icon{right:7px;width:26px;height:26px}.actions-col{width:120px;min-width:120px}.actions-title{justify-content:flex-start;padding-left:10px}.kavaa-table-wrapper .toolbar{height:48px!important;min-height:48px!important;padding:7px 6px!important}.kavaa-table-wrapper .search-box{position:relative!important;width:220px!important;max-width:220px!important}.kavaa-table-wrapper .search-box input{width:220px!important;height:30px!important;min-height:30px!important;padding:5px 31px 5px 9px!important;font-size:14px!important}.kavaa-table-wrapper .search-icon{position:absolute!important;left:auto!important;right:6px!important;width:23px!important;height:23px!important;z-index:2!important;color:#333!important}.create-menu-dropdown{width:268px;padding:8px;border:1px solid #d9e1eb;border-radius:11px;box-shadow:0 10px 24px #0f172a29}.create-menu-dropdown button{display:flex;flex-direction:row;align-items:center;gap:10px;padding:10px 11px;border-radius:8px}.create-option-icon{display:inline-flex;width:30px;height:30px;flex:0 0 30px;align-items:center;justify-content:center;border-radius:8px;background:#fff0ee;color:#c92d28}.create-option-icon.recurring{background:#eef3ff;color:#3659b9}.create-option-icon svg{width:16px;height:16px}.create-option-copy{display:flex;flex-direction:column;gap:2px}.create-menu-dropdown strong{color:#17335b;font-size:12px}.create-menu-dropdown .create-option-copy span{color:#42618a;font-size:11px}.create-menu-dropdown button:hover{background:#f6f8fb}.create-menu-dropdown button:hover .normal{background:#c92d28;color:#fff}.create-menu-dropdown button:hover .recurring{background:#3659b9;color:#fff}.toolbar-add-btn{background:#a50032!important;border-radius:8px!important;box-shadow:0 3px 7px #5d002333!important}.toolbar-add-btn:hover{background:#870029!important}.create-menu-dropdown{width:300px!important;padding:10px 0!important;border:0!important;border-radius:0!important;box-shadow:0 6px 16px #0f172a29!important}.create-menu-dropdown button{min-height:64px;padding:10px 22px!important;border-radius:0!important}.create-option-icon{width:34px!important;height:34px!important;flex-basis:34px!important;border-radius:0!important;background:transparent!important;color:#2864f0!important}.create-option-icon.recurring{color:#16a65a!important}.create-option-copy{gap:3px!important}.create-menu-dropdown strong{font-size:16px!important;font-weight:600!important;color:#42506a!important}.create-menu-dropdown .create-option-copy span{font-size:12px!important;color:#64748b!important}.create-menu-dropdown button:hover .create-option-icon.normal{color:#174ed0!important}.create-menu-dropdown button:hover .create-option-icon.recurring{color:#098a45!important}.create-menu{margin-left:auto}.toolbar-add-btn{height:58px!important;min-height:58px!important;padding:0 24px!important;border-radius:8px 8px 0 0!important;font-size:17px!important;font-weight:700!important}.create-menu-dropdown{top:calc(100% - 1px)!important;right:0!important;width:330px!important;padding:8px 0!important;border-radius:0!important;box-shadow:0 6px 18px #0f172a24!important}.create-menu-dropdown button{min-height:70px!important;padding:10px 27px!important;gap:15px!important}.create-option-icon{width:32px!important;height:32px!important;flex:0 0 32px!important}.create-option-icon svg{width:30px!important;height:30px!important}.create-option-copy span{display:none!important}.create-menu-dropdown strong{font-size:18px!important;font-weight:500!important;color:#4b5870!important;line-height:1.2}.create-menu-dropdown button:hover{background:#f7f7f9!important}.toolbar-add-btn{height:28px!important;min-height:28px!important;padding:0 9px!important;border-radius:8px!important;font-size:12px!important}.create-menu-dropdown{top:calc(100% + 8px)!important;width:300px!important;padding:10px 0!important}.create-menu-dropdown button{min-height:64px!important;padding:10px 22px!important;gap:10px!important}.create-option-icon{width:34px!important;height:34px!important;flex:0 0 34px!important}.create-option-icon svg{width:28px!important;height:28px!important}.create-option-copy span{display:flex!important}.create-menu-dropdown strong{font-size:16px!important;font-weight:600!important}.create-menu-dropdown .create-option-copy span{font-size:12px!important}.toolbar-add-btn{height:46px!important;min-height:46px!important;padding:0 22px!important;border-radius:8px 8px 0 0!important;background:#99002d!important;font-size:16px!important;font-weight:700!important}.toolbar-add-btn:hover{background:#820026!important}.toolbar-add-btn>svg:first-child{width:20px!important;height:20px!important}.create-menu-dropdown{top:calc(100% - 1px)!important;width:330px!important;padding:8px 0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:0 6px 16px #0f172a26!important}.create-menu-dropdown button{display:flex!important;min-height:70px!important;flex-direction:row!important;align-items:center!important;gap:15px!important;padding:10px 26px!important;border-radius:0!important;background:#fff!important}.create-option-icon{display:inline-flex;width:30px;height:30px;flex:0 0 30px;align-items:center;justify-content:center;color:#2d68ef}.create-option-icon.recurring{color:#14a65a}.create-option-icon svg{width:30px;height:30px}.create-menu-dropdown strong{font-size:18px!important;font-weight:500!important;color:#4c5870!important}.create-menu-dropdown button>span:not(.create-option-icon){display:none!important}.create-menu-dropdown button:hover{background:#f7f8fb!important}.toolbar-add-btn{height:28px!important;min-height:28px!important;padding:0 9px!important;border-radius:4px!important;background:#c22b22!important;font-size:12px!important;font-weight:700!important;box-shadow:none!important}.toolbar-add-btn>svg:first-child{width:14px!important;height:14px!important}.create-menu-dropdown{top:calc(100% + 8px)!important;width:250px!important;padding:6px!important;border:1px solid #e2e8f0!important;border-radius:10px!important;box-shadow:0 14px 32px #0f172a29!important}.create-menu-dropdown button{display:flex!important;min-height:0!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;padding:10px 12px!important;border-radius:7px!important}.create-menu-dropdown strong{font-size:13px!important;font-weight:700!important;color:#1f2937!important}.create-menu{position:relative;margin-left:auto}.toolbar-add-btn{margin-left:0;min-height:29px!important;height:29px!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px!important;border:0;border-radius:4px!important;background:#c22b22!important;color:#fff;font-size:10px!important;font-weight:700!important;box-shadow:none!important;transform:none!important}.toolbar-add-btn:hover{background:#a82219!important;transform:none!important}.toolbar-add-btn>svg:first-child{width:13px!important;height:13px!important}.toolbar-add-btn .chevron{width:13px!important;height:13px!important}.create-menu-dropdown{position:absolute;top:calc(100% + 8px)!important;right:0;z-index:20;width:250px!important;padding:6px!important;border:1px solid #e2e8f0!important;border-radius:10px!important;background:#fff;box-shadow:0 14px 32px #0f172a29!important}.create-menu-dropdown button{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;width:100%;min-height:0!important;padding:10px 12px!important;border:0;border-radius:7px!important;background:transparent;text-align:left;cursor:pointer}.create-menu-dropdown button:hover{background:#fef2f2!important;color:#a82219!important}.create-menu-dropdown strong{font-size:13px!important;color:#1f2937!important}.create-menu-dropdown button>span{display:block!important;color:#64748b!important;font-size:12px!important}.create-menu-dropdown button>span:not(.create-option-icon){display:block!important;color:#64748b!important;font-size:12px!important}.pager .pager-refresh{display:inline-flex;width:46px;height:46px;min-height:46px;align-items:center;justify-content:center;margin-left:auto;padding:0;border:1px solid #c8ced8;border-radius:8px;background:#fff;color:#263b69;cursor:pointer}.pager .pager-refresh:hover{border-color:#9aa9bd;background:#f8fafc}.pager .pager-refresh svg{width:24px;height:24px}.pager .pager-refresh{width:46px;height:46px;min-height:46px;border-radius:8px}.pager .pager-refresh svg{width:26px;height:26px}.pager .pager-refresh svg{width:23px;height:23px}.kavaa-table-wrapper .pager{height:64px;min-height:64px;padding:0 20px;gap:18px;border:1px solid #e2e6eb;border-top:1px solid #e2e6eb;background:#fff;box-sizing:border-box}.kavaa-table-wrapper .pager-navigation{gap:11px}.kavaa-table-wrapper .pager-btn{width:16px!important;height:35px!important;min-height:35px!important;border-radius:0!important;color:#9baec0!important}.kavaa-table-wrapper .pager-btn:disabled{color:#c8d3df!important;opacity:1!important}.kavaa-table-wrapper .pager-number{width:35px!important;height:35px!important;min-height:35px!important;color:#34455f;font-size:12px!important}.kavaa-table-wrapper .pager-number.active{color:#fff;background:#d85f52!important}.kavaa-table-wrapper .pager select{width:78px;height:34px;min-height:34px;border-color:#d7dce3;border-radius:4px;background:#f7f7f7;font-size:13px}.kavaa-table-wrapper .page-info{color:#14213a;font-family:Courier New,monospace;font-size:13px;font-weight:700}.kavaa-table-wrapper .pager .pager-refresh{width:74px;height:46px;min-height:46px;border-color:#c8ced8;border-radius:8px}.kavaa-table-wrapper .pager .pager-refresh mat-icon{width:23px;height:23px;font-size:23px}.kavaa-table-wrapper,.kavaa-table-wrapper button,.kavaa-table-wrapper input,.kavaa-table-wrapper select{font-family:Inter var,ui-sans-serif,system-ui,sans-serif}.kavaa-table-wrapper .kavaa-table th{font-size:14px!important;font-weight:600!important;line-height:28.13px}.kavaa-table-wrapper .header-label,.kavaa-table-wrapper .actions-title{font-size:18px!important;font-weight:600!important}.kavaa-table-wrapper .kavaa-table td{font-size:16px!important;font-weight:500;line-height:21px}.kavaa-table-wrapper .kavaa-table td strong{font-size:inherit!important;font-weight:inherit}.kavaa-table-wrapper .page-info{font-family:Inter var,ui-sans-serif,system-ui,sans-serif;font-size:14px;font-weight:500;line-height:26px}.kavaa-table-wrapper .pager-number.active{font-size:17.616px!important;font-weight:400;line-height:2}.kavaa-table-wrapper .pager .pager-refresh{position:relative;display:inline-flex!important;width:74px!important;height:46px!important;min-height:46px!important;align-items:center;justify-content:center;margin-left:auto;padding:0!important;border:1px solid #c8ced8!important;border-radius:8px!important;background:#fff;color:#263b69;cursor:pointer;box-sizing:border-box}.kavaa-table-wrapper .pager .pager-refresh:hover{border-color:#9aa9bd!important;background:#f8fafc}.kavaa-table-wrapper .pager .pager-refresh mat-icon{width:26px;height:26px;margin:0!important;font-size:26px}.kavaa-table-wrapper .pager .pager-refresh:after{position:absolute;z-index:60;bottom:calc(100% + 7px);left:50%;padding:9px 12px;border-radius:5px;background:#2f3136;color:#fff;content:attr(data-tooltip);font-family:Arial,Helvetica,sans-serif;font-size:16px;font-weight:400;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .15s ease,transform .15s ease}.kavaa-table-wrapper .pager .pager-refresh:hover:after,.kavaa-table-wrapper .pager .pager-refresh:focus-visible:after{opacity:1;transform:translate(-50%)}.kavaa-table-wrapper .actions-col{width:120px;min-width:120px}.kavaa-table-wrapper .row-actions{display:grid;grid-template-columns:repeat(4,26px);justify-content:start;gap:4px}.kavaa-table-wrapper .action-icon{position:relative;width:26px;height:26px;padding:0;color:#98a2b3;border:0;border-radius:50%;background:transparent}.kavaa-table-wrapper .action-icon svg{width:16px;height:16px}.kavaa-table-wrapper .action-icon:hover{color:#475569;border:0;background:#eef2f7}.kavaa-table-wrapper .action-icon.status-action{color:#16a34a;background:#ecfdf3}.kavaa-table-wrapper .action-icon.status-action:hover{color:#15803d;background:#d1fae5}.kavaa-table-wrapper .action-icon:after{position:absolute;z-index:50;bottom:calc(100% + 7px);left:50%;width:max-content;max-width:190px;padding:6px 8px;border-radius:5px;background:#293241;color:#fff;content:attr(data-tooltip);font-size:12px;font-weight:500;line-height:1.2;opacity:0;pointer-events:none;transform:translate(-50%) translateY(3px);transition:opacity .15s ease,transform .15s ease}.kavaa-table-wrapper .action-icon:hover:after,.kavaa-table-wrapper .action-icon:focus-visible:after{opacity:1;transform:translate(-50%) translateY(0)}.kavaa-table-wrapper .origin-badge,.kavaa-table-wrapper .badge{font-size:16px!important;font-weight:500;line-height:21px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "pipe", type: i1.LowerCasePipe, name: "lowercase" }, { kind: "pipe", type: i1.DatePipe, name: "date" }] });
249
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: MeetingListTable, isStandalone: true, selector: "kavaa-meeting-list-table", inputs: { items: "items", loading: "loading" }, outputs: { openMeetingRequested: "openMeetingRequested", editMeetingRequested: "editMeetingRequested", archiveMeetingRequested: "archiveMeetingRequested", startMeetingRequested: "startMeetingRequested", closeMeetingRequested: "closeMeetingRequested", manageMeetingSectionRequested: "manageMeetingSectionRequested", generateOccurrenceRequested: "generateOccurrenceRequested", refreshRequested: "refreshRequested" }, host: { listeners: { "document:click": "onDocumentClick($event)" } }, ngImport: i0, template: "<div class=\"kavaa-table-wrapper\">\n <div class=\"toolbar\">\n \n <div class=\"search-box\">\n <svg class=\"search-icon\" viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z\"/></svg>\n <input\n type=\"text\"\n placeholder=\"Rechercher...\"\n [(ngModel)]=\"searchTerm\"\n (ngModelChange)=\"onSearchChange()\"\n />\n </div>\n\n <select [(ngModel)]=\"statusFilter\" (ngModelChange)=\"onStatusFilterChange()\">\n <option *ngFor=\"let opt of statusOptions\" [value]=\"opt.value\">{{ opt.label }}</option>\n </select>\n <div class=\"create-menu\">\n <button\n class=\"btn-primary-red toolbar-add-btn\"\n type=\"button\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"openCreateMenu\"\n (click)=\"toggleCreateMenu($event)\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z\"/></svg>\n <span>Ajouter une r\u00E9union</span>\n <svg class=\"chevron\" viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"m7 10 5 5 5-5z\"/></svg>\n </button>\n\n <div class=\"create-menu-dropdown\" *ngIf=\"openCreateMenu\" role=\"menu\">\n <button type=\"button\" role=\"menuitem\" (click)=\"createMeeting('meeting')\">\n <strong>R\u00E9union normale</strong>\n <span>Cr\u00E9er une r\u00E9union unique</span>\n </button>\n <button type=\"button\" role=\"menuitem\" (click)=\"createMeeting('series')\">\n <strong>R\u00E9union r\u00E9currente</strong>\n <span>Cr\u00E9er une s\u00E9rie de r\u00E9unions</span>\n </button>\n </div>\n </div>\n </div>\n\n <p *ngIf=\"loading\" class=\"loading-state\">Chargement...</p>\n\n <div class=\"grouping-hint\" *ngIf=\"!loading\">Pour regrouper, glissez un en-t\u00EAte de colonne et d\u00E9posez-le ici.</div>\n <div class=\"table-scroll\" *ngIf=\"!loading\">\n <table class=\"kavaa-table\">\n <thead><tr><th *ngFor=\"let column of columns\" [hidden]=\"!column.visible\"><div class=\"header-content\"><button class=\"header-label\" type=\"button\" (click)=\"toggleSort(column.key)\">{{ column.label }}</button><div class=\"column-menu-wrapper\"><button class=\"column-menu-trigger\" type=\"button\" (click)=\"toggleColumnMenu(column.key, $event)\">\u22EE</button><div class=\"column-menu\" *ngIf=\"openColumnMenu === column.key\"><button type=\"button\" (click)=\"sortColumn(column.key, 'asc')\">\u2191 Tri croissant</button><button type=\"button\" (click)=\"sortColumn(column.key, 'desc')\">\u2193 Tri d\u00E9croissant</button><button type=\"button\" class=\"columns-button\" (click)=\"toggleColumnSelector()\"><span class=\"columns-icon\">\u25A5</span> Colonnes <span class=\"chevron\">\u2303</span></button><div class=\"column-selector\" *ngIf=\"showColumnSelector\"><label *ngFor=\"let selectableColumn of columns\" class=\"column-visibility-option\"><input type=\"checkbox\" [checked]=\"selectableColumn.visible\" (change)=\"toggleColumnVisibility(selectableColumn)\"><span>{{ selectableColumn.label }}</span></label><div class=\"column-selector-actions\"><button type=\"button\" class=\"apply-columns\" (click)=\"applyColumnSelection()\">Apply</button><button type=\"button\" class=\"reset-columns\" (click)=\"resetColumnSelection()\">Reset</button></div></div></div></div></div></th><th class=\"actions-col\"><div class=\"actions-header\"><span class=\"actions-title\">Actions</span><button class=\"column-menu-trigger actions-menu-trigger\" type=\"button\" (click)=\"$event.stopPropagation()\" aria-label=\"Actions\">\u22EE</button></div></th></tr></thead>\n <tbody>\n <tr *ngFor=\"let m of paginatedItems; let i = index\">\n <td *ngIf=\"isColumnVisible('title')\" class=\"strong-cell\">{{ m.title }}</td>\n <td *ngIf=\"isColumnVisible('meetingTypeCode')\">{{ m.meetingTypeCode }}</td>\n <td *ngIf=\"isColumnVisible('origin')\"><span class=\"origin-badge origin-{{ m.origin | lowercase }}\">{{ originLabel(m.origin) }}</span></td>\n <td *ngIf=\"isColumnVisible('status')\"><span class=\"badge status-{{ m.status | lowercase }}\">{{ statusLabel(m.status) }}</span></td>\n <td *ngIf=\"isColumnVisible('scheduledAt')\">{{ m.scheduledAt | date:\"short\" }}</td>\n <td class=\"actions-col\">\n <div class=\"row-actions\" aria-label=\"Actions de la r\u00E9union\">\n <button class=\"action-icon\" type=\"button\" (click)=\"onOpen(m.meetingId)\" aria-label=\"Voir la r\u00E9union\" data-tooltip=\"Voir la r\u00E9union\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 12.5a5 5 0 1 1 5-5 5 5 0 0 1-5 5zm0-8a3 3 0 1 0 3 3 3 3 0 0 0-3-3z\"/></svg>\n </button>\n <button class=\"action-icon\" type=\"button\" (click)=\"onEdit(m.meetingId)\" aria-label=\"Modifier la r\u00E9union\" data-tooltip=\"Modifier la r\u00E9union\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.42l-2.34-2.34a1 1 0 0 0-1.42 0l-1.83 1.83 3.75 3.75 1.84-1.82z\"/></svg>\n </button>\n <button class=\"action-icon\" type=\"button\" (click)=\"onWorkspace(m.meetingId)\" aria-label=\"Espace de r\u00E9union\" data-tooltip=\"Espace de r\u00E9union\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M3 3h8v8H3V3zm10 0h8v5h-8V3zm0 7h8v11h-8V10zM3 13h8v8H3v-8z\"/></svg>\n </button>\n <ng-container *ngIf=\"m.status === 'PLANNED'\">\n <button type=\"button\" class=\"action-icon status-action\" (click)=\"onStartMeeting(m.meetingId)\" aria-label=\"Ouvrir la r\u00E9union\" data-tooltip=\"Ouvrir la r\u00E9union\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M8 5v14l11-7L8 5Z\"/></svg>\n </button>\n <button type=\"button\" class=\"action-icon status-action\" (click)=\"openMeetingSection(m.meetingId, 'invitations')\" aria-label=\"G\u00E9rer les invitations\" data-tooltip=\"G\u00E9rer les invitations\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z\"/></svg>\n </button>\n </ng-container>\n <ng-container *ngIf=\"m.status === 'IN_SESSION'\">\n <button type=\"button\" class=\"action-icon status-action\" (click)=\"onCloseMeeting(m.meetingId)\" aria-label=\"Cl\u00F4turer la r\u00E9union\" data-tooltip=\"Cl\u00F4turer la r\u00E9union\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M6 6h12v12H6V6Z\"/></svg>\n </button>\n <button type=\"button\" class=\"action-icon status-action\" (click)=\"onAttendance(m.meetingId)\" aria-label=\"G\u00E9rer les pr\u00E9sences\" data-tooltip=\"G\u00E9rer les pr\u00E9sences\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M16 11c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3ZM8 11c1.66 0 3-1.34 3-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3Zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5C15 14.17 10.33 13 8 13Z\"/></svg>\n </button>\n </ng-container>\n <ng-container *ngIf=\"m.status === 'CLOSED'\">\n <button type=\"button\" class=\"action-icon status-action\" (click)=\"onArchiveMeeting(m.meetingId)\" aria-label=\"Archiver la r\u00E9union\" data-tooltip=\"Archiver la r\u00E9union\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M20.5 5.2 19.1 3.6A1.5 1.5 0 0 0 18 3H6c-.5 0-.9.2-1.2.6L3.5 5.2A2 2 0 0 0 3 6.5V19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.5c0-.5-.2-.9-.5-1.3ZM12 17.5 6.5 12H10v-2h4v2h3.5L12 17.5ZM5.1 5l.8-1h12l1 1H5.1Z\"/></svg>\n </button>\n <button type=\"button\" class=\"action-icon status-action\" (click)=\"onMinutes(m.meetingId)\" aria-label=\"Proc\u00E8s-verbal de la r\u00E9union\" data-tooltip=\"Proc\u00E8s-verbal de la r\u00E9union\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M6 2h9l5 5v15H6V2Zm8 1.5V8h4.5L14 3.5ZM9 12v2h8v-2H9Zm0 4v2h8v-2H9Z\"/></svg>\n </button>\n </ng-container>\n <button *ngIf=\"isRecurringMeeting(m)\" class=\"action-icon status-action\" type=\"button\" (click)=\"onGenerateOccurrence(m)\" aria-label=\"G\u00E9n\u00E9rer une occurrence\" data-tooltip=\"G\u00E9n\u00E9rer une occurrence\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M12 4a8 8 0 1 0 8 8h-2a6 6 0 1 1-6-6V2L16 6l-4 4V4z\"/></svg>\n </button>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n\n <p *ngIf=\"paginatedItems.length === 0\" class=\"empty-state\">Aucune r\u00E9union trouv\u00E9e.</p>\n </div>\n\n <div class=\"pager\" *ngIf=\"!loading && totalItems > 0\">\n <div class=\"pager-navigation\">\n <button class=\"pager-btn pager-first\" type=\"button\" (click)=\"goToPage(1)\" [disabled]=\"currentPage === 1\" aria-label=\"Premi\u00E8re page\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"M6 6h2v12H6zm3.5 6 7-6v12z\"/></svg></button>\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage - 1)\" [disabled]=\"currentPage === 1\" aria-label=\"Page pr\u00E9c\u00E9dente\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"m15 6-6 6 6 6z\"/></svg></button>\n <button *ngFor=\"let page of visiblePages\" class=\"pager-number\" type=\"button\" [class.active]=\"page === currentPage\" (click)=\"goToPage(page)\">{{ page }}</button>\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage + 1)\" [disabled]=\"currentPage === totalPages\" aria-label=\"Page suivante\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"m9 6 6 6-6 6z\"/></svg></button>\n <button class=\"pager-btn pager-last\" type=\"button\" (click)=\"goToPage(totalPages)\" [disabled]=\"currentPage === totalPages\" aria-label=\"Derniere page\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"m8 6 7 6-7 6zm8 0h2v12h-2z\"/></svg></button>\n </div>\n <select [(ngModel)]=\"pageSize\" (ngModelChange)=\"onPageSizeChange()\" aria-label=\"Elements par page\">\n <option *ngFor=\"let size of pageSizeOptions\" [value]=\"size\">{{ size }}</option>\n </select>\n <span class=\"page-info\">Total : {{ totalItems }}</span>\n <button class=\"pager-refresh\" mat-stroked-button color=\"primary\" type=\"button\" (click)=\"refresh()\" aria-label=\"Refresh\" data-tooltip=\"refresh\"><mat-icon [svgIcon]=\"'heroicons_outline:refresh'\" aria-hidden=\"true\"></mat-icon></button>\n </div>\n</div>\n\n\n\n\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n", styles: [".kavaa-table-wrapper{font-family:system-ui,sans-serif;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;padding:16px}.toolbar{display:flex;gap:12px;margin-bottom:16px}.search-box{position:relative;display:flex;align-items:center}.search-icon{position:absolute;right:10px;color:#495057;pointer-events:none}.search-box input{padding:8px 32px 8px 12px;border:1px solid #e0e0e0;border-radius:6px;width:250px;color:#495057;font-size:13px}.toolbar{display:flex;align-items:center;gap:12px}.toolbar-add-btn{margin-left:auto;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 18px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;border:none;background:#c22b22;color:#fff;transition:all .2s ease}.toolbar-add-btn:hover{background:#a82219;transform:translateY(-1px)}.toolbar-add-btn:active{transform:scale(.98)}.toolbar-add-btn svg{width:16px;height:16px;fill:currentColor;flex-shrink:0}.toolbar-add-btn .chevron{transition:transform .2s ease}.toolbar-add-btn[aria-expanded=true] .chevron{transform:rotate(180deg)}.create-menu-dropdown{position:absolute;top:calc(100% + 8px);right:0;z-index:20;width:250px;padding:6px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;box-shadow:0 14px 32px #0f172a29}.create-menu-dropdown button{display:flex;flex-direction:column;gap:3px;width:100%;padding:10px 12px;border:0;border-radius:7px;color:#1f2937;background:transparent;text-align:left;cursor:pointer}.create-menu-dropdown button:hover{color:#a82219;background:#fef2f2}.create-menu-dropdown strong{font-size:13px}.create-menu-dropdown span{color:#64748b;font-size:12px}.toolbar select{padding:8px 12px;border:1px solid #e0e0e0;border-radius:6px;color:#495057;font-size:13px;background:#fff}.table-scroll{overflow-x:auto}.kavaa-table{width:100%;border-collapse:collapse}.kavaa-table th{text-align:left;font-size:12px;text-transform:uppercase;color:#495057;padding:10px 8px;border-bottom:2px solid #f5f5f5;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;font-weight:600}.kavaa-table th:hover{background:#f5f5f5}.sort-icon{font-size:10px;margin-left:4px}.kavaa-table td{padding:10px 8px;border-bottom:1px solid #f5f5f5;font-size:13px;color:#495057}.kavaa-table tbody tr:hover{background:#fafafa}.strong-cell{font-weight:600}.badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:12px;letter-spacing:.3px;background:#f5f5f5;color:#495057}.status-draft{background:#fff3cd;color:#856404}.status-planned{background:#d1ecf1;color:#0c5460}.status-in_session{background:#d4edda;color:#155724}.status-closed{background:#e2e3e5;color:#383d41}.status-archived{background:#f5f5f5;color:#6c757d}.actions-col{width:50px;text-align:center;position:relative}.row-actions{display:inline-flex;align-items:center;justify-content:center;gap:6px}.action-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;color:#475569;border:1px solid #e2e8f0;border-radius:7px;background:#fff;cursor:pointer}.action-icon:hover{color:#a6192e;border-color:#a6192e;background:#fff6f7}.recurrence-action{color:#a6192e}.menu-wrapper{position:relative;display:inline-block}.menu-trigger{background:none;border:none;cursor:pointer;padding:4px;color:#495057;display:flex;align-items:center;justify-content:center;border-radius:4px}.menu-trigger:hover{background:#f5f5f5}.menu-dropdown{position:absolute;right:0;top:100%;background:#fff;border:1px solid #f5f5f5;border-radius:6px;box-shadow:0 4px 12px #0000001f;z-index:10;min-width:210px;overflow:hidden}.menu-dropdown button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:8px 12px;background:none;border:none;cursor:pointer;font-size:13px;color:#495057}.menu-dropdown button:hover{background:#f5f5f5}.pager{display:flex;align-items:center;gap:12px;margin-top:16px;justify-content:flex-end}.pager select{padding:6px 8px;border:1px solid #e0e0e0;border-radius:6px;color:#495057;font-size:13px}.pager-btn{display:flex;align-items:center;justify-content:center;padding:6px;border:1px solid #e0e0e0;border-radius:6px;background:#fff;color:#495057;cursor:pointer}.pager-btn:hover:not(:disabled){background:#f5f5f5}.pager-btn:disabled{opacity:.35;cursor:not-allowed}.page-info{font-size:13px;color:#495057}.loading-state,.empty-state{color:#6c757d;font-style:italic;padding:24px;text-align:center}.origin-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}.origin-badge:before{width:6px;height:6px;border-radius:50%;background:currentColor;content:\"\"}.origin-manual{background:#f1f5f9;color:#64748b}.origin-template{background:#fdecea;color:#c22b22}.origin-recurrence{background:#ede9fe;color:#6d28d9}.kavaa-table-wrapper{padding:0;border-radius:7px;box-shadow:none;overflow:hidden}.toolbar{min-height:39px;margin:0;padding:5px 9px;gap:8px;background:#ececec;border-bottom:1px solid #d7d7d7}.search-box input{width:185px;height:27px;padding:5px 29px 5px 7px;border:1px solid #d5d9df;border-radius:3px;color:#4b5563;background:#fff;font-size:10px;box-sizing:border-box}.search-icon{right:7px;width:16px;height:16px;color:#28364b}.toolbar select{height:27px;padding:3px 23px 3px 7px;border:1px solid #d5d9df;border-radius:14px;background:#fff;font-size:10px}.toolbar-add-btn{min-height:29px!important;height:29px;padding:0 10px;border-radius:4px;font-size:10px;box-shadow:none}.toolbar-add-btn:hover{transform:none}.grouping-hint{padding:10px 8px 8px;border-bottom:1px solid #d9dce1;color:#5f6670;background:#fff;font-size:11px}.kavaa-table{min-width:900px}.kavaa-table th{padding:9px 8px;border-right:1px solid #d9dce1;border-bottom:1px solid #d9dce1;color:#d5312c;background:#fff;font-size:12px;font-weight:700;text-transform:none}.kavaa-table th:hover{background:#f7f7f7}.kavaa-table td{height:43px;padding:7px 10px;border-right:1px solid #e1e3e6;border-bottom:1px solid #e5e7eb;color:#14213a;font-size:10px}.kavaa-table tbody tr:nth-child(odd){background:#ededed}.kavaa-table tbody tr:nth-child(2n){background:#fff}.kavaa-table tbody tr:hover{background:#e7edf5}.strong-cell{font-weight:500;color:#14213a}.badge,.origin-badge{padding:4px 8px;border-radius:12px;font-size:9px;font-weight:600;letter-spacing:0}.origin-badge:before{display:none}.actions-col{width:62px}.menu-trigger{width:28px;height:28px;padding:4px;color:#667085;border-radius:4px}.menu-trigger:hover{color:#c22b22;background:#f9eeee}.menu-dropdown{border-color:#dfe3e8;border-radius:5px;box-shadow:0 7px 18px #0f172a26}.menu-dropdown button{min-height:31px;padding:7px 9px;font-size:10px}.pager{min-height:43px;margin:0;padding:6px 10px;justify-content:flex-start;gap:11px;border-top:1px solid #d3d7dc;background:#fff}.pager-navigation{display:inline-flex;align-items:center;gap:4px}.pager-btn,.pager-number{display:inline-flex;width:25px!important;height:25px!important;min-height:25px!important;align-items:center;justify-content:center;padding:0!important;border:0;border-radius:50%;color:#24324b;background:transparent;font-size:11px;cursor:pointer}.pager-btn:hover:not(:disabled),.pager-number:hover{background:#eef1f4}.pager-number.active{color:#fff;background:#cf584e}.pager-btn:disabled{opacity:.35}.pager select{width:53px;height:25px;min-height:25px;padding:2px 6px;border:1px solid #d3d7dc;border-radius:3px;background:#f7f7f7;font-size:10px}.page-info{color:#14213a;font-size:10px;font-weight:700}@media(max-width:640px){.toolbar{flex-wrap:wrap}.search-box,.search-box input{width:100%}.create-menu{margin-left:auto}}.kavaa-table-wrapper .search-box input{width:220px;height:30px;min-height:30px;padding:5px 31px 5px 9px;border-radius:4px;font-family:Arial,Helvetica,sans-serif;font-size:14px}.toolbar-add-btn{height:28px!important;min-height:28px!important;padding:0 9px!important;font-size:12px!important}.kavaa-table th{font-family:Arial,Helvetica,sans-serif;font-size:14px}.pager{height:55px;min-height:55px;padding:0 18px;gap:18px;border:1px solid #e2e6eb;border-top:0}.pager-navigation{gap:11px}.pager-btn{width:16px!important;height:35px!important;min-height:35px!important;padding:0!important;border-radius:0!important;color:#9baec0!important}.pager-btn:disabled{opacity:1!important;color:#c8d3df!important}.pager-number{width:35px!important;height:35px!important;min-height:35px!important;font-size:12px!important}.pager-number.active{width:35px!important;height:35px!important;min-height:35px!important;background:#d85f52!important}.pager-btn svg{width:14px;height:14px}.pager select{width:78px;height:34px;min-height:34px;border-radius:3px;font-size:13px}.page-info{font-family:Courier New,monospace;font-size:13px;font-weight:700}.kavaa-table th{padding:0}.header-content{display:flex;min-height:43px;align-items:center}.header-label{flex:1;padding:9px 8px;border:0;background:transparent;color:#d5312c;text-align:left;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:700;cursor:pointer}.column-menu-wrapper{position:relative}.column-menu-trigger{width:37px;height:43px;padding:0;border:0;background:#fff;color:#4b4f55;font-size:22px;cursor:pointer}.column-menu{position:absolute;top:43px;right:0;z-index:40;width:250px;padding:4px 0 7px;border:1px solid #d7d7d7;background:#fff;box-shadow:0 4px 10px #0000002e;color:#4b4f55;font-family:Arial,Helvetica,sans-serif;font-size:14px}.column-menu button{display:flex;width:100%;min-height:34px;align-items:center;padding:6px 12px;border:0;background:#fff;text-align:left;font:inherit;cursor:pointer}.column-menu button:hover,.column-visibility-option:hover{background:#f3f3f3}.columns-button{border-top:1px solid #e3e3e3!important}.column-visibility-option{display:flex;min-height:27px;align-items:center;gap:8px;padding:2px 12px;font-size:13px;cursor:pointer}.actions-title{display:flex;min-height:43px;align-items:center;justify-content:center;color:#d5312c;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:700}.column-visibility-option input{accent-color:#c22b22}.actions-header{display:flex;min-height:43px;align-items:center}.actions-title{flex:1}.actions-menu-trigger{flex:0 0 37px;border-left:0!important}.columns-icon{font-size:20px;line-height:1}.chevron{margin-left:auto;font-size:20px}.kavaa-table-wrapper .toolbar{height:48px;min-height:48px;padding:7px 6px;background:#eee}.kavaa-table-wrapper .search-box{width:220px;max-width:220px}.kavaa-table-wrapper .search-box input{width:220px;height:30px;min-height:30px;padding:5px 31px 5px 9px;border:1px solid #e3e3e3;border-radius:4px;font-family:Arial,Helvetica,sans-serif;font-size:14px}.kavaa-table-wrapper .search-icon{right:6px;width:23px;height:23px;color:#333}.column-selector{display:block!important;max-height:230px;overflow-y:auto;border-top:1px solid #ddd;background:#fff}.column-visibility-option{display:flex;min-height:32px;align-items:center;gap:7px;padding:3px 12px;font-size:14px}.column-visibility-option input{width:18px;height:18px;accent-color:#c92d27}.column-selector-actions{display:flex;gap:10px;padding:8px 12px;border-top:1px solid #ddd;background:#fff}.column-selector-actions button{display:flex!important;flex:1;min-height:34px!important;justify-content:center;border:1px solid #d5d5d5!important;border-radius:4px!important;text-align:center!important}.column-selector-actions .apply-columns{border-color:#c92d27!important;background:#c92d27!important;color:#fff!important}.column-selector-actions .reset-columns{background:#f4f4f4!important;color:#555!important}.kavaa-table-wrapper .search-box{width:280px;max-width:280px}.kavaa-table-wrapper .search-box input{width:280px;height:34px;min-height:34px;padding:6px 35px 6px 10px;font-size:16px}.kavaa-table-wrapper .search-icon{right:7px;width:26px;height:26px}.actions-col{width:120px;min-width:120px}.actions-title{justify-content:flex-start;padding-left:10px}.kavaa-table-wrapper .toolbar{height:48px!important;min-height:48px!important;padding:7px 6px!important}.kavaa-table-wrapper .search-box{position:relative!important;width:220px!important;max-width:220px!important}.kavaa-table-wrapper .search-box input{width:220px!important;height:30px!important;min-height:30px!important;padding:5px 31px 5px 9px!important;font-size:14px!important}.kavaa-table-wrapper .search-icon{position:absolute!important;left:auto!important;right:6px!important;width:23px!important;height:23px!important;z-index:2!important;color:#333!important}.create-menu-dropdown{width:268px;padding:8px;border:1px solid #d9e1eb;border-radius:11px;box-shadow:0 10px 24px #0f172a29}.create-menu-dropdown button{display:flex;flex-direction:row;align-items:center;gap:10px;padding:10px 11px;border-radius:8px}.create-option-icon{display:inline-flex;width:30px;height:30px;flex:0 0 30px;align-items:center;justify-content:center;border-radius:8px;background:#fff0ee;color:#c92d28}.create-option-icon.recurring{background:#eef3ff;color:#3659b9}.create-option-icon svg{width:16px;height:16px}.create-option-copy{display:flex;flex-direction:column;gap:2px}.create-menu-dropdown strong{color:#17335b;font-size:12px}.create-menu-dropdown .create-option-copy span{color:#42618a;font-size:11px}.create-menu-dropdown button:hover{background:#f6f8fb}.create-menu-dropdown button:hover .normal{background:#c92d28;color:#fff}.create-menu-dropdown button:hover .recurring{background:#3659b9;color:#fff}.toolbar-add-btn{background:#a50032!important;border-radius:8px!important;box-shadow:0 3px 7px #5d002333!important}.toolbar-add-btn:hover{background:#870029!important}.create-menu-dropdown{width:300px!important;padding:10px 0!important;border:0!important;border-radius:0!important;box-shadow:0 6px 16px #0f172a29!important}.create-menu-dropdown button{min-height:64px;padding:10px 22px!important;border-radius:0!important}.create-option-icon{width:34px!important;height:34px!important;flex-basis:34px!important;border-radius:0!important;background:transparent!important;color:#2864f0!important}.create-option-icon.recurring{color:#16a65a!important}.create-option-copy{gap:3px!important}.create-menu-dropdown strong{font-size:16px!important;font-weight:600!important;color:#42506a!important}.create-menu-dropdown .create-option-copy span{font-size:12px!important;color:#64748b!important}.create-menu-dropdown button:hover .create-option-icon.normal{color:#174ed0!important}.create-menu-dropdown button:hover .create-option-icon.recurring{color:#098a45!important}.create-menu{margin-left:auto}.toolbar-add-btn{height:58px!important;min-height:58px!important;padding:0 24px!important;border-radius:8px 8px 0 0!important;font-size:17px!important;font-weight:700!important}.create-menu-dropdown{top:calc(100% - 1px)!important;right:0!important;width:330px!important;padding:8px 0!important;border-radius:0!important;box-shadow:0 6px 18px #0f172a24!important}.create-menu-dropdown button{min-height:70px!important;padding:10px 27px!important;gap:15px!important}.create-option-icon{width:32px!important;height:32px!important;flex:0 0 32px!important}.create-option-icon svg{width:30px!important;height:30px!important}.create-option-copy span{display:none!important}.create-menu-dropdown strong{font-size:18px!important;font-weight:500!important;color:#4b5870!important;line-height:1.2}.create-menu-dropdown button:hover{background:#f7f7f9!important}.toolbar-add-btn{height:28px!important;min-height:28px!important;padding:0 9px!important;border-radius:8px!important;font-size:12px!important}.create-menu-dropdown{top:calc(100% + 8px)!important;width:300px!important;padding:10px 0!important}.create-menu-dropdown button{min-height:64px!important;padding:10px 22px!important;gap:10px!important}.create-option-icon{width:34px!important;height:34px!important;flex:0 0 34px!important}.create-option-icon svg{width:28px!important;height:28px!important}.create-option-copy span{display:flex!important}.create-menu-dropdown strong{font-size:16px!important;font-weight:600!important}.create-menu-dropdown .create-option-copy span{font-size:12px!important}.toolbar-add-btn{height:46px!important;min-height:46px!important;padding:0 22px!important;border-radius:8px 8px 0 0!important;background:#99002d!important;font-size:16px!important;font-weight:700!important}.toolbar-add-btn:hover{background:#820026!important}.toolbar-add-btn>svg:first-child{width:20px!important;height:20px!important}.create-menu-dropdown{top:calc(100% - 1px)!important;width:330px!important;padding:8px 0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:0 6px 16px #0f172a26!important}.create-menu-dropdown button{display:flex!important;min-height:70px!important;flex-direction:row!important;align-items:center!important;gap:15px!important;padding:10px 26px!important;border-radius:0!important;background:#fff!important}.create-option-icon{display:inline-flex;width:30px;height:30px;flex:0 0 30px;align-items:center;justify-content:center;color:#2d68ef}.create-option-icon.recurring{color:#14a65a}.create-option-icon svg{width:30px;height:30px}.create-menu-dropdown strong{font-size:18px!important;font-weight:500!important;color:#4c5870!important}.create-menu-dropdown button>span:not(.create-option-icon){display:none!important}.create-menu-dropdown button:hover{background:#f7f8fb!important}.toolbar-add-btn{height:28px!important;min-height:28px!important;padding:0 9px!important;border-radius:4px!important;background:#c22b22!important;font-size:12px!important;font-weight:700!important;box-shadow:none!important}.toolbar-add-btn>svg:first-child{width:14px!important;height:14px!important}.create-menu-dropdown{top:calc(100% + 8px)!important;width:250px!important;padding:6px!important;border:1px solid #e2e8f0!important;border-radius:10px!important;box-shadow:0 14px 32px #0f172a29!important}.create-menu-dropdown button{display:flex!important;min-height:0!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;padding:10px 12px!important;border-radius:7px!important}.create-menu-dropdown strong{font-size:13px!important;font-weight:700!important;color:#1f2937!important}.create-menu{position:relative;margin-left:auto}.toolbar-add-btn{margin-left:0;min-height:29px!important;height:29px!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px!important;border:0;border-radius:4px!important;background:#c22b22!important;color:#fff;font-size:10px!important;font-weight:700!important;box-shadow:none!important;transform:none!important}.toolbar-add-btn:hover{background:#a82219!important;transform:none!important}.toolbar-add-btn>svg:first-child{width:13px!important;height:13px!important}.toolbar-add-btn .chevron{width:13px!important;height:13px!important}.create-menu-dropdown{position:absolute;top:calc(100% + 8px)!important;right:0;z-index:20;width:250px!important;padding:6px!important;border:1px solid #e2e8f0!important;border-radius:10px!important;background:#fff;box-shadow:0 14px 32px #0f172a29!important}.create-menu-dropdown button{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;width:100%;min-height:0!important;padding:10px 12px!important;border:0;border-radius:7px!important;background:transparent;text-align:left;cursor:pointer}.create-menu-dropdown button:hover{background:#fef2f2!important;color:#a82219!important}.create-menu-dropdown strong{font-size:13px!important;color:#1f2937!important}.create-menu-dropdown button>span{display:block!important;color:#64748b!important;font-size:12px!important}.create-menu-dropdown button>span:not(.create-option-icon){display:block!important;color:#64748b!important;font-size:12px!important}.pager .pager-refresh{display:inline-flex;width:46px;height:46px;min-height:46px;align-items:center;justify-content:center;margin-left:auto;padding:0;border:1px solid #c8ced8;border-radius:8px;background:#fff;color:#263b69;cursor:pointer}.pager .pager-refresh:hover{border-color:#9aa9bd;background:#f8fafc}.pager .pager-refresh svg{width:24px;height:24px}.pager .pager-refresh{width:46px;height:46px;min-height:46px;border-radius:8px}.pager .pager-refresh svg{width:26px;height:26px}.pager .pager-refresh svg{width:23px;height:23px}.kavaa-table-wrapper .pager{height:64px;min-height:64px;padding:0 20px;gap:18px;border:1px solid #e2e6eb;border-top:1px solid #e2e6eb;background:#fff;box-sizing:border-box}.kavaa-table-wrapper .pager-navigation{gap:11px}.kavaa-table-wrapper .pager-btn{width:16px!important;height:35px!important;min-height:35px!important;border-radius:0!important;color:#9baec0!important}.kavaa-table-wrapper .pager-btn:disabled{color:#c8d3df!important;opacity:1!important}.kavaa-table-wrapper .pager-number{width:35px!important;height:35px!important;min-height:35px!important;color:#34455f;font-size:12px!important}.kavaa-table-wrapper .pager-number.active{color:#fff;background:#d85f52!important}.kavaa-table-wrapper .pager select{width:78px;height:34px;min-height:34px;border-color:#d7dce3;border-radius:4px;background:#f7f7f7;font-size:13px}.kavaa-table-wrapper .page-info{color:#14213a;font-family:Courier New,monospace;font-size:13px;font-weight:700}.kavaa-table-wrapper .pager .pager-refresh{width:74px;height:46px;min-height:46px;border-color:#c8ced8;border-radius:8px}.kavaa-table-wrapper .pager .pager-refresh mat-icon{width:23px;height:23px;font-size:23px}.kavaa-table-wrapper,.kavaa-table-wrapper button,.kavaa-table-wrapper input,.kavaa-table-wrapper select{font-family:Inter var,ui-sans-serif,system-ui,sans-serif}.kavaa-table-wrapper .kavaa-table th{font-size:14px!important;font-weight:600!important;line-height:28.13px}.kavaa-table-wrapper .header-label,.kavaa-table-wrapper .actions-title{font-size:18px!important;font-weight:600!important}.kavaa-table-wrapper .kavaa-table td{font-size:16px!important;font-weight:500;line-height:21px}.kavaa-table-wrapper .kavaa-table td strong{font-size:inherit!important;font-weight:inherit}.kavaa-table-wrapper .page-info{font-family:Inter var,ui-sans-serif,system-ui,sans-serif;font-size:14px;font-weight:500;line-height:26px}.kavaa-table-wrapper .pager-number.active{font-size:17.616px!important;font-weight:400;line-height:2}.kavaa-table-wrapper .pager .pager-refresh{position:relative;display:inline-flex!important;width:74px!important;height:46px!important;min-height:46px!important;align-items:center;justify-content:center;margin-left:auto;padding:0!important;border:1px solid #c8ced8!important;border-radius:8px!important;background:#fff;color:#263b69;cursor:pointer;box-sizing:border-box}.kavaa-table-wrapper .pager .pager-refresh:hover{border-color:#9aa9bd!important;background:#f8fafc}.kavaa-table-wrapper .pager .pager-refresh mat-icon{width:26px;height:26px;margin:0!important;font-size:26px}.kavaa-table-wrapper .pager .pager-refresh:after{position:absolute;z-index:60;bottom:calc(100% + 7px);left:50%;padding:9px 12px;border-radius:5px;background:#2f3136;color:#fff;content:attr(data-tooltip);font-family:Arial,Helvetica,sans-serif;font-size:16px;font-weight:400;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .15s ease,transform .15s ease}.kavaa-table-wrapper .pager .pager-refresh:hover:after,.kavaa-table-wrapper .pager .pager-refresh:focus-visible:after{opacity:1;transform:translate(-50%)}.kavaa-table-wrapper .actions-col{width:120px;min-width:120px}.kavaa-table-wrapper .row-actions{display:grid;grid-template-columns:repeat(4,26px);justify-content:start;gap:4px}.kavaa-table-wrapper .action-icon{position:relative;width:26px;height:26px;padding:0;color:#98a2b3;border:0;border-radius:50%;background:transparent}.kavaa-table-wrapper .action-icon svg{width:16px;height:16px}.kavaa-table-wrapper .action-icon:hover{color:#475569;border:0;background:#eef2f7}.kavaa-table-wrapper .action-icon.status-action{color:#16a34a;background:#ecfdf3}.kavaa-table-wrapper .action-icon.status-action:hover{color:#15803d;background:#d1fae5}.kavaa-table-wrapper .action-icon:after{position:absolute;z-index:50;bottom:calc(100% + 7px);left:50%;width:max-content;max-width:190px;padding:6px 8px;border-radius:5px;background:#293241;color:#fff;content:attr(data-tooltip);font-size:12px;font-weight:500;line-height:1.2;opacity:0;pointer-events:none;transform:translate(-50%) translateY(3px);transition:opacity .15s ease,transform .15s ease}.kavaa-table-wrapper .action-icon:hover:after,.kavaa-table-wrapper .action-icon:focus-visible:after{opacity:1;transform:translate(-50%) translateY(0)}.kavaa-table-wrapper .origin-badge,.kavaa-table-wrapper .badge{font-size:16px!important;font-weight:500;line-height:21px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "pipe", type: i1.LowerCasePipe, name: "lowercase" }, { kind: "pipe", type: i1.DatePipe, name: "date" }] });
247
250
  }
248
251
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MeetingListTable, decorators: [{
249
252
  type: Component,
@@ -852,11 +855,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
852
855
  }] } });
853
856
 
854
857
  class TemplatesTable {
855
- elementRef = inject(ElementRef);
856
- iconRegistry = inject(MatIconRegistry);
857
- sanitizer = inject(DomSanitizer);
858
- constructor() {
859
- this.iconRegistry.addSvgIconLiteralInNamespace("heroicons_outline", "refresh", this.sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17.65 6.35A7.95 7.95 0 0 0 12 4V1L7 6l5 5V7a5 5 0 1 1-4.9 6H5.08A7 7 0 1 0 17.65 6.35ZM6.35 17.65A7.95 7.95 0 0 0 12 20v3l5-5-5-5v4a5 5 0 0 1-4.9-6H5.08a7 7 0 0 0 1.27 6.65Z"/></svg>'));
858
+ constructor(iconRegistry, sanitizer) {
859
+ iconRegistry.addSvgIconLiteralInNamespace("heroicons_outline", "refresh", sanitizer.bypassSecurityTrustHtml('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17.65 6.35A7.95 7.95 0 0 0 12 4V1L7 6l5 5V7a5 5 0 1 1-4.9 6H5.08A7 7 0 1 0 17.65 6.35ZM6.35 17.65A7.95 7.95 0 0 0 12 20v3l5-5-5-5v4a5 5 0 0 1-4.9-6H5.08a7 7 0 0 0 1.27 6.65Z"/></svg>'));
860
860
  }
861
861
  items = [];
862
862
  loading = false;
@@ -865,124 +865,30 @@ class TemplatesTable {
865
865
  createRequested = new EventEmitter();
866
866
  refreshRequested = new EventEmitter();
867
867
  searchTerm = "";
868
- sortField = "templateCode";
869
- sortDirection = "asc";
870
868
  pageSize = 10;
871
- currentPage = 1;
872
- openMenuIndex = null;
873
- openColumnMenu = null;
874
- showColumnSelector = false;
875
- columns = [{ key: "templateCode", label: "Code du template", visible: true }, { key: "label", label: "Nom du template", visible: true }, { key: "defaultTitle", label: "Titre par défaut", visible: true }, { key: "defaultDurationMinutes", label: "Durée", visible: true }, { key: "status", label: "Statut", visible: true }];
876
- pageSizeOptions = [5, 10, 20, 50];
877
- onDocumentClick(event) {
878
- if (!this.elementRef.nativeElement.contains(event.target)) {
879
- this.openMenuIndex = null;
880
- this.openColumnMenu = null;
881
- }
882
- }
883
869
  get filteredItems() {
884
- let result = this.items.filter((template) => template.templateCode?.trim().toUpperCase() !== "A-2");
885
- if (this.searchTerm.trim()) {
886
- const term = this.searchTerm.trim().toLowerCase();
887
- result = result.filter((t) => t.templateCode?.toLowerCase().includes(term) ||
888
- t.label?.toLowerCase().includes(term) ||
889
- t.defaultTitle?.toLowerCase().includes(term));
890
- }
891
- return result;
892
- }
893
- get sortedItems() {
894
- const items = [...this.filteredItems];
895
- const field = this.sortField;
896
- const dir = this.sortDirection === "asc" ? 1 : -1;
897
- items.sort((a, b) => {
898
- const valA = a[field] ?? "";
899
- const valB = b[field] ?? "";
900
- if (valA < valB)
901
- return -1 * dir;
902
- if (valA > valB)
903
- return 1 * dir;
904
- return 0;
870
+ const term = this.searchTerm.trim().toLowerCase();
871
+ return this.items.filter((template) => {
872
+ if (template.templateCode?.trim().toUpperCase() === "A-2")
873
+ return false;
874
+ if (!term)
875
+ return true;
876
+ return template.templateCode?.toLowerCase().includes(term)
877
+ || template.label?.toLowerCase().includes(term)
878
+ || template.defaultTitle?.toLowerCase().includes(term);
905
879
  });
906
- return items;
907
- }
908
- get totalItems() {
909
- return this.filteredItems.length;
910
- }
911
- get totalPages() {
912
- return Math.max(1, Math.ceil(this.totalItems / this.pageSize));
913
- }
914
- get visiblePages() {
915
- const maxPages = 5;
916
- const firstPage = Math.max(1, Math.min(this.currentPage - 2, this.totalPages - maxPages + 1));
917
- const lastPage = Math.min(this.totalPages, firstPage + maxPages - 1);
918
- return Array.from({ length: lastPage - firstPage + 1 }, (_, index) => firstPage + index);
919
- }
920
- get paginatedItems() {
921
- const start = (this.currentPage - 1) * this.pageSize;
922
- return this.sortedItems.slice(start, start + this.pageSize);
923
- }
924
- get pageStart() {
925
- return this.totalItems === 0 ? 0 : (this.currentPage - 1) * this.pageSize + 1;
926
- }
927
- get pageEnd() {
928
- return Math.min(this.currentPage * this.pageSize, this.totalItems);
929
- }
930
- onSearchChange() {
931
- this.currentPage = 1;
932
- }
933
- onPageSizeChange() {
934
- this.currentPage = 1;
935
- }
936
- toggleSort(field) {
937
- if (this.sortField === field) {
938
- this.sortDirection = this.sortDirection === "asc" ? "desc" : "asc";
939
- }
940
- else {
941
- this.sortField = field;
942
- this.sortDirection = "asc";
943
- }
944
- }
945
- sortIcon(field) {
946
- if (this.sortField !== field)
947
- return "";
948
- return this.sortDirection === "asc" ? "â–²" : "â–¼";
949
- }
950
- isColumnVisible(key) { return this.columns.find((column) => column.key === key)?.visible ?? false; }
951
- toggleColumnMenu(key, event) { event.stopPropagation(); this.openMenuIndex = null; this.openColumnMenu = this.openColumnMenu === key ? null : key; }
952
- sortColumn(field, direction) { this.sortField = field; this.sortDirection = direction; this.currentPage = 1; this.openColumnMenu = null; }
953
- toggleColumnSelector() { this.showColumnSelector = !this.showColumnSelector; }
954
- applyColumnSelection() { this.showColumnSelector = false; this.openColumnMenu = null; }
955
- resetColumnSelection() { this.columns.forEach((column) => column.visible = true); }
956
- toggleColumnVisibility(column) { if (column.visible && this.columns.filter((item) => item.visible).length === 1)
957
- return; column.visible = !column.visible; }
958
- goToPage(page) {
959
- if (page < 1 || page > this.totalPages)
960
- return;
961
- this.currentPage = page;
962
- }
963
- toggleMenu(index, event) {
964
- event.stopPropagation();
965
- this.openMenuIndex = this.openMenuIndex === index ? null : index;
966
880
  }
881
+ onCreateRequested() { this.createRequested.emit(); }
967
882
  onRefreshRequested() { this.refreshRequested.emit(); }
968
- onCreateRequested() {
969
- this.createRequested.emit();
970
- }
971
- onInstantiate(template) {
972
- this.openMenuIndex = null;
973
- this.instantiateRequested.emit(template);
974
- }
975
- onArchive(template) {
976
- this.openMenuIndex = null;
977
- this.archiveRequested.emit(template);
978
- }
979
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: TemplatesTable, deps: [], target: i0.ɵɵFactoryTarget.Component });
980
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: TemplatesTable, isStandalone: true, selector: "lib-templates-table", inputs: { items: "items", loading: "loading" }, outputs: { instantiateRequested: "instantiateRequested", archiveRequested: "archiveRequested", createRequested: "createRequested", refreshRequested: "refreshRequested" }, host: { listeners: { "document:click": "onDocumentClick($event)" } }, ngImport: i0, template: "<div class=\"kavaa-table-wrapper\">\r\n <div class=\"toolbar\">\r\n <div class=\"search-box\">\r\n <svg class=\"search-icon\" viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z\"/></svg>\r\n <input\r\n type=\"text\"\r\n placeholder=\"Rechercher...\"\r\n [(ngModel)]=\"searchTerm\"\r\n (ngModelChange)=\"onSearchChange()\"\r\n />\r\n </div>\n <button class=\"btn-primary-red toolbar-add-btn\" type=\"button\" (click)=\"onCreateRequested()\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z\"/></svg>\n <span>Ajouter un template</span>\n </button>\n </div>\n\n <p *ngIf=\"loading\" class=\"loading-state\">Chargement...</p>\r\n\r\n <div class=\"grouping-hint\" *ngIf=\"!loading\">Pour regrouper, glissez un en-t\u00EAte de colonne et d\u00E9posez-le ici.</div>\r\n <div class=\"table-scroll\" *ngIf=\"!loading\">\r\n <table class=\"kavaa-table\">\r\n <thead><tr><th *ngFor=\"let column of columns\" [hidden]=\"!column.visible\"><div class=\"header-content\"><button class=\"header-label\" type=\"button\" (click)=\"toggleSort(column.key)\">{{ column.label }}</button><div class=\"column-menu-wrapper\"><button class=\"column-menu-trigger\" type=\"button\" (click)=\"toggleColumnMenu(column.key, $event)\">\u22EE</button><div class=\"column-menu\" *ngIf=\"openColumnMenu === column.key\"><button type=\"button\" (click)=\"sortColumn(column.key, 'asc')\">\u2191 Tri croissant</button><button type=\"button\" (click)=\"sortColumn(column.key, 'desc')\">\u2193 Tri d\u00E9croissant</button><button type=\"button\" class=\"columns-button\" (click)=\"toggleColumnSelector()\"><span class=\"columns-icon\">\u25A5</span> Colonnes <span class=\"chevron\">\u2303</span></button><div class=\"column-selector\" *ngIf=\"showColumnSelector\"><label *ngFor=\"let selectableColumn of columns\" class=\"column-visibility-option\"><input type=\"checkbox\" [checked]=\"selectableColumn.visible\" (change)=\"toggleColumnVisibility(selectableColumn)\"><span>{{ selectableColumn.label }}</span></label><div class=\"column-selector-actions\"><button type=\"button\" class=\"apply-columns\" (click)=\"applyColumnSelection()\">Apply</button><button type=\"button\" class=\"reset-columns\" (click)=\"resetColumnSelection()\">Reset</button></div></div></div></div></div></th><th class=\"actions-col\"><div class=\"actions-header\"><span class=\"actions-title\">Actions</span><button class=\"column-menu-trigger actions-menu-trigger\" type=\"button\" (click)=\"$event.stopPropagation()\" aria-label=\"Actions\">\u22EE</button></div></th></tr></thead>\r\n <tbody>\r\n <tr *ngFor=\"let t of paginatedItems; let i = index\">\r\n <td *ngIf=\"isColumnVisible('templateCode')\" class=\"cell-code\">{{ t.templateCode }}</td>\r\n <td *ngIf=\"isColumnVisible('label')\">{{ t.label }}</td>\r\n <td *ngIf=\"isColumnVisible('defaultTitle')\">{{ t.defaultTitle }}</td>\r\n <td *ngIf=\"isColumnVisible('defaultDurationMinutes')\">\r\n <span class=\"duration-cell\">\r\n <svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\"><path fill=\"currentColor\" d=\"M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm.5 5v5.25l4.5 2.67-.75 1.23L11 13V7h1.5z\"/></svg>\r\n {{ t.defaultDurationMinutes }} min\r\n </span>\r\n </td>\r\n <td *ngIf=\"isColumnVisible('status')\">\r\n <span class=\"badge\" [class.badge-active]=\"t.status === 'ACTIVE'\" [class.badge-inactive]=\"t.status !== 'ACTIVE'\">\r\n <span class=\"dot\"></span>{{ t.status }}\r\n </span>\r\n </td>\r\n <td class=\"actions-col\">\r\n <div class=\"template-row-actions\">\n <button class=\"template-action-icon\" type=\"button\" (click)=\"onInstantiate(t)\" aria-label=\"Utiliser ce template\" data-tooltip=\"Utiliser ce template\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"M8 5v14l11-7z\"/></svg></button>\n <button class=\"template-action-icon\" type=\"button\" (click)=\"onArchive(t)\" aria-label=\"Archiver le template\" data-tooltip=\"Archiver le template\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"M20.54 5.23 19.15 3.55A1.45 1.45 0 0 0 18 3H6c-.46 0-.87.2-1.15.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19a2 2 0 0 0 2 2h14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.5c0-.48-.17-.93-.46-1.27zM6.12 5h11.76l.82.97H5.3L6.12 5zM19 19H5V8h14v11zm-8-9h2v5h3l-4 4-4-4h3v-5z\"/></svg></button>\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <p *ngIf=\"paginatedItems.length === 0\" class=\"empty-state\">Aucun template trouv\u00E9.</p>\r\n </div>\r\n\r\n <div class=\"pager\" *ngIf=\"!loading && totalItems > 0\">\n <div class=\"pager-navigation\" aria-label=\"Pagination\">\n <button class=\"pager-btn pager-first\" type=\"button\" (click)=\"goToPage(1)\" [disabled]=\"currentPage === 1\" aria-label=\"Premi\u00E8re page\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"M6 6h2v12H6zm3.5 6 7-6v12z\"/></svg></button>\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage - 1)\" [disabled]=\"currentPage === 1\" aria-label=\"Page pr\u00E9c\u00E9dente\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"m15 6-6 6 6 6z\"/></svg></button>\n <button *ngFor=\"let page of visiblePages\" class=\"pager-number\" type=\"button\" [class.active]=\"page === currentPage\" (click)=\"goToPage(page)\">{{ page }}</button>\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage + 1)\" [disabled]=\"currentPage === totalPages\" aria-label=\"Page suivante\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"m9 6 6 6-6 6z\"/></svg></button>\n <button class=\"pager-btn pager-last\" type=\"button\" (click)=\"goToPage(totalPages)\" [disabled]=\"currentPage === totalPages\" aria-label=\"Derni\u00E8re page\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"m8 6 7 6-7 6zm8 0h2v12h-2z\"/></svg></button>\n </div>\n <select [(ngModel)]=\"pageSize\" (ngModelChange)=\"onPageSizeChange()\" aria-label=\"\u00C9l\u00E9ments par page\"><option *ngFor=\"let size of pageSizeOptions\" [value]=\"size\">{{ size }}</option></select>\n <span class=\"page-info\">Total : {{ totalItems }}</span>\n <button class=\"refresh-button\" mat-stroked-button color=\"primary\" type=\"button\" (click)=\"onRefreshRequested()\" aria-label=\"Refresh\" data-tooltip=\"refresh\"><mat-icon [svgIcon]=\"'heroicons_outline:refresh'\" aria-hidden=\"true\"></mat-icon></button>\n</div></div>\r\n\r\n\r\n\r\n", styles: [".kavaa-table-wrapper{font-family:system-ui,sans-serif;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;padding:16px}.toolbar{display:flex;gap:12px;margin-bottom:16px}.search-box{position:relative;display:flex;align-items:center}.search-icon{position:absolute;right:10px;color:#495057;pointer-events:none}.search-box input{padding:8px 32px 8px 12px;border:1px solid #e0e0e0;border-radius:6px;width:250px;color:#495057;font-size:13px}.table-scroll{overflow-x:auto}.kavaa-table{width:100%;border-collapse:collapse}.kavaa-table th{text-align:left;font-size:12px;text-transform:uppercase;color:#495057;padding:10px 8px;border-bottom:2px solid #f5f5f5;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;font-weight:600}.kavaa-table th:hover{background:#f5f5f5}.sort-icon{font-size:10px;margin-left:4px}.kavaa-table td{padding:10px 8px;border-bottom:1px solid #f5f5f5;font-size:13px;color:#495057;vertical-align:middle}.kavaa-table tbody tr:hover{background:#fafafa}.cell-code{font-weight:600;color:#1f2933;font-family:monospace}.duration-cell{display:inline-flex;align-items:center;gap:6px;color:#64748b}.duration-cell svg{flex-shrink:0;color:#94a3b8}.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:12px;font-size:12px;letter-spacing:.3px;background:#f5f5f5;color:#495057}.badge .dot{width:6px;height:6px;border-radius:50%;background:#94a3b8}.actions-col{width:50px;text-align:center;position:relative}.kavaa-table-wrapper,.kavaa-table-wrapper button,.kavaa-table-wrapper input,.kavaa-table-wrapper select{font-family:Inter var,ui-sans-serif,system-ui,sans-serif!important}.kavaa-table-wrapper .kavaa-table th{font-size:14px!important;font-weight:600!important;line-height:28.13px}.kavaa-table-wrapper .header-label,.kavaa-table-wrapper .actions-title{font-size:18px!important;font-weight:600!important}.kavaa-table-wrapper .kavaa-table td{font-size:16px!important;font-weight:500;line-height:21px}.kavaa-table-wrapper .kavaa-table td strong{font-size:inherit!important;font-weight:inherit}.kavaa-table-wrapper .badge,.kavaa-table-wrapper .duration-cell{font-size:16px!important;font-weight:500;line-height:21px}.kavaa-table-wrapper .pager{height:64px!important;min-height:64px!important;padding:0 20px!important;gap:18px!important;border:1px solid #e2e6eb!important;background:#fff;box-sizing:border-box}.kavaa-table-wrapper .pager-navigation{gap:11px!important}.kavaa-table-wrapper .pager-btn{width:16px!important;height:35px!important;min-height:35px!important;border-radius:0!important;color:#9baec0!important}.kavaa-table-wrapper .pager-number{width:35px!important;height:35px!important;min-height:35px!important;color:#34455f;font-size:12px!important}.kavaa-table-wrapper .pager-number.active{color:#fff!important;background:#d85f52!important;font-size:17.616px!important;font-weight:400;line-height:2}.kavaa-table-wrapper .pager select{width:78px!important;height:34px!important;min-height:34px!important;border-color:#d7dce3;border-radius:4px;background:#f7f7f7;font-size:13px!important}.kavaa-table-wrapper .page-info{color:#14213a!important;font-family:Inter var,ui-sans-serif,system-ui,sans-serif!important;font-size:14px!important;font-weight:500;line-height:26px}.kavaa-table-wrapper .refresh-button{display:inline-flex!important;width:74px!important;height:46px!important;min-height:46px!important;align-items:center;justify-content:center;margin-left:auto;padding:0!important;border:1px solid #c8ced8!important;border-radius:8px!important;background:#fff}.kavaa-table-wrapper .refresh-button mat-icon{width:26px;height:26px;margin:0!important;font-size:26px}.template-row-actions{display:inline-flex;align-items:center;justify-content:center;gap:4px}.template-action-icon{position:relative;display:grid;width:28px;height:28px;place-items:center;padding:0;border:0;border-radius:5px;background:transparent;color:#98a2b3;cursor:pointer;transition:color .15s,background .15s}.template-action-icon:hover{background:#f2f4f7;color:#667085}.template-action-icon:focus-visible{outline:2px solid #cbd5e1;outline-offset:2px}.template-action-icon svg{width:16px;height:16px}.template-action-icon:after{position:absolute;z-index:50;bottom:calc(100% + 7px);left:50%;padding:6px 9px;border-radius:4px;background:#2f3136;color:#fff;content:attr(data-tooltip);font-size:11px;font-weight:600;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .15s,transform .15s}.template-action-icon:hover:after,.template-action-icon:focus-visible:after{opacity:1;transform:translate(-50%)}.menu-wrapper{position:relative;display:inline-block}.menu-trigger{background:none;border:none;cursor:pointer;padding:4px;color:#495057;display:flex;align-items:center;justify-content:center;border-radius:4px}.menu-trigger:hover{background:#f5f5f5}.menu-dropdown{position:absolute;right:0;top:100%;background:#fff;border:1px solid #f5f5f5;border-radius:6px;box-shadow:0 4px 12px #0000001f;z-index:10;min-width:190px;overflow:hidden}.menu-dropdown button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:8px 12px;background:none;border:none;cursor:pointer;font-size:13px;color:#495057}.menu-dropdown button:hover{background:#f5f5f5}.menu-dropdown button svg{flex-shrink:0;color:#c22b22}.pager{display:flex;align-items:center;gap:12px;margin-top:16px;justify-content:flex-end}.pager select{padding:6px 8px;border:1px solid #e0e0e0;border-radius:6px;color:#495057;font-size:13px}.pager-btn{display:flex;align-items:center;justify-content:center;padding:6px;border:1px solid #e0e0e0;border-radius:6px;background:#fff;color:#495057;cursor:pointer}.pager-btn:hover:not(:disabled){background:#f5f5f5}.page-info{font-size:13px;color:#495057}.loading-state,.empty-state{color:#6c757d;font-style:italic;padding:24px;text-align:center}:host{display:block;font-size:10px}.kavaa-table-wrapper{padding:0;border-radius:0;box-shadow:none;font-size:10px}.toolbar{padding:12px 14px;margin:0}.search-box{width:220px;max-width:220px}.search-box input{width:100%;height:30px;min-height:30px;padding:5px 28px 5px 9px;border-radius:6px;font-size:9px;box-sizing:border-box}.search-icon{right:9px;width:12px;height:12px}.kavaa-table th{padding:10px 11px;font-size:9px}.kavaa-table td{padding:11px;font-size:10px;line-height:1.4}.badge{padding:3px 7px;font-size:8px}.badge .dot{width:5px;height:5px}.menu-trigger{width:29px;height:29px;padding:0}.menu-trigger svg{width:16px;height:16px}.menu-dropdown{min-width:170px}.menu-dropdown button{min-height:31px;padding:7px 8px;font-size:9px}.menu-dropdown button svg{width:13px;height:13px}.pager{gap:8px;margin:0;padding:10px 13px;font-size:9px}.pager select,.pager-btn{min-height:30px;height:30px;border-radius:6px;font-size:9px;box-sizing:border-box}.pager-btn{width:30px;padding:0}.page-info{font-size:9px}.loading-state,.empty-state{padding:20px;font-size:9px}@media(max-width:480px){.search-box{width:100%;max-width:100%}}.badge.badge-active{border:1px solid #bbf7d0;background:#ecfdf3;color:#15803d}.badge.badge-active .dot{background:#22c55e;box-shadow:0 0 0 2px #22c55e1f}.badge.badge-inactive{border:1px solid #e2e8f0;background:#f8fafc;color:#64748b}.badge.badge-inactive .dot{background:#94a3b8}.kavaa-table-wrapper{overflow:hidden;border-radius:7px}.toolbar{min-height:39px;padding:5px 9px;gap:8px;background:#ececec;border-bottom:1px solid #d7d7d7}.search-box{width:auto;max-width:none}.search-box input{width:185px;height:27px;min-height:27px;padding:5px 29px 5px 7px;border:1px solid #d5d9df;border-radius:3px;color:#4b5563;background:#fff;font-size:10px}.search-icon{right:7px;width:16px;height:16px;color:#28364b}.grouping-hint{padding:10px 8px 8px;border-bottom:1px solid #d9dce1;color:#5f6670;background:#fff;font-size:11px}.kavaa-table{min-width:800px}.kavaa-table th{padding:9px 8px;border-right:1px solid #d9dce1;border-bottom:1px solid #d9dce1;color:#d5312c;background:#fff;font-size:12px;font-weight:700;text-transform:none}.kavaa-table th:hover{background:#f7f7f7}.kavaa-table td{height:43px;padding:7px 10px;border-right:1px solid #e1e3e6;border-bottom:1px solid #e5e7eb;color:#14213a;font-size:10px}.kavaa-table tbody tr:nth-child(odd){background:#ededed}.kavaa-table tbody tr:nth-child(2n){background:#fff}.kavaa-table tbody tr:hover{background:#e7edf5}.cell-code{color:#14213a;font-weight:500}.duration-cell{color:#14213a;font-size:10px}.badge{padding:4px 8px;border-radius:12px;font-size:9px;font-weight:600;letter-spacing:0}.badge.badge-active{border:0;background:#d1fae5;color:#067647}.badge.badge-inactive{border:0;background:#f2f4f7;color:#475467}.actions-col{width:62px}.menu-trigger{width:28px;height:28px;padding:4px;color:#667085;border-radius:4px}.menu-trigger:hover{color:#c22b22;background:#f9eeee}.menu-dropdown{border-color:#dfe3e8;border-radius:5px;box-shadow:0 7px 18px #0f172a26}.menu-dropdown button{min-height:31px;padding:7px 9px;font-size:10px}.pager{min-height:43px;margin:0;padding:6px 10px;justify-content:flex-start;gap:11px;border-top:1px solid #d3d7dc;background:#fff}.pager select{width:70px;height:25px;min-height:25px;padding:2px 6px;border:1px solid #d3d7dc;border-radius:3px;background:#f7f7f7;font-size:10px}.pager-btn{width:25px;height:25px;min-height:25px;padding:0;border:0;border-radius:50%;background:transparent;font-size:11px}.pager-btn:hover:not(:disabled){background:#eef1f4}.page-info{color:#14213a;font-size:10px;font-weight:700}.pager-navigation{display:inline-flex;align-items:center;gap:4px}.pager-btn,.pager-number{display:inline-flex;width:25px!important;height:25px!important;min-height:25px!important;align-items:center;justify-content:center;padding:0!important;border:0;border-radius:50%;color:#24324b;background:transparent;font-size:11px;cursor:pointer}.pager-btn:hover:not(:disabled),.pager-number:hover{background:#eef1f4}.pager-number.active{color:#fff;background:#cf584e}.pager-btn:disabled{opacity:.35;cursor:not-allowed}.pager select{width:53px}.toolbar{align-items:center}.toolbar-add-btn{display:inline-flex;min-height:29px;height:29px;align-items:center;justify-content:center;gap:6px;margin-left:auto;padding:0 10px;border:0;border-radius:4px;background:#c22b22;color:#fff;font-size:10px;font-weight:700;cursor:pointer}.toolbar-add-btn:hover{background:#a82219}.toolbar-add-btn svg{width:13px;height:13px;fill:currentColor}.header-content{display:flex;min-height:39px;align-items:center}.header-label{flex:1;padding:9px 8px;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}.column-menu-wrapper{position:relative}.column-menu-trigger{width:37px;height:39px;border:0;border-left:1px solid #e7e7e7;background:#fff;color:#4b4f55;font-size:22px;cursor:pointer}.column-menu{position:absolute;right:0;top:39px;z-index:30;width:250px;padding:4px 0 7px;border:1px solid #d7d7d7;background:#fff;box-shadow:0 4px 10px #0000002e;color:#4b4f55;font-size:11px}.column-menu button{display:block;width:100%;min-height:34px;padding:6px 12px;border:0;background:#fff;text-align:left;font:inherit;cursor:pointer}.column-menu button:hover,.column-visibility-option:hover{background:#f3f3f3}.column-menu-separator{height:1px;margin:3px 0 5px;background:#e3e3e3}.columns-title{padding:3px 12px 5px;font-weight:700}.column-visibility-option{display:flex;min-height:27px;align-items:center;gap:8px;padding:2px 12px;cursor:pointer}.column-visibility-option input{accent-color:#c22b22}.kavaa-table th,.header-label{font-family:Arial,Helvetica,sans-serif}.kavaa-table th{font-size:14px}.header-content,.column-menu-trigger{min-height:43px;height:43px}.header-label{font-size:14px;font-weight:700}.column-menu{top:43px;font-family:Arial,Helvetica,sans-serif;font-size:14px}.column-menu button{display:flex;align-items:center;gap:9px;font-size:14px}.columns-button{border-top:1px solid #e3e3e3!important}.columns-icon{font-size:20px;line-height:1}.chevron{margin-left:auto;font-size:20px}.column-selector{border-top:1px solid #e3e3e3;padding:4px 0}.column-visibility-option{font-size:13px}.actions-title{display:flex;min-height:43px;align-items:center;justify-content:center;padding:0 8px;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:700;color:#d5312c}.kavaa-table-wrapper .toolbar{width:100%;box-sizing:border-box;background:#efefef;border-top:1px solid #e2e2e2;border-bottom:1px solid #d6d6d6}.kavaa-table-wrapper .search-box input{background:#fff}.actions-header{display:flex;min-height:43px;align-items:center}.actions-title{flex:1}.actions-menu-trigger{flex:0 0 37px}.pager{min-height:40px;padding:0 10px;border:1px solid #d7dce2;border-top:0;background:#fff}.pager-navigation{gap:5px}.pager-btn,.pager-number{width:23px!important;height:23px!important;min-height:23px!important;color:#9cabbc;font-family:Arial,Helvetica,sans-serif;font-size:12px}.pager-number.active{width:23px!important;height:23px!important;background:#d65c50;color:#fff}.pager select{width:55px;height:24px;min-height:24px;margin-left:8px;border:1px solid #d6dbe1;border-radius:2px;background:#f5f5f5;color:#31445e;font-size:11px}.page-info{font-family:monospace;font-size:11px;color:#14213a}.refresh-button{display:inline-flex;width:31px;height:27px;align-items:center;justify-content:center;margin-left:auto;border:1px solid #d6dbe1;border-radius:3px;background:#fff;color:#2b4360;font-size:20px;line-height:1;cursor:pointer}.refresh-button:hover{background:#f2f5f7}.column-selector{display:none!important}.pager,.pager *{font-family:Arial,Helvetica,sans-serif}.pager-btn,.pager-number{font-size:16px!important;font-weight:700;color:#7f93a8!important}.pager-btn:disabled{opacity:.7!important;color:#b1bfcd!important}.pager-btn:hover:not(:disabled){color:#324b66!important;background:#f0f3f6}.pager-number.active{font-size:12px!important;color:#fff!important}.page-info{font-family:Arial,Helvetica,sans-serif;font-size:11px;font-weight:700;letter-spacing:.4px}.column-menu-trigger,.actions-menu-trigger{border-left:0!important}.pager{height:55px;min-height:55px;padding:0 18px;gap:18px;border:1px solid #e2e6eb;border-top:0}.pager-navigation{gap:11px}.pager-btn{width:16px!important;height:35px!important;min-height:35px!important;padding:0!important;border-radius:0!important;font-size:17px!important;font-weight:400!important;color:#9baec0!important}.pager-btn:disabled{opacity:1!important;color:#c8d3df!important}.pager-number{width:35px!important;height:35px!important;min-height:35px!important;border-radius:50%!important;font-size:12px!important;font-weight:400!important}.pager-number.active{width:35px!important;height:35px!important;min-height:35px!important;background:#d85f52!important;color:#fff!important}.pager select{width:78px;height:34px;min-height:34px;margin-left:6px;padding:0 10px;border:1px solid #d8dde3;border-radius:3px;background:#f4f4f4;font-size:13px;color:#34495e}.page-info{margin-left:7px;font-family:Courier New,monospace!important;font-size:13px!important;font-weight:700!important;color:#14213a!important;letter-spacing:.2px}.refresh-button{width:32px;height:29px;margin-left:auto}.kavaa-table-wrapper .toolbar{height:59px;min-height:59px;padding:8px 10px;background:#efefef}.kavaa-table-wrapper .search-box{width:375px;max-width:375px}.kavaa-table-wrapper .search-box input{width:375px;height:42px;min-height:42px;padding:7px 47px 7px 13px;border:1px solid #e4e4e4;border-radius:5px;font-family:Arial,Helvetica,sans-serif;font-size:20px;color:#656565}.kavaa-table-wrapper .search-icon{right:8px;width:34px;height:34px;color:#313131}.toolbar-add-btn{height:41px;min-height:41px;padding:0 15px;font-size:18px}.pager-btn svg{width:14px;height:14px;display:block}.pager-btn:disabled svg{color:#c9d4df}.pager-btn:not(:disabled) svg{color:#90a2b5}.kavaa-table-wrapper .toolbar{height:55px;min-height:55px;padding:10px 5px;background:#eee}.kavaa-table-wrapper .search-box{width:280px;max-width:280px}.kavaa-table-wrapper .search-box input{width:280px;height:34px;min-height:34px;padding:6px 35px 6px 10px;border:1px solid #e3e3e3;border-radius:4px;font-size:16px}.kavaa-table-wrapper .search-icon{right:7px;width:26px;height:26px;color:#333}.toolbar-add-btn{height:30px;min-height:30px;padding:0 11px;border-radius:4px;font-size:14px}.toolbar-add-btn svg{width:16px;height:16px}.kavaa-table-wrapper .toolbar{height:48px;min-height:48px;padding:7px 6px}.kavaa-table-wrapper .search-box{width:220px;max-width:220px}.kavaa-table-wrapper .search-box input{width:220px;height:30px;min-height:30px;padding:5px 31px 5px 9px;font-size:14px}.kavaa-table-wrapper .search-icon{right:6px;width:23px;height:23px}.toolbar-add-btn{height:28px;min-height:28px;padding:0 9px;font-size:12px}.toolbar-add-btn svg{width:14px;height:14px}.column-selector{display:block!important;max-height:230px;overflow-y:auto;border-top:1px solid #ddd;background:#fff}.column-visibility-option{display:flex;min-height:32px;align-items:center;gap:7px;padding:3px 12px;font-size:14px}.column-visibility-option input{width:18px;height:18px;accent-color:#c92d27}.column-selector-actions{display:flex;gap:10px;padding:8px 12px;border-top:1px solid #ddd;background:#fff}.column-selector-actions button{display:flex!important;flex:1;min-height:34px!important;justify-content:center;border:1px solid #d5d5d5!important;border-radius:4px!important;text-align:center!important}.column-selector-actions .apply-columns{border-color:#c92d27!important;background:#c92d27!important;color:#fff!important}.column-selector-actions .reset-columns{background:#f4f4f4!important;color:#555!important}.kavaa-table-wrapper .pager .refresh-button{position:relative;display:inline-flex!important;width:74px!important;height:46px!important;min-height:46px!important;align-items:center;justify-content:center;margin-left:auto;padding:0!important;border:1px solid #c8ced8!important;border-radius:8px!important;background:#fff;color:#263b69;cursor:pointer;box-sizing:border-box}.kavaa-table-wrapper .pager .refresh-button:hover{border-color:#9aa9bd!important;background:#f8fafc}.kavaa-table-wrapper .pager .refresh-button mat-icon{width:26px;height:26px;margin:0!important;font-size:26px}.kavaa-table-wrapper .pager .refresh-button:after{position:absolute;z-index:60;bottom:calc(100% + 7px);left:50%;padding:9px 12px;border-radius:5px;background:#2f3136;color:#fff;content:attr(data-tooltip);font-family:Arial,Helvetica,sans-serif;font-size:16px;font-weight:400;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .15s ease,transform .15s ease}.kavaa-table-wrapper .pager .refresh-button:hover:after,.kavaa-table-wrapper .pager .refresh-button:focus-visible:after{opacity:1;transform:translate(-50%)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }] });
883
+ onInstantiate(template) { this.instantiateRequested.emit(template); }
884
+ onArchive(template) { this.archiveRequested.emit(template); }
885
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: TemplatesTable, deps: [{ token: i1$1.MatIconRegistry }, { token: i2$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
886
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: TemplatesTable, isStandalone: true, selector: "lib-templates-table", inputs: { items: "items", loading: "loading" }, outputs: { instantiateRequested: "instantiateRequested", archiveRequested: "archiveRequested", createRequested: "createRequested", refreshRequested: "refreshRequested" }, ngImport: i0, template: "<div class=\"kavaa-table-wrapper\">\n <kendo-grid\n [data]=\"filteredItems\"\n [loading]=\"loading\"\n [pageable]=\"true\"\n [pageSize]=\"pageSize\"\n [sortable]=\"true\"\n [filterable]=\"true\"\n [groupable]=\"true\"\n [resizable]=\"true\"\n [kendoGridBinding]=\"filteredItems\"\n class=\"templates-kendo-grid\">\n <ng-template kendoGridToolbarTemplate>\n <div class=\"toolbar\">\n <div class=\"search-box\">\n <svg class=\"search-icon\" viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z\"/></svg>\n <input type=\"text\" placeholder=\"Rechercher...\" [(ngModel)]=\"searchTerm\" />\n </div>\n <button class=\"btn-primary-red toolbar-add-btn\" type=\"button\" (click)=\"onCreateRequested()\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z\"/></svg>\n <span>Ajouter un template</span>\n </button>\n </div>\n </ng-template>\n\n <kendo-grid-column field=\"templateCode\" title=\"Code du template\" [width]=\"170\"></kendo-grid-column>\n <kendo-grid-column field=\"label\" title=\"Nom du template\" [width]=\"220\"></kendo-grid-column>\n <kendo-grid-column field=\"defaultTitle\" title=\"Titre par d\u00E9faut\" [width]=\"240\"></kendo-grid-column>\n <kendo-grid-column field=\"defaultDurationMinutes\" title=\"Dur\u00E9e\" [width]=\"130\">\n <ng-template kendoGridCellTemplate let-dataItem>{{ dataItem.defaultDurationMinutes }} min</ng-template>\n </kendo-grid-column>\n <kendo-grid-column field=\"status\" title=\"Statut\" [width]=\"140\">\n <ng-template kendoGridCellTemplate let-dataItem>\n <span class=\"badge\" [class.badge-active]=\"dataItem.status === 'ACTIVE'\" [class.badge-inactive]=\"dataItem.status !== 'ACTIVE'\">\n <span class=\"dot\"></span>{{ dataItem.status }}\n </span>\n </ng-template>\n </kendo-grid-column>\n <kendo-grid-column title=\"Actions\" [width]=\"130\" [sortable]=\"false\" [filterable]=\"false\" [groupable]=\"false\">\n <ng-template kendoGridCellTemplate let-dataItem>\n <div class=\"template-row-actions\">\n <button class=\"template-action-icon\" type=\"button\" (click)=\"onInstantiate(dataItem)\" aria-label=\"Utiliser ce template\" title=\"Utiliser ce template\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"M8 5v14l11-7z\"/></svg>\n </button>\n <button class=\"template-action-icon\" type=\"button\" (click)=\"onArchive(dataItem)\" aria-label=\"Archiver le template\" title=\"Archiver le template\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"M20.54 5.23 19.15 3.55A1.45 1.45 0 0 0 18 3H6c-.46 0-.87.2-1.15.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19a2 2 0 0 0 2 2h14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.5c0-.48-.17-.93-.46-1.27zM6.12 5h11.76l.82.97H5.3L6.12 5zM19 19H5V8h14v11zm-8-9h2v5h3l-4 4-4-4h3v-5z\"/></svg>\n </button>\n </div>\n </ng-template>\n </kendo-grid-column>\n <kendo-grid-messages noRecords=\"Aucun template trouv\u00E9.\"></kendo-grid-messages>\n </kendo-grid>\n\n <button class=\"pager-refresh\" mat-stroked-button color=\"primary\" type=\"button\" (click)=\"onRefreshRequested()\" aria-label=\"Actualiser\">\n <mat-icon [svgIcon]=\"'heroicons_outline:refresh'\" aria-hidden=\"true\"></mat-icon>\n </button>\n</div>\n", styles: [".kavaa-table-wrapper{font-family:system-ui,sans-serif;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;padding:16px}.toolbar{display:flex;gap:12px;margin-bottom:16px}.search-box{position:relative;display:flex;align-items:center}.search-icon{position:absolute;right:10px;color:#495057;pointer-events:none}.search-box input{padding:8px 32px 8px 12px;border:1px solid #e0e0e0;border-radius:6px;width:250px;color:#495057;font-size:13px}.table-scroll{overflow-x:auto}.kavaa-table{width:100%;border-collapse:collapse}.kavaa-table th{text-align:left;font-size:12px;text-transform:uppercase;color:#495057;padding:10px 8px;border-bottom:2px solid #f5f5f5;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;font-weight:600}.kavaa-table th:hover{background:#f5f5f5}.sort-icon{font-size:10px;margin-left:4px}.kavaa-table td{padding:10px 8px;border-bottom:1px solid #f5f5f5;font-size:13px;color:#495057;vertical-align:middle}.kavaa-table tbody tr:hover{background:#fafafa}.cell-code{font-weight:600;color:#1f2933;font-family:monospace}.duration-cell{display:inline-flex;align-items:center;gap:6px;color:#64748b}.duration-cell svg{flex-shrink:0;color:#94a3b8}.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:12px;font-size:12px;letter-spacing:.3px;background:#f5f5f5;color:#495057}.badge .dot{width:6px;height:6px;border-radius:50%;background:#94a3b8}.actions-col{width:50px;text-align:center;position:relative}.kavaa-table-wrapper,.kavaa-table-wrapper button,.kavaa-table-wrapper input,.kavaa-table-wrapper select{font-family:Inter var,ui-sans-serif,system-ui,sans-serif!important}.kavaa-table-wrapper .kavaa-table th{font-size:14px!important;font-weight:600!important;line-height:28.13px}.kavaa-table-wrapper .header-label,.kavaa-table-wrapper .actions-title{font-size:18px!important;font-weight:600!important}.kavaa-table-wrapper .kavaa-table td{font-size:16px!important;font-weight:500;line-height:21px}.kavaa-table-wrapper .kavaa-table td strong{font-size:inherit!important;font-weight:inherit}.kavaa-table-wrapper .badge,.kavaa-table-wrapper .duration-cell{font-size:16px!important;font-weight:500;line-height:21px}.kavaa-table-wrapper .pager{height:64px!important;min-height:64px!important;padding:0 20px!important;gap:18px!important;border:1px solid #e2e6eb!important;background:#fff;box-sizing:border-box}.kavaa-table-wrapper .pager-navigation{gap:11px!important}.kavaa-table-wrapper .pager-btn{width:16px!important;height:35px!important;min-height:35px!important;border-radius:0!important;color:#9baec0!important}.kavaa-table-wrapper .pager-number{width:35px!important;height:35px!important;min-height:35px!important;color:#34455f;font-size:12px!important}.kavaa-table-wrapper .pager-number.active{color:#fff!important;background:#d85f52!important;font-size:17.616px!important;font-weight:400;line-height:2}.kavaa-table-wrapper .pager select{width:78px!important;height:34px!important;min-height:34px!important;border-color:#d7dce3;border-radius:4px;background:#f7f7f7;font-size:13px!important}.kavaa-table-wrapper .page-info{color:#14213a!important;font-family:Inter var,ui-sans-serif,system-ui,sans-serif!important;font-size:14px!important;font-weight:500;line-height:26px}.kavaa-table-wrapper .pager-refresh{display:inline-flex!important;width:74px!important;height:46px!important;min-height:46px!important;align-items:center;justify-content:center;margin-left:auto;padding:0!important;border:1px solid #c8ced8!important;border-radius:8px!important;background:#fff}.kavaa-table-wrapper .pager-refresh mat-icon{width:26px;height:26px;margin:0!important;font-size:26px}.template-row-actions{display:inline-flex;align-items:center;justify-content:center;gap:4px}.template-action-icon{position:relative;display:grid;width:28px;height:28px;place-items:center;padding:0;border:0;border-radius:5px;background:transparent;color:#98a2b3;cursor:pointer;transition:color .15s,background .15s}.template-action-icon:hover{background:#f2f4f7;color:#667085}.template-action-icon:focus-visible{outline:2px solid #cbd5e1;outline-offset:2px}.template-action-icon svg{width:16px;height:16px}.template-action-icon:after{position:absolute;z-index:50;bottom:calc(100% + 7px);left:50%;padding:6px 9px;border-radius:4px;background:#2f3136;color:#fff;content:attr(data-tooltip);font-size:11px;font-weight:600;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .15s,transform .15s}.template-action-icon:hover:after,.template-action-icon:focus-visible:after{opacity:1;transform:translate(-50%)}.menu-wrapper{position:relative;display:inline-block}.menu-trigger{background:none;border:none;cursor:pointer;padding:4px;color:#495057;display:flex;align-items:center;justify-content:center;border-radius:4px}.menu-trigger:hover{background:#f5f5f5}.menu-dropdown{position:absolute;right:0;top:100%;background:#fff;border:1px solid #f5f5f5;border-radius:6px;box-shadow:0 4px 12px #0000001f;z-index:10;min-width:190px;overflow:hidden}.menu-dropdown button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:8px 12px;background:none;border:none;cursor:pointer;font-size:13px;color:#495057}.menu-dropdown button:hover{background:#f5f5f5}.menu-dropdown button svg{flex-shrink:0;color:#c22b22}.pager{display:flex;align-items:center;gap:12px;margin-top:16px;justify-content:flex-end}.pager select{padding:6px 8px;border:1px solid #e0e0e0;border-radius:6px;color:#495057;font-size:13px}.pager-btn{display:flex;align-items:center;justify-content:center;padding:6px;border:1px solid #e0e0e0;border-radius:6px;background:#fff;color:#495057;cursor:pointer}.pager-btn:hover:not(:disabled){background:#f5f5f5}.page-info{font-size:13px;color:#495057}.loading-state,.empty-state{color:#6c757d;font-style:italic;padding:24px;text-align:center}:host{display:block;font-size:10px}.kavaa-table-wrapper{padding:0;border-radius:0;box-shadow:none;font-size:10px}.toolbar{padding:12px 14px;margin:0}.search-box{width:220px;max-width:220px}.search-box input{width:100%;height:30px;min-height:30px;padding:5px 28px 5px 9px;border-radius:6px;font-size:9px;box-sizing:border-box}.search-icon{right:9px;width:12px;height:12px}.kavaa-table th{padding:10px 11px;font-size:9px}.kavaa-table td{padding:11px;font-size:10px;line-height:1.4}.badge{padding:3px 7px;font-size:8px}.badge .dot{width:5px;height:5px}.menu-trigger{width:29px;height:29px;padding:0}.menu-trigger svg{width:16px;height:16px}.menu-dropdown{min-width:170px}.menu-dropdown button{min-height:31px;padding:7px 8px;font-size:9px}.menu-dropdown button svg{width:13px;height:13px}.pager{gap:8px;margin:0;padding:10px 13px;font-size:9px}.pager select,.pager-btn{min-height:30px;height:30px;border-radius:6px;font-size:9px;box-sizing:border-box}.pager-btn{width:30px;padding:0}.page-info{font-size:9px}.loading-state,.empty-state{padding:20px;font-size:9px}@media(max-width:480px){.search-box{width:100%;max-width:100%}}.badge.badge-active{border:1px solid #bbf7d0;background:#ecfdf3;color:#15803d}.badge.badge-active .dot{background:#22c55e;box-shadow:0 0 0 2px #22c55e1f}.badge.badge-inactive{border:1px solid #e2e8f0;background:#f8fafc;color:#64748b}.badge.badge-inactive .dot{background:#94a3b8}.kavaa-table-wrapper{overflow:hidden;border-radius:7px}.toolbar{min-height:39px;padding:5px 9px;gap:8px;background:#ececec;border-bottom:1px solid #d7d7d7}.search-box{width:auto;max-width:none}.search-box input{width:185px;height:27px;min-height:27px;padding:5px 29px 5px 7px;border:1px solid #d5d9df;border-radius:3px;color:#4b5563;background:#fff;font-size:10px}.search-icon{right:7px;width:16px;height:16px;color:#28364b}.grouping-hint{padding:10px 8px 8px;border-bottom:1px solid #d9dce1;color:#5f6670;background:#fff;font-size:11px}.kavaa-table{min-width:800px}.kavaa-table th{padding:9px 8px;border-right:1px solid #d9dce1;border-bottom:1px solid #d9dce1;color:#d5312c;background:#fff;font-size:12px;font-weight:700;text-transform:none}.kavaa-table th:hover{background:#f7f7f7}.kavaa-table td{height:43px;padding:7px 10px;border-right:1px solid #e1e3e6;border-bottom:1px solid #e5e7eb;color:#14213a;font-size:10px}.kavaa-table tbody tr:nth-child(odd){background:#ededed}.kavaa-table tbody tr:nth-child(2n){background:#fff}.kavaa-table tbody tr:hover{background:#e7edf5}.cell-code{color:#14213a;font-weight:500}.duration-cell{color:#14213a;font-size:10px}.badge{padding:4px 8px;border-radius:12px;font-size:9px;font-weight:600;letter-spacing:0}.badge.badge-active{border:0;background:#d1fae5;color:#067647}.badge.badge-inactive{border:0;background:#f2f4f7;color:#475467}.actions-col{width:62px}.menu-trigger{width:28px;height:28px;padding:4px;color:#667085;border-radius:4px}.menu-trigger:hover{color:#c22b22;background:#f9eeee}.menu-dropdown{border-color:#dfe3e8;border-radius:5px;box-shadow:0 7px 18px #0f172a26}.menu-dropdown button{min-height:31px;padding:7px 9px;font-size:10px}.pager{min-height:43px;margin:0;padding:6px 10px;justify-content:flex-start;gap:11px;border-top:1px solid #d3d7dc;background:#fff}.pager select{width:70px;height:25px;min-height:25px;padding:2px 6px;border:1px solid #d3d7dc;border-radius:3px;background:#f7f7f7;font-size:10px}.pager-btn{width:25px;height:25px;min-height:25px;padding:0;border:0;border-radius:50%;background:transparent;font-size:11px}.pager-btn:hover:not(:disabled){background:#eef1f4}.page-info{color:#14213a;font-size:10px;font-weight:700}.pager-navigation{display:inline-flex;align-items:center;gap:4px}.pager-btn,.pager-number{display:inline-flex;width:25px!important;height:25px!important;min-height:25px!important;align-items:center;justify-content:center;padding:0!important;border:0;border-radius:50%;color:#24324b;background:transparent;font-size:11px;cursor:pointer}.pager-btn:hover:not(:disabled),.pager-number:hover{background:#eef1f4}.pager-number.active{color:#fff;background:#cf584e}.pager-btn:disabled{opacity:.35;cursor:not-allowed}.pager select{width:53px}.toolbar{align-items:center}.toolbar-add-btn{display:inline-flex;min-height:29px;height:29px;align-items:center;justify-content:center;gap:6px;margin-left:auto;padding:0 10px;border:0;border-radius:4px;background:#c22b22;color:#fff;font-size:10px;font-weight:700;cursor:pointer}.toolbar-add-btn:hover{background:#a82219}.toolbar-add-btn svg{width:13px;height:13px;fill:currentColor}.header-content{display:flex;min-height:39px;align-items:center}.header-label{flex:1;padding:9px 8px;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}.column-menu-wrapper{position:relative}.column-menu-trigger{width:37px;height:39px;border:0;border-left:1px solid #e7e7e7;background:#fff;color:#4b4f55;font-size:22px;cursor:pointer}.column-menu{position:absolute;right:0;top:39px;z-index:30;width:250px;padding:4px 0 7px;border:1px solid #d7d7d7;background:#fff;box-shadow:0 4px 10px #0000002e;color:#4b4f55;font-size:11px}.column-menu button{display:block;width:100%;min-height:34px;padding:6px 12px;border:0;background:#fff;text-align:left;font:inherit;cursor:pointer}.column-menu button:hover,.column-visibility-option:hover{background:#f3f3f3}.column-menu-separator{height:1px;margin:3px 0 5px;background:#e3e3e3}.columns-title{padding:3px 12px 5px;font-weight:700}.column-visibility-option{display:flex;min-height:27px;align-items:center;gap:8px;padding:2px 12px;cursor:pointer}.column-visibility-option input{accent-color:#c22b22}.kavaa-table th,.header-label{font-family:Arial,Helvetica,sans-serif}.kavaa-table th{font-size:14px}.header-content,.column-menu-trigger{min-height:43px;height:43px}.header-label{font-size:14px;font-weight:700}.column-menu{top:43px;font-family:Arial,Helvetica,sans-serif;font-size:14px}.column-menu button{display:flex;align-items:center;gap:9px;font-size:14px}.columns-button{border-top:1px solid #e3e3e3!important}.columns-icon{font-size:20px;line-height:1}.chevron{margin-left:auto;font-size:20px}.column-selector{border-top:1px solid #e3e3e3;padding:4px 0}.column-visibility-option{font-size:13px}.actions-title{display:flex;min-height:43px;align-items:center;justify-content:center;padding:0 8px;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:700;color:#d5312c}.kavaa-table-wrapper .toolbar{width:100%;box-sizing:border-box;background:#efefef;border-top:1px solid #e2e2e2;border-bottom:1px solid #d6d6d6}.kavaa-table-wrapper .search-box input{background:#fff}.actions-header{display:flex;min-height:43px;align-items:center}.actions-title{flex:1}.actions-menu-trigger{flex:0 0 37px}.pager{min-height:40px;padding:0 10px;border:1px solid #d7dce2;border-top:0;background:#fff}.pager-navigation{gap:5px}.pager-btn,.pager-number{width:23px!important;height:23px!important;min-height:23px!important;color:#9cabbc;font-family:Arial,Helvetica,sans-serif;font-size:12px}.pager-number.active{width:23px!important;height:23px!important;background:#d65c50;color:#fff}.pager select{width:55px;height:24px;min-height:24px;margin-left:8px;border:1px solid #d6dbe1;border-radius:2px;background:#f5f5f5;color:#31445e;font-size:11px}.page-info{font-family:monospace;font-size:11px;color:#14213a}.pager-refresh{display:inline-flex;width:31px;height:27px;align-items:center;justify-content:center;margin-left:auto;border:1px solid #d6dbe1;border-radius:3px;background:#fff;color:#2b4360;font-size:20px;line-height:1;cursor:pointer}.pager-refresh:hover{background:#f2f5f7}.column-selector{display:none!important}.pager,.pager *{font-family:Arial,Helvetica,sans-serif}.pager-btn,.pager-number{font-size:16px!important;font-weight:700;color:#7f93a8!important}.pager-btn:disabled{opacity:.7!important;color:#b1bfcd!important}.pager-btn:hover:not(:disabled){color:#324b66!important;background:#f0f3f6}.pager-number.active{font-size:12px!important;color:#fff!important}.page-info{font-family:Arial,Helvetica,sans-serif;font-size:11px;font-weight:700;letter-spacing:.4px}.column-menu-trigger,.actions-menu-trigger{border-left:0!important}.pager{height:55px;min-height:55px;padding:0 18px;gap:18px;border:1px solid #e2e6eb;border-top:0}.pager-navigation{gap:11px}.pager-btn{width:16px!important;height:35px!important;min-height:35px!important;padding:0!important;border-radius:0!important;font-size:17px!important;font-weight:400!important;color:#9baec0!important}.pager-btn:disabled{opacity:1!important;color:#c8d3df!important}.pager-number{width:35px!important;height:35px!important;min-height:35px!important;border-radius:50%!important;font-size:12px!important;font-weight:400!important}.pager-number.active{width:35px!important;height:35px!important;min-height:35px!important;background:#d85f52!important;color:#fff!important}.pager select{width:78px;height:34px;min-height:34px;margin-left:6px;padding:0 10px;border:1px solid #d8dde3;border-radius:3px;background:#f4f4f4;font-size:13px;color:#34495e}.page-info{margin-left:7px;font-family:Courier New,monospace!important;font-size:13px!important;font-weight:700!important;color:#14213a!important;letter-spacing:.2px}.pager-refresh{width:32px;height:29px;margin-left:auto}.kavaa-table-wrapper .toolbar{height:59px;min-height:59px;padding:8px 10px;background:#efefef}.kavaa-table-wrapper .search-box{width:375px;max-width:375px}.kavaa-table-wrapper .search-box input{width:375px;height:42px;min-height:42px;padding:7px 47px 7px 13px;border:1px solid #e4e4e4;border-radius:5px;font-family:Arial,Helvetica,sans-serif;font-size:20px;color:#656565}.kavaa-table-wrapper .search-icon{right:8px;width:34px;height:34px;color:#313131}.toolbar-add-btn{height:41px;min-height:41px;padding:0 15px;font-size:18px}.pager-btn svg{width:14px;height:14px;display:block}.pager-btn:disabled svg{color:#c9d4df}.pager-btn:not(:disabled) svg{color:#90a2b5}.kavaa-table-wrapper .toolbar{height:55px;min-height:55px;padding:10px 5px;background:#eee}.kavaa-table-wrapper .search-box{width:280px;max-width:280px}.kavaa-table-wrapper .search-box input{width:280px;height:34px;min-height:34px;padding:6px 35px 6px 10px;border:1px solid #e3e3e3;border-radius:4px;font-size:16px}.kavaa-table-wrapper .search-icon{right:7px;width:26px;height:26px;color:#333}.toolbar-add-btn{height:30px;min-height:30px;padding:0 11px;border-radius:4px;font-size:14px}.toolbar-add-btn svg{width:16px;height:16px}.kavaa-table-wrapper .toolbar{height:48px;min-height:48px;padding:7px 6px}.kavaa-table-wrapper .search-box{width:220px;max-width:220px}.kavaa-table-wrapper .search-box input{width:220px;height:30px;min-height:30px;padding:5px 31px 5px 9px;font-size:14px}.kavaa-table-wrapper .search-icon{right:6px;width:23px;height:23px}.toolbar-add-btn{height:28px;min-height:28px;padding:0 9px;font-size:12px}.toolbar-add-btn svg{width:14px;height:14px}.column-selector{display:block!important;max-height:230px;overflow-y:auto;border-top:1px solid #ddd;background:#fff}.column-visibility-option{display:flex;min-height:32px;align-items:center;gap:7px;padding:3px 12px;font-size:14px}.column-visibility-option input{width:18px;height:18px;accent-color:#c92d27}.column-selector-actions{display:flex;gap:10px;padding:8px 12px;border-top:1px solid #ddd;background:#fff}.column-selector-actions button{display:flex!important;flex:1;min-height:34px!important;justify-content:center;border:1px solid #d5d5d5!important;border-radius:4px!important;text-align:center!important}.column-selector-actions .apply-columns{border-color:#c92d27!important;background:#c92d27!important;color:#fff!important}.column-selector-actions .reset-columns{background:#f4f4f4!important;color:#555!important}.kavaa-table-wrapper .pager .pager-refresh{position:relative;display:inline-flex!important;width:74px!important;height:46px!important;min-height:46px!important;align-items:center;justify-content:center;margin-left:auto;padding:0!important;border:1px solid #c8ced8!important;border-radius:8px!important;background:#fff;color:#263b69;cursor:pointer;box-sizing:border-box}.kavaa-table-wrapper .pager .pager-refresh:hover{border-color:#9aa9bd!important;background:#f8fafc}.kavaa-table-wrapper .pager .pager-refresh mat-icon{width:26px;height:26px;margin:0!important;font-size:26px}.kavaa-table-wrapper .pager .pager-refresh:after{position:absolute;z-index:60;bottom:calc(100% + 7px);left:50%;padding:9px 12px;border-radius:5px;background:#2f3136;color:#fff;content:attr(data-tooltip);font-family:Arial,Helvetica,sans-serif;font-size:16px;font-weight:400;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .15s ease,transform .15s ease}.kavaa-table-wrapper .pager .pager-refresh:hover:after,.kavaa-table-wrapper .pager .pager-refresh:focus-visible:after{opacity:1;transform:translate(-50%)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: GridModule }, { kind: "component", type: i4$1.GridComponent, selector: "kendo-grid", inputs: ["data", "pageSize", "height", "rowHeight", "adaptiveMode", "detailRowHeight", "skip", "scrollable", "selectable", "sort", "size", "trackBy", "filter", "group", "virtualColumns", "filterable", "sortable", "pageable", "groupable", "gridResizable", "rowReorderable", "navigable", "autoSize", "rowClass", "rowSticky", "rowSelected", "isRowSelectable", "cellSelected", "resizable", "reorderable", "loading", "columnMenu", "hideHeader", "showInactiveTools", "isDetailExpanded", "isGroupExpanded", "dataLayoutMode", "pinnable", "pinnedTopRows", "pinnedBottomRows", "isRowPinnable"], outputs: ["filterChange", "pageChange", "groupChange", "sortChange", "selectionChange", "rowReorder", "rowPinChange", "dataStateChange", "gridStateChange", "groupExpand", "groupCollapse", "detailExpand", "detailCollapse", "edit", "cancel", "save", "remove", "add", "cellClose", "cellClick", "pdfExport", "excelExport", "csvExport", "columnResize", "columnReorder", "columnVisibilityChange", "columnLockedChange", "columnStickyChange", "scrollBottom", "contentScroll"], exportAs: ["kendoGrid"] }, { kind: "directive", type: i4$1.ToolbarTemplateDirective, selector: "[kendoGridToolbarTemplate]", inputs: ["position"] }, { kind: "directive", type: i4$1.DataBindingDirective, selector: "[kendoGridBinding]", inputs: ["skip", "sort", "filter", "pageSize", "group", "kendoGridBinding"], exportAs: ["kendoGridBinding"] }, { kind: "component", type: i4$1.CustomMessagesComponent, selector: "kendo-grid-messages" }, { kind: "component", type: i4$1.ColumnComponent, selector: "kendo-grid-column", inputs: ["field", "format", "sortable", "groupable", "editor", "filter", "filterVariant", "filterable", "editable"] }, { kind: "directive", type: i4$1.CellTemplateDirective, selector: "[kendoGridCellTemplate]" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
981
887
  }
982
888
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: TemplatesTable, decorators: [{
983
889
  type: Component,
984
- args: [{ selector: "lib-templates-table", standalone: true, imports: [CommonModule, FormsModule, MatButtonModule, MatIconModule, MatTooltipModule], template: "<div class=\"kavaa-table-wrapper\">\r\n <div class=\"toolbar\">\r\n <div class=\"search-box\">\r\n <svg class=\"search-icon\" viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z\"/></svg>\r\n <input\r\n type=\"text\"\r\n placeholder=\"Rechercher...\"\r\n [(ngModel)]=\"searchTerm\"\r\n (ngModelChange)=\"onSearchChange()\"\r\n />\r\n </div>\n <button class=\"btn-primary-red toolbar-add-btn\" type=\"button\" (click)=\"onCreateRequested()\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z\"/></svg>\n <span>Ajouter un template</span>\n </button>\n </div>\n\n <p *ngIf=\"loading\" class=\"loading-state\">Chargement...</p>\r\n\r\n <div class=\"grouping-hint\" *ngIf=\"!loading\">Pour regrouper, glissez un en-t\u00EAte de colonne et d\u00E9posez-le ici.</div>\r\n <div class=\"table-scroll\" *ngIf=\"!loading\">\r\n <table class=\"kavaa-table\">\r\n <thead><tr><th *ngFor=\"let column of columns\" [hidden]=\"!column.visible\"><div class=\"header-content\"><button class=\"header-label\" type=\"button\" (click)=\"toggleSort(column.key)\">{{ column.label }}</button><div class=\"column-menu-wrapper\"><button class=\"column-menu-trigger\" type=\"button\" (click)=\"toggleColumnMenu(column.key, $event)\">\u22EE</button><div class=\"column-menu\" *ngIf=\"openColumnMenu === column.key\"><button type=\"button\" (click)=\"sortColumn(column.key, 'asc')\">\u2191 Tri croissant</button><button type=\"button\" (click)=\"sortColumn(column.key, 'desc')\">\u2193 Tri d\u00E9croissant</button><button type=\"button\" class=\"columns-button\" (click)=\"toggleColumnSelector()\"><span class=\"columns-icon\">\u25A5</span> Colonnes <span class=\"chevron\">\u2303</span></button><div class=\"column-selector\" *ngIf=\"showColumnSelector\"><label *ngFor=\"let selectableColumn of columns\" class=\"column-visibility-option\"><input type=\"checkbox\" [checked]=\"selectableColumn.visible\" (change)=\"toggleColumnVisibility(selectableColumn)\"><span>{{ selectableColumn.label }}</span></label><div class=\"column-selector-actions\"><button type=\"button\" class=\"apply-columns\" (click)=\"applyColumnSelection()\">Apply</button><button type=\"button\" class=\"reset-columns\" (click)=\"resetColumnSelection()\">Reset</button></div></div></div></div></div></th><th class=\"actions-col\"><div class=\"actions-header\"><span class=\"actions-title\">Actions</span><button class=\"column-menu-trigger actions-menu-trigger\" type=\"button\" (click)=\"$event.stopPropagation()\" aria-label=\"Actions\">\u22EE</button></div></th></tr></thead>\r\n <tbody>\r\n <tr *ngFor=\"let t of paginatedItems; let i = index\">\r\n <td *ngIf=\"isColumnVisible('templateCode')\" class=\"cell-code\">{{ t.templateCode }}</td>\r\n <td *ngIf=\"isColumnVisible('label')\">{{ t.label }}</td>\r\n <td *ngIf=\"isColumnVisible('defaultTitle')\">{{ t.defaultTitle }}</td>\r\n <td *ngIf=\"isColumnVisible('defaultDurationMinutes')\">\r\n <span class=\"duration-cell\">\r\n <svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\"><path fill=\"currentColor\" d=\"M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm.5 5v5.25l4.5 2.67-.75 1.23L11 13V7h1.5z\"/></svg>\r\n {{ t.defaultDurationMinutes }} min\r\n </span>\r\n </td>\r\n <td *ngIf=\"isColumnVisible('status')\">\r\n <span class=\"badge\" [class.badge-active]=\"t.status === 'ACTIVE'\" [class.badge-inactive]=\"t.status !== 'ACTIVE'\">\r\n <span class=\"dot\"></span>{{ t.status }}\r\n </span>\r\n </td>\r\n <td class=\"actions-col\">\r\n <div class=\"template-row-actions\">\n <button class=\"template-action-icon\" type=\"button\" (click)=\"onInstantiate(t)\" aria-label=\"Utiliser ce template\" data-tooltip=\"Utiliser ce template\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"M8 5v14l11-7z\"/></svg></button>\n <button class=\"template-action-icon\" type=\"button\" (click)=\"onArchive(t)\" aria-label=\"Archiver le template\" data-tooltip=\"Archiver le template\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"M20.54 5.23 19.15 3.55A1.45 1.45 0 0 0 18 3H6c-.46 0-.87.2-1.15.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19a2 2 0 0 0 2 2h14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.5c0-.48-.17-.93-.46-1.27zM6.12 5h11.76l.82.97H5.3L6.12 5zM19 19H5V8h14v11zm-8-9h2v5h3l-4 4-4-4h3v-5z\"/></svg></button>\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <p *ngIf=\"paginatedItems.length === 0\" class=\"empty-state\">Aucun template trouv\u00E9.</p>\r\n </div>\r\n\r\n <div class=\"pager\" *ngIf=\"!loading && totalItems > 0\">\n <div class=\"pager-navigation\" aria-label=\"Pagination\">\n <button class=\"pager-btn pager-first\" type=\"button\" (click)=\"goToPage(1)\" [disabled]=\"currentPage === 1\" aria-label=\"Premi\u00E8re page\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"M6 6h2v12H6zm3.5 6 7-6v12z\"/></svg></button>\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage - 1)\" [disabled]=\"currentPage === 1\" aria-label=\"Page pr\u00E9c\u00E9dente\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"m15 6-6 6 6 6z\"/></svg></button>\n <button *ngFor=\"let page of visiblePages\" class=\"pager-number\" type=\"button\" [class.active]=\"page === currentPage\" (click)=\"goToPage(page)\">{{ page }}</button>\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage + 1)\" [disabled]=\"currentPage === totalPages\" aria-label=\"Page suivante\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"m9 6 6 6-6 6z\"/></svg></button>\n <button class=\"pager-btn pager-last\" type=\"button\" (click)=\"goToPage(totalPages)\" [disabled]=\"currentPage === totalPages\" aria-label=\"Derni\u00E8re page\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"m8 6 7 6-7 6zm8 0h2v12h-2z\"/></svg></button>\n </div>\n <select [(ngModel)]=\"pageSize\" (ngModelChange)=\"onPageSizeChange()\" aria-label=\"\u00C9l\u00E9ments par page\"><option *ngFor=\"let size of pageSizeOptions\" [value]=\"size\">{{ size }}</option></select>\n <span class=\"page-info\">Total : {{ totalItems }}</span>\n <button class=\"refresh-button\" mat-stroked-button color=\"primary\" type=\"button\" (click)=\"onRefreshRequested()\" aria-label=\"Refresh\" data-tooltip=\"refresh\"><mat-icon [svgIcon]=\"'heroicons_outline:refresh'\" aria-hidden=\"true\"></mat-icon></button>\n</div></div>\r\n\r\n\r\n\r\n", styles: [".kavaa-table-wrapper{font-family:system-ui,sans-serif;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;padding:16px}.toolbar{display:flex;gap:12px;margin-bottom:16px}.search-box{position:relative;display:flex;align-items:center}.search-icon{position:absolute;right:10px;color:#495057;pointer-events:none}.search-box input{padding:8px 32px 8px 12px;border:1px solid #e0e0e0;border-radius:6px;width:250px;color:#495057;font-size:13px}.table-scroll{overflow-x:auto}.kavaa-table{width:100%;border-collapse:collapse}.kavaa-table th{text-align:left;font-size:12px;text-transform:uppercase;color:#495057;padding:10px 8px;border-bottom:2px solid #f5f5f5;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;font-weight:600}.kavaa-table th:hover{background:#f5f5f5}.sort-icon{font-size:10px;margin-left:4px}.kavaa-table td{padding:10px 8px;border-bottom:1px solid #f5f5f5;font-size:13px;color:#495057;vertical-align:middle}.kavaa-table tbody tr:hover{background:#fafafa}.cell-code{font-weight:600;color:#1f2933;font-family:monospace}.duration-cell{display:inline-flex;align-items:center;gap:6px;color:#64748b}.duration-cell svg{flex-shrink:0;color:#94a3b8}.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:12px;font-size:12px;letter-spacing:.3px;background:#f5f5f5;color:#495057}.badge .dot{width:6px;height:6px;border-radius:50%;background:#94a3b8}.actions-col{width:50px;text-align:center;position:relative}.kavaa-table-wrapper,.kavaa-table-wrapper button,.kavaa-table-wrapper input,.kavaa-table-wrapper select{font-family:Inter var,ui-sans-serif,system-ui,sans-serif!important}.kavaa-table-wrapper .kavaa-table th{font-size:14px!important;font-weight:600!important;line-height:28.13px}.kavaa-table-wrapper .header-label,.kavaa-table-wrapper .actions-title{font-size:18px!important;font-weight:600!important}.kavaa-table-wrapper .kavaa-table td{font-size:16px!important;font-weight:500;line-height:21px}.kavaa-table-wrapper .kavaa-table td strong{font-size:inherit!important;font-weight:inherit}.kavaa-table-wrapper .badge,.kavaa-table-wrapper .duration-cell{font-size:16px!important;font-weight:500;line-height:21px}.kavaa-table-wrapper .pager{height:64px!important;min-height:64px!important;padding:0 20px!important;gap:18px!important;border:1px solid #e2e6eb!important;background:#fff;box-sizing:border-box}.kavaa-table-wrapper .pager-navigation{gap:11px!important}.kavaa-table-wrapper .pager-btn{width:16px!important;height:35px!important;min-height:35px!important;border-radius:0!important;color:#9baec0!important}.kavaa-table-wrapper .pager-number{width:35px!important;height:35px!important;min-height:35px!important;color:#34455f;font-size:12px!important}.kavaa-table-wrapper .pager-number.active{color:#fff!important;background:#d85f52!important;font-size:17.616px!important;font-weight:400;line-height:2}.kavaa-table-wrapper .pager select{width:78px!important;height:34px!important;min-height:34px!important;border-color:#d7dce3;border-radius:4px;background:#f7f7f7;font-size:13px!important}.kavaa-table-wrapper .page-info{color:#14213a!important;font-family:Inter var,ui-sans-serif,system-ui,sans-serif!important;font-size:14px!important;font-weight:500;line-height:26px}.kavaa-table-wrapper .refresh-button{display:inline-flex!important;width:74px!important;height:46px!important;min-height:46px!important;align-items:center;justify-content:center;margin-left:auto;padding:0!important;border:1px solid #c8ced8!important;border-radius:8px!important;background:#fff}.kavaa-table-wrapper .refresh-button mat-icon{width:26px;height:26px;margin:0!important;font-size:26px}.template-row-actions{display:inline-flex;align-items:center;justify-content:center;gap:4px}.template-action-icon{position:relative;display:grid;width:28px;height:28px;place-items:center;padding:0;border:0;border-radius:5px;background:transparent;color:#98a2b3;cursor:pointer;transition:color .15s,background .15s}.template-action-icon:hover{background:#f2f4f7;color:#667085}.template-action-icon:focus-visible{outline:2px solid #cbd5e1;outline-offset:2px}.template-action-icon svg{width:16px;height:16px}.template-action-icon:after{position:absolute;z-index:50;bottom:calc(100% + 7px);left:50%;padding:6px 9px;border-radius:4px;background:#2f3136;color:#fff;content:attr(data-tooltip);font-size:11px;font-weight:600;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .15s,transform .15s}.template-action-icon:hover:after,.template-action-icon:focus-visible:after{opacity:1;transform:translate(-50%)}.menu-wrapper{position:relative;display:inline-block}.menu-trigger{background:none;border:none;cursor:pointer;padding:4px;color:#495057;display:flex;align-items:center;justify-content:center;border-radius:4px}.menu-trigger:hover{background:#f5f5f5}.menu-dropdown{position:absolute;right:0;top:100%;background:#fff;border:1px solid #f5f5f5;border-radius:6px;box-shadow:0 4px 12px #0000001f;z-index:10;min-width:190px;overflow:hidden}.menu-dropdown button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:8px 12px;background:none;border:none;cursor:pointer;font-size:13px;color:#495057}.menu-dropdown button:hover{background:#f5f5f5}.menu-dropdown button svg{flex-shrink:0;color:#c22b22}.pager{display:flex;align-items:center;gap:12px;margin-top:16px;justify-content:flex-end}.pager select{padding:6px 8px;border:1px solid #e0e0e0;border-radius:6px;color:#495057;font-size:13px}.pager-btn{display:flex;align-items:center;justify-content:center;padding:6px;border:1px solid #e0e0e0;border-radius:6px;background:#fff;color:#495057;cursor:pointer}.pager-btn:hover:not(:disabled){background:#f5f5f5}.page-info{font-size:13px;color:#495057}.loading-state,.empty-state{color:#6c757d;font-style:italic;padding:24px;text-align:center}:host{display:block;font-size:10px}.kavaa-table-wrapper{padding:0;border-radius:0;box-shadow:none;font-size:10px}.toolbar{padding:12px 14px;margin:0}.search-box{width:220px;max-width:220px}.search-box input{width:100%;height:30px;min-height:30px;padding:5px 28px 5px 9px;border-radius:6px;font-size:9px;box-sizing:border-box}.search-icon{right:9px;width:12px;height:12px}.kavaa-table th{padding:10px 11px;font-size:9px}.kavaa-table td{padding:11px;font-size:10px;line-height:1.4}.badge{padding:3px 7px;font-size:8px}.badge .dot{width:5px;height:5px}.menu-trigger{width:29px;height:29px;padding:0}.menu-trigger svg{width:16px;height:16px}.menu-dropdown{min-width:170px}.menu-dropdown button{min-height:31px;padding:7px 8px;font-size:9px}.menu-dropdown button svg{width:13px;height:13px}.pager{gap:8px;margin:0;padding:10px 13px;font-size:9px}.pager select,.pager-btn{min-height:30px;height:30px;border-radius:6px;font-size:9px;box-sizing:border-box}.pager-btn{width:30px;padding:0}.page-info{font-size:9px}.loading-state,.empty-state{padding:20px;font-size:9px}@media(max-width:480px){.search-box{width:100%;max-width:100%}}.badge.badge-active{border:1px solid #bbf7d0;background:#ecfdf3;color:#15803d}.badge.badge-active .dot{background:#22c55e;box-shadow:0 0 0 2px #22c55e1f}.badge.badge-inactive{border:1px solid #e2e8f0;background:#f8fafc;color:#64748b}.badge.badge-inactive .dot{background:#94a3b8}.kavaa-table-wrapper{overflow:hidden;border-radius:7px}.toolbar{min-height:39px;padding:5px 9px;gap:8px;background:#ececec;border-bottom:1px solid #d7d7d7}.search-box{width:auto;max-width:none}.search-box input{width:185px;height:27px;min-height:27px;padding:5px 29px 5px 7px;border:1px solid #d5d9df;border-radius:3px;color:#4b5563;background:#fff;font-size:10px}.search-icon{right:7px;width:16px;height:16px;color:#28364b}.grouping-hint{padding:10px 8px 8px;border-bottom:1px solid #d9dce1;color:#5f6670;background:#fff;font-size:11px}.kavaa-table{min-width:800px}.kavaa-table th{padding:9px 8px;border-right:1px solid #d9dce1;border-bottom:1px solid #d9dce1;color:#d5312c;background:#fff;font-size:12px;font-weight:700;text-transform:none}.kavaa-table th:hover{background:#f7f7f7}.kavaa-table td{height:43px;padding:7px 10px;border-right:1px solid #e1e3e6;border-bottom:1px solid #e5e7eb;color:#14213a;font-size:10px}.kavaa-table tbody tr:nth-child(odd){background:#ededed}.kavaa-table tbody tr:nth-child(2n){background:#fff}.kavaa-table tbody tr:hover{background:#e7edf5}.cell-code{color:#14213a;font-weight:500}.duration-cell{color:#14213a;font-size:10px}.badge{padding:4px 8px;border-radius:12px;font-size:9px;font-weight:600;letter-spacing:0}.badge.badge-active{border:0;background:#d1fae5;color:#067647}.badge.badge-inactive{border:0;background:#f2f4f7;color:#475467}.actions-col{width:62px}.menu-trigger{width:28px;height:28px;padding:4px;color:#667085;border-radius:4px}.menu-trigger:hover{color:#c22b22;background:#f9eeee}.menu-dropdown{border-color:#dfe3e8;border-radius:5px;box-shadow:0 7px 18px #0f172a26}.menu-dropdown button{min-height:31px;padding:7px 9px;font-size:10px}.pager{min-height:43px;margin:0;padding:6px 10px;justify-content:flex-start;gap:11px;border-top:1px solid #d3d7dc;background:#fff}.pager select{width:70px;height:25px;min-height:25px;padding:2px 6px;border:1px solid #d3d7dc;border-radius:3px;background:#f7f7f7;font-size:10px}.pager-btn{width:25px;height:25px;min-height:25px;padding:0;border:0;border-radius:50%;background:transparent;font-size:11px}.pager-btn:hover:not(:disabled){background:#eef1f4}.page-info{color:#14213a;font-size:10px;font-weight:700}.pager-navigation{display:inline-flex;align-items:center;gap:4px}.pager-btn,.pager-number{display:inline-flex;width:25px!important;height:25px!important;min-height:25px!important;align-items:center;justify-content:center;padding:0!important;border:0;border-radius:50%;color:#24324b;background:transparent;font-size:11px;cursor:pointer}.pager-btn:hover:not(:disabled),.pager-number:hover{background:#eef1f4}.pager-number.active{color:#fff;background:#cf584e}.pager-btn:disabled{opacity:.35;cursor:not-allowed}.pager select{width:53px}.toolbar{align-items:center}.toolbar-add-btn{display:inline-flex;min-height:29px;height:29px;align-items:center;justify-content:center;gap:6px;margin-left:auto;padding:0 10px;border:0;border-radius:4px;background:#c22b22;color:#fff;font-size:10px;font-weight:700;cursor:pointer}.toolbar-add-btn:hover{background:#a82219}.toolbar-add-btn svg{width:13px;height:13px;fill:currentColor}.header-content{display:flex;min-height:39px;align-items:center}.header-label{flex:1;padding:9px 8px;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}.column-menu-wrapper{position:relative}.column-menu-trigger{width:37px;height:39px;border:0;border-left:1px solid #e7e7e7;background:#fff;color:#4b4f55;font-size:22px;cursor:pointer}.column-menu{position:absolute;right:0;top:39px;z-index:30;width:250px;padding:4px 0 7px;border:1px solid #d7d7d7;background:#fff;box-shadow:0 4px 10px #0000002e;color:#4b4f55;font-size:11px}.column-menu button{display:block;width:100%;min-height:34px;padding:6px 12px;border:0;background:#fff;text-align:left;font:inherit;cursor:pointer}.column-menu button:hover,.column-visibility-option:hover{background:#f3f3f3}.column-menu-separator{height:1px;margin:3px 0 5px;background:#e3e3e3}.columns-title{padding:3px 12px 5px;font-weight:700}.column-visibility-option{display:flex;min-height:27px;align-items:center;gap:8px;padding:2px 12px;cursor:pointer}.column-visibility-option input{accent-color:#c22b22}.kavaa-table th,.header-label{font-family:Arial,Helvetica,sans-serif}.kavaa-table th{font-size:14px}.header-content,.column-menu-trigger{min-height:43px;height:43px}.header-label{font-size:14px;font-weight:700}.column-menu{top:43px;font-family:Arial,Helvetica,sans-serif;font-size:14px}.column-menu button{display:flex;align-items:center;gap:9px;font-size:14px}.columns-button{border-top:1px solid #e3e3e3!important}.columns-icon{font-size:20px;line-height:1}.chevron{margin-left:auto;font-size:20px}.column-selector{border-top:1px solid #e3e3e3;padding:4px 0}.column-visibility-option{font-size:13px}.actions-title{display:flex;min-height:43px;align-items:center;justify-content:center;padding:0 8px;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:700;color:#d5312c}.kavaa-table-wrapper .toolbar{width:100%;box-sizing:border-box;background:#efefef;border-top:1px solid #e2e2e2;border-bottom:1px solid #d6d6d6}.kavaa-table-wrapper .search-box input{background:#fff}.actions-header{display:flex;min-height:43px;align-items:center}.actions-title{flex:1}.actions-menu-trigger{flex:0 0 37px}.pager{min-height:40px;padding:0 10px;border:1px solid #d7dce2;border-top:0;background:#fff}.pager-navigation{gap:5px}.pager-btn,.pager-number{width:23px!important;height:23px!important;min-height:23px!important;color:#9cabbc;font-family:Arial,Helvetica,sans-serif;font-size:12px}.pager-number.active{width:23px!important;height:23px!important;background:#d65c50;color:#fff}.pager select{width:55px;height:24px;min-height:24px;margin-left:8px;border:1px solid #d6dbe1;border-radius:2px;background:#f5f5f5;color:#31445e;font-size:11px}.page-info{font-family:monospace;font-size:11px;color:#14213a}.refresh-button{display:inline-flex;width:31px;height:27px;align-items:center;justify-content:center;margin-left:auto;border:1px solid #d6dbe1;border-radius:3px;background:#fff;color:#2b4360;font-size:20px;line-height:1;cursor:pointer}.refresh-button:hover{background:#f2f5f7}.column-selector{display:none!important}.pager,.pager *{font-family:Arial,Helvetica,sans-serif}.pager-btn,.pager-number{font-size:16px!important;font-weight:700;color:#7f93a8!important}.pager-btn:disabled{opacity:.7!important;color:#b1bfcd!important}.pager-btn:hover:not(:disabled){color:#324b66!important;background:#f0f3f6}.pager-number.active{font-size:12px!important;color:#fff!important}.page-info{font-family:Arial,Helvetica,sans-serif;font-size:11px;font-weight:700;letter-spacing:.4px}.column-menu-trigger,.actions-menu-trigger{border-left:0!important}.pager{height:55px;min-height:55px;padding:0 18px;gap:18px;border:1px solid #e2e6eb;border-top:0}.pager-navigation{gap:11px}.pager-btn{width:16px!important;height:35px!important;min-height:35px!important;padding:0!important;border-radius:0!important;font-size:17px!important;font-weight:400!important;color:#9baec0!important}.pager-btn:disabled{opacity:1!important;color:#c8d3df!important}.pager-number{width:35px!important;height:35px!important;min-height:35px!important;border-radius:50%!important;font-size:12px!important;font-weight:400!important}.pager-number.active{width:35px!important;height:35px!important;min-height:35px!important;background:#d85f52!important;color:#fff!important}.pager select{width:78px;height:34px;min-height:34px;margin-left:6px;padding:0 10px;border:1px solid #d8dde3;border-radius:3px;background:#f4f4f4;font-size:13px;color:#34495e}.page-info{margin-left:7px;font-family:Courier New,monospace!important;font-size:13px!important;font-weight:700!important;color:#14213a!important;letter-spacing:.2px}.refresh-button{width:32px;height:29px;margin-left:auto}.kavaa-table-wrapper .toolbar{height:59px;min-height:59px;padding:8px 10px;background:#efefef}.kavaa-table-wrapper .search-box{width:375px;max-width:375px}.kavaa-table-wrapper .search-box input{width:375px;height:42px;min-height:42px;padding:7px 47px 7px 13px;border:1px solid #e4e4e4;border-radius:5px;font-family:Arial,Helvetica,sans-serif;font-size:20px;color:#656565}.kavaa-table-wrapper .search-icon{right:8px;width:34px;height:34px;color:#313131}.toolbar-add-btn{height:41px;min-height:41px;padding:0 15px;font-size:18px}.pager-btn svg{width:14px;height:14px;display:block}.pager-btn:disabled svg{color:#c9d4df}.pager-btn:not(:disabled) svg{color:#90a2b5}.kavaa-table-wrapper .toolbar{height:55px;min-height:55px;padding:10px 5px;background:#eee}.kavaa-table-wrapper .search-box{width:280px;max-width:280px}.kavaa-table-wrapper .search-box input{width:280px;height:34px;min-height:34px;padding:6px 35px 6px 10px;border:1px solid #e3e3e3;border-radius:4px;font-size:16px}.kavaa-table-wrapper .search-icon{right:7px;width:26px;height:26px;color:#333}.toolbar-add-btn{height:30px;min-height:30px;padding:0 11px;border-radius:4px;font-size:14px}.toolbar-add-btn svg{width:16px;height:16px}.kavaa-table-wrapper .toolbar{height:48px;min-height:48px;padding:7px 6px}.kavaa-table-wrapper .search-box{width:220px;max-width:220px}.kavaa-table-wrapper .search-box input{width:220px;height:30px;min-height:30px;padding:5px 31px 5px 9px;font-size:14px}.kavaa-table-wrapper .search-icon{right:6px;width:23px;height:23px}.toolbar-add-btn{height:28px;min-height:28px;padding:0 9px;font-size:12px}.toolbar-add-btn svg{width:14px;height:14px}.column-selector{display:block!important;max-height:230px;overflow-y:auto;border-top:1px solid #ddd;background:#fff}.column-visibility-option{display:flex;min-height:32px;align-items:center;gap:7px;padding:3px 12px;font-size:14px}.column-visibility-option input{width:18px;height:18px;accent-color:#c92d27}.column-selector-actions{display:flex;gap:10px;padding:8px 12px;border-top:1px solid #ddd;background:#fff}.column-selector-actions button{display:flex!important;flex:1;min-height:34px!important;justify-content:center;border:1px solid #d5d5d5!important;border-radius:4px!important;text-align:center!important}.column-selector-actions .apply-columns{border-color:#c92d27!important;background:#c92d27!important;color:#fff!important}.column-selector-actions .reset-columns{background:#f4f4f4!important;color:#555!important}.kavaa-table-wrapper .pager .refresh-button{position:relative;display:inline-flex!important;width:74px!important;height:46px!important;min-height:46px!important;align-items:center;justify-content:center;margin-left:auto;padding:0!important;border:1px solid #c8ced8!important;border-radius:8px!important;background:#fff;color:#263b69;cursor:pointer;box-sizing:border-box}.kavaa-table-wrapper .pager .refresh-button:hover{border-color:#9aa9bd!important;background:#f8fafc}.kavaa-table-wrapper .pager .refresh-button mat-icon{width:26px;height:26px;margin:0!important;font-size:26px}.kavaa-table-wrapper .pager .refresh-button:after{position:absolute;z-index:60;bottom:calc(100% + 7px);left:50%;padding:9px 12px;border-radius:5px;background:#2f3136;color:#fff;content:attr(data-tooltip);font-family:Arial,Helvetica,sans-serif;font-size:16px;font-weight:400;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .15s ease,transform .15s ease}.kavaa-table-wrapper .pager .refresh-button:hover:after,.kavaa-table-wrapper .pager .refresh-button:focus-visible:after{opacity:1;transform:translate(-50%)}\n"] }]
985
- }], ctorParameters: () => [], propDecorators: { items: [{
890
+ args: [{ selector: "lib-templates-table", standalone: true, imports: [CommonModule, FormsModule, GridModule, MatButtonModule, MatIconModule], template: "<div class=\"kavaa-table-wrapper\">\n <kendo-grid\n [data]=\"filteredItems\"\n [loading]=\"loading\"\n [pageable]=\"true\"\n [pageSize]=\"pageSize\"\n [sortable]=\"true\"\n [filterable]=\"true\"\n [groupable]=\"true\"\n [resizable]=\"true\"\n [kendoGridBinding]=\"filteredItems\"\n class=\"templates-kendo-grid\">\n <ng-template kendoGridToolbarTemplate>\n <div class=\"toolbar\">\n <div class=\"search-box\">\n <svg class=\"search-icon\" viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z\"/></svg>\n <input type=\"text\" placeholder=\"Rechercher...\" [(ngModel)]=\"searchTerm\" />\n </div>\n <button class=\"btn-primary-red toolbar-add-btn\" type=\"button\" (click)=\"onCreateRequested()\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z\"/></svg>\n <span>Ajouter un template</span>\n </button>\n </div>\n </ng-template>\n\n <kendo-grid-column field=\"templateCode\" title=\"Code du template\" [width]=\"170\"></kendo-grid-column>\n <kendo-grid-column field=\"label\" title=\"Nom du template\" [width]=\"220\"></kendo-grid-column>\n <kendo-grid-column field=\"defaultTitle\" title=\"Titre par d\u00E9faut\" [width]=\"240\"></kendo-grid-column>\n <kendo-grid-column field=\"defaultDurationMinutes\" title=\"Dur\u00E9e\" [width]=\"130\">\n <ng-template kendoGridCellTemplate let-dataItem>{{ dataItem.defaultDurationMinutes }} min</ng-template>\n </kendo-grid-column>\n <kendo-grid-column field=\"status\" title=\"Statut\" [width]=\"140\">\n <ng-template kendoGridCellTemplate let-dataItem>\n <span class=\"badge\" [class.badge-active]=\"dataItem.status === 'ACTIVE'\" [class.badge-inactive]=\"dataItem.status !== 'ACTIVE'\">\n <span class=\"dot\"></span>{{ dataItem.status }}\n </span>\n </ng-template>\n </kendo-grid-column>\n <kendo-grid-column title=\"Actions\" [width]=\"130\" [sortable]=\"false\" [filterable]=\"false\" [groupable]=\"false\">\n <ng-template kendoGridCellTemplate let-dataItem>\n <div class=\"template-row-actions\">\n <button class=\"template-action-icon\" type=\"button\" (click)=\"onInstantiate(dataItem)\" aria-label=\"Utiliser ce template\" title=\"Utiliser ce template\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"M8 5v14l11-7z\"/></svg>\n </button>\n <button class=\"template-action-icon\" type=\"button\" (click)=\"onArchive(dataItem)\" aria-label=\"Archiver le template\" title=\"Archiver le template\">\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"M20.54 5.23 19.15 3.55A1.45 1.45 0 0 0 18 3H6c-.46 0-.87.2-1.15.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19a2 2 0 0 0 2 2h14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.5c0-.48-.17-.93-.46-1.27zM6.12 5h11.76l.82.97H5.3L6.12 5zM19 19H5V8h14v11zm-8-9h2v5h3l-4 4-4-4h3v-5z\"/></svg>\n </button>\n </div>\n </ng-template>\n </kendo-grid-column>\n <kendo-grid-messages noRecords=\"Aucun template trouv\u00E9.\"></kendo-grid-messages>\n </kendo-grid>\n\n <button class=\"pager-refresh\" mat-stroked-button color=\"primary\" type=\"button\" (click)=\"onRefreshRequested()\" aria-label=\"Actualiser\">\n <mat-icon [svgIcon]=\"'heroicons_outline:refresh'\" aria-hidden=\"true\"></mat-icon>\n </button>\n</div>\n", styles: [".kavaa-table-wrapper{font-family:system-ui,sans-serif;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;padding:16px}.toolbar{display:flex;gap:12px;margin-bottom:16px}.search-box{position:relative;display:flex;align-items:center}.search-icon{position:absolute;right:10px;color:#495057;pointer-events:none}.search-box input{padding:8px 32px 8px 12px;border:1px solid #e0e0e0;border-radius:6px;width:250px;color:#495057;font-size:13px}.table-scroll{overflow-x:auto}.kavaa-table{width:100%;border-collapse:collapse}.kavaa-table th{text-align:left;font-size:12px;text-transform:uppercase;color:#495057;padding:10px 8px;border-bottom:2px solid #f5f5f5;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;font-weight:600}.kavaa-table th:hover{background:#f5f5f5}.sort-icon{font-size:10px;margin-left:4px}.kavaa-table td{padding:10px 8px;border-bottom:1px solid #f5f5f5;font-size:13px;color:#495057;vertical-align:middle}.kavaa-table tbody tr:hover{background:#fafafa}.cell-code{font-weight:600;color:#1f2933;font-family:monospace}.duration-cell{display:inline-flex;align-items:center;gap:6px;color:#64748b}.duration-cell svg{flex-shrink:0;color:#94a3b8}.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:12px;font-size:12px;letter-spacing:.3px;background:#f5f5f5;color:#495057}.badge .dot{width:6px;height:6px;border-radius:50%;background:#94a3b8}.actions-col{width:50px;text-align:center;position:relative}.kavaa-table-wrapper,.kavaa-table-wrapper button,.kavaa-table-wrapper input,.kavaa-table-wrapper select{font-family:Inter var,ui-sans-serif,system-ui,sans-serif!important}.kavaa-table-wrapper .kavaa-table th{font-size:14px!important;font-weight:600!important;line-height:28.13px}.kavaa-table-wrapper .header-label,.kavaa-table-wrapper .actions-title{font-size:18px!important;font-weight:600!important}.kavaa-table-wrapper .kavaa-table td{font-size:16px!important;font-weight:500;line-height:21px}.kavaa-table-wrapper .kavaa-table td strong{font-size:inherit!important;font-weight:inherit}.kavaa-table-wrapper .badge,.kavaa-table-wrapper .duration-cell{font-size:16px!important;font-weight:500;line-height:21px}.kavaa-table-wrapper .pager{height:64px!important;min-height:64px!important;padding:0 20px!important;gap:18px!important;border:1px solid #e2e6eb!important;background:#fff;box-sizing:border-box}.kavaa-table-wrapper .pager-navigation{gap:11px!important}.kavaa-table-wrapper .pager-btn{width:16px!important;height:35px!important;min-height:35px!important;border-radius:0!important;color:#9baec0!important}.kavaa-table-wrapper .pager-number{width:35px!important;height:35px!important;min-height:35px!important;color:#34455f;font-size:12px!important}.kavaa-table-wrapper .pager-number.active{color:#fff!important;background:#d85f52!important;font-size:17.616px!important;font-weight:400;line-height:2}.kavaa-table-wrapper .pager select{width:78px!important;height:34px!important;min-height:34px!important;border-color:#d7dce3;border-radius:4px;background:#f7f7f7;font-size:13px!important}.kavaa-table-wrapper .page-info{color:#14213a!important;font-family:Inter var,ui-sans-serif,system-ui,sans-serif!important;font-size:14px!important;font-weight:500;line-height:26px}.kavaa-table-wrapper .pager-refresh{display:inline-flex!important;width:74px!important;height:46px!important;min-height:46px!important;align-items:center;justify-content:center;margin-left:auto;padding:0!important;border:1px solid #c8ced8!important;border-radius:8px!important;background:#fff}.kavaa-table-wrapper .pager-refresh mat-icon{width:26px;height:26px;margin:0!important;font-size:26px}.template-row-actions{display:inline-flex;align-items:center;justify-content:center;gap:4px}.template-action-icon{position:relative;display:grid;width:28px;height:28px;place-items:center;padding:0;border:0;border-radius:5px;background:transparent;color:#98a2b3;cursor:pointer;transition:color .15s,background .15s}.template-action-icon:hover{background:#f2f4f7;color:#667085}.template-action-icon:focus-visible{outline:2px solid #cbd5e1;outline-offset:2px}.template-action-icon svg{width:16px;height:16px}.template-action-icon:after{position:absolute;z-index:50;bottom:calc(100% + 7px);left:50%;padding:6px 9px;border-radius:4px;background:#2f3136;color:#fff;content:attr(data-tooltip);font-size:11px;font-weight:600;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .15s,transform .15s}.template-action-icon:hover:after,.template-action-icon:focus-visible:after{opacity:1;transform:translate(-50%)}.menu-wrapper{position:relative;display:inline-block}.menu-trigger{background:none;border:none;cursor:pointer;padding:4px;color:#495057;display:flex;align-items:center;justify-content:center;border-radius:4px}.menu-trigger:hover{background:#f5f5f5}.menu-dropdown{position:absolute;right:0;top:100%;background:#fff;border:1px solid #f5f5f5;border-radius:6px;box-shadow:0 4px 12px #0000001f;z-index:10;min-width:190px;overflow:hidden}.menu-dropdown button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:8px 12px;background:none;border:none;cursor:pointer;font-size:13px;color:#495057}.menu-dropdown button:hover{background:#f5f5f5}.menu-dropdown button svg{flex-shrink:0;color:#c22b22}.pager{display:flex;align-items:center;gap:12px;margin-top:16px;justify-content:flex-end}.pager select{padding:6px 8px;border:1px solid #e0e0e0;border-radius:6px;color:#495057;font-size:13px}.pager-btn{display:flex;align-items:center;justify-content:center;padding:6px;border:1px solid #e0e0e0;border-radius:6px;background:#fff;color:#495057;cursor:pointer}.pager-btn:hover:not(:disabled){background:#f5f5f5}.page-info{font-size:13px;color:#495057}.loading-state,.empty-state{color:#6c757d;font-style:italic;padding:24px;text-align:center}:host{display:block;font-size:10px}.kavaa-table-wrapper{padding:0;border-radius:0;box-shadow:none;font-size:10px}.toolbar{padding:12px 14px;margin:0}.search-box{width:220px;max-width:220px}.search-box input{width:100%;height:30px;min-height:30px;padding:5px 28px 5px 9px;border-radius:6px;font-size:9px;box-sizing:border-box}.search-icon{right:9px;width:12px;height:12px}.kavaa-table th{padding:10px 11px;font-size:9px}.kavaa-table td{padding:11px;font-size:10px;line-height:1.4}.badge{padding:3px 7px;font-size:8px}.badge .dot{width:5px;height:5px}.menu-trigger{width:29px;height:29px;padding:0}.menu-trigger svg{width:16px;height:16px}.menu-dropdown{min-width:170px}.menu-dropdown button{min-height:31px;padding:7px 8px;font-size:9px}.menu-dropdown button svg{width:13px;height:13px}.pager{gap:8px;margin:0;padding:10px 13px;font-size:9px}.pager select,.pager-btn{min-height:30px;height:30px;border-radius:6px;font-size:9px;box-sizing:border-box}.pager-btn{width:30px;padding:0}.page-info{font-size:9px}.loading-state,.empty-state{padding:20px;font-size:9px}@media(max-width:480px){.search-box{width:100%;max-width:100%}}.badge.badge-active{border:1px solid #bbf7d0;background:#ecfdf3;color:#15803d}.badge.badge-active .dot{background:#22c55e;box-shadow:0 0 0 2px #22c55e1f}.badge.badge-inactive{border:1px solid #e2e8f0;background:#f8fafc;color:#64748b}.badge.badge-inactive .dot{background:#94a3b8}.kavaa-table-wrapper{overflow:hidden;border-radius:7px}.toolbar{min-height:39px;padding:5px 9px;gap:8px;background:#ececec;border-bottom:1px solid #d7d7d7}.search-box{width:auto;max-width:none}.search-box input{width:185px;height:27px;min-height:27px;padding:5px 29px 5px 7px;border:1px solid #d5d9df;border-radius:3px;color:#4b5563;background:#fff;font-size:10px}.search-icon{right:7px;width:16px;height:16px;color:#28364b}.grouping-hint{padding:10px 8px 8px;border-bottom:1px solid #d9dce1;color:#5f6670;background:#fff;font-size:11px}.kavaa-table{min-width:800px}.kavaa-table th{padding:9px 8px;border-right:1px solid #d9dce1;border-bottom:1px solid #d9dce1;color:#d5312c;background:#fff;font-size:12px;font-weight:700;text-transform:none}.kavaa-table th:hover{background:#f7f7f7}.kavaa-table td{height:43px;padding:7px 10px;border-right:1px solid #e1e3e6;border-bottom:1px solid #e5e7eb;color:#14213a;font-size:10px}.kavaa-table tbody tr:nth-child(odd){background:#ededed}.kavaa-table tbody tr:nth-child(2n){background:#fff}.kavaa-table tbody tr:hover{background:#e7edf5}.cell-code{color:#14213a;font-weight:500}.duration-cell{color:#14213a;font-size:10px}.badge{padding:4px 8px;border-radius:12px;font-size:9px;font-weight:600;letter-spacing:0}.badge.badge-active{border:0;background:#d1fae5;color:#067647}.badge.badge-inactive{border:0;background:#f2f4f7;color:#475467}.actions-col{width:62px}.menu-trigger{width:28px;height:28px;padding:4px;color:#667085;border-radius:4px}.menu-trigger:hover{color:#c22b22;background:#f9eeee}.menu-dropdown{border-color:#dfe3e8;border-radius:5px;box-shadow:0 7px 18px #0f172a26}.menu-dropdown button{min-height:31px;padding:7px 9px;font-size:10px}.pager{min-height:43px;margin:0;padding:6px 10px;justify-content:flex-start;gap:11px;border-top:1px solid #d3d7dc;background:#fff}.pager select{width:70px;height:25px;min-height:25px;padding:2px 6px;border:1px solid #d3d7dc;border-radius:3px;background:#f7f7f7;font-size:10px}.pager-btn{width:25px;height:25px;min-height:25px;padding:0;border:0;border-radius:50%;background:transparent;font-size:11px}.pager-btn:hover:not(:disabled){background:#eef1f4}.page-info{color:#14213a;font-size:10px;font-weight:700}.pager-navigation{display:inline-flex;align-items:center;gap:4px}.pager-btn,.pager-number{display:inline-flex;width:25px!important;height:25px!important;min-height:25px!important;align-items:center;justify-content:center;padding:0!important;border:0;border-radius:50%;color:#24324b;background:transparent;font-size:11px;cursor:pointer}.pager-btn:hover:not(:disabled),.pager-number:hover{background:#eef1f4}.pager-number.active{color:#fff;background:#cf584e}.pager-btn:disabled{opacity:.35;cursor:not-allowed}.pager select{width:53px}.toolbar{align-items:center}.toolbar-add-btn{display:inline-flex;min-height:29px;height:29px;align-items:center;justify-content:center;gap:6px;margin-left:auto;padding:0 10px;border:0;border-radius:4px;background:#c22b22;color:#fff;font-size:10px;font-weight:700;cursor:pointer}.toolbar-add-btn:hover{background:#a82219}.toolbar-add-btn svg{width:13px;height:13px;fill:currentColor}.header-content{display:flex;min-height:39px;align-items:center}.header-label{flex:1;padding:9px 8px;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}.column-menu-wrapper{position:relative}.column-menu-trigger{width:37px;height:39px;border:0;border-left:1px solid #e7e7e7;background:#fff;color:#4b4f55;font-size:22px;cursor:pointer}.column-menu{position:absolute;right:0;top:39px;z-index:30;width:250px;padding:4px 0 7px;border:1px solid #d7d7d7;background:#fff;box-shadow:0 4px 10px #0000002e;color:#4b4f55;font-size:11px}.column-menu button{display:block;width:100%;min-height:34px;padding:6px 12px;border:0;background:#fff;text-align:left;font:inherit;cursor:pointer}.column-menu button:hover,.column-visibility-option:hover{background:#f3f3f3}.column-menu-separator{height:1px;margin:3px 0 5px;background:#e3e3e3}.columns-title{padding:3px 12px 5px;font-weight:700}.column-visibility-option{display:flex;min-height:27px;align-items:center;gap:8px;padding:2px 12px;cursor:pointer}.column-visibility-option input{accent-color:#c22b22}.kavaa-table th,.header-label{font-family:Arial,Helvetica,sans-serif}.kavaa-table th{font-size:14px}.header-content,.column-menu-trigger{min-height:43px;height:43px}.header-label{font-size:14px;font-weight:700}.column-menu{top:43px;font-family:Arial,Helvetica,sans-serif;font-size:14px}.column-menu button{display:flex;align-items:center;gap:9px;font-size:14px}.columns-button{border-top:1px solid #e3e3e3!important}.columns-icon{font-size:20px;line-height:1}.chevron{margin-left:auto;font-size:20px}.column-selector{border-top:1px solid #e3e3e3;padding:4px 0}.column-visibility-option{font-size:13px}.actions-title{display:flex;min-height:43px;align-items:center;justify-content:center;padding:0 8px;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:700;color:#d5312c}.kavaa-table-wrapper .toolbar{width:100%;box-sizing:border-box;background:#efefef;border-top:1px solid #e2e2e2;border-bottom:1px solid #d6d6d6}.kavaa-table-wrapper .search-box input{background:#fff}.actions-header{display:flex;min-height:43px;align-items:center}.actions-title{flex:1}.actions-menu-trigger{flex:0 0 37px}.pager{min-height:40px;padding:0 10px;border:1px solid #d7dce2;border-top:0;background:#fff}.pager-navigation{gap:5px}.pager-btn,.pager-number{width:23px!important;height:23px!important;min-height:23px!important;color:#9cabbc;font-family:Arial,Helvetica,sans-serif;font-size:12px}.pager-number.active{width:23px!important;height:23px!important;background:#d65c50;color:#fff}.pager select{width:55px;height:24px;min-height:24px;margin-left:8px;border:1px solid #d6dbe1;border-radius:2px;background:#f5f5f5;color:#31445e;font-size:11px}.page-info{font-family:monospace;font-size:11px;color:#14213a}.pager-refresh{display:inline-flex;width:31px;height:27px;align-items:center;justify-content:center;margin-left:auto;border:1px solid #d6dbe1;border-radius:3px;background:#fff;color:#2b4360;font-size:20px;line-height:1;cursor:pointer}.pager-refresh:hover{background:#f2f5f7}.column-selector{display:none!important}.pager,.pager *{font-family:Arial,Helvetica,sans-serif}.pager-btn,.pager-number{font-size:16px!important;font-weight:700;color:#7f93a8!important}.pager-btn:disabled{opacity:.7!important;color:#b1bfcd!important}.pager-btn:hover:not(:disabled){color:#324b66!important;background:#f0f3f6}.pager-number.active{font-size:12px!important;color:#fff!important}.page-info{font-family:Arial,Helvetica,sans-serif;font-size:11px;font-weight:700;letter-spacing:.4px}.column-menu-trigger,.actions-menu-trigger{border-left:0!important}.pager{height:55px;min-height:55px;padding:0 18px;gap:18px;border:1px solid #e2e6eb;border-top:0}.pager-navigation{gap:11px}.pager-btn{width:16px!important;height:35px!important;min-height:35px!important;padding:0!important;border-radius:0!important;font-size:17px!important;font-weight:400!important;color:#9baec0!important}.pager-btn:disabled{opacity:1!important;color:#c8d3df!important}.pager-number{width:35px!important;height:35px!important;min-height:35px!important;border-radius:50%!important;font-size:12px!important;font-weight:400!important}.pager-number.active{width:35px!important;height:35px!important;min-height:35px!important;background:#d85f52!important;color:#fff!important}.pager select{width:78px;height:34px;min-height:34px;margin-left:6px;padding:0 10px;border:1px solid #d8dde3;border-radius:3px;background:#f4f4f4;font-size:13px;color:#34495e}.page-info{margin-left:7px;font-family:Courier New,monospace!important;font-size:13px!important;font-weight:700!important;color:#14213a!important;letter-spacing:.2px}.pager-refresh{width:32px;height:29px;margin-left:auto}.kavaa-table-wrapper .toolbar{height:59px;min-height:59px;padding:8px 10px;background:#efefef}.kavaa-table-wrapper .search-box{width:375px;max-width:375px}.kavaa-table-wrapper .search-box input{width:375px;height:42px;min-height:42px;padding:7px 47px 7px 13px;border:1px solid #e4e4e4;border-radius:5px;font-family:Arial,Helvetica,sans-serif;font-size:20px;color:#656565}.kavaa-table-wrapper .search-icon{right:8px;width:34px;height:34px;color:#313131}.toolbar-add-btn{height:41px;min-height:41px;padding:0 15px;font-size:18px}.pager-btn svg{width:14px;height:14px;display:block}.pager-btn:disabled svg{color:#c9d4df}.pager-btn:not(:disabled) svg{color:#90a2b5}.kavaa-table-wrapper .toolbar{height:55px;min-height:55px;padding:10px 5px;background:#eee}.kavaa-table-wrapper .search-box{width:280px;max-width:280px}.kavaa-table-wrapper .search-box input{width:280px;height:34px;min-height:34px;padding:6px 35px 6px 10px;border:1px solid #e3e3e3;border-radius:4px;font-size:16px}.kavaa-table-wrapper .search-icon{right:7px;width:26px;height:26px;color:#333}.toolbar-add-btn{height:30px;min-height:30px;padding:0 11px;border-radius:4px;font-size:14px}.toolbar-add-btn svg{width:16px;height:16px}.kavaa-table-wrapper .toolbar{height:48px;min-height:48px;padding:7px 6px}.kavaa-table-wrapper .search-box{width:220px;max-width:220px}.kavaa-table-wrapper .search-box input{width:220px;height:30px;min-height:30px;padding:5px 31px 5px 9px;font-size:14px}.kavaa-table-wrapper .search-icon{right:6px;width:23px;height:23px}.toolbar-add-btn{height:28px;min-height:28px;padding:0 9px;font-size:12px}.toolbar-add-btn svg{width:14px;height:14px}.column-selector{display:block!important;max-height:230px;overflow-y:auto;border-top:1px solid #ddd;background:#fff}.column-visibility-option{display:flex;min-height:32px;align-items:center;gap:7px;padding:3px 12px;font-size:14px}.column-visibility-option input{width:18px;height:18px;accent-color:#c92d27}.column-selector-actions{display:flex;gap:10px;padding:8px 12px;border-top:1px solid #ddd;background:#fff}.column-selector-actions button{display:flex!important;flex:1;min-height:34px!important;justify-content:center;border:1px solid #d5d5d5!important;border-radius:4px!important;text-align:center!important}.column-selector-actions .apply-columns{border-color:#c92d27!important;background:#c92d27!important;color:#fff!important}.column-selector-actions .reset-columns{background:#f4f4f4!important;color:#555!important}.kavaa-table-wrapper .pager .pager-refresh{position:relative;display:inline-flex!important;width:74px!important;height:46px!important;min-height:46px!important;align-items:center;justify-content:center;margin-left:auto;padding:0!important;border:1px solid #c8ced8!important;border-radius:8px!important;background:#fff;color:#263b69;cursor:pointer;box-sizing:border-box}.kavaa-table-wrapper .pager .pager-refresh:hover{border-color:#9aa9bd!important;background:#f8fafc}.kavaa-table-wrapper .pager .pager-refresh mat-icon{width:26px;height:26px;margin:0!important;font-size:26px}.kavaa-table-wrapper .pager .pager-refresh:after{position:absolute;z-index:60;bottom:calc(100% + 7px);left:50%;padding:9px 12px;border-radius:5px;background:#2f3136;color:#fff;content:attr(data-tooltip);font-family:Arial,Helvetica,sans-serif;font-size:16px;font-weight:400;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .15s ease,transform .15s ease}.kavaa-table-wrapper .pager .pager-refresh:hover:after,.kavaa-table-wrapper .pager .pager-refresh:focus-visible:after{opacity:1;transform:translate(-50%)}\n"] }]
891
+ }], ctorParameters: () => [{ type: i1$1.MatIconRegistry }, { type: i2$1.DomSanitizer }], propDecorators: { items: [{
986
892
  type: Input
987
893
  }], loading: [{
988
894
  type: Input
@@ -994,9 +900,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
994
900
  type: Output
995
901
  }], refreshRequested: [{
996
902
  type: Output
997
- }], onDocumentClick: [{
998
- type: HostListener,
999
- args: ["document:click", ["$event"]]
1000
903
  }] } });
1001
904
 
1002
905
  class AgendaTable {