oasys-lib 2.46.0-rc.0 → 2.46.0
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.
- package/fesm2022/oasys-lib.mjs +13 -9
- package/fesm2022/oasys-lib.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/bloomandwild/variables.css +3 -1
- package/src/assets/bloomandwild-loyalty-tier-1/variables.css +5 -1
- package/src/assets/bloomandwild-loyalty-tier-2/variables.css +5 -1
- package/src/assets/bloomon/variables.css +3 -1
- package/src/assets/bloomon-loyalty-tier-1/variables.css +5 -1
- package/src/assets/bloomon-loyalty-tier-2/variables.css +5 -1
- package/src/assets/global/scss-breakpoints.scss +1 -1
- package/types/oasys-lib.d.ts +4 -4
- package/types/oasys-lib.d.ts.map +1 -1
package/fesm2022/oasys-lib.mjs
CHANGED
|
@@ -3549,20 +3549,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImpo
|
|
|
3549
3549
|
}] });
|
|
3550
3550
|
|
|
3551
3551
|
class ProgressBarComponent {
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3552
|
+
currentValue = 0;
|
|
3553
|
+
maxValue = 100;
|
|
3554
|
+
get percentage() {
|
|
3555
|
+
if (this.maxValue <= 0) {
|
|
3556
|
+
return 0;
|
|
3557
|
+
}
|
|
3558
|
+
const rawPercentage = (this.currentValue / this.maxValue) * 100;
|
|
3559
|
+
return Math.min(100, Math.max(0, rawPercentage));
|
|
3560
|
+
}
|
|
3555
3561
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: ProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3556
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
3562
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.18", type: ProgressBarComponent, isStandalone: true, selector: "ui-progress-bar", inputs: { currentValue: "currentValue", maxValue: "maxValue" }, ngImport: i0, template: "<div\n class=\"progress-bar\"\n role=\"progressbar\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuenow]=\"percentage\"\n>\n <div class=\"track\">\n <div class=\"bar\" [style.width.%]=\"percentage\"></div>\n </div>\n</div>\n", styles: [".progress-bar .track{width:100%;background-color:var(--oasys-component-progress-bar-color-track);border-radius:var(--oasys-radius-soften)}.progress-bar .bar{max-width:100%;height:8px;background-color:var(--oasys-component-progress-bar-color-bar);border-radius:var(--oasys-radius-soften);transition:width .8s cubic-bezier(.4,0,.2,1);animation:progress .8s cubic-bezier(.4,0,.2,1) forwards}@keyframes progress{0%{width:0%}}\n"] });
|
|
3557
3563
|
}
|
|
3558
3564
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImport: i0, type: ProgressBarComponent, decorators: [{
|
|
3559
3565
|
type: Component,
|
|
3560
|
-
args: [{ selector: 'ui-progress-bar', standalone: true, imports: [LayoutBoxComponent], template: "
|
|
3561
|
-
}], propDecorators: {
|
|
3562
|
-
type: Input
|
|
3563
|
-
}], shape: [{
|
|
3566
|
+
args: [{ selector: 'ui-progress-bar', standalone: true, imports: [LayoutBoxComponent], template: "<div\n class=\"progress-bar\"\n role=\"progressbar\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuenow]=\"percentage\"\n>\n <div class=\"track\">\n <div class=\"bar\" [style.width.%]=\"percentage\"></div>\n </div>\n</div>\n", styles: [".progress-bar .track{width:100%;background-color:var(--oasys-component-progress-bar-color-track);border-radius:var(--oasys-radius-soften)}.progress-bar .bar{max-width:100%;height:8px;background-color:var(--oasys-component-progress-bar-color-bar);border-radius:var(--oasys-radius-soften);transition:width .8s cubic-bezier(.4,0,.2,1);animation:progress .8s cubic-bezier(.4,0,.2,1) forwards}@keyframes progress{0%{width:0%}}\n"] }]
|
|
3567
|
+
}], propDecorators: { currentValue: [{
|
|
3564
3568
|
type: Input
|
|
3565
|
-
}],
|
|
3569
|
+
}], maxValue: [{
|
|
3566
3570
|
type: Input
|
|
3567
3571
|
}] } });
|
|
3568
3572
|
|