@seniorsistemas/angular-components 14.14.3 → 14.15.1
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 +120 -5
- 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/table/frozen-position/frozen-position.directive.d.ts +4 -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/locale/options/number.js +2 -2
- package/esm2015/components/table/frozen-position/frozen-position.directive.js +24 -5
- 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/locale/options/number.js +2 -3
- package/esm5/components/table/frozen-position/frozen-position.directive.js +25 -5
- 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 +109 -5
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +119 -6
- 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
|
@@ -1278,12 +1278,11 @@
|
|
|
1278
1278
|
|
|
1279
1279
|
var NumberLocaleOptions = /** @class */ (function () {
|
|
1280
1280
|
function NumberLocaleOptions(config) {
|
|
1281
|
-
var _this = this;
|
|
1282
1281
|
if (config === void 0) { config = {}; }
|
|
1283
1282
|
this.thousandsSeparator = ".";
|
|
1284
1283
|
this.decimalSeparator = ",";
|
|
1285
1284
|
this.currencySymbol = "R$";
|
|
1286
|
-
Object.
|
|
1285
|
+
Object.assign(this, config);
|
|
1287
1286
|
}
|
|
1288
1287
|
return NumberLocaleOptions;
|
|
1289
1288
|
}());
|
|
@@ -3947,23 +3946,25 @@
|
|
|
3947
3946
|
this.el = el;
|
|
3948
3947
|
this.host = host;
|
|
3949
3948
|
this.sTableFrozenPosition = "left";
|
|
3949
|
+
this.onColumnsChanged = new core.EventEmitter();
|
|
3950
3950
|
this.host.onColResize.subscribe(function () {
|
|
3951
3951
|
_this.handleColResize();
|
|
3952
3952
|
});
|
|
3953
3953
|
window.addEventListener("resize", this.handleWindowResize.bind(this));
|
|
3954
3954
|
var componentId = new Date().getTime();
|
|
3955
|
+
var htmlHead = document.getElementsByTagName("head")[0];
|
|
3955
3956
|
this.resetRowHeightClassName = "resetTableRowsHeight_" + componentId;
|
|
3956
3957
|
var styleReset = document.createElement("style");
|
|
3957
3958
|
styleReset.innerHTML = "." + this.resetRowHeightClassName + " tbody > tr, ." + this.resetRowHeightClassName + " thead > tr { height: auto; }";
|
|
3958
|
-
|
|
3959
|
+
htmlHead.appendChild(styleReset);
|
|
3959
3960
|
this.fixBodyRowClassName = "fixTableBodyRowsHeight_" + componentId;
|
|
3960
3961
|
this.styleFixBodyRowHeight = document.createElement("style");
|
|
3961
3962
|
this.styleFixBodyRowHeight.innerHTML = "." + this.fixBodyRowClassName + " tbody > tr { height: auto; }";
|
|
3962
|
-
|
|
3963
|
+
htmlHead.appendChild(this.styleFixBodyRowHeight);
|
|
3963
3964
|
this.fixHeadRowClassName = "fixTableHeadRowsHeight_" + componentId;
|
|
3964
3965
|
this.styleFixHeadRowHeight = document.createElement("style");
|
|
3965
3966
|
this.styleFixHeadRowHeight.innerHTML = "." + this.fixHeadRowClassName + " thead > tr { height: auto; }";
|
|
3966
|
-
|
|
3967
|
+
htmlHead.appendChild(this.styleFixHeadRowHeight);
|
|
3967
3968
|
}
|
|
3968
3969
|
Object.defineProperty(TableFrozenPositionDirective.prototype, "sTableFrozenValue", {
|
|
3969
3970
|
set: function (_) {
|
|
@@ -3979,9 +3980,27 @@
|
|
|
3979
3980
|
if (this.sTableFrozenPosition === "left")
|
|
3980
3981
|
return;
|
|
3981
3982
|
this.applyStylesForTable();
|
|
3983
|
+
this.setUpColumnMonitoring();
|
|
3982
3984
|
};
|
|
3983
3985
|
TableFrozenPositionDirective.prototype.ngOnDestroy = function () {
|
|
3984
3986
|
window.removeEventListener("resize", this.handleWindowResize.bind(this));
|
|
3987
|
+
if (this.tableHeadObservable) {
|
|
3988
|
+
this.tableHeadObservable.disconnect();
|
|
3989
|
+
}
|
|
3990
|
+
};
|
|
3991
|
+
TableFrozenPositionDirective.prototype.setUpColumnMonitoring = function () {
|
|
3992
|
+
var _this = this;
|
|
3993
|
+
this.tableHeadObservable = new MutationObserver(function () {
|
|
3994
|
+
_this.synchronizeRowHeight();
|
|
3995
|
+
_this.onColumnsChanged.emit(null);
|
|
3996
|
+
});
|
|
3997
|
+
var tableHeads = __spread(this.el.nativeElement.getElementsByTagName("thead"));
|
|
3998
|
+
tableHeads.forEach(function (tableHead) {
|
|
3999
|
+
_this.tableHeadObservable.observe(tableHead, {
|
|
4000
|
+
subtree: true,
|
|
4001
|
+
childList: true
|
|
4002
|
+
});
|
|
4003
|
+
});
|
|
3985
4004
|
};
|
|
3986
4005
|
TableFrozenPositionDirective.prototype.applyStylesForTable = function () {
|
|
3987
4006
|
var scrollWrapper = this.el.nativeElement.querySelector(".ui-table-scrollable-wrapper");
|
|
@@ -7342,6 +7361,100 @@
|
|
|
7342
7361
|
return StepsModule;
|
|
7343
7362
|
}());
|
|
7344
7363
|
|
|
7364
|
+
var TimelineComponent = /** @class */ (function () {
|
|
7365
|
+
function TimelineComponent() {
|
|
7366
|
+
this.id = "s-timeline-" + TimelineComponent_1.nextId++;
|
|
7367
|
+
this.activeIndex = 0;
|
|
7368
|
+
}
|
|
7369
|
+
TimelineComponent_1 = TimelineComponent;
|
|
7370
|
+
TimelineComponent.prototype.barAnimation = function (index, activeIndex) {
|
|
7371
|
+
var visited = index < activeIndex;
|
|
7372
|
+
var activated = index === activeIndex;
|
|
7373
|
+
return visited || activated;
|
|
7374
|
+
};
|
|
7375
|
+
TimelineComponent.prototype.afterBarAnimation = function (index, activeIndex) {
|
|
7376
|
+
var visited = index < activeIndex;
|
|
7377
|
+
var activated = index === activeIndex - 1;
|
|
7378
|
+
return visited || activated;
|
|
7379
|
+
};
|
|
7380
|
+
Object.defineProperty(TimelineComponent.prototype, "visibledStep", {
|
|
7381
|
+
get: function () {
|
|
7382
|
+
return this.steps.filter(function (step) { return !step.hidden; });
|
|
7383
|
+
},
|
|
7384
|
+
enumerable: true,
|
|
7385
|
+
configurable: true
|
|
7386
|
+
});
|
|
7387
|
+
var TimelineComponent_1;
|
|
7388
|
+
TimelineComponent.nextId = 0;
|
|
7389
|
+
__decorate([
|
|
7390
|
+
core.Input()
|
|
7391
|
+
], TimelineComponent.prototype, "id", void 0);
|
|
7392
|
+
__decorate([
|
|
7393
|
+
core.Input()
|
|
7394
|
+
], TimelineComponent.prototype, "steps", void 0);
|
|
7395
|
+
__decorate([
|
|
7396
|
+
core.Input()
|
|
7397
|
+
], TimelineComponent.prototype, "activeIndex", void 0);
|
|
7398
|
+
TimelineComponent = TimelineComponent_1 = __decorate([
|
|
7399
|
+
core.Component({
|
|
7400
|
+
selector: "s-timeline",
|
|
7401
|
+
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",
|
|
7402
|
+
host: {
|
|
7403
|
+
"aria-orientation": "horizontal",
|
|
7404
|
+
role: "tablist",
|
|
7405
|
+
"tab-index": "0",
|
|
7406
|
+
},
|
|
7407
|
+
animations: [
|
|
7408
|
+
animations.trigger("beforeActiveDesative", [
|
|
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 100ms linear")]),
|
|
7416
|
+
animations.transition("desactive => active", [animations.animate("50ms 250ms linear")]),
|
|
7417
|
+
]),
|
|
7418
|
+
animations.trigger("activeDesative", [
|
|
7419
|
+
animations.state("active", animations.style({
|
|
7420
|
+
"background-position": "left bottom",
|
|
7421
|
+
})),
|
|
7422
|
+
animations.state("desactive", animations.style({
|
|
7423
|
+
"background-position": "right bottom",
|
|
7424
|
+
})),
|
|
7425
|
+
animations.transition("active => desactive", [animations.animate("100ms 150ms linear")]),
|
|
7426
|
+
animations.transition("desactive => active", [animations.animate("100ms 150ms linear")]),
|
|
7427
|
+
]),
|
|
7428
|
+
animations.trigger("afterActiveDesative", [
|
|
7429
|
+
animations.state("active", animations.style({
|
|
7430
|
+
"background-position": "left bottom",
|
|
7431
|
+
})),
|
|
7432
|
+
animations.state("desactive", animations.style({
|
|
7433
|
+
"background-position": "right bottom",
|
|
7434
|
+
})),
|
|
7435
|
+
animations.transition("active => desactive", [animations.animate("50ms 250ms linear")]),
|
|
7436
|
+
animations.transition("desactive => active", [animations.animate("50ms 100ms linear")]),
|
|
7437
|
+
]),
|
|
7438
|
+
],
|
|
7439
|
+
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}}"]
|
|
7440
|
+
})
|
|
7441
|
+
], TimelineComponent);
|
|
7442
|
+
return TimelineComponent;
|
|
7443
|
+
}());
|
|
7444
|
+
|
|
7445
|
+
var TimelineModule = /** @class */ (function () {
|
|
7446
|
+
function TimelineModule() {
|
|
7447
|
+
}
|
|
7448
|
+
TimelineModule = __decorate([
|
|
7449
|
+
core.NgModule({
|
|
7450
|
+
imports: [common.CommonModule, tooltip.TooltipModule],
|
|
7451
|
+
declarations: [TimelineComponent],
|
|
7452
|
+
exports: [TimelineComponent],
|
|
7453
|
+
})
|
|
7454
|
+
], TimelineModule);
|
|
7455
|
+
return TimelineModule;
|
|
7456
|
+
}());
|
|
7457
|
+
|
|
7345
7458
|
var TileComponent = /** @class */ (function () {
|
|
7346
7459
|
function TileComponent() {
|
|
7347
7460
|
this.id = "s-tile-" + TileComponent_1.nextId++;
|
|
@@ -9317,6 +9430,8 @@
|
|
|
9317
9430
|
exports.ThumbnailModule = ThumbnailModule;
|
|
9318
9431
|
exports.TileComponent = TileComponent;
|
|
9319
9432
|
exports.TileModule = TileModule;
|
|
9433
|
+
exports.TimelineComponent = TimelineComponent;
|
|
9434
|
+
exports.TimelineModule = TimelineModule;
|
|
9320
9435
|
exports.TokenListComponent = TokenListComponent;
|
|
9321
9436
|
exports.TokenListModule = TokenListModule;
|
|
9322
9437
|
exports.ɵa = LocalizedCurrencyImpurePipe;
|