@seniorsistemas/angular-components 14.16.33 → 15.0.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 +364 -69
- 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/components/horizontal-timeline/horizontal-timeline.component.d.ts +5 -0
- package/components/timeline/components/horizontal-timeline/horizontal-timeline.module.d.ts +2 -0
- package/components/timeline/components/timeline-icon-item/timeline-icon-item.component.d.ts +6 -0
- package/components/timeline/components/timeline-icon-item/timeline-icon-item.module.d.ts +2 -0
- package/components/timeline/components/vertical-timeline/components/collapse-option/collapse-option.component.d.ts +6 -0
- package/components/timeline/components/vertical-timeline/components/collapsed-items/collapsed-items.component.d.ts +10 -0
- package/components/timeline/components/vertical-timeline/components/range-line/range-line.component.d.ts +2 -0
- package/components/timeline/components/vertical-timeline/components/vertical-items/vertical-items.component.d.ts +7 -0
- package/components/timeline/components/vertical-timeline/vertical-timeline.component.d.ts +20 -0
- package/components/timeline/components/vertical-timeline/vertical-timeline.module.d.ts +2 -0
- package/components/timeline/index.d.ts +3 -2
- package/components/timeline/models/index.d.ts +3 -0
- package/components/timeline/models/timeline-item-severity.d.ts +5 -0
- package/components/timeline/models/timeline-item-size.d.ts +4 -0
- package/components/timeline/models/timeline-item.d.ts +25 -0
- package/components/timeline/timeline.component.d.ts +17 -17
- package/esm2015/components/timeline/components/horizontal-timeline/horizontal-timeline.component.js +22 -0
- package/esm2015/components/timeline/components/horizontal-timeline/horizontal-timeline.module.js +21 -0
- package/esm2015/components/timeline/components/timeline-icon-item/timeline-icon-item.component.js +22 -0
- package/esm2015/components/timeline/components/timeline-icon-item/timeline-icon-item.module.js +19 -0
- package/esm2015/components/timeline/components/vertical-timeline/components/collapse-option/collapse-option.component.js +26 -0
- package/esm2015/components/timeline/components/vertical-timeline/components/collapsed-items/collapsed-items.component.js +35 -0
- package/esm2015/components/timeline/components/vertical-timeline/components/range-line/range-line.component.js +13 -0
- package/esm2015/components/timeline/components/vertical-timeline/components/vertical-items/vertical-items.component.js +25 -0
- package/esm2015/components/timeline/components/vertical-timeline/vertical-timeline.component.js +50 -0
- package/esm2015/components/timeline/components/vertical-timeline/vertical-timeline.module.js +29 -0
- package/esm2015/components/timeline/index.js +4 -3
- package/esm2015/components/timeline/models/index.js +4 -0
- package/esm2015/components/timeline/models/timeline-item-severity.js +7 -0
- package/esm2015/components/timeline/models/timeline-item-size.js +6 -0
- package/esm2015/components/timeline/models/timeline-item.js +36 -0
- package/esm2015/components/timeline/timeline.component.js +44 -61
- package/esm2015/components/timeline/timeline.module.js +17 -6
- package/esm2015/seniorsistemas-angular-components.js +17 -7
- package/esm5/components/timeline/components/horizontal-timeline/horizontal-timeline.component.js +23 -0
- package/esm5/components/timeline/components/horizontal-timeline/horizontal-timeline.module.js +24 -0
- package/esm5/components/timeline/components/timeline-icon-item/timeline-icon-item.component.js +25 -0
- package/esm5/components/timeline/components/timeline-icon-item/timeline-icon-item.module.js +22 -0
- package/esm5/components/timeline/components/vertical-timeline/components/collapse-option/collapse-option.component.js +27 -0
- package/esm5/components/timeline/components/vertical-timeline/components/collapsed-items/collapsed-items.component.js +36 -0
- package/esm5/components/timeline/components/vertical-timeline/components/range-line/range-line.component.js +16 -0
- package/esm5/components/timeline/components/vertical-timeline/components/vertical-items/vertical-items.component.js +28 -0
- package/esm5/components/timeline/components/vertical-timeline/vertical-timeline.component.js +55 -0
- package/esm5/components/timeline/components/vertical-timeline/vertical-timeline.module.js +32 -0
- package/esm5/components/timeline/index.js +4 -3
- package/esm5/components/timeline/models/index.js +4 -0
- package/esm5/components/timeline/models/timeline-item-severity.js +7 -0
- package/esm5/components/timeline/models/timeline-item-size.js +6 -0
- package/esm5/components/timeline/models/timeline-item.js +38 -0
- package/esm5/components/timeline/timeline.component.js +45 -63
- package/esm5/components/timeline/timeline.module.js +17 -6
- package/esm5/seniorsistemas-angular-components.js +17 -7
- package/fesm2015/seniorsistemas-angular-components.js +320 -62
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +348 -64
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.d.ts +16 -6
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -7370,100 +7370,384 @@ var StepsModule = /** @class */ (function () {
|
|
|
7370
7370
|
return StepsModule;
|
|
7371
7371
|
}());
|
|
7372
7372
|
|
|
7373
|
+
var HORIZONTAL = "horizontal";
|
|
7374
|
+
var VERTICAL = "vertical";
|
|
7375
|
+
var MIN_ITEM_SIZE = 200;
|
|
7373
7376
|
var TimelineComponent = /** @class */ (function () {
|
|
7374
7377
|
function TimelineComponent() {
|
|
7375
|
-
this.
|
|
7376
|
-
this.
|
|
7378
|
+
this.direction = HORIZONTAL;
|
|
7379
|
+
this.collapsable = true;
|
|
7380
|
+
this.counterLabel = "items";
|
|
7377
7381
|
}
|
|
7378
|
-
|
|
7379
|
-
TimelineComponent.prototype.barAnimation = function (index, activeIndex) {
|
|
7380
|
-
var visited = index < activeIndex;
|
|
7381
|
-
var activated = index === activeIndex;
|
|
7382
|
-
return visited || activated;
|
|
7383
|
-
};
|
|
7384
|
-
TimelineComponent.prototype.afterBarAnimation = function (index, activeIndex) {
|
|
7385
|
-
var visited = index < activeIndex;
|
|
7386
|
-
var activated = index === activeIndex - 1;
|
|
7387
|
-
return visited || activated;
|
|
7388
|
-
};
|
|
7389
|
-
Object.defineProperty(TimelineComponent.prototype, "visibledStep", {
|
|
7382
|
+
Object.defineProperty(TimelineComponent.prototype, "items", {
|
|
7390
7383
|
get: function () {
|
|
7391
|
-
return this.
|
|
7384
|
+
return this._items;
|
|
7385
|
+
},
|
|
7386
|
+
set: function (items) {
|
|
7387
|
+
this._items = items;
|
|
7388
|
+
this.checkDuplicateIds();
|
|
7392
7389
|
},
|
|
7393
7390
|
enumerable: true,
|
|
7394
7391
|
configurable: true
|
|
7395
7392
|
});
|
|
7396
|
-
|
|
7397
|
-
|
|
7393
|
+
TimelineComponent.prototype.ngOnInit = function () {
|
|
7394
|
+
this._innerWidth = window.innerWidth;
|
|
7395
|
+
};
|
|
7396
|
+
TimelineComponent.prototype.onResize = function (_) {
|
|
7397
|
+
this._innerWidth = window.innerWidth;
|
|
7398
|
+
};
|
|
7399
|
+
TimelineComponent.prototype.changeToVertical = function () {
|
|
7400
|
+
return this.direction === VERTICAL || this._innerWidth / this.items.length < MIN_ITEM_SIZE;
|
|
7401
|
+
};
|
|
7402
|
+
TimelineComponent.prototype.checkDuplicateIds = function () {
|
|
7403
|
+
var ids = this.items.map(function (item) {
|
|
7404
|
+
return item.id;
|
|
7405
|
+
});
|
|
7406
|
+
if ((new Set(ids)).size !== ids.length) {
|
|
7407
|
+
throw new Error("A duplicate id was found in the items list");
|
|
7408
|
+
}
|
|
7409
|
+
};
|
|
7398
7410
|
__decorate([
|
|
7399
7411
|
Input()
|
|
7400
|
-
], TimelineComponent.prototype, "
|
|
7412
|
+
], TimelineComponent.prototype, "items", null);
|
|
7401
7413
|
__decorate([
|
|
7402
7414
|
Input()
|
|
7403
|
-
], TimelineComponent.prototype, "
|
|
7415
|
+
], TimelineComponent.prototype, "activeIndex", void 0);
|
|
7404
7416
|
__decorate([
|
|
7405
7417
|
Input()
|
|
7406
|
-
], TimelineComponent.prototype, "
|
|
7407
|
-
|
|
7418
|
+
], TimelineComponent.prototype, "direction", void 0);
|
|
7419
|
+
__decorate([
|
|
7420
|
+
Input()
|
|
7421
|
+
], TimelineComponent.prototype, "collapsable", void 0);
|
|
7422
|
+
__decorate([
|
|
7423
|
+
Input()
|
|
7424
|
+
], TimelineComponent.prototype, "counterLabel", void 0);
|
|
7425
|
+
__decorate([
|
|
7426
|
+
HostListener("window:resize", ["$event"])
|
|
7427
|
+
], TimelineComponent.prototype, "onResize", null);
|
|
7428
|
+
TimelineComponent = __decorate([
|
|
7408
7429
|
Component({
|
|
7409
7430
|
selector: "s-timeline",
|
|
7410
|
-
template: "<div
|
|
7411
|
-
host: {
|
|
7412
|
-
"aria-orientation": "horizontal",
|
|
7413
|
-
role: "tablist",
|
|
7414
|
-
"tab-index": "0",
|
|
7415
|
-
},
|
|
7416
|
-
animations: [
|
|
7417
|
-
trigger("beforeActiveDesative", [
|
|
7418
|
-
state("active", style$7({
|
|
7419
|
-
"background-position": "left bottom",
|
|
7420
|
-
})),
|
|
7421
|
-
state("desactive", style$7({
|
|
7422
|
-
"background-position": "right bottom",
|
|
7423
|
-
})),
|
|
7424
|
-
transition("active => desactive", [animate("50ms 100ms linear")]),
|
|
7425
|
-
transition("desactive => active", [animate("50ms 250ms linear")]),
|
|
7426
|
-
]),
|
|
7427
|
-
trigger("activeDesative", [
|
|
7428
|
-
state("active", style$7({
|
|
7429
|
-
"background-position": "left bottom",
|
|
7430
|
-
})),
|
|
7431
|
-
state("desactive", style$7({
|
|
7432
|
-
"background-position": "right bottom",
|
|
7433
|
-
})),
|
|
7434
|
-
transition("active => desactive", [animate("100ms 150ms linear")]),
|
|
7435
|
-
transition("desactive => active", [animate("100ms 150ms linear")]),
|
|
7436
|
-
]),
|
|
7437
|
-
trigger("afterActiveDesative", [
|
|
7438
|
-
state("active", style$7({
|
|
7439
|
-
"background-position": "left bottom",
|
|
7440
|
-
})),
|
|
7441
|
-
state("desactive", style$7({
|
|
7442
|
-
"background-position": "right bottom",
|
|
7443
|
-
})),
|
|
7444
|
-
transition("active => desactive", [animate("50ms 250ms linear")]),
|
|
7445
|
-
transition("desactive => active", [animate("50ms 100ms linear")]),
|
|
7446
|
-
]),
|
|
7447
|
-
],
|
|
7448
|
-
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}}"]
|
|
7431
|
+
template: "<div *ngIf=\"changeToVertical(); then vertical else horizontal\"></div>\n\n<ng-template #horizontal>\n <s-horizontal-timeline\n [items]=\"items\"\n [activeIndex]=\"activeIndex\">\n </s-horizontal-timeline>\n</ng-template>\n\n<ng-template #vertical>\n <s-vertical-timeline\n [items]=\"items\"\n [activeIndex]=\"activeIndex\"\n [counterLabel]=\"counterLabel\"\n [collapsable]=\"collapsable\">\n </s-vertical-timeline>\n</ng-template>"
|
|
7449
7432
|
})
|
|
7450
7433
|
], TimelineComponent);
|
|
7451
7434
|
return TimelineComponent;
|
|
7452
7435
|
}());
|
|
7453
7436
|
|
|
7437
|
+
var TimelineIconItemComponent = /** @class */ (function () {
|
|
7438
|
+
function TimelineIconItemComponent() {
|
|
7439
|
+
}
|
|
7440
|
+
__decorate([
|
|
7441
|
+
Input()
|
|
7442
|
+
], TimelineIconItemComponent.prototype, "item", void 0);
|
|
7443
|
+
__decorate([
|
|
7444
|
+
Input()
|
|
7445
|
+
], TimelineIconItemComponent.prototype, "isActive", void 0);
|
|
7446
|
+
__decorate([
|
|
7447
|
+
Input()
|
|
7448
|
+
], TimelineIconItemComponent.prototype, "isComplete", void 0);
|
|
7449
|
+
TimelineIconItemComponent = __decorate([
|
|
7450
|
+
Component({
|
|
7451
|
+
selector: "s-timeline-icon-item",
|
|
7452
|
+
template: "<ng-container *ngIf=\"item\">\n <div\n class=\"timeline__icon-item\"\n [ngClass]=\"{\n 'timeline__icon-item--small': item.testSize('small'),\n 'timeline__icon-item--normal': item.testSize('normal'),\n 'timeline__icon-item--warning': item.testSeverity('warning'),\n 'timeline__icon-item--error': item.testSeverity('error'),\n 'timeline__icon-item--completed': isComplete,\n 'timeline__icon-item--active': isActive\n }\">\n <div\n class=\"timeline__icon-item__icon\"\n [pTooltip]=\"item.tooltip\"\n tooltipPosition=\"top\">\n <ng-content *ngIf=\"item.icon; then icon_content; else label_text_content\"></ng-content>\n <ng-template #icon_content>\n <span\n class=\"fas\"\n [ngClass]=\"item.icon\">\n </span>\n </ng-template>\n <ng-template #label_text_content>\n <span class=\"timeline__icon-item__icon__label\">\n {{ item.label }}\n </span>\n </ng-template>\n </div>\n </div>\n</ng-container>\n",
|
|
7453
|
+
styles: [".timeline__icon-item .timeline__icon-item__icon{-ms-flex-align:center;align-items:center;background-color:#697882;border-radius:50%;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:4px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.timeline__icon-item .timeline__icon-item__icon .timeline__icon-item__icon__label{font-family:\"Open Sans\",sans-serif}.timeline__icon-item.timeline__icon-item--small .timeline__icon-item__icon{font-size:0;height:16px;width:16px}.timeline__icon-item.timeline__icon-item--normal .timeline__icon-item__icon{font-size:10px;height:24px;padding:8px;width:24px}.timeline__icon-item.timeline__icon-item--normal .timeline__icon-item__icon .timeline__icon-item__icon__label{font-size:14px}.timeline__icon-item.timeline__icon-item--active .timeline__icon-item__icon{font-size:20px;height:40px;padding:10px;width:40px}.timeline__icon-item.timeline__icon-item--active .timeline__icon-item__icon .timeline__icon-item__icon__label{font-size:22px}.timeline__icon-item.timeline__icon-item--active .timeline__icon-item__icon,.timeline__icon-item.timeline__icon-item--completed .timeline__icon-item__icon{background-color:#0c9348}.timeline__icon-item.timeline__icon-item--warning.timeline__icon-item--active .timeline__icon-item__icon{background-color:#fcbf10;color:#333}.timeline__icon-item.timeline__icon-item--danger.timeline__icon-item--active .timeline__icon-item__icon{background-color:#f8931f;color:#333}.timeline__icon-item.timeline__icon-item--error.timeline__icon-item--active .timeline__icon-item__icon{background-color:#c13018}"]
|
|
7454
|
+
})
|
|
7455
|
+
], TimelineIconItemComponent);
|
|
7456
|
+
return TimelineIconItemComponent;
|
|
7457
|
+
}());
|
|
7458
|
+
|
|
7459
|
+
var TimelineItemModule = /** @class */ (function () {
|
|
7460
|
+
function TimelineItemModule() {
|
|
7461
|
+
}
|
|
7462
|
+
TimelineItemModule = __decorate([
|
|
7463
|
+
NgModule({
|
|
7464
|
+
imports: [
|
|
7465
|
+
CommonModule,
|
|
7466
|
+
TooltipModule,
|
|
7467
|
+
],
|
|
7468
|
+
declarations: [TimelineIconItemComponent],
|
|
7469
|
+
exports: [TimelineIconItemComponent],
|
|
7470
|
+
})
|
|
7471
|
+
], TimelineItemModule);
|
|
7472
|
+
return TimelineItemModule;
|
|
7473
|
+
}());
|
|
7474
|
+
|
|
7475
|
+
var HorizontalTimelineComponent = /** @class */ (function () {
|
|
7476
|
+
function HorizontalTimelineComponent() {
|
|
7477
|
+
this.activeIndex = 0;
|
|
7478
|
+
}
|
|
7479
|
+
__decorate([
|
|
7480
|
+
Input()
|
|
7481
|
+
], HorizontalTimelineComponent.prototype, "items", void 0);
|
|
7482
|
+
__decorate([
|
|
7483
|
+
Input()
|
|
7484
|
+
], HorizontalTimelineComponent.prototype, "activeIndex", void 0);
|
|
7485
|
+
HorizontalTimelineComponent = __decorate([
|
|
7486
|
+
Component({
|
|
7487
|
+
selector: "s-horizontal-timeline",
|
|
7488
|
+
template: "<div class=\"horizontal-timeline\">\n <ng-container\n *ngFor=\"let item of items;\n let i = index;\n let isFirst = first;\n let isLast = last\">\n <div\n class=\"horizontal-timeline__item\"\n [ngClass]=\"{\n 'horizontal-timeline__item--small': item.testSize('small'),\n 'horizontal-timeline__item--normal': item.testSize('normal'),\n 'horizontal-timeline__item--warning': item.testSeverity('warning'),\n 'horizontal-timeline__item--error': item.testSeverity('error'),\n 'horizontal-timeline__item--completed': i < activeIndex,\n 'horizontal-timeline__item--active': i === activeIndex\n }\">\n <div class=\"horizontal-timeline__item__icon-wrapper\">\n <div\n class=\"horizontal-timeline__item__icon-wrapper__line horizontal-timeline__item__icon-wrapper__line--before\"\n [ngStyle]=\"{ 'visibility': isFirst ? 'hidden' : 'visible' }\">\n </div>\n <s-timeline-icon-item\n [item]=\"item\"\n [isActive]=\"i === activeIndex\"\n [isComplete]=\"i < activeIndex\">\n </s-timeline-icon-item>\n <div\n class=\"horizontal-timeline__item__icon-wrapper__line horizontal-timeline__item__icon-wrapper__line--after\"\n [ngStyle]=\"{ 'visibility': isLast ? 'hidden' : 'visible' }\">\n </div>\n </div>\n <div class=\"horizontal-timeline__item__info\">\n <div\n class=\"horizontal-timeline__item__info__title\"\n [pTooltip]=\"item.title\"\n tooltipPosition=\"top\"\n [showDelay]=\"1000\">\n {{ item.title }}\n </div>\n <div\n class=\"horizontal-timeline__item__info__description\"\n [pTooltip]=\"item.description\"\n tooltipPosition=\"top\"\n [showDelay]=\"1000\">\n {{ item.description }}\n </div>\n </div>\n </div>\n </ng-container>\n</div>",
|
|
7489
|
+
styles: ["@keyframes scale-up-center{0%{transform:scale(.5)}100%{transform:scale(1)}}.horizontal-timeline{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.horizontal-timeline .horizontal-timeline__item{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:56px;-ms-flex-pack:start;justify-content:flex-start;width:100%}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line{background-color:#697882;height:3px}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--before{border-radius:0 2px 2px 0}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--after{border-radius:2px 0 0 2px}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__info{width:20ch}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__info .horizontal-timeline__item__info__title{color:#333;font-family:\"Open Sans\",sans-serif;font-size:14px;font-weight:700;line-height:150%;max-width:100%;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__info .horizontal-timeline__item__info__description{color:#999;display:-webkit-box;font-family:\"Open Sans\",sans-serif;font-size:12px;font-weight:400;line-height:150%;max-height:calc(12px * 1.5 * 4);overflow:hidden;text-align:center;text-overflow:ellipsis;-webkit-line-clamp:4;-webkit-box-orient:vertical}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--small .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line{width:calc(50% - 4px - 8px)}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--normal .horizontal-timeline__item__icon-wrapper__line{width:calc(50% - 4px - 12px)}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--active .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line{width:calc(50% - 4px - 20px)}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--active .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--before,.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--completed .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--after,.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--completed .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--before{background-color:#0c9348}"]
|
|
7490
|
+
})
|
|
7491
|
+
], HorizontalTimelineComponent);
|
|
7492
|
+
return HorizontalTimelineComponent;
|
|
7493
|
+
}());
|
|
7494
|
+
|
|
7495
|
+
var HorizontalTimelineModule = /** @class */ (function () {
|
|
7496
|
+
function HorizontalTimelineModule() {
|
|
7497
|
+
}
|
|
7498
|
+
HorizontalTimelineModule = __decorate([
|
|
7499
|
+
NgModule({
|
|
7500
|
+
imports: [
|
|
7501
|
+
CommonModule,
|
|
7502
|
+
TooltipModule,
|
|
7503
|
+
TimelineItemModule,
|
|
7504
|
+
],
|
|
7505
|
+
declarations: [HorizontalTimelineComponent],
|
|
7506
|
+
exports: [HorizontalTimelineComponent],
|
|
7507
|
+
})
|
|
7508
|
+
], HorizontalTimelineModule);
|
|
7509
|
+
return HorizontalTimelineModule;
|
|
7510
|
+
}());
|
|
7511
|
+
|
|
7512
|
+
var VerticalTimelineComponent = /** @class */ (function () {
|
|
7513
|
+
function VerticalTimelineComponent() {
|
|
7514
|
+
this.isG1Collapsed = true;
|
|
7515
|
+
this.isG2Collapsed = true;
|
|
7516
|
+
}
|
|
7517
|
+
Object.defineProperty(VerticalTimelineComponent.prototype, "activeIndex", {
|
|
7518
|
+
get: function () {
|
|
7519
|
+
return this._activeIndex;
|
|
7520
|
+
},
|
|
7521
|
+
set: function (index) {
|
|
7522
|
+
this._activeIndex = index;
|
|
7523
|
+
this.groupItems();
|
|
7524
|
+
},
|
|
7525
|
+
enumerable: true,
|
|
7526
|
+
configurable: true
|
|
7527
|
+
});
|
|
7528
|
+
VerticalTimelineComponent.prototype.onChangeG1 = function (event) {
|
|
7529
|
+
this.isG1Collapsed = event;
|
|
7530
|
+
};
|
|
7531
|
+
VerticalTimelineComponent.prototype.onChangeG2 = function (event) {
|
|
7532
|
+
this.isG2Collapsed = event;
|
|
7533
|
+
};
|
|
7534
|
+
VerticalTimelineComponent.prototype.groupItems = function () {
|
|
7535
|
+
this.firstItem = this.activeIndex === 0 ? [] : [this.items[0]];
|
|
7536
|
+
this.g1Items = this.items.slice(1, this.activeIndex);
|
|
7537
|
+
this.activeItem = [this.items[this.activeIndex]];
|
|
7538
|
+
this.g2Items = this.items.slice(this.activeIndex + 1, this.items.length - 1);
|
|
7539
|
+
this.lastItem = this.activeIndex === this.items.length - 1 ? [] : [this.items[this.items.length - 1]];
|
|
7540
|
+
};
|
|
7541
|
+
VerticalTimelineComponent.nextId = 0;
|
|
7542
|
+
__decorate([
|
|
7543
|
+
Input()
|
|
7544
|
+
], VerticalTimelineComponent.prototype, "activeIndex", null);
|
|
7545
|
+
__decorate([
|
|
7546
|
+
Input()
|
|
7547
|
+
], VerticalTimelineComponent.prototype, "items", void 0);
|
|
7548
|
+
__decorate([
|
|
7549
|
+
Input()
|
|
7550
|
+
], VerticalTimelineComponent.prototype, "counterLabel", void 0);
|
|
7551
|
+
__decorate([
|
|
7552
|
+
Input()
|
|
7553
|
+
], VerticalTimelineComponent.prototype, "collapsable", void 0);
|
|
7554
|
+
VerticalTimelineComponent = __decorate([
|
|
7555
|
+
Component({
|
|
7556
|
+
selector: "s-vertical-timeline",
|
|
7557
|
+
template: "<div class=\"vertical-timeline\">\n <div\n *ngIf=\"firstItem.length\"\n class=\"vertical-timeline__block\">\n <div class=\"vertical-timeline__block__prefix\"></div>\n <s-vertical-items\n [items]=\"firstItem\"\n [isLast]=\"false\"\n [isActive]=\"false\"\n [isCompleted]=\"true\">\n </s-vertical-items>\n </div>\n\n <div\n *ngIf=\"g1Items.length\"\n class=\"vertical-timeline__block\">\n <div class=\"vertical-timeline__block__prefix\">\n <ng-container *ngIf=\"g1Items.length > 1 && !isG1Collapsed\">\n <s-collapse-option\n *ngIf=\"collapsable\"\n [isCollapsed]=\"isG1Collapsed\"\n (change)=\"onChangeG1($event)\">\n </s-collapse-option>\n <s-range-line class=\"vertical-timeline__block__prefix__line\"></s-range-line>\n </ng-container>\n </div>\n\n <div *ngIf=\"isG1Collapsed && g1Items.length > 1 && collapsable; then g1_collapsed; else g1_items\"></div>\n\n <ng-template #g1_collapsed>\n <s-collapsed-items\n [items]=\"g1Items\"\n [(isCollapsed)]=\"isG1Collapsed\"\n [isCompleted]=\"true\"\n [counterLabel]=\"counterLabel\">\n </s-collapsed-items>\n </ng-template>\n\n <ng-template #g1_items>\n <s-vertical-items\n [items]=\"g1Items\"\n [isLast]=\"false\"\n [isActive]=\"false\"\n [isCompleted]=\"true\">\n </s-vertical-items>\n </ng-template>\n </div>\n\n <div\n *ngIf=\"activeItem.length\"\n class=\"vertical-timeline__block\">\n <div class=\"vertical-timeline__block__prefix\"></div>\n <s-vertical-items\n [items]=\"activeItem\"\n [isLast]=\"!lastItem.length\"\n [isActive]=\"true\"\n [isCompleted]=\"false\">\n </s-vertical-items>\n </div>\n\n <div\n *ngIf=\"g2Items.length\"\n class=\"vertical-timeline__block\">\n <div class=\"vertical-timeline__block__prefix\">\n <ng-container *ngIf=\"g2Items.length > 1 && !isG2Collapsed\">\n <s-collapse-option\n *ngIf=\"collapsable\"\n [isCollapsed]=\"isG2Collapsed\"\n (change)=\"onChangeG2($event)\">\n </s-collapse-option>\n <s-range-line class=\"vertical-timeline__block__prefix__line\"></s-range-line>\n </ng-container>\n </div>\n\n <div *ngIf=\"isG2Collapsed && g2Items.length > 1 && collapsable; then g2_collapsed; else g2_items\"></div>\n\n <ng-template #g2_collapsed>\n <s-collapsed-items\n [items]=\"g2Items\"\n [(isCollapsed)]=\"isG2Collapsed\"\n [isCompleted]=\"false\"\n [counterLabel]=\"counterLabel\">\n </s-collapsed-items>\n </ng-template>\n\n <ng-template #g2_items>\n <s-vertical-items\n [items]=\"g2Items\"\n [isLast]=\"false\"\n [isActive]=\"false\"\n [isCompleted]=\"false\">\n </s-vertical-items>\n </ng-template>\n </div>\n\n <div\n *ngIf=\"lastItem.length\"\n class=\"vertical-timeline__block\">\n <div class=\"vertical-timeline__block__prefix\"></div>\n <s-vertical-items\n [items]=\"lastItem\"\n [isLast]=\"true\"\n [isActive]=\"false\"\n [isCompleted]=\"false\">\n </s-vertical-items>\n </div>\n</div>",
|
|
7558
|
+
styles: [".vertical-timeline{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.vertical-timeline .vertical-timeline__block{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch}.vertical-timeline .vertical-timeline__block .vertical-timeline__block__prefix{width:60px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-negative:0;flex-shrink:0}.vertical-timeline .vertical-timeline__block .vertical-timeline__block__prefix .vertical-timeline__block__prefix__line{height:100%}"]
|
|
7559
|
+
})
|
|
7560
|
+
], VerticalTimelineComponent);
|
|
7561
|
+
return VerticalTimelineComponent;
|
|
7562
|
+
}());
|
|
7563
|
+
|
|
7564
|
+
var RangeLineComponent = /** @class */ (function () {
|
|
7565
|
+
function RangeLineComponent() {
|
|
7566
|
+
}
|
|
7567
|
+
RangeLineComponent = __decorate([
|
|
7568
|
+
Component({
|
|
7569
|
+
selector: "s-range-line",
|
|
7570
|
+
template: "<div class=\"range-line\">\n <div class=\"range-line__horizontal\"></div>\n <div class=\"range-line__vertical\"></div>\n <div class=\"range-line__horizontal\"></div>\n</div>\n",
|
|
7571
|
+
styles: [".range-line{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:20px;height:100%}.range-line .range-line__horizontal{background-color:#ccc;height:3px;width:100%}.range-line .range-line__vertical{background-color:#ccc;height:100%;width:3px}s-range-line{background-color:#add8e6}"]
|
|
7572
|
+
})
|
|
7573
|
+
], RangeLineComponent);
|
|
7574
|
+
return RangeLineComponent;
|
|
7575
|
+
}());
|
|
7576
|
+
|
|
7577
|
+
var CollapseOptionComponent = /** @class */ (function () {
|
|
7578
|
+
function CollapseOptionComponent() {
|
|
7579
|
+
this.isCollapsed = false;
|
|
7580
|
+
this.change = new EventEmitter();
|
|
7581
|
+
}
|
|
7582
|
+
CollapseOptionComponent.prototype.onClick = function () {
|
|
7583
|
+
this.change.emit(!this.isCollapsed);
|
|
7584
|
+
};
|
|
7585
|
+
__decorate([
|
|
7586
|
+
Input()
|
|
7587
|
+
], CollapseOptionComponent.prototype, "isCollapsed", void 0);
|
|
7588
|
+
__decorate([
|
|
7589
|
+
Output()
|
|
7590
|
+
], CollapseOptionComponent.prototype, "change", void 0);
|
|
7591
|
+
CollapseOptionComponent = __decorate([
|
|
7592
|
+
Component({
|
|
7593
|
+
selector: "s-collapse-option",
|
|
7594
|
+
template: "<div\n class=\"collapse-option\"\n (click)=\"onClick()\">\n <div class=\"collapse-option__icon\">\n <span\n class=\"fas\"\n [ngClass]=\"{\n 'fa-minus': !isCollapsed,\n 'fa-plus': isCollapsed\n }\">\n </span>\n </div>\n</div>",
|
|
7595
|
+
styles: [".collapse-option{-ms-flex-align:center;align-items:center;background-color:#428bca;border-radius:50%;cursor:pointer;display:-ms-flexbox;display:flex;height:24px;-ms-flex-pack:center;justify-content:center;margin:4px;width:24px}.collapse-option .collapse-option__icon{color:#fff}"]
|
|
7596
|
+
})
|
|
7597
|
+
], CollapseOptionComponent);
|
|
7598
|
+
return CollapseOptionComponent;
|
|
7599
|
+
}());
|
|
7600
|
+
|
|
7601
|
+
var CollapsedItemsComponent = /** @class */ (function () {
|
|
7602
|
+
function CollapsedItemsComponent() {
|
|
7603
|
+
this.isCollapsedChange = new EventEmitter();
|
|
7604
|
+
}
|
|
7605
|
+
CollapsedItemsComponent.prototype.onChange = function (event) {
|
|
7606
|
+
this.isCollapsed = !this.isCollapsed;
|
|
7607
|
+
this.isCollapsedChange.emit(this.isCollapsed);
|
|
7608
|
+
};
|
|
7609
|
+
__decorate([
|
|
7610
|
+
Input()
|
|
7611
|
+
], CollapsedItemsComponent.prototype, "items", void 0);
|
|
7612
|
+
__decorate([
|
|
7613
|
+
Input()
|
|
7614
|
+
], CollapsedItemsComponent.prototype, "isCollapsed", void 0);
|
|
7615
|
+
__decorate([
|
|
7616
|
+
Input()
|
|
7617
|
+
], CollapsedItemsComponent.prototype, "isCompleted", void 0);
|
|
7618
|
+
__decorate([
|
|
7619
|
+
Input()
|
|
7620
|
+
], CollapsedItemsComponent.prototype, "counterLabel", void 0);
|
|
7621
|
+
__decorate([
|
|
7622
|
+
Output()
|
|
7623
|
+
], CollapsedItemsComponent.prototype, "isCollapsedChange", void 0);
|
|
7624
|
+
CollapsedItemsComponent = __decorate([
|
|
7625
|
+
Component({
|
|
7626
|
+
selector: "s-collapsed-items",
|
|
7627
|
+
template: "<div class=\"collapsed-items\">\n <div\n class=\"collapsed-items__item\"\n [ngClass]=\"{ 'collapsed-items__item--completed' : isCompleted }\">\n <div class=\"collapsed-items__item__icon-wrapper\">\n <s-collapse-option\n [isCollapsed]=\"isCollapsed\"\n (change)=\"onChange($event)\">\n </s-collapse-option>\n <div class=\"collapsed-items__item__icon-wrapper__line\"></div>\n </div>\n <div\n class=\"collapsed-items__item__info\"\n (click)=\"onChange(!isCollapsed)\">\n <div\n class=\"collapsed-items__item__info__description\">\n {{ items.length }} {{ counterLabel }}\n </div>\n </div>\n </div>\n</div>",
|
|
7628
|
+
styles: [".collapsed-items .collapsed-items__item{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex}.collapsed-items .collapsed-items__item .collapsed-items__item__icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;flex-shrink:0;-ms-flex-pack:center;justify-content:center;width:56px}.collapsed-items .collapsed-items__item .collapsed-items__item__icon-wrapper .collapsed-items__item__icon-wrapper__line{background-color:#697882;border-radius:2px;-ms-flex-positive:1;flex-grow:1;min-height:20px;width:3px}.collapsed-items .collapsed-items__item .collapsed-items__item__info{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;margin-bottom:20px;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.collapsed-items .collapsed-items__item .collapsed-items__item__info .collapsed-items__item__info__description{color:#428bca;font-family:\"Open Sans\",sans-serif;font-size:12px;font-weight:400;line-height:150%}.collapsed-items .collapsed-items__item.collapsed-items__item--completed .collapsed-items__item__icon-wrapper .collapsed-items__item__icon-wrapper__line{background-color:#0c9348}"]
|
|
7629
|
+
})
|
|
7630
|
+
], CollapsedItemsComponent);
|
|
7631
|
+
return CollapsedItemsComponent;
|
|
7632
|
+
}());
|
|
7633
|
+
|
|
7634
|
+
var VerticalItemsComponent = /** @class */ (function () {
|
|
7635
|
+
function VerticalItemsComponent() {
|
|
7636
|
+
}
|
|
7637
|
+
__decorate([
|
|
7638
|
+
Input()
|
|
7639
|
+
], VerticalItemsComponent.prototype, "items", void 0);
|
|
7640
|
+
__decorate([
|
|
7641
|
+
Input()
|
|
7642
|
+
], VerticalItemsComponent.prototype, "isLast", void 0);
|
|
7643
|
+
__decorate([
|
|
7644
|
+
Input()
|
|
7645
|
+
], VerticalItemsComponent.prototype, "isActive", void 0);
|
|
7646
|
+
__decorate([
|
|
7647
|
+
Input()
|
|
7648
|
+
], VerticalItemsComponent.prototype, "isCompleted", void 0);
|
|
7649
|
+
VerticalItemsComponent = __decorate([
|
|
7650
|
+
Component({
|
|
7651
|
+
selector: "s-vertical-items",
|
|
7652
|
+
template: "<div class=\"vertical-items\">\n <ng-container *ngFor=\"let item of items; let index = index;\">\n <div\n class=\"vertical-items__item\"\n [ngClass]=\"{\n 'vertical-items__item--small': item.testSize('small'),\n 'vertical-items__item--normal': item.testSize('normal'),\n 'vertical-items__item--completed': isCompleted,\n 'vertical-items__item--active': isActive\n }\">\n <div class=\"vertical-items__item__icon-wrapper\">\n <s-timeline-icon-item\n [item]=\"item\"\n [isComplete]=\"isCompleted\"\n [isActive]=\"isActive\">\n </s-timeline-icon-item>\n <div\n class=\"vertical-items__item__icon-wrapper__line\"\n [ngStyle]=\"{ 'visibility': isLast ? 'hidden' : 'visible' }\">\n </div>\n </div>\n <div class=\"vertical-items__item__info\">\n <div class=\"vertical-timeline__item__info__title\">\n {{ item.title }}\n </div>\n <div class=\"vertical-items__item__info__description\">\n {{ item.description }}\n </div>\n </div>\n </div>\n </ng-container>\n</div>",
|
|
7653
|
+
styles: [".vertical-items .vertical-items__item{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;margin-right:50px}.vertical-items .vertical-items__item .vertical-items__item__collapsed-option{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.vertical-items .vertical-items__item .vertical-items__item__collapsed-option .vertical-items__item__collapsed-option__line{width:3px;height:50px;background-color:#ccc}.vertical-items .vertical-items__item .vertical-items__item__icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;flex-shrink:0;-ms-flex-pack:center;justify-content:center;width:56px}.vertical-items .vertical-items__item .vertical-items__item__icon-wrapper .vertical-items__item__icon-wrapper__line{background-color:#697882;border-radius:2px;-ms-flex-positive:1;flex-grow:1;min-height:20px;width:3px}.vertical-items .vertical-items__item .vertical-items__item__info{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;margin-bottom:12px}.vertical-items .vertical-items__item .vertical-items__item__info .vertical-items__item__info__title{color:#333;font-family:\"Open Sans\",sans-serif;font-size:14px;font-weight:700;line-height:150%}.vertical-items .vertical-items__item .vertical-items__item__info .vertical-items__item__info__description{color:#999;font-family:\"Open Sans\",sans-serif;font-size:12px;font-weight:400;line-height:150%}.vertical-items .vertical-items__item .vertical-items__item__info .vertical-items__item__info__description.vertical-items__item__info__description--link{color:#428bca}.vertical-items .vertical-items__item.vertical-items__item--small .vertical-items__item__icon-wrapper__line{height:calc(100% - 4px - 8px)}.vertical-items .vertical-items__item.vertical-items__item--medium .vertical-items__item__icon-wrapper__line{height:calc(100% - 4px - 12px)}.vertical-items .vertical-items__item.vertical-items__item--big .vertical-items__item__icon-wrapper__line{height:calc(50% - 4px - 20px)}.vertical-items .vertical-items__item.vertical-items__item--completed .vertical-items__item__icon-wrapper .vertical-items__item__icon-wrapper__line{background-color:#0c9348}"]
|
|
7654
|
+
})
|
|
7655
|
+
], VerticalItemsComponent);
|
|
7656
|
+
return VerticalItemsComponent;
|
|
7657
|
+
}());
|
|
7658
|
+
|
|
7659
|
+
var VerticalTimelineModule = /** @class */ (function () {
|
|
7660
|
+
function VerticalTimelineModule() {
|
|
7661
|
+
}
|
|
7662
|
+
VerticalTimelineModule = __decorate([
|
|
7663
|
+
NgModule({
|
|
7664
|
+
imports: [
|
|
7665
|
+
CommonModule,
|
|
7666
|
+
TimelineItemModule,
|
|
7667
|
+
],
|
|
7668
|
+
declarations: [
|
|
7669
|
+
VerticalTimelineComponent,
|
|
7670
|
+
RangeLineComponent,
|
|
7671
|
+
CollapseOptionComponent,
|
|
7672
|
+
CollapsedItemsComponent,
|
|
7673
|
+
VerticalItemsComponent,
|
|
7674
|
+
],
|
|
7675
|
+
exports: [VerticalTimelineComponent],
|
|
7676
|
+
})
|
|
7677
|
+
], VerticalTimelineModule);
|
|
7678
|
+
return VerticalTimelineModule;
|
|
7679
|
+
}());
|
|
7680
|
+
|
|
7454
7681
|
var TimelineModule = /** @class */ (function () {
|
|
7455
7682
|
function TimelineModule() {
|
|
7456
7683
|
}
|
|
7457
7684
|
TimelineModule = __decorate([
|
|
7458
7685
|
NgModule({
|
|
7459
|
-
imports: [
|
|
7460
|
-
|
|
7461
|
-
|
|
7686
|
+
imports: [
|
|
7687
|
+
CommonModule,
|
|
7688
|
+
TimelineItemModule,
|
|
7689
|
+
HorizontalTimelineModule,
|
|
7690
|
+
VerticalTimelineModule,
|
|
7691
|
+
],
|
|
7692
|
+
declarations: [
|
|
7693
|
+
TimelineComponent,
|
|
7694
|
+
],
|
|
7695
|
+
exports: [
|
|
7696
|
+
TimelineComponent,
|
|
7697
|
+
],
|
|
7462
7698
|
})
|
|
7463
7699
|
], TimelineModule);
|
|
7464
7700
|
return TimelineModule;
|
|
7465
7701
|
}());
|
|
7466
7702
|
|
|
7703
|
+
var TimelineItemSeverity;
|
|
7704
|
+
(function (TimelineItemSeverity) {
|
|
7705
|
+
TimelineItemSeverity["Normal"] = "normal";
|
|
7706
|
+
TimelineItemSeverity["Warning"] = "warning";
|
|
7707
|
+
TimelineItemSeverity["Error"] = "error";
|
|
7708
|
+
})(TimelineItemSeverity || (TimelineItemSeverity = {}));
|
|
7709
|
+
|
|
7710
|
+
var TimelineItemSize;
|
|
7711
|
+
(function (TimelineItemSize) {
|
|
7712
|
+
TimelineItemSize["Normal"] = "normal";
|
|
7713
|
+
TimelineItemSize["Small"] = "small";
|
|
7714
|
+
})(TimelineItemSize || (TimelineItemSize = {}));
|
|
7715
|
+
|
|
7716
|
+
var LABEL_MAX_LENGTH = 2;
|
|
7717
|
+
var TimelineItem = /** @class */ (function () {
|
|
7718
|
+
function TimelineItem(params) {
|
|
7719
|
+
this.id = params.id;
|
|
7720
|
+
this.title = params.title;
|
|
7721
|
+
this.description = params.description;
|
|
7722
|
+
this.icon = params.icon;
|
|
7723
|
+
this.label = params.label;
|
|
7724
|
+
this.tooltip = params.tooltip;
|
|
7725
|
+
this.size = params.size || TimelineItemSize.Normal;
|
|
7726
|
+
this.severity = params.severity || TimelineItemSeverity.Normal;
|
|
7727
|
+
this.checkItemIconContent();
|
|
7728
|
+
}
|
|
7729
|
+
TimelineItem.prototype.checkItemIconContent = function () {
|
|
7730
|
+
var _a;
|
|
7731
|
+
if (!this.icon && !this.label) {
|
|
7732
|
+
throw new Error("No icon or label string was passed for the item. Enter an icon or label text");
|
|
7733
|
+
}
|
|
7734
|
+
if (this.icon && this.label) {
|
|
7735
|
+
throw new Error("An icon and label string were passed to the item. Enter an icon or label text");
|
|
7736
|
+
}
|
|
7737
|
+
if (((_a = this.label) === null || _a === void 0 ? void 0 : _a.length) > LABEL_MAX_LENGTH) {
|
|
7738
|
+
throw new Error("Label text is expected to be a maximum of two characters long");
|
|
7739
|
+
}
|
|
7740
|
+
};
|
|
7741
|
+
TimelineItem.prototype.testSize = function (value) {
|
|
7742
|
+
return this.size.valueOf() === value;
|
|
7743
|
+
};
|
|
7744
|
+
TimelineItem.prototype.testSeverity = function (value) {
|
|
7745
|
+
var _a;
|
|
7746
|
+
return ((_a = this.severity) === null || _a === void 0 ? void 0 : _a.valueOf()) === value;
|
|
7747
|
+
};
|
|
7748
|
+
return TimelineItem;
|
|
7749
|
+
}());
|
|
7750
|
+
|
|
7467
7751
|
var TileComponent = /** @class */ (function () {
|
|
7468
7752
|
function TileComponent() {
|
|
7469
7753
|
this.id = "s-tile-" + TileComponent_1.nextId++;
|
|
@@ -9333,5 +9617,5 @@ var CodeEditorModule = /** @class */ (function () {
|
|
|
9333
9617
|
* Generated bundle index. Do not edit.
|
|
9334
9618
|
*/
|
|
9335
9619
|
|
|
9336
|
-
export { AngularComponentsModule, AutocompleteField, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FormField, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, ProductHeaderComponent, ProductHeaderModule, RadioButtonField, RationButtonOption, RowTogllerDirective, Section, SelectField, SelectOption, SidebarComponent, SidebarModule, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TileComponent, TileModule, TimelineComponent, TimelineModule, TokenListComponent, TokenListModule, ValidateErrors, LocalizedCurrencyImpurePipe as ɵa, LocalizedBignumberPipe as ɵb, DecimalField as ɵbb, StructureModule as ɵbc, HeaderComponent as ɵbd, FooterComponent as ɵbe, NumberLocaleOptions as ɵbf, ThumbnailService as ɵbg,
|
|
9620
|
+
export { AngularComponentsModule, AutocompleteField, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FormField, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, ProductHeaderComponent, ProductHeaderModule, RadioButtonField, RationButtonOption, RowTogllerDirective, Section, SelectField, SelectOption, SidebarComponent, SidebarModule, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, ValidateErrors, LocalizedCurrencyImpurePipe as ɵa, LocalizedBignumberPipe as ɵb, DecimalField as ɵbb, StructureModule as ɵbc, HeaderComponent as ɵbd, FooterComponent as ɵbe, NumberLocaleOptions as ɵbf, ThumbnailService as ɵbg, TimelineItemModule as ɵbh, TimelineIconItemComponent as ɵbi, HorizontalTimelineModule as ɵbj, HorizontalTimelineComponent as ɵbk, VerticalTimelineModule as ɵbl, VerticalTimelineComponent as ɵbm, RangeLineComponent as ɵbn, CollapseOptionComponent as ɵbo, CollapsedItemsComponent as ɵbp, VerticalItemsComponent as ɵbq, InfiniteScrollModule as ɵbr, InfiniteScrollDirective as ɵbs, CustomTranslationsModule as ɵbt, CodeEditorComponent as ɵbu, CoreFacade as ɵbv, CodeMirror6Core as ɵbw, LocalizedBignumberImpurePipe as ɵc, EmptyStateGoBackComponent as ɵd, TableColumnsComponent as ɵe, TablePagingComponent as ɵf, InfoSignComponent as ɵg, AutocompleteFieldComponent as ɵh, BooleanFieldComponent as ɵi, CalendarFieldComponent as ɵj, ChipsFieldComponent as ɵk, CurrencyFieldComponent as ɵl, DynamicFieldComponent as ɵm, DynamicFormDirective as ɵn, FieldsetComponent as ɵo, FileUploadComponent$1 as ɵp, LookupFieldComponent as ɵq, NumberFieldComponent as ɵr, BignumberFieldComponent as ɵs, RadioButtonComponent as ɵt, RowComponent as ɵu, SectionComponent as ɵv, SelectFieldComponent as ɵw, TextAreaFieldComponent as ɵx, TextFieldComponent as ɵy, BooleanSwitchFieldComponent as ɵz };
|
|
9337
9621
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|