@seniorsistemas/angular-components 16.3.10 → 16.4.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/bundles/seniorsistemas-angular-components.umd.js +63 -0
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/progressbar/index.d.ts +3 -0
- package/components/progressbar/models/index.d.ts +1 -0
- package/components/progressbar/models/progressbar-colors.d.ts +6 -0
- package/components/progressbar/progressbar.component.d.ts +11 -0
- package/components/progressbar/progressbar.module.d.ts +2 -0
- package/esm2015/components/progressbar/index.js +4 -0
- package/esm2015/components/progressbar/models/index.js +2 -0
- package/esm2015/components/progressbar/models/progressbar-colors.js +8 -0
- package/esm2015/components/progressbar/progressbar.component.js +42 -0
- package/esm2015/components/progressbar/progressbar.module.js +15 -0
- package/esm2015/public-api.js +2 -1
- package/esm5/components/progressbar/index.js +4 -0
- package/esm5/components/progressbar/models/index.js +2 -0
- package/esm5/components/progressbar/models/progressbar-colors.js +8 -0
- package/esm5/components/progressbar/progressbar.component.js +43 -0
- package/esm5/components/progressbar/progressbar.module.js +18 -0
- package/esm5/public-api.js +2 -1
- package/fesm2015/seniorsistemas-angular-components.js +60 -3
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +64 -3
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -10570,6 +10570,67 @@
|
|
|
10570
10570
|
return CodeEditorModule;
|
|
10571
10571
|
}());
|
|
10572
10572
|
|
|
10573
|
+
var ProgressBarComponent = /** @class */ (function () {
|
|
10574
|
+
function ProgressBarComponent() {
|
|
10575
|
+
this.showValue = true;
|
|
10576
|
+
}
|
|
10577
|
+
ProgressBarComponent.prototype.ngOnInit = function () {
|
|
10578
|
+
this.validateValues();
|
|
10579
|
+
};
|
|
10580
|
+
ProgressBarComponent.prototype.validateValues = function () {
|
|
10581
|
+
if (this.value < 0 || this.value > 100) {
|
|
10582
|
+
throw new Error("Invalid value for value");
|
|
10583
|
+
}
|
|
10584
|
+
if (this.targetValue < 0 || this.targetValue > 100) {
|
|
10585
|
+
throw new Error("Invalid value for targetValue");
|
|
10586
|
+
}
|
|
10587
|
+
};
|
|
10588
|
+
__decorate([
|
|
10589
|
+
core.Input()
|
|
10590
|
+
], ProgressBarComponent.prototype, "value", void 0);
|
|
10591
|
+
__decorate([
|
|
10592
|
+
core.Input()
|
|
10593
|
+
], ProgressBarComponent.prototype, "targetValue", void 0);
|
|
10594
|
+
__decorate([
|
|
10595
|
+
core.Input()
|
|
10596
|
+
], ProgressBarComponent.prototype, "targetLabel", void 0);
|
|
10597
|
+
__decorate([
|
|
10598
|
+
core.Input()
|
|
10599
|
+
], ProgressBarComponent.prototype, "activeColor", void 0);
|
|
10600
|
+
__decorate([
|
|
10601
|
+
core.Input()
|
|
10602
|
+
], ProgressBarComponent.prototype, "showValue", void 0);
|
|
10603
|
+
ProgressBarComponent = __decorate([
|
|
10604
|
+
core.Component({
|
|
10605
|
+
selector: "s-progressbar",
|
|
10606
|
+
template: "<div class=\"progress-bar\">\n <div class=\"progress-bar-all\">\n <div\n class=\"progress-bar-active\"\n [ngClass]=\"{\n 'progress-bar-active--blue' : activeColor == 'blue',\n 'progress-bar-active--green': activeColor == 'green',\n 'progress-bar-active--red': activeColor == 'red',\n 'progress-bar-active--yellow': activeColor == 'yellow'\n }\"\n [ngStyle]=\"{ 'width': value + '%' }\">\n {{ showValue && value ? value + '%' : '' }}\n </div>\n </div>\n <div\n *ngIf=\"targetValue\"\n class=\"target\"\n [ngStyle]=\"{\n 'left': targetValue <= 50 ? targetValue + '%' : 'unset',\n 'right': targetValue > 50 ? 100 - targetValue + '%' : 'unset',\n 'align-items': targetValue > 50 ? 'flex-end' : 'flex-start'\n }\">\n <span class=\"target-line\"></span>\n <span class=\"target-label\">\n {{ targetLabel || value + '%' }}\n </span>\n </div>\n</div>\n",
|
|
10607
|
+
styles: [".progress-bar{position:relative}.progress-bar .progress-bar-all{background-color:#d8d8d8;border-radius:4px;height:24px;overflow:hidden;width:100%}.progress-bar .progress-bar-all .progress-bar-active{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;font-family:\"Open Sans\",sans-serif;font-size:14px;height:100%;-ms-flex-pack:center;justify-content:center;line-height:150%;width:80%}.progress-bar .progress-bar-all .progress-bar-active--blue{background-color:#428bca}.progress-bar .progress-bar-all .progress-bar-active--green{background-color:#0c9348}.progress-bar .progress-bar-all .progress-bar-active--red{background-color:#c13018}.progress-bar .progress-bar-all .progress-bar-active--yellow{background-color:#fcbf10}.progress-bar .target{-ms-flex-align:start;align-items:flex-start;bottom:-38px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute}.progress-bar .target .target-line{background-color:#333;height:40px;margin:8px 0;width:1px}.progress-bar .target .target-label{background-color:#426e78;border-radius:10px;color:#e5eaea;font-family:\"Open Sans\",sans-serif;font-size:12px;line-height:150%;padding:2px 12px}"]
|
|
10608
|
+
})
|
|
10609
|
+
], ProgressBarComponent);
|
|
10610
|
+
return ProgressBarComponent;
|
|
10611
|
+
}());
|
|
10612
|
+
|
|
10613
|
+
var ProgressBarModule = /** @class */ (function () {
|
|
10614
|
+
function ProgressBarModule() {
|
|
10615
|
+
}
|
|
10616
|
+
ProgressBarModule = __decorate([
|
|
10617
|
+
core.NgModule({
|
|
10618
|
+
imports: [common.CommonModule],
|
|
10619
|
+
declarations: [ProgressBarComponent],
|
|
10620
|
+
exports: [ProgressBarComponent],
|
|
10621
|
+
})
|
|
10622
|
+
], ProgressBarModule);
|
|
10623
|
+
return ProgressBarModule;
|
|
10624
|
+
}());
|
|
10625
|
+
|
|
10626
|
+
|
|
10627
|
+
(function (ProgressBarColors) {
|
|
10628
|
+
ProgressBarColors["Blue"] = "blue";
|
|
10629
|
+
ProgressBarColors["Green"] = "green";
|
|
10630
|
+
ProgressBarColors["Red"] = "red";
|
|
10631
|
+
ProgressBarColors["Yellow"] = "yellow";
|
|
10632
|
+
})(exports.ProgressBarColors || (exports.ProgressBarColors = {}));
|
|
10633
|
+
|
|
10573
10634
|
exports.AngularComponentsModule = AngularComponentsModule;
|
|
10574
10635
|
exports.AutocompleteField = AutocompleteField;
|
|
10575
10636
|
exports.BaseFieldComponent = BaseFieldComponent;
|
|
@@ -10658,6 +10719,8 @@
|
|
|
10658
10719
|
exports.ProductHeaderModule = ProductHeaderModule;
|
|
10659
10720
|
exports.ProfilePicturePickerComponent = ProfilePicturePickerComponent;
|
|
10660
10721
|
exports.ProfilePicturePickerModule = ProfilePicturePickerModule;
|
|
10722
|
+
exports.ProgressBarComponent = ProgressBarComponent;
|
|
10723
|
+
exports.ProgressBarModule = ProgressBarModule;
|
|
10661
10724
|
exports.RadioButtonField = RadioButtonField;
|
|
10662
10725
|
exports.RationButtonOption = RationButtonOption;
|
|
10663
10726
|
exports.RowTogllerDirective = RowTogllerDirective;
|