@seniorsistemas/angular-components 14.14.4 → 14.15.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 +96 -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/timeline/index.d.ts +2 -0
- package/components/timeline/timeline.component.d.ts +18 -0
- package/components/timeline/timeline.module.d.ts +2 -0
- package/esm2015/components/timeline/index.js +3 -0
- package/esm2015/components/timeline/timeline.component.js +79 -0
- package/esm2015/components/timeline/timeline.module.js +16 -0
- package/esm2015/public-api.js +2 -1
- package/esm5/components/timeline/index.js +3 -0
- package/esm5/components/timeline/timeline.component.js +85 -0
- package/esm5/components/timeline/timeline.module.js +19 -0
- package/esm5/public-api.js +2 -1
- package/fesm2015/seniorsistemas-angular-components.js +86 -1
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +95 -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
|
@@ -7341,6 +7341,100 @@
|
|
|
7341
7341
|
return StepsModule;
|
|
7342
7342
|
}());
|
|
7343
7343
|
|
|
7344
|
+
var TimelineComponent = /** @class */ (function () {
|
|
7345
|
+
function TimelineComponent() {
|
|
7346
|
+
this.id = "s-timeline-" + TimelineComponent_1.nextId++;
|
|
7347
|
+
this.activeIndex = 0;
|
|
7348
|
+
}
|
|
7349
|
+
TimelineComponent_1 = TimelineComponent;
|
|
7350
|
+
TimelineComponent.prototype.barAnimation = function (index, activeIndex) {
|
|
7351
|
+
var visited = index < activeIndex;
|
|
7352
|
+
var activated = index === activeIndex;
|
|
7353
|
+
return visited || activated;
|
|
7354
|
+
};
|
|
7355
|
+
TimelineComponent.prototype.afterBarAnimation = function (index, activeIndex) {
|
|
7356
|
+
var visited = index < activeIndex;
|
|
7357
|
+
var activated = index === activeIndex - 1;
|
|
7358
|
+
return visited || activated;
|
|
7359
|
+
};
|
|
7360
|
+
Object.defineProperty(TimelineComponent.prototype, "visibledStep", {
|
|
7361
|
+
get: function () {
|
|
7362
|
+
return this.steps.filter(function (step) { return !step.hidden; });
|
|
7363
|
+
},
|
|
7364
|
+
enumerable: true,
|
|
7365
|
+
configurable: true
|
|
7366
|
+
});
|
|
7367
|
+
var TimelineComponent_1;
|
|
7368
|
+
TimelineComponent.nextId = 0;
|
|
7369
|
+
__decorate([
|
|
7370
|
+
core.Input()
|
|
7371
|
+
], TimelineComponent.prototype, "id", void 0);
|
|
7372
|
+
__decorate([
|
|
7373
|
+
core.Input()
|
|
7374
|
+
], TimelineComponent.prototype, "steps", void 0);
|
|
7375
|
+
__decorate([
|
|
7376
|
+
core.Input()
|
|
7377
|
+
], TimelineComponent.prototype, "activeIndex", void 0);
|
|
7378
|
+
TimelineComponent = TimelineComponent_1 = __decorate([
|
|
7379
|
+
core.Component({
|
|
7380
|
+
selector: "s-timeline",
|
|
7381
|
+
template: "<div [id]=\"id\" class=\"s-timeline-container\">\n <ng-container *ngFor=\"let step of visibledStep; let i = index; let isFirst = first; let isLast = last\">\n <div *ngIf=\"!isFirst\" class=\"s-timeline-progress-bar\"\n [@activeDesative]=\"barAnimation(i, activeIndex) ? 'active': 'desactive'\" [ngClass]=\"{\n 's-timeline-step-completed': (i < activeIndex),\n 's-timeline-step-active': (i === activeIndex)\n }\"></div>\n <div [id]=\"id + '-step-' + (step.id || i)\" class=\"s-timeline-step-header\" role=\"tab\"\n tabindex=\"0\" [attr.aria-label]=\"step.ariaLabel || null\" [attr.aria-controls]=\"step.ariaControls\"\n [attr.aria-labelledby]=\"!step.ariaLabel ? 'step-label-' + i : null\" [attr.aria-posinset]=\"i + 1\"\n [attr.aria-setsize]=\"visibledStep.length\" [attr.aria-selected]=\"activeIndex == i\" [ngClass]=\"{\n 's-timeline-step-completed': (i < activeIndex),\n 's-timeline-step-active': (i === activeIndex)\n }\">\n <div *ngIf=\"!isFirst\"\n [@beforeActiveDesative]=\"barAnimation(i, activeIndex) ? 'active': 'desactive'\"\n class=\"s-timeline-progress-bar-before\" [ngClass]=\"{\n 's-timeline-step-completed': (i < activeIndex),\n 's-timeline-step-active': (i === activeIndex)\n }\"></div>\n <div *ngIf=\"!isLast\"\n [@afterActiveDesative]=\"afterBarAnimation(i, activeIndex) ? 'active': 'desactive'\"\n class=\"s-timeline-progress-bar-after\" [ngClass]=\"{\n 's-timeline-step-completed': ((i + 1) < activeIndex),\n 's-timeline-step-active': (i === (activeIndex - 1))\n }\"></div>\n <div class=\"s-timeline-index\">\n <div class=\"s-timeline-index-content\">\n <span class=\"fas\" [ngClass]=\"step.stepIcon\" aria-hidden=\"true\" [attr.aria-label]=\"i + 1\"></span>\n </div>\n </div>\n <div [id]=\"'step-label-' + i\" class=\"s-timeline-label\">\n <span>{{step.label}}</span>\n </div>\n <div [id]=\"'step-help-label-' + i\" class=\"s-timeline-help-label\">\n <span>{{step.helpLabel}}</span>\n </div>\n </div>\n </ng-container>\n</div>\n",
|
|
7382
|
+
host: {
|
|
7383
|
+
"aria-orientation": "horizontal",
|
|
7384
|
+
role: "tablist",
|
|
7385
|
+
"tab-index": "0",
|
|
7386
|
+
},
|
|
7387
|
+
animations: [
|
|
7388
|
+
animations.trigger("beforeActiveDesative", [
|
|
7389
|
+
animations.state("active", animations.style({
|
|
7390
|
+
"background-position": "left bottom",
|
|
7391
|
+
})),
|
|
7392
|
+
animations.state("desactive", animations.style({
|
|
7393
|
+
"background-position": "right bottom",
|
|
7394
|
+
})),
|
|
7395
|
+
animations.transition("active => desactive", [animations.animate("50ms 100ms linear")]),
|
|
7396
|
+
animations.transition("desactive => active", [animations.animate("50ms 250ms linear")]),
|
|
7397
|
+
]),
|
|
7398
|
+
animations.trigger("activeDesative", [
|
|
7399
|
+
animations.state("active", animations.style({
|
|
7400
|
+
"background-position": "left bottom",
|
|
7401
|
+
})),
|
|
7402
|
+
animations.state("desactive", animations.style({
|
|
7403
|
+
"background-position": "right bottom",
|
|
7404
|
+
})),
|
|
7405
|
+
animations.transition("active => desactive", [animations.animate("100ms 150ms linear")]),
|
|
7406
|
+
animations.transition("desactive => active", [animations.animate("100ms 150ms linear")]),
|
|
7407
|
+
]),
|
|
7408
|
+
animations.trigger("afterActiveDesative", [
|
|
7409
|
+
animations.state("active", animations.style({
|
|
7410
|
+
"background-position": "left bottom",
|
|
7411
|
+
})),
|
|
7412
|
+
animations.state("desactive", animations.style({
|
|
7413
|
+
"background-position": "right bottom",
|
|
7414
|
+
})),
|
|
7415
|
+
animations.transition("active => desactive", [animations.animate("50ms 250ms linear")]),
|
|
7416
|
+
animations.transition("desactive => active", [animations.animate("50ms 100ms linear")]),
|
|
7417
|
+
]),
|
|
7418
|
+
],
|
|
7419
|
+
styles: ["@keyframes scale-up-center{0%{transform:scale(.5)}100%{transform:scale(1)}}.s-timeline-container{display:-ms-flexbox;display:flex;white-space:nowrap;-ms-flex-align:start;align-items:flex-start;overflow:hidden;padding:15px 10px}.s-timeline-step-header{box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;height:auto;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;min-height:72px;max-height:98px;min-width:60px;width:100%}.s-timeline-step-header .s-timeline-help-label,.s-timeline-step-header .s-timeline-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all;color:#999;font-size:14px;font-weight:400;padding-top:5px}.s-timeline-step-header .s-timeline-progress-bar-before{margin:0;position:absolute;top:20px;-ms-flex:auto;flex:auto;height:3px;overflow:hidden;width:calc(50% - 20px);background-color:#697882;background-image:linear-gradient(to right,#0c9348 50%,#697882 50%);background-position:right bottom;background-size:300% 100%;left:-10px}.s-timeline-step-header .s-timeline-progress-bar-before.s-timeline-step-active,.s-timeline-step-header .s-timeline-progress-bar-before.s-timeline-step-completed{background-position:left bottom}.s-timeline-step-header .s-timeline-progress-bar-after{margin:0;position:absolute;top:20px;-ms-flex:auto;flex:auto;height:3px;overflow:hidden;width:calc(50% - 20px);background-color:#697882;background-image:linear-gradient(to right,#0c9348 50%,#697882 50%);background-position:right bottom;background-size:300% 100%;right:-10px}.s-timeline-step-header .s-timeline-progress-bar-after.s-timeline-step-active,.s-timeline-step-header .s-timeline-progress-bar-after.s-timeline-step-completed{background-position:left bottom}.s-timeline-progress-bar{margin:0;position:relative;top:20px;-ms-flex:auto;flex:auto;height:3px;overflow:hidden;width:100%;background-color:#697882;background-image:linear-gradient(to right,#0c9348 50%,#697882 50%);background-position:right bottom;background-size:300% 100%}.s-timeline-index{background-color:#697882;border:3px solid #697882;border-radius:50%;color:#fff;display:inline-block;font-weight:700;position:relative;transition:background-color .2s ease-out;height:46px;width:46px;-ms-flex:none;flex:none}.s-timeline-index .s-timeline-index-content{line-height:18px;font-size:18px;padding-top:8.5px;text-align:center;position:relative}.s-timeline-step-active .s-timeline-index,.s-timeline-step-completed .s-timeline-index{border-color:#0c9348;animation:.1s ease-out alternate scale-up-center;background-color:#0c9348}.s-timeline-step-active.s-timeline-progress-bar,.s-timeline-step-completed.s-timeline-progress-bar{background-position:left bottom}.s-timeline-step-active .s-timeline-label,.s-timeline-step-completed .s-timeline-label{color:#333;font-weight:700}@media (max-width:767px){.s-timeline-help-label,.s-timeline-label{display:none}}"]
|
|
7420
|
+
})
|
|
7421
|
+
], TimelineComponent);
|
|
7422
|
+
return TimelineComponent;
|
|
7423
|
+
}());
|
|
7424
|
+
|
|
7425
|
+
var TimelineModule = /** @class */ (function () {
|
|
7426
|
+
function TimelineModule() {
|
|
7427
|
+
}
|
|
7428
|
+
TimelineModule = __decorate([
|
|
7429
|
+
core.NgModule({
|
|
7430
|
+
imports: [common.CommonModule, tooltip.TooltipModule],
|
|
7431
|
+
declarations: [TimelineComponent],
|
|
7432
|
+
exports: [TimelineComponent],
|
|
7433
|
+
})
|
|
7434
|
+
], TimelineModule);
|
|
7435
|
+
return TimelineModule;
|
|
7436
|
+
}());
|
|
7437
|
+
|
|
7344
7438
|
var TileComponent = /** @class */ (function () {
|
|
7345
7439
|
function TileComponent() {
|
|
7346
7440
|
this.id = "s-tile-" + TileComponent_1.nextId++;
|
|
@@ -9316,6 +9410,8 @@
|
|
|
9316
9410
|
exports.ThumbnailModule = ThumbnailModule;
|
|
9317
9411
|
exports.TileComponent = TileComponent;
|
|
9318
9412
|
exports.TileModule = TileModule;
|
|
9413
|
+
exports.TimelineComponent = TimelineComponent;
|
|
9414
|
+
exports.TimelineModule = TimelineModule;
|
|
9319
9415
|
exports.TokenListComponent = TokenListComponent;
|
|
9320
9416
|
exports.TokenListModule = TokenListModule;
|
|
9321
9417
|
exports.ɵa = LocalizedCurrencyImpurePipe;
|