@seniorsistemas/angular-components 16.12.4 → 16.13.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 +68 -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/rating-scale/index.d.ts +3 -0
- package/components/rating-scale/models/index.d.ts +1 -0
- package/components/rating-scale/models/rating-scale-node.d.ts +5 -0
- package/components/rating-scale/rating-scale.component.d.ts +15 -0
- package/components/rating-scale/rating-scale.module.d.ts +2 -0
- package/esm2015/components/rating-scale/index.js +3 -0
- package/esm2015/components/rating-scale/models/index.js +1 -0
- package/esm2015/components/rating-scale/models/rating-scale-node.js +1 -0
- package/esm2015/components/rating-scale/rating-scale.component.js +52 -0
- package/esm2015/components/rating-scale/rating-scale.module.js +19 -0
- package/esm2015/public-api.js +2 -1
- package/esm5/components/rating-scale/index.js +3 -0
- package/esm5/components/rating-scale/models/index.js +1 -0
- package/esm5/components/rating-scale/models/rating-scale-node.js +1 -0
- package/esm5/components/rating-scale/rating-scale.component.js +54 -0
- package/esm5/components/rating-scale/rating-scale.module.js +22 -0
- package/esm5/public-api.js +2 -1
- package/fesm2015/seniorsistemas-angular-components.js +62 -1
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +67 -1
- 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
|
@@ -12539,6 +12539,72 @@
|
|
|
12539
12539
|
ProgressBarColors["Yellow"] = "yellow";
|
|
12540
12540
|
})(exports.ProgressBarColors || (exports.ProgressBarColors = {}));
|
|
12541
12541
|
|
|
12542
|
+
var RatingScaleComponent = /** @class */ (function () {
|
|
12543
|
+
function RatingScaleComponent() {
|
|
12544
|
+
this.disabled = false;
|
|
12545
|
+
}
|
|
12546
|
+
RatingScaleComponent_1 = RatingScaleComponent;
|
|
12547
|
+
RatingScaleComponent.prototype.writeValue = function (value) {
|
|
12548
|
+
if (!this.disabled) {
|
|
12549
|
+
this.value = value;
|
|
12550
|
+
}
|
|
12551
|
+
};
|
|
12552
|
+
RatingScaleComponent.prototype.registerOnChange = function (onChange) {
|
|
12553
|
+
this._onChange = onChange;
|
|
12554
|
+
};
|
|
12555
|
+
RatingScaleComponent.prototype.registerOnTouched = function (onTouched) {
|
|
12556
|
+
this._onTouched = onTouched;
|
|
12557
|
+
};
|
|
12558
|
+
RatingScaleComponent.prototype.onSelect = function (rating) {
|
|
12559
|
+
this.value = rating;
|
|
12560
|
+
if (this._onChange) {
|
|
12561
|
+
this._onChange(this.value);
|
|
12562
|
+
}
|
|
12563
|
+
};
|
|
12564
|
+
var RatingScaleComponent_1;
|
|
12565
|
+
__decorate([
|
|
12566
|
+
core.Input()
|
|
12567
|
+
], RatingScaleComponent.prototype, "nodes", void 0);
|
|
12568
|
+
__decorate([
|
|
12569
|
+
core.Input()
|
|
12570
|
+
], RatingScaleComponent.prototype, "startLabel", void 0);
|
|
12571
|
+
__decorate([
|
|
12572
|
+
core.Input()
|
|
12573
|
+
], RatingScaleComponent.prototype, "endLabel", void 0);
|
|
12574
|
+
__decorate([
|
|
12575
|
+
core.Input()
|
|
12576
|
+
], RatingScaleComponent.prototype, "disabled", void 0);
|
|
12577
|
+
RatingScaleComponent = RatingScaleComponent_1 = __decorate([
|
|
12578
|
+
core.Component({
|
|
12579
|
+
selector: "s-rating-scale",
|
|
12580
|
+
template: "<div\n class=\"rating-scale\"\n [ngClass]=\"{ 'rating-scale--disabled': disabled }\">\n <div class=\"nodes\">\n <button\n *ngFor=\"let node of nodes; index as i\"\n class=\"node\"\n [ngClass]=\"{ 'node--selected': value?.id === node.id && !disabled }\"\n tabindex=\"0\"\n (click)=\"onSelect(node)\"> \n <span\n *ngIf=\"node.icon\"\n class=\"icon fas\"\n [ngClass]=\"node.icon\">\n </span>\n <span\n *ngIf=\"node.title\"\n class=\"label\">\n {{ node.title }}\n </span>\n </button>\n </div>\n <div class=\"labels\">\n <span>{{ startLabel }}</span>\n <span>{{ endLabel }}</span>\n </div>\n</div>",
|
|
12581
|
+
providers: [{
|
|
12582
|
+
provide: forms.NG_VALUE_ACCESSOR,
|
|
12583
|
+
useExisting: core.forwardRef(function () { return RatingScaleComponent_1; }),
|
|
12584
|
+
multi: true,
|
|
12585
|
+
}],
|
|
12586
|
+
styles: [".rating-scale{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.rating-scale .nodes{display:-ms-flexbox;display:flex}.rating-scale .nodes .node{-ms-flex-align:center;align-items:center;background-color:#fff;border-radius:6px;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:center;justify-content:center;margin:0 2px;padding:8px;border:1px solid #7892a1}.rating-scale .nodes .node .icon{color:#6e7280;font-size:1rem}.rating-scale .nodes .node .label{color:#212533;font-size:.875rem;font-weight:400;line-height:150%}.rating-scale .nodes .node .icon,.rating-scale .nodes .node .label{margin:6px}.rating-scale .nodes .node--selected{background-color:#d5e8ec;border-color:#428bca;color:#428bca}.rating-scale .nodes .node:first-child{margin-left:0}.rating-scale .nodes .node:last-child{margin-right:0}.rating-scale .labels{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:12px 0}.rating-scale .labels span{color:#080808;font-family:\"Open Sans\" sans-serif;font-size:.875rem;font-weight:400;line-height:150%}.rating-scale--disabled{opacity:.5}.rating-scale:not(.rating-scale--disabled) .node{cursor:pointer}.rating-scale:not(.rating-scale--disabled) .node:hover{background-color:#dedce5}.rating-scale:not(.rating-scale--disabled) .node:focus{border-width:2px;outline:0}"]
|
|
12587
|
+
})
|
|
12588
|
+
], RatingScaleComponent);
|
|
12589
|
+
return RatingScaleComponent;
|
|
12590
|
+
}());
|
|
12591
|
+
|
|
12592
|
+
var RatingScaleModule = /** @class */ (function () {
|
|
12593
|
+
function RatingScaleModule() {
|
|
12594
|
+
}
|
|
12595
|
+
RatingScaleModule = __decorate([
|
|
12596
|
+
core.NgModule({
|
|
12597
|
+
imports: [
|
|
12598
|
+
common.CommonModule,
|
|
12599
|
+
forms.ReactiveFormsModule,
|
|
12600
|
+
],
|
|
12601
|
+
declarations: [RatingScaleComponent],
|
|
12602
|
+
exports: [RatingScaleComponent],
|
|
12603
|
+
})
|
|
12604
|
+
], RatingScaleModule);
|
|
12605
|
+
return RatingScaleModule;
|
|
12606
|
+
}());
|
|
12607
|
+
|
|
12542
12608
|
|
|
12543
12609
|
(function (SplitButtonType) {
|
|
12544
12610
|
SplitButtonType["Primary"] = "primary";
|
|
@@ -13022,6 +13088,8 @@
|
|
|
13022
13088
|
exports.ProgressBarComponent = ProgressBarComponent;
|
|
13023
13089
|
exports.ProgressBarModule = ProgressBarModule;
|
|
13024
13090
|
exports.RadioButtonField = RadioButtonField;
|
|
13091
|
+
exports.RatingScaleComponent = RatingScaleComponent;
|
|
13092
|
+
exports.RatingScaleModule = RatingScaleModule;
|
|
13025
13093
|
exports.RationButtonOption = RationButtonOption;
|
|
13026
13094
|
exports.RowTogllerDirective = RowTogllerDirective;
|
|
13027
13095
|
exports.Section = Section;
|