@kmme/kmme-ui-angular 0.0.1 → 0.0.2
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.
|
@@ -37,6 +37,7 @@ class MeetingListTable {
|
|
|
37
37
|
closeMeetingRequested = new EventEmitter();
|
|
38
38
|
manageMeetingSectionRequested = new EventEmitter();
|
|
39
39
|
generateOccurrenceRequested = new EventEmitter();
|
|
40
|
+
refreshRequested = new EventEmitter();
|
|
40
41
|
searchTerm = "";
|
|
41
42
|
statusFilter = "";
|
|
42
43
|
sortField = "scheduledAt";
|
|
@@ -45,6 +46,9 @@ class MeetingListTable {
|
|
|
45
46
|
currentPage = 1;
|
|
46
47
|
openMenuIndex = null;
|
|
47
48
|
openCreateMenu = false;
|
|
49
|
+
openColumnMenu = null;
|
|
50
|
+
showColumnSelector = false;
|
|
51
|
+
columns = [{ key: "title", label: "Titre", visible: true }, { key: "meetingTypeCode", label: "Type", visible: true }, { key: "origin", label: "Origine", visible: true }, { key: "status", label: "Statut", visible: true }, { key: "scheduledAt", label: "Date prévue", visible: true }];
|
|
48
52
|
statusOptions = [
|
|
49
53
|
{ value: "", label: "Tous les statuts" },
|
|
50
54
|
{ value: "DRAFT", label: "Brouillon" },
|
|
@@ -58,6 +62,7 @@ class MeetingListTable {
|
|
|
58
62
|
if (!this.elementRef.nativeElement.contains(event.target)) {
|
|
59
63
|
this.openMenuIndex = null;
|
|
60
64
|
this.openCreateMenu = false;
|
|
65
|
+
this.openColumnMenu = null;
|
|
61
66
|
}
|
|
62
67
|
}
|
|
63
68
|
get filteredItems() {
|
|
@@ -124,13 +129,30 @@ class MeetingListTable {
|
|
|
124
129
|
sortIcon(field) {
|
|
125
130
|
if (this.sortField !== field)
|
|
126
131
|
return "";
|
|
127
|
-
return this.sortDirection === "asc" ? "
|
|
132
|
+
return this.sortDirection === "asc" ? "â–²" : "â–¼";
|
|
133
|
+
}
|
|
134
|
+
isColumnVisible(key) { return this.columns.find((column) => column.key === key)?.visible ?? false; }
|
|
135
|
+
toggleColumnMenu(key, event) { event.stopPropagation(); this.openColumnMenu = this.openColumnMenu === key ? null : key; this.showColumnSelector = false; }
|
|
136
|
+
toggleColumnSelector() { this.showColumnSelector = !this.showColumnSelector; }
|
|
137
|
+
applyColumnSelection() { this.showColumnSelector = false; this.openColumnMenu = null; }
|
|
138
|
+
resetColumnSelection() { this.columns.forEach((column) => column.visible = true); }
|
|
139
|
+
sortColumn(key, direction) { this.sortField = key; this.sortDirection = direction; this.openColumnMenu = null; }
|
|
140
|
+
toggleColumnVisibility(column) { if (column.visible && this.columns.filter((item) => item.visible).length === 1)
|
|
141
|
+
return; column.visible = !column.visible; }
|
|
142
|
+
get visiblePages() {
|
|
143
|
+
const maxPages = 5;
|
|
144
|
+
const firstPage = Math.max(1, Math.min(this.currentPage - 2, this.totalPages - maxPages + 1));
|
|
145
|
+
const lastPage = Math.min(this.totalPages, firstPage + maxPages - 1);
|
|
146
|
+
return Array.from({ length: lastPage - firstPage + 1 }, (_, index) => firstPage + index);
|
|
128
147
|
}
|
|
129
148
|
goToPage(page) {
|
|
130
149
|
if (page < 1 || page > this.totalPages)
|
|
131
150
|
return;
|
|
132
151
|
this.currentPage = page;
|
|
133
152
|
}
|
|
153
|
+
refresh() {
|
|
154
|
+
this.refreshRequested.emit();
|
|
155
|
+
}
|
|
134
156
|
toggleMenu(index, event) {
|
|
135
157
|
event.stopPropagation();
|
|
136
158
|
this.openCreateMenu = false;
|
|
@@ -190,13 +212,13 @@ class MeetingListTable {
|
|
|
190
212
|
return;
|
|
191
213
|
this.openMenuIndex = null;
|
|
192
214
|
const saved = JSON.parse(localStorage.getItem("kmme-recurring-series") || "[]");
|
|
193
|
-
const seriesTitle = meeting.title.replace(/\s*[
|
|
215
|
+
const seriesTitle = meeting.title.replace(/\s*[—–-]\s*\d{1,2}[\/-]\d{1,2}[\/-]\d{4}\s*$/, "").trim();
|
|
194
216
|
const meetingTitle = seriesTitle.toLowerCase();
|
|
195
217
|
const seriesId = meeting.seriesId ?? saved.find(item => meetingTitle === item.title.toLowerCase() || meetingTitle.startsWith(`${item.title.toLowerCase()} `))?.seriesId;
|
|
196
218
|
this.generateOccurrenceRequested.emit({ ...meeting, seriesId });
|
|
197
219
|
}
|
|
198
220
|
isRecurringMeeting(meeting) {
|
|
199
|
-
return meeting.origin === "RECURRENCE" || !!meeting.seriesId || /\s[
|
|
221
|
+
return meeting.origin === "RECURRENCE" || !!meeting.seriesId || /\s[—–-]\s\d{1,2}[\/-]\d{1,2}[\/-]\d{4}\s*$/.test(meeting.title);
|
|
200
222
|
}
|
|
201
223
|
statusLabel(status) {
|
|
202
224
|
return this.statusOptions.find((s) => s.value === status)?.label ?? status;
|
|
@@ -205,16 +227,16 @@ class MeetingListTable {
|
|
|
205
227
|
const labels = {
|
|
206
228
|
MANUAL: "Manuelle",
|
|
207
229
|
TEMPLATE: "Template",
|
|
208
|
-
RECURRENCE: "
|
|
230
|
+
RECURRENCE: "Récurrente",
|
|
209
231
|
};
|
|
210
232
|
return labels[origin];
|
|
211
233
|
}
|
|
212
234
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MeetingListTable, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
213
|
-
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" }, host: { listeners: { "document:click": "onDocumentClick($event)" } }, ngImport: i0, template: "<div class=\"kavaa-table-wrapper\">\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\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=\"table-scroll\" *ngIf=\"!loading\">\n <table class=\"kavaa-table\">\n <thead>\n <tr>\n <th (click)=\"toggleSort('title')\">Titre <span class=\"sort-icon\">{{ sortIcon('title') }}</span></th>\n <th (click)=\"toggleSort('meetingTypeCode')\">Type <span class=\"sort-icon\">{{ sortIcon('meetingTypeCode') }}</span></th>\n <th (click)=\"toggleSort('origin')\">Origine <span class=\"sort-icon\">{{ sortIcon('origin') }}</span></th>\n <th (click)=\"toggleSort('status')\">Statut <span class=\"sort-icon\">{{ sortIcon('status') }}</span></th>\n <th (click)=\"toggleSort('scheduledAt')\">Date prevue <span class=\"sort-icon\">{{ sortIcon('scheduledAt') }}</span></th>\n <th class=\"actions-col\"></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let m of paginatedItems; let i = index\">\n <td class=\"strong-cell\">{{ m.title }}</td>\n <td>{{ m.meetingTypeCode }}</td>\n <td><span class=\"origin-badge origin-{{ m.origin | lowercase }}\">{{ originLabel(m.origin) }}</span></td>\n <td><span class=\"badge status-{{ m.status | lowercase }}\">{{ statusLabel(m.status) }}</span></td>\n <td>{{ m.scheduledAt | date:\"short\" }}</td>\n <td class=\"actions-col\">\n <div class=\"menu-wrapper\">\n <button class=\"menu-trigger\" type=\"button\" (click)=\"toggleMenu(i, $event)\" aria-label=\"Actions\">\n <svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\"><path fill=\"currentColor\" d=\"M12 8a2 2 0 1 0-2-2 2 2 0 0 0 2 2zm0 2a2 2 0 1 0 2 2 2 2 0 0 0-2-2zm0 6a2 2 0 1 0 2 2 2 2 0 0 0-2-2z\"/></svg>\n </button>\n <div class=\"menu-dropdown\" *ngIf=\"openMenuIndex === i\">\n <button type=\"button\" (click)=\"onOpen(m.meetingId)\">\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 <span>Voir</span>\n </button>\n <button type=\"button\" (click)=\"onEdit(m.meetingId)\">\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 <span>Modifier</span>\n </button>\n <button type=\"button\" (click)=\"onWorkspace(m.meetingId)\">\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 <span>Espace de r\u00E9union</span>\n </button>\n <ng-container *ngIf=\"m.status === 'PLANNED'\">\r\n <button type=\"button\" class=\"open-meeting-action\" (click)=\"onStartMeeting(m.meetingId)\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M8 5v14l11-7L8 5Z\"/></svg>\n <span>Ouvrir la r\u00E9union</span>\n </button>\n <button type=\"button\" (click)=\"openMeetingSection(m.meetingId, '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 <span>Invitations</span>\n </button>\n </ng-container>\r\n <ng-container *ngIf=\"m.status === 'IN_SESSION'\">\r\n <button type=\"button\" class=\"close-meeting-action\" (click)=\"onCloseMeeting(m.meetingId)\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M6 6h12v12H6V6Z\"/></svg>\n <span>Cl\u00F4turer la r\u00E9union</span>\n </button>\r\n <button type=\"button\" (click)=\"onAttendance(m.meetingId)\">\r\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>\r\n <span>G\u00E9rer les pr\u00E9sences</span>\r\n </button>\r\n </ng-container>\r\n <ng-container *ngIf=\"m.status === 'CLOSED'\">\r\n <button type=\"button\" (click)=\"onArchiveMeeting(m.meetingId)\" class=\"archive-action\">\r\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>\r\n <span>Archiver</span>\r\n </button>\r\n <button type=\"button\" (click)=\"onMinutes(m.meetingId)\">\r\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>\r\n <span>Proc\u00E8s-verbal de la r\u00E9union</span>\r\n </button>\r\n </ng-container>\r\n <button *ngIf=\"isRecurringMeeting(m)\" type=\"button\" (click)=\"onGenerateOccurrence(m)\">\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 <span>G\u00E9n\u00E9rer une occurrence</span>\n </button>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n\n <p *ngIf=\"paginatedItems.length === 0\" class=\"empty-state\">Aucune reunion trouvee.</p>\n </div>\n\n <div class=\"pager\" *ngIf=\"!loading && totalItems > 0\">\n <select [(ngModel)]=\"pageSize\" (ngModelChange)=\"onPageSizeChange()\">\n <option *ngFor=\"let size of pageSizeOptions\" [value]=\"size\">{{ size }} / page</option>\n </select>\n\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage - 1)\" [disabled]=\"currentPage === 1\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z\"/></svg>\n </button>\n <span class=\"page-info\">{{ pageStart }}-{{ pageEnd }} sur {{ totalItems }}</span>\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage + 1)\" [disabled]=\"currentPage === totalPages\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M8.59 16.59 10 18l6-6-6-6-1.41 1.41L13.17 12z\"/></svg>\n </button>\n </div>\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}.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}.create-menu{position:relative;margin-left:auto}.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}\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: "pipe", type: i1.LowerCasePipe, name: "lowercase" }, { kind: "pipe", type: i1.DatePipe, name: "date" }] });
|
|
235
|
+
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=\"menu-wrapper\">\n <button class=\"menu-trigger\" type=\"button\" (click)=\"toggleMenu(i, $event)\" aria-label=\"Actions\">\n <svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\"><path fill=\"currentColor\" d=\"M12 8a2 2 0 1 0-2-2 2 2 0 0 0 2 2zm0 2a2 2 0 1 0 2 2 2 2 0 0 0-2-2zm0 6a2 2 0 1 0 2 2 2 2 0 0 0-2-2z\"/></svg>\n </button>\n <div class=\"menu-dropdown\" *ngIf=\"openMenuIndex === i\">\n <button type=\"button\" (click)=\"onOpen(m.meetingId)\">\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 <span>Voir</span>\n </button>\n <button type=\"button\" (click)=\"onEdit(m.meetingId)\">\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 <span>Modifier</span>\n </button>\n <button type=\"button\" (click)=\"onWorkspace(m.meetingId)\">\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 <span>Espace de r\u00E9union</span>\n </button>\n <ng-container *ngIf=\"m.status === 'PLANNED'\">\n <button type=\"button\" class=\"open-meeting-action\" (click)=\"onStartMeeting(m.meetingId)\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M8 5v14l11-7L8 5Z\"/></svg>\n <span>Ouvrir la r\u00E9union</span>\n </button>\n <button type=\"button\" (click)=\"openMeetingSection(m.meetingId, '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 <span>Invitations</span>\n </button>\n </ng-container>\n <ng-container *ngIf=\"m.status === 'IN_SESSION'\">\n <button type=\"button\" class=\"close-meeting-action\" (click)=\"onCloseMeeting(m.meetingId)\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M6 6h12v12H6V6Z\"/></svg>\n <span>Cl\u00F4turer la r\u00E9union</span>\n </button>\n <button type=\"button\" (click)=\"onAttendance(m.meetingId)\">\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 <span>G\u00E9rer les pr\u00E9sences</span>\n </button>\n </ng-container>\n <ng-container *ngIf=\"m.status === 'CLOSED'\">\n <button type=\"button\" (click)=\"onArchiveMeeting(m.meetingId)\" class=\"archive-action\">\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 <span>Archiver</span>\n </button>\n <button type=\"button\" (click)=\"onMinutes(m.meetingId)\">\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 <span>Proc\u00E8s-verbal de la r\u00E9union</span>\n </button>\n </ng-container>\n <button *ngIf=\"isRecurringMeeting(m)\" type=\"button\" (click)=\"onGenerateOccurrence(m)\">\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 <span>G\u00E9n\u00E9rer une occurrence</span>\n </button>\n </div>\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=\"Premiere 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 precedente\"><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>\r\n <button class=\"pager-refresh\" type=\"button\" (click)=\"refresh()\" aria-label=\"Actualiser la liste\" title=\"Actualiser\"><svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 3a5 5 0 1 1-4.546 2.914.5.5 0 0 0-.908-.418A6 6 0 1 0 8 2V.5a.5.5 0 0 0-.854-.354l-2 2a.5.5 0 0 0 0 .708l2 2A.5.5 0 0 0 8 4.5z\"/></svg></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}\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: "pipe", type: i1.LowerCasePipe, name: "lowercase" }, { kind: "pipe", type: i1.DatePipe, name: "date" }] });
|
|
214
236
|
}
|
|
215
237
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MeetingListTable, decorators: [{
|
|
216
238
|
type: Component,
|
|
217
|
-
args: [{ selector: "kavaa-meeting-list-table", standalone: true, imports: [CommonModule, FormsModule], template: "<div class=\"kavaa-table-wrapper\">\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\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=\"table-scroll\" *ngIf=\"!loading\">\n <table class=\"kavaa-table\">\n <thead>\n <tr>\n <th (click)=\"toggleSort('title')\">Titre <span class=\"sort-icon\">{{ sortIcon('title') }}</span></th>\n <th (click)=\"toggleSort('meetingTypeCode')\">Type <span class=\"sort-icon\">{{ sortIcon('meetingTypeCode') }}</span></th>\n <th (click)=\"toggleSort('origin')\">Origine <span class=\"sort-icon\">{{ sortIcon('origin') }}</span></th>\n <th (click)=\"toggleSort('status')\">Statut <span class=\"sort-icon\">{{ sortIcon('status') }}</span></th>\n <th (click)=\"toggleSort('scheduledAt')\">Date prevue <span class=\"sort-icon\">{{ sortIcon('scheduledAt') }}</span></th>\n <th class=\"actions-col\"></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let m of paginatedItems; let i = index\">\n <td class=\"strong-cell\">{{ m.title }}</td>\n <td>{{ m.meetingTypeCode }}</td>\n <td><span class=\"origin-badge origin-{{ m.origin | lowercase }}\">{{ originLabel(m.origin) }}</span></td>\n <td><span class=\"badge status-{{ m.status | lowercase }}\">{{ statusLabel(m.status) }}</span></td>\n <td>{{ m.scheduledAt | date:\"short\" }}</td>\n <td class=\"actions-col\">\n <div class=\"menu-wrapper\">\n <button class=\"menu-trigger\" type=\"button\" (click)=\"toggleMenu(i, $event)\" aria-label=\"Actions\">\n <svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\"><path fill=\"currentColor\" d=\"M12 8a2 2 0 1 0-2-2 2 2 0 0 0 2 2zm0 2a2 2 0 1 0 2 2 2 2 0 0 0-2-2zm0 6a2 2 0 1 0 2 2 2 2 0 0 0-2-2z\"/></svg>\n </button>\n <div class=\"menu-dropdown\" *ngIf=\"openMenuIndex === i\">\n <button type=\"button\" (click)=\"onOpen(m.meetingId)\">\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 <span>Voir</span>\n </button>\n <button type=\"button\" (click)=\"onEdit(m.meetingId)\">\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 <span>Modifier</span>\n </button>\n <button type=\"button\" (click)=\"onWorkspace(m.meetingId)\">\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 <span>Espace de r\u00E9union</span>\n </button>\n <ng-container *ngIf=\"m.status === 'PLANNED'\">\r\n <button type=\"button\" class=\"open-meeting-action\" (click)=\"onStartMeeting(m.meetingId)\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M8 5v14l11-7L8 5Z\"/></svg>\n <span>Ouvrir la r\u00E9union</span>\n </button>\n <button type=\"button\" (click)=\"openMeetingSection(m.meetingId, '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 <span>Invitations</span>\n </button>\n </ng-container>\r\n <ng-container *ngIf=\"m.status === 'IN_SESSION'\">\r\n <button type=\"button\" class=\"close-meeting-action\" (click)=\"onCloseMeeting(m.meetingId)\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M6 6h12v12H6V6Z\"/></svg>\n <span>Cl\u00F4turer la r\u00E9union</span>\n </button>\r\n <button type=\"button\" (click)=\"onAttendance(m.meetingId)\">\r\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>\r\n <span>G\u00E9rer les pr\u00E9sences</span>\r\n </button>\r\n </ng-container>\r\n <ng-container *ngIf=\"m.status === 'CLOSED'\">\r\n <button type=\"button\" (click)=\"onArchiveMeeting(m.meetingId)\" class=\"archive-action\">\r\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>\r\n <span>Archiver</span>\r\n </button>\r\n <button type=\"button\" (click)=\"onMinutes(m.meetingId)\">\r\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>\r\n <span>Proc\u00E8s-verbal de la r\u00E9union</span>\r\n </button>\r\n </ng-container>\r\n <button *ngIf=\"isRecurringMeeting(m)\" type=\"button\" (click)=\"onGenerateOccurrence(m)\">\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 <span>G\u00E9n\u00E9rer une occurrence</span>\n </button>\n </div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n\n <p *ngIf=\"paginatedItems.length === 0\" class=\"empty-state\">Aucune reunion trouvee.</p>\n </div>\n\n <div class=\"pager\" *ngIf=\"!loading && totalItems > 0\">\n <select [(ngModel)]=\"pageSize\" (ngModelChange)=\"onPageSizeChange()\">\n <option *ngFor=\"let size of pageSizeOptions\" [value]=\"size\">{{ size }} / page</option>\n </select>\n\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage - 1)\" [disabled]=\"currentPage === 1\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z\"/></svg>\n </button>\n <span class=\"page-info\">{{ pageStart }}-{{ pageEnd }} sur {{ totalItems }}</span>\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage + 1)\" [disabled]=\"currentPage === totalPages\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M8.59 16.59 10 18l6-6-6-6-1.41 1.41L13.17 12z\"/></svg>\n </button>\n </div>\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}.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}.create-menu{position:relative;margin-left:auto}.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}\n"] }]
|
|
239
|
+
args: [{ selector: "kavaa-meeting-list-table", standalone: true, imports: [CommonModule, FormsModule], 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=\"menu-wrapper\">\n <button class=\"menu-trigger\" type=\"button\" (click)=\"toggleMenu(i, $event)\" aria-label=\"Actions\">\n <svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\"><path fill=\"currentColor\" d=\"M12 8a2 2 0 1 0-2-2 2 2 0 0 0 2 2zm0 2a2 2 0 1 0 2 2 2 2 0 0 0-2-2zm0 6a2 2 0 1 0 2 2 2 2 0 0 0-2-2z\"/></svg>\n </button>\n <div class=\"menu-dropdown\" *ngIf=\"openMenuIndex === i\">\n <button type=\"button\" (click)=\"onOpen(m.meetingId)\">\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 <span>Voir</span>\n </button>\n <button type=\"button\" (click)=\"onEdit(m.meetingId)\">\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 <span>Modifier</span>\n </button>\n <button type=\"button\" (click)=\"onWorkspace(m.meetingId)\">\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 <span>Espace de r\u00E9union</span>\n </button>\n <ng-container *ngIf=\"m.status === 'PLANNED'\">\n <button type=\"button\" class=\"open-meeting-action\" (click)=\"onStartMeeting(m.meetingId)\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M8 5v14l11-7L8 5Z\"/></svg>\n <span>Ouvrir la r\u00E9union</span>\n </button>\n <button type=\"button\" (click)=\"openMeetingSection(m.meetingId, '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 <span>Invitations</span>\n </button>\n </ng-container>\n <ng-container *ngIf=\"m.status === 'IN_SESSION'\">\n <button type=\"button\" class=\"close-meeting-action\" (click)=\"onCloseMeeting(m.meetingId)\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M6 6h12v12H6V6Z\"/></svg>\n <span>Cl\u00F4turer la r\u00E9union</span>\n </button>\n <button type=\"button\" (click)=\"onAttendance(m.meetingId)\">\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 <span>G\u00E9rer les pr\u00E9sences</span>\n </button>\n </ng-container>\n <ng-container *ngIf=\"m.status === 'CLOSED'\">\n <button type=\"button\" (click)=\"onArchiveMeeting(m.meetingId)\" class=\"archive-action\">\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 <span>Archiver</span>\n </button>\n <button type=\"button\" (click)=\"onMinutes(m.meetingId)\">\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 <span>Proc\u00E8s-verbal de la r\u00E9union</span>\n </button>\n </ng-container>\n <button *ngIf=\"isRecurringMeeting(m)\" type=\"button\" (click)=\"onGenerateOccurrence(m)\">\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 <span>G\u00E9n\u00E9rer une occurrence</span>\n </button>\n </div>\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=\"Premiere 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 precedente\"><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>\r\n <button class=\"pager-refresh\" type=\"button\" (click)=\"refresh()\" aria-label=\"Actualiser la liste\" title=\"Actualiser\"><svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 3a5 5 0 1 1-4.546 2.914.5.5 0 0 0-.908-.418A6 6 0 1 0 8 2V.5a.5.5 0 0 0-.854-.354l-2 2a.5.5 0 0 0 0 .708l2 2A.5.5 0 0 0 8 4.5z\"/></svg></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}\n"] }]
|
|
218
240
|
}], propDecorators: { items: [{
|
|
219
241
|
type: Input
|
|
220
242
|
}], loading: [{
|
|
@@ -233,6 +255,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
|
|
|
233
255
|
type: Output
|
|
234
256
|
}], generateOccurrenceRequested: [{
|
|
235
257
|
type: Output
|
|
258
|
+
}], refreshRequested: [{
|
|
259
|
+
type: Output
|
|
236
260
|
}], onDocumentClick: [{
|
|
237
261
|
type: HostListener,
|
|
238
262
|
args: ["document:click", ["$event"]]
|
|
@@ -822,20 +846,26 @@ class TemplatesTable {
|
|
|
822
846
|
loading = false;
|
|
823
847
|
instantiateRequested = new EventEmitter();
|
|
824
848
|
archiveRequested = new EventEmitter();
|
|
849
|
+
createRequested = new EventEmitter();
|
|
850
|
+
refreshRequested = new EventEmitter();
|
|
825
851
|
searchTerm = "";
|
|
826
852
|
sortField = "templateCode";
|
|
827
853
|
sortDirection = "asc";
|
|
828
854
|
pageSize = 10;
|
|
829
855
|
currentPage = 1;
|
|
830
856
|
openMenuIndex = null;
|
|
857
|
+
openColumnMenu = null;
|
|
858
|
+
showColumnSelector = false;
|
|
859
|
+
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 }];
|
|
831
860
|
pageSizeOptions = [5, 10, 20, 50];
|
|
832
861
|
onDocumentClick(event) {
|
|
833
862
|
if (!this.elementRef.nativeElement.contains(event.target)) {
|
|
834
863
|
this.openMenuIndex = null;
|
|
864
|
+
this.openColumnMenu = null;
|
|
835
865
|
}
|
|
836
866
|
}
|
|
837
867
|
get filteredItems() {
|
|
838
|
-
let result = this.items;
|
|
868
|
+
let result = this.items.filter((template) => template.templateCode?.trim().toUpperCase() !== "A-2");
|
|
839
869
|
if (this.searchTerm.trim()) {
|
|
840
870
|
const term = this.searchTerm.trim().toLowerCase();
|
|
841
871
|
result = result.filter((t) => t.templateCode?.toLowerCase().includes(term) ||
|
|
@@ -865,6 +895,12 @@ class TemplatesTable {
|
|
|
865
895
|
get totalPages() {
|
|
866
896
|
return Math.max(1, Math.ceil(this.totalItems / this.pageSize));
|
|
867
897
|
}
|
|
898
|
+
get visiblePages() {
|
|
899
|
+
const maxPages = 5;
|
|
900
|
+
const firstPage = Math.max(1, Math.min(this.currentPage - 2, this.totalPages - maxPages + 1));
|
|
901
|
+
const lastPage = Math.min(this.totalPages, firstPage + maxPages - 1);
|
|
902
|
+
return Array.from({ length: lastPage - firstPage + 1 }, (_, index) => firstPage + index);
|
|
903
|
+
}
|
|
868
904
|
get paginatedItems() {
|
|
869
905
|
const start = (this.currentPage - 1) * this.pageSize;
|
|
870
906
|
return this.sortedItems.slice(start, start + this.pageSize);
|
|
@@ -893,8 +929,16 @@ class TemplatesTable {
|
|
|
893
929
|
sortIcon(field) {
|
|
894
930
|
if (this.sortField !== field)
|
|
895
931
|
return "";
|
|
896
|
-
return this.sortDirection === "asc" ? "
|
|
897
|
-
}
|
|
932
|
+
return this.sortDirection === "asc" ? "â–²" : "â–¼";
|
|
933
|
+
}
|
|
934
|
+
isColumnVisible(key) { return this.columns.find((column) => column.key === key)?.visible ?? false; }
|
|
935
|
+
toggleColumnMenu(key, event) { event.stopPropagation(); this.openMenuIndex = null; this.openColumnMenu = this.openColumnMenu === key ? null : key; }
|
|
936
|
+
sortColumn(field, direction) { this.sortField = field; this.sortDirection = direction; this.currentPage = 1; this.openColumnMenu = null; }
|
|
937
|
+
toggleColumnSelector() { this.showColumnSelector = !this.showColumnSelector; }
|
|
938
|
+
applyColumnSelection() { this.showColumnSelector = false; this.openColumnMenu = null; }
|
|
939
|
+
resetColumnSelection() { this.columns.forEach((column) => column.visible = true); }
|
|
940
|
+
toggleColumnVisibility(column) { if (column.visible && this.columns.filter((item) => item.visible).length === 1)
|
|
941
|
+
return; column.visible = !column.visible; }
|
|
898
942
|
goToPage(page) {
|
|
899
943
|
if (page < 1 || page > this.totalPages)
|
|
900
944
|
return;
|
|
@@ -904,6 +948,10 @@ class TemplatesTable {
|
|
|
904
948
|
event.stopPropagation();
|
|
905
949
|
this.openMenuIndex = this.openMenuIndex === index ? null : index;
|
|
906
950
|
}
|
|
951
|
+
onRefreshRequested() { this.refreshRequested.emit(); }
|
|
952
|
+
onCreateRequested() {
|
|
953
|
+
this.createRequested.emit();
|
|
954
|
+
}
|
|
907
955
|
onInstantiate(template) {
|
|
908
956
|
this.openMenuIndex = null;
|
|
909
957
|
this.instantiateRequested.emit(template);
|
|
@@ -913,11 +961,11 @@ class TemplatesTable {
|
|
|
913
961
|
this.archiveRequested.emit(template);
|
|
914
962
|
}
|
|
915
963
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: TemplatesTable, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
916
|
-
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" }, 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>\r\n </div>\r\n\r\n <p *ngIf=\"loading\" class=\"loading-state\">Chargement...</p>\r\n\r\n <div class=\"table-scroll\" *ngIf=\"!loading\">\r\n <table class=\"kavaa-table\">\r\n <thead>\r\n <tr>\r\n <th (click)=\"toggleSort('templateCode')\">Code <span class=\"sort-icon\">{{ sortIcon('templateCode') }}</span></th>\r\n <th (click)=\"toggleSort('label')\">Libell\u00E9 <span class=\"sort-icon\">{{ sortIcon('label') }}</span></th>\r\n <th>Titre par d\u00E9faut</th>\r\n <th (click)=\"toggleSort('defaultDurationMinutes')\">Dur\u00E9e <span class=\"sort-icon\">{{ sortIcon('defaultDurationMinutes') }}</span></th>\r\n <th (click)=\"toggleSort('status')\">Statut <span class=\"sort-icon\">{{ sortIcon('status') }}</span></th>\r\n <th class=\"actions-col\"></th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let t of paginatedItems; let i = index\">\r\n <td class=\"cell-code\">{{ t.templateCode }}</td>\r\n <td>{{ t.label }}</td>\r\n <td>{{ t.defaultTitle }}</td>\r\n <td>\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>\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=\"menu-wrapper\">\r\n <button class=\"menu-trigger\" type=\"button\" (click)=\"toggleMenu(i, $event)\">\r\n <svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\"><path fill=\"currentColor\" d=\"M12 8a2 2 0 1 0-2-2 2 2 0 0 0 2 2zm0 2a2 2 0 1 0 2 2 2 2 0 0 0-2-2zm0 6a2 2 0 1 0 2 2 2 2 0 0 0-2-2z\"/></svg>\r\n </button>\r\n <div class=\"menu-dropdown\" *ngIf=\"openMenuIndex === i\">\r\n <button type=\"button\" (click)=\"onInstantiate(t)\">\r\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M8 5v14l11-7z\"/></svg>\r\n <span>Utiliser ce template</span>\r\n </button>\n <button type=\"button\" (click)=\"onArchive(t)\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><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-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 <span>Archiver</span>\n </button>\r\n </div>\r\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\">\r\n <select [(ngModel)]=\"pageSize\" (ngModelChange)=\"onPageSizeChange()\">\r\n <option *ngFor=\"let size of pageSizeOptions\" [value]=\"size\">{{ size }} / page</option>\r\n </select>\r\n\r\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage - 1)\" [disabled]=\"currentPage === 1\">\r\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z\"/></svg>\r\n </button>\r\n <span class=\"page-info\">{{ pageStart }}-{{ pageEnd }} sur {{ totalItems }}</span>\r\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage + 1)\" [disabled]=\"currentPage === totalPages\">\r\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M8.59 16.59 10 18l6-6-6-6-1.41 1.41L13.17 12z\"/></svg>\r\n </button>\r\n </div>\r\n</div>", 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}.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}.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}: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}\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"] }] });
|
|
964
|
+
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=\"menu-wrapper\">\r\n <button class=\"menu-trigger\" type=\"button\" (click)=\"toggleMenu(i, $event)\">\r\n <svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\"><path fill=\"currentColor\" d=\"M12 8a2 2 0 1 0-2-2 2 2 0 0 0 2 2zm0 2a2 2 0 1 0 2 2 2 2 0 0 0-2-2zm0 6a2 2 0 1 0 2 2 2 2 0 0 0-2-2z\"/></svg>\r\n </button>\r\n <div class=\"menu-dropdown\" *ngIf=\"openMenuIndex === i\">\r\n <button type=\"button\" (click)=\"onInstantiate(t)\">\r\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M8 5v14l11-7z\"/></svg>\r\n <span>Utiliser ce template</span>\r\n </button>\r\n <button type=\"button\" (click)=\"onArchive(t)\">\r\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><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-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>\r\n <span>Archiver</span>\r\n </button>\r\n </div>\r\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\" type=\"button\" (click)=\"onRefreshRequested()\" aria-label=\"Actualiser\">\u21BB</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}.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}\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"] }] });
|
|
917
965
|
}
|
|
918
966
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: TemplatesTable, decorators: [{
|
|
919
967
|
type: Component,
|
|
920
|
-
args: [{ selector: "lib-templates-table", standalone: true, imports: [CommonModule, FormsModule], 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>\r\n </div>\r\n\r\n <p *ngIf=\"loading\" class=\"loading-state\">Chargement...</p>\r\n\r\n <div class=\"table-scroll\" *ngIf=\"!loading\">\r\n <table class=\"kavaa-table\">\r\n <thead>\r\n <tr>\r\n <th (click)=\"toggleSort('templateCode')\">Code <span class=\"sort-icon\">{{ sortIcon('templateCode') }}</span></th>\r\n <th (click)=\"toggleSort('label')\">Libell\u00E9 <span class=\"sort-icon\">{{ sortIcon('label') }}</span></th>\r\n <th>Titre par d\u00E9faut</th>\r\n <th (click)=\"toggleSort('defaultDurationMinutes')\">Dur\u00E9e <span class=\"sort-icon\">{{ sortIcon('defaultDurationMinutes') }}</span></th>\r\n <th (click)=\"toggleSort('status')\">Statut <span class=\"sort-icon\">{{ sortIcon('status') }}</span></th>\r\n <th class=\"actions-col\"></th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let t of paginatedItems; let i = index\">\r\n <td class=\"cell-code\">{{ t.templateCode }}</td>\r\n <td>{{ t.label }}</td>\r\n <td>{{ t.defaultTitle }}</td>\r\n <td>\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>\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=\"menu-wrapper\">\r\n <button class=\"menu-trigger\" type=\"button\" (click)=\"toggleMenu(i, $event)\">\r\n <svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\"><path fill=\"currentColor\" d=\"M12 8a2 2 0 1 0-2-2 2 2 0 0 0 2 2zm0 2a2 2 0 1 0 2 2 2 2 0 0 0-2-2zm0 6a2 2 0 1 0 2 2 2 2 0 0 0-2-2z\"/></svg>\r\n </button>\r\n <div class=\"menu-dropdown\" *ngIf=\"openMenuIndex === i\">\r\n <button type=\"button\" (click)=\"onInstantiate(t)\">\r\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M8 5v14l11-7z\"/></svg>\r\n <span>Utiliser ce template</span>\r\n </button>\n <button type=\"button\" (click)=\"onArchive(t)\">\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><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-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 <span>Archiver</span>\n </button>\r\n </div>\r\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\">\r\n <select [(ngModel)]=\"pageSize\" (ngModelChange)=\"onPageSizeChange()\">\r\n <option *ngFor=\"let size of pageSizeOptions\" [value]=\"size\">{{ size }} / page</option>\r\n </select>\r\n\r\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage - 1)\" [disabled]=\"currentPage === 1\">\r\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z\"/></svg>\r\n </button>\r\n <span class=\"page-info\">{{ pageStart }}-{{ pageEnd }} sur {{ totalItems }}</span>\r\n <button class=\"pager-btn\" type=\"button\" (click)=\"goToPage(currentPage + 1)\" [disabled]=\"currentPage === totalPages\">\r\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M8.59 16.59 10 18l6-6-6-6-1.41 1.41L13.17 12z\"/></svg>\r\n </button>\r\n </div>\r\n</div>", 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}.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}.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}: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}\n"] }]
|
|
968
|
+
args: [{ selector: "lib-templates-table", standalone: true, imports: [CommonModule, FormsModule], 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=\"menu-wrapper\">\r\n <button class=\"menu-trigger\" type=\"button\" (click)=\"toggleMenu(i, $event)\">\r\n <svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\"><path fill=\"currentColor\" d=\"M12 8a2 2 0 1 0-2-2 2 2 0 0 0 2 2zm0 2a2 2 0 1 0 2 2 2 2 0 0 0-2-2zm0 6a2 2 0 1 0 2 2 2 2 0 0 0-2-2z\"/></svg>\r\n </button>\r\n <div class=\"menu-dropdown\" *ngIf=\"openMenuIndex === i\">\r\n <button type=\"button\" (click)=\"onInstantiate(t)\">\r\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><path fill=\"currentColor\" d=\"M8 5v14l11-7z\"/></svg>\r\n <span>Utiliser ce template</span>\r\n </button>\r\n <button type=\"button\" (click)=\"onArchive(t)\">\r\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\"><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-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>\r\n <span>Archiver</span>\r\n </button>\r\n </div>\r\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\" type=\"button\" (click)=\"onRefreshRequested()\" aria-label=\"Actualiser\">\u21BB</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}.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}\n"] }]
|
|
921
969
|
}], propDecorators: { items: [{
|
|
922
970
|
type: Input
|
|
923
971
|
}], loading: [{
|
|
@@ -926,6 +974,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImpo
|
|
|
926
974
|
type: Output
|
|
927
975
|
}], archiveRequested: [{
|
|
928
976
|
type: Output
|
|
977
|
+
}], createRequested: [{
|
|
978
|
+
type: Output
|
|
979
|
+
}], refreshRequested: [{
|
|
980
|
+
type: Output
|
|
929
981
|
}], onDocumentClick: [{
|
|
930
982
|
type: HostListener,
|
|
931
983
|
args: ["document:click", ["$event"]]
|