@seniorsistemas/angular-components 17.6.4 → 17.7.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 +820 -851
- 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/file-upload/file-upload.component.d.ts +17 -15
- package/components/file-upload/models/index.d.ts +0 -1
- package/components/file-upload/models/validate-errors.d.ts +0 -1
- package/components/locale/locale.service.d.ts +5 -0
- package/components/locale/options/index.d.ts +1 -0
- package/components/locale/pipes/numeric.pipe.d.ts +13 -0
- package/components/locale/services/numeric.service.d.ts +24 -0
- package/esm2015/components/file-upload/file-upload.component.js +45 -60
- package/esm2015/components/file-upload/file-upload.module.js +6 -16
- package/esm2015/components/file-upload/file-upload.service.js +1 -3
- package/esm2015/components/file-upload/models/index.js +1 -2
- package/esm2015/components/file-upload/models/validate-errors.js +1 -2
- package/esm2015/components/locale/locale.module.js +8 -4
- package/esm2015/components/locale/locale.service.js +9 -2
- package/esm2015/components/locale/options/index.js +1 -1
- package/esm2015/components/locale/pipes/numeric.pipe.js +28 -0
- package/esm2015/components/locale/services/numeric.service.js +70 -0
- package/esm2015/seniorsistemas-angular-components.js +62 -62
- package/esm5/components/file-upload/file-upload.component.js +45 -60
- package/esm5/components/file-upload/file-upload.module.js +6 -16
- package/esm5/components/file-upload/file-upload.service.js +1 -3
- package/esm5/components/file-upload/models/index.js +1 -2
- package/esm5/components/file-upload/models/validate-errors.js +1 -2
- package/esm5/components/locale/locale.module.js +8 -4
- package/esm5/components/locale/locale.service.js +10 -3
- package/esm5/components/locale/options/index.js +1 -1
- package/esm5/components/locale/pipes/numeric.pipe.js +32 -0
- package/esm5/components/locale/services/numeric.service.js +71 -0
- package/esm5/seniorsistemas-angular-components.js +62 -62
- package/fesm2015/seniorsistemas-angular-components.js +769 -802
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +766 -796
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.d.ts +61 -61
- package/seniorsistemas-angular-components.metadata.json +1 -1
- package/components/file-upload/components/file-item/file-item.component.d.ts +0 -26
- package/components/file-upload/models/storage-units.d.ts +0 -5
- package/esm2015/components/file-upload/components/file-item/file-item.component.js +0 -105
- package/esm2015/components/file-upload/models/storage-units.js +0 -6
- package/esm5/components/file-upload/components/file-item/file-item.component.js +0 -107
- package/esm5/components/file-upload/models/storage-units.js +0 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { __decorate, __extends, __spread,
|
|
2
|
-
import { EventEmitter, Input, Output, Component, ContentChildren, ViewChild, HostListener, forwardRef, NgModule, ɵɵdefineInjectable, Injectable, ElementRef, ApplicationRef, ComponentFactoryResolver, Injector, Directive, KeyValueDiffers, HostBinding, Renderer2, TemplateRef, InjectionToken, Inject, ViewEncapsulation,
|
|
1
|
+
import { __decorate, __assign, __extends, __spread, __awaiter, __generator, __param, __values, __rest, __read } from 'tslib';
|
|
2
|
+
import { EventEmitter, Input, Output, Component, ContentChildren, ViewChild, HostListener, forwardRef, NgModule, ɵɵdefineInjectable, Injectable, ElementRef, ApplicationRef, ComponentFactoryResolver, Injector, Directive, KeyValueDiffers, HostBinding, Renderer2, TemplateRef, InjectionToken, Inject, ViewEncapsulation, ViewContainerRef, ChangeDetectorRef, Pipe, ɵɵinject, Optional, ContentChild } from '@angular/core';
|
|
3
3
|
import { trigger, transition, style as style$7, animate, state, group, query, animateChild } from '@angular/animations';
|
|
4
4
|
import { Subject, of, from, ReplaySubject, throwError, forkJoin } from 'rxjs';
|
|
5
5
|
import { takeUntil, tap, map, switchMap, catchError, first, filter, take, delay, debounceTime, repeat, finalize } from 'rxjs/operators';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
import { NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule, FormControl, FormGroup, NG_VALIDATORS, FormBuilder, Validators, FormArray, ControlContainer } from '@angular/forms';
|
|
8
8
|
import { RouterModule, NavigationEnd, PRIMARY_OUTLET, ActivatedRoute, Router } from '@angular/router';
|
|
9
|
-
import { HttpClient,
|
|
9
|
+
import { HttpClient, HttpEventType, HttpClientModule } from '@angular/common/http';
|
|
10
10
|
import { user, service } from '@seniorsistemas/senior-platform-data';
|
|
11
11
|
import * as moment_ from 'moment';
|
|
12
12
|
import { CookieService } from 'ngx-cookie-service';
|
|
@@ -47,6 +47,7 @@ import { PanelModule as PanelModule$1 } from 'primeng/panel';
|
|
|
47
47
|
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
48
48
|
import { SliderModule } from 'primeng/slider';
|
|
49
49
|
import { MessageService, ConfirmationService } from 'primeng/api';
|
|
50
|
+
import { ProgressBarModule as ProgressBarModule$1 } from 'primeng/progressbar';
|
|
50
51
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
51
52
|
import { Clipboard } from '@angular/cdk/clipboard';
|
|
52
53
|
import Cropper from 'cropperjs';
|
|
@@ -943,7 +944,7 @@ var LocaleService = /** @class */ (function () {
|
|
|
943
944
|
var _this = this;
|
|
944
945
|
return this.localeOptions
|
|
945
946
|
? of(this.localeOptions)
|
|
946
|
-
: this.getLocaleConfig().pipe(tap(function (localeOptions) { return (_this.localeOptions = localeOptions); }));
|
|
947
|
+
: this.getLocaleConfig().pipe(tap(function (localeOptions) { return (_this.localeOptions = __assign(__assign({}, localeOptions), { locale: _this.locale })); }));
|
|
947
948
|
};
|
|
948
949
|
LocaleService.prototype.getLocale = function () {
|
|
949
950
|
var _this = this;
|
|
@@ -954,6 +955,13 @@ var LocaleService = /** @class */ (function () {
|
|
|
954
955
|
return _this.locale;
|
|
955
956
|
}));
|
|
956
957
|
};
|
|
958
|
+
/**
|
|
959
|
+
* Returns an object with the locale options based on the user's locale(platform locale).
|
|
960
|
+
* @return The locale options object.
|
|
961
|
+
*/
|
|
962
|
+
LocaleService.prototype.getLocaleOptions = function () {
|
|
963
|
+
return this.localeOptions;
|
|
964
|
+
};
|
|
957
965
|
LocaleService.prototype.getUserData = function () {
|
|
958
966
|
try {
|
|
959
967
|
return of(JSON.parse(this.cookieService.get("com.senior.token")));
|
|
@@ -5982,558 +5990,136 @@ var EmptyStateModule = /** @class */ (function () {
|
|
|
5982
5990
|
return EmptyStateModule;
|
|
5983
5991
|
}());
|
|
5984
5992
|
|
|
5985
|
-
var
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
ProgressBarColors["Red"] = "red";
|
|
5990
|
-
ProgressBarColors["Yellow"] = "yellow";
|
|
5991
|
-
})(ProgressBarColors || (ProgressBarColors = {}));
|
|
5992
|
-
|
|
5993
|
-
var ProgressBarMode;
|
|
5994
|
-
(function (ProgressBarMode) {
|
|
5995
|
-
ProgressBarMode["Determinate"] = "determinate";
|
|
5996
|
-
ProgressBarMode["Indeterminate"] = "indeterminate";
|
|
5997
|
-
})(ProgressBarMode || (ProgressBarMode = {}));
|
|
5998
|
-
|
|
5999
|
-
var ProgressBarComponent = /** @class */ (function () {
|
|
6000
|
-
function ProgressBarComponent() {
|
|
6001
|
-
this.numberFormatOptions = {
|
|
6002
|
-
style: "decimal",
|
|
6003
|
-
minimumFractionDigits: 0,
|
|
6004
|
-
maximumFractionDigits: 2,
|
|
6005
|
-
};
|
|
6006
|
-
this.showValue = true;
|
|
6007
|
-
this.mode = ProgressBarMode.Determinate;
|
|
5993
|
+
var FileUploadService = /** @class */ (function () {
|
|
5994
|
+
function FileUploadService() {
|
|
5995
|
+
this.BASE_URL_FIELD_CUSTOMIZATION = "platform/field_customization";
|
|
5996
|
+
this.TOKEN = new AbortController();
|
|
6008
5997
|
}
|
|
6009
|
-
|
|
6010
|
-
this
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
}
|
|
6016
|
-
if (this.targetValue < 0 || this.targetValue > 100) {
|
|
6017
|
-
throw new Error("Invalid value for targetValue");
|
|
6018
|
-
}
|
|
6019
|
-
if (this.mode === ProgressBarMode.Indeterminate && (this.value || this.targetValue || this.targetLabel)) {
|
|
6020
|
-
throw new Error("When the mode is indeterminate, the value, targetValue and targetLabel parameters are not expected.");
|
|
6021
|
-
}
|
|
5998
|
+
FileUploadService.prototype.getMetadataCustomField = function (request) {
|
|
5999
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6000
|
+
return __generator(this, function (_a) {
|
|
6001
|
+
return [2 /*return*/, CustomHttpClient.POST(this.BASE_URL_FIELD_CUSTOMIZATION + "/queries/getFileMetadata", request, { signal: this.TOKEN.signal })];
|
|
6002
|
+
});
|
|
6003
|
+
});
|
|
6022
6004
|
};
|
|
6023
|
-
__decorate([
|
|
6024
|
-
|
|
6025
|
-
],
|
|
6026
|
-
|
|
6027
|
-
Input()
|
|
6028
|
-
], ProgressBarComponent.prototype, "numberFormatOptions", void 0);
|
|
6029
|
-
__decorate([
|
|
6030
|
-
Input()
|
|
6031
|
-
], ProgressBarComponent.prototype, "targetValue", void 0);
|
|
6032
|
-
__decorate([
|
|
6033
|
-
Input()
|
|
6034
|
-
], ProgressBarComponent.prototype, "label", void 0);
|
|
6035
|
-
__decorate([
|
|
6036
|
-
Input()
|
|
6037
|
-
], ProgressBarComponent.prototype, "targetLabel", void 0);
|
|
6038
|
-
__decorate([
|
|
6039
|
-
Input()
|
|
6040
|
-
], ProgressBarComponent.prototype, "activeColor", void 0);
|
|
6041
|
-
__decorate([
|
|
6042
|
-
Input()
|
|
6043
|
-
], ProgressBarComponent.prototype, "showValue", void 0);
|
|
6044
|
-
__decorate([
|
|
6045
|
-
Input()
|
|
6046
|
-
], ProgressBarComponent.prototype, "mode", void 0);
|
|
6047
|
-
ProgressBarComponent = __decorate([
|
|
6048
|
-
Component({
|
|
6049
|
-
selector: "s-progressbar",
|
|
6050
|
-
template: "<ng-container *ngIf=\"mode === 'determinate'; then pbDeterminateTemplate else pbIndeterminateTemplate\"></ng-container>\n\n<ng-template #pbDeterminateTemplate>\n <s-progressbar-determinate\n [value]=\"value\"\n [numberFormatOptions]=\"numberFormatOptions\"\n [targetValue]=\"targetValue\"\n [targetLabel]=\"targetLabel\"\n [activeColor]=\"activeColor\"\n [showValue]=\"showValue\">\n </s-progressbar-determinate>\n</ng-template>\n\n<ng-template #pbIndeterminateTemplate>\n <s-progressbar-indeterminate\n [activeColor]=\"activeColor\"\n [label]=\"label\">\n </s-progressbar-indeterminate>\n</ng-template>",
|
|
6051
|
-
styles: [".progress-bar{position:relative}.progress-bar .progress-bar-all{background-color:#d8d8d8;border-radius:4px;height:24px;overflow:hidden;width:100%}.progress-bar .progress-bar-all .progress-bar-active{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;font-family:\"Open Sans\",sans-serif;font-size:14px;height:100%;-ms-flex-pack:center;justify-content:center;line-height:150%;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:80%}.progress-bar .progress-bar-all .progress-bar-active--blue{background-color:#428bca}.progress-bar .progress-bar-all .progress-bar-active--green{background-color:#0c9348}.progress-bar .progress-bar-all .progress-bar-active--red{background-color:#c13018}.progress-bar .progress-bar-all .progress-bar-active--yellow{background-color:#fcbf10}.progress-bar .target{-ms-flex-align:start;align-items:flex-start;bottom:-38px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute}.progress-bar .target .target-line{background-color:#333;height:40px;margin:8px 0;width:1px}.progress-bar .target .target-label{background-color:#426e78;border-radius:10px;color:#e5eaea;font-family:\"Open Sans\",sans-serif;font-size:12px;line-height:150%;padding:2px 12px}"]
|
|
6052
|
-
})
|
|
6053
|
-
], ProgressBarComponent);
|
|
6054
|
-
return ProgressBarComponent;
|
|
6005
|
+
FileUploadService = __decorate([
|
|
6006
|
+
Injectable()
|
|
6007
|
+
], FileUploadService);
|
|
6008
|
+
return FileUploadService;
|
|
6055
6009
|
}());
|
|
6056
6010
|
|
|
6057
|
-
var
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6011
|
+
var Breakpoints = {
|
|
6012
|
+
SM_MIN: 0,
|
|
6013
|
+
SM_MAX: 767,
|
|
6014
|
+
MD_MIN: 768,
|
|
6015
|
+
MD_MAX: 991,
|
|
6016
|
+
LG_MIN: 992,
|
|
6017
|
+
LG_MAX: 1199,
|
|
6018
|
+
XL_MIN: 1200,
|
|
6019
|
+
XL_MAX: Infinity,
|
|
6020
|
+
};
|
|
6021
|
+
|
|
6022
|
+
var ExportUtils = /** @class */ (function () {
|
|
6023
|
+
function ExportUtils() {
|
|
6024
|
+
throw new Error("Classe não deve ser instanciada.");
|
|
6061
6025
|
}
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
this.onGetLocale();
|
|
6026
|
+
ExportUtils.addClass = function (element, className) {
|
|
6027
|
+
element.nativeElement.className = element.nativeElement.className + " " + className;
|
|
6065
6028
|
};
|
|
6066
|
-
|
|
6029
|
+
ExportUtils.removeClass = function (element, className) {
|
|
6030
|
+
if (element.nativeElement.className.includes(className)) {
|
|
6031
|
+
element.nativeElement.className = element.nativeElement.className.replace(className, "");
|
|
6032
|
+
}
|
|
6033
|
+
};
|
|
6034
|
+
ExportUtils.exportCSV = function (columns, data, csvSeparator, documentName) {
|
|
6067
6035
|
var _this = this;
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6036
|
+
if (columns === void 0) { columns = []; }
|
|
6037
|
+
if (data === void 0) { data = []; }
|
|
6038
|
+
if (csvSeparator === void 0) { csvSeparator = ";"; }
|
|
6039
|
+
if (documentName === void 0) { documentName = "download"; }
|
|
6040
|
+
var csv = "\ufeff";
|
|
6041
|
+
columns.filter(function (column) { return column.exportable && column.field; }).forEach(function (column, i) {
|
|
6042
|
+
csv += "\"" + (column.header || column.field) + "\"";
|
|
6043
|
+
if (i < columns.length - 1)
|
|
6044
|
+
csv += csvSeparator;
|
|
6075
6045
|
});
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6046
|
+
data.forEach(function (record) {
|
|
6047
|
+
csv += "\n";
|
|
6048
|
+
columns.filter(function (column) { return column.exportable && column.field; }).forEach(function (column, i) {
|
|
6049
|
+
var cellData;
|
|
6050
|
+
if (Array.isArray(column.field)) {
|
|
6051
|
+
var fieldValues = column.field.map(function (col) { return _this.resolveFieldData(record, col); });
|
|
6052
|
+
cellData = fieldValues
|
|
6053
|
+
.flat()
|
|
6054
|
+
.filter(function (value) { return value !== null && value !== undefined; })
|
|
6055
|
+
.join(column.separator);
|
|
6056
|
+
}
|
|
6057
|
+
else {
|
|
6058
|
+
cellData = _this.resolveFieldData(record, column.field);
|
|
6059
|
+
}
|
|
6060
|
+
if (cellData != null)
|
|
6061
|
+
cellData = String(cellData).replace(/"/g, "\"\"");
|
|
6062
|
+
else
|
|
6063
|
+
cellData = "";
|
|
6064
|
+
csv += "\"" + cellData + "\"";
|
|
6065
|
+
if (i < columns.length - 1)
|
|
6066
|
+
csv += csvSeparator;
|
|
6067
|
+
});
|
|
6068
|
+
});
|
|
6069
|
+
var blob = new Blob([csv], {
|
|
6070
|
+
type: "text/csv;charset=utf-8;",
|
|
6071
|
+
});
|
|
6072
|
+
if (window.navigator.msSaveOrOpenBlob)
|
|
6073
|
+
navigator.msSaveOrOpenBlob(blob, documentName + ".csv");
|
|
6074
|
+
else {
|
|
6075
|
+
var link = document.createElement("a");
|
|
6076
|
+
link.style.display = "none";
|
|
6077
|
+
document.body.appendChild(link);
|
|
6078
|
+
if (link.download !== undefined) {
|
|
6079
|
+
link.setAttribute("href", URL.createObjectURL(blob));
|
|
6080
|
+
link.setAttribute("download", documentName + ".csv");
|
|
6081
|
+
link.click();
|
|
6082
|
+
}
|
|
6083
|
+
else {
|
|
6084
|
+
csv = "data:text/csv;charset=utf-8," + csv;
|
|
6085
|
+
window.open(encodeURI(csv));
|
|
6086
|
+
}
|
|
6087
|
+
document.body.removeChild(link);
|
|
6080
6088
|
}
|
|
6081
|
-
|
|
6082
|
-
|
|
6089
|
+
};
|
|
6090
|
+
ExportUtils.resolveFieldData = function (data, field) {
|
|
6091
|
+
if (data && field) {
|
|
6092
|
+
if (this.isFunction(field))
|
|
6093
|
+
return field(data);
|
|
6094
|
+
else if (field.indexOf(".") == -1)
|
|
6095
|
+
return data[field];
|
|
6096
|
+
else {
|
|
6097
|
+
var fields = field.split(".");
|
|
6098
|
+
var value = data;
|
|
6099
|
+
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
6100
|
+
if (value == null) {
|
|
6101
|
+
return null;
|
|
6102
|
+
}
|
|
6103
|
+
value = value[fields[i]];
|
|
6104
|
+
}
|
|
6105
|
+
return value;
|
|
6106
|
+
}
|
|
6083
6107
|
}
|
|
6108
|
+
else
|
|
6109
|
+
return null;
|
|
6084
6110
|
};
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
Input()
|
|
6090
|
-
], ProgressBarDeterminateComponent.prototype, "value", void 0);
|
|
6091
|
-
__decorate([
|
|
6092
|
-
Input()
|
|
6093
|
-
], ProgressBarDeterminateComponent.prototype, "numberFormatOptions", void 0);
|
|
6094
|
-
__decorate([
|
|
6095
|
-
Input()
|
|
6096
|
-
], ProgressBarDeterminateComponent.prototype, "targetValue", void 0);
|
|
6097
|
-
__decorate([
|
|
6098
|
-
Input()
|
|
6099
|
-
], ProgressBarDeterminateComponent.prototype, "targetLabel", void 0);
|
|
6100
|
-
__decorate([
|
|
6101
|
-
Input()
|
|
6102
|
-
], ProgressBarDeterminateComponent.prototype, "activeColor", void 0);
|
|
6103
|
-
__decorate([
|
|
6104
|
-
Input()
|
|
6105
|
-
], ProgressBarDeterminateComponent.prototype, "showValue", void 0);
|
|
6106
|
-
ProgressBarDeterminateComponent = __decorate([
|
|
6107
|
-
Component({
|
|
6108
|
-
selector: "s-progressbar-determinate",
|
|
6109
|
-
template: "<div class=\"progressbar-determinate\">\n <div class=\"progressbar-container\">\n <div\n class=\"progressbar-active\"\n [ngClass]=\"{\n 'progressbar-active--blue' : activeColor === 'blue',\n 'progressbar-active--green': activeColor === 'green',\n 'progressbar-active--red': activeColor === 'red',\n 'progressbar-active--yellow': activeColor === 'yellow'\n }\"\n [ngStyle]=\"{ 'width': value + '%' }\">\n\n {{ showValue && value ? numberFormat.format(value) + '%' : '' }}\n </div>\n </div>\n <div\n *ngIf=\"targetValue\"\n class=\"target\"\n [ngStyle]=\"{\n 'left': targetValue <= 50 ? targetValue + '%' : 'unset',\n 'right': targetValue > 50 ? 100 - targetValue + '%' : 'unset',\n 'align-items': targetValue > 50 ? 'flex-end' : 'flex-start'\n }\">\n <span class=\"target-line\"></span>\n <span class=\"target-label\">\n {{ targetLabel || numberFormat.format(value) + '%' }}\n </span>\n </div>\n </div>\n",
|
|
6110
|
-
styles: [".progressbar-determinate{position:relative}.progressbar-determinate .progressbar-container{background-color:#d8d8d8;border-radius:4px;height:24px;overflow:hidden;width:100%}.progressbar-determinate .progressbar-container .progressbar-active{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;font-family:\"Open Sans\",sans-serif;font-size:14px;height:100%;-ms-flex-pack:center;justify-content:center;line-height:150%;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:80%}.progressbar-determinate .progressbar-container .progressbar-active--blue{background-color:#428bca}.progressbar-determinate .progressbar-container .progressbar-active--green{background-color:#0c9348}.progressbar-determinate .progressbar-container .progressbar-active--red{background-color:#c13018}.progressbar-determinate .progressbar-container .progressbar-active--yellow{background-color:#fcbf10;color:#212533}.progressbar-determinate .target{-ms-flex-align:start;align-items:flex-start;bottom:-38px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute}.progressbar-determinate .target .target-line{background-color:#333;height:40px;margin:8px 0;width:1px}.progressbar-determinate .target .target-label{background-color:#426e78;border-radius:10px;color:#e5eaea;font-family:\"Open Sans\",sans-serif;font-size:12px;line-height:150%;padding:2px 12px}"]
|
|
6111
|
-
})
|
|
6112
|
-
], ProgressBarDeterminateComponent);
|
|
6113
|
-
return ProgressBarDeterminateComponent;
|
|
6111
|
+
ExportUtils.isFunction = function (obj) {
|
|
6112
|
+
return !!(obj && obj.constructor && obj.call && obj.apply);
|
|
6113
|
+
};
|
|
6114
|
+
return ExportUtils;
|
|
6114
6115
|
}());
|
|
6115
6116
|
|
|
6116
|
-
var
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
__decorate([
|
|
6123
|
-
Input()
|
|
6124
|
-
], ProgressBarIndeterminateComponent.prototype, "label", void 0);
|
|
6125
|
-
ProgressBarIndeterminateComponent = __decorate([
|
|
6126
|
-
Component({
|
|
6127
|
-
selector: "s-progressbar-indeterminate",
|
|
6128
|
-
template: "<div class=\"progressbar-indeterminate\">\n <div class=\"progressbar-container\">\n <div class=\"indeterminate-bar\" [ngClass]=\"{\n 'indeterminate-bar--blue': activeColor === 'blue',\n 'indeterminate-bar--green': activeColor === 'green',\n 'indeterminate-bar--red': activeColor === 'red',\n 'indeterminate-bar--yellow': activeColor === 'yellow'\n }\"></div>\n </div>\n\n <span *ngIf=\"label\" class=\"progressbar-label\">{{ label }}</span>\n</div>\n",
|
|
6129
|
-
styles: [".progressbar-indeterminate{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.progressbar-indeterminate .progressbar-container{background-color:#d8d8d8;border-radius:4px;height:24px;margin:8px 0;overflow:hidden;width:100%}.progressbar-indeterminate .indeterminate-bar{animation:5s infinite indeterminate-progress;background-color:#428bca;height:100%;width:40%}.progressbar-indeterminate .indeterminate-bar--blue{background-color:#428bca}.progressbar-indeterminate .indeterminate-bar--green{background-color:#0c9348}.progressbar-indeterminate .indeterminate-bar--red{background-color:#c13018}.progressbar-indeterminate .indeterminate-bar--yellow{background-color:#fcbf10}.progressbar-indeterminate .progressbar-label{font-family:\"Open Sans\" sans-serif;font-size:12px;line-height:150%;color:#212533}@keyframes indeterminate-progress{0%{transform:translateX(-250%)}100%{transform:translateX(250%)}}"]
|
|
6130
|
-
})
|
|
6131
|
-
], ProgressBarIndeterminateComponent);
|
|
6132
|
-
return ProgressBarIndeterminateComponent;
|
|
6133
|
-
}());
|
|
6134
|
-
|
|
6135
|
-
var ProgressBarModule = /** @class */ (function () {
|
|
6136
|
-
function ProgressBarModule() {
|
|
6137
|
-
}
|
|
6138
|
-
ProgressBarModule = __decorate([
|
|
6139
|
-
NgModule({
|
|
6140
|
-
imports: [CommonModule],
|
|
6141
|
-
declarations: [
|
|
6142
|
-
ProgressBarComponent,
|
|
6143
|
-
ProgressBarDeterminateComponent,
|
|
6144
|
-
ProgressBarIndeterminateComponent,
|
|
6145
|
-
],
|
|
6146
|
-
exports: [ProgressBarComponent],
|
|
6147
|
-
})
|
|
6148
|
-
], ProgressBarModule);
|
|
6149
|
-
return ProgressBarModule;
|
|
6150
|
-
}());
|
|
6151
|
-
|
|
6152
|
-
var LocalizedBignumberPipe = /** @class */ (function () {
|
|
6153
|
-
function LocalizedBignumberPipe(localeService) {
|
|
6154
|
-
this.localeService = localeService;
|
|
6155
|
-
}
|
|
6156
|
-
LocalizedBignumberPipe.prototype.transform = function (value, options) {
|
|
6157
|
-
return value !== undefined && value !== null ? this.applyMask(value, options) : of(value);
|
|
6158
|
-
};
|
|
6159
|
-
LocalizedBignumberPipe.prototype.applyMask = function (value, options) {
|
|
6160
|
-
return this.localeService.get().pipe(map(function (localeConfig) {
|
|
6161
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
6162
|
-
var configs = {
|
|
6163
|
-
prefix: (_c = (_a = options === null || options === void 0 ? void 0 : options.prefix) !== null && _a !== void 0 ? _a : (_b = localeConfig === null || localeConfig === void 0 ? void 0 : localeConfig.number) === null || _b === void 0 ? void 0 : _b.currencySymbol) !== null && _c !== void 0 ? _c : "R$",
|
|
6164
|
-
thousandsSeparator: (_f = (_d = options === null || options === void 0 ? void 0 : options.thousandsSeparator) !== null && _d !== void 0 ? _d : (_e = localeConfig === null || localeConfig === void 0 ? void 0 : localeConfig.number) === null || _e === void 0 ? void 0 : _e.thousandsSeparator) !== null && _f !== void 0 ? _f : ".",
|
|
6165
|
-
decimalSeparator: (_j = (_g = options === null || options === void 0 ? void 0 : options.decimalSeparator) !== null && _g !== void 0 ? _g : (_h = localeConfig === null || localeConfig === void 0 ? void 0 : localeConfig.number) === null || _h === void 0 ? void 0 : _h.decimalSeparator) !== null && _j !== void 0 ? _j : ",",
|
|
6166
|
-
scale: (_k = options === null || options === void 0 ? void 0 : options.scale) !== null && _k !== void 0 ? _k : 2,
|
|
6167
|
-
allowNegative: (_l = options === null || options === void 0 ? void 0 : options.allowNegative) !== null && _l !== void 0 ? _l : true
|
|
6168
|
-
};
|
|
6169
|
-
var isNumber = !(new BigNumber(value).isNaN());
|
|
6170
|
-
return applyMask(value, configs, isNumber);
|
|
6171
|
-
}));
|
|
6172
|
-
};
|
|
6173
|
-
LocalizedBignumberPipe.ctorParameters = function () { return [
|
|
6174
|
-
{ type: LocaleService }
|
|
6175
|
-
]; };
|
|
6176
|
-
LocalizedBignumberPipe = __decorate([
|
|
6177
|
-
Pipe({
|
|
6178
|
-
name: "localizedBignumber",
|
|
6179
|
-
})
|
|
6180
|
-
], LocalizedBignumberPipe);
|
|
6181
|
-
return LocalizedBignumberPipe;
|
|
6182
|
-
}());
|
|
6183
|
-
|
|
6184
|
-
var LocalizedBignumberImpurePipe = /** @class */ (function (_super) {
|
|
6185
|
-
__extends(LocalizedBignumberImpurePipe, _super);
|
|
6186
|
-
function LocalizedBignumberImpurePipe() {
|
|
6187
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
6188
|
-
}
|
|
6189
|
-
LocalizedBignumberImpurePipe.prototype.transform = function (value, options) {
|
|
6190
|
-
return _super.prototype.transform.call(this, value, options);
|
|
6191
|
-
};
|
|
6192
|
-
LocalizedBignumberImpurePipe = __decorate([
|
|
6193
|
-
Pipe({
|
|
6194
|
-
name: "localizedBignumberImpure",
|
|
6195
|
-
pure: false,
|
|
6196
|
-
})
|
|
6197
|
-
], LocalizedBignumberImpurePipe);
|
|
6198
|
-
return LocalizedBignumberImpurePipe;
|
|
6199
|
-
}(LocalizedBignumberPipe));
|
|
6200
|
-
|
|
6201
|
-
var LocalizedCurrencyPipeOptions = /** @class */ (function (_super) {
|
|
6202
|
-
__extends(LocalizedCurrencyPipeOptions, _super);
|
|
6203
|
-
function LocalizedCurrencyPipeOptions(config) {
|
|
6204
|
-
if (config === void 0) { config = {}; }
|
|
6205
|
-
var _this = _super.call(this, config) || this;
|
|
6206
|
-
_this.scale = 2;
|
|
6207
|
-
return _this;
|
|
6208
|
-
}
|
|
6209
|
-
return LocalizedCurrencyPipeOptions;
|
|
6210
|
-
}(NumberLocaleOptions));
|
|
6211
|
-
/**
|
|
6212
|
-
* @deprecated Should use localizedBignumberPipe instead
|
|
6213
|
-
*/
|
|
6214
|
-
var LocalizedCurrencyPipe = /** @class */ (function () {
|
|
6215
|
-
function LocalizedCurrencyPipe(localeService) {
|
|
6216
|
-
this.localeService = localeService;
|
|
6217
|
-
}
|
|
6218
|
-
LocalizedCurrencyPipe.prototype.transform = function (value, options) {
|
|
6219
|
-
if (!options) {
|
|
6220
|
-
options = new LocalizedCurrencyPipeOptions();
|
|
6221
|
-
}
|
|
6222
|
-
return value !== undefined && value !== null ? this.applyMask(value, options) : of(value);
|
|
6223
|
-
};
|
|
6224
|
-
LocalizedCurrencyPipe.prototype.applyMask = function (value, options) {
|
|
6225
|
-
return this.localeService.get().pipe(map(function (localeConfig) {
|
|
6226
|
-
var config = __assign(__assign({}, localeConfig.number), options);
|
|
6227
|
-
var scale = config.scale, currencySymbol = config.currencySymbol, thousandsSeparator = config.thousandsSeparator, decimalSeparator = config.decimalSeparator;
|
|
6228
|
-
var rawValue = Number(value).toFixed(scale);
|
|
6229
|
-
var onlyNumbers = rawValue.replace(/[^0-9]/g, "");
|
|
6230
|
-
var integerPart = onlyNumbers
|
|
6231
|
-
.slice(0, onlyNumbers.length - scale)
|
|
6232
|
-
.replace(/^0*/g, "")
|
|
6233
|
-
.replace(/\B(?=(\d{3})+(?!\d))/g, thousandsSeparator) || "0";
|
|
6234
|
-
var decimalPart = onlyNumbers.slice(onlyNumbers.length - scale);
|
|
6235
|
-
var newValue = scale ? integerPart + decimalSeparator + decimalPart : integerPart;
|
|
6236
|
-
var isZero = !Number(onlyNumbers);
|
|
6237
|
-
var operator = rawValue.includes("-") && !isZero ? "-" : "";
|
|
6238
|
-
return "" + operator + currencySymbol + newValue;
|
|
6239
|
-
}));
|
|
6240
|
-
};
|
|
6241
|
-
LocalizedCurrencyPipe.ctorParameters = function () { return [
|
|
6242
|
-
{ type: LocaleService }
|
|
6243
|
-
]; };
|
|
6244
|
-
LocalizedCurrencyPipe = __decorate([
|
|
6245
|
-
Pipe({
|
|
6246
|
-
name: "localizedCurrency",
|
|
6247
|
-
})
|
|
6248
|
-
], LocalizedCurrencyPipe);
|
|
6249
|
-
return LocalizedCurrencyPipe;
|
|
6250
|
-
}());
|
|
6251
|
-
|
|
6252
|
-
/**
|
|
6253
|
-
* @deprecated Should use localizedBignumberPipe instead
|
|
6254
|
-
*/
|
|
6255
|
-
var LocalizedCurrencyImpurePipe = /** @class */ (function (_super) {
|
|
6256
|
-
__extends(LocalizedCurrencyImpurePipe, _super);
|
|
6257
|
-
function LocalizedCurrencyImpurePipe() {
|
|
6258
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
6259
|
-
}
|
|
6260
|
-
LocalizedCurrencyImpurePipe.prototype.transform = function (value, options) {
|
|
6261
|
-
if (options === void 0) { options = new LocalizedCurrencyPipeOptions(); }
|
|
6262
|
-
return _super.prototype.transform.call(this, value, options);
|
|
6263
|
-
};
|
|
6264
|
-
LocalizedCurrencyImpurePipe = __decorate([
|
|
6265
|
-
Pipe({
|
|
6266
|
-
name: "localizedCurrencyImpure",
|
|
6267
|
-
pure: false,
|
|
6268
|
-
})
|
|
6269
|
-
], LocalizedCurrencyImpurePipe);
|
|
6270
|
-
return LocalizedCurrencyImpurePipe;
|
|
6271
|
-
}(LocalizedCurrencyPipe));
|
|
6272
|
-
|
|
6273
|
-
var moment$1 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
|
|
6274
|
-
var LocalizedDatePipe = /** @class */ (function () {
|
|
6275
|
-
function LocalizedDatePipe(localeService) {
|
|
6276
|
-
this.localeService = localeService;
|
|
6277
|
-
}
|
|
6278
|
-
LocalizedDatePipe.prototype.transform = function (value, format) {
|
|
6279
|
-
if (format === void 0) { format = "L LTS"; }
|
|
6280
|
-
return this.localeService.get().pipe(map(function () { return (value ? moment$1(value).format(format) : value); }));
|
|
6281
|
-
};
|
|
6282
|
-
LocalizedDatePipe.ctorParameters = function () { return [
|
|
6283
|
-
{ type: LocaleService }
|
|
6284
|
-
]; };
|
|
6285
|
-
LocalizedDatePipe = __decorate([
|
|
6286
|
-
Pipe({
|
|
6287
|
-
name: "localizedDate",
|
|
6288
|
-
})
|
|
6289
|
-
], LocalizedDatePipe);
|
|
6290
|
-
return LocalizedDatePipe;
|
|
6291
|
-
}());
|
|
6292
|
-
|
|
6293
|
-
var LocalizedDateImpurePipe = /** @class */ (function (_super) {
|
|
6294
|
-
__extends(LocalizedDateImpurePipe, _super);
|
|
6295
|
-
function LocalizedDateImpurePipe() {
|
|
6296
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
6297
|
-
}
|
|
6298
|
-
LocalizedDateImpurePipe = __decorate([
|
|
6299
|
-
Pipe({
|
|
6300
|
-
name: "localizedDateImpure",
|
|
6301
|
-
pure: false,
|
|
6302
|
-
})
|
|
6303
|
-
], LocalizedDateImpurePipe);
|
|
6304
|
-
return LocalizedDateImpurePipe;
|
|
6305
|
-
}(LocalizedDatePipe));
|
|
6306
|
-
|
|
6307
|
-
/**
|
|
6308
|
-
* @deprecated Should use localizedBignumberPipe instead
|
|
6309
|
-
*/
|
|
6310
|
-
var LocalizedNumberPipe = /** @class */ (function () {
|
|
6311
|
-
function LocalizedNumberPipe(localeService) {
|
|
6312
|
-
this.localeService = localeService;
|
|
6313
|
-
}
|
|
6314
|
-
LocalizedNumberPipe.prototype.transform = function (value, minimumFractionDigits) {
|
|
6315
|
-
return from(this.localeService.getLocale()).pipe(map(function (locale) {
|
|
6316
|
-
var numericValue = Number(value);
|
|
6317
|
-
if (!value && isNaN(numericValue))
|
|
6318
|
-
return;
|
|
6319
|
-
return new Intl.NumberFormat(locale, {
|
|
6320
|
-
minimumFractionDigits: minimumFractionDigits || 0,
|
|
6321
|
-
}).format(Number(value));
|
|
6322
|
-
}));
|
|
6323
|
-
};
|
|
6324
|
-
LocalizedNumberPipe.ctorParameters = function () { return [
|
|
6325
|
-
{ type: LocaleService }
|
|
6326
|
-
]; };
|
|
6327
|
-
LocalizedNumberPipe = __decorate([
|
|
6328
|
-
Pipe({ name: "localizedNumber" })
|
|
6329
|
-
], LocalizedNumberPipe);
|
|
6330
|
-
return LocalizedNumberPipe;
|
|
6331
|
-
}());
|
|
6332
|
-
|
|
6333
|
-
var moment$2 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
|
|
6334
|
-
var LocalizedTimePipe = /** @class */ (function () {
|
|
6335
|
-
function LocalizedTimePipe(localeService) {
|
|
6336
|
-
this.localeService = localeService;
|
|
6337
|
-
}
|
|
6338
|
-
LocalizedTimePipe.prototype.transform = function (value, format) {
|
|
6339
|
-
if (format === void 0) { format = "LTS"; }
|
|
6340
|
-
return this.localeService.get().pipe(map(function () { return (value ? moment$2(value, "HH:mm:ss").format(format) : value); }));
|
|
6341
|
-
};
|
|
6342
|
-
LocalizedTimePipe.ctorParameters = function () { return [
|
|
6343
|
-
{ type: LocaleService }
|
|
6344
|
-
]; };
|
|
6345
|
-
LocalizedTimePipe = __decorate([
|
|
6346
|
-
Pipe({
|
|
6347
|
-
name: "localizedTime",
|
|
6348
|
-
})
|
|
6349
|
-
], LocalizedTimePipe);
|
|
6350
|
-
return LocalizedTimePipe;
|
|
6351
|
-
}());
|
|
6352
|
-
|
|
6353
|
-
var LocalizedTimeImpurePipe = /** @class */ (function (_super) {
|
|
6354
|
-
__extends(LocalizedTimeImpurePipe, _super);
|
|
6355
|
-
function LocalizedTimeImpurePipe() {
|
|
6356
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
6357
|
-
}
|
|
6358
|
-
LocalizedTimeImpurePipe = __decorate([
|
|
6359
|
-
Pipe({
|
|
6360
|
-
name: "localizedTimeImpure",
|
|
6361
|
-
pure: false,
|
|
6362
|
-
})
|
|
6363
|
-
], LocalizedTimeImpurePipe);
|
|
6364
|
-
return LocalizedTimeImpurePipe;
|
|
6365
|
-
}(LocalizedTimePipe));
|
|
6366
|
-
|
|
6367
|
-
var LocaleModule = /** @class */ (function () {
|
|
6368
|
-
function LocaleModule() {
|
|
6369
|
-
}
|
|
6370
|
-
LocaleModule_1 = LocaleModule;
|
|
6371
|
-
LocaleModule.forRoot = function () {
|
|
6372
|
-
return {
|
|
6373
|
-
ngModule: LocaleModule_1,
|
|
6374
|
-
providers: [
|
|
6375
|
-
LocaleService,
|
|
6376
|
-
LocalizedCurrencyPipe,
|
|
6377
|
-
LocalizedDatePipe,
|
|
6378
|
-
LocalizedTimePipe,
|
|
6379
|
-
LocalizedNumberPipe,
|
|
6380
|
-
LocalizedCurrencyImpurePipe,
|
|
6381
|
-
LocalizedDateImpurePipe,
|
|
6382
|
-
LocalizedTimeImpurePipe,
|
|
6383
|
-
LocalizedBignumberPipe,
|
|
6384
|
-
LocalizedBignumberImpurePipe
|
|
6385
|
-
],
|
|
6386
|
-
};
|
|
6387
|
-
};
|
|
6388
|
-
LocaleModule.forChild = function () {
|
|
6389
|
-
return {
|
|
6390
|
-
ngModule: LocaleModule_1,
|
|
6391
|
-
};
|
|
6392
|
-
};
|
|
6393
|
-
var LocaleModule_1;
|
|
6394
|
-
LocaleModule = LocaleModule_1 = __decorate([
|
|
6395
|
-
NgModule({
|
|
6396
|
-
imports: [CommonModule],
|
|
6397
|
-
exports: [
|
|
6398
|
-
LocalizedCurrencyPipe,
|
|
6399
|
-
LocalizedDatePipe,
|
|
6400
|
-
LocalizedTimePipe,
|
|
6401
|
-
LocalizedNumberPipe,
|
|
6402
|
-
LocalizedCurrencyImpurePipe,
|
|
6403
|
-
LocalizedDateImpurePipe,
|
|
6404
|
-
LocalizedTimeImpurePipe,
|
|
6405
|
-
LocalizedBignumberPipe,
|
|
6406
|
-
LocalizedBignumberImpurePipe
|
|
6407
|
-
],
|
|
6408
|
-
declarations: [
|
|
6409
|
-
LocalizedCurrencyPipe,
|
|
6410
|
-
LocalizedDatePipe,
|
|
6411
|
-
LocalizedTimePipe,
|
|
6412
|
-
LocalizedNumberPipe,
|
|
6413
|
-
LocalizedCurrencyImpurePipe,
|
|
6414
|
-
LocalizedDateImpurePipe,
|
|
6415
|
-
LocalizedTimeImpurePipe,
|
|
6416
|
-
LocalizedBignumberPipe,
|
|
6417
|
-
LocalizedBignumberImpurePipe
|
|
6418
|
-
],
|
|
6419
|
-
})
|
|
6420
|
-
], LocaleModule);
|
|
6421
|
-
return LocaleModule;
|
|
6422
|
-
}());
|
|
6423
|
-
|
|
6424
|
-
var Breakpoints = {
|
|
6425
|
-
SM_MIN: 0,
|
|
6426
|
-
SM_MAX: 767,
|
|
6427
|
-
MD_MIN: 768,
|
|
6428
|
-
MD_MAX: 991,
|
|
6429
|
-
LG_MIN: 992,
|
|
6430
|
-
LG_MAX: 1199,
|
|
6431
|
-
XL_MIN: 1200,
|
|
6432
|
-
XL_MAX: Infinity,
|
|
6433
|
-
};
|
|
6434
|
-
|
|
6435
|
-
var ExportUtils = /** @class */ (function () {
|
|
6436
|
-
function ExportUtils() {
|
|
6437
|
-
throw new Error("Classe não deve ser instanciada.");
|
|
6438
|
-
}
|
|
6439
|
-
ExportUtils.addClass = function (element, className) {
|
|
6440
|
-
element.nativeElement.className = element.nativeElement.className + " " + className;
|
|
6441
|
-
};
|
|
6442
|
-
ExportUtils.removeClass = function (element, className) {
|
|
6443
|
-
if (element.nativeElement.className.includes(className)) {
|
|
6444
|
-
element.nativeElement.className = element.nativeElement.className.replace(className, "");
|
|
6445
|
-
}
|
|
6446
|
-
};
|
|
6447
|
-
ExportUtils.exportCSV = function (columns, data, csvSeparator, documentName) {
|
|
6448
|
-
var _this = this;
|
|
6449
|
-
if (columns === void 0) { columns = []; }
|
|
6450
|
-
if (data === void 0) { data = []; }
|
|
6451
|
-
if (csvSeparator === void 0) { csvSeparator = ";"; }
|
|
6452
|
-
if (documentName === void 0) { documentName = "download"; }
|
|
6453
|
-
var csv = "\ufeff";
|
|
6454
|
-
columns.filter(function (column) { return column.exportable && column.field; }).forEach(function (column, i) {
|
|
6455
|
-
csv += "\"" + (column.header || column.field) + "\"";
|
|
6456
|
-
if (i < columns.length - 1)
|
|
6457
|
-
csv += csvSeparator;
|
|
6458
|
-
});
|
|
6459
|
-
data.forEach(function (record) {
|
|
6460
|
-
csv += "\n";
|
|
6461
|
-
columns.filter(function (column) { return column.exportable && column.field; }).forEach(function (column, i) {
|
|
6462
|
-
var cellData;
|
|
6463
|
-
if (Array.isArray(column.field)) {
|
|
6464
|
-
var fieldValues = column.field.map(function (col) { return _this.resolveFieldData(record, col); });
|
|
6465
|
-
cellData = fieldValues
|
|
6466
|
-
.flat()
|
|
6467
|
-
.filter(function (value) { return value !== null && value !== undefined; })
|
|
6468
|
-
.join(column.separator);
|
|
6469
|
-
}
|
|
6470
|
-
else {
|
|
6471
|
-
cellData = _this.resolveFieldData(record, column.field);
|
|
6472
|
-
}
|
|
6473
|
-
if (cellData != null)
|
|
6474
|
-
cellData = String(cellData).replace(/"/g, "\"\"");
|
|
6475
|
-
else
|
|
6476
|
-
cellData = "";
|
|
6477
|
-
csv += "\"" + cellData + "\"";
|
|
6478
|
-
if (i < columns.length - 1)
|
|
6479
|
-
csv += csvSeparator;
|
|
6480
|
-
});
|
|
6481
|
-
});
|
|
6482
|
-
var blob = new Blob([csv], {
|
|
6483
|
-
type: "text/csv;charset=utf-8;",
|
|
6484
|
-
});
|
|
6485
|
-
if (window.navigator.msSaveOrOpenBlob)
|
|
6486
|
-
navigator.msSaveOrOpenBlob(blob, documentName + ".csv");
|
|
6487
|
-
else {
|
|
6488
|
-
var link = document.createElement("a");
|
|
6489
|
-
link.style.display = "none";
|
|
6490
|
-
document.body.appendChild(link);
|
|
6491
|
-
if (link.download !== undefined) {
|
|
6492
|
-
link.setAttribute("href", URL.createObjectURL(blob));
|
|
6493
|
-
link.setAttribute("download", documentName + ".csv");
|
|
6494
|
-
link.click();
|
|
6495
|
-
}
|
|
6496
|
-
else {
|
|
6497
|
-
csv = "data:text/csv;charset=utf-8," + csv;
|
|
6498
|
-
window.open(encodeURI(csv));
|
|
6499
|
-
}
|
|
6500
|
-
document.body.removeChild(link);
|
|
6501
|
-
}
|
|
6502
|
-
};
|
|
6503
|
-
ExportUtils.resolveFieldData = function (data, field) {
|
|
6504
|
-
if (data && field) {
|
|
6505
|
-
if (this.isFunction(field))
|
|
6506
|
-
return field(data);
|
|
6507
|
-
else if (field.indexOf(".") == -1)
|
|
6508
|
-
return data[field];
|
|
6509
|
-
else {
|
|
6510
|
-
var fields = field.split(".");
|
|
6511
|
-
var value = data;
|
|
6512
|
-
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
6513
|
-
if (value == null) {
|
|
6514
|
-
return null;
|
|
6515
|
-
}
|
|
6516
|
-
value = value[fields[i]];
|
|
6517
|
-
}
|
|
6518
|
-
return value;
|
|
6519
|
-
}
|
|
6520
|
-
}
|
|
6521
|
-
else
|
|
6522
|
-
return null;
|
|
6523
|
-
};
|
|
6524
|
-
ExportUtils.isFunction = function (obj) {
|
|
6525
|
-
return !!(obj && obj.constructor && obj.call && obj.apply);
|
|
6526
|
-
};
|
|
6527
|
-
return ExportUtils;
|
|
6528
|
-
}());
|
|
6529
|
-
|
|
6530
|
-
var ValidateErrors;
|
|
6531
|
-
(function (ValidateErrors) {
|
|
6532
|
-
ValidateErrors["MAX_FILE_SIZE"] = "MAX_FILE_SIZE";
|
|
6533
|
-
ValidateErrors["MAX_COMBINED_FILE_SIZE"] = "MAX_COMBINED_FILE_SIZE";
|
|
6534
|
-
ValidateErrors["MAX_FILE_LIMIT"] = "MAX_FILE_LIMIT";
|
|
6535
|
-
ValidateErrors["UNSUPPORTED_EXTENSION"] = "UNSUPPORTED_EXTENSION";
|
|
6536
|
-
})(ValidateErrors || (ValidateErrors = {}));
|
|
6117
|
+
var ValidateErrors;
|
|
6118
|
+
(function (ValidateErrors) {
|
|
6119
|
+
ValidateErrors["MAX_FILE_SIZE"] = "MAX_FILE_SIZE";
|
|
6120
|
+
ValidateErrors["MAX_FILE_LIMIT"] = "MAX_FILE_LIMIT";
|
|
6121
|
+
ValidateErrors["UNSUPPORTED_EXTENSION"] = "UNSUPPORTED_EXTENSION";
|
|
6122
|
+
})(ValidateErrors || (ValidateErrors = {}));
|
|
6537
6123
|
|
|
6538
6124
|
var FileUploadPermissions;
|
|
6539
6125
|
(function (FileUploadPermissions) {
|
|
@@ -6547,132 +6133,7 @@ var ALL_PERMISSIONS = [
|
|
|
6547
6133
|
FileUploadPermissions.Remove,
|
|
6548
6134
|
];
|
|
6549
6135
|
|
|
6550
|
-
var
|
|
6551
|
-
KB: 1024,
|
|
6552
|
-
MB: Math.pow(1024, 2),
|
|
6553
|
-
GB: Math.pow(1024, 3),
|
|
6554
|
-
};
|
|
6555
|
-
|
|
6556
|
-
var FileItemComponent = /** @class */ (function () {
|
|
6557
|
-
function FileItemComponent(localeService) {
|
|
6558
|
-
this.localeService = localeService;
|
|
6559
|
-
this.canReadFiles = true;
|
|
6560
|
-
this.canRemoveFiles = true;
|
|
6561
|
-
this.cancelUpload = new EventEmitter();
|
|
6562
|
-
this.removeFile = new EventEmitter();
|
|
6563
|
-
}
|
|
6564
|
-
FileItemComponent.prototype.ngOnInit = function () {
|
|
6565
|
-
this._getLocale();
|
|
6566
|
-
};
|
|
6567
|
-
FileItemComponent.prototype.ngAfterContentInit = function () {
|
|
6568
|
-
this._update();
|
|
6569
|
-
};
|
|
6570
|
-
FileItemComponent.prototype.onResize = function () {
|
|
6571
|
-
this._update();
|
|
6572
|
-
};
|
|
6573
|
-
FileItemComponent.prototype._update = function () {
|
|
6574
|
-
var windowWidth = window.innerWidth;
|
|
6575
|
-
this.isSmallDevice = windowWidth <= Breakpoints.SM_MAX;
|
|
6576
|
-
};
|
|
6577
|
-
FileItemComponent.prototype.simplifySize = function (size) {
|
|
6578
|
-
var unit;
|
|
6579
|
-
var convertedSize;
|
|
6580
|
-
if (size < StorageUnits.KB) {
|
|
6581
|
-
convertedSize = size;
|
|
6582
|
-
unit = "bytes";
|
|
6583
|
-
}
|
|
6584
|
-
else if (size < StorageUnits.MB) {
|
|
6585
|
-
convertedSize = size / StorageUnits.KB;
|
|
6586
|
-
unit = "KB";
|
|
6587
|
-
}
|
|
6588
|
-
else if (size < StorageUnits.GB) {
|
|
6589
|
-
convertedSize = size / StorageUnits.MB;
|
|
6590
|
-
unit = "MB";
|
|
6591
|
-
}
|
|
6592
|
-
else {
|
|
6593
|
-
convertedSize = size / StorageUnits.GB;
|
|
6594
|
-
unit = "GB";
|
|
6595
|
-
}
|
|
6596
|
-
return convertedSize.toLocaleString(this._locale, { maximumFractionDigits: 2 }) + " " + unit;
|
|
6597
|
-
};
|
|
6598
|
-
FileItemComponent.prototype._getLocale = function () {
|
|
6599
|
-
var _this = this;
|
|
6600
|
-
this.localeService
|
|
6601
|
-
.getLocale()
|
|
6602
|
-
.pipe(first())
|
|
6603
|
-
.subscribe(function (locale) {
|
|
6604
|
-
_this._locale = locale;
|
|
6605
|
-
});
|
|
6606
|
-
};
|
|
6607
|
-
FileItemComponent.ctorParameters = function () { return [
|
|
6608
|
-
{ type: LocaleService }
|
|
6609
|
-
]; };
|
|
6610
|
-
__decorate([
|
|
6611
|
-
Input()
|
|
6612
|
-
], FileItemComponent.prototype, "id", void 0);
|
|
6613
|
-
__decorate([
|
|
6614
|
-
Input()
|
|
6615
|
-
], FileItemComponent.prototype, "file", void 0);
|
|
6616
|
-
__decorate([
|
|
6617
|
-
Input()
|
|
6618
|
-
], FileItemComponent.prototype, "canReadFiles", void 0);
|
|
6619
|
-
__decorate([
|
|
6620
|
-
Input()
|
|
6621
|
-
], FileItemComponent.prototype, "canRemoveFiles", void 0);
|
|
6622
|
-
__decorate([
|
|
6623
|
-
Input()
|
|
6624
|
-
], FileItemComponent.prototype, "cancelLabel", void 0);
|
|
6625
|
-
__decorate([
|
|
6626
|
-
Input()
|
|
6627
|
-
], FileItemComponent.prototype, "removeLabel", void 0);
|
|
6628
|
-
__decorate([
|
|
6629
|
-
Input()
|
|
6630
|
-
], FileItemComponent.prototype, "ariaLabelProgress", void 0);
|
|
6631
|
-
__decorate([
|
|
6632
|
-
Input()
|
|
6633
|
-
], FileItemComponent.prototype, "successTooltip", void 0);
|
|
6634
|
-
__decorate([
|
|
6635
|
-
Input()
|
|
6636
|
-
], FileItemComponent.prototype, "ariaLabelSuccess", void 0);
|
|
6637
|
-
__decorate([
|
|
6638
|
-
Output()
|
|
6639
|
-
], FileItemComponent.prototype, "cancelUpload", void 0);
|
|
6640
|
-
__decorate([
|
|
6641
|
-
Output()
|
|
6642
|
-
], FileItemComponent.prototype, "removeFile", void 0);
|
|
6643
|
-
__decorate([
|
|
6644
|
-
HostListener("window:resize")
|
|
6645
|
-
], FileItemComponent.prototype, "onResize", null);
|
|
6646
|
-
FileItemComponent = __decorate([
|
|
6647
|
-
Component({
|
|
6648
|
-
selector: "s-file-item",
|
|
6649
|
-
template: "<div [id]=\"id\" class=\"file-item-container\">\n <div class=\"file-info\">\n <ng-container *ngIf=\"canReadFiles; then fileNameUrl; else fileName\"></ng-container>\n <ng-template #fileNameUrl>\n <a\n class=\"file-name file-name--link\"\n tabindex=\"0\"\n [href]=\"file.objectURL\"\n download>\n {{ file.name }}\n </a>\n </ng-template>\n <ng-template #fileName>\n <span\n *ngIf=\"!canReadFiles\"\n class=\"file-name\">\n {{ file.name }}\n </span>\n </ng-template>\n <span class=\"file-size\">\n {{ simplifySize(file.size) }}\n </span>\n <div\n *ngIf=\"file.isUploading && !isSmallDevice\"\n class=\"progressbar\"\n [attr.aria-label]=\"ariaLabelProgress || 'platform.angular_components.loading_file' | translate\">\n <s-progressbar\n [value]=\"file.progress\"\n activeColor=\"blue\"\n [showValue]=\"true\">\n </s-progressbar>\n </div>\n <span\n *ngIf=\"file.isUploading && isSmallDevice\" \n class=\"fas fa-circle-notch fa-spin\"\n [attr.aria-label]=\"ariaLabelProgress || 'platform.angular_components.loading_file' | translate\">\n </span>\n\n <span\n *ngIf=\"!file.isUploading && !file.error\"\n class=\"status-icon status-icon--success fas fa-check\"\n [attr.aria-label]=\"ariaLabelSuccess || successTooltip || 'platform.angular_components.file_attached_successfully' | translate\"\n [sTooltip]=\"successTooltip || 'platform.angular_components.file_attached_successfully' | translate\">\n </span>\n <span\n *ngIf=\"!file.isUploading && file.error\"\n class=\"status-icon status-icon--fail fas fa-times\"\n [attr.aria-label]=\"file.error?.message\"\n [sTooltip]=\"file.error?.message\">\n </span>\n </div>\n <button\n *ngIf=\"file.isUploading\"\n class=\"file-option file-option--cancel\"\n (click)=\"cancelUpload.emit(file)\">\n {{ cancelLabel || \"platform.angular_components.cancel\" | translate }}\n </button>\n <button\n *ngIf=\"canRemoveFiles && !file.isUploading\"\n class=\"file-option file-option--remove\"\n (click)=\"removeFile.emit(file)\">\n {{ removeLabel || \"platform.angular_components.remove\" | translate }}\n </button>\n</div>\n",
|
|
6650
|
-
styles: [".file-item-container{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:16px;padding:16px}.file-item-container .file-info{color:#212533;display:-ms-flexbox;display:flex;font-family:\"Open Sans\",sans-serif;font-size:14px;gap:16px;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}.file-item-container .file-info .file-name{-ms-flex-positive:1;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-item-container .file-info .file-name--link{color:#428bca;text-decoration:none}.file-item-container .file-info .file-size{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-item-container .progressbar{width:20%}.file-item-container .status-icon{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;font-size:12px}.file-item-container .status-icon--success{color:#0c9348}.file-item-container .status-icon--fail{color:#c13018}.file-item-container .file-option{background-color:transparent;border:none;color:#428bca;cursor:pointer;font-family:\"Open Sans\",sans-serif;font-size:14px;overflow:hidden;text-overflow:ellipsis;max-width:100%}@media screen and (max-width:600px){.file-item-container{-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:column;flex-direction:column}}"]
|
|
6651
|
-
})
|
|
6652
|
-
], FileItemComponent);
|
|
6653
|
-
return FileItemComponent;
|
|
6654
|
-
}());
|
|
6655
|
-
|
|
6656
|
-
var moment$3 = moment_;
|
|
6657
|
-
var FileUploadService = /** @class */ (function () {
|
|
6658
|
-
function FileUploadService() {
|
|
6659
|
-
this.BASE_URL_FIELD_CUSTOMIZATION = "platform/field_customization";
|
|
6660
|
-
this.TOKEN = new AbortController();
|
|
6661
|
-
}
|
|
6662
|
-
FileUploadService.prototype.getMetadataCustomField = function (request) {
|
|
6663
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
6664
|
-
return __generator(this, function (_a) {
|
|
6665
|
-
return [2 /*return*/, CustomHttpClient.POST(this.BASE_URL_FIELD_CUSTOMIZATION + "/queries/getFileMetadata", request, { signal: this.TOKEN.signal })];
|
|
6666
|
-
});
|
|
6667
|
-
});
|
|
6668
|
-
};
|
|
6669
|
-
FileUploadService = __decorate([
|
|
6670
|
-
Injectable()
|
|
6671
|
-
], FileUploadService);
|
|
6672
|
-
return FileUploadService;
|
|
6673
|
-
}());
|
|
6674
|
-
|
|
6675
|
-
var moment$4 = moment_;
|
|
6136
|
+
var moment$1 = moment_;
|
|
6676
6137
|
var FileUploadComponent = /** @class */ (function () {
|
|
6677
6138
|
function FileUploadComponent(sanitizer, fileUploadService, translate) {
|
|
6678
6139
|
this.sanitizer = sanitizer;
|
|
@@ -6691,9 +6152,9 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
6691
6152
|
this.cancelUpload = new EventEmitter();
|
|
6692
6153
|
this.downloadFile = new EventEmitter();
|
|
6693
6154
|
this.validateErrors = new EventEmitter();
|
|
6694
|
-
this.inputValue = "";
|
|
6695
6155
|
this._files = [];
|
|
6696
6156
|
this.ngUsubscribe = new Subject();
|
|
6157
|
+
this.inputValue = "";
|
|
6697
6158
|
}
|
|
6698
6159
|
FileUploadComponent_1 = FileUploadComponent;
|
|
6699
6160
|
Object.defineProperty(FileUploadComponent.prototype, "files", {
|
|
@@ -6704,10 +6165,10 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
6704
6165
|
var _this = this;
|
|
6705
6166
|
var _a;
|
|
6706
6167
|
if (this.showFileUploadDate && ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId)) {
|
|
6707
|
-
this.
|
|
6168
|
+
this.getUploadDate(files);
|
|
6708
6169
|
}
|
|
6709
6170
|
this._files = files.map(function (file) {
|
|
6710
|
-
if (_this.
|
|
6171
|
+
if (_this.isImage(file)) {
|
|
6711
6172
|
file.objectURL = _this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(file));
|
|
6712
6173
|
}
|
|
6713
6174
|
return file;
|
|
@@ -6717,45 +6178,44 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
6717
6178
|
configurable: true
|
|
6718
6179
|
});
|
|
6719
6180
|
FileUploadComponent.prototype.ngOnInit = function () {
|
|
6720
|
-
this.supportedExtensions = this.supportedExtensions
|
|
6181
|
+
this.supportedExtensions = this.supportedExtensions
|
|
6182
|
+
.map(function (extension) { return extension.replace(".", "").toLowerCase(); });
|
|
6721
6183
|
};
|
|
6722
6184
|
FileUploadComponent.prototype.ngOnDestroy = function () {
|
|
6723
6185
|
this.ngUsubscribe.next();
|
|
6724
6186
|
this.ngUsubscribe.complete();
|
|
6725
6187
|
};
|
|
6188
|
+
FileUploadComponent.prototype.ngAfterContentInit = function () {
|
|
6189
|
+
this.update();
|
|
6190
|
+
};
|
|
6191
|
+
FileUploadComponent.prototype.onResize = function () {
|
|
6192
|
+
this.update();
|
|
6193
|
+
};
|
|
6726
6194
|
FileUploadComponent.prototype.onFileSelect = function (files) {
|
|
6727
6195
|
var e_1, _a;
|
|
6728
6196
|
var newFiles = [];
|
|
6729
6197
|
if (!this.multiple) {
|
|
6730
6198
|
this.files = [];
|
|
6731
6199
|
}
|
|
6732
|
-
if (this.
|
|
6200
|
+
if (this.isFileLimitExceeded(files)) {
|
|
6733
6201
|
this.validateErrors.emit({
|
|
6734
6202
|
files: files,
|
|
6735
6203
|
validation: ValidateErrors.MAX_FILE_LIMIT,
|
|
6736
6204
|
});
|
|
6737
|
-
this.
|
|
6738
|
-
return;
|
|
6739
|
-
}
|
|
6740
|
-
if (this._isFileCombinedSizeExceeded(files)) {
|
|
6741
|
-
this.validateErrors.emit({
|
|
6742
|
-
files: files,
|
|
6743
|
-
validation: ValidateErrors.MAX_COMBINED_FILE_SIZE,
|
|
6744
|
-
});
|
|
6745
|
-
this._clearFileInput();
|
|
6205
|
+
this.clearFileInput();
|
|
6746
6206
|
return;
|
|
6747
6207
|
}
|
|
6748
6208
|
try {
|
|
6749
6209
|
for (var files_1 = __values(files), files_1_1 = files_1.next(); !files_1_1.done; files_1_1 = files_1.next()) {
|
|
6750
6210
|
var file = files_1_1.value;
|
|
6751
|
-
if (this.
|
|
6211
|
+
if (this.isUnsupportedFileExtension(file)) {
|
|
6752
6212
|
this.validateErrors.emit({
|
|
6753
6213
|
files: [file],
|
|
6754
6214
|
validation: ValidateErrors.UNSUPPORTED_EXTENSION,
|
|
6755
6215
|
});
|
|
6756
6216
|
continue;
|
|
6757
6217
|
}
|
|
6758
|
-
if (this.
|
|
6218
|
+
if (this.isFileSizeExceeded(file)) {
|
|
6759
6219
|
this.validateErrors.emit({
|
|
6760
6220
|
files: [file],
|
|
6761
6221
|
validation: ValidateErrors.MAX_FILE_SIZE,
|
|
@@ -6778,7 +6238,7 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
6778
6238
|
files: newFiles,
|
|
6779
6239
|
});
|
|
6780
6240
|
}
|
|
6781
|
-
this.
|
|
6241
|
+
this.clearFileInput();
|
|
6782
6242
|
};
|
|
6783
6243
|
FileUploadComponent.prototype.onRemoveFile = function (file) {
|
|
6784
6244
|
var fileIndex = this.files.indexOf(file);
|
|
@@ -6787,13 +6247,12 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
6787
6247
|
this.removeFile.emit({ file: file });
|
|
6788
6248
|
}
|
|
6789
6249
|
};
|
|
6790
|
-
FileUploadComponent.prototype.onCancelUpload = function (
|
|
6791
|
-
var
|
|
6792
|
-
if (
|
|
6793
|
-
this.files.splice(index, 1);
|
|
6250
|
+
FileUploadComponent.prototype.onCancelUpload = function (index) {
|
|
6251
|
+
var removedFiles = this.files.splice(index, 1);
|
|
6252
|
+
if (removedFiles.length) {
|
|
6794
6253
|
this.cancelUpload.emit(index);
|
|
6795
6254
|
}
|
|
6796
|
-
this.
|
|
6255
|
+
this.clearFileInput();
|
|
6797
6256
|
};
|
|
6798
6257
|
FileUploadComponent.prototype.onDowloadFile = function (index) {
|
|
6799
6258
|
this.downloadFile.emit({
|
|
@@ -6801,65 +6260,51 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
6801
6260
|
anchor: this.anchor,
|
|
6802
6261
|
});
|
|
6803
6262
|
};
|
|
6804
|
-
FileUploadComponent.prototype.
|
|
6263
|
+
FileUploadComponent.prototype.update = function () {
|
|
6264
|
+
var windowWidth = window.innerWidth;
|
|
6265
|
+
this.isSmallDevice = windowWidth <= Breakpoints.SM_MAX;
|
|
6266
|
+
};
|
|
6267
|
+
FileUploadComponent.prototype.isImage = function (file) {
|
|
6805
6268
|
return /^image\//.test(file.type);
|
|
6806
6269
|
};
|
|
6807
|
-
FileUploadComponent.prototype.
|
|
6270
|
+
FileUploadComponent.prototype.isFileLimitExceeded = function (files) {
|
|
6808
6271
|
if (!this.fileLimit) {
|
|
6809
6272
|
return false;
|
|
6810
6273
|
}
|
|
6811
6274
|
return this.files.length + files.length > this.fileLimit;
|
|
6812
6275
|
};
|
|
6813
|
-
FileUploadComponent.prototype.
|
|
6814
|
-
if (!this.maxCombinedFileSize) {
|
|
6815
|
-
return false;
|
|
6816
|
-
}
|
|
6817
|
-
var filesList = __spread(files, this.files);
|
|
6818
|
-
var combinedSize = filesList.reduce(function (combinedSize, file) { return combinedSize + file.size; }, 0);
|
|
6819
|
-
return combinedSize > this.maxCombinedFileSize;
|
|
6820
|
-
};
|
|
6821
|
-
FileUploadComponent.prototype._isFileSizeExceeded = function (file) {
|
|
6276
|
+
FileUploadComponent.prototype.isFileSizeExceeded = function (file) {
|
|
6822
6277
|
if (!this.maxFileSize) {
|
|
6823
6278
|
return false;
|
|
6824
6279
|
}
|
|
6825
6280
|
return file.size > this.maxFileSize;
|
|
6826
6281
|
};
|
|
6827
|
-
FileUploadComponent.prototype.
|
|
6282
|
+
FileUploadComponent.prototype.isUnsupportedFileExtension = function (file) {
|
|
6828
6283
|
var _a;
|
|
6829
6284
|
if ((_a = this.supportedExtensions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
6830
|
-
var extension = file.name
|
|
6831
|
-
.split(".")
|
|
6832
|
-
.pop()
|
|
6833
|
-
.toLowerCase();
|
|
6285
|
+
var extension = file.name.split(".").pop().toLowerCase();
|
|
6834
6286
|
return !this.supportedExtensions.includes(extension);
|
|
6835
6287
|
}
|
|
6836
6288
|
return false;
|
|
6837
6289
|
};
|
|
6838
|
-
FileUploadComponent.prototype.
|
|
6290
|
+
FileUploadComponent.prototype.clearFileInput = function () {
|
|
6839
6291
|
this.inputUpload.nativeElement.value = null;
|
|
6840
6292
|
};
|
|
6841
|
-
FileUploadComponent.prototype.
|
|
6293
|
+
FileUploadComponent.prototype.getUploadDate = function (blobFile) {
|
|
6842
6294
|
var _this = this;
|
|
6843
6295
|
if (!blobFile) {
|
|
6844
6296
|
return;
|
|
6845
6297
|
}
|
|
6846
|
-
this.fileUploadService
|
|
6847
|
-
.
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
var
|
|
6852
|
-
var
|
|
6853
|
-
var
|
|
6854
|
-
var
|
|
6855
|
-
|
|
6856
|
-
this.modifiedDate = this.translate.instant("platform.angular_components.date_modified_custom_blob", {
|
|
6857
|
-
hour: hour,
|
|
6858
|
-
minutes: minutes,
|
|
6859
|
-
day: day,
|
|
6860
|
-
month: month,
|
|
6861
|
-
fullYear: fullYear,
|
|
6862
|
-
});
|
|
6298
|
+
this.fileUploadService.getMetadataCustomField({ objectId: blobFile[0].objectId })
|
|
6299
|
+
.then(function (metadata) { return _this.setModifiedDate(metadata); });
|
|
6300
|
+
};
|
|
6301
|
+
FileUploadComponent.prototype.setModifiedDate = function (metadata) {
|
|
6302
|
+
var hour = moment$1(metadata.modified).format("HH");
|
|
6303
|
+
var minutes = moment$1(metadata.modified).format("mm");
|
|
6304
|
+
var day = moment$1(metadata.modified).format("DD");
|
|
6305
|
+
var month = moment$1(metadata.modified).format("MM");
|
|
6306
|
+
var fullYear = moment$1(metadata.modified).format("YYYY");
|
|
6307
|
+
this.modifiedDate = this.translate.instant("platform.angular_components.date_modified_custom_blob", { hour: hour, minutes: minutes, day: day, month: month, fullYear: fullYear });
|
|
6863
6308
|
};
|
|
6864
6309
|
var FileUploadComponent_1;
|
|
6865
6310
|
FileUploadComponent.nextId = 0;
|
|
@@ -6904,9 +6349,6 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
6904
6349
|
__decorate([
|
|
6905
6350
|
Input()
|
|
6906
6351
|
], FileUploadComponent.prototype, "maxFileSize", void 0);
|
|
6907
|
-
__decorate([
|
|
6908
|
-
Input()
|
|
6909
|
-
], FileUploadComponent.prototype, "maxCombinedFileSize", void 0);
|
|
6910
6352
|
__decorate([
|
|
6911
6353
|
Input()
|
|
6912
6354
|
], FileUploadComponent.prototype, "fileLimit", void 0);
|
|
@@ -6952,11 +6394,14 @@ var FileUploadComponent = /** @class */ (function () {
|
|
|
6952
6394
|
__decorate([
|
|
6953
6395
|
Output()
|
|
6954
6396
|
], FileUploadComponent.prototype, "validateErrors", void 0);
|
|
6397
|
+
__decorate([
|
|
6398
|
+
HostListener("window:resize")
|
|
6399
|
+
], FileUploadComponent.prototype, "onResize", null);
|
|
6955
6400
|
FileUploadComponent = FileUploadComponent_1 = __decorate([
|
|
6956
6401
|
Component({
|
|
6957
6402
|
selector: "s-file-upload",
|
|
6958
|
-
template: "<div
|
|
6959
|
-
styles: [".fileupload .fileupload-choose{position:relative;margin:15px 0;width:-webkit-max-content;width:max-content}.fileupload input[type=file]{display:none}.fileupload .file-
|
|
6403
|
+
template: "<div\n [id]=\"id\"\n class=\"s-fileupload\">\n <div class=\"s-fileupload-choose\">\n <input\n #inputUpload\n [id]=\"id+'input-upload'\"\n type=\"file\"\n name=\"file\"\n [accept]=\"accept\"\n [multiple]=\"multiple\"\n (change)=\"onFileSelect($event.dataTransfer\n ? $event.dataTransfer.files\n : $event.target.files)\"> \n <s-button\n *ngIf=\"permissions.includes(ADD_PERMISSION)\"\n [id]=\"id + 'upload-button'\"\n [label]=\"chooseLabel || 'platform.angular_components.attach_files' | translate\"\n (onClick)=\"inputUpload.click()\"\n priority=\"primary\"\n [disabled]=\"disabled || !!formGroup?.disabled\"\n [auxiliary]=\"false\">\n </s-button>\n </div>\n\n <section\n *ngIf=\"files.length\" \n [id]=\"id + 'fileupload-list'\"\n class=\"s-fileupload-list\"\n role=\"grid\">\n <ng-container *ngFor=\"let file of files; let i = index\">\n <div\n class=\"s-fileupload-list-file\"\n role=\"row\">\n <div\n [id]=\"id + '-file-' + i + '-name'\"\n class=\"s-fileupload-list-file-name\"\n role=\"gridcell\">\n <ng-container *ngTemplateOutlet=\"permissions.includes(READ_PERMISSION) && file.savedFile || file.progress === 100\n ? descriptionUrl\n : description; context: {\n $implicit: file,\n index: i\n }\">\n </ng-container>\n <span *ngIf=\"modifiedDate\" class=\"s-fileupload-list-file-name-date\">{{ modifiedDate }}</span>\n </div>\n <div\n class=\"s-fileupload-list-file-status\"\n role=\"gridcell\">\n <p-progressBar\n *ngIf=\"file.isUploading && !isSmallDevice\"\n [style]=\"{ 'width': '250px', 'background-color': '#d8d8d8', 'border-radius': '0px', 'height': '14px'}\"\n [value]=\"file.progress\"\n [showValue]=\"false\"\n role=\"alert\"\n [attr.aria-label]=\"ariaLabelProgress || 'platform.angular_components.loading_file' | translate\">\n </p-progressBar>\n <span\n *ngIf=\"file.isUploading && isSmallDevice\" \n [id]=\"id + '-file-' + i + '-spin'\"\n class=\"fas fa-circle-notch fa-spin\"\n [attr.aria-label]=\"ariaLabelProgress || 'platform.angular_components.loading_file' | translate\">\n </span>\n <span\n *ngIf=\"!file.isUploading && !file.error && file.progress === 100\"\n [id]=\"id + '-file-' + i + '-check'\"\n class=\"fas fa-check\"\n role=\"alert\"\n [attr.aria-label]=\"ariaLabelSuccess || successTooltip || 'platform.angular_components.file_attached_successfully' | translate\"\n [pTooltip]=\"successTooltip || 'platform.angular_components.file_attached_successfully' | translate\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n [appendTo]=\"'body'\">\n </span>\n <span\n *ngIf=\"file.error?.message\" \n [id]=\"id + '-file-' + i + '-error'\"\n class=\"fas fa-times\"\n role=\"alert\"\n [pTooltip]=\"file.error?.message\"\n tooltipPosition=\"top\"\n showDelay=\"500\"\n [appendTo]=\"'body'\">\n </span>\n </div>\n <div\n class=\"s-fileupload-list-file-actions\"\n role=\"gridcell\">\n <a\n *ngIf=\"file.isUploading\"\n [id]=\"id + '-file-' + i + '-cancel'\"\n class=\"s-fileupload-list-file-actions-action\"\n (click)=\"onCancelUpload(i)\">\n {{ cancelLabel || 'platform.angular_components.cancel' | translate }}\n </a>\n <a\n *ngIf=\"permissions.includes(REMOVE_PERMISSION) && !file.isUploading && !(disabled || !!formGroup?.disabled)\"\n role=\"button\"\n tabindex=\"0\"\n [id]=\"id + '-file-' + i + '-remove'\"\n class=\"s-fileupload-list-file-actions-action\"\n (click)=\"onRemoveFile(file)\"\n [attr.aria-label]=\"ariaLabelRemove || removeLabel || 'platform.angular_components.remove' | translate\">\n {{ removeLabel || 'platform.angular_components.remove' | translate }}\n </a>\n </div>\n </div>\n </ng-container>\n </section>\n</div>\n\n<ng-template\n #descriptionUrl\n let-file\n let-i = index>\n <a\n [id]=\"id + '-file-' + i + '-name-link'\"\n tabindex=\"0\"\n (click)=\"onDowloadFile(i)\"\n [attr.aria-label]=\"ariaLabelFileName || file.name\">{{file.name}}\n </a>\n <a\n style=\"display: none;\"\n [href]=\"file.objectURL\"\n target=\"_blank\"\n download\n #anchor>\n </a>\n</ng-template>\n\n<ng-template\n #description\n let-file>\n <span\n tabindex=\"0\"\n [attr.aria-label]=\"ariaLabelFileName || file.name\">\n {{file.name}}\n </span>\n</ng-template>\n",
|
|
6404
|
+
styles: [".s-fileupload .s-fileupload-choose{position:relative;margin:15px 0;width:-webkit-max-content;width:max-content}.s-fileupload input[type=file]{display:none}.s-fileupload-list{border:1px solid #ccc}.s-fileupload-list-file:not(:first-child){border-top:1px solid #ccc}.s-fileupload-list .s-fileupload-list-file{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between;padding:15px}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-name{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:center;align-self:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-name .s-fileupload-list-file-name-date{font-size:.75rem;color:#999}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-name>a{cursor:pointer;text-decoration:none}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-status{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.s-fileupload-list .s-fileupload-list-file .fas.fa-circle-notch{color:#d8d8d8;font-size:12px}.s-fileupload-list .s-fileupload-list-file .fas.fa-check{color:#0c9348;font-size:12px}.s-fileupload-list .s-fileupload-list-file .fas.fa-times{color:#c13018;font-size:12px}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions{margin-top:15px;-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center;width:100%}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions a.s-fileupload-list-file-actions-action{text-decoration:none;color:#428bca}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions a.s-fileupload-list-file-actions-action :focus,.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions a.s-fileupload-list-file-actions-action :visited,.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions a.s-fileupload-list-file-actions-action:hover{text-decoration:none}@media (min-width:768px){.s-fileupload-list .s-fileupload-list-file{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-name{width:auto;-ms-flex-positive:2;flex-grow:2}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-status{margin:0 15px}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions{margin:0;width:auto}}"]
|
|
6960
6405
|
})
|
|
6961
6406
|
], FileUploadComponent);
|
|
6962
6407
|
return FileUploadComponent;
|
|
@@ -6967,22 +6412,15 @@ var FileUploadModule = /** @class */ (function () {
|
|
|
6967
6412
|
}
|
|
6968
6413
|
FileUploadModule = __decorate([
|
|
6969
6414
|
NgModule({
|
|
6415
|
+
declarations: [FileUploadComponent],
|
|
6970
6416
|
imports: [
|
|
6971
6417
|
CommonModule,
|
|
6972
|
-
HttpClientModule,
|
|
6973
6418
|
ButtonModule,
|
|
6974
|
-
TooltipModule,
|
|
6975
|
-
ProgressBarModule,
|
|
6419
|
+
TooltipModule$1,
|
|
6420
|
+
ProgressBarModule$1,
|
|
6976
6421
|
TranslateModule,
|
|
6977
6422
|
],
|
|
6978
|
-
|
|
6979
|
-
FileUploadComponent,
|
|
6980
|
-
FileItemComponent,
|
|
6981
|
-
],
|
|
6982
|
-
providers: [
|
|
6983
|
-
FileUploadService,
|
|
6984
|
-
LocaleService,
|
|
6985
|
-
],
|
|
6423
|
+
providers: [FileUploadService],
|
|
6986
6424
|
exports: [FileUploadComponent],
|
|
6987
6425
|
})
|
|
6988
6426
|
], FileUploadModule);
|
|
@@ -7321,40 +6759,405 @@ var LoadingStateDirective = /** @class */ (function () {
|
|
|
7321
6759
|
{ type: ComponentFactoryResolver },
|
|
7322
6760
|
{ type: ChangeDetectorRef }
|
|
7323
6761
|
]; };
|
|
7324
|
-
__decorate([
|
|
7325
|
-
Input("sLoadingState")
|
|
7326
|
-
], LoadingStateDirective.prototype, "sLoadingState", null);
|
|
7327
|
-
LoadingStateDirective = __decorate([
|
|
7328
|
-
Directive({
|
|
7329
|
-
selector: "[sLoadingState]",
|
|
6762
|
+
__decorate([
|
|
6763
|
+
Input("sLoadingState")
|
|
6764
|
+
], LoadingStateDirective.prototype, "sLoadingState", null);
|
|
6765
|
+
LoadingStateDirective = __decorate([
|
|
6766
|
+
Directive({
|
|
6767
|
+
selector: "[sLoadingState]",
|
|
6768
|
+
})
|
|
6769
|
+
], LoadingStateDirective);
|
|
6770
|
+
return LoadingStateDirective;
|
|
6771
|
+
}());
|
|
6772
|
+
|
|
6773
|
+
var LoadingStateModule = /** @class */ (function () {
|
|
6774
|
+
function LoadingStateModule() {
|
|
6775
|
+
}
|
|
6776
|
+
LoadingStateModule = __decorate([
|
|
6777
|
+
NgModule({
|
|
6778
|
+
imports: [
|
|
6779
|
+
CommonModule,
|
|
6780
|
+
SVGFactoryModule,
|
|
6781
|
+
],
|
|
6782
|
+
declarations: [
|
|
6783
|
+
LoadingStateComponent,
|
|
6784
|
+
LoadingStateDirective,
|
|
6785
|
+
DotsIndicatorComponent,
|
|
6786
|
+
LoadingIndicatorComponent,
|
|
6787
|
+
],
|
|
6788
|
+
exports: [
|
|
6789
|
+
LoadingStateComponent,
|
|
6790
|
+
LoadingStateDirective,
|
|
6791
|
+
],
|
|
6792
|
+
entryComponents: [LoadingStateComponent],
|
|
6793
|
+
})
|
|
6794
|
+
], LoadingStateModule);
|
|
6795
|
+
return LoadingStateModule;
|
|
6796
|
+
}());
|
|
6797
|
+
|
|
6798
|
+
var LocalizedBignumberPipe = /** @class */ (function () {
|
|
6799
|
+
function LocalizedBignumberPipe(localeService) {
|
|
6800
|
+
this.localeService = localeService;
|
|
6801
|
+
}
|
|
6802
|
+
LocalizedBignumberPipe.prototype.transform = function (value, options) {
|
|
6803
|
+
return value !== undefined && value !== null ? this.applyMask(value, options) : of(value);
|
|
6804
|
+
};
|
|
6805
|
+
LocalizedBignumberPipe.prototype.applyMask = function (value, options) {
|
|
6806
|
+
return this.localeService.get().pipe(map(function (localeConfig) {
|
|
6807
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
6808
|
+
var configs = {
|
|
6809
|
+
prefix: (_c = (_a = options === null || options === void 0 ? void 0 : options.prefix) !== null && _a !== void 0 ? _a : (_b = localeConfig === null || localeConfig === void 0 ? void 0 : localeConfig.number) === null || _b === void 0 ? void 0 : _b.currencySymbol) !== null && _c !== void 0 ? _c : "R$",
|
|
6810
|
+
thousandsSeparator: (_f = (_d = options === null || options === void 0 ? void 0 : options.thousandsSeparator) !== null && _d !== void 0 ? _d : (_e = localeConfig === null || localeConfig === void 0 ? void 0 : localeConfig.number) === null || _e === void 0 ? void 0 : _e.thousandsSeparator) !== null && _f !== void 0 ? _f : ".",
|
|
6811
|
+
decimalSeparator: (_j = (_g = options === null || options === void 0 ? void 0 : options.decimalSeparator) !== null && _g !== void 0 ? _g : (_h = localeConfig === null || localeConfig === void 0 ? void 0 : localeConfig.number) === null || _h === void 0 ? void 0 : _h.decimalSeparator) !== null && _j !== void 0 ? _j : ",",
|
|
6812
|
+
scale: (_k = options === null || options === void 0 ? void 0 : options.scale) !== null && _k !== void 0 ? _k : 2,
|
|
6813
|
+
allowNegative: (_l = options === null || options === void 0 ? void 0 : options.allowNegative) !== null && _l !== void 0 ? _l : true
|
|
6814
|
+
};
|
|
6815
|
+
var isNumber = !(new BigNumber(value).isNaN());
|
|
6816
|
+
return applyMask(value, configs, isNumber);
|
|
6817
|
+
}));
|
|
6818
|
+
};
|
|
6819
|
+
LocalizedBignumberPipe.ctorParameters = function () { return [
|
|
6820
|
+
{ type: LocaleService }
|
|
6821
|
+
]; };
|
|
6822
|
+
LocalizedBignumberPipe = __decorate([
|
|
6823
|
+
Pipe({
|
|
6824
|
+
name: "localizedBignumber",
|
|
6825
|
+
})
|
|
6826
|
+
], LocalizedBignumberPipe);
|
|
6827
|
+
return LocalizedBignumberPipe;
|
|
6828
|
+
}());
|
|
6829
|
+
|
|
6830
|
+
var LocalizedBignumberImpurePipe = /** @class */ (function (_super) {
|
|
6831
|
+
__extends(LocalizedBignumberImpurePipe, _super);
|
|
6832
|
+
function LocalizedBignumberImpurePipe() {
|
|
6833
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
6834
|
+
}
|
|
6835
|
+
LocalizedBignumberImpurePipe.prototype.transform = function (value, options) {
|
|
6836
|
+
return _super.prototype.transform.call(this, value, options);
|
|
6837
|
+
};
|
|
6838
|
+
LocalizedBignumberImpurePipe = __decorate([
|
|
6839
|
+
Pipe({
|
|
6840
|
+
name: "localizedBignumberImpure",
|
|
6841
|
+
pure: false,
|
|
6842
|
+
})
|
|
6843
|
+
], LocalizedBignumberImpurePipe);
|
|
6844
|
+
return LocalizedBignumberImpurePipe;
|
|
6845
|
+
}(LocalizedBignumberPipe));
|
|
6846
|
+
|
|
6847
|
+
var LocalizedCurrencyPipeOptions = /** @class */ (function (_super) {
|
|
6848
|
+
__extends(LocalizedCurrencyPipeOptions, _super);
|
|
6849
|
+
function LocalizedCurrencyPipeOptions(config) {
|
|
6850
|
+
if (config === void 0) { config = {}; }
|
|
6851
|
+
var _this = _super.call(this, config) || this;
|
|
6852
|
+
_this.scale = 2;
|
|
6853
|
+
return _this;
|
|
6854
|
+
}
|
|
6855
|
+
return LocalizedCurrencyPipeOptions;
|
|
6856
|
+
}(NumberLocaleOptions));
|
|
6857
|
+
/**
|
|
6858
|
+
* @deprecated Should use localizedBignumberPipe instead
|
|
6859
|
+
*/
|
|
6860
|
+
var LocalizedCurrencyPipe = /** @class */ (function () {
|
|
6861
|
+
function LocalizedCurrencyPipe(localeService) {
|
|
6862
|
+
this.localeService = localeService;
|
|
6863
|
+
}
|
|
6864
|
+
LocalizedCurrencyPipe.prototype.transform = function (value, options) {
|
|
6865
|
+
if (!options) {
|
|
6866
|
+
options = new LocalizedCurrencyPipeOptions();
|
|
6867
|
+
}
|
|
6868
|
+
return value !== undefined && value !== null ? this.applyMask(value, options) : of(value);
|
|
6869
|
+
};
|
|
6870
|
+
LocalizedCurrencyPipe.prototype.applyMask = function (value, options) {
|
|
6871
|
+
return this.localeService.get().pipe(map(function (localeConfig) {
|
|
6872
|
+
var config = __assign(__assign({}, localeConfig.number), options);
|
|
6873
|
+
var scale = config.scale, currencySymbol = config.currencySymbol, thousandsSeparator = config.thousandsSeparator, decimalSeparator = config.decimalSeparator;
|
|
6874
|
+
var rawValue = Number(value).toFixed(scale);
|
|
6875
|
+
var onlyNumbers = rawValue.replace(/[^0-9]/g, "");
|
|
6876
|
+
var integerPart = onlyNumbers
|
|
6877
|
+
.slice(0, onlyNumbers.length - scale)
|
|
6878
|
+
.replace(/^0*/g, "")
|
|
6879
|
+
.replace(/\B(?=(\d{3})+(?!\d))/g, thousandsSeparator) || "0";
|
|
6880
|
+
var decimalPart = onlyNumbers.slice(onlyNumbers.length - scale);
|
|
6881
|
+
var newValue = scale ? integerPart + decimalSeparator + decimalPart : integerPart;
|
|
6882
|
+
var isZero = !Number(onlyNumbers);
|
|
6883
|
+
var operator = rawValue.includes("-") && !isZero ? "-" : "";
|
|
6884
|
+
return "" + operator + currencySymbol + newValue;
|
|
6885
|
+
}));
|
|
6886
|
+
};
|
|
6887
|
+
LocalizedCurrencyPipe.ctorParameters = function () { return [
|
|
6888
|
+
{ type: LocaleService }
|
|
6889
|
+
]; };
|
|
6890
|
+
LocalizedCurrencyPipe = __decorate([
|
|
6891
|
+
Pipe({
|
|
6892
|
+
name: "localizedCurrency",
|
|
6893
|
+
})
|
|
6894
|
+
], LocalizedCurrencyPipe);
|
|
6895
|
+
return LocalizedCurrencyPipe;
|
|
6896
|
+
}());
|
|
6897
|
+
|
|
6898
|
+
/**
|
|
6899
|
+
* @deprecated Should use localizedBignumberPipe instead
|
|
6900
|
+
*/
|
|
6901
|
+
var LocalizedCurrencyImpurePipe = /** @class */ (function (_super) {
|
|
6902
|
+
__extends(LocalizedCurrencyImpurePipe, _super);
|
|
6903
|
+
function LocalizedCurrencyImpurePipe() {
|
|
6904
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
6905
|
+
}
|
|
6906
|
+
LocalizedCurrencyImpurePipe.prototype.transform = function (value, options) {
|
|
6907
|
+
if (options === void 0) { options = new LocalizedCurrencyPipeOptions(); }
|
|
6908
|
+
return _super.prototype.transform.call(this, value, options);
|
|
6909
|
+
};
|
|
6910
|
+
LocalizedCurrencyImpurePipe = __decorate([
|
|
6911
|
+
Pipe({
|
|
6912
|
+
name: "localizedCurrencyImpure",
|
|
6913
|
+
pure: false,
|
|
6914
|
+
})
|
|
6915
|
+
], LocalizedCurrencyImpurePipe);
|
|
6916
|
+
return LocalizedCurrencyImpurePipe;
|
|
6917
|
+
}(LocalizedCurrencyPipe));
|
|
6918
|
+
|
|
6919
|
+
var moment$2 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
|
|
6920
|
+
var LocalizedDatePipe = /** @class */ (function () {
|
|
6921
|
+
function LocalizedDatePipe(localeService) {
|
|
6922
|
+
this.localeService = localeService;
|
|
6923
|
+
}
|
|
6924
|
+
LocalizedDatePipe.prototype.transform = function (value, format) {
|
|
6925
|
+
if (format === void 0) { format = "L LTS"; }
|
|
6926
|
+
return this.localeService.get().pipe(map(function () { return (value ? moment$2(value).format(format) : value); }));
|
|
6927
|
+
};
|
|
6928
|
+
LocalizedDatePipe.ctorParameters = function () { return [
|
|
6929
|
+
{ type: LocaleService }
|
|
6930
|
+
]; };
|
|
6931
|
+
LocalizedDatePipe = __decorate([
|
|
6932
|
+
Pipe({
|
|
6933
|
+
name: "localizedDate",
|
|
6934
|
+
})
|
|
6935
|
+
], LocalizedDatePipe);
|
|
6936
|
+
return LocalizedDatePipe;
|
|
6937
|
+
}());
|
|
6938
|
+
|
|
6939
|
+
var LocalizedDateImpurePipe = /** @class */ (function (_super) {
|
|
6940
|
+
__extends(LocalizedDateImpurePipe, _super);
|
|
6941
|
+
function LocalizedDateImpurePipe() {
|
|
6942
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
6943
|
+
}
|
|
6944
|
+
LocalizedDateImpurePipe = __decorate([
|
|
6945
|
+
Pipe({
|
|
6946
|
+
name: "localizedDateImpure",
|
|
6947
|
+
pure: false,
|
|
6948
|
+
})
|
|
6949
|
+
], LocalizedDateImpurePipe);
|
|
6950
|
+
return LocalizedDateImpurePipe;
|
|
6951
|
+
}(LocalizedDatePipe));
|
|
6952
|
+
|
|
6953
|
+
/**
|
|
6954
|
+
* @deprecated Should use localizedBignumberPipe instead
|
|
6955
|
+
*/
|
|
6956
|
+
var LocalizedNumberPipe = /** @class */ (function () {
|
|
6957
|
+
function LocalizedNumberPipe(localeService) {
|
|
6958
|
+
this.localeService = localeService;
|
|
6959
|
+
}
|
|
6960
|
+
LocalizedNumberPipe.prototype.transform = function (value, minimumFractionDigits) {
|
|
6961
|
+
return from(this.localeService.getLocale()).pipe(map(function (locale) {
|
|
6962
|
+
var numericValue = Number(value);
|
|
6963
|
+
if (!value && isNaN(numericValue))
|
|
6964
|
+
return;
|
|
6965
|
+
return new Intl.NumberFormat(locale, {
|
|
6966
|
+
minimumFractionDigits: minimumFractionDigits || 0,
|
|
6967
|
+
}).format(Number(value));
|
|
6968
|
+
}));
|
|
6969
|
+
};
|
|
6970
|
+
LocalizedNumberPipe.ctorParameters = function () { return [
|
|
6971
|
+
{ type: LocaleService }
|
|
6972
|
+
]; };
|
|
6973
|
+
LocalizedNumberPipe = __decorate([
|
|
6974
|
+
Pipe({ name: "localizedNumber" })
|
|
6975
|
+
], LocalizedNumberPipe);
|
|
6976
|
+
return LocalizedNumberPipe;
|
|
6977
|
+
}());
|
|
6978
|
+
|
|
6979
|
+
var moment$3 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
|
|
6980
|
+
var LocalizedTimePipe = /** @class */ (function () {
|
|
6981
|
+
function LocalizedTimePipe(localeService) {
|
|
6982
|
+
this.localeService = localeService;
|
|
6983
|
+
}
|
|
6984
|
+
LocalizedTimePipe.prototype.transform = function (value, format) {
|
|
6985
|
+
if (format === void 0) { format = "LTS"; }
|
|
6986
|
+
return this.localeService.get().pipe(map(function () { return (value ? moment$3(value, "HH:mm:ss").format(format) : value); }));
|
|
6987
|
+
};
|
|
6988
|
+
LocalizedTimePipe.ctorParameters = function () { return [
|
|
6989
|
+
{ type: LocaleService }
|
|
6990
|
+
]; };
|
|
6991
|
+
LocalizedTimePipe = __decorate([
|
|
6992
|
+
Pipe({
|
|
6993
|
+
name: "localizedTime",
|
|
6994
|
+
})
|
|
6995
|
+
], LocalizedTimePipe);
|
|
6996
|
+
return LocalizedTimePipe;
|
|
6997
|
+
}());
|
|
6998
|
+
|
|
6999
|
+
var LocalizedTimeImpurePipe = /** @class */ (function (_super) {
|
|
7000
|
+
__extends(LocalizedTimeImpurePipe, _super);
|
|
7001
|
+
function LocalizedTimeImpurePipe() {
|
|
7002
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
7003
|
+
}
|
|
7004
|
+
LocalizedTimeImpurePipe = __decorate([
|
|
7005
|
+
Pipe({
|
|
7006
|
+
name: "localizedTimeImpure",
|
|
7007
|
+
pure: false,
|
|
7008
|
+
})
|
|
7009
|
+
], LocalizedTimeImpurePipe);
|
|
7010
|
+
return LocalizedTimeImpurePipe;
|
|
7011
|
+
}(LocalizedTimePipe));
|
|
7012
|
+
|
|
7013
|
+
var NumericService = /** @class */ (function () {
|
|
7014
|
+
function NumericService(localeService) {
|
|
7015
|
+
this.localeService = localeService;
|
|
7016
|
+
}
|
|
7017
|
+
/**
|
|
7018
|
+
* Wrapper around Intl.NumberFormat that returns the localized value using the user's locale by default(platform's preferential language).
|
|
7019
|
+
*
|
|
7020
|
+
* This method should only be used after the localeService has been initialized by the host application, either by a resolver or a manual call.
|
|
7021
|
+
*
|
|
7022
|
+
* Can be overwritten by the provided Intl.NumberFormatOptions.
|
|
7023
|
+
*
|
|
7024
|
+
* Documentation is available at {@link https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat Intl.NumberFormatOptions}.
|
|
7025
|
+
*
|
|
7026
|
+
* @param {number | string | BigNumber} value The value to be formatted.
|
|
7027
|
+
* @param {Intl.NumberFormatOptions} options Options that overwrites the default Intl.NumberFormatOptions.
|
|
7028
|
+
* @return `string` The formatted value.
|
|
7029
|
+
*/
|
|
7030
|
+
NumericService.prototype.instant = function (value, options) {
|
|
7031
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
7032
|
+
options = __assign(__assign({}, options), { locale: (_c = (_a = options === null || options === void 0 ? void 0 : options.locale) !== null && _a !== void 0 ? _a : (_b = this.localeService.getLocaleOptions()) === null || _b === void 0 ? void 0 : _b.locale) !== null && _c !== void 0 ? _c : "pt-BR", options: __assign(__assign({}, options === null || options === void 0 ? void 0 : options.options), { currency: ((_d = options === null || options === void 0 ? void 0 : options.options) === null || _d === void 0 ? void 0 : _d.style) === "currency" ? (_f = (_e = options === null || options === void 0 ? void 0 : options.options) === null || _e === void 0 ? void 0 : _e.currency) !== null && _f !== void 0 ? _f : "BRL" : undefined, currencyDisplay: ((_g = options === null || options === void 0 ? void 0 : options.options) === null || _g === void 0 ? void 0 : _g.style) === "currency" ? (_j = (_h = options === null || options === void 0 ? void 0 : options.options) === null || _h === void 0 ? void 0 : _h.currencyDisplay) !== null && _j !== void 0 ? _j : "narrowSymbol" : undefined, minimumFractionDigits: (_l = (_k = options === null || options === void 0 ? void 0 : options.options) === null || _k === void 0 ? void 0 : _k.minimumFractionDigits) !== null && _l !== void 0 ? _l : 0 }) });
|
|
7033
|
+
// From https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
7034
|
+
return new Intl.NumberFormat(options.locale, options.options).format(this.getType(value) === "number" || this.getType(value) === "string" ? value : value.toString());
|
|
7035
|
+
};
|
|
7036
|
+
NumericService.prototype.getType = function (value) {
|
|
7037
|
+
// From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
|
|
7038
|
+
if (value === null) {
|
|
7039
|
+
return "null";
|
|
7040
|
+
}
|
|
7041
|
+
var baseType = typeof value;
|
|
7042
|
+
// Primitive types
|
|
7043
|
+
if (baseType !== "object" && baseType !== "function") {
|
|
7044
|
+
return baseType;
|
|
7045
|
+
}
|
|
7046
|
+
// Symbol.toStringTag often specifies the "display name" of the
|
|
7047
|
+
// object's class. It's used in Object.prototype.toString().
|
|
7048
|
+
var tag = value[Symbol.toStringTag];
|
|
7049
|
+
if (typeof tag === "string") {
|
|
7050
|
+
return tag;
|
|
7051
|
+
}
|
|
7052
|
+
// If it's a function whose source code starts with the "class" keyword
|
|
7053
|
+
if (baseType === "function" && Function.prototype.toString.call(value).startsWith("class")) {
|
|
7054
|
+
return "class";
|
|
7055
|
+
}
|
|
7056
|
+
// The name of the constructor; for example `Array`, `GeneratorFunction`,
|
|
7057
|
+
// `Number`, `String`, `Boolean` or `MyCustomClass`
|
|
7058
|
+
var className = value.constructor.name;
|
|
7059
|
+
if (typeof className === "string" && className !== "") {
|
|
7060
|
+
return className;
|
|
7061
|
+
}
|
|
7062
|
+
// At this point there's no robust way to get the type of value,
|
|
7063
|
+
// so we use the base implementation.
|
|
7064
|
+
return baseType;
|
|
7065
|
+
};
|
|
7066
|
+
NumericService.ctorParameters = function () { return [
|
|
7067
|
+
{ type: LocaleService }
|
|
7068
|
+
]; };
|
|
7069
|
+
NumericService.ɵprov = ɵɵdefineInjectable({ factory: function NumericService_Factory() { return new NumericService(ɵɵinject(LocaleService)); }, token: NumericService, providedIn: "root" });
|
|
7070
|
+
NumericService = __decorate([
|
|
7071
|
+
Injectable({
|
|
7072
|
+
providedIn: "root",
|
|
7330
7073
|
})
|
|
7331
|
-
],
|
|
7332
|
-
return
|
|
7074
|
+
], NumericService);
|
|
7075
|
+
return NumericService;
|
|
7333
7076
|
}());
|
|
7334
7077
|
|
|
7335
|
-
var
|
|
7336
|
-
function
|
|
7078
|
+
var NumericPipe = /** @class */ (function () {
|
|
7079
|
+
function NumericPipe(numericService, localeService) {
|
|
7080
|
+
this.numericService = numericService;
|
|
7081
|
+
this.localeService = localeService;
|
|
7337
7082
|
}
|
|
7338
|
-
|
|
7083
|
+
NumericPipe.prototype.transform = function (value, options) {
|
|
7084
|
+
var _this = this;
|
|
7085
|
+
return (options === null || options === void 0 ? void 0 : options.locale) ? of(this.numericService.instant(value, options))
|
|
7086
|
+
: this.localeService.getLocale().pipe(map(function (locale) {
|
|
7087
|
+
return _this.numericService.instant(value, {
|
|
7088
|
+
locale: locale,
|
|
7089
|
+
options: options === null || options === void 0 ? void 0 : options.options,
|
|
7090
|
+
});
|
|
7091
|
+
}));
|
|
7092
|
+
};
|
|
7093
|
+
NumericPipe.ctorParameters = function () { return [
|
|
7094
|
+
{ type: NumericService },
|
|
7095
|
+
{ type: LocaleService }
|
|
7096
|
+
]; };
|
|
7097
|
+
NumericPipe = __decorate([
|
|
7098
|
+
Pipe({ name: "numeric" })
|
|
7099
|
+
], NumericPipe);
|
|
7100
|
+
return NumericPipe;
|
|
7101
|
+
}());
|
|
7102
|
+
|
|
7103
|
+
var LocaleModule = /** @class */ (function () {
|
|
7104
|
+
function LocaleModule() {
|
|
7105
|
+
}
|
|
7106
|
+
LocaleModule_1 = LocaleModule;
|
|
7107
|
+
LocaleModule.forRoot = function () {
|
|
7108
|
+
return {
|
|
7109
|
+
ngModule: LocaleModule_1,
|
|
7110
|
+
providers: [
|
|
7111
|
+
LocaleService,
|
|
7112
|
+
LocalizedCurrencyPipe,
|
|
7113
|
+
LocalizedDatePipe,
|
|
7114
|
+
LocalizedTimePipe,
|
|
7115
|
+
LocalizedNumberPipe,
|
|
7116
|
+
LocalizedCurrencyImpurePipe,
|
|
7117
|
+
LocalizedDateImpurePipe,
|
|
7118
|
+
LocalizedTimeImpurePipe,
|
|
7119
|
+
LocalizedBignumberPipe,
|
|
7120
|
+
LocalizedBignumberImpurePipe,
|
|
7121
|
+
NumericPipe
|
|
7122
|
+
],
|
|
7123
|
+
};
|
|
7124
|
+
};
|
|
7125
|
+
LocaleModule.forChild = function () {
|
|
7126
|
+
return {
|
|
7127
|
+
ngModule: LocaleModule_1,
|
|
7128
|
+
};
|
|
7129
|
+
};
|
|
7130
|
+
var LocaleModule_1;
|
|
7131
|
+
LocaleModule = LocaleModule_1 = __decorate([
|
|
7339
7132
|
NgModule({
|
|
7340
|
-
imports: [
|
|
7341
|
-
|
|
7342
|
-
|
|
7133
|
+
imports: [CommonModule],
|
|
7134
|
+
exports: [
|
|
7135
|
+
LocalizedCurrencyPipe,
|
|
7136
|
+
LocalizedDatePipe,
|
|
7137
|
+
LocalizedTimePipe,
|
|
7138
|
+
LocalizedNumberPipe,
|
|
7139
|
+
LocalizedCurrencyImpurePipe,
|
|
7140
|
+
LocalizedDateImpurePipe,
|
|
7141
|
+
LocalizedTimeImpurePipe,
|
|
7142
|
+
LocalizedBignumberPipe,
|
|
7143
|
+
LocalizedBignumberImpurePipe,
|
|
7144
|
+
NumericPipe
|
|
7343
7145
|
],
|
|
7344
7146
|
declarations: [
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7147
|
+
LocalizedCurrencyPipe,
|
|
7148
|
+
LocalizedDatePipe,
|
|
7149
|
+
LocalizedTimePipe,
|
|
7150
|
+
LocalizedNumberPipe,
|
|
7151
|
+
LocalizedCurrencyImpurePipe,
|
|
7152
|
+
LocalizedDateImpurePipe,
|
|
7153
|
+
LocalizedTimeImpurePipe,
|
|
7154
|
+
LocalizedBignumberPipe,
|
|
7155
|
+
LocalizedBignumberImpurePipe,
|
|
7156
|
+
NumericPipe
|
|
7353
7157
|
],
|
|
7354
|
-
entryComponents: [LoadingStateComponent],
|
|
7355
7158
|
})
|
|
7356
|
-
],
|
|
7357
|
-
return
|
|
7159
|
+
], LocaleModule);
|
|
7160
|
+
return LocaleModule;
|
|
7358
7161
|
}());
|
|
7359
7162
|
|
|
7360
7163
|
var LocalizedNumberInputDirective = /** @class */ (function () {
|
|
@@ -8252,7 +8055,7 @@ var EnumBadgeColors;
|
|
|
8252
8055
|
EnumBadgeColors["GRAY"] = "gray";
|
|
8253
8056
|
})(EnumBadgeColors || (EnumBadgeColors = {}));
|
|
8254
8057
|
|
|
8255
|
-
var moment$
|
|
8058
|
+
var moment$4 = moment_;
|
|
8256
8059
|
var TableColumnsComponent = /** @class */ (function () {
|
|
8257
8060
|
function TableColumnsComponent(viewContainerRef, translate, hostProjectConfigs) {
|
|
8258
8061
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -8359,7 +8162,7 @@ var TableColumnsComponent = /** @class */ (function () {
|
|
|
8359
8162
|
return applyMask(attributeValue, numberConfigs, _this.isNumber(attributeValue));
|
|
8360
8163
|
case EnumColumnFieldType.DATE:
|
|
8361
8164
|
var dateFormat = _this.getDateFormat(column, locale);
|
|
8362
|
-
return moment$
|
|
8165
|
+
return moment$4(attributeValue).format(dateFormat);
|
|
8363
8166
|
case EnumColumnFieldType.BOOLEAN:
|
|
8364
8167
|
var value = attributeValue ? "yes" : "no";
|
|
8365
8168
|
return _this.translate.instant(prefix + value);
|
|
@@ -10491,7 +10294,7 @@ var CustomFieldType;
|
|
|
10491
10294
|
CustomFieldType["Any"] = "Any";
|
|
10492
10295
|
CustomFieldType["Enum"] = "Enum";
|
|
10493
10296
|
})(CustomFieldType || (CustomFieldType = {}));
|
|
10494
|
-
var moment$
|
|
10297
|
+
var moment$5 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
|
|
10495
10298
|
var CustomFieldsComponent = /** @class */ (function () {
|
|
10496
10299
|
function CustomFieldsComponent(customFieldsService, localeService, sanitizer, translateService, controlContainer) {
|
|
10497
10300
|
this.customFieldsService = customFieldsService;
|
|
@@ -10702,16 +10505,16 @@ var CustomFieldsComponent = /** @class */ (function () {
|
|
|
10702
10505
|
return;
|
|
10703
10506
|
switch (type) {
|
|
10704
10507
|
case FieldType.Date:
|
|
10705
|
-
parsedValues[name] = moment$
|
|
10508
|
+
parsedValues[name] = moment$5(value).toDate();
|
|
10706
10509
|
break;
|
|
10707
10510
|
case FieldType.DateTime:
|
|
10708
|
-
parsedValues[name] = moment$
|
|
10511
|
+
parsedValues[name] = moment$5(value).toDate();
|
|
10709
10512
|
break;
|
|
10710
10513
|
case FieldType.LocalDateTime:
|
|
10711
|
-
parsedValues[name] = moment$
|
|
10514
|
+
parsedValues[name] = moment$5(value, "YYYY-MM-DD[T]HH:mm:ss.SSS").toDate();
|
|
10712
10515
|
break;
|
|
10713
10516
|
case FieldType.Time:
|
|
10714
|
-
parsedValues[name] = moment$
|
|
10517
|
+
parsedValues[name] = moment$5(value, "HH:mm:ss").toDate();
|
|
10715
10518
|
break;
|
|
10716
10519
|
}
|
|
10717
10520
|
});
|
|
@@ -10744,16 +10547,16 @@ var CustomFieldsComponent = /** @class */ (function () {
|
|
|
10744
10547
|
value = new BigNumber(value).toFixed(scale).toString();
|
|
10745
10548
|
break;
|
|
10746
10549
|
case FieldType.Date:
|
|
10747
|
-
value = moment$
|
|
10550
|
+
value = moment$5(value).format("YYYY-MM-DD");
|
|
10748
10551
|
break;
|
|
10749
10552
|
case FieldType.DateTime:
|
|
10750
|
-
value = moment$
|
|
10553
|
+
value = moment$5(value).format();
|
|
10751
10554
|
break;
|
|
10752
10555
|
case FieldType.LocalDateTime:
|
|
10753
|
-
value = moment$
|
|
10556
|
+
value = moment$5(value).format("YYYY-MM-DD[T]HH:mm:ss.SSS");
|
|
10754
10557
|
break;
|
|
10755
10558
|
case FieldType.Time:
|
|
10756
|
-
value = moment$
|
|
10559
|
+
value = moment$5(value).format("HH:mm:ss");
|
|
10757
10560
|
break;
|
|
10758
10561
|
}
|
|
10759
10562
|
}
|
|
@@ -11166,7 +10969,7 @@ var EditableOverlayModule = /** @class */ (function () {
|
|
|
11166
10969
|
return EditableOverlayModule;
|
|
11167
10970
|
}());
|
|
11168
10971
|
|
|
11169
|
-
var moment$
|
|
10972
|
+
var moment$6 = moment_;
|
|
11170
10973
|
var YEAR = "year";
|
|
11171
10974
|
var MONTH = "month";
|
|
11172
10975
|
var DAY = "day";
|
|
@@ -11178,22 +10981,22 @@ var DateUtils = /** @class */ (function () {
|
|
|
11178
10981
|
function DateUtils() {
|
|
11179
10982
|
}
|
|
11180
10983
|
DateUtils.parse = function (date) {
|
|
11181
|
-
return moment$
|
|
10984
|
+
return moment$6(date).toDate();
|
|
11182
10985
|
};
|
|
11183
10986
|
DateUtils.toString = function (date, with_time) {
|
|
11184
10987
|
if (with_time === void 0) { with_time = false; }
|
|
11185
|
-
var result = with_time ? moment$
|
|
10988
|
+
var result = with_time ? moment$6(date, "YYYY-MM-DD hh:mm:ss.SSS") : moment$6(date, "YYYY-MM-DD");
|
|
11186
10989
|
return result.toString();
|
|
11187
10990
|
};
|
|
11188
10991
|
DateUtils.format = function (date, formatString, lang) {
|
|
11189
10992
|
if (formatString === void 0) { formatString = "YYYY-MM-DD HH:mm:ss.SSS"; }
|
|
11190
10993
|
if (lang === void 0) { lang = "en"; }
|
|
11191
|
-
var monthName = moment$
|
|
10994
|
+
var monthName = moment$6(date)
|
|
11192
10995
|
.locale(lang)
|
|
11193
10996
|
.startOf("month")
|
|
11194
10997
|
.format("MMMM");
|
|
11195
10998
|
var monthNameCapitalized = monthName.charAt(0).toUpperCase() + monthName.slice(1);
|
|
11196
|
-
var dateToFormat = moment$
|
|
10999
|
+
var dateToFormat = moment$6(date).locale(lang);
|
|
11197
11000
|
var format_map = {
|
|
11198
11001
|
YYYY: dateToFormat.format("YYYY"),
|
|
11199
11002
|
MM: dateToFormat.format("MM"),
|
|
@@ -11223,13 +11026,13 @@ var DateUtils = /** @class */ (function () {
|
|
|
11223
11026
|
return str;
|
|
11224
11027
|
};
|
|
11225
11028
|
DateUtils.diff = function (fistDate, secondDate, scale) {
|
|
11226
|
-
var milliseconds = moment$
|
|
11227
|
-
var seconds = moment$
|
|
11228
|
-
var minutes = moment$
|
|
11229
|
-
var hours = moment$
|
|
11230
|
-
var days = moment$
|
|
11231
|
-
var months = moment$
|
|
11232
|
-
var years = moment$
|
|
11029
|
+
var milliseconds = moment$6(fistDate).diff(secondDate, MILLISECOND);
|
|
11030
|
+
var seconds = moment$6(fistDate).diff(secondDate, SECOND);
|
|
11031
|
+
var minutes = moment$6(fistDate).diff(secondDate, MINUTE);
|
|
11032
|
+
var hours = moment$6(fistDate).diff(secondDate, HOUR);
|
|
11033
|
+
var days = moment$6(fistDate).diff(secondDate, DAY);
|
|
11034
|
+
var months = moment$6(fistDate).diff(secondDate, MONTH);
|
|
11035
|
+
var years = moment$6(fistDate).diff(secondDate, YEAR);
|
|
11233
11036
|
if (!scale.endsWith("s")) {
|
|
11234
11037
|
scale += "s";
|
|
11235
11038
|
}
|
|
@@ -11244,14 +11047,14 @@ var DateUtils = /** @class */ (function () {
|
|
|
11244
11047
|
}[scale]);
|
|
11245
11048
|
};
|
|
11246
11049
|
DateUtils.today = function () {
|
|
11247
|
-
var dateStr = moment$
|
|
11050
|
+
var dateStr = moment$6().format("YYY-MM-DD");
|
|
11248
11051
|
return new Date(dateStr);
|
|
11249
11052
|
};
|
|
11250
11053
|
DateUtils.now = function () {
|
|
11251
|
-
return moment$
|
|
11054
|
+
return moment$6().toDate();
|
|
11252
11055
|
};
|
|
11253
11056
|
DateUtils.add = function (date, quantity, scale) {
|
|
11254
|
-
return moment$
|
|
11057
|
+
return moment$6(date).add(quantity, scale).toDate();
|
|
11255
11058
|
};
|
|
11256
11059
|
DateUtils.startOf = function (date, scale) {
|
|
11257
11060
|
var _a;
|
|
@@ -11280,7 +11083,7 @@ var DateUtils = /** @class */ (function () {
|
|
|
11280
11083
|
return new Date(vals[0], vals[1], vals[2], vals[3], vals[4], vals[5], vals[6]);
|
|
11281
11084
|
};
|
|
11282
11085
|
DateUtils.clone = function (date) {
|
|
11283
|
-
return moment$
|
|
11086
|
+
return moment$6(date).toDate();
|
|
11284
11087
|
};
|
|
11285
11088
|
DateUtils.getDateValues = function (date) {
|
|
11286
11089
|
return [
|
|
@@ -11294,7 +11097,7 @@ var DateUtils = /** @class */ (function () {
|
|
|
11294
11097
|
];
|
|
11295
11098
|
};
|
|
11296
11099
|
DateUtils.getDaysInMonth = function (date) {
|
|
11297
|
-
return moment$
|
|
11100
|
+
return moment$6(date, "YYYY-MM").daysInMonth();
|
|
11298
11101
|
};
|
|
11299
11102
|
return DateUtils;
|
|
11300
11103
|
}());
|
|
@@ -15077,6 +14880,173 @@ var ProfilePicturePickerModule = /** @class */ (function () {
|
|
|
15077
14880
|
return ProfilePicturePickerModule;
|
|
15078
14881
|
}());
|
|
15079
14882
|
|
|
14883
|
+
var ProgressBarColors;
|
|
14884
|
+
(function (ProgressBarColors) {
|
|
14885
|
+
ProgressBarColors["Blue"] = "blue";
|
|
14886
|
+
ProgressBarColors["Green"] = "green";
|
|
14887
|
+
ProgressBarColors["Red"] = "red";
|
|
14888
|
+
ProgressBarColors["Yellow"] = "yellow";
|
|
14889
|
+
})(ProgressBarColors || (ProgressBarColors = {}));
|
|
14890
|
+
|
|
14891
|
+
var ProgressBarMode;
|
|
14892
|
+
(function (ProgressBarMode) {
|
|
14893
|
+
ProgressBarMode["Determinate"] = "determinate";
|
|
14894
|
+
ProgressBarMode["Indeterminate"] = "indeterminate";
|
|
14895
|
+
})(ProgressBarMode || (ProgressBarMode = {}));
|
|
14896
|
+
|
|
14897
|
+
var ProgressBarComponent = /** @class */ (function () {
|
|
14898
|
+
function ProgressBarComponent() {
|
|
14899
|
+
this.numberFormatOptions = {
|
|
14900
|
+
style: "decimal",
|
|
14901
|
+
minimumFractionDigits: 0,
|
|
14902
|
+
maximumFractionDigits: 2,
|
|
14903
|
+
};
|
|
14904
|
+
this.showValue = true;
|
|
14905
|
+
this.mode = ProgressBarMode.Determinate;
|
|
14906
|
+
}
|
|
14907
|
+
ProgressBarComponent.prototype.ngOnInit = function () {
|
|
14908
|
+
this.validateInputs();
|
|
14909
|
+
};
|
|
14910
|
+
ProgressBarComponent.prototype.validateInputs = function () {
|
|
14911
|
+
if (this.value < 0 || this.value > 100) {
|
|
14912
|
+
throw new Error("Invalid value for value");
|
|
14913
|
+
}
|
|
14914
|
+
if (this.targetValue < 0 || this.targetValue > 100) {
|
|
14915
|
+
throw new Error("Invalid value for targetValue");
|
|
14916
|
+
}
|
|
14917
|
+
if (this.mode === ProgressBarMode.Indeterminate && (this.value || this.targetValue || this.targetLabel)) {
|
|
14918
|
+
throw new Error("When the mode is indeterminate, the value, targetValue and targetLabel parameters are not expected.");
|
|
14919
|
+
}
|
|
14920
|
+
};
|
|
14921
|
+
__decorate([
|
|
14922
|
+
Input()
|
|
14923
|
+
], ProgressBarComponent.prototype, "value", void 0);
|
|
14924
|
+
__decorate([
|
|
14925
|
+
Input()
|
|
14926
|
+
], ProgressBarComponent.prototype, "numberFormatOptions", void 0);
|
|
14927
|
+
__decorate([
|
|
14928
|
+
Input()
|
|
14929
|
+
], ProgressBarComponent.prototype, "targetValue", void 0);
|
|
14930
|
+
__decorate([
|
|
14931
|
+
Input()
|
|
14932
|
+
], ProgressBarComponent.prototype, "label", void 0);
|
|
14933
|
+
__decorate([
|
|
14934
|
+
Input()
|
|
14935
|
+
], ProgressBarComponent.prototype, "targetLabel", void 0);
|
|
14936
|
+
__decorate([
|
|
14937
|
+
Input()
|
|
14938
|
+
], ProgressBarComponent.prototype, "activeColor", void 0);
|
|
14939
|
+
__decorate([
|
|
14940
|
+
Input()
|
|
14941
|
+
], ProgressBarComponent.prototype, "showValue", void 0);
|
|
14942
|
+
__decorate([
|
|
14943
|
+
Input()
|
|
14944
|
+
], ProgressBarComponent.prototype, "mode", void 0);
|
|
14945
|
+
ProgressBarComponent = __decorate([
|
|
14946
|
+
Component({
|
|
14947
|
+
selector: "s-progressbar",
|
|
14948
|
+
template: "<ng-container *ngIf=\"mode === 'determinate'; then pbDeterminateTemplate else pbIndeterminateTemplate\"></ng-container>\n\n<ng-template #pbDeterminateTemplate>\n <s-progressbar-determinate\n [value]=\"value\"\n [numberFormatOptions]=\"numberFormatOptions\"\n [targetValue]=\"targetValue\"\n [targetLabel]=\"targetLabel\"\n [activeColor]=\"activeColor\"\n [showValue]=\"showValue\">\n </s-progressbar-determinate>\n</ng-template>\n\n<ng-template #pbIndeterminateTemplate>\n <s-progressbar-indeterminate\n [activeColor]=\"activeColor\"\n [label]=\"label\">\n </s-progressbar-indeterminate>\n</ng-template>",
|
|
14949
|
+
styles: [".progress-bar{position:relative}.progress-bar .progress-bar-all{background-color:#d8d8d8;border-radius:4px;height:24px;overflow:hidden;width:100%}.progress-bar .progress-bar-all .progress-bar-active{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;font-family:\"Open Sans\",sans-serif;font-size:14px;height:100%;-ms-flex-pack:center;justify-content:center;line-height:150%;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:80%}.progress-bar .progress-bar-all .progress-bar-active--blue{background-color:#428bca}.progress-bar .progress-bar-all .progress-bar-active--green{background-color:#0c9348}.progress-bar .progress-bar-all .progress-bar-active--red{background-color:#c13018}.progress-bar .progress-bar-all .progress-bar-active--yellow{background-color:#fcbf10}.progress-bar .target{-ms-flex-align:start;align-items:flex-start;bottom:-38px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute}.progress-bar .target .target-line{background-color:#333;height:40px;margin:8px 0;width:1px}.progress-bar .target .target-label{background-color:#426e78;border-radius:10px;color:#e5eaea;font-family:\"Open Sans\",sans-serif;font-size:12px;line-height:150%;padding:2px 12px}"]
|
|
14950
|
+
})
|
|
14951
|
+
], ProgressBarComponent);
|
|
14952
|
+
return ProgressBarComponent;
|
|
14953
|
+
}());
|
|
14954
|
+
|
|
14955
|
+
var ProgressBarDeterminateComponent = /** @class */ (function () {
|
|
14956
|
+
function ProgressBarDeterminateComponent(localeService) {
|
|
14957
|
+
this.localeService = localeService;
|
|
14958
|
+
this.showValue = true;
|
|
14959
|
+
}
|
|
14960
|
+
ProgressBarDeterminateComponent.prototype.ngOnInit = function () {
|
|
14961
|
+
this.validateValues();
|
|
14962
|
+
this.onGetLocale();
|
|
14963
|
+
};
|
|
14964
|
+
ProgressBarDeterminateComponent.prototype.onGetLocale = function () {
|
|
14965
|
+
var _this = this;
|
|
14966
|
+
this.localeService.getLocale().subscribe({
|
|
14967
|
+
next: function (locale) {
|
|
14968
|
+
_this.numberFormat = new Intl.NumberFormat(locale !== null && locale !== void 0 ? locale : "pt-BR", _this.numberFormatOptions);
|
|
14969
|
+
},
|
|
14970
|
+
error: function () {
|
|
14971
|
+
_this.numberFormat = new Intl.NumberFormat("pt-BR", _this.numberFormatOptions);
|
|
14972
|
+
},
|
|
14973
|
+
});
|
|
14974
|
+
};
|
|
14975
|
+
ProgressBarDeterminateComponent.prototype.validateValues = function () {
|
|
14976
|
+
if (this.value < 0 || this.value > 100) {
|
|
14977
|
+
throw new Error("Invalid value for value");
|
|
14978
|
+
}
|
|
14979
|
+
if (this.targetValue < 0 || this.targetValue > 100) {
|
|
14980
|
+
throw new Error("Invalid value for targetValue");
|
|
14981
|
+
}
|
|
14982
|
+
};
|
|
14983
|
+
ProgressBarDeterminateComponent.ctorParameters = function () { return [
|
|
14984
|
+
{ type: LocaleService }
|
|
14985
|
+
]; };
|
|
14986
|
+
__decorate([
|
|
14987
|
+
Input()
|
|
14988
|
+
], ProgressBarDeterminateComponent.prototype, "value", void 0);
|
|
14989
|
+
__decorate([
|
|
14990
|
+
Input()
|
|
14991
|
+
], ProgressBarDeterminateComponent.prototype, "numberFormatOptions", void 0);
|
|
14992
|
+
__decorate([
|
|
14993
|
+
Input()
|
|
14994
|
+
], ProgressBarDeterminateComponent.prototype, "targetValue", void 0);
|
|
14995
|
+
__decorate([
|
|
14996
|
+
Input()
|
|
14997
|
+
], ProgressBarDeterminateComponent.prototype, "targetLabel", void 0);
|
|
14998
|
+
__decorate([
|
|
14999
|
+
Input()
|
|
15000
|
+
], ProgressBarDeterminateComponent.prototype, "activeColor", void 0);
|
|
15001
|
+
__decorate([
|
|
15002
|
+
Input()
|
|
15003
|
+
], ProgressBarDeterminateComponent.prototype, "showValue", void 0);
|
|
15004
|
+
ProgressBarDeterminateComponent = __decorate([
|
|
15005
|
+
Component({
|
|
15006
|
+
selector: "s-progressbar-determinate",
|
|
15007
|
+
template: "<div class=\"progressbar-determinate\">\n <div class=\"progressbar-container\">\n <div\n class=\"progressbar-active\"\n [ngClass]=\"{\n 'progressbar-active--blue' : activeColor === 'blue',\n 'progressbar-active--green': activeColor === 'green',\n 'progressbar-active--red': activeColor === 'red',\n 'progressbar-active--yellow': activeColor === 'yellow'\n }\"\n [ngStyle]=\"{ 'width': value + '%' }\">\n\n {{ showValue && value ? numberFormat.format(value) + '%' : '' }}\n </div>\n </div>\n <div\n *ngIf=\"targetValue\"\n class=\"target\"\n [ngStyle]=\"{\n 'left': targetValue <= 50 ? targetValue + '%' : 'unset',\n 'right': targetValue > 50 ? 100 - targetValue + '%' : 'unset',\n 'align-items': targetValue > 50 ? 'flex-end' : 'flex-start'\n }\">\n <span class=\"target-line\"></span>\n <span class=\"target-label\">\n {{ targetLabel || numberFormat.format(value) + '%' }}\n </span>\n </div>\n </div>\n",
|
|
15008
|
+
styles: [".progressbar-determinate{position:relative}.progressbar-determinate .progressbar-container{background-color:#d8d8d8;border-radius:4px;height:24px;overflow:hidden;width:100%}.progressbar-determinate .progressbar-container .progressbar-active{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;font-family:\"Open Sans\",sans-serif;font-size:14px;height:100%;-ms-flex-pack:center;justify-content:center;line-height:150%;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:80%}.progressbar-determinate .progressbar-container .progressbar-active--blue{background-color:#428bca}.progressbar-determinate .progressbar-container .progressbar-active--green{background-color:#0c9348}.progressbar-determinate .progressbar-container .progressbar-active--red{background-color:#c13018}.progressbar-determinate .progressbar-container .progressbar-active--yellow{background-color:#fcbf10;color:#212533}.progressbar-determinate .target{-ms-flex-align:start;align-items:flex-start;bottom:-38px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute}.progressbar-determinate .target .target-line{background-color:#333;height:40px;margin:8px 0;width:1px}.progressbar-determinate .target .target-label{background-color:#426e78;border-radius:10px;color:#e5eaea;font-family:\"Open Sans\",sans-serif;font-size:12px;line-height:150%;padding:2px 12px}"]
|
|
15009
|
+
})
|
|
15010
|
+
], ProgressBarDeterminateComponent);
|
|
15011
|
+
return ProgressBarDeterminateComponent;
|
|
15012
|
+
}());
|
|
15013
|
+
|
|
15014
|
+
var ProgressBarIndeterminateComponent = /** @class */ (function () {
|
|
15015
|
+
function ProgressBarIndeterminateComponent() {
|
|
15016
|
+
}
|
|
15017
|
+
__decorate([
|
|
15018
|
+
Input()
|
|
15019
|
+
], ProgressBarIndeterminateComponent.prototype, "activeColor", void 0);
|
|
15020
|
+
__decorate([
|
|
15021
|
+
Input()
|
|
15022
|
+
], ProgressBarIndeterminateComponent.prototype, "label", void 0);
|
|
15023
|
+
ProgressBarIndeterminateComponent = __decorate([
|
|
15024
|
+
Component({
|
|
15025
|
+
selector: "s-progressbar-indeterminate",
|
|
15026
|
+
template: "<div class=\"progressbar-indeterminate\">\n <div class=\"progressbar-container\">\n <div class=\"indeterminate-bar\" [ngClass]=\"{\n 'indeterminate-bar--blue': activeColor === 'blue',\n 'indeterminate-bar--green': activeColor === 'green',\n 'indeterminate-bar--red': activeColor === 'red',\n 'indeterminate-bar--yellow': activeColor === 'yellow'\n }\"></div>\n </div>\n\n <span *ngIf=\"label\" class=\"progressbar-label\">{{ label }}</span>\n</div>\n",
|
|
15027
|
+
styles: [".progressbar-indeterminate{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.progressbar-indeterminate .progressbar-container{background-color:#d8d8d8;border-radius:4px;height:24px;margin:8px 0;overflow:hidden;width:100%}.progressbar-indeterminate .indeterminate-bar{animation:5s infinite indeterminate-progress;background-color:#428bca;height:100%;width:40%}.progressbar-indeterminate .indeterminate-bar--blue{background-color:#428bca}.progressbar-indeterminate .indeterminate-bar--green{background-color:#0c9348}.progressbar-indeterminate .indeterminate-bar--red{background-color:#c13018}.progressbar-indeterminate .indeterminate-bar--yellow{background-color:#fcbf10}.progressbar-indeterminate .progressbar-label{font-family:\"Open Sans\" sans-serif;font-size:12px;line-height:150%;color:#212533}@keyframes indeterminate-progress{0%{transform:translateX(-250%)}100%{transform:translateX(250%)}}"]
|
|
15028
|
+
})
|
|
15029
|
+
], ProgressBarIndeterminateComponent);
|
|
15030
|
+
return ProgressBarIndeterminateComponent;
|
|
15031
|
+
}());
|
|
15032
|
+
|
|
15033
|
+
var ProgressBarModule = /** @class */ (function () {
|
|
15034
|
+
function ProgressBarModule() {
|
|
15035
|
+
}
|
|
15036
|
+
ProgressBarModule = __decorate([
|
|
15037
|
+
NgModule({
|
|
15038
|
+
imports: [CommonModule],
|
|
15039
|
+
declarations: [
|
|
15040
|
+
ProgressBarComponent,
|
|
15041
|
+
ProgressBarDeterminateComponent,
|
|
15042
|
+
ProgressBarIndeterminateComponent,
|
|
15043
|
+
],
|
|
15044
|
+
exports: [ProgressBarComponent],
|
|
15045
|
+
})
|
|
15046
|
+
], ProgressBarModule);
|
|
15047
|
+
return ProgressBarModule;
|
|
15048
|
+
}());
|
|
15049
|
+
|
|
15080
15050
|
var PanelComponent = /** @class */ (function () {
|
|
15081
15051
|
function PanelComponent() {
|
|
15082
15052
|
this.toggleable = true;
|
|
@@ -17628,5 +17598,5 @@ var fallback = {
|
|
|
17628
17598
|
* Generated bundle index. Do not edit.
|
|
17629
17599
|
*/
|
|
17630
17600
|
|
|
17631
|
-
export { AccordionComponent, AccordionModule, AccordionPanelComponent, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, KanbanComponent, KanbanModule, KanbanTemplateTypes, 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, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb,
|
|
17601
|
+
export { AccordionComponent, AccordionModule, AccordionPanelComponent, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, KanbanComponent, KanbanModule, KanbanTemplateTypes, 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, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, LocalizedNumberInputModule as ɵba, NumberInputModule as ɵbb, NumberFieldComponent as ɵbc, CurrencyFieldModule as ɵbd, CurrencyFieldComponent as ɵbe, NumberFieldModule$1 as ɵbf, BignumberInputModule as ɵbg, BignumberFieldComponent as ɵbh, AutocompleteFieldComponent as ɵbi, BooleanFieldComponent as ɵbj, BooleanSwitchFieldComponent as ɵbk, CalendarFieldComponent as ɵbl, ChipsFieldComponent as ɵbm, CountryPhonePickerFieldComponent as ɵbn, DynamicFieldComponent as ɵbo, DynamicFormDirective as ɵbp, FieldsetComponent as ɵbq, FileUploadComponent$1 as ɵbr, LookupFieldComponent as ɵbs, PasswordFieldComponent as ɵbt, RadioButtonComponent as ɵbu, RowComponent as ɵbv, SectionComponent as ɵbw, SelectFieldComponent as ɵbx, SliderFieldComponent as ɵby, TextAreaFieldComponent as ɵbz, TemplateDirective as ɵc, TextAreaIAFieldComponent as ɵca, IAssistService as ɵcb, DecimalField as ɵcd, SideTableComponent as ɵce, ThumbnailService as ɵcf, InfiniteScrollModule as ɵcg, InfiniteScrollDirective as ɵch, IAInsightSidebarComponent as ɵci, IAInsightCardComponent as ɵcj, IAInsightCardLoaderComponent as ɵck, StructureModule as ɵcl, HeaderComponent as ɵcm, FooterComponent as ɵcn, KanbanEventService as ɵco, KanbanItemComponent as ɵcp, KanbanColumnComponent as ɵcq, KanbanItemDraggingComponent as ɵcr, NumberLocaleOptions as ɵcs, BorderButtonModule as ɵct, BorderButtonComponent as ɵcu, ProgressBarDeterminateComponent as ɵcv, ProgressBarIndeterminateComponent as ɵcw, SelectButtonItemComponent as ɵcx, SlidePanelService as ɵcy, TieredMenuEventService as ɵcz, TemplateModule as ɵd, TieredMenuService as ɵda, TieredMenuComponent as ɵdb, TieredMenuNestedComponent as ɵdc, TieredMenuItemComponent as ɵdd, TieredMenuDividerComponent as ɵde, TimelineItemModule as ɵdf, TimelineIconItemComponent as ɵdg, HorizontalTimelineModule as ɵdh, HorizontalTimelineComponent as ɵdi, VerticalTimelineModule as ɵdj, VerticalTimelineComponent as ɵdk, RangeLineComponent as ɵdl, CollapseOptionComponent as ɵdm, CollapsedItemsComponent as ɵdn, VerticalItemsComponent as ɵdo, CustomTranslationsModule as ɵe, CodeEditorComponent as ɵf, CoreFacade as ɵg, CodeMirror6Core as ɵh, CountryPhonePickerService as ɵi, LocalizedCurrencyImpurePipe as ɵj, LocalizedBignumberPipe as ɵk, LocalizedBignumberImpurePipe as ɵl, NumericPipe as ɵm, NumericService as ɵn, EmptyStateGoBackComponent as ɵo, IAssistIconComponent as ɵp, SeniorIconComponent as ɵq, DotsIndicatorComponent as ɵr, LoadingIndicatorComponent as ɵs, FileUploadService as ɵt, InfoSignComponent as ɵu, TableColumnsComponent as ɵv, TablePagingComponent as ɵw, TextFieldModule as ɵx, TextFieldComponent as ɵy, NumberFieldModule as ɵz };
|
|
17632
17602
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|