@seniorsistemas/angular-components 14.14.4 → 14.16.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 +182 -23
- 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/dynamic-form/components/fields/boolean/boolean-switch-field.component.d.ts +7 -0
- package/components/dynamic-form/configurations/fields/boolean-switch-field.d.ts +8 -0
- package/components/dynamic-form/configurations/fields/field.d.ts +2 -0
- package/components/dynamic-form/configurations/form-field.d.ts +1 -0
- 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/dynamic-form/components/fields/boolean/boolean-switch-field.component.js +17 -0
- package/esm2015/components/dynamic-form/configurations/dynamic-config.js +6 -2
- package/esm2015/components/dynamic-form/configurations/fields/boolean-field.js +2 -1
- package/esm2015/components/dynamic-form/configurations/fields/boolean-switch-field.js +9 -0
- package/esm2015/components/dynamic-form/configurations/fields/field.js +2 -1
- package/esm2015/components/dynamic-form/configurations/form-field.js +5 -1
- package/esm2015/components/dynamic-form/dynamic-form.js +5 -1
- package/esm2015/components/dynamic-form/dynamic-form.module.js +9 -4
- 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/esm2015/seniorsistemas-angular-components.js +14 -13
- package/esm5/components/dynamic-form/components/fields/boolean/boolean-switch-field.component.js +20 -0
- package/esm5/components/dynamic-form/configurations/dynamic-config.js +6 -2
- package/esm5/components/dynamic-form/configurations/fields/boolean-field.js +2 -1
- package/esm5/components/dynamic-form/configurations/fields/boolean-switch-field.js +14 -0
- package/esm5/components/dynamic-form/configurations/fields/field.js +2 -1
- package/esm5/components/dynamic-form/configurations/form-field.js +5 -1
- package/esm5/components/dynamic-form/dynamic-form.js +5 -1
- package/esm5/components/dynamic-form/dynamic-form.module.js +9 -4
- 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/esm5/seniorsistemas-angular-components.js +14 -13
- package/fesm2015/seniorsistemas-angular-components.js +149 -8
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +165 -8
- 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.d.ts +13 -12
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('primeng/breadcrumb'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('primeng/tieredmenu'), require('primeng/tooltip'), require('primeng/dom'), require('primeng/calendar'), require('@angular/animations'), require('@angular/forms'), require('@angular/common/http'), require('angular2-hotkeys'), require('bignumber.js'), require('primeng/autocomplete'), require('primeng/dialog'), require('primeng/table'), require('@seniorsistemas/ng2-currency-mask'), require('@seniorsistemas/senior-platform-data'), require('moment'), require('ngx-cookie-service'), require('ng2-currency-mask'), require('primeng/button'), require('primeng/checkbox'), require('primeng/chips'), require('primeng/dropdown'), require('primeng/fieldset'), require('primeng/inputmask'), require('primeng/inputtext'), require('primeng/inputtextarea'), require('primeng/keyfilter'), require('primeng/multiselect'), require('primeng/panel'), require('primeng/radiobutton'), require('primeng/progressbar'), require('@angular/platform-browser'), require('@ngx-translate/core'), require('cropperjs'), require('element-resize-detector'), require('@angular/cdk/a11y'), require('primeng/scrollpanel'), require('primeng/sidebar'), require('@codemirror/view'), require('@codemirror/state'), require('@codemirror/lint'), require('@codemirror/language'), require('@lezer/generator'), require('@codemirror/highlight'), require('@codemirror/autocomplete'), require('@codemirror/tooltip'), require('@codemirror/gutter')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@seniorsistemas/angular-components', ['exports', '@angular/core', '@angular/common', 'primeng/breadcrumb', '@angular/router', 'rxjs', 'rxjs/operators', 'primeng/tieredmenu', 'primeng/tooltip', 'primeng/dom', 'primeng/calendar', '@angular/animations', '@angular/forms', '@angular/common/http', 'angular2-hotkeys', 'bignumber.js', 'primeng/autocomplete', 'primeng/dialog', 'primeng/table', '@seniorsistemas/ng2-currency-mask', '@seniorsistemas/senior-platform-data', 'moment', 'ngx-cookie-service', 'ng2-currency-mask', 'primeng/button', 'primeng/checkbox', 'primeng/chips', 'primeng/dropdown', 'primeng/fieldset', 'primeng/inputmask', 'primeng/inputtext', 'primeng/inputtextarea', 'primeng/keyfilter', 'primeng/multiselect', 'primeng/panel', 'primeng/radiobutton', 'primeng/progressbar', '@angular/platform-browser', '@ngx-translate/core', 'cropperjs', 'element-resize-detector', '@angular/cdk/a11y', 'primeng/scrollpanel', 'primeng/sidebar', '@codemirror/view', '@codemirror/state', '@codemirror/lint', '@codemirror/language', '@lezer/generator', '@codemirror/highlight', '@codemirror/autocomplete', '@codemirror/tooltip', '@codemirror/gutter'], factory) :
|
|
4
|
-
(global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['angular-components'] = {}), global.ng.core, global.ng.common, global.breadcrumb, global.ng.router, global.rxjs, global.rxjs.operators, global.tieredmenu, global.tooltip, global.dom, global.calendar, global.ng.animations, global.ng.forms, global.ng.common.http, global.angular2Hotkeys, global.BigNumber, global.autocomplete$1, global.dialog, global.table, global.ng2CurrencyMask, global.seniorPlatformData, global.moment_, global.ngxCookieService, global.ng2CurrencyMask$1, global.button, global.checkbox, global.chips, global.dropdown, global.fieldset, global.inputmask, global.inputtext, global.inputtextarea, global.keyfilter, global.multiselect, global.panel, global.radiobutton, global.progressbar, global.ng.platformBrowser, global.core$1, global.Cropper, global.elementResizeDetectorMaker_, global.ng.cdk.a11y, global.scrollpanel, global.sidebar, global.view, global.state, global.lint, global.language, global.generator, global.highlight, global.autocomplete$2, global.tooltip$1, global.gutter));
|
|
5
|
-
}(this, (function (exports, core, common, breadcrumb, router, rxjs, operators, tieredmenu, tooltip, dom, calendar, animations, forms, http, angular2Hotkeys, BigNumber, autocomplete$1, dialog, table, ng2CurrencyMask, seniorPlatformData, moment_, ngxCookieService, ng2CurrencyMask$1, button, checkbox, chips, dropdown, fieldset, inputmask, inputtext, inputtextarea, keyfilter, multiselect, panel, radiobutton, progressbar, platformBrowser, core$1, Cropper, elementResizeDetectorMaker_, a11y, scrollpanel, sidebar, view, state, lint, language, generator, highlight, autocomplete$2, tooltip$1, gutter) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('primeng/breadcrumb'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('primeng/tieredmenu'), require('primeng/tooltip'), require('primeng/dom'), require('primeng/calendar'), require('@angular/animations'), require('@angular/forms'), require('@angular/common/http'), require('angular2-hotkeys'), require('bignumber.js'), require('primeng/autocomplete'), require('primeng/dialog'), require('primeng/table'), require('@seniorsistemas/ng2-currency-mask'), require('@seniorsistemas/senior-platform-data'), require('moment'), require('ngx-cookie-service'), require('ng2-currency-mask'), require('primeng/button'), require('primeng/checkbox'), require('primeng/chips'), require('primeng/dropdown'), require('primeng/fieldset'), require('primeng/inputmask'), require('primeng/inputtext'), require('primeng/inputtextarea'), require('primeng/keyfilter'), require('primeng/multiselect'), require('primeng/inputswitch'), require('primeng/panel'), require('primeng/radiobutton'), require('primeng/progressbar'), require('@angular/platform-browser'), require('@ngx-translate/core'), require('cropperjs'), require('element-resize-detector'), require('@angular/cdk/a11y'), require('primeng/scrollpanel'), require('primeng/sidebar'), require('@codemirror/view'), require('@codemirror/state'), require('@codemirror/lint'), require('@codemirror/language'), require('@lezer/generator'), require('@codemirror/highlight'), require('@codemirror/autocomplete'), require('@codemirror/tooltip'), require('@codemirror/gutter')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@seniorsistemas/angular-components', ['exports', '@angular/core', '@angular/common', 'primeng/breadcrumb', '@angular/router', 'rxjs', 'rxjs/operators', 'primeng/tieredmenu', 'primeng/tooltip', 'primeng/dom', 'primeng/calendar', '@angular/animations', '@angular/forms', '@angular/common/http', 'angular2-hotkeys', 'bignumber.js', 'primeng/autocomplete', 'primeng/dialog', 'primeng/table', '@seniorsistemas/ng2-currency-mask', '@seniorsistemas/senior-platform-data', 'moment', 'ngx-cookie-service', 'ng2-currency-mask', 'primeng/button', 'primeng/checkbox', 'primeng/chips', 'primeng/dropdown', 'primeng/fieldset', 'primeng/inputmask', 'primeng/inputtext', 'primeng/inputtextarea', 'primeng/keyfilter', 'primeng/multiselect', 'primeng/inputswitch', 'primeng/panel', 'primeng/radiobutton', 'primeng/progressbar', '@angular/platform-browser', '@ngx-translate/core', 'cropperjs', 'element-resize-detector', '@angular/cdk/a11y', 'primeng/scrollpanel', 'primeng/sidebar', '@codemirror/view', '@codemirror/state', '@codemirror/lint', '@codemirror/language', '@lezer/generator', '@codemirror/highlight', '@codemirror/autocomplete', '@codemirror/tooltip', '@codemirror/gutter'], factory) :
|
|
4
|
+
(global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['angular-components'] = {}), global.ng.core, global.ng.common, global.breadcrumb, global.ng.router, global.rxjs, global.rxjs.operators, global.tieredmenu, global.tooltip, global.dom, global.calendar, global.ng.animations, global.ng.forms, global.ng.common.http, global.angular2Hotkeys, global.BigNumber, global.autocomplete$1, global.dialog, global.table, global.ng2CurrencyMask, global.seniorPlatformData, global.moment_, global.ngxCookieService, global.ng2CurrencyMask$1, global.button, global.checkbox, global.chips, global.dropdown, global.fieldset, global.inputmask, global.inputtext, global.inputtextarea, global.keyfilter, global.multiselect, global.inputswitch, global.panel, global.radiobutton, global.progressbar, global.ng.platformBrowser, global.core$1, global.Cropper, global.elementResizeDetectorMaker_, global.ng.cdk.a11y, global.scrollpanel, global.sidebar, global.view, global.state, global.lint, global.language, global.generator, global.highlight, global.autocomplete$2, global.tooltip$1, global.gutter));
|
|
5
|
+
}(this, (function (exports, core, common, breadcrumb, router, rxjs, operators, tieredmenu, tooltip, dom, calendar, animations, forms, http, angular2Hotkeys, BigNumber, autocomplete$1, dialog, table, ng2CurrencyMask, seniorPlatformData, moment_, ngxCookieService, ng2CurrencyMask$1, button, checkbox, chips, dropdown, fieldset, inputmask, inputtext, inputtextarea, keyfilter, multiselect, inputswitch, panel, radiobutton, progressbar, platformBrowser, core$1, Cropper, elementResizeDetectorMaker_, a11y, scrollpanel, sidebar, view, state, lint, language, generator, highlight, autocomplete$2, tooltip$1, gutter) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var BigNumber__default = 'default' in BigNumber ? BigNumber['default'] : BigNumber;
|
|
8
8
|
Cropper = Cropper && Object.prototype.hasOwnProperty.call(Cropper, 'default') ? Cropper['default'] : Cropper;
|
|
@@ -1228,6 +1228,7 @@
|
|
|
1228
1228
|
this.errorMessages = config.errorMessages;
|
|
1229
1229
|
this.gridClass = Object.keys(this.size).map(function (key) { return "ui-" + key + "-" + _this.size[key]; });
|
|
1230
1230
|
this.defaultValue = config.defaultValue;
|
|
1231
|
+
this.representedBy = config.representedBy;
|
|
1231
1232
|
}
|
|
1232
1233
|
return Field;
|
|
1233
1234
|
}());
|
|
@@ -1692,6 +1693,7 @@
|
|
|
1692
1693
|
var _this = _super.call(this, config) || this;
|
|
1693
1694
|
_this.verticalAlignment = config.verticalAlignment;
|
|
1694
1695
|
_this.optionsLabel = new BooleanOptionsLabel(config.optionsLabel);
|
|
1696
|
+
_this.representedBy = "radio";
|
|
1695
1697
|
_this.onBlur = config.onBlur;
|
|
1696
1698
|
_this.onFocus = config.onFocus;
|
|
1697
1699
|
_this.onClick = config.onClick;
|
|
@@ -1700,6 +1702,17 @@
|
|
|
1700
1702
|
return BooleanField;
|
|
1701
1703
|
}(Field));
|
|
1702
1704
|
|
|
1705
|
+
var BooleanSwitchField = /** @class */ (function (_super) {
|
|
1706
|
+
__extends(BooleanSwitchField, _super);
|
|
1707
|
+
function BooleanSwitchField(config) {
|
|
1708
|
+
var _this = _super.call(this, config) || this;
|
|
1709
|
+
_this.onChange = config.onChange;
|
|
1710
|
+
_this.representedBy = "switch";
|
|
1711
|
+
return _this;
|
|
1712
|
+
}
|
|
1713
|
+
return BooleanSwitchField;
|
|
1714
|
+
}(Field));
|
|
1715
|
+
|
|
1703
1716
|
var CalendarField = /** @class */ (function (_super) {
|
|
1704
1717
|
__extends(CalendarField, _super);
|
|
1705
1718
|
function CalendarField(config) {
|
|
@@ -2083,6 +2096,9 @@
|
|
|
2083
2096
|
case exports.FieldType.Text:
|
|
2084
2097
|
return new TextAreaField(config);
|
|
2085
2098
|
case exports.FieldType.Boolean:
|
|
2099
|
+
if (config.representedBy === "switch") {
|
|
2100
|
+
return new BooleanSwitchField(config);
|
|
2101
|
+
}
|
|
2086
2102
|
return new BooleanField(config);
|
|
2087
2103
|
case exports.FieldType.Date:
|
|
2088
2104
|
case exports.FieldType.DateTime:
|
|
@@ -2653,7 +2669,7 @@
|
|
|
2653
2669
|
|
|
2654
2670
|
var DynamicConfig = /** @class */ (function () {
|
|
2655
2671
|
function DynamicConfig(config) {
|
|
2656
|
-
var type = config.type;
|
|
2672
|
+
var type = config.type, representedBy = config.representedBy;
|
|
2657
2673
|
switch (type) {
|
|
2658
2674
|
case exports.DynamicType.Autocomplete:
|
|
2659
2675
|
return new AutocompleteField(config);
|
|
@@ -2661,6 +2677,9 @@
|
|
|
2661
2677
|
case exports.DynamicType.String:
|
|
2662
2678
|
return new TextField(config);
|
|
2663
2679
|
case exports.DynamicType.Boolean:
|
|
2680
|
+
if (representedBy === "switch") {
|
|
2681
|
+
return new BooleanSwitchField(config);
|
|
2682
|
+
}
|
|
2664
2683
|
return new BooleanField(config);
|
|
2665
2684
|
case exports.DynamicType.Chips:
|
|
2666
2685
|
return new ChipsField(config);
|
|
@@ -3946,23 +3965,25 @@
|
|
|
3946
3965
|
this.el = el;
|
|
3947
3966
|
this.host = host;
|
|
3948
3967
|
this.sTableFrozenPosition = "left";
|
|
3968
|
+
this.onColumnsChanged = new core.EventEmitter();
|
|
3949
3969
|
this.host.onColResize.subscribe(function () {
|
|
3950
3970
|
_this.handleColResize();
|
|
3951
3971
|
});
|
|
3952
3972
|
window.addEventListener("resize", this.handleWindowResize.bind(this));
|
|
3953
3973
|
var componentId = new Date().getTime();
|
|
3974
|
+
var htmlHead = document.getElementsByTagName("head")[0];
|
|
3954
3975
|
this.resetRowHeightClassName = "resetTableRowsHeight_" + componentId;
|
|
3955
3976
|
var styleReset = document.createElement("style");
|
|
3956
3977
|
styleReset.innerHTML = "." + this.resetRowHeightClassName + " tbody > tr, ." + this.resetRowHeightClassName + " thead > tr { height: auto; }";
|
|
3957
|
-
|
|
3978
|
+
htmlHead.appendChild(styleReset);
|
|
3958
3979
|
this.fixBodyRowClassName = "fixTableBodyRowsHeight_" + componentId;
|
|
3959
3980
|
this.styleFixBodyRowHeight = document.createElement("style");
|
|
3960
3981
|
this.styleFixBodyRowHeight.innerHTML = "." + this.fixBodyRowClassName + " tbody > tr { height: auto; }";
|
|
3961
|
-
|
|
3982
|
+
htmlHead.appendChild(this.styleFixBodyRowHeight);
|
|
3962
3983
|
this.fixHeadRowClassName = "fixTableHeadRowsHeight_" + componentId;
|
|
3963
3984
|
this.styleFixHeadRowHeight = document.createElement("style");
|
|
3964
3985
|
this.styleFixHeadRowHeight.innerHTML = "." + this.fixHeadRowClassName + " thead > tr { height: auto; }";
|
|
3965
|
-
|
|
3986
|
+
htmlHead.appendChild(this.styleFixHeadRowHeight);
|
|
3966
3987
|
}
|
|
3967
3988
|
Object.defineProperty(TableFrozenPositionDirective.prototype, "sTableFrozenValue", {
|
|
3968
3989
|
set: function (_) {
|
|
@@ -3978,9 +3999,27 @@
|
|
|
3978
3999
|
if (this.sTableFrozenPosition === "left")
|
|
3979
4000
|
return;
|
|
3980
4001
|
this.applyStylesForTable();
|
|
4002
|
+
this.setUpColumnMonitoring();
|
|
3981
4003
|
};
|
|
3982
4004
|
TableFrozenPositionDirective.prototype.ngOnDestroy = function () {
|
|
3983
4005
|
window.removeEventListener("resize", this.handleWindowResize.bind(this));
|
|
4006
|
+
if (this.tableHeadObservable) {
|
|
4007
|
+
this.tableHeadObservable.disconnect();
|
|
4008
|
+
}
|
|
4009
|
+
};
|
|
4010
|
+
TableFrozenPositionDirective.prototype.setUpColumnMonitoring = function () {
|
|
4011
|
+
var _this = this;
|
|
4012
|
+
this.tableHeadObservable = new MutationObserver(function () {
|
|
4013
|
+
_this.synchronizeRowHeight();
|
|
4014
|
+
_this.onColumnsChanged.emit(null);
|
|
4015
|
+
});
|
|
4016
|
+
var tableHeads = __spread(this.el.nativeElement.getElementsByTagName("thead"));
|
|
4017
|
+
tableHeads.forEach(function (tableHead) {
|
|
4018
|
+
_this.tableHeadObservable.observe(tableHead, {
|
|
4019
|
+
subtree: true,
|
|
4020
|
+
childList: true
|
|
4021
|
+
});
|
|
4022
|
+
});
|
|
3984
4023
|
};
|
|
3985
4024
|
TableFrozenPositionDirective.prototype.applyStylesForTable = function () {
|
|
3986
4025
|
var scrollWrapper = this.el.nativeElement.querySelector(".ui-table-scrollable-wrapper");
|
|
@@ -5136,6 +5175,23 @@
|
|
|
5136
5175
|
return BignumberFieldComponent;
|
|
5137
5176
|
}(BaseFieldComponent));
|
|
5138
5177
|
|
|
5178
|
+
var BooleanSwitchFieldComponent = /** @class */ (function () {
|
|
5179
|
+
function BooleanSwitchFieldComponent() {
|
|
5180
|
+
}
|
|
5181
|
+
__decorate([
|
|
5182
|
+
core.Input()
|
|
5183
|
+
], BooleanSwitchFieldComponent.prototype, "field", void 0);
|
|
5184
|
+
__decorate([
|
|
5185
|
+
core.Input()
|
|
5186
|
+
], BooleanSwitchFieldComponent.prototype, "formControl", void 0);
|
|
5187
|
+
BooleanSwitchFieldComponent = __decorate([
|
|
5188
|
+
core.Component({
|
|
5189
|
+
template: "<p-inputSwitch [id]=\"(field.id || field.name)\" [name]=\"field.name\" [formControl]=\"formControl\"\n [pTooltip]=\"field.tooltip\" tooltipPosition=\"top\"\n (onChange)=\"field.onChange ? field.onChange($event) : null\">\n</p-inputSwitch>"
|
|
5190
|
+
})
|
|
5191
|
+
], BooleanSwitchFieldComponent);
|
|
5192
|
+
return BooleanSwitchFieldComponent;
|
|
5193
|
+
}());
|
|
5194
|
+
|
|
5139
5195
|
var DynamicForm = /** @class */ (function () {
|
|
5140
5196
|
function DynamicForm(_a) {
|
|
5141
5197
|
var group = _a.group, errorMessages = _a.errorMessages;
|
|
@@ -5194,6 +5250,9 @@
|
|
|
5194
5250
|
case exports.FieldType.String:
|
|
5195
5251
|
return TextFieldComponent;
|
|
5196
5252
|
case exports.FieldType.Boolean:
|
|
5253
|
+
if (this.field.representedBy === "switch") {
|
|
5254
|
+
return BooleanSwitchFieldComponent;
|
|
5255
|
+
}
|
|
5197
5256
|
return BooleanFieldComponent;
|
|
5198
5257
|
case exports.FieldType.Chips:
|
|
5199
5258
|
return ChipsFieldComponent;
|
|
@@ -5512,7 +5571,8 @@
|
|
|
5512
5571
|
InfoSignModule,
|
|
5513
5572
|
MaskFormatterModule,
|
|
5514
5573
|
angular2Hotkeys.HotkeyModule.forRoot(),
|
|
5515
|
-
MouseEventsModule
|
|
5574
|
+
MouseEventsModule,
|
|
5575
|
+
inputswitch.InputSwitchModule
|
|
5516
5576
|
],
|
|
5517
5577
|
declarations: [
|
|
5518
5578
|
AutocompleteFieldComponent,
|
|
@@ -5534,7 +5594,8 @@
|
|
|
5534
5594
|
SectionComponent,
|
|
5535
5595
|
SelectFieldComponent,
|
|
5536
5596
|
TextAreaFieldComponent,
|
|
5537
|
-
TextFieldComponent
|
|
5597
|
+
TextFieldComponent,
|
|
5598
|
+
BooleanSwitchFieldComponent
|
|
5538
5599
|
],
|
|
5539
5600
|
exports: [DynamicFormComponent, LookupComponent],
|
|
5540
5601
|
entryComponents: [
|
|
@@ -5553,7 +5614,8 @@
|
|
|
5553
5614
|
SectionComponent,
|
|
5554
5615
|
SelectFieldComponent,
|
|
5555
5616
|
TextAreaFieldComponent,
|
|
5556
|
-
TextFieldComponent
|
|
5617
|
+
TextFieldComponent,
|
|
5618
|
+
BooleanSwitchFieldComponent
|
|
5557
5619
|
],
|
|
5558
5620
|
providers: [angular2Hotkeys.HotkeysService]
|
|
5559
5621
|
})
|
|
@@ -7341,6 +7403,100 @@
|
|
|
7341
7403
|
return StepsModule;
|
|
7342
7404
|
}());
|
|
7343
7405
|
|
|
7406
|
+
var TimelineComponent = /** @class */ (function () {
|
|
7407
|
+
function TimelineComponent() {
|
|
7408
|
+
this.id = "s-timeline-" + TimelineComponent_1.nextId++;
|
|
7409
|
+
this.activeIndex = 0;
|
|
7410
|
+
}
|
|
7411
|
+
TimelineComponent_1 = TimelineComponent;
|
|
7412
|
+
TimelineComponent.prototype.barAnimation = function (index, activeIndex) {
|
|
7413
|
+
var visited = index < activeIndex;
|
|
7414
|
+
var activated = index === activeIndex;
|
|
7415
|
+
return visited || activated;
|
|
7416
|
+
};
|
|
7417
|
+
TimelineComponent.prototype.afterBarAnimation = function (index, activeIndex) {
|
|
7418
|
+
var visited = index < activeIndex;
|
|
7419
|
+
var activated = index === activeIndex - 1;
|
|
7420
|
+
return visited || activated;
|
|
7421
|
+
};
|
|
7422
|
+
Object.defineProperty(TimelineComponent.prototype, "visibledStep", {
|
|
7423
|
+
get: function () {
|
|
7424
|
+
return this.steps.filter(function (step) { return !step.hidden; });
|
|
7425
|
+
},
|
|
7426
|
+
enumerable: true,
|
|
7427
|
+
configurable: true
|
|
7428
|
+
});
|
|
7429
|
+
var TimelineComponent_1;
|
|
7430
|
+
TimelineComponent.nextId = 0;
|
|
7431
|
+
__decorate([
|
|
7432
|
+
core.Input()
|
|
7433
|
+
], TimelineComponent.prototype, "id", void 0);
|
|
7434
|
+
__decorate([
|
|
7435
|
+
core.Input()
|
|
7436
|
+
], TimelineComponent.prototype, "steps", void 0);
|
|
7437
|
+
__decorate([
|
|
7438
|
+
core.Input()
|
|
7439
|
+
], TimelineComponent.prototype, "activeIndex", void 0);
|
|
7440
|
+
TimelineComponent = TimelineComponent_1 = __decorate([
|
|
7441
|
+
core.Component({
|
|
7442
|
+
selector: "s-timeline",
|
|
7443
|
+
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",
|
|
7444
|
+
host: {
|
|
7445
|
+
"aria-orientation": "horizontal",
|
|
7446
|
+
role: "tablist",
|
|
7447
|
+
"tab-index": "0",
|
|
7448
|
+
},
|
|
7449
|
+
animations: [
|
|
7450
|
+
animations.trigger("beforeActiveDesative", [
|
|
7451
|
+
animations.state("active", animations.style({
|
|
7452
|
+
"background-position": "left bottom",
|
|
7453
|
+
})),
|
|
7454
|
+
animations.state("desactive", animations.style({
|
|
7455
|
+
"background-position": "right bottom",
|
|
7456
|
+
})),
|
|
7457
|
+
animations.transition("active => desactive", [animations.animate("50ms 100ms linear")]),
|
|
7458
|
+
animations.transition("desactive => active", [animations.animate("50ms 250ms linear")]),
|
|
7459
|
+
]),
|
|
7460
|
+
animations.trigger("activeDesative", [
|
|
7461
|
+
animations.state("active", animations.style({
|
|
7462
|
+
"background-position": "left bottom",
|
|
7463
|
+
})),
|
|
7464
|
+
animations.state("desactive", animations.style({
|
|
7465
|
+
"background-position": "right bottom",
|
|
7466
|
+
})),
|
|
7467
|
+
animations.transition("active => desactive", [animations.animate("100ms 150ms linear")]),
|
|
7468
|
+
animations.transition("desactive => active", [animations.animate("100ms 150ms linear")]),
|
|
7469
|
+
]),
|
|
7470
|
+
animations.trigger("afterActiveDesative", [
|
|
7471
|
+
animations.state("active", animations.style({
|
|
7472
|
+
"background-position": "left bottom",
|
|
7473
|
+
})),
|
|
7474
|
+
animations.state("desactive", animations.style({
|
|
7475
|
+
"background-position": "right bottom",
|
|
7476
|
+
})),
|
|
7477
|
+
animations.transition("active => desactive", [animations.animate("50ms 250ms linear")]),
|
|
7478
|
+
animations.transition("desactive => active", [animations.animate("50ms 100ms linear")]),
|
|
7479
|
+
]),
|
|
7480
|
+
],
|
|
7481
|
+
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}}"]
|
|
7482
|
+
})
|
|
7483
|
+
], TimelineComponent);
|
|
7484
|
+
return TimelineComponent;
|
|
7485
|
+
}());
|
|
7486
|
+
|
|
7487
|
+
var TimelineModule = /** @class */ (function () {
|
|
7488
|
+
function TimelineModule() {
|
|
7489
|
+
}
|
|
7490
|
+
TimelineModule = __decorate([
|
|
7491
|
+
core.NgModule({
|
|
7492
|
+
imports: [common.CommonModule, tooltip.TooltipModule],
|
|
7493
|
+
declarations: [TimelineComponent],
|
|
7494
|
+
exports: [TimelineComponent],
|
|
7495
|
+
})
|
|
7496
|
+
], TimelineModule);
|
|
7497
|
+
return TimelineModule;
|
|
7498
|
+
}());
|
|
7499
|
+
|
|
7344
7500
|
var TileComponent = /** @class */ (function () {
|
|
7345
7501
|
function TileComponent() {
|
|
7346
7502
|
this.id = "s-tile-" + TileComponent_1.nextId++;
|
|
@@ -9316,22 +9472,24 @@
|
|
|
9316
9472
|
exports.ThumbnailModule = ThumbnailModule;
|
|
9317
9473
|
exports.TileComponent = TileComponent;
|
|
9318
9474
|
exports.TileModule = TileModule;
|
|
9475
|
+
exports.TimelineComponent = TimelineComponent;
|
|
9476
|
+
exports.TimelineModule = TimelineModule;
|
|
9319
9477
|
exports.TokenListComponent = TokenListComponent;
|
|
9320
9478
|
exports.TokenListModule = TokenListModule;
|
|
9321
9479
|
exports.ɵa = LocalizedCurrencyImpurePipe;
|
|
9322
9480
|
exports.ɵb = LocalizedBignumberPipe;
|
|
9323
|
-
exports.ɵ
|
|
9324
|
-
exports.ɵ
|
|
9325
|
-
exports.ɵ
|
|
9326
|
-
exports.ɵ
|
|
9327
|
-
exports.ɵ
|
|
9328
|
-
exports.ɵ
|
|
9329
|
-
exports.ɵ
|
|
9330
|
-
exports.ɵ
|
|
9331
|
-
exports.ɵ
|
|
9332
|
-
exports.ɵ
|
|
9333
|
-
exports.ɵ
|
|
9334
|
-
exports.ɵ
|
|
9481
|
+
exports.ɵbb = DecimalField;
|
|
9482
|
+
exports.ɵbc = StructureModule;
|
|
9483
|
+
exports.ɵbd = HeaderComponent;
|
|
9484
|
+
exports.ɵbe = FooterComponent;
|
|
9485
|
+
exports.ɵbf = NumberLocaleOptions;
|
|
9486
|
+
exports.ɵbg = ThumbnailService;
|
|
9487
|
+
exports.ɵbh = InfiniteScrollModule;
|
|
9488
|
+
exports.ɵbi = InfiniteScrollDirective;
|
|
9489
|
+
exports.ɵbj = CustomTranslationsModule;
|
|
9490
|
+
exports.ɵbk = CodeEditorComponent;
|
|
9491
|
+
exports.ɵbl = CoreFacade;
|
|
9492
|
+
exports.ɵbm = CodeMirror6Core;
|
|
9335
9493
|
exports.ɵc = LocalizedBignumberImpurePipe;
|
|
9336
9494
|
exports.ɵd = EmptyStateGoBackComponent;
|
|
9337
9495
|
exports.ɵe = TableColumnsComponent;
|
|
@@ -9355,6 +9513,7 @@
|
|
|
9355
9513
|
exports.ɵw = SelectFieldComponent;
|
|
9356
9514
|
exports.ɵx = TextAreaFieldComponent;
|
|
9357
9515
|
exports.ɵy = TextFieldComponent;
|
|
9516
|
+
exports.ɵz = BooleanSwitchFieldComponent;
|
|
9358
9517
|
|
|
9359
9518
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9360
9519
|
|