@praxisui/table 1.0.0-beta.55 → 1.0.0-beta.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7497,6 +7497,16 @@ class TableRatingCellComponent {
|
|
|
7497
7497
|
const clamped = Math.max(0, Math.min(count, numeric));
|
|
7498
7498
|
return Math.round(clamped * 2) / 2;
|
|
7499
7499
|
}
|
|
7500
|
+
iconSizePx() {
|
|
7501
|
+
switch (this.size) {
|
|
7502
|
+
case 'small':
|
|
7503
|
+
return 16;
|
|
7504
|
+
case 'large':
|
|
7505
|
+
return 28;
|
|
7506
|
+
default:
|
|
7507
|
+
return 20;
|
|
7508
|
+
}
|
|
7509
|
+
}
|
|
7500
7510
|
formatValue(value) {
|
|
7501
7511
|
return Number.isInteger(value) ? String(value) : value.toFixed(1).replace(/\.0$/, '');
|
|
7502
7512
|
}
|
|
@@ -7521,7 +7531,12 @@ class TableRatingCellComponent {
|
|
|
7521
7531
|
</path>
|
|
7522
7532
|
</svg>
|
|
7523
7533
|
<span class="pfx-table-rating__fill-clip" [style.width.%]="item.fillPercent" aria-hidden="true">
|
|
7524
|
-
<svg
|
|
7534
|
+
<svg
|
|
7535
|
+
class="pfx-table-rating__svg pfx-table-rating__svg--fill"
|
|
7536
|
+
viewBox="0 0 24 24"
|
|
7537
|
+
focusable="false"
|
|
7538
|
+
[style.width.px]="iconSizePx()"
|
|
7539
|
+
[style.height.px]="iconSizePx()">
|
|
7525
7540
|
<path class="pfx-table-rating__fill" [attr.d]="starPath"></path>
|
|
7526
7541
|
</svg>
|
|
7527
7542
|
</span>
|
|
@@ -7550,7 +7565,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
|
|
|
7550
7565
|
</path>
|
|
7551
7566
|
</svg>
|
|
7552
7567
|
<span class="pfx-table-rating__fill-clip" [style.width.%]="item.fillPercent" aria-hidden="true">
|
|
7553
|
-
<svg
|
|
7568
|
+
<svg
|
|
7569
|
+
class="pfx-table-rating__svg pfx-table-rating__svg--fill"
|
|
7570
|
+
viewBox="0 0 24 24"
|
|
7571
|
+
focusable="false"
|
|
7572
|
+
[style.width.px]="iconSizePx()"
|
|
7573
|
+
[style.height.px]="iconSizePx()">
|
|
7554
7574
|
<path class="pfx-table-rating__fill" [attr.d]="starPath"></path>
|
|
7555
7575
|
</svg>
|
|
7556
7576
|
</span>
|