@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
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { animate, state, style, transition, trigger } from "@angular/animations";
|
|
3
|
+
import { Component, Input } from "@angular/core";
|
|
4
|
+
var TimelineComponent = /** @class */ (function () {
|
|
5
|
+
function TimelineComponent() {
|
|
6
|
+
this.id = "s-timeline-" + TimelineComponent_1.nextId++;
|
|
7
|
+
this.activeIndex = 0;
|
|
8
|
+
}
|
|
9
|
+
TimelineComponent_1 = TimelineComponent;
|
|
10
|
+
TimelineComponent.prototype.barAnimation = function (index, activeIndex) {
|
|
11
|
+
var visited = index < activeIndex;
|
|
12
|
+
var activated = index === activeIndex;
|
|
13
|
+
return visited || activated;
|
|
14
|
+
};
|
|
15
|
+
TimelineComponent.prototype.afterBarAnimation = function (index, activeIndex) {
|
|
16
|
+
var visited = index < activeIndex;
|
|
17
|
+
var activated = index === activeIndex - 1;
|
|
18
|
+
return visited || activated;
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(TimelineComponent.prototype, "visibledStep", {
|
|
21
|
+
get: function () {
|
|
22
|
+
return this.steps.filter(function (step) { return !step.hidden; });
|
|
23
|
+
},
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true
|
|
26
|
+
});
|
|
27
|
+
var TimelineComponent_1;
|
|
28
|
+
TimelineComponent.nextId = 0;
|
|
29
|
+
__decorate([
|
|
30
|
+
Input()
|
|
31
|
+
], TimelineComponent.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
Input()
|
|
34
|
+
], TimelineComponent.prototype, "steps", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Input()
|
|
37
|
+
], TimelineComponent.prototype, "activeIndex", void 0);
|
|
38
|
+
TimelineComponent = TimelineComponent_1 = __decorate([
|
|
39
|
+
Component({
|
|
40
|
+
selector: "s-timeline",
|
|
41
|
+
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",
|
|
42
|
+
host: {
|
|
43
|
+
"aria-orientation": "horizontal",
|
|
44
|
+
role: "tablist",
|
|
45
|
+
"tab-index": "0",
|
|
46
|
+
},
|
|
47
|
+
animations: [
|
|
48
|
+
trigger("beforeActiveDesative", [
|
|
49
|
+
state("active", style({
|
|
50
|
+
"background-position": "left bottom",
|
|
51
|
+
})),
|
|
52
|
+
state("desactive", style({
|
|
53
|
+
"background-position": "right bottom",
|
|
54
|
+
})),
|
|
55
|
+
transition("active => desactive", [animate("50ms 100ms linear")]),
|
|
56
|
+
transition("desactive => active", [animate("50ms 250ms linear")]),
|
|
57
|
+
]),
|
|
58
|
+
trigger("activeDesative", [
|
|
59
|
+
state("active", style({
|
|
60
|
+
"background-position": "left bottom",
|
|
61
|
+
})),
|
|
62
|
+
state("desactive", style({
|
|
63
|
+
"background-position": "right bottom",
|
|
64
|
+
})),
|
|
65
|
+
transition("active => desactive", [animate("100ms 150ms linear")]),
|
|
66
|
+
transition("desactive => active", [animate("100ms 150ms linear")]),
|
|
67
|
+
]),
|
|
68
|
+
trigger("afterActiveDesative", [
|
|
69
|
+
state("active", style({
|
|
70
|
+
"background-position": "left bottom",
|
|
71
|
+
})),
|
|
72
|
+
state("desactive", style({
|
|
73
|
+
"background-position": "right bottom",
|
|
74
|
+
})),
|
|
75
|
+
transition("active => desactive", [animate("50ms 250ms linear")]),
|
|
76
|
+
transition("desactive => active", [animate("50ms 100ms linear")]),
|
|
77
|
+
]),
|
|
78
|
+
],
|
|
79
|
+
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}}"]
|
|
80
|
+
})
|
|
81
|
+
], TimelineComponent);
|
|
82
|
+
return TimelineComponent;
|
|
83
|
+
}());
|
|
84
|
+
export { TimelineComponent };
|
|
85
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZWxpbmUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHNlbmlvcnNpc3RlbWFzL2FuZ3VsYXItY29tcG9uZW50cy8iLCJzb3VyY2VzIjpbImNvbXBvbmVudHM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G4gICAgYXJpYUxhYmVsPzogc3RyaW5nO1xuICAgIGFyaWFDb250cm9scz86IHN0cmluZztcbiAgICBoaWRkZW4/OiBib29sZWFuO1xuICAgIHN0ZXBJY29uPzogc3RyaW5nO1xufVxuXG5AQ29tcG9uZW50KHtcbiAgICBzZWxlY3RvcjogXCJzLXRpbWVsaW5lXCIsXG4gICAgdGVtcGxhdGVVcmw6IFwiLi90aW1lbGluZS5jb21wb25lbnQuaHRtbFwiLFxuICAgIHN0eWxlVXJsczogW1wiLi90aW1lbGluZS5jb21wb25lbnQuc2Nzc1wiXSxcbiAgICBob3N0OiB7XG4gICAgICAgIFwiYXJpYS1vcmllbnRhdGlvblwiOiBcImhvcml6b250YWxcIixcbiAgICAgICAgcm9sZTogXCJ0YWJsaXN0XCIsXG4gICAgICAgIFwidGFiLWluZGV4XCI6IFwiMFwiLFxuICAgIH0sXG4gICAgYW5pbWF0aW9uczogW1xuICAgICAgICB0cmlnZ2VyKFwiYmVmb3JlQWN0aXZlRGVzYXRpdmVcIiwgW1xuICAgICAgICAgICAgc3RhdGUoXG4gICAgICAgICAgICAgICAgXCJhY3RpdmVcIixcbiAgICAgICAgICAgICAgICBzdHlsZSh7XG4gICAgICAgICAgICAgICAgICAgIFwiYmFja2dyb3VuZC1wb3NpdGlvblwiOiBcImxlZnQgYm90dG9tXCIsXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICksXG4gICAgICAgICAgICBzdGF0ZShcbiAgICAgICAgICAgICAgICBcImRlc2FjdGl2ZVwiLFxuICAgICAgICAgICAgICAgIHN0eWxlKHtcbiAgICAgICAgICAgICAgICAgICAgXCJiYWNrZ3JvdW5kLXBvc2l0aW9uXCI6IFwicmlnaHQgYm90dG9tXCIsXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICksXG4gICAgICAgICAgICB0cmFuc2l0aW9uKFwiYWN0aXZlID0+IGRlc2FjdGl2ZVwiLCBbYW5pbWF0ZShcIjUwbXMgMTAwbXMgbGluZWFyXCIpXSksXG4gICAgICAgICAgICB0cmFuc2l0aW9uKFwiZGVzYWN0aXZlID0+IGFjdGl2ZVwiLCBbYW5pbWF0ZShcIjUwbXMgMjUwbXMgbGluZWFyXCIpXSksXG4gICAgICAgIF0pLFxuICAgICAgICB0cmlnZ2VyKFwiYWN0aXZlRGVzYXRpdmVcIiwgW1xuICAgICAgICAgICAgc3RhdGUoXG4gICAgICAgICAgICAgICAgXCJhY3RpdmVcIixcbiAgICAgICAgICAgICAgICBzdHlsZSh7XG4gICAgICAgICAgICAgICAgICAgIFwiYmFja2dyb3VuZC1wb3NpdGlvblwiOiBcImxlZnQgYm90dG9tXCIsXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICksXG4gICAgICAgICAgICBzdGF0ZShcbiAgICAgICAgICAgICAgICBcImRlc2FjdGl2ZVwiLFxuICAgICAgICAgICAgICAgIHN0eWxlKHtcbiAgICAgICAgICAgICAgICAgICAgXCJiYWNrZ3JvdW5kLXBvc2l0aW9uXCI6IFwicmlnaHQgYm90dG9tXCIsXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICksXG4gICAgICAgICAgICB0cmFuc2l0aW9uKFwiYWN0aXZlID0+IGRlc2FjdGl2ZVwiLCBbYW5pbWF0ZShcIjEwMG1zIDE1MG1zIGxpbmVhclwiKV0pLFxuICAgICAgICAgICAgdHJhbnNpdGlvbihcImRlc2FjdGl2ZSA9PiBhY3RpdmVcIiwgW2FuaW1hdGUoXCIxMDBtcyAxNTBtcyBsaW5lYXJcIildKSxcbiAgICAgICAgXSksXG4gICAgICAgIHRyaWdnZXIoXCJhZnRlckFjdGl2ZURlc2F0aXZlXCIsIFtcbiAgICAgICAgICAgIHN0YXRlKFxuICAgICAgICAgICAgICAgIFwiYWN0aXZlXCIsXG4gICAgICAgICAgICAgICAgc3R5bGUoe1xuICAgICAgICAgICAgICAgICAgICBcImJhY2tncm91bmQtcG9zaXRpb25cIjogXCJsZWZ0IGJvdHRvbVwiLFxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICApLFxuICAgICAgICAgICAgc3RhdGUoXG4gICAgICAgICAgICAgICAgXCJkZXNhY3RpdmVcIixcbiAgICAgICAgICAgICAgICBzdHlsZSh7XG4gICAgICAgICAgICAgICAgICAgIFwiYmFja2dyb3VuZC1wb3NpdGlvblwiOiBcInJpZ2h0IGJvdHRvbVwiLFxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICApLFxuICAgICAgICAgICAgdHJhbnNpdGlvbihcImFjdGl2ZSA9PiBkZXNhY3RpdmVcIiwgW2FuaW1hdGUoXCI1MG1zIDI1MG1zIGxpbmVhclwiKV0pLFxuICAgICAgICAgICAgdHJhbnNpdGlvbihcImRlc2FjdGl2ZSA9PiBhY3RpdmVcIiwgW2FuaW1hdGUoXCI1MG1zIDEwMG1zIGxpbmVhclwiKV0pLFxuICAgICAgICBdKSxcbiAgICBdLFxufSlcbmV4cG9ydCBjbGFzcyBUaW1lbGluZUNvbXBvbmVudCB7XG4gICAgcHVibGljIHN0YXRpYyBuZXh0SWQgPSAwO1xuXG4gICAgQElucHV0KClcbiAgICBwdWJsaWMgaWQgPSBgcy10aW1lbGluZS0ke1RpbWVsaW5lQ29tcG9uZW50Lm5leHRJZCsrfWA7XG4gICAgQElucHV0KClcbiAgICBwdWJsaWMgc3RlcHM6IFRpbWVsaW5lU3RlcFtdO1xuICAgIEBJbnB1dCgpXG4gICAgcHVibGljIGFjdGl2ZUluZGV4ID0gMDtcblxuICAgIHB1YmxpYyBiYXJBbmltYXRpb24oaW5kZXg6IG51bWJlciwgYWN0aXZlSW5kZXg6IG51bWJlcik6IGJvb2xlYW4ge1xuICAgICAgICBjb25zdCB2aXNpdGVkID0gaW5kZXggPCBhY3RpdmVJbmRleDtcbiAgICAgICAgY29uc3QgYWN0aXZhdGVkID0gaW5kZXggPT09IGFjdGl2ZUluZGV4O1xuICAgICAgICByZXR1cm4gdmlzaXRlZCB8fCBhY3RpdmF0ZWQ7XG4gICAgfVxuXG4gICAgcHVibGljIGFmdGVyQmFyQW5pbWF0aW9uKGluZGV4OiBudW1iZXIsIGFjdGl2ZUluZGV4OiBudW1iZXIpOiBib29sZWFuIHtcbiAgICAgICAgY29uc3QgdmlzaXRlZCA9IGluZGV4IDwgYWN0aXZlSW5kZXg7XG4gICAgICAgIGNvbnN0IGFjdGl2YXRlZCA9IGluZGV4ID09PSBhY3RpdmVJbmRleCAtIDE7XG4gICAgICAgIHJldHVybiB2aXNpdGVkIHx8IGFjdGl2YXRlZDtcbiAgICB9XG5cbiAgICBnZXQgdmlzaWJsZWRTdGVwKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5zdGVwcy5maWx0ZXIoKHN0ZXA6IFRpbWVsaW5lU3RlcCkgPT4gIXN0ZXAuaGlkZGVuKTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { CommonModule } from "@angular/common";
|
|
3
|
+
import { NgModule } from "@angular/core";
|
|
4
|
+
import { TooltipModule } from "primeng/tooltip";
|
|
5
|
+
import { TimelineComponent } from "./timeline.component";
|
|
6
|
+
var TimelineModule = /** @class */ (function () {
|
|
7
|
+
function TimelineModule() {
|
|
8
|
+
}
|
|
9
|
+
TimelineModule = __decorate([
|
|
10
|
+
NgModule({
|
|
11
|
+
imports: [CommonModule, TooltipModule],
|
|
12
|
+
declarations: [TimelineComponent],
|
|
13
|
+
exports: [TimelineComponent],
|
|
14
|
+
})
|
|
15
|
+
], TimelineModule);
|
|
16
|
+
return TimelineModule;
|
|
17
|
+
}());
|
|
18
|
+
export { TimelineModule };
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZWxpbmUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHNlbmlvcnNpc3RlbWFzL2FuZ3VsYXItY29tcG9uZW50cy8iLCJzb3VyY2V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ZXhwb3J0czogW1RpbWVsaW5lQ29tcG9uZW50XSxcbn0pXG5leHBvcnQgY2xhc3MgVGltZWxpbmVNb2R1bGUgeyB9XG4iXX0=
|
package/esm5/public-api.js
CHANGED
|
@@ -25,6 +25,7 @@ export * from "./components/product-header/index";
|
|
|
25
25
|
export * from "./components/sidebar/index";
|
|
26
26
|
export * from "./components/stats-card/index";
|
|
27
27
|
export * from "./components/steps/index";
|
|
28
|
+
export * from "./components/timeline/index";
|
|
28
29
|
export * from "./components/table-header/index";
|
|
29
30
|
export * from "./components/table/index";
|
|
30
31
|
export * from "./components/thumbnail/index";
|
|
@@ -34,4 +35,4 @@ export * from "./components/utils/index";
|
|
|
34
35
|
export * from "./components/global-search/index";
|
|
35
36
|
export * from "./components/code-editor/index";
|
|
36
37
|
export * from "./angular-components.module";
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzZW5pb3JzaXN0ZW1hcy9hbmd1bGFyLWNvbXBvbmVudHMvIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYywyQkFBMkIsQ0FBQztBQUMxQyxjQUFjLGtDQUFrQyxDQUFDO0FBQ2pELGNBQWMsa0NBQWtDLENBQUM7QUFDakQsY0FBYyxtQ0FBbUMsQ0FBQztBQUNsRCxjQUFjLGtDQUFrQyxDQUFDO0FBQ2pELGNBQWMsaUNBQWlDLENBQUM7QUFDaEQsY0FBYyxxQ0FBcUMsQ0FBQztBQUNwRCxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGNBQWMsZ0NBQWdDLENBQUM7QUFDL0MsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxjQUFjLDhCQUE4QixDQ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W50cy9vYmplY3QtY2FyZC9pbmRleFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vY29tcG9uZW50cy9wcm9kdWN0LWhlYWRlci9pbmRleFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vY29tcG9uZW50cy9zaWRlYmFyL2luZGV4XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jb21wb25lbnRzL3N0YXRzLWNhcmQvaW5kZXhcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2NvbXBvbmVudHMvc3RlcHMvaW5kZXhcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2NvbXBvbmVudHMvdGltZWxpbmUvaW5kZXhcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2NvbXBvbmVudHMvdGFibGUtaGVhZGVyL2luZGV4XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jb21wb25lbnRzL3RhYmxlL2luZGV4XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jb21wb25lbnRzL3RodW1ibmFpbC9pbmRleFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vY29tcG9uZW50cy90aWxlL2luZGV4XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9jb21wb25lbnRzL3Rva2VuLWxpc3QvaW5kZXhcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2NvbXBvbmVudHMvdXRpbHMvaW5kZXhcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2NvbXBvbmVudHMvZ2xvYmFsLXNlYXJjaC9pbmRleFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vY29tcG9uZW50cy9jb2RlLWVkaXRvci9pbmRleFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vYW5ndWxhci1jb21wb25lbnRzLm1vZHVsZVwiO1xuIl19
|
|
@@ -1058,7 +1058,7 @@ class NumberLocaleOptions {
|
|
|
1058
1058
|
this.thousandsSeparator = ".";
|
|
1059
1059
|
this.decimalSeparator = ",";
|
|
1060
1060
|
this.currencySymbol = "R$";
|
|
1061
|
-
Object.
|
|
1061
|
+
Object.assign(this, config);
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
1064
|
|
|
@@ -3510,23 +3510,25 @@ let TableFrozenPositionDirective = class TableFrozenPositionDirective {
|
|
|
3510
3510
|
this.el = el;
|
|
3511
3511
|
this.host = host;
|
|
3512
3512
|
this.sTableFrozenPosition = "left";
|
|
3513
|
+
this.onColumnsChanged = new EventEmitter();
|
|
3513
3514
|
this.host.onColResize.subscribe(() => {
|
|
3514
3515
|
this.handleColResize();
|
|
3515
3516
|
});
|
|
3516
3517
|
window.addEventListener("resize", this.handleWindowResize.bind(this));
|
|
3517
3518
|
const componentId = new Date().getTime();
|
|
3519
|
+
const htmlHead = document.getElementsByTagName("head")[0];
|
|
3518
3520
|
this.resetRowHeightClassName = `resetTableRowsHeight_${componentId}`;
|
|
3519
3521
|
const styleReset = document.createElement("style");
|
|
3520
3522
|
styleReset.innerHTML = `.${this.resetRowHeightClassName} tbody > tr, .${this.resetRowHeightClassName} thead > tr { height: auto; }`;
|
|
3521
|
-
|
|
3523
|
+
htmlHead.appendChild(styleReset);
|
|
3522
3524
|
this.fixBodyRowClassName = `fixTableBodyRowsHeight_${componentId}`;
|
|
3523
3525
|
this.styleFixBodyRowHeight = document.createElement("style");
|
|
3524
3526
|
this.styleFixBodyRowHeight.innerHTML = `.${this.fixBodyRowClassName} tbody > tr { height: auto; }`;
|
|
3525
|
-
|
|
3527
|
+
htmlHead.appendChild(this.styleFixBodyRowHeight);
|
|
3526
3528
|
this.fixHeadRowClassName = `fixTableHeadRowsHeight_${componentId}`;
|
|
3527
3529
|
this.styleFixHeadRowHeight = document.createElement("style");
|
|
3528
3530
|
this.styleFixHeadRowHeight.innerHTML = `.${this.fixHeadRowClassName} thead > tr { height: auto; }`;
|
|
3529
|
-
|
|
3531
|
+
htmlHead.appendChild(this.styleFixHeadRowHeight);
|
|
3530
3532
|
}
|
|
3531
3533
|
set sTableFrozenValue(_) {
|
|
3532
3534
|
setTimeout(() => {
|
|
@@ -3537,9 +3539,26 @@ let TableFrozenPositionDirective = class TableFrozenPositionDirective {
|
|
|
3537
3539
|
if (this.sTableFrozenPosition === "left")
|
|
3538
3540
|
return;
|
|
3539
3541
|
this.applyStylesForTable();
|
|
3542
|
+
this.setUpColumnMonitoring();
|
|
3540
3543
|
}
|
|
3541
3544
|
ngOnDestroy() {
|
|
3542
3545
|
window.removeEventListener("resize", this.handleWindowResize.bind(this));
|
|
3546
|
+
if (this.tableHeadObservable) {
|
|
3547
|
+
this.tableHeadObservable.disconnect();
|
|
3548
|
+
}
|
|
3549
|
+
}
|
|
3550
|
+
setUpColumnMonitoring() {
|
|
3551
|
+
this.tableHeadObservable = new MutationObserver(() => {
|
|
3552
|
+
this.synchronizeRowHeight();
|
|
3553
|
+
this.onColumnsChanged.emit(null);
|
|
3554
|
+
});
|
|
3555
|
+
const tableHeads = [...this.el.nativeElement.getElementsByTagName("thead")];
|
|
3556
|
+
tableHeads.forEach((tableHead) => {
|
|
3557
|
+
this.tableHeadObservable.observe(tableHead, {
|
|
3558
|
+
subtree: true,
|
|
3559
|
+
childList: true
|
|
3560
|
+
});
|
|
3561
|
+
});
|
|
3543
3562
|
}
|
|
3544
3563
|
applyStylesForTable() {
|
|
3545
3564
|
const scrollWrapper = this.el.nativeElement.querySelector(".ui-table-scrollable-wrapper");
|
|
@@ -6651,6 +6670,91 @@ StepsModule = __decorate([
|
|
|
6651
6670
|
})
|
|
6652
6671
|
], StepsModule);
|
|
6653
6672
|
|
|
6673
|
+
var TimelineComponent_1;
|
|
6674
|
+
let TimelineComponent = TimelineComponent_1 = class TimelineComponent {
|
|
6675
|
+
constructor() {
|
|
6676
|
+
this.id = `s-timeline-${TimelineComponent_1.nextId++}`;
|
|
6677
|
+
this.activeIndex = 0;
|
|
6678
|
+
}
|
|
6679
|
+
barAnimation(index, activeIndex) {
|
|
6680
|
+
const visited = index < activeIndex;
|
|
6681
|
+
const activated = index === activeIndex;
|
|
6682
|
+
return visited || activated;
|
|
6683
|
+
}
|
|
6684
|
+
afterBarAnimation(index, activeIndex) {
|
|
6685
|
+
const visited = index < activeIndex;
|
|
6686
|
+
const activated = index === activeIndex - 1;
|
|
6687
|
+
return visited || activated;
|
|
6688
|
+
}
|
|
6689
|
+
get visibledStep() {
|
|
6690
|
+
return this.steps.filter((step) => !step.hidden);
|
|
6691
|
+
}
|
|
6692
|
+
};
|
|
6693
|
+
TimelineComponent.nextId = 0;
|
|
6694
|
+
__decorate([
|
|
6695
|
+
Input()
|
|
6696
|
+
], TimelineComponent.prototype, "id", void 0);
|
|
6697
|
+
__decorate([
|
|
6698
|
+
Input()
|
|
6699
|
+
], TimelineComponent.prototype, "steps", void 0);
|
|
6700
|
+
__decorate([
|
|
6701
|
+
Input()
|
|
6702
|
+
], TimelineComponent.prototype, "activeIndex", void 0);
|
|
6703
|
+
TimelineComponent = TimelineComponent_1 = __decorate([
|
|
6704
|
+
Component({
|
|
6705
|
+
selector: "s-timeline",
|
|
6706
|
+
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",
|
|
6707
|
+
host: {
|
|
6708
|
+
"aria-orientation": "horizontal",
|
|
6709
|
+
role: "tablist",
|
|
6710
|
+
"tab-index": "0",
|
|
6711
|
+
},
|
|
6712
|
+
animations: [
|
|
6713
|
+
trigger("beforeActiveDesative", [
|
|
6714
|
+
state("active", style$7({
|
|
6715
|
+
"background-position": "left bottom",
|
|
6716
|
+
})),
|
|
6717
|
+
state("desactive", style$7({
|
|
6718
|
+
"background-position": "right bottom",
|
|
6719
|
+
})),
|
|
6720
|
+
transition("active => desactive", [animate("50ms 100ms linear")]),
|
|
6721
|
+
transition("desactive => active", [animate("50ms 250ms linear")]),
|
|
6722
|
+
]),
|
|
6723
|
+
trigger("activeDesative", [
|
|
6724
|
+
state("active", style$7({
|
|
6725
|
+
"background-position": "left bottom",
|
|
6726
|
+
})),
|
|
6727
|
+
state("desactive", style$7({
|
|
6728
|
+
"background-position": "right bottom",
|
|
6729
|
+
})),
|
|
6730
|
+
transition("active => desactive", [animate("100ms 150ms linear")]),
|
|
6731
|
+
transition("desactive => active", [animate("100ms 150ms linear")]),
|
|
6732
|
+
]),
|
|
6733
|
+
trigger("afterActiveDesative", [
|
|
6734
|
+
state("active", style$7({
|
|
6735
|
+
"background-position": "left bottom",
|
|
6736
|
+
})),
|
|
6737
|
+
state("desactive", style$7({
|
|
6738
|
+
"background-position": "right bottom",
|
|
6739
|
+
})),
|
|
6740
|
+
transition("active => desactive", [animate("50ms 250ms linear")]),
|
|
6741
|
+
transition("desactive => active", [animate("50ms 100ms linear")]),
|
|
6742
|
+
]),
|
|
6743
|
+
],
|
|
6744
|
+
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}}"]
|
|
6745
|
+
})
|
|
6746
|
+
], TimelineComponent);
|
|
6747
|
+
|
|
6748
|
+
let TimelineModule = class TimelineModule {
|
|
6749
|
+
};
|
|
6750
|
+
TimelineModule = __decorate([
|
|
6751
|
+
NgModule({
|
|
6752
|
+
imports: [CommonModule, TooltipModule],
|
|
6753
|
+
declarations: [TimelineComponent],
|
|
6754
|
+
exports: [TimelineComponent],
|
|
6755
|
+
})
|
|
6756
|
+
], TimelineModule);
|
|
6757
|
+
|
|
6654
6758
|
var TileComponent_1;
|
|
6655
6759
|
let TileComponent = TileComponent_1 = class TileComponent {
|
|
6656
6760
|
constructor() {
|
|
@@ -8401,5 +8505,5 @@ CodeEditorModule = __decorate([
|
|
|
8401
8505
|
* Generated bundle index. Do not edit.
|
|
8402
8506
|
*/
|
|
8403
8507
|
|
|
8404
|
-
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, TokenListComponent, TokenListModule, ValidateErrors, LocalizedCurrencyImpurePipe as ɵa, LocalizedBignumberPipe as ɵb, DecimalField as ɵba, StructureModule as ɵbb, HeaderComponent as ɵbc, FooterComponent as ɵbd, NumberLocaleOptions as ɵbe, ThumbnailService as ɵbf, InfiniteScrollModule as ɵbg, InfiniteScrollDirective as ɵbh, CustomTranslationsModule as ɵbi, CodeEditorComponent as ɵbj, CoreFacade as ɵbk, CodeMirror6Core as ɵbl, 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 };
|
|
8508
|
+
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 ɵba, StructureModule as ɵbb, HeaderComponent as ɵbc, FooterComponent as ɵbd, NumberLocaleOptions as ɵbe, ThumbnailService as ɵbf, InfiniteScrollModule as ɵbg, InfiniteScrollDirective as ɵbh, CustomTranslationsModule as ɵbi, CodeEditorComponent as ɵbj, CoreFacade as ɵbk, CodeMirror6Core as ɵbl, 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 };
|
|
8405
8509
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|