ActivityPub-federated video streaming platform using P2P directly in your web browser
Upgrade to primeng 19
Chocobozzz069f5d019b2a
diff --git a/client/package.json b/client/package.jsonindex 9abad316c8..699f5e5b53 100644--- a/client/package.json+++ b/client/package.json@@ -56,6 +56,7 @@"@peertube/xliffmerge": "^2.0.3","@plussub/srt-vtt-parser": "^2.0.5","@popperjs/core": "^2.11.5",+ "@primeng/themes": "^19.1.2","@types/core-js": "^2.5.2","@types/debug": "^4.1.5","@types/jschannel": "^1.0.0",@@ -94,7 +95,7 @@"ngx-uploadx": "^7.0.0","p2p-media-loader-core": "^2.2.1","p2p-media-loader-hlsjs": "^2.2.1",- "primeng": "^17",+ "primeng": "^19.1.2","rxjs": "^7.3.0","sass-embedded": "^1.83.4","sha.js": "^2.4.11",diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.html b/client/src/app/+admin/follows/followers-list/followers-list.component.htmlindex cb165113fc..609f935306 100644--- a/client/src/app/+admin/follows/followers-list/followers-list.component.html+++ b/client/src/app/+admin/follows/followers-list/followers-list.component.html@@ -5,7 +5,7 @@[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()"[(selection)]="selectedRows">- <ng-template pTemplate="caption">+ <ng-template #caption><div class="caption"><div class="left-buttons"><my-action-dropdown@@ -21,20 +21,20 @@</div></ng-template>- <ng-template pTemplate="header">+ <ng-template #header><tr>- <th scope="col" style="width: 40px">+ <th class="checkbox-cell" scope="col" style="width: 40px"><p-tableHeaderCheckbox ariaLabel="Select all rows" i18n-ariaLabel></p-tableHeaderCheckbox></th><th scope="col" style="width: 150px;" i18n>Actions</th><th scope="col" i18n>Follower</th><th scope="col" style="width: 100px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th><th scope="col" style="width: 150px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="score">Link health <p-sortIcon field="score"></p-sortIcon></th>- <th scope="col" style="width: 150px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>+ <th scope="col" style="width: 170px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th></tr></ng-template>- <ng-template pTemplate="body" let-follow>+ <ng-template #body let-follow><tr><td class="checkbox-cell"><p-tableCheckbox [value]="follow" ariaLabel="Select this row" i18n-ariaLabel></p-tableCheckbox>@@ -64,7 +64,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/+admin/follows/following-list/following-list.component.html b/client/src/app/+admin/follows/following-list/following-list.component.htmlindex f35bf62615..b7df57a3fc 100644--- a/client/src/app/+admin/follows/following-list/following-list.component.html+++ b/client/src/app/+admin/follows/following-list/following-list.component.html@@ -5,7 +5,7 @@[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()"[(selection)]="selectedRows">- <ng-template pTemplate="caption">+ <ng-template #caption><div class="caption"><div class="left-buttons"><my-action-dropdown@@ -28,20 +28,20 @@</div></ng-template>- <ng-template pTemplate="header">+ <ng-template #header><tr>- <th scope="col" style="width: 40px">+ <th class="checkbox-cell" scope="col" style="width: 40px"><p-tableHeaderCheckbox ariaLabel="Select all rows" i18n-ariaLabel></p-tableHeaderCheckbox></th><th scope="col" style="width: 150px;" i18n>Action</th><th scope="col" i18n>Following</th><th scope="col" style="width: 100px;" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th>- <th scope="col" style="width: 150px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>+ <th scope="col" style="width: 170px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th><th scope="col" style="width: 160px;" i18n pSortableColumn="redundancyAllowed">Redundancy allowed <p-sortIcon field="redundancyAllowed"></p-sortIcon></th></tr></ng-template>- <ng-template pTemplate="body" let-follow>+ <ng-template #body let-follow><tr pSelectableRow="follow"><td class="checkbox-cell"><p-tableCheckbox [value]="follow" ariaLabel="Select this row" i18n-ariaLabel></p-tableCheckbox>@@ -73,7 +73,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.htmlindex d0fde3d308..f872f26e8a 100644--- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html+++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html@@ -17,7 +17,7 @@[sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id"[expandedRowKeys]="expandedRows">- <ng-template pTemplate="header">+ <ng-template #header><tr><th scope="col" style="width: 40px;"><span i18n class="visually-hidden">More information</span>@@ -29,7 +29,7 @@</tr></ng-template>- <ng-template pTemplate="body" let-expanded="expanded" let-redundancy>+ <ng-template #body let-expanded="expanded" let-redundancy><tr><td class="expand-cell"><my-table-expander-icon [pRowToggler]="redundancy" [expanded]="expanded" i18n-tooltip tooltip="List redundancies"></my-table-expander-icon>@@ -52,7 +52,7 @@</tr></ng-template>- <ng-template pTemplate="rowexpansion" let-redundancy>+ <ng-template #expandedrow let-redundancy><tr *ngIf="redundancy.redundancies.files.length !== 0"><td class="expand-cell" myAutoColspan><div *ngFor="let file of redundancy.redundancies.files" class="expansion-block">@@ -70,7 +70,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/+admin/moderation/registration-list/registration-list.component.html b/client/src/app/+admin/moderation/registration-list/registration-list.component.htmlindex 5080161501..7bdbe0f9f5 100644--- a/client/src/app/+admin/moderation/registration-list/registration-list.component.html+++ b/client/src/app/+admin/moderation/registration-list/registration-list.component.html@@ -5,7 +5,7 @@[(selection)]="selectedRows" [showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()"[expandedRowKeys]="expandedRows">- <ng-template pTemplate="caption">+ <ng-template #caption><div class="caption"><div class="left-buttons"><my-action-dropdown@@ -21,9 +21,9 @@</div></ng-template>- <ng-template pTemplate="header">+ <ng-template #header><tr> <!-- header -->- <th scope="col" style="width: 40px">+ <th class="checkbox-cell" scope="col" style="width: 40px"><p-tableHeaderCheckbox ariaLabel="Select all rows" i18n-ariaLabel></p-tableHeaderCheckbox></th><th scope="col" style="width: 40px;">@@ -38,11 +38,11 @@<th scope="col" i18n>Registration reason</th><th scope="col" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="state" style="width: 80px;">State <p-sortIcon field="state"></p-sortIcon></th><th scope="col" i18n>Moderation response</th>- <th scope="col" style="width: 150px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Requested on <p-sortIcon field="createdAt"></p-sortIcon></th>+ <th scope="col" style="width: 170px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Requested on <p-sortIcon field="createdAt"></p-sortIcon></th></tr></ng-template>- <ng-template pTemplate="body" let-expanded="expanded" let-registration>+ <ng-template #body let-expanded="expanded" let-registration><tr [pSelectableRow]="registration"><td class="checkbox-cell"><p-tableCheckbox [value]="registration" ariaLabel="Select this row" i18n-ariaLabel></p-tableCheckbox>@@ -104,7 +104,7 @@</tr></ng-template>- <ng-template pTemplate="rowexpansion" let-registration>+ <ng-template #expandedrow let-registration><tr><td myAutoColspan><div class="moderation-expanded">@@ -124,7 +124,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.htmlindex 62df40737a..11b95c994f 100644--- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html+++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html@@ -5,7 +5,7 @@[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()"[expandedRowKeys]="expandedRows">- <ng-template pTemplate="caption">+ <ng-template #caption><div class="caption"><div class="ms-auto"><my-advanced-input-filter [filters]="inputFilters" (search)="onSearch($event)"></my-advanced-input-filter>@@ -13,7 +13,7 @@</div></ng-template>- <ng-template pTemplate="header">+ <ng-template #header><tr><th scope="col" style="width: 40px;"><span i18n class="visually-hidden">More information</span>@@ -24,11 +24,11 @@<th scope="col" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th><th scope="col" style="width: 100px;" i18n>Sensitive</th><th scope="col" style="width: 120px;" i18n>Unfederated</th>- <th scope="col" style="width: 150px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th>+ <th scope="col" style="width: 170px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th></tr></ng-template>- <ng-template pTemplate="body" let-videoBlock let-expanded="expanded">+ <ng-template #body let-videoBlock let-expanded="expanded"><tr><td *ngIf="!videoBlock.reason"><span i18n class="visually-hidden">No more information is available for this row</span>@@ -69,7 +69,7 @@</tr></ng-template>- <ng-template pTemplate="rowexpansion" let-videoBlock>+ <ng-template #expandedrow let-videoBlock><tr><td class="expand-cell" myAutoColspan><div class="d-flex moderation-expanded">@@ -88,7 +88,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/+admin/overview/users/user-list/user-list.component.html b/client/src/app/+admin/overview/users/user-list/user-list.component.htmlindex 48f344dd51..1f2124e335 100644--- a/client/src/app/+admin/overview/users/user-list/user-list.component.html+++ b/client/src/app/+admin/overview/users/user-list/user-list.component.html@@ -4,7 +4,7 @@[(selection)]="selectedRows" [lazy]="true" (onLazyLoad)="loadLazy($event)" [lazyLoadOnInit]="false" [selectionPageOnly]="true"[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()" [expandedRowKeys]="expandedRows">- <ng-template pTemplate="caption">+ <ng-template #caption><div class="caption"><div class="left-buttons"><my-action-dropdown@@ -26,9 +26,9 @@</div></ng-template>- <ng-template pTemplate="header">+ <ng-template #header><tr>- <th scope="col" style="width: 40px">+ <th class="checkbox-cell" scope="col" style="width: 40px"><p-tableHeaderCheckbox ariaLabel="Select all rows" i18n-ariaLabel></p-tableHeaderCheckbox></th>@@ -71,12 +71,12 @@<th scope="col" *ngIf="isSelected('quotaDaily')" style="width: 160px;">{{ getColumn('quotaDaily').label }}</th><th scope="col" *ngIf="isSelected('totalVideoFileSize')" style="width: 100px;">{{ getColumn('totalVideoFileSize').label }}</th><th scope="col" *ngIf="isSelected('pluginAuth')" style="width: 140px;" pResizableColumn >{{ getColumn('pluginAuth').label }}</th>- <th scope="col" *ngIf="isSelected('createdAt')" style="width: 150px;" [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">{{ getColumn('createdAt').label }} <p-sortIcon field="createdAt"></p-sortIcon></th>- <th scope="col" *ngIf="isSelected('lastLoginDate')" style="width: 150px;" [ngbTooltip]="sortTooltip" container="body" pSortableColumn="lastLoginDate">{{ getColumn('lastLoginDate').label }} <p-sortIcon field="lastLoginDate"></p-sortIcon></th>+ <th scope="col" *ngIf="isSelected('createdAt')" style="width: 170px;" [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">{{ getColumn('createdAt').label }} <p-sortIcon field="createdAt"></p-sortIcon></th>+ <th scope="col" *ngIf="isSelected('lastLoginDate')" style="width: 170px;" [ngbTooltip]="sortTooltip" container="body" pSortableColumn="lastLoginDate">{{ getColumn('lastLoginDate').label }} <p-sortIcon field="lastLoginDate"></p-sortIcon></th></tr></ng-template>- <ng-template pTemplate="body" let-expanded="expanded" let-user>+ <ng-template #body let-expanded="expanded" let-user><tr [pSelectableRow]="user" [ngClass]="{ banned: highlightBannedUsers && user.blocked }"><td class="checkbox-cell">@@ -148,7 +148,7 @@</tr></ng-template>- <ng-template pTemplate="rowexpansion" let-user>+ <ng-template #expandedrow let-user><tr class="user-blocked-reason"><td myAutoColspan><span i18n class="ban-reason-label">Ban reason:</span>diff --git a/client/src/app/+admin/overview/videos/video-list.component.html b/client/src/app/+admin/overview/videos/video-list.component.htmlindex 6f4fd04b5e..0ffb5f17e3 100644--- a/client/src/app/+admin/overview/videos/video-list.component.html+++ b/client/src/app/+admin/overview/videos/video-list.component.html@@ -5,7 +5,7 @@[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()"[expandedRowKeys]="expandedRows" [ngClass]="{ loading: loading }" (onRowExpand)="onVideoPanelOpened($event)">- <ng-template pTemplate="caption">+ <ng-template #caption><div class="caption"><div class="left-buttons"><my-action-dropdown@@ -24,9 +24,9 @@</div></ng-template>- <ng-template pTemplate="header">+ <ng-template #header><tr>- <th scope="col" style="width: 40px">+ <th class="checkbox-cell" scope="col" style="width: 40px"><p-tableHeaderCheckbox ariaLabel="Select all rows" i18n-ariaLabel></p-tableHeaderCheckbox></th><th scope="col" style="width: 40px;">@@ -38,11 +38,11 @@<th scope="col" i18n>Video</th><th scope="col" i18n>Info</th><th scope="col" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="localVideoFilesSize">Files <p-sortIcon field="localVideoFilesSize"></p-sortIcon></th>- <th scope="col" style="width: 150px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="publishedAt">Published <p-sortIcon field="publishedAt"></p-sortIcon></th>+ <th scope="col" style="width: 170px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="publishedAt">Published <p-sortIcon field="publishedAt"></p-sortIcon></th></tr></ng-template>- <ng-template pTemplate="body" let-expanded="expanded" let-video>+ <ng-template #body let-expanded="expanded" let-video><tr [pSelectableRow]="video" (onRowExpand)="onVideoPanelOpened(video)"><td class="checkbox-cell">@@ -112,7 +112,7 @@</tr></ng-template>- <ng-template pTemplate="rowexpansion" let-video>+ <ng-template #expandedrow let-video><tr><td class="video-info expand-cell" myAutoColspan><div>diff --git a/client/src/app/+admin/system/jobs/jobs.component.html b/client/src/app/+admin/system/jobs/jobs.component.htmlindex e969f8ac93..92e1741c49 100644--- a/client/src/app/+admin/system/jobs/jobs.component.html+++ b/client/src/app/+admin/system/jobs/jobs.component.html@@ -28,7 +28,7 @@(onLazyLoad)="loadLazy($event)" dataKey="uniqId" [first]="pagination.start" [tableStyle]="{'table-layout':'auto'}"[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()" [expandedRowKeys]="expandedRows">- <ng-template pTemplate="header">+ <ng-template #header><tr><th scope="col" style="width: 40px;"><span i18n class="visually-hidden">More information</span>@@ -43,7 +43,7 @@</tr></ng-template>- <ng-template pTemplate="body" let-expanded="expanded" let-job>+ <ng-template #body let-expanded="expanded" let-job><tr><td class="expand-cell"><my-table-expander-icon [pRowToggler]="job" [expanded]="expanded"></my-table-expander-icon>@@ -74,7 +74,7 @@</tr></ng-template>- <ng-template pTemplate="rowexpansion" let-job>+ <ng-template #expandedrow let-job><tr><td myAutoColspan><pre>{{ [@@ -99,7 +99,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/+admin/system/runners/runner-job-list/runner-job-list.component.html b/client/src/app/+admin/system/runners/runner-job-list/runner-job-list.component.htmlindex aa3fb0299f..86ad7ddb73 100644--- a/client/src/app/+admin/system/runners/runner-job-list/runner-job-list.component.html+++ b/client/src/app/+admin/system/runners/runner-job-list/runner-job-list.component.html@@ -5,9 +5,9 @@[(selection)]="selectedRows" [showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()"[expandedRowKeys]="expandedRows" dataKey="uuid">- <ng-template pTemplate="header">+ <ng-template #header><tr>- <th scope="col" style="width: 40px">+ <th class="checkbox-cell" scope="col" style="width: 40px"><p-tableHeaderCheckbox ariaLabel="Select all rows" i18n-ariaLabel></p-tableHeaderCheckbox></th><th scope="col" style="width: 40px;">@@ -27,7 +27,7 @@</tr></ng-template>- <ng-template pTemplate="caption">+ <ng-template #caption><div class="caption"><div class="left-buttons">@@ -46,7 +46,7 @@</div></ng-template>- <ng-template pTemplate="body" let-expanded="expanded" let-runnerJob>+ <ng-template #body let-expanded="expanded" let-runnerJob><tr [pSelectableRow]="runnerJob"><td class="checkbox-cell"><p-tableCheckbox [value]="runnerJob" ariaLabel="Select this row" i18n-ariaLabel></p-tableCheckbox>@@ -93,7 +93,7 @@</tr></ng-template>- <ng-template pTemplate="rowexpansion" let-runnerJob>+ <ng-template #expandedrow let-runnerJob><tr><td myAutoColspan><div class="mt-2 fs-7 font-monospace">@@ -117,7 +117,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/+admin/system/runners/runner-list/runner-list.component.html b/client/src/app/+admin/system/runners/runner-list/runner-list.component.htmlindex b6d6e78ece..e4e0205a4d 100644--- a/client/src/app/+admin/system/runners/runner-list/runner-list.component.html+++ b/client/src/app/+admin/system/runners/runner-list/runner-list.component.html@@ -4,7 +4,7 @@[lazy]="true" (onLazyLoad)="loadLazy($event)"[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()">- <ng-template pTemplate="header">+ <ng-template #header><tr><th scope="col" style="width: 120px;"><span i18n class="visually-hidden">Actions</span>@@ -13,11 +13,11 @@<th scope="col" i18n>Description</th><th scope="col" i18n>IP</th><th scope="col" i18n>Last contact</th>- <th scope="col" style="width: 150px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>+ <th scope="col" style="width: 170px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th></tr></ng-template>- <ng-template pTemplate="body" let-runner>+ <ng-template #body let-runner><tr><td class="action-cell"><my-action-dropdown@@ -38,7 +38,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html b/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.htmlindex 84635560bc..940647d111 100644--- a/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html+++ b/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html@@ -4,18 +4,18 @@[lazy]="true" (onLazyLoad)="loadLazy($event)"[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()">- <ng-template pTemplate="header">+ <ng-template #header><tr><th scope="col" style="width: 120px;"><span i18n class="visually-hidden">Actions</span></th><th scope="col" i18n>Token</th>- <th scope="col" style="width: 150px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>+ <th scope="col" style="width: 170px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th><th scope="col" style="width: 160px;" i18n>Associated runners</th></tr></ng-template>- <ng-template pTemplate="caption">+ <ng-template #caption><div class="caption"><div class="left-buttons"><my-button theme="primary" i18n-label label="Generate token" icon="add" (click)="generateToken()"></my-button>@@ -23,7 +23,7 @@</div></ng-template>- <ng-template pTemplate="body" let-registrationToken>+ <ng-template #body let-registrationToken><tr><td class="action-cell"><my-action-dropdown@@ -47,7 +47,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/+my-library/my-ownership/my-ownership.component.html b/client/src/app/+my-library/my-ownership/my-ownership.component.htmlindex 26c335752d..f0e32104d2 100644--- a/client/src/app/+my-library/my-ownership/my-ownership.component.html+++ b/client/src/app/+my-library/my-ownership/my-ownership.component.html@@ -2,12 +2,12 @@[value]="videoChangeOwnerships" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage"[first]="pagination.start" [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)">- <ng-template pTemplate="header">+ <ng-template #header><tr><th scope="col" style="width: 150px;" i18n>Actions</th><th scope="col" style="width: 35%;" i18n>Initiator</th><th scope="col" style="width: 65%;" i18n>Video</th>- <th scope="col" style="width: 150px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">+ <th scope="col" style="width: 170px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Created<p-sortIcon field="createdAt"></p-sortIcon></th>@@ -15,7 +15,7 @@</tr></ng-template>- <ng-template pTemplate="body" let-videoChangeOwnership>+ <ng-template #body let-videoChangeOwnership><tr><td class="action-cell"><ng-container *ngIf="videoChangeOwnership.status === 'WAITING'">@@ -48,7 +48,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.htmlindex 5f21c04636..b9c108fcda 100644--- a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html+++ b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html@@ -11,7 +11,7 @@[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()"[expandedRowKeys]="expandedRows">- <ng-template pTemplate="caption">+ <ng-template #caption><div class="caption"><div class="left-buttons"><a class="peertube-create-button" routerLink="{{ getSyncCreateLink() }}">@@ -22,7 +22,7 @@</div></ng-template>- <ng-template pTemplate="header">+ <ng-template #header><tr><th scope="col" style="width: 10%;"><span i18n class="visually-hidden">Actions</span>@@ -35,7 +35,7 @@</tr></ng-template>- <ng-template pTemplate="body" let-expanded="expanded" let-videoChannelSync>+ <ng-template #body let-expanded="expanded" let-videoChannelSync><tr><td class="action-cell"><my-action-dropdown@@ -75,7 +75,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/+my-library/my-video-imports/my-video-imports.component.html b/client/src/app/+my-library/my-video-imports/my-video-imports.component.htmlindex d7d3485deb..05d4e5bb11 100644--- a/client/src/app/+my-library/my-video-imports/my-video-imports.component.html+++ b/client/src/app/+my-library/my-video-imports/my-video-imports.component.html@@ -8,7 +8,7 @@[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()"[expandedRowKeys]="expandedRows">- <ng-template pTemplate="header">+ <ng-template #header><tr><th scope="col" style="width: 40px;"><span i18n class="visually-hidden">More information</span>@@ -17,11 +17,11 @@<th scope="col" style="width: 45%" i18n>Target</th><th scope="col" style="width: 55%" i18n>Video</th><th scope="col" style="width: 150px" i18n>State</th>- <th scope="col" style="width: 150px" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>+ <th scope="col" style="width: 170px" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th></tr></ng-template>- <ng-template pTemplate="body" let-expanded="expanded" let-videoImport>+ <ng-template #body let-expanded="expanded" let-videoImport><tr><td class="expand-cell"><my-table-expander-icon *ngIf="videoImport.error" [pRowToggler]="videoImport" [expanded]="expanded"></my-table-expander-icon>@@ -59,7 +59,7 @@</tr></ng-template>- <ng-template pTemplate="rowexpansion" let-videoImport>+ <ng-template #expandedrow let-videoImport><tr class="video-import-error" *ngIf="videoImport.error"><td myAutoColspan><pre>{{ videoImport.error }}</pre>diff --git a/client/src/app/+my-library/my-videos/modals/video-change-ownership.component.html b/client/src/app/+my-library/my-videos/modals/video-change-ownership.component.htmlindex 32d81f67f7..19427a3e04 100644--- a/client/src/app/+my-library/my-videos/modals/video-change-ownership.component.html+++ b/client/src/app/+my-library/my-videos/modals/video-change-ownership.component.html@@ -14,6 +14,7 @@<p-autoCompleteformControlName="username" [suggestions]="usernamePropositions"(completeMethod)="search($event)" id="next-ownership-username"+ fluid="true"></p-autoComplete><div *ngIf="formErrors.username" class="form-error" role="alert">diff --git a/client/src/app/+my-library/my-videos/my-videos.component.html b/client/src/app/+my-library/my-videos/my-videos.component.htmlindex dafee48a6f..b4eedade03 100644--- a/client/src/app/+my-library/my-videos/my-videos.component.html+++ b/client/src/app/+my-library/my-videos/my-videos.component.html@@ -8,13 +8,13 @@<p-table[value]="videos" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [first]="pagination.start"- [rowsPerPageOptions]="rowsPerPageOptions" [sortField]="sort.field" [sortOrder]="sort.order" dataKey="id" [resizableColumns]="true"+ [rowsPerPageOptions]="rowsPerPageOptions" [sortField]="sort.field" [sortOrder]="sort.order" dataKey="id" [resizableColumns]="false"[(selection)]="selectedRows" [lazy]="true" (onLazyLoad)="loadLazy($event)" [lazyLoadOnInit]="false" [selectionPageOnly]="true"[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()"[expandedRowKeys]="expandedRows" [ngClass]="{ loading: loading }"class="new-p-table sticky-p-table cell-wrap">- <ng-template pTemplate="caption">+ <ng-template #caption><div class="caption"><div class="left-buttons">@if (isInSelectionMode()) {@@ -61,7 +61,7 @@</div></ng-template>- <ng-template pTemplate="sorticon" let-sortOrder>+ <ng-template #sorticon let-sortOrder>@if (sortOrder === 1) {<my-button class="ms-2" small="true" active="true" rounded="true" theme="tertiary" icon="chevron-up"></my-button>} @else if (sortOrder === -1) {@@ -71,11 +71,11 @@}</ng-template>- <ng-template pTemplate="paginatorright" let-item>+ <ng-template #paginatorright let-item><ng-container i18n>videos per page</ng-container></ng-template>- <ng-template pTemplate="header">+ <ng-template #header><tr><th scope="col" width="25px" class="checkbox-cell"><p-tableHeaderCheckbox ariaLabel="Select all rows" i18n-ariaLabel></p-tableHeaderCheckbox>@@ -121,7 +121,7 @@</tr></ng-template>- <ng-template pTemplate="body" let-video>+ <ng-template #body let-video><tr [pSelectableRow]="video"><td class="checkbox-cell">@@ -195,7 +195,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/+videos-publish-manage/shared-manage/captions/video-captions.component.ts b/client/src/app/+videos-publish-manage/shared-manage/captions/video-captions.component.tsindex f03a550141..ef97937803 100644--- a/client/src/app/+videos-publish-manage/shared-manage/captions/video-captions.component.ts+++ b/client/src/app/+videos-publish-manage/shared-manage/captions/video-captions.component.ts@@ -1,14 +1,13 @@import { NgFor, NgIf } from '@angular/common'import { Component, OnInit, inject, viewChild } from '@angular/core'import { FormsModule, ReactiveFormsModule } from '@angular/forms'+import { VideoCaptionEdit, VideoCaptionWithPathEdit } from '@app/+videos-publish-manage/shared-manage/common/video-caption-edit.model'import { ServerService } from '@app/core'import { removeElementFromArray } from '@app/helpers'import { AlertComponent } from '@app/shared/shared-main/common/alert.component'import { PTDatePipe } from '@app/shared/shared-main/common/date.pipe'-import { VideoCaptionEdit, VideoCaptionWithPathEdit } from '@app/+videos-publish-manage/shared-manage/common/video-caption-edit.model'import { HTMLServerConfig, VideoConstant } from '@peertube/peertube-models'import debug from 'debug'-import { CalendarModule } from 'primeng/calendar'import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'import { ButtonComponent } from '../../../shared/shared-main/buttons/button.component'import { DeleteButtonComponent } from '../../../shared/shared-main/buttons/delete-button.component'@@ -31,7 +30,6 @@ const debugLogger = debug('peertube:video-manage')FormsModule,ReactiveFormsModule,NgIf,- CalendarModule,NgFor,GlobalIconComponent,DeleteButtonComponent,diff --git a/client/src/app/+videos-publish-manage/shared-manage/chapters/video-chapters.component.ts b/client/src/app/+videos-publish-manage/shared-manage/chapters/video-chapters.component.tsindex 41046dd922..6f3c2e0dec 100644--- a/client/src/app/+videos-publish-manage/shared-manage/chapters/video-chapters.component.ts+++ b/client/src/app/+videos-publish-manage/shared-manage/chapters/video-chapters.component.ts@@ -6,7 +6,6 @@ import { FormReactiveErrors, FormReactiveService, FormReactiveValidationMessagesimport { FormValidatorService } from '@app/shared/shared-forms/form-validator.service'import { AlertComponent } from '@app/shared/shared-main/common/alert.component'import debug from 'debug'-import { CalendarModule } from 'primeng/calendar'import { Subscription } from 'rxjs'import { TimestampInputComponent } from '../../../shared/shared-forms/timestamp-input.component'import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'@@ -37,7 +36,6 @@ type Form = {FormsModule,ReactiveFormsModule,NgIf,- CalendarModule,NgFor,NgClass,TimestampInputComponent,diff --git a/client/src/app/+videos-publish-manage/shared-manage/common/i18n-primeng-calendar.service.ts b/client/src/app/+videos-publish-manage/shared-manage/common/i18n-primeng-calendar.service.tsindex 98c93b0c1b..f42dc17bfd 100644--- a/client/src/app/+videos-publish-manage/shared-manage/common/i18n-primeng-calendar.service.ts+++ b/client/src/app/+videos-publish-manage/shared-manage/common/i18n-primeng-calendar.service.ts@@ -1,9 +1,9 @@import { Injectable, inject } from '@angular/core'-import { PrimeNGConfig } from 'primeng/api'+import { PrimeNG } from 'primeng/config'@Injectable()export class I18nPrimengCalendarService {- private config = inject(PrimeNGConfig)+ private config = inject(PrimeNG)constructor () {this.config.setTranslation({diff --git a/client/src/app/+videos-publish-manage/shared-manage/customization/video-customization.component.html b/client/src/app/+videos-publish-manage/shared-manage/customization/video-customization.component.htmlindex 91f422165d..d305a9ed48 100644--- a/client/src/app/+videos-publish-manage/shared-manage/customization/video-customization.component.html+++ b/client/src/app/+videos-publish-manage/shared-manage/customization/video-customization.component.html@@ -30,12 +30,12 @@This is the date when the content was originally published (e.g. the release date for a film)</div>- <p-calendar+ <p-datepickerinputId="originallyPublishedAt" formControlName="originallyPublishedAt" [dateFormat]="calendarDateFormat" [firstDayOfWeek]="0"[showTime]="true" [hideOnDateTimeSelect]="true" [monthNavigator]="true" [yearNavigator]="true" [yearRange]="myYearRange"baseZIndex="20000">- </p-calendar>+ </p-datepicker><div *ngIf="formErrors.originallyPublishedAt" class="form-error" role="alert">{{ formErrors.originallyPublishedAt }}diff --git a/client/src/app/+videos-publish-manage/shared-manage/customization/video-customization.component.ts b/client/src/app/+videos-publish-manage/shared-manage/customization/video-customization.component.tsindex 52dbce6c26..71718c0545 100644--- a/client/src/app/+videos-publish-manage/shared-manage/customization/video-customization.component.ts+++ b/client/src/app/+videos-publish-manage/shared-manage/customization/video-customization.component.ts@@ -7,14 +7,13 @@ import { VIDEO_ORIGINALLY_PUBLISHED_AT_VALIDATOR } from '@app/shared/form-validaimport { FormReactiveErrors, FormReactiveService, FormReactiveValidationMessages } from '@app/shared/shared-forms/form-reactive.service'import { HTMLServerConfig } from '@peertube/peertube-models'import debug from 'debug'-import { CalendarModule } from 'primeng/calendar'+import { DatePickerModule } from 'primeng/datepicker'import { Subscription } from 'rxjs'import { PeertubeCheckboxComponent } from '../../../shared/shared-forms/peertube-checkbox.component'import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'import { I18nPrimengCalendarService } from '../common/i18n-primeng-calendar.service'import { VideoEdit } from '../common/video-edit.model'import { VideoManageController } from '../video-manage-controller.service'-const debugLogger = debug('peertube:video-manage')type Form = {@@ -32,7 +31,7 @@ type Form = {FormsModule,ReactiveFormsModule,NgIf,- CalendarModule,+ DatePickerModule,PeertubeCheckboxComponent,GlobalIconComponent]diff --git a/client/src/app/+videos-publish-manage/shared-manage/live-settings/video-live-settings.component.ts b/client/src/app/+videos-publish-manage/shared-manage/live-settings/video-live-settings.component.tsindex aa634b1f28..94a77b93a8 100644--- a/client/src/app/+videos-publish-manage/shared-manage/live-settings/video-live-settings.component.ts+++ b/client/src/app/+videos-publish-manage/shared-manage/live-settings/video-live-settings.component.ts@@ -16,7 +16,6 @@ import {VideoState} from '@peertube/peertube-models'import debug from 'debug'-import { CalendarModule } from 'primeng/calendar'import { Subscription } from 'rxjs'import { SelectOptionsItem } from 'src/types/select-options-item.model'import { InputTextComponent } from '../../../shared/shared-forms/input-text.component'@@ -53,7 +52,6 @@ type Form = {PeerTubeTemplateDirective,SelectOptionsComponent,InputTextComponent,- CalendarModule,PeertubeCheckboxComponent,LiveDocumentationLinkComponent,AlertComponent,diff --git a/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.html b/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.htmlindex 4b55ab3a1a..917c5d7b28 100644--- a/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.html+++ b/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.html@@ -107,12 +107,12 @@<div *ngIf="schedulePublicationSelected" class="form-group"><label i18n for="schedulePublicationAt">Schedule publication ({{ calendarTimezone }})</label>- <p-calendar+ <p-datepickerid="schedulePublicationAt" formControlName="schedulePublicationAt" [dateFormat]="calendarDateFormat"[firstDayOfWeek]="0" [minDate]="minScheduledDate" [showTime]="true" [hideOnDateTimeSelect]="true"- baseZIndex="20000"+ baseZIndex="20000" fluid="true">- </p-calendar>+ </p-datepicker><div *ngIf="formErrors.schedulePublicationAt" class="form-error" role="alert">{{ formErrors.schedulePublicationAt }}diff --git a/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.ts b/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.tsindex 7b4199cbbc..14a114f361 100644--- a/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.ts+++ b/client/src/app/+videos-publish-manage/shared-manage/main-info/video-main-info.component.ts@@ -40,7 +40,7 @@ import {import { logger } from '@root-helpers/logger'import { PluginInfo } from '@root-helpers/plugins-manager'import debug from 'debug'-import { CalendarModule } from 'primeng/calendar'+import { DatePickerModule } from 'primeng/datepicker'import { forkJoin, Subscription } from 'rxjs'import { map } from 'rxjs/operators'import { SelectChannelItem } from 'src/types/select-options-item.model'@@ -94,7 +94,7 @@ type Form = {SelectChannelComponent,SelectOptionsComponent,InputTextComponent,- CalendarModule,+ DatePickerModule,PeertubeCheckboxComponent,ThumbnailManagerComponent,GlobalIconComponent,diff --git a/client/src/app/+videos-publish-manage/shared-manage/moderation/video-moderation.component.ts b/client/src/app/+videos-publish-manage/shared-manage/moderation/video-moderation.component.tsindex 384cd330be..5cf8a2b52c 100644--- a/client/src/app/+videos-publish-manage/shared-manage/moderation/video-moderation.component.ts+++ b/client/src/app/+videos-publish-manage/shared-manage/moderation/video-moderation.component.ts@@ -8,7 +8,6 @@ import { VIDEO_NSFW_SUMMARY_VALIDATOR } from '@app/shared/form-validators/video-import { FormReactiveErrors, FormReactiveService, FormReactiveValidationMessages } from '@app/shared/shared-forms/form-reactive.service'import { HTMLServerConfig, VideoCommentPolicyType, VideoConstant } from '@peertube/peertube-models'import debug from 'debug'-import { CalendarModule } from 'primeng/calendar'import { Subscription } from 'rxjs'import { PeertubeCheckboxComponent } from '../../../shared/shared-forms/peertube-checkbox.component'import { SelectRadioComponent } from '../../../shared/shared-forms/select/select-radio.component'@@ -40,7 +39,6 @@ type Form = {FormsModule,ReactiveFormsModule,PeerTubeTemplateDirective,- CalendarModule,PeertubeCheckboxComponent,GlobalIconComponent,SelectRadioComponentdiff --git a/client/src/app/app.component.html b/client/src/app/app.component.htmlindex afe9378cdb..1b0745323f 100644--- a/client/src/app/app.component.html+++ b/client/src/app/app.component.html@@ -41,7 +41,7 @@<my-confirm></my-confirm><p-toast position="bottom-right">- <ng-template let-message pTemplate="message">+ <ng-template let-message #message><div class="notification-block"><my-global-icon [iconName]="getNotificationIcon(message)"></my-global-icon>diff --git a/client/src/app/core/theme/index.ts b/client/src/app/core/theme/index.tsindex 713f4747b2..f060a2b628 100644--- a/client/src/app/core/theme/index.ts+++ b/client/src/app/core/theme/index.ts@@ -1 +1,2 @@+export * from './primeng/primeng-theme'export * from './theme.service'diff --git a/client/src/app/core/theme/primeng/base.ts b/client/src/app/core/theme/primeng/base.tsnew file mode 100644index 0000000000..f8eb1c6c4c--- /dev/null+++ b/client/src/app/core/theme/primeng/base.ts@@ -0,0 +1,243 @@+import type { LaraBaseDesignTokens } from '@primeng/themes/lara/base'++export default {+ primitive: {+ borderRadius: {+ none: '0',+ xs: '2px',+ sm: '4px',+ md: '6px',+ lg: '8px',+ xl: '12px'+ }+ },+ semantic: {+ transitionDuration: '0',+ focusRing: {+ width: '0',+ style: 'none',+ color: 'transparent',+ offset: '0'+ },+ disabledOpacity: '0.6',+ iconSize: '1rem',+ anchorGutter: '2px',+ primary: {+ 50: 'var(--primary-50)',+ 100: 'var(--primary-100)',+ 200: 'var(--primary-200)',+ 300: 'var(--primary-300)',+ 400: 'var(--primary-400)',+ 500: 'var(--primary-500)',+ 600: 'var(--primary-600)',+ 700: 'var(--primary-700)',+ 800: 'var(--primary-800)',+ 900: 'var(--primary-900)',+ 950: 'var(--primary-950)'+ },+ formField: {+ paddingX: 'var(--input-x-padding)',+ paddingY: 'var(--input-y-padding)',++ borderRadius: 'var(--input-border-radius)',+ focusRing: {+ width: '{focus.ring.width}',+ style: '{focus.ring.style}',+ color: '{focus.ring.color}',+ offset: '{focus.ring.offset}',+ shadow: '{focus.ring.shadow}'+ },+ transitionDuration: '{transition.duration}'+ },+ list: {+ padding: '0.5rem 0',+ gap: '0',+ header: {+ padding: '0.5rem 1rem 0.5rem 1rem'+ },+ option: {+ padding: '0.5rem 1rem',+ borderRadius: '0'+ },+ optionGroup: {+ padding: '0.5rem 1rem',+ fontWeight: '600'+ }+ },+ content: {+ borderRadius: '{border.radius.md}'+ },+ mask: {+ transitionDuration: '0.15s'+ },+ navigation: {+ list: {+ padding: '0.5rem 0',+ gap: '0'+ },+ item: {+ padding: '0.5rem 1rem',+ borderRadius: '0',+ gap: '0.5rem'+ },+ submenuLabel: {+ padding: '0.5rem 1rem',+ fontWeight: '600'+ },+ submenuIcon: {+ size: '0.875rem'+ }+ },+ overlay: {+ select: {+ borderRadius: '{border.radius.md}',+ shadow: '0 2px 12px 0 rgba(0, 0, 0, 0.1)'+ },+ popover: {+ borderRadius: '{border.radius.md}',+ padding: '1rem',+ shadow: '0 1px 3px rgba(0, 0, 0, 0.1)'+ },+ modal: {+ borderRadius: '{border.radius.xl}',+ padding: '1.5rem',+ shadow: '0 1px 3px rgba(0, 0, 0, 0.3)'+ },+ navigation: {+ shadow: '0 2px 12px 0 rgba(0, 0, 0, 0.1)'+ }+ },+ colorScheme: {+ light: {+ surface: {+ 0: 'var(--bg-secondary-0)',+ 50: 'var(--bg-secondary-50)',+ 100: 'var(--bg-secondary-100)',+ 200: 'var(--bg-secondary-200)',+ 300: 'var(--bg-secondary-300)',+ 400: 'var(--bg-secondary-400)',+ 500: 'var(--bg-secondary-500)',+ 600: 'var(--bg-secondary-600)',+ 700: 'var(--bg-secondary-700)',+ 800: 'var(--bg-secondary-800)',+ 900: 'var(--bg-secondary-900)',+ 950: 'var(--bg-secondary-950)'+ },+ primary: {+ color: '{primary.500}',+ contrastColor: 'var(--on-primary)',+ hoverColor: '{primary.600}',+ activeColor: '{primary.700}'+ },+ highlight: {+ background: 'var(--primary)',+ focusBackground: 'var(--primary)',+ color: 'var(--on-primary)',+ focusColor: 'var(--on-primary)'+ },+ focusRing: {+ shadow: '0 0 0 0.2rem var(--fg-100)'+ },+ mask: {+ background: 'rgba(0,0,0,0.4)',+ color: '{surface.200}'+ },+ formField: {+ background: 'var(--input-bg)',+ disabledBackground: 'inherit',+ filledBackground: '{surface.50}',+ filledHoverBackground: '{surface.50}',+ filledFocusBackground: '{surface.0}',+ borderColor: 'var(--input-border-color)',+ hoverBorderColor: 'var(--input-border-color)',+ focusBorderColor: 'var(--input-border-color)',+ invalidBorderColor: 'var(--red)',+ color: 'var(--input-fg)',+ disabledColor: 'var(--fg-300)',+ placeholderColor: 'var(--input-placeholder)',+ invalidPlaceholderColor: 'var(--red)',+ floatLabelColor: 'var(--fg-300)',+ floatLabelFocusColor: 'var(--primary)',+ floatLabelActiveColor: 'var(--fg)',+ floatLabelInvalidColor: '{form.field.invalid.placeholder.color}',+ iconColor: 'var(--fg-300)',+ shadow: 'none'+ },+ text: {+ color: 'var(--fg)',+ hoverColor: 'var(--fg)',+ mutedColor: 'var(--fg)',+ hoverMutedColor: 'var(--fg)'+ },+ content: {+ background: 'var(--bg)',+ hoverBackground: 'var(--bg)',+ borderColor: 'var(--input-border-color)',+ color: 'var(--fg)',+ hoverColor: 'var(--fg)'+ },+ overlay: {+ select: {+ background: 'var(--bg)',+ borderColor: 'var---input-border-color)',+ color: 'var(--fg)'+ },+ popover: {+ background: 'var(--bg)',+ borderColor: 'var(--input-border-color)',+ color: 'var(--fg)'+ },+ modal: {+ background: 'var(--bg)',+ borderColor: 'var(--input-border-color)',+ color: 'var(--fg)'+ }+ },+ list: {+ option: {+ focusBackground: 'var(--bg-secondary-500)',+ selectedBackground: '{highlight.background}',+ selectedFocusBackground: 'var(--bg-secondary-500)',+ color: '{text.color}',+ focusColor: '{text.hover.color}',+ selectedColor: '{highlight.color}',+ selectedFocusColor: '{highlight.focus.color}',+ icon: {+ color: '{surface.400}',+ focusColor: '{surface.500}'+ }+ },+ optionGroup: {+ background: 'var(--bg-secondary-500)',+ color: '{text.color}'+ }+ },++ // TODO+ navigation: {+ item: {+ focusBackground: '{surface.100}',+ activeBackground: '{surface.100}',+ color: '{text.color}',+ focusColor: '{text.hover.color}',+ activeColor: '{text.hover.color}',+ icon: {+ color: '{surface.400}',+ focusColor: '{surface.500}',+ activeColor: '{surface.500}'+ }+ },+ submenuLabel: {+ background: 'transparent',+ color: '{text.color}'+ },+ submenuIcon: {+ color: '{surface.400}',+ focusColor: '{surface.500}',+ activeColor: '{surface.500}'+ }+ }+ }+ }+ }+} satisfies LaraBaseDesignTokensdiff --git a/client/src/app/core/theme/primeng/components/autocomplete.ts b/client/src/app/core/theme/primeng/components/autocomplete.tsnew file mode 100644index 0000000000..b3be791170--- /dev/null+++ b/client/src/app/core/theme/primeng/components/autocomplete.ts@@ -0,0 +1,101 @@+import { AutoCompleteDesignTokens } from '@primeng/themes/types/autocomplete'++export default {+ root: {+ background: '{form.field.background}',+ disabledBackground: '{form.field.disabled.background}',+ filledBackground: '{form.field.filled.background}',+ filledHoverBackground: '{form.field.filled.hover.background}',+ filledFocusBackground: '{form.field.filled.focus.background}',+ borderColor: '{form.field.border.color}',+ hoverBorderColor: '{form.field.hover.border.color}',+ focusBorderColor: '{form.field.focus.border.color}',+ invalidBorderColor: '{form.field.invalid.border.color}',+ color: '{form.field.color}',+ disabledColor: '{form.field.disabled.color}',+ placeholderColor: '{form.field.placeholder.color}',+ invalidPlaceholderColor: '{form.field.invalid.placeholder.color}',+ shadow: '{form.field.shadow}',+ paddingX: '{form.field.padding.x}',+ paddingY: '{form.field.padding.y}',+ borderRadius: '{form.field.border.radius}',+ focusRing: {+ width: '{form.field.focus.ring.width}',+ style: '{form.field.focus.ring.style}',+ color: '{form.field.focus.ring.color}',+ offset: '{form.field.focus.ring.offset}',+ shadow: '{form.field.focus.ring.shadow}'+ },+ transitionDuration: '{form.field.transition.duration}'+ },+ overlay: {+ background: '{overlay.select.background}',+ borderColor: '{overlay.select.border.color}',+ borderRadius: '{overlay.select.border.radius}',+ color: '{overlay.select.color}',+ shadow: '{overlay.select.shadow}'+ },+ list: {+ padding: '{list.padding}',+ gap: '{list.gap}'+ },+ option: {+ focusBackground: '{list.option.focus.background}',+ selectedBackground: '{list.option.selected.background}',+ selectedFocusBackground: '{list.option.selected.focus.background}',+ color: '{list.option.color}',+ focusColor: '{list.option.focus.color}',+ selectedColor: '{list.option.selected.color}',+ selectedFocusColor: '{list.option.selected.focus.color}',+ padding: '{list.option.padding}',+ borderRadius: '{list.option.border.radius}'+ },+ optionGroup: {+ background: '{list.option.group.background}',+ color: '{list.option.group.color}',+ fontWeight: '{list.option.group.font.weight}',+ padding: '{list.option.group.padding}'+ },+ dropdown: {+ width: '2.5rem',+ sm: {+ width: '2rem'+ },+ lg: {+ width: '3rem'+ },+ borderColor: '{form.field.border.color}',+ hoverBorderColor: '{form.field.border.color}',+ activeBorderColor: '{form.field.border.color}',+ borderRadius: '{form.field.border.radius}',+ focusRing: {+ width: '{form.field.focus.ring.width}',+ style: '{form.field.focus.ring.style}',+ color: '{form.field.focus.ring.color}',+ offset: '{form.field.focus.ring.offset}',+ shadow: '{form.field.focus.ring.shadow}'+ }+ },+ chip: {+ borderRadius: '{border.radius.sm}'+ },+ emptyMessage: {+ padding: '{list.option.padding}'+ },+ colorScheme: {+ light: {+ chip: {+ focusBackground: '{surface.200}',+ focusColor: '{surface.800}'+ },+ dropdown: {+ background: '{surface.50}',+ hoverBackground: '{surface.100}',+ activeBackground: '{surface.200}',+ color: '{surface.600}',+ hoverColor: '{surface.700}',+ activeColor: '{surface.800}'+ }+ }+ }+} as AutoCompleteDesignTokensdiff --git a/client/src/app/core/theme/primeng/components/checkbox.ts b/client/src/app/core/theme/primeng/components/checkbox.tsnew file mode 100644index 0000000000..263325d5ac--- /dev/null+++ b/client/src/app/core/theme/primeng/components/checkbox.ts@@ -0,0 +1,52 @@+import { CheckboxDesignTokens } from '@primeng/themes/types/checkbox'++export default {+ root: {+ borderRadius: '3px',+ width: '18px',+ height: '18px',+ background: 'var(--bg)',+ checkedBackground: 'var(--primary)',+ checkedHoverBackground: 'var(--primary)',+ disabledBackground: 'var(--bg)',+ filledBackground: 'var(--primary)',+ borderColor: 'var(--fg-100)',+ hoverBorderColor: 'var(--fg)',+ focusBorderColor: 'var(--fg)',+ checkedBorderColor: 'var(--primary)',+ checkedHoverBorderColor: 'var(--primary)',+ checkedFocusBorderColor: 'var(--primary)',+ checkedDisabledBorderColor: 'var(--fg-100)',+ invalidBorderColor: '{form.field.invalid.border.color}',+ shadow: '{form.field.shadow}',+ focusRing: {+ width: '{form.field.focus.ring.width}',+ style: '{form.field.focus.ring.style}',+ color: '{form.field.focus.ring.color}',+ offset: '{form.field.focus.ring.offset}',+ shadow: '{form.field.focus.ring.shadow}'+ },+ transitionDuration: '0.2s',+ sm: {+ width: '1.25rem',+ height: '1.25rem'+ },+ lg: {+ width: '1.75rem',+ height: '1.75rem'+ }+ },+ icon: {+ size: '14px',+ color: '{form.field.color}',+ checkedColor: 'var(--on-primary)',+ checkedHoverColor: 'var(--on-primary)',+ disabledColor: '{form.field.disabled.color}',+ sm: {+ size: '0.75rem'+ },+ lg: {+ size: '1.25rem'+ }+ }+} as CheckboxDesignTokensdiff --git a/client/src/app/core/theme/primeng/components/chip.ts b/client/src/app/core/theme/primeng/components/chip.tsnew file mode 100644index 0000000000..d82c4b67ce--- /dev/null+++ b/client/src/app/core/theme/primeng/components/chip.ts@@ -0,0 +1,42 @@+import { ChipDesignTokens } from '@primeng/themes/types/chip'++export default {+ root: {+ borderRadius: '4px',+ paddingX: '15px',+ paddingY: '2px',+ gap: '0.5rem',+ transitionDuration: '{transition.duration}'+ },+ image: {+ width: '2rem',+ height: '2rem'+ },+ icon: {+ size: '1rem'+ },+ removeIcon: {+ size: '1rem',+ focusRing: {+ width: '{focus.ring.width}',+ style: '{focus.ring.style}',+ color: '{focus.ring.color}',+ offset: '{focus.ring.offset}',+ shadow: '{focus.ring.shadow}'+ }+ },+ colorScheme: {+ light: {+ root: {+ background: 'var(--input-bg-550)',+ color: 'var(--fg)'+ },+ icon: {+ color: 'var(--fg)'+ },+ removeIcon: {+ color: 'var(--fg)'+ }+ }+ }+} as ChipDesignTokensdiff --git a/client/src/app/core/theme/primeng/components/datatable.ts b/client/src/app/core/theme/primeng/components/datatable.tsnew file mode 100644index 0000000000..b78188f9a5--- /dev/null+++ b/client/src/app/core/theme/primeng/components/datatable.ts@@ -0,0 +1,163 @@+import { DataTableDesignTokens } from '@primeng/themes/types/datatable'++export default {+ root: {+ transitionDuration: '{transition.duration}'+ },+ header: {+ borderColor: '{datatable.border.color}',+ borderWidth: '0',+ padding: '0.5rem 0 1rem',+ sm: {+ padding: '0.375rem 0.5rem'+ },+ lg: {+ padding: '1rem 1.25rem'+ }+ },+ headerCell: {+ selectedBackground: 'var(--bg)',+ borderColor: '{datatable.border.color}',+ hoverColor: '{content.hover.color}',+ selectedColor: 'var(--fg-200)',+ gap: '0.5rem',+ padding: '10px 0.25rem 10px 1rem',+ focusRing: {+ width: '{focus.ring.width}',+ style: '{focus.ring.style}',+ color: '{focus.ring.color}',+ offset: '{focus.ring.offset}',+ shadow: 'inset {focus.ring.shadow}'+ },+ sm: {+ padding: '0.375rem 0.5rem'+ },+ lg: {+ padding: '1rem 1.25rem'+ }+ },+ columnTitle: {+ fontWeight: 'normal'+ },+ row: {+ background: '{content.background}',+ hoverBackground: 'var(--bg-secondary-350)',+ selectedBackground: '{content.background}',+ color: '{content.color}',+ hoverColor: '{content.hover.color}',+ selectedColor: '{content.color}',+ focusRing: {+ width: '{focus.ring.width}',+ style: '{focus.ring.style}',+ color: '{focus.ring.color}',+ offset: '{focus.ring.offset}',+ shadow: 'inset {focus.ring.shadow}'+ }+ },+ bodyCell: {+ borderColor: 'transparent',+ padding: '5px 2px 5px 1rem',+ sm: {+ padding: '0.375rem 0.5rem'+ },+ lg: {+ padding: '1rem 1.25rem'+ }+ },+ footerCell: {+ borderColor: '{datatable.border.color}',+ padding: '0.75rem 1rem',+ sm: {+ padding: '0.375rem 0.5rem'+ },+ lg: {+ padding: '1rem 1.25rem'+ }+ },+ columnFooter: {+ fontWeight: '700'+ },+ footer: {+ borderColor: '{datatable.border.color}',+ borderWidth: '0 0 1px 0',+ padding: '0.75rem 1rem',+ sm: {+ padding: '0.375rem 0.5rem'+ },+ lg: {+ padding: '1rem 1.25rem'+ }+ },+ dropPoint: {+ color: '{primary.color}'+ },+ columnResizer: {+ width: '0.5rem'+ },+ resizeIndicator: {+ width: '1px',+ color: '{primary.color}'+ },+ sortIcon: {+ color: '{text.muted.color}',+ hoverColor: '{text.hover.muted.color}',+ size: '0.875rem'+ },+ loadingIcon: {+ size: '2rem'+ },+ rowToggleButton: {+ hoverBackground: '{content.hover.background}',+ selectedHoverBackground: '{content.background}',+ color: '{text.muted.color}',+ hoverColor: '{text.color}',+ selectedHoverColor: '{primary.color}',+ size: '1.75rem',+ borderRadius: '50%',+ focusRing: {+ width: '{focus.ring.width}',+ style: '{focus.ring.style}',+ color: '{focus.ring.color}',+ offset: '{focus.ring.offset}',+ shadow: '{focus.ring.shadow}'+ }+ },+ paginatorTop: {+ borderColor: '{datatable.border.color}',+ borderWidth: '0 0 1px 0'+ },+ paginatorBottom: {+ borderColor: '{datatable.border.color}',+ borderWidth: '0 0 1px 0'+ },+ colorScheme: {+ light: {+ root: {+ borderColor: 'var(--bg-secondary-450)'+ },+ header: {+ background: 'var(--bg)',+ color: 'var(--fg)'+ },+ headerCell: {+ background: 'var(--bg)',+ hoverBackground: 'var(--bg-secondary-400)',+ color: 'var(--fg-200)'+ },+ footer: {+ background: 'var(--bg)',+ color: '{text.color}'+ },+ footerCell: {+ background: 'var(--bg)',+ color: '{text.color}'+ },+ row: {+ stripedBackground: 'var(--bg-secondary-350)'+ },+ bodyCell: {+ selectedBorderColor: 'transparent'+ }+ }+ }+} as DataTableDesignTokensdiff --git a/client/src/app/core/theme/primeng/components/datepicker.ts b/client/src/app/core/theme/primeng/components/datepicker.tsnew file mode 100644index 0000000000..e9a66a458c--- /dev/null+++ b/client/src/app/core/theme/primeng/components/datepicker.ts@@ -0,0 +1,134 @@+import { DatePickerDesignTokens } from '@primeng/themes/types/datepicker'++export default {+ root: {+ transitionDuration: '{transition.duration}'+ },+ panel: {+ background: 'var(--bg-secondary-400)',+ borderColor: '{content.border.color}',+ color: 'var(--fg)',+ borderRadius: '{content.border.radius}',+ shadow: '{overlay.popover.shadow}',+ padding: '{overlay.popover.padding}'+ },+ header: {+ background: 'var(--bg-secondary-400)',+ borderColor: '{content.border.color}',+ color: '{content.color}',+ padding: '0 0 0.75rem 0'+ },+ title: {+ gap: '0.5rem',+ fontWeight: '700'+ },+ dropdown: {+ width: '2.5rem',+ sm: {+ width: '2rem'+ },+ lg: {+ width: '3rem'+ },+ borderColor: '{form.field.border.color}',+ hoverBorderColor: '{form.field.border.color}',+ activeBorderColor: '{form.field.border.color}',+ borderRadius: '{form.field.border.radius}',+ focusRing: {+ width: '{form.field.focus.ring.width}',+ style: '{form.field.focus.ring.style}',+ color: '{form.field.focus.ring.color}',+ offset: '{form.field.focus.ring.offset}',+ shadow: '{form.field.focus.ring.shadow}'+ }+ },+ inputIcon: {+ color: '{form.field.icon.color}'+ },+ selectMonth: {+ hoverBackground: 'var(--bg-secondary-500)',+ color: '{content.color}',+ hoverColor: '{content.hover.color}',+ padding: '0.375rem 0.625rem',+ borderRadius: '{content.border.radius}'+ },+ selectYear: {+ hoverBackground: 'var(--bg-secondary-500)',+ color: '{content.color}',+ hoverColor: '{content.hover.color}',+ padding: '0.375rem 0.625rem',+ borderRadius: '{content.border.radius}'+ },+ group: {+ borderColor: '{content.border.color}',+ gap: '{overlay.popover.padding}'+ },+ dayView: {+ margin: '0.25rem 0 0 0'+ },+ weekDay: {+ padding: '0.375rem',+ fontWeight: '700',+ color: '{content.color}'+ },+ date: {+ hoverBackground: 'var(--bg-secondary-500)',+ selectedBackground: '{primary.color}',+ rangeSelectedBackground: '{highlight.background}',+ color: 'var(--fg)',+ hoverColor: '{content.hover.color}',+ selectedColor: '{primary.contrast.color}',+ rangeSelectedColor: '{highlight.color}',+ width: 'auto',+ height: '1.75rem',+ borderRadius: '3px',+ padding: '0.15rem',+ focusRing: {+ width: '{form.field.focus.ring.width}',+ style: '{form.field.focus.ring.style}',+ color: '{form.field.focus.ring.color}',+ offset: '{form.field.focus.ring.offset}',+ shadow: '{form.field.focus.ring.shadow}'+ }+ },+ monthView: {+ margin: '0.25rem 0 0 0'+ },+ month: {+ padding: '0.5rem',+ borderRadius: '{content.border.radius}'+ },+ yearView: {+ margin: '0.75rem 0 0 0'+ },+ year: {+ padding: '0.5rem',+ borderRadius: '{content.border.radius}'+ },+ buttonbar: {+ padding: '0.75rem 0 0 0',+ borderColor: '{content.border.color}'+ },+ timePicker: {+ padding: '0.75rem 0 0 0',+ borderColor: '{content.border.color}',+ gap: '0.5rem',+ buttonGap: '0.25rem'+ },+ colorScheme: {+ light: {+ dropdown: {+ background: 'var(--bg-secondary-400)',+ hoverBackground: 'var(--bg-secondary-500)',+ activeBackground: 'var(--primary)',+ color: 'var(--fg)',+ hoverColor: 'var(--fg)',+ activeColor: 'var(--on-primary)'+ },+ today: {+ background: 'var(--bg-secondary-600)',+ color: 'var(--fg)'+ }+ }+ }+} as DatePickerDesignTokensdiff --git a/client/src/app/core/theme/primeng/components/inputchips.ts b/client/src/app/core/theme/primeng/components/inputchips.tsnew file mode 100644index 0000000000..85db6bf83d--- /dev/null+++ b/client/src/app/core/theme/primeng/components/inputchips.ts@@ -0,0 +1,46 @@+import { InputChipsDesignTokens } from '@primeng/themes/types/inputchips'++export default {+ root: {+ background: '{form.field.background}',+ disabledBackground: '{form.field.disabled.background}',+ filledBackground: '{form.field.filled.background}',+ filledFocusBackground: '{form.field.filled.focus.background}',+ borderColor: '{form.field.border.color}',+ hoverBorderColor: '{form.field.hover.border.color}',+ focusBorderColor: '{form.field.focus.border.color}',+ invalidBorderColor: '{form.field.invalid.border.color}',+ color: '{form.field.color}',+ disabledColor: '{form.field.disabled.color}',+ placeholderColor: '{form.field.placeholder.color}',+ shadow: '{form.field.shadow}',+ paddingX: '{form.field.padding.x}',+ paddingY: '{form.field.padding.y}',+ borderRadius: '{form.field.border.radius}',+ focusRing: {+ width: '{form.field.focus.ring.width}',+ style: '{form.field.focus.ring.style}',+ color: '{form.field.focus.ring.color}',+ offset: '{form.field.focus.ring.offset}',+ shadow: '{form.field.focus.ring.shadow}'+ },+ transitionDuration: '{form.field.transition.duration}'+ },+ chip: {+ borderRadius: 'var(--input-border-radius)'+ },+ colorScheme: {+ light: {+ chip: {+ focusBackground: '{surface.200}',+ color: '{surface.800}'+ }+ },+ dark: {+ chip: {+ focusBackground: '{surface.700}',+ color: '{surface.0}'+ }+ }+ }+} as InputChipsDesignTokensdiff --git a/client/src/app/core/theme/primeng/components/inputtext.ts b/client/src/app/core/theme/primeng/components/inputtext.tsnew file mode 100644index 0000000000..04eb3a7d86--- /dev/null+++ b/client/src/app/core/theme/primeng/components/inputtext.ts@@ -0,0 +1,41 @@+import { InputTextDesignTokens } from '@primeng/themes/types/inputtext'++export default {+ root: {+ background: '{form.field.background}',+ disabledBackground: '{form.field.disabled.background}',+ filledBackground: '{form.field.filled.background}',+ filledHoverBackground: '{form.field.filled.hover.background}',+ filledFocusBackground: '{form.field.filled.focus.background}',+ borderColor: '{form.field.border.color}',+ hoverBorderColor: '{form.field.hover.border.color}',+ focusBorderColor: '{form.field.focus.border.color}',+ invalidBorderColor: '{form.field.invalid.border.color}',+ color: '{form.field.color}',+ disabledColor: '{form.field.disabled.color}',+ placeholderColor: '{form.field.placeholder.color}',+ invalidPlaceholderColor: '{form.field.invalid.placeholder.color}',+ shadow: '{form.field.shadow}',+ paddingX: '{form.field.padding.x}',+ paddingY: '{form.field.padding.y}',+ borderRadius: '{form.field.border.radius}',+ focusRing: {+ width: '{form.field.focus.ring.width}',+ style: '{form.field.focus.ring.style}',+ color: '{form.field.focus.ring.color}',+ offset: '{form.field.focus.ring.offset}',+ shadow: '{form.field.focus.ring.shadow}'+ },+ transitionDuration: '{form.field.transition.duration}',+ sm: {+ fontSize: '{form.field.sm.font.size}',+ paddingX: '{form.field.sm.padding.x}',+ paddingY: '{form.field.sm.padding.y}'+ },+ lg: {+ fontSize: '{form.field.lg.font.size}',+ paddingX: '{form.field.lg.padding.x}',+ paddingY: '{form.field.lg.padding.y}'+ }+ }+} as InputTextDesignTokensdiff --git a/client/src/app/core/theme/primeng/components/multiselect.ts b/client/src/app/core/theme/primeng/components/multiselect.tsnew file mode 100644index 0000000000..5ad65cf013--- /dev/null+++ b/client/src/app/core/theme/primeng/components/multiselect.ts@@ -0,0 +1,86 @@+import { MultiSelectDesignTokens } from '@primeng/themes/types/multiselect'++export default {+ root: {+ background: '{form.field.background}',+ disabledBackground: '{form.field.disabled.background}',+ filledBackground: '{form.field.filled.background}',+ filledHoverBackground: '{form.field.filled.hover.background}',+ filledFocusBackground: '{form.field.filled.focus.background}',+ borderColor: '{form.field.border.color}',+ hoverBorderColor: '{form.field.hover.border.color}',+ focusBorderColor: '{form.field.focus.border.color}',+ invalidBorderColor: '{form.field.invalid.border.color}',+ color: '{form.field.color}',+ disabledColor: '{form.field.disabled.color}',+ placeholderColor: '{form.field.placeholder.color}',+ invalidPlaceholderColor: '{form.field.invalid.placeholder.color}',+ shadow: '{form.field.shadow}',+ paddingX: '{form.field.padding.x}',+ paddingY: '{form.field.padding.y}',+ borderRadius: '{form.field.border.radius}',+ focusRing: {+ width: '{form.field.focus.ring.width}',+ style: '{form.field.focus.ring.style}',+ color: '{form.field.focus.ring.color}',+ offset: '{form.field.focus.ring.offset}',+ shadow: '{form.field.focus.ring.shadow}'+ },+ transitionDuration: '{form.field.transition.duration}',+ sm: {+ fontSize: '{form.field.sm.font.size}',+ paddingX: '{form.field.sm.padding.x}',+ paddingY: '{form.field.sm.padding.y}'+ },+ lg: {+ fontSize: '{form.field.lg.font.size}',+ paddingX: '{form.field.lg.padding.x}',+ paddingY: '{form.field.lg.padding.y}'+ }+ },+ dropdown: {+ width: '2.5rem',+ color: '{form.field.icon.color}'+ },+ overlay: {+ background: '{overlay.select.background}',+ borderColor: '{overlay.select.border.color}',+ borderRadius: '{overlay.select.border.radius}',+ color: '{overlay.select.color}',+ shadow: '{overlay.select.shadow}'+ },+ list: {+ padding: '{list.padding}',+ gap: '{list.gap}',+ header: {+ padding: '{list.header.padding}'+ }+ },+ option: {+ focusBackground: 'var(--bg-secondary-400)',+ selectedBackground: '{overlay.select.background}',+ selectedFocusBackground: 'var(--bg-secondary-400)',+ color: '{list.option.color}',+ focusColor: '{list.option.focus.color}',+ selectedColor: '{overlay.select.color}',+ selectedFocusColor: '{overlay.select.color}',+ padding: '{list.option.padding}',+ borderRadius: '{list.option.border.radius}',+ gap: '0.5rem'+ },+ optionGroup: {+ background: '{list.option.group.background}',+ color: '{list.option.group.color}',+ fontWeight: '{list.option.group.font.weight}',+ padding: '{list.option.group.padding}'+ },+ clearIcon: {+ color: '{form.field.icon.color}'+ },+ chip: {+ borderRadius: '{border.radius.sm}'+ },+ emptyMessage: {+ padding: '{list.option.padding}'+ }+} as MultiSelectDesignTokensdiff --git a/client/src/app/core/theme/primeng/components/paginator.ts b/client/src/app/core/theme/primeng/components/paginator.tsnew file mode 100644index 0000000000..4be4309211--- /dev/null+++ b/client/src/app/core/theme/primeng/components/paginator.ts@@ -0,0 +1,36 @@+import { PaginatorDesignTokens } from '@primeng/themes/types/paginator'++export default {+ root: {+ padding: '5px 0',+ gap: '10px',+ borderRadius: '{content.border.radius}',+ background: '{content.background}',+ color: '{content.color}',+ transitionDuration: '{transition.duration}'+ },+ navButton: {+ background: 'transparent',+ hoverBackground: 'var(--bg-secondary-400)',+ selectedBackground: 'var(--bg-secondary-450)',+ color: 'var(--fg)',+ hoverColor: 'var(--fg)',+ selectedColor: ' var(--fg)',+ width: '34px',+ height: '34px',+ borderRadius: '100%',+ focusRing: {+ width: '{focus.ring.width}',+ style: '{focus.ring.style}',+ color: '{focus.ring.color}',+ offset: '{focus.ring.offset}',+ shadow: '{focus.ring.shadow}'+ }+ },+ currentPageReport: {+ color: 'var(--fg-300)'+ },+ jumpToPageInput: {+ maxWidth: '2.5rem'+ }+} as PaginatorDesignTokensdiff --git a/client/src/app/core/theme/primeng/components/select.ts b/client/src/app/core/theme/primeng/components/select.tsnew file mode 100644index 0000000000..de5150c860--- /dev/null+++ b/client/src/app/core/theme/primeng/components/select.ts@@ -0,0 +1,86 @@+import type { SelectDesignTokens } from '@primeng/themes/types/select'++export default {+ root: {+ background: '{form.field.background}',+ disabledBackground: '{form.field.disabled.background}',+ filledBackground: '{form.field.filled.background}',+ filledHoverBackground: '{form.field.filled.hover.background}',+ filledFocusBackground: '{form.field.filled.focus.background}',+ borderColor: '{form.field.border.color}',+ hoverBorderColor: '{form.field.hover.border.color}',+ focusBorderColor: '{form.field.focus.border.color}',+ invalidBorderColor: '{form.field.invalid.border.color}',+ disabledColor: '{form.field.disabled.color}',+ placeholderColor: '{form.field.placeholder.color}',+ invalidPlaceholderColor: '{form.field.invalid.placeholder.color}',+ shadow: '{form.field.shadow}',+ paddingX: '{form.field.padding.x}',+ paddingY: '{form.field.padding.y}',+ borderRadius: '{form.field.border.radius}',+ focusRing: {+ width: '{form.field.focus.ring.width}',+ style: '{form.field.focus.ring.style}',+ color: '{form.field.focus.ring.color}',+ offset: '{form.field.focus.ring.offset}',+ shadow: '{form.field.focus.ring.shadow}'+ },+ transitionDuration: '{form.field.transition.duration}',+ sm: {+ fontSize: '{form.field.sm.font.size}',+ paddingX: '{form.field.sm.padding.x}',+ paddingY: '{form.field.sm.padding.y}'+ },+ lg: {+ fontSize: '{form.field.lg.font.size}',+ paddingX: '{form.field.lg.padding.x}',+ paddingY: '{form.field.lg.padding.y}'+ }+ },+ dropdown: {+ width: '2.5rem',+ color: '{form.field.icon.color}'+ },+ overlay: {+ background: '{overlay.select.background}',+ borderColor: '{overlay.select.border.color}',+ borderRadius: '{overlay.select.border.radius}',+ color: '{overlay.select.color}',+ shadow: '{overlay.select.shadow}'+ },+ list: {+ padding: '{list.padding}',+ gap: '{list.gap}',+ header: {+ padding: '{list.header.padding}'+ }+ },+ option: {+ focusBackground: '{list.option.focus.background}',+ selectedBackground: '{list.option.selected.background}',+ selectedFocusBackground: '{list.option.selected.focus.background}',+ color: '{list.option.color}',+ focusColor: '{list.option.focus.color}',+ selectedColor: '{list.option.selected.color}',+ selectedFocusColor: '{list.option.selected.focus.color}',+ padding: '{list.option.padding}',+ borderRadius: '{list.option.border.radius}'+ },+ optionGroup: {+ background: '{list.option.group.background}',+ color: '{list.option.group.color}',+ fontWeight: '{list.option.group.font.weight}',+ padding: '{list.option.group.padding}'+ },+ clearIcon: {+ color: '{form.field.icon.color}'+ },+ checkmark: {+ color: '{list.option.color}',+ gutterStart: '-0.375rem',+ gutterEnd: '0.375rem'+ },+ emptyMessage: {+ padding: '{list.option.padding}'+ }+} satisfies SelectDesignTokensdiff --git a/client/src/app/core/theme/primeng/components/toast.ts b/client/src/app/core/theme/primeng/components/toast.tsnew file mode 100644index 0000000000..183264f065--- /dev/null+++ b/client/src/app/core/theme/primeng/components/toast.ts@@ -0,0 +1,132 @@+import { ToastDesignTokens } from '@primeng/themes/types/toast'++export default {+ root: {+ width: '25rem',+ borderRadius: '{content.border.radius}',+ borderWidth: '0 0 0 6px',+ transitionDuration: '{transition.duration}'+ },+ icon: {+ size: '1.25rem'+ },+ content: {+ padding: '10px',+ gap: '0.5rem'+ },+ text: {+ gap: '0.5rem'+ },+ summary: {+ fontWeight: '500',+ fontSize: '1rem'+ },+ detail: {+ fontWeight: '500',+ fontSize: '0.875rem'+ },+ closeButton: {+ width: '2rem',+ height: '2rem',+ borderRadius: '50%',+ focusRing: {+ width: '{focus.ring.width}',+ style: '{focus.ring.style}',+ offset: '{focus.ring.offset}'+ }+ },+ closeIcon: {+ size: '1rem'+ },+ colorScheme: {+ light: {+ root: {+ blur: '1.5px'+ },+ info: {+ background: 'color-mix(in srgb, {blue.50}, transparent 5%)',+ borderColor: '{blue.500}',+ color: '{blue.600}',+ detailColor: '{surface.700}',+ shadow: '{overlay.popover.shadow}',+ closeButton: {+ hoverBackground: '{blue.100}',+ focusRing: {+ color: '{focus.ring.color}',+ shadow: '0 0 0 0.2rem {blue.200}'+ }+ }+ },+ success: {+ background: 'color-mix(in srgb, {green.50}, transparent 5%)',+ borderColor: '{green.500}',+ color: '{green.600}',+ detailColor: '{surface.700}',+ shadow: '{overlay.popover.shadow}',+ closeButton: {+ hoverBackground: '{green.100}',+ focusRing: {+ color: '{focus.ring.color}',+ shadow: '0 0 0 0.2rem {green.200}'+ }+ }+ },+ warn: {+ background: 'color-mix(in srgb,{yellow.50}, transparent 5%)',+ borderColor: '{yellow.500}',+ color: '{yellow.600}',+ detailColor: '{surface.700}',+ shadow: '{overlay.popover.shadow}',+ closeButton: {+ hoverBackground: '{yellow.100}',+ focusRing: {+ color: '{focus.ring.color}',+ shadow: '0 0 0 0.2rem {yellow.200}'+ }+ }+ },+ error: {+ background: 'color-mix(in srgb, {red.50}, transparent 5%)',+ borderColor: '{red.500}',+ color: '{red.600}',+ detailColor: '{surface.700}',+ shadow: '{overlay.popover.shadow}',+ closeButton: {+ hoverBackground: '{red.100}',+ focusRing: {+ color: '{focus.ring.color}',+ shadow: '0 0 0 0.2rem {red.200}'+ }+ }+ },+ secondary: {+ background: '{surface.100}',+ borderColor: '{surface.500}',+ color: '{surface.600}',+ detailColor: '{surface.700}',+ shadow: '{overlay.popover.shadow}',+ closeButton: {+ hoverBackground: '{surface.200}',+ focusRing: {+ color: '{focus.ring.color}',+ shadow: '0 0 0 0.2rem {surface.200}'+ }+ }+ },+ contrast: {+ background: '{surface.900}',+ borderColor: '{primary.color}',+ color: '{surface.50}',+ detailColor: '{surface.0}',+ shadow: '{overlay.popover.shadow}',+ closeButton: {+ hoverBackground: '{surface.800}',+ focusRing: {+ color: '{focus.ring.color}',+ shadow: '0 0 0 0.2rem {surface.400}'+ }+ }+ }+ }+ }+} as ToastDesignTokensdiff --git a/client/src/app/core/theme/primeng/primeng-theme.ts b/client/src/app/core/theme/primeng/primeng-theme.tsnew file mode 100644index 0000000000..2f4a1cae4f--- /dev/null+++ b/client/src/app/core/theme/primeng/primeng-theme.ts@@ -0,0 +1,30 @@+import base from './base'+import autocomplete from './components/autocomplete'+import checkbox from './components/checkbox'+import chip from './components/chip'+import datatable from './components/datatable'+import datepicker from './components/datepicker'+import inputchips from './components/inputchips'+import inputtext from './components/inputtext'+import multiselect from './components/multiselect'+import paginator from './components/paginator'+import select from './components/select'+import toast from './components/toast'++export const PTPrimeTheme = {+ ...base,++ components: {+ select,+ inputchips,+ chip,+ datepicker,+ inputtext,+ toast,+ autocomplete,+ multiselect,+ checkbox,+ datatable,+ paginator+ }+}diff --git a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.htmlindex fc5ea25961..1d077e24f6 100644--- a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html+++ b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html@@ -4,7 +4,7 @@[lazy]="true" (onLazyLoad)="loadLazy($event)" [lazyLoadOnInit]="false"[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()" [expandedRowKeys]="expandedRows">- <ng-template pTemplate="caption">+ <ng-template #caption><div class="caption"><div class="ms-auto"><my-advanced-input-filter [filters]="inputFilters" (search)="onSearch($event)"></my-advanced-input-filter>@@ -12,7 +12,7 @@</div></ng-template>- <ng-template pTemplate="header">+ <ng-template #header><tr> <!-- header --><th scope="col" style="width: 40px;"><span i18n class="visually-hidden">More information</span>@@ -22,14 +22,14 @@</th><th scope="col" *ngIf="isAdminView()" style="width: 20%;" pResizableColumn i18n>Reporter</th><th scope="col" i18n>Video/Comment/Account</th>- <th scope="col" style="width: 150px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>+ <th scope="col" style="width: 170px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th><th scope="col" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="state" style="width: 80px;">State <p-sortIcon field="state"></p-sortIcon></th><th scope="col" i18n style="width: 80px;">Messages</th><th scope="col" i18n *ngIf="isAdminView()" style="width: 100px;">Internal note</th></tr></ng-template>- <ng-template pTemplate="body" let-expanded="expanded" let-abuse>+ <ng-template #body let-expanded="expanded" let-abuse><tr><td class="expand-cell"><my-table-expander-icon [pRowToggler]="abuse" [expanded]="expanded"></my-table-expander-icon>@@ -144,7 +144,7 @@</tr></ng-template>- <ng-template pTemplate="rowexpansion" let-abuse>+ <ng-template #expandedrow let-abuse><tr><td *ngIf="isAdminView()" class="expand-cell" myAutoColspan><my-abuse-details [abuse]="abuse" [isAdminView]="true"></my-abuse-details>@@ -155,7 +155,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/shared/shared-forms/select/select-channel.component.ts b/client/src/app/shared/shared-forms/select/select-channel.component.tsindex 2a4914b7e5..bb34df038a 100644--- a/client/src/app/shared/shared-forms/select/select-channel.component.ts+++ b/client/src/app/shared/shared-forms/select/select-channel.component.ts@@ -1,8 +1,7 @@import { CommonModule } from '@angular/common'-import { Component, forwardRef, OnChanges, input } from '@angular/core'+import { Component, forwardRef, input, OnChanges } from '@angular/core'import { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms'import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'-import { DropdownModule } from 'primeng/dropdown'import { SelectChannelItem, SelectOptionsItem } from '../../../../types/select-options-item.model'import { SelectOptionsComponent } from './select-options.component'@@ -27,7 +26,7 @@ import { SelectOptionsComponent } from './select-options.component'multi: true}],- imports: [ DropdownModule, FormsModule, CommonModule, SelectOptionsComponent ]+ imports: [ FormsModule, CommonModule, SelectOptionsComponent ]})export class SelectChannelComponent implements ControlValueAccessor, OnChanges {readonly inputId = input.required<string>()diff --git a/client/src/app/shared/shared-forms/select/select-checkbox.component.html b/client/src/app/shared/shared-forms/select/select-checkbox.component.htmlindex a06f193059..eb2a899dd0 100644--- a/client/src/app/shared/shared-forms/select/select-checkbox.component.html+++ b/client/src/app/shared/shared-forms/select/select-checkbox.component.html@@ -18,5 +18,7 @@[virtualScrollItemSize]="virtualScrollItemSize()"(onPanelHide)="panelHide.emit()"++ fluid="true"></p-multiSelect>diff --git a/client/src/app/shared/shared-forms/select/select-options.component.html b/client/src/app/shared/shared-forms/select/select-options.component.htmlindex e07b43be3c..7a23c4537d 100644--- a/client/src/app/shared/shared-forms/select/select-options.component.html+++ b/client/src/app/shared/shared-forms/select/select-options.component.html@@ -1,4 +1,4 @@-<p-dropdown+<p-select[inputId]="inputId()"[options]="items()"@@ -19,26 +19,30 @@[virtualScroll]="virtualScroll()"[virtualScrollItemSize]="virtualScrollItemSize()"++ fluid="true"><ng-template #itemTemplate let-item let-description="description">@if (customItemTemplate) {<ng-template [ngTemplateOutlet]="customItemTemplate" [ngTemplateOutletContext]="{ $implicit: item }"></ng-template>} @else {- <div class="d-flex align-items-center item-label">- <img *ngIf="item.imageUrl" alt="" class="me-2" [src]="item.imageUrl" />+ <div>+ <div class="d-flex align-items-center item-label">+ <img *ngIf="item.imageUrl" alt="" class="me-2" [src]="item.imageUrl" />- <span class="ellipsis" [ngClass]="item.classes">{{ item.label }}</span>- </div>+ <span class="ellipsis" [ngClass]="item.classes">{{ item.label }}</span>+ </div>- <span *ngIf="description" class="muted">{{ description }}</span>+ <span *ngIf="description" class="muted">{{ description }}</span>+ </div>}</ng-template>- <ng-template pTemplate="selectedItem">+ <ng-template #selectedItem><ng-template [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ $implicit: getSelectedItem() }"></ng-template></ng-template>- <ng-template let-item pTemplate="item">+ <ng-template let-item #item><ng-template [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ $implicit: item, description: item.description }"></ng-template></ng-template>-</p-dropdown>+</p-select>diff --git a/client/src/app/shared/shared-forms/select/select-options.component.ts b/client/src/app/shared/shared-forms/select/select-options.component.tsindex e4d30de33e..0c2039a250 100644--- a/client/src/app/shared/shared-forms/select/select-options.component.ts+++ b/client/src/app/shared/shared-forms/select/select-options.component.ts@@ -4,17 +4,17 @@ import {booleanAttribute,ChangeDetectorRef,Component,+ contentChildren,forwardRef,HostListener,- numberAttribute,- TemplateRef,inject,input,- contentChildren+ numberAttribute,+ TemplateRef} from '@angular/core'import { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms'import { PeerTubeTemplateDirective } from '@app/shared/shared-main/common/peertube-template.directive'-import { DropdownModule } from 'primeng/dropdown'+import { SelectModule } from 'primeng/select'import { SelectOptionsItem } from '../../../../types/select-options-item.model'@Component({@@ -30,7 +30,7 @@ import { SelectOptionsItem } from '../../../../types/select-options-item.model'multi: true}],- imports: [ DropdownModule, FormsModule, CommonModule ]+ imports: [ SelectModule, FormsModule, CommonModule ]})export class SelectOptionsComponent implements AfterContentInit, ControlValueAccessor {private cd = inject(ChangeDetectorRef)diff --git a/client/src/app/shared/shared-moderation/account-blocklist.component.html b/client/src/app/shared/shared-moderation/account-blocklist.component.htmlindex 6739607deb..c1a9f15dd5 100644--- a/client/src/app/shared/shared-moderation/account-blocklist.component.html+++ b/client/src/app/shared/shared-moderation/account-blocklist.component.html@@ -4,7 +4,7 @@[sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)"[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()">- <ng-template pTemplate="caption">+ <ng-template #caption><div class="caption"><div class="ms-auto"><my-advanced-input-filter (search)="onSearch($event)"></my-advanced-input-filter>@@ -12,15 +12,15 @@</div></ng-template>- <ng-template pTemplate="header">+ <ng-template #header><tr><th scope="col" style="width: 150px;" i18n>Action</th> <!-- column for action buttons --><th scope="col" i18n>Account</th>- <th scope="col" style="width: 150px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th>+ <th scope="col" style="width: 170px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th></tr></ng-template>- <ng-template pTemplate="body" let-accountBlock>+ <ng-template #body let-accountBlock><tr><td class="action-cell"><button class="peertube-button secondary-button" (click)="unblockAccount(accountBlock)" i18n>Unmute</button>@@ -41,7 +41,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/shared/shared-moderation/server-blocklist.component.html b/client/src/app/shared/shared-moderation/server-blocklist.component.htmlindex 5f92bff042..f93bbaf954 100644--- a/client/src/app/shared/shared-moderation/server-blocklist.component.html+++ b/client/src/app/shared/shared-moderation/server-blocklist.component.html@@ -5,7 +5,7 @@[lazy]="true" (onLazyLoad)="loadLazy($event)" [lazyLoadOnInit]="false"[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()">- <ng-template pTemplate="caption">+ <ng-template #caption><div class="caption"><div class="left-buttons"><button class="peertube-create-button" (click)="addServersToBlock()" (key.enter)="addServersToBlock()">@@ -20,15 +20,15 @@</div></ng-template>- <ng-template pTemplate="header">+ <ng-template #header><tr><th scope="col" style="width: 150px;" i18n>Action</th> <!-- column for action buttons --><th scope="col" i18n>Instance</th>- <th scope="col" style="width: 150px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th>+ <th scope="col" style="width: 170px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th></tr></ng-template>- <ng-template pTemplate="body" let-serverBlock>+ <ng-template #body let-serverBlock><tr><td class="action-cell"><button class="peertube-button secondary-button" (click)="unblockServer(serverBlock)" i18n>Unmute</button>@@ -43,7 +43,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.html b/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.htmlindex 5cb016d849..79ce4ffd52 100644--- a/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.html+++ b/client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.html@@ -5,7 +5,7 @@[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()"[expandedRowKeys]="expandedRows" [(selection)]="selectedRows">- <ng-template pTemplate="caption">+ <ng-template #caption><div class="caption"><div><my-action-dropdown@@ -23,9 +23,9 @@</div></ng-template>- <ng-template pTemplate="header">+ <ng-template #header><tr>- <th scope="col" style="width: 40px;">+ <th class="checkbox-cell" scope="col" style="width: 40px;"><p-tableHeaderCheckbox ariaLabel="Select all rows" i18n-ariaLabel></p-tableHeaderCheckbox></th><th scope="col" style="width: 40px;">@@ -38,11 +38,11 @@<th scope="col" i18n>Video</th><th scope="col" i18n>Comment</th><th scope="col" i18n>Auto tags</th>- <th scope="col" style="width: 150px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th>+ <th scope="col" style="width: 170px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th></tr></ng-template>- <ng-template pTemplate="body" let-videoComment let-expanded="expanded">+ <ng-template #body let-videoComment let-expanded="expanded"><tr [pSelectableRow]="videoComment"><td class="checkbox-cell">@@ -100,7 +100,7 @@</tr></ng-template>- <ng-template pTemplate="rowexpansion" let-videoComment>+ <ng-template #expandedrow let-videoComment><tr><td class="expand-cell" myAutoColspan><div [innerHTML]="videoComment.textHtml"></div>@@ -108,7 +108,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.html b/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.htmlindex c84ba094a5..f26421bf01 100644--- a/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.html+++ b/client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.html@@ -5,7 +5,7 @@[showCurrentPageReport]="true" [currentPageReportTemplate]="getPaginationTemplate()"[expandedRowKeys]="expandedRows">- <ng-template pTemplate="caption">+ <ng-template #caption><div class="caption"><div class="left-buttons"><button type="button" *ngIf="!isInSelectionMode()" class="peertube-create-button" (click)="openCreateOrUpdateList()">@@ -20,7 +20,7 @@</div></ng-template>- <ng-template pTemplate="header">+ <ng-template #header><tr><th scope="col" style="width: 40px;"><span i18n class="visually-hidden">More information</span>@@ -30,11 +30,11 @@</th><th scope="col" style="width: 300px;" i18n>List name</th><th scope="col" style="width: 300px;" i18n>Words</th>- <th scope="col" style="width: 150px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="updatedAt">Date <p-sortIcon field="updatedAt"></p-sortIcon></th>+ <th scope="col" style="width: 170px;" i18n [ngbTooltip]="sortTooltip" container="body" pSortableColumn="updatedAt">Date <p-sortIcon field="updatedAt"></p-sortIcon></th></tr></ng-template>- <ng-template pTemplate="body" let-list let-expanded="expanded">+ <ng-template #body let-list let-expanded="expanded"><tr><td class="expand-cell">@@ -60,7 +60,7 @@</tr></ng-template>- <ng-template pTemplate="rowexpansion" let-list>+ <ng-template #expandedrow let-list><tr><td class="expand-cell" myAutoColspan><ul>@@ -72,7 +72,7 @@</tr></ng-template>- <ng-template pTemplate="emptymessage">+ <ng-template #emptymessage><tr><td myAutoColspan><div class="no-results">diff --git a/client/src/main.ts b/client/src/main.tsindex 59cd329035..83d1290bab 100644--- a/client/src/main.ts+++ b/client/src/main.ts@@ -4,19 +4,21 @@ import {ApplicationRef,enableProdMode,importProvidersFrom,- provideZoneChangeDetection,inject,- provideAppInitializer+ provideAppInitializer,+ provideZoneChangeDetection} from '@angular/core'import { BrowserModule, bootstrapApplication, enableDebugTools } from '@angular/platform-browser'import { BrowserAnimationsModule } from '@angular/platform-browser/animations'import { RouteReuseStrategy, provideRouter, withInMemoryScrolling, withPreloading } from '@angular/router'import { ServiceWorkerModule } from '@angular/service-worker'+import { PTPrimeTheme } from '@app/core/theme/primeng/primeng-theme'import localeOc from '@app/helpers/locales/oc'import { getFormProviders } from '@app/shared/shared-forms/shared-form-providers'import { NgbModalModule } from '@ng-bootstrap/ng-bootstrap'import { LoadingBarModule } from '@ngx-loading-bar/core'import { LoadingBarHttpClientModule } from '@ngx-loading-bar/http-client'+import { providePrimeNG } from 'primeng/config'import { ToastModule } from 'primeng/toast'import { switchMap } from 'rxjs/operators'import { AppComponent } from './app/app.component'@@ -108,6 +110,12 @@ const bootstrap = () =>const initializerFn = loadConfigFactory(inject(ServerService), inject(PluginService), inject(ThemeService), inject(RedirectService))return initializerFn()+ }),++ providePrimeNG({+ theme: {+ preset: PTPrimeTheme+ }})]})diff --git a/client/src/root-helpers/theme-manager.ts b/client/src/root-helpers/theme-manager.tsindex 60099fe631..a920e74424 100644--- a/client/src/root-helpers/theme-manager.ts+++ b/client/src/root-helpers/theme-manager.ts@@ -49,7 +49,7 @@ export class ThemeManager {}}- document.body.dataset.ptTheme = name+ document.documentElement.dataset.ptTheme = name}injectCoreColorPalette (iteration = 0) {@@ -72,7 +72,7 @@ export class ThemeManager {}private canInjectCoreColorPalette () {- const computedStyle = getComputedStyle(document.body)+ const computedStyle = getComputedStyle(document.documentElement)const isDark = computedStyle.getPropertyValue('--is-dark')return isDark === '0' || isDark === '1'@@ -81,8 +81,8 @@ export class ThemeManager {private injectColorPalette () {console.log(`Injecting color palette`)- const rootStyle = document.body.style- const computedStyle = getComputedStyle(document.body)+ const rootStyle = document.documentElement.style+ const computedStyle = getComputedStyle(document.documentElement)// FIXME: Remove previously injected propertiesfor (const property of this.oldInjectedProperties) {@@ -127,7 +127,7 @@ export class ThemeManager {: 1if (!mainColor) {- console.error(`Cannot create palette of nonexistent "--${prefix}" CSS body variable`)+ console.error(`Cannot create palette of nonexistent "--${prefix}" CSS documentElement variable`)continue}@@ -175,7 +175,7 @@ export class ThemeManager {}}- document.body.dataset.bsTheme = isGlobalDarkTheme()+ document.documentElement.dataset.bsTheme = isGlobalDarkTheme()? 'dark': ''}diff --git a/client/src/sass/application.scss b/client/src/sass/application.scssindex 8cb4096bda..0ef7162a69 100644--- a/client/src/sass/application.scss+++ b/client/src/sass/application.scss@@ -1,16 +1,16 @@-@use 'sass:math';-@use 'sass:color';-@use '_variables' as *;-@use '_bootstrap-variables' as *;-@use '_mixins' as *;-@use '_icons' as *;-@use '_fonts';-@use './custom-markup';-@use './bootstrap';-@use './primeng-custom';-@use './z-index';-@use './class-helpers/index.scss';-@use '_css-variables' as *;+@use "sass:math";+@use "sass:color";+@use "_variables" as *;+@use "_bootstrap-variables" as *;+@use "_mixins" as *;+@use "_icons" as *;+@use "_fonts";+@use "./custom-markup";+@use "./bootstrap";+@use "./z-index";+@use "./class-helpers/index.scss";+@use "_css-variables" as *;+@use "./primeng";@mixin main-col-expanded {--menu-width: #{$menu-collapsed-width};@@ -20,25 +20,29 @@input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-results-button,-input[type="search"]::-webkit-search-results-decoration { display: none; }+input[type="search"]::-webkit-search-results-decoration {+ display: none;+}-body {+// ---------------------------------------------------------------------------++:root {@include define-css-variables();+}- & {- font-family: $main-fonts;- font-weight: $font-regular;- color: pvar(--fg);- background-color: pvar(--bg);+body {+ font-family: $main-fonts;+ font-weight: $font-regular;+ color: pvar(--fg);+ background-color: pvar(--bg);- // On desktop browsers, make sure vertical scroll bar is always visible- // Allow to disable the scrollbar instead of hide it when the content fit the body- // And not move the content and header horizontally sticked to right when the content is updating- overflow-y: scroll;+ // On desktop browsers, make sure vertical scroll bar is always visible+ // Allow to disable the scrollbar instead of hide it when the content fit the body+ // And not move the content and header horizontally sticked to right when the content is updating+ overflow-y: scroll;- // Fix "reboot" style that set text-align: left- text-align: start;- }+ // Fix "reboot" style that set text-align: left+ text-align: start;}::selection {@@ -96,8 +100,8 @@ code {background-color: pvar(--bg-secondary-500);color: pvar(--fg-400);border-radius: 3px;- padding: .2em .4em;- margin: auto .4em;+ padding: 0.2em 0.4em;+ margin: auto 0.4em;font-size: 75%;display: inline-block;vertical-align: middle;@@ -142,7 +146,8 @@ a.pt {@include main-col-expanded();}- &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */+ &.lock-scroll .main-row > router-outlet + * {+ /* stylelint-disable-line selector-max-compound-selectors */// Lock and hide body scrollbarsposition: fixed;}@@ -152,7 +157,7 @@ a.pt {overflow: hidden !important;}-my-global-icon[iconName=external-link] {+my-global-icon[iconName="external-link"] {margin: 0 0.3em;width: 0.9em;height: 0.9em;@@ -184,15 +189,15 @@ my-global-icon[iconName=external-link] {}}- input[type=text],- input[type=password],- input[type=email],+ input[type="text"],+ input[type="password"],+ input[type="email"],textarea,.peertube-select-container {flex-grow: 1;}- .caption input[type=text] {+ .caption input[type="text"] {width: unset !important;flex-grow: 1;}diff --git a/client/src/sass/primeng-custom.scss b/client/src/sass/primeng-custom.scssdeleted file mode 100644index 9af6f2153c..0000000000--- a/client/src/sass/primeng-custom.scss+++ /dev/null@@ -1,1392 +0,0 @@-@use "_variables" as *;-@use "_mixins" as *;-@use "_icons" as *;--$hover-bg: pvar(--bg-secondary-400);-$hover-bg-2: pvar(--bg-secondary-350);--/* stylelint-disable */-@import "primeng/resources/primeng.css";--// Override primeng style we don't want-input[type="button"] {- border-radius: inherit;-}--p-table .p-datatable-header .caption {- margin-bottom: 1rem;-}--// Taken from old nova light theme--body .p-disabled {- opacity: 0.5;-}--// Checkbox-body .p-checkbox {- display: inline-block;- vertical-align: middle;- margin: 0;- width: 20px;- height: 20px;-}-body .p-checkbox .p-checkbox-box {- border: 1px solid #a6a6a6;- background-color: #ffffff;- width: 20px;- height: 20px;- text-align: center;- border-radius: 3px;- transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;-}-body .p-checkbox .p-checkbox-box:not(.p-disabled):hover {- border-color: #212121;-}-body .p-checkbox .p-checkbox-box .p-checkbox-icon {- overflow: hidden;- position: relative;- font-size: 18px;-}--// Paginator-body .p-paginator {- background-color: #f4f4f4;- border: 1px solid #c8c8c8;- padding: 0;-}-body .p-paginator .p-paginator-first,-body .p-paginator .p-paginator-prev,-body .p-paginator .p-paginator-next,-body .p-paginator .p-paginator-last {- color: pvar(--fg-300);- height: 2.286em;- min-width: 2.286em;- border: 0 none;- line-height: 2.286em;- padding: 0;- margin: 0;- vertical-align: top;- transition: box-shadow 0.2s;- border-radius: 0;-}-body .p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover,-body .p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover,-body .p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover,-body .p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover {- background-color: $hover-bg;- color: pvar(--fg);-}-body .p-paginator .p-paginator-first:focus,-body .p-paginator .p-paginator-prev:focus,-body .p-paginator .p-paginator-next:focus,-body .p-paginator .p-paginator-last:focus {- outline: 0 none;- outline-offset: 0;- box-shadow: $focus-box-shadow-form;-}-body .p-paginator .p-paginator-current {- color: pvar(--fg);- height: 2.286em;- min-width: 2.286em;- line-height: 2.286em;-}-body .p-paginator .p-dropdown .p-dropdown-trigger,-body .p-paginator .p-dropdown .p-dropdown-label {- color: pvar(--fg-300);-}-body .p-paginator .p-dropdown:hover .p-dropdown-trigger,-body .p-paginator .p-dropdown:hover .p-dropdown-label {- color: pvar(--fg);-}-body .p-paginator .p-paginator-first:before {- position: relative;- top: 1px;-}-body .p-paginator .p-paginator-prev:before {- position: relative;- top: 1px;-}-body .p-paginator .p-paginator-next:before {- position: relative;- top: 1px;-}-body .p-paginator .p-paginator-last:before {- position: relative;- top: 1px;-}-body .p-paginator .p-paginator-pages {- vertical-align: top;- display: inline-block;- padding: 0;-}-body .p-paginator .p-paginator-pages .p-paginator-page {- color: pvar(--fg-300);- height: 2.286em;- min-width: 2.286em;- border: 0 none;- line-height: 2.286em;- padding: 0;- margin: 0;- vertical-align: top;- transition: box-shadow 0.2s;- border-radius: 0;-}-body .p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover {- background-color: $hover-bg;- color: pvar(--fg);-}-body .p-paginator .p-paginator-pages .p-paginator-page:focus {- outline: 0 none;- outline-offset: 0;- box-shadow: $focus-box-shadow-form;-}-body .p-paginator .p-dropdown {- @include margin-left(0.5em);-- height: 2.286em;- min-width: auto;-}--// Dropdown--body .p-dropdown {- background: pvar(--input-bg);- border: 1px solid pvar(--input-border-color);- transition: border-color 0.2s, box-shadow 0.2s;- border-radius: pvar(--input-border-radius);-}-body .p-dropdown:not(.p-disabled):hover {- border-color: pvar(--input-border-color);-}-body .p-dropdown:not(.p-disabled).p-focus {- outline: 0 none;- outline-offset: 0;- box-shadow: $focus-box-shadow-form;- border-color: pvar(--input-border-color);-}-body .p-dropdown.p-dropdown-clearable .p-dropdown-label {- @include padding-right(0);-}-body .p-dropdown .p-dropdown-label {- background: transparent;- border: 0 none;-}-body .p-dropdown .p-dropdown-label.p-placeholder {- color: pvar(--input-placeholder);-}-.p-dropdown .p-dropdown-label:focus,-.p-dropdown .p-dropdown-label:enabled:focus {- outline: 0 none;- box-shadow: none;-}--body .p-dropdown .p-dropdown-trigger {- background-color: transparent;- width: 2rem;- border-top-right-radius: 6px;- border-bottom-right-radius: 6px;- color: pvar(--fg-300);-}-body .p-dropdown .p-dropdown-clear-icon {- color: pvar(--fg-300);- right: 2rem;-}-body .p-dropdown.p-dropdown-clearable .p-dropdown-label {- @include padding-right(4em);-}-body .p-dropdown-panel {- background-color: pvar(--bg);- border: 1px solid pvar(--input-border-color);- border-radius: 6px;- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);-}-.p-dropdown-panel .p-dropdown-header {- padding: 0.429em 0.857em 0.429em 0.857em;- border-bottom: 1px solid pvar(--primary-100);- color: pvar(--fg);- background-color: pvar(--bg);- margin: 0;-}-.p-dropdown-panel .p-dropdown-header .p-dropdown-filter {- @include padding-right(2em);-- width: 100%;-}-.p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon {- top: 50%;- margin-top: -0.5em;- right: 1.357em;- color: pvar(--input-fg);-}-body .p-dropdown-panel .p-dropdown-items {- padding: 0;- margin: 0;-}-body .p-dropdown-panel .p-dropdown-items .p-dropdown-item {- margin: 0;- padding: 8px 16px;- border: 0 none;- color: pvar(--fg);- background-color: transparent;- -moz-border-radius: 0;- -webkit-border-radius: 0;- border-radius: 0;-}-.p-dropdown-panel .p-dropdown-items .p-dropdown-item:first-child {- margin-top: 0;-}-.p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight {- color: pvar(--on-primary);- background: pvar(--primary);-- .muted {- color: pvar(--on-primary) !important;- }-}-.p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight.p-focus {- background: pvar(--primary);-}-.p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled).p-focus {- color: pvar(--fg);- background: pvar(--bg-secondary-500);-}-.p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover {- color: pvar(--fg);- background: $hover-bg;-}-.p-dropdown-panel .p-dropdown-items .p-dropdown-item-group {- margin: 0;- padding: 0.857rem;- color: pvar(--fg);- background: pvar(--bg-secondary-500);- font-weight: $font-semibold;-}-.p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message {- padding: 8px 16px;- color: pvar(--fg);- background: transparent;-}--// p-toast-body .p-toast .p-toast-message {- box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);- margin: 0 0 1em 0;-}--// p-calendar-body .p-datepicker {- padding: 0.857em;- min-width: 20em;- background-color: pvar(--bg-secondary-400);- color: pvar(--fg);- border: 1px solid $separator-border-color;-}--body .p-datepicker:not(.p-datepicker-inline) {- border: 1px solid #c8c8c8;- box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);-}-body .p-datepicker:not(.p-disabled) .p-datepicker-header .p-datepicker-prev:focus,-body .p-datepicker:not(.p-disabled) .p-datepicker-header .p-datepicker-next:focus {- outline: 0 none;- outline-offset: 0;- box-shadow: $focus-box-shadow-form;-}-body .p-datepicker .p-datepicker-header {- padding: 0.429em 0.857em 0.429em 0.857em;- background-color: pvar(--bg-secondary-400);- color: pvar(--fg);- -moz-border-radius: 0;- -webkit-border-radius: 0;- border-radius: 0;-}-body .p-datepicker .p-datepicker-header .p-datepicker-prev,-body .p-datepicker .p-datepicker-header .p-datepicker-next {- cursor: pointer;- top: 0;- color: pvar(--fg-300);- transition: color 0.2s, box-shadow 0.2s;-}-body .p-datepicker .p-datepicker-header .p-datepicker-title {- margin: 0;- padding: 0;- line-height: 1;-}-body .p-datepicker .p-datepicker-header .p-datepicker-title select {- margin-top: -0.35em;- margin-bottom: 0;- transition: color 0.2s, box-shadow 0.2s;-}-body .p-datepicker .p-datepicker-header .p-datepicker-title select:focus {- outline: 0 none;- outline-offset: 0;- box-shadow: $focus-box-shadow-form;-}-body .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month {- @include margin-right(0.5rem);-}-body .p-datepicker table {- font-size: 14px;- margin: 0.857em 0 0 0;-}-body .p-datepicker table th {- padding: 0.5em;-}-body .p-datepicker table th.p-datepicker-weekheader {- border-right: 1px solid $separator-border-color;-}-body .p-datepicker table td {- padding: 0.5em;-}-body .p-datepicker table td > a,-body .p-datepicker table td > span {- display: block;- text-align: center;- color: pvar(--fg);- padding: 0.5em;- transition: box-shadow 0.2s;- border-radius: 3px;-}-body .p-datepicker table td > a.p-highlight,-body .p-datepicker table td > span.p-highlight {- color: pvar(--on-primary);- background-color: pvar(--primary);-}-body .p-datepicker table td > a {- cursor: pointer;-}-body .p-datepicker table td > a:focus {- outline: 0 none;- outline-offset: 0;- box-shadow: $focus-box-shadow-form;-}-body .p-datepicker table td.p-datepicker-today > a,-body .p-datepicker table td.p-datepicker-today > span {- background-color: pvar(--bg-secondary-600);- color: pvar(--fg);-}-body .p-datepicker table td.p-datepicker-today > a.p-highlight,-body .p-datepicker table td.p-datepicker-today > span.p-highlight {- color: pvar(--on-primary);- background-color: pvar(--primary);-}-body .p-datepicker table td.p-datepicker-weeknumber {- border-right: 1px solid #a6a6a6;-}-body .p-datepicker .p-datepicker-buttonbar {- border-top: 1px solid #d8dae2;-}-body .p-datepicker .p-timepicker {- border: 0 none;- border-top: 1px solid #d8dae2;- padding: 0.857em;-}-body .p-datepicker .p-timepicker a {- color: pvar(--fg);- font-size: 1.286em;-}-body .p-datepicker .p-timepicker a:hover {- color: pvar(--primary);-}-body .p-datepicker .p-timepicker span {- font-size: 1.286em;-}-body .p-datepicker .p-monthpicker .p-monthpicker-month {- color: pvar(--fg);-}-body .p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight {- color: pvar(--on-primary);- background-color: pvar(--primary);-}-body .p-datepicker.p-datepicker-timeonly {- padding: 0;-}-body .p-datepicker.p-datepicker-timeonly .p-timepicker {- border-top: 0 none;-}-body .p-datepicker.p-datepicker-multiple-month .p-datepicker-group {- @include padding-right(0.857em);- @include padding-left(0.857em);-- border-right: 1px solid #d8dae2;- padding-top: 0;- padding-bottom: 0;-}-body .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child {- @include padding-left(0);-}-body .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child {- @include padding-right(0);- border-right: 0 none;-}-body .p-calendar.p-calendar-w-btn .p-inputtext {- border-top-right-radius: 0;- border-bottom-right-radius: 0;- border-right: 0 none;-}-body .p-calendar.p-calendar-w-btn .p-inputtext:enabled:hover:not(.p-error),-body .p-calendar.p-calendar-w-btn .p-inputtext:enabled:focus:not(.p-error) {- border-right: 0 none;-}-body .p-calendar.p-calendar-w-btn .p-datepicker-trigger.p-button {- width: 2.357em;- border-top-left-radius: 0;- border-bottom-left-radius: 0;-}-body .ui-fluid .p-calendar.p-calendar-w-btn input.p-inputtext {- width: calc(100% - 2.357em);-}-body p-calendar.ng-dirty.ng-invalid > .p-calendar > .p-inputtext {- border: 1px solid #a80000;-}-body .p-timepicker .p-separator {- @include margin-left(0);- min-width: 0.75rem;-}--// auto complete-body .p-autocomplete .p-autocomplete-input {- padding: 0.429em;-}-body .p-autocomplete-panel {- padding: 0;- border: 1px solid #c8c8c8;- background-color: #ffffff;- box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);-}-body .p-autocomplete-panel .p-autocomplete-items {- padding: 0;-}-body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item {- margin: 0;- padding: 0.429em 0.857em;- border: 0 none;- color: pvar(--fg);- background-color: transparent;- border-radius: 0;-}-body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight,-body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover {- color: pvar(--on-primary);- background-color: pvar(--primary);-}-body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-group {- padding: 0.429em 0.857em;- background-color: #d8dae2;- color: pvar(--fg);-}-body p-autocomplete.ng-dirty.ng-invalid > .p-autocomplete > .p-inputtext {- border: 1px solid #a80000;-}--//chips--.p-chips:not(.p-disabled):hover .p-chips-multiple-container {- border-color: pvar(--input-border-color);-}-.p-chips:not(.p-disabled).p-focus .p-chips-multiple-container {- outline: 0 none;- outline-offset: 0;- box-shadow: $focus-box-shadow-form;-}-.p-chips .p-chips-multiple-container {- padding: pvar(--input-y-padding) pvar(--input-x-padding);- gap: 0.25rem;-}-.p-chips .p-chips-multiple-container .p-chips-token {- padding: 2px 15px;- margin-right: 0.5rem;- background: pvar(--input-bg-550);- color: pvar(--fg);- border-radius: 4px;-}-.p-chips .p-chips-multiple-container .p-chips-token.p-focus {- background: pvar(--input-bg-600);- color: pvar(--fg);-}-.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {- margin-left: 0.5rem;-}-.p-chips .p-chips-multiple-container .p-chips-input-token {- padding: 3px 0;-}-.p-chips .p-chips-multiple-container .p-chips-input-token input {- color: pvar(--input-fg);- padding: 0;- margin: 0;-}--p-chips.ng-dirty.ng-invalid > .p-chips > .p-inputtext {- border-color: pvar(--red);-}--p-chips.p-chips-clearable .p-inputtext {- padding-right: 1.429rem;-}-p-chips.p-chips-clearable .p-chips-clear-icon {- color: pvar(--fg-300);- right: 0.429rem;-}--// multiselect--.p-multiselect {- background: pvar(--input-bg);- border: 1px solid pvar(--input-border-color);- transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;- border-radius: pvar(--input-border-radius);- font-size: 16px;-}-.p-multiselect:not(.p-disabled):hover {- border-color: pvar(--input-border-color);-}-.p-multiselect:not(.p-disabled).p-focus {- outline: 0 none;- outline-offset: 0;- box-shadow: $focus-box-shadow-form;-}-.p-multiselect .p-multiselect-label {- padding: pvar(--input-y-padding) pvar(--input-x-padding);- line-height: 1.5rem;- font-weight: normal;- transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;-}-.p-multiselect .p-multiselect-label.p-placeholder {- color: pvar(--input-placeholder);- font-size: 14px;-}-.p-multiselect.p-multiselect-chip .p-multiselect-token {- padding: 2px 7px;- margin-right: 0.25rem;- background: pvar(--bg-secondary-500);- color: pvar(--fg);- border-radius: pvar(--input-border-radius);-}-.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {- margin-left: 0.5rem;-}-.p-multiselect .p-multiselect-trigger {- background: transparent;- width: 2.357rem;- border-top-right-radius: 3px;- border-bottom-right-radius: 3px;-}-.p-multiselect.p-variant-filled {- background: pvar(--bg-secondary-500);-}-.p-multiselect.p-variant-filled:not(.p-disabled):hover {- background-color: $hover-bg;-}-.p-multiselect.p-variant-filled:not(.p-disabled).p-focus {- background-color: pvar(--bg-secondary-500);-}--.p-inputwrapper-filled .p-multiselect.p-multiselect-chip .p-multiselect-label {- padding: pvar(--input-y-padding) pvar(--input-x-padding);-}--.p-multiselect-clearable .p-multiselect-label-container {- padding-right: 1.429rem;-}-.p-multiselect-clearable .p-multiselect-clear-icon {- color: pvar(--fg-300);- right: 2.357rem;-}--.p-multiselect-panel {- background: pvar(--bg);- color: pvar(--fg);- border: 1px solid pvar(--input-border-color);- border-radius: pvar(--input-border-radius);- box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);-}-.p-multiselect-panel .p-multiselect-header {- padding: 0.429rem 0.857rem;- border-bottom: 1px solid pvar(--input-border-color);- color: pvar(--fg);- background: pvar(--bg);- margin: 0;- border-top-right-radius: 3px;- border-top-left-radius: 3px;-}-.p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-inputtext {- padding-right: 1.429rem;-}-.p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter-icon {- right: 0.429rem;- color: pvar(--fg-300);-}-.p-multiselect-panel .p-multiselect-header .p-checkbox {- margin-right: 0.5rem;-}-.p-multiselect-panel .p-multiselect-header .p-multiselect-close {- margin-left: 0.5rem;- width: 2rem;- height: 2rem;- color: pvar(--fg-300);- border: 0 none;- background: transparent;- border-radius: 50%;- transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;-}-.p-multiselect-panel .p-multiselect-header .p-multiselect-close:enabled:hover {- color: pvar(--fg-400);- border-color: transparent;- background: transparent;-}-.p-multiselect-panel .p-multiselect-header .p-multiselect-close:focus-visible {- outline: 0 none;- outline-offset: 0;- box-shadow: $focus-box-shadow-form;-}-.p-multiselect-panel .p-multiselect-items {- padding: 0;-}-.p-multiselect-panel .p-multiselect-items .p-multiselect-item {- margin: 0;- padding: pvar(--input-y-padding) 14px;- border: 0 none;- color: pvar(--fg);- background: transparent;- transition: background-color 0.2s, box-shadow 0.2s;- border-radius: 0;- line-height: normal;-}-.p-multiselect-panel .p-multiselect-items .p-multiselect-item:first-child {- margin-top: 0;-}-.p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight {- color: pvar(--on-primary);- background: pvar(--primary);-}-.p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight.p-focus {- background: pvar(--primary);-}-.p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled).p-focus {- color: pvar(--fg);- background: pvar(--bg-secondary-500);-}-.p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled):hover {- color: pvar(--fg);- background: $hover-bg;-}-.p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox {- margin-right: 0.5rem;-}-.p-multiselect-panel .p-multiselect-items .p-multiselect-item-group {- margin: 0;- padding: 0.857rem;- color: pvar(--fg);- background-color: pvar(--bg-secondary-500);- font-weight: $font-semibold;-}-.p-multiselect-panel .p-multiselect-items .p-multiselect-empty-message {- padding: 0.429rem 0.857rem;- color: pvar(--fg);- background: transparent;-}--.p-input-filled .p-multiselect {- background-color: pvar(--bg-secondary-500);-}-.p-input-filled .p-multiselect:not(.p-disabled):hover {- background-color: pvar(--bg-secondary-500);-}-.p-input-filled .p-multiselect:not(.p-disabled).p-focus {- background-color: pvar(--bg-secondary-500);-}--p-multiselect.ng-dirty.ng-invalid > .p-multiselect {- border-color: pvar(--red);-}--// input text (used by p-chips)--.p-inputtext {- font-size: 16px;- color: pvar(--input-fg);- background: pvar(--input-bg);- padding: pvar(--input-y-padding) pvar(--input-x-padding);- border: 1px solid pvar(--input-border-color);- transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;- appearance: none;- border-radius: pvar(--input-border-radius);-}-.p-inputtext:enabled:hover {- border-color: pvar(--input-border-color);-}-.p-inputtext:enabled:focus {- outline: 0 none;- outline-offset: 0;- box-shadow: $focus-box-shadow-form;-}-.p-inputtext.ng-dirty.ng-invalid {- border-color: pvar(--red);-}-.p-inputtext.p-variant-filled {- background-color: #f4f4f4;-}-.p-inputtext.p-variant-filled:enabled:hover {- background-color: #f4f4f4;-}-.p-inputtext.p-variant-filled:enabled:focus {- background-color: #f4f4f4;-}-.p-inputtext.p-inputtext-sm {- font-size: 0.875rem;- padding: 0.375375rem 0.375375rem;-}-.p-inputtext.p-inputtext-lg {- font-size: 1.25rem;- padding: 0.53625rem 0.53625rem;-}--.p-input-filled .p-inputtext {- background-color: #f4f4f4;-}-.p-input-filled .p-inputtext:enabled:hover {- background-color: #f4f4f4;-}-.p-input-filled .p-inputtext:enabled:focus {- background-color: #f4f4f4;-}--// ----------------------------------------------------------------------------// PeerTube customizations-// -----------------------------------------------------------------------------p-table {- table {- table-layout: fixed;- }-- .p-datatable-header {- border: none !important;- background-color: pvar(--bg) !important;-- .caption {- min-height: 40px;- width: 100%;- display: inline-flex;- align-items: center;- flex-wrap: wrap;- gap: 0.5rem;-- .left-buttons {- @include font-size(22px);-- color: pvar(--fg-300);- }- }- }-- th {- background-color: pvar(--bg) !important;- outline: 0;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;- }-- td,- th {- font-family: $main-fonts;- font-size: 15px;- color: pvar(--fg) !important;- }-- td {- @include padding-left(1rem !important);-- &.expand-cell {- padding: 10px 1rem;- }- }-- tr {- outline: 0;- background-color: pvar(--bg) !important;- height: 46px;-- &.p-highlight {- background-color: pvar(--bg-secondary-400) !important;-- td,- td > a {- color: pvar(--fg) !important;- }- }-- &:focus-visible {- border: 1px solid pvar(--fg) !important;- }- }-- .p-datatable-tbody {- tr {- &:hover {- background-color: $hover-bg-2 !important;- }-- td {- border: none !important;- white-space: normal !important;- }-- &:first-child td {- border-top: none !important;- }-- &:last-child td {- border-bottom: none !important;- }-- &:focus + tr > td,- &:focus > td {- box-shadow: none !important;- }- }-- .expander {- cursor: pointer;- position: relative;- top: 1px;- }- }-- th {- @include padding-left(1rem);- @include padding-right(0.25rem);-- padding-top: 5px !important;- padding-bottom: 5px !important;-- border: none !important;- border-bottom: 1px solid !important;- border-color: pvar(--bg-secondary-400) !important;- text-align: start !important;- font-weight: $font-semibold !important;- color: pvar(--fg) !important;-- &.p-sortable-column:hover {- background-color: $hover-bg !important;- }-- &.p-sortable-column:focus-visible {- border: 1px solid pvar(--fg) !important;- }-- &.p-highlight {- background-color: pvar(--bg-secondary-400) !important;-- .pi-sort-amount-up-alt,- .pi-sort-amount-down {- display: inline-block;- position: relative;- top: -1px;- color: pvar(--fg) !important;- }-- .pi-sort-amount-up-alt {- @include arrow-up(5px);- }-- .pi-sort-amount-down {- @include arrow-down(5px);- }- }- }-- .checkbox-cell {- @include padding-left(0.25rem !important);- @include padding-right(0 !important);-- @media screen and (max-width: $mobile-view) {- @include padding-left(0 !important);- }- }-- .action-cell {- width: 250px !important;-- .dropdown-root,- my-edit-button,- my-delete-button,- my-button {- display: inline-block !important;- max-width: 100%;-- @include margin-left(5px);-- &:first-child {- @include margin-left(0);- }- }- }-- p-paginator {- .p-paginator {- background-color: pvar(--bg) !important;- position: relative;- border: none;- border-top: 1px solid !important;- border-color: pvar(--bg-secondary-400) !important;- height: 40px;- display: flex;- justify-content: center;- align-items: center;-- p-dropdown {- .p-dropdown {- @include padding-left(0.5rem);-- align-items: center;- }-- &.p-focus {- box-shadow: $focus-box-shadow-form;- }-- .p-label {- color: pvar(--fg-300);- }- }-- .p-dropdown,- .p-dropdown-trigger {- color: pvar(--fg);- background-color: pvar(--bg);- }-- .p-paginator-current {- color: pvar(--fg-300);- overflow: visible;- }-- .p-paginator-first {- margin-left: auto;- }-- .p-paginator-last {- margin-right: auto;- }-- .p-paginator-first,- .p-paginator-prev,- .p-paginator-next,- .p-paginator-last {- padding: 5px 2px;- height: 100%;- outline: none;- color: pvar(--fg);-- &.focus-within,- &:focus {- box-shadow: $focus-box-shadow-form;- }-- &.p-disabled:hover {- background-color: #fff !important;- }-- .p-paginator-icon {- width: 18px;- height: 18px;- }-- &.p-paginator-prev {- @include margin-right(10px);- }-- &.p-paginator-next {- @include margin-left(10px);- }- }-- .p-paginator-pages {- height: auto !important;-- .p-paginator-page {- color: pvar(--fg) !important;- font-weight: $font-semibold !important;- margin: 0 5px !important;- outline: 0 !important;- border-radius: 3px !important;- padding: 5px 2px !important;- height: auto !important;- line-height: initial !important;-- &.focus-within,- &:focus {- box-shadow: #{$focus-box-shadow-form} !important;- }-- &.p-highlight {- &,- &:hover,- &:active,- &:focus {- color: pvar(--fg) !important;- background-color: pvar(--bg-secondary-500) !important;- }- }- }- }- }- }-- .pt-badge {- text-transform: uppercase;- }-}--p-table:not(.cell-wrap) {- td:not(.action-cell):not(.expand-cell):not(.checkbox-cell) {- overflow: hidden !important;- text-overflow: ellipsis !important;- white-space: nowrap !important;- }-}--// overflow data table-p-table {- .p-datatable-wrapper {- overflow-x: auto;- max-width: 100%;-- table {- width: 100%;- }- }-- @media screen and (max-width: $small-view) {- .p-datatable-wrapper {- table {- width: auto;- }- }-- p-paginator {- .p-paginator-current {- display: none !important;- }- }- }-- @media screen and (max-width: $mobile-view) {- p-paginator {- .p-paginator-pages > .p-paginator-page:not(.p-highlight) {- display: none;- }- }- }-}--@media screen and (max-width: $medium-view) {- p-table {- td {- &.expand-cell {- padding: 5px;- }- }- }-}--@media screen and (max-width: $mobile-view) {- p-table {- th,- td {- @include padding-left(0.5rem !important);- }-- .p-datatable-header {- .caption > div {- width: 100%;- padding: 0 !important;- }- }- }-}--p-tablecheckbox:hover div .p-checkbox-box {- box-shadow: 0 0 0 0.1rem rgba(87, 85, 217, 0.2);-}--.p-checkbox {- &,- .p-checkbox-box {- width: 18px !important;- height: 18px !important;- }-- .p-checkbox-box {- &.p-highlight {- color: pvar(--on-primary) !important;- background-color: pvar(--primary) !important;- border-color: pvar(--primary) !important;- }-- &.p-focus {- border: 2px solid pvar(--fg) !important;- }- }-}--p-toast {- .p-toast {- width: auto;- max-width: 300px;- min-width: 200px;-- .p-toast-icon-close {- color: pvar(--fg-300);- position: absolute;- right: 5px;- top: 5px;- width: 18px;- height: 18px;- background: url("../assets/images/feather/x.svg") no-repeat;- background-size: contain;- }- }-- .p-toast-message {- font-family: $main-fonts;- background-color: pvar(--bg) !important;- color: pvar(--fg) !important;- border-radius: 5px;- box-sizing: border-box;- border: 1px solid #EBEEF5 !important;- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);- overflow: hidden;-- .notification-block {- display: flex;- align-items: center;- width: 100%;- padding: 10px;-- .message {- @include margin-left(10px);-- flex-grow: 1;-- h3 {- font-size: 21px;- }-- p {- @include peertube-word-wrap;-- margin-bottom: 0;- }- }- }- }-- .p-toast-message-success my-global-icon {- color: #8BC34A !important;- }-- .p-toast-message-error my-global-icon {- color: #F44336 !important;- }-- .p-toast-message-warn my-global-icon {- color: #F1680D !important;- }-- .p-toast-message-info my-global-icon {- color: #03A9F4 !important;- }-}--p-chips {- .p-input-wrapper {- display: flex;- }-- .p-chips-token-label {- line-height: normal;- }-- .p-chips-input-token {- line-height: normal;- }-- .p-chips-multiple-container {- padding: 2px 20px !important;- margin-block-end: 0 !important;- width: 100% !important;- }-- .p-chips-input-token {- flex-basis: 100px;- }-}--.p-multiselect {- width: 100%;-- &.p-multiselect-chip .p-multiselect-token {- line-height: normal;- }-}--.p-dropdown-clear-icon,-.p-multiselect-clear-icon {- margin-top: -0.5em;-}--.p-dropdown {- width: 100%;- font-size: 15px;-- .p-dropdown-label {- line-height: normal;- min-height: 29px;- }-}--// -----------------------------------------------------------------------------.new-p-table {- margin-bottom: 0.5rem;- display: block;-- .column-toggle {- .tertiary-button:not(.active) {- color: pvar(--fg-300) !important;- }- }-- &.loading table {- opacity: 0.5;- }-- thead {- tr {- height: 1.5rem;- }- }-- th {- font-size: 14px !important;- color: pvar(--fg-200) !important;- font-weight: normal !important;-- &.p-highlight {- background-color: pvar(--bg) !important;- }-- .column-toggle {- .dropdown > my-button::after {- display: none;- }- }- }-- th,- .p-paginator {- border-color: pvar(--bg-secondary-450) !important;- }-- .p-sortable-column-icon {- display: inline-block;- position: relative;- top: -1px;-- .tertiary-button:not(.active) {- color: pvar(--secondary-icon-color) !important;- }- }-- p-paginator {- .p-paginator {- padding-top: 1.5rem;- margin-top: 0.75rem;- height: auto !important;-- .p-paginator-pages {- .p-paginator-page {- font-weight: normal !important;- height: 34px !important;- width: 34px !important;- border-radius: 100% !important;-- &.p-highlight {- &,- &:hover,- &:active,- &:focus {- background-color: pvar(--bg-secondary-450) !important;- color: pvar(--fg) !important;- font-weight: $font-bold !important;- }- }- }- }-- .p-dropdown,- .p-dropdown-trigger {- color: pvar(--input-fg);- background-color: pvar(--input-bg);- }-- .p-paginator-element .p-icon-wrapper {- color: pvar(--fg-300) !important;- }- }- }-- .p-paginator-right-content {- margin-left: 0;- margin-right: 0;- color: pvar(--fg-300);-- @include margin-left(1rem);- }-- .action-cell {- width: 0 !important;-- @include padding-right(0.25rem);- }-}--.sticky-p-table {- table {- table-layout: auto;- }-- @media screen and (min-width: $small-view) {- .action-cell,- .action-head {- position: sticky;- right: 0;- padding-right: 0.5rem;- background-color: inherit;- }-- .action-cell {- z-index: 10;- }- }-- thead th {- position: sticky;- top: 0;- z-index: 20;- background-color: pvar(--bg);- }-- .p-datatable,- .p-datatable-wrapper {- max-height: inherit;- }-- .p-datatable-wrapper {- overflow: auto;- }-}diff --git a/client/src/sass/primeng.scss b/client/src/sass/primeng.scssnew file mode 100644index 0000000000..c66424112e--- /dev/null+++ b/client/src/sass/primeng.scss@@ -0,0 +1,366 @@+@use "_variables" as *;+@use "_mixins" as *;++.p-select-list .p-select-option:hover {+ color: pvar(--fg);+ background: pvar(--bg-secondary-400);+}++// ---------------------------------------------------------------------------+// Input chips+// ---------------------------------------------------------------------------++.p-chip:has(.p-chip-remove-icon) {+ // TODO: remove when https://github.com/primefaces/primeng/pull/18344 is released+ padding-inline-end: var(--p-chip-padding-x) !important;+}++.p-inputchips-input {+ // TODO: fix in upstream?+ gap: 1rem !important;+}++.p-inputchips-input:has(.p-inputchips-chip) {+ padding-left: pvar(--input-x-padding) !important;+ padding-right: pvar(--input-x-padding) !important;+}++.p-inputchips.p-input-wrapper {+ width: 100%;+}++.p-chip-label {+ text-transform: uppercase;+}++// ---------------------------------------------------------------------------+// Multi Select+// ---------------------------------------------------------------------------++p-multiselect-item {+ line-height: 1;+}++// ---------------------------------------------------------------------------+// Checkbox+// ---------------------------------------------------------------------------++.p-checkbox.p-disabled .p-checkbox-box {+ opacity: 0.6;+}++.p-checkbox {+ vertical-align: middle !important;+}++// ---------------------------------------------------------------------------+// Toast (notifications)+// ---------------------------------------------------------------------------++p-toast {+ .p-toast {+ width: auto;+ max-width: 300px;+ min-width: 200px;++ .p-toast-icon-close {+ color: pvar(--fg-300);+ position: absolute;+ right: 5px;+ top: 5px;+ width: 18px;+ height: 18px;+ background: url("../assets/images/feather/x.svg") no-repeat;+ background-size: contain;+ }+ }++ .p-toast-message {+ font-family: $main-fonts;+ background-color: pvar(--bg) !important;+ color: pvar(--fg) !important;+ border-radius: 5px;+ box-sizing: border-box;+ border: 1px solid #EBEEF5 !important;+ box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);+ overflow: hidden;++ .notification-block {+ display: flex;+ align-items: center;+ width: 100%;++ .message {+ flex-grow: 1;++ @include margin-left(10px);++ h3 {+ font-size: 21px;+ }++ p {+ margin-bottom: 0;++ @include peertube-word-wrap;+ }+ }+ }+ }++ .p-toast-message-success my-global-icon {+ color: #8BC34A !important;+ }++ .p-toast-message-error my-global-icon {+ color: #F44336 !important;+ }++ .p-toast-message-warn my-global-icon {+ color: #F1680D !important;+ }++ .p-toast-message-info my-global-icon {+ color: #03A9F4 !important;+ }+}++// ---------------------------------------------------------------------------+// Data table+// ---------------------------------------------------------------------------++p-table {+ table {+ table-layout: fixed;+ }++ th {+ @include ellipsis;+ }++ .p-datatable-table-container {+ overflow-x: auto;+ max-width: 100%;++ table {+ width: 100%;+ }+ }++ .p-datatable-header {+ .caption {+ min-height: 40px;+ width: 100%;+ display: inline-flex;+ align-items: center;+ flex-wrap: wrap;+ gap: 0.5rem;++ .left-buttons {+ color: pvar(--fg-300);++ @include font-size(22px);+ }+ }+ }++ .p-datatable-tbody {+ tr {+ &:hover {+ background-color: pvar(--bg-secondary-350);+ }+ }+ }++ td.checkbox-cell,+ th.checkbox-cell {+ @include padding-left(0.25rem !important);+ @include padding-right(0 !important);++ @media screen and (max-width: $mobile-view) {+ @include padding-left(0 !important);+ }+ }++ .action-cell {+ width: 250px !important;++ .dropdown-root,+ my-edit-button,+ my-delete-button,+ my-button {+ display: inline-block !important;+ max-width: 100%;++ @include margin-left(5px);++ &:first-child {+ @include margin-left(0);+ }+ }+ }++ .pt-badge {+ text-transform: uppercase;+ }++ p-paginator {+ .p-paginator {+ border-top: 1px solid pvar(--bg-secondary-400) !important;+ height: 40px;+ display: flex;+ justify-content: center;+ align-items: center;+ }++ .p-paginator-first {+ margin-left: auto;+ }++ .p-paginator-last {+ margin-right: auto;+ }++ .p-iconwrapper {+ color: pvar(--fg-300);+ }+ }++ @media screen and (max-width: $small-view) {+ .p-datatable-container {+ table {+ width: auto;+ }+ }++ p-paginator {+ .p-paginator-current {+ display: none !important;+ }+ }+ }++ @media screen and (max-width: $mobile-view) {+ p-paginator {+ .p-paginator-page:not(.p-paginator-page-selected) {+ display: none;+ }++ .p-paginator-rpp-dropdown {+ display: none;+ }++ .p-paginator-content-end {+ display: none;+ }+ }++ .p-datatable-header .caption > * {+ width: 100%;+ }+ }+}++p-table:not(.cell-wrap) {+ td:not(.action-cell):not(.expand-cell):not(.checkbox-cell) {+ @include ellipsis;+ }+}++p-tablecheckbox:hover div .p-checkbox-box {+ box-shadow: 0 0 0 0.1rem rgba(87, 85, 217, 0.2);+}++.new-p-table {+ margin-bottom: 0.5rem;+ display: block;++ &.loading table {+ opacity: 0.5;+ }++ .column-toggle .tertiary-button:not(.active) {+ color: pvar(--fg-300) !important;+ }++ th {+ font-size: 14px;+ padding: 5px 0.25rem 5px 1rem !important;++ .column-toggle {+ .dropdown > my-button::after {+ display: none;+ }+ }+ }++ .p-sortable-column-icon {+ display: inline-block;+ position: relative;+ top: -1px;+ vertical-align: middle;++ .tertiary-button:not(.active) {+ color: pvar(--secondary-icon-color) !important;+ }+ }++ p-paginator {+ .p-paginator {+ padding-top: 1.5rem;+ margin-top: 0.75rem;+ height: auto !important;++ .p-paginator-page-selected {+ font-weight: $font-bold !important;+ }+ }+ }++ .p-paginator-content-end {+ color: pvar(--fg-300);++ @include margin-left(0);+ }++ .action-cell {+ width: 0 !important;++ @include padding-right(0.25rem);+ }+}++.sticky-p-table {+ table {+ table-layout: auto;+ }++ @media screen and (min-width: $small-view) {+ .action-cell,+ .action-head {+ position: sticky;+ right: 0;+ padding-right: 0.5rem;+ }++ .action-cell {+ z-index: 10;+ background-color: inherit;+ }+ }++ thead th {+ position: sticky;+ top: 0;+ z-index: 20;+ }++ .p-datatable,+ .p-datatable-table-container {+ max-height: inherit;+ }++ .p-datatable-table-container {+ overflow: auto;+ }+}diff --git a/client/yarn.lock b/client/yarn.lockindex 8d4f8cd71d..a78cfdf96c 100644--- a/client/yarn.lock+++ b/client/yarn.lock@@ -1634,6 +1634,25 @@resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.8.tgz#6b79032e760a0899cd4204710beede972a3a185f"integrity sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==+"@primeng/themes@^19.1.2":+ version "19.1.2"+ resolved "https://registry.yarnpkg.com/@primeng/themes/-/themes-19.1.2.tgz#82006754acf26d7b20b78f183b629c7b74578245"+ integrity sha512-6q6jYks+S9+oqJUtsBKSAt9PdO2eUIkYyg4qGZAF2Dsp7YZ5nt4W/S5JUjxEDEjrtwUe+uDLeQr7PxNJErN4Gg==+ dependencies:+ "@primeuix/styled" "^0.3.2"++"@primeuix/styled@^0.3.2":+ version "0.3.2"+ resolved "https://registry.yarnpkg.com/@primeuix/styled/-/styled-0.3.2.tgz#a6093e81a66fc78b915b5e8d998cc73c2c47a1dc"+ integrity sha512-ColZes0+/WKqH4ob2x8DyNYf1NENpe5ZguOvx5yCLxaP8EIMVhLjWLO/3umJiDnQU4XXMLkn2mMHHw+fhTX/mw==+ dependencies:+ "@primeuix/utils" "^0.3.2"++"@primeuix/utils@^0.3.2":+ version "0.3.2"+ resolved "https://registry.yarnpkg.com/@primeuix/utils/-/utils-0.3.2.tgz#dbf92f6b5e18abe214f592a0b51bf4ca02a1f808"+ integrity sha512-B+nphqTQeq+i6JuICLdVWnDMjONome2sNz0xI65qIOyeB4EF12CoKRiCsxuZ5uKAkHi/0d1LqlQ9mIWRSdkavw==+"@promptbook/[email protected]":version "0.69.5"resolved "https://registry.yarnpkg.com/@promptbook/utils/-/utils-0.69.5.tgz#a78e49fe09001f1ae0a59c50fc2390f0c4765087"@@ -7807,11 +7826,13 @@ pretty-ms@^9.0.0:dependencies:parse-ms "^4.0.0"-primeng@^17:- version "17.18.15"- resolved "https://registry.yarnpkg.com/primeng/-/primeng-17.18.15.tgz#073a3ebc2336727aa784bcf81c9dcad8639ac328"- integrity sha512-66iKLPBxuZguebSylKbAst5V3Qz+2dbzT+oCHQnCbv4Gu4JH6WqbBJWr283HacQB1mUNGvyxgcHVVPhQbnEXvA==+primeng@^19.1.2:+ version "19.1.2"+ resolved "https://registry.yarnpkg.com/primeng/-/primeng-19.1.2.tgz#d5d1652768acf33352e7be6f057d5f771bfa3bda"+ integrity sha512-iu4lDrStBPCyYn+iSfofp/Hsv/dHVlnlsOhqFZlYTQB1o+MlVXa4PanLgHdoBr1thy3ozRkNDZHsICkUecWu0A==dependencies:+ "@primeuix/styled" "^0.3.2"+ "@primeuix/utils" "^0.3.2"tslib "^2.3.0"proc-log@^5.0.0: