@seniorsistemas/angular-components 17.7.0 → 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 +1287 -1420
- 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/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/seniorsistemas-angular-components.js +74 -76
- 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/seniorsistemas-angular-components.js +74 -76
- package/fesm2015/seniorsistemas-angular-components.js +835 -963
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +1202 -1332
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.d.ts +73 -75
- 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
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,
|
|
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';
|
|
@@ -5989,1472 +5990,1174 @@ var EmptyStateModule = /** @class */ (function () {
|
|
|
5989
5990
|
return EmptyStateModule;
|
|
5990
5991
|
}());
|
|
5991
5992
|
|
|
5992
|
-
var
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
ProgressBarColors["Red"] = "red";
|
|
5997
|
-
ProgressBarColors["Yellow"] = "yellow";
|
|
5998
|
-
})(ProgressBarColors || (ProgressBarColors = {}));
|
|
5999
|
-
|
|
6000
|
-
var ProgressBarMode;
|
|
6001
|
-
(function (ProgressBarMode) {
|
|
6002
|
-
ProgressBarMode["Determinate"] = "determinate";
|
|
6003
|
-
ProgressBarMode["Indeterminate"] = "indeterminate";
|
|
6004
|
-
})(ProgressBarMode || (ProgressBarMode = {}));
|
|
6005
|
-
|
|
6006
|
-
var ProgressBarComponent = /** @class */ (function () {
|
|
6007
|
-
function ProgressBarComponent() {
|
|
6008
|
-
this.numberFormatOptions = {
|
|
6009
|
-
style: "decimal",
|
|
6010
|
-
minimumFractionDigits: 0,
|
|
6011
|
-
maximumFractionDigits: 2,
|
|
6012
|
-
};
|
|
6013
|
-
this.showValue = true;
|
|
6014
|
-
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();
|
|
6015
5997
|
}
|
|
6016
|
-
|
|
6017
|
-
this
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
}
|
|
6023
|
-
if (this.targetValue < 0 || this.targetValue > 100) {
|
|
6024
|
-
throw new Error("Invalid value for targetValue");
|
|
6025
|
-
}
|
|
6026
|
-
if (this.mode === ProgressBarMode.Indeterminate && (this.value || this.targetValue || this.targetLabel)) {
|
|
6027
|
-
throw new Error("When the mode is indeterminate, the value, targetValue and targetLabel parameters are not expected.");
|
|
6028
|
-
}
|
|
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
|
+
});
|
|
6029
6004
|
};
|
|
6030
|
-
__decorate([
|
|
6031
|
-
|
|
6032
|
-
],
|
|
6033
|
-
|
|
6034
|
-
Input()
|
|
6035
|
-
], ProgressBarComponent.prototype, "numberFormatOptions", void 0);
|
|
6036
|
-
__decorate([
|
|
6037
|
-
Input()
|
|
6038
|
-
], ProgressBarComponent.prototype, "targetValue", void 0);
|
|
6039
|
-
__decorate([
|
|
6040
|
-
Input()
|
|
6041
|
-
], ProgressBarComponent.prototype, "label", void 0);
|
|
6042
|
-
__decorate([
|
|
6043
|
-
Input()
|
|
6044
|
-
], ProgressBarComponent.prototype, "targetLabel", void 0);
|
|
6045
|
-
__decorate([
|
|
6046
|
-
Input()
|
|
6047
|
-
], ProgressBarComponent.prototype, "activeColor", void 0);
|
|
6048
|
-
__decorate([
|
|
6049
|
-
Input()
|
|
6050
|
-
], ProgressBarComponent.prototype, "showValue", void 0);
|
|
6051
|
-
__decorate([
|
|
6052
|
-
Input()
|
|
6053
|
-
], ProgressBarComponent.prototype, "mode", void 0);
|
|
6054
|
-
ProgressBarComponent = __decorate([
|
|
6055
|
-
Component({
|
|
6056
|
-
selector: "s-progressbar",
|
|
6057
|
-
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>",
|
|
6058
|
-
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}"]
|
|
6059
|
-
})
|
|
6060
|
-
], ProgressBarComponent);
|
|
6061
|
-
return ProgressBarComponent;
|
|
6005
|
+
FileUploadService = __decorate([
|
|
6006
|
+
Injectable()
|
|
6007
|
+
], FileUploadService);
|
|
6008
|
+
return FileUploadService;
|
|
6062
6009
|
}());
|
|
6063
6010
|
|
|
6064
|
-
var
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
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.");
|
|
6068
6025
|
}
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
this.onGetLocale();
|
|
6026
|
+
ExportUtils.addClass = function (element, className) {
|
|
6027
|
+
element.nativeElement.className = element.nativeElement.className + " " + className;
|
|
6072
6028
|
};
|
|
6073
|
-
|
|
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) {
|
|
6074
6035
|
var _this = this;
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
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;
|
|
6082
6045
|
});
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
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);
|
|
6087
6088
|
}
|
|
6088
|
-
|
|
6089
|
-
|
|
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
|
+
}
|
|
6090
6107
|
}
|
|
6108
|
+
else
|
|
6109
|
+
return null;
|
|
6091
6110
|
};
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
Input()
|
|
6097
|
-
], ProgressBarDeterminateComponent.prototype, "value", void 0);
|
|
6098
|
-
__decorate([
|
|
6099
|
-
Input()
|
|
6100
|
-
], ProgressBarDeterminateComponent.prototype, "numberFormatOptions", void 0);
|
|
6101
|
-
__decorate([
|
|
6102
|
-
Input()
|
|
6103
|
-
], ProgressBarDeterminateComponent.prototype, "targetValue", void 0);
|
|
6104
|
-
__decorate([
|
|
6105
|
-
Input()
|
|
6106
|
-
], ProgressBarDeterminateComponent.prototype, "targetLabel", void 0);
|
|
6107
|
-
__decorate([
|
|
6108
|
-
Input()
|
|
6109
|
-
], ProgressBarDeterminateComponent.prototype, "activeColor", void 0);
|
|
6110
|
-
__decorate([
|
|
6111
|
-
Input()
|
|
6112
|
-
], ProgressBarDeterminateComponent.prototype, "showValue", void 0);
|
|
6113
|
-
ProgressBarDeterminateComponent = __decorate([
|
|
6114
|
-
Component({
|
|
6115
|
-
selector: "s-progressbar-determinate",
|
|
6116
|
-
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",
|
|
6117
|
-
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}"]
|
|
6118
|
-
})
|
|
6119
|
-
], ProgressBarDeterminateComponent);
|
|
6120
|
-
return ProgressBarDeterminateComponent;
|
|
6111
|
+
ExportUtils.isFunction = function (obj) {
|
|
6112
|
+
return !!(obj && obj.constructor && obj.call && obj.apply);
|
|
6113
|
+
};
|
|
6114
|
+
return ExportUtils;
|
|
6121
6115
|
}());
|
|
6122
6116
|
|
|
6123
|
-
var
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
__decorate([
|
|
6130
|
-
Input()
|
|
6131
|
-
], ProgressBarIndeterminateComponent.prototype, "label", void 0);
|
|
6132
|
-
ProgressBarIndeterminateComponent = __decorate([
|
|
6133
|
-
Component({
|
|
6134
|
-
selector: "s-progressbar-indeterminate",
|
|
6135
|
-
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",
|
|
6136
|
-
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%)}}"]
|
|
6137
|
-
})
|
|
6138
|
-
], ProgressBarIndeterminateComponent);
|
|
6139
|
-
return ProgressBarIndeterminateComponent;
|
|
6140
|
-
}());
|
|
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 = {}));
|
|
6141
6123
|
|
|
6142
|
-
var
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
exports: [ProgressBarComponent],
|
|
6154
|
-
})
|
|
6155
|
-
], ProgressBarModule);
|
|
6156
|
-
return ProgressBarModule;
|
|
6157
|
-
}());
|
|
6124
|
+
var FileUploadPermissions;
|
|
6125
|
+
(function (FileUploadPermissions) {
|
|
6126
|
+
FileUploadPermissions["Add"] = "add";
|
|
6127
|
+
FileUploadPermissions["Read"] = "read";
|
|
6128
|
+
FileUploadPermissions["Remove"] = "remove";
|
|
6129
|
+
})(FileUploadPermissions || (FileUploadPermissions = {}));
|
|
6130
|
+
var ALL_PERMISSIONS = [
|
|
6131
|
+
FileUploadPermissions.Add,
|
|
6132
|
+
FileUploadPermissions.Read,
|
|
6133
|
+
FileUploadPermissions.Remove,
|
|
6134
|
+
];
|
|
6158
6135
|
|
|
6159
|
-
var
|
|
6160
|
-
|
|
6161
|
-
|
|
6136
|
+
var moment$1 = moment_;
|
|
6137
|
+
var FileUploadComponent = /** @class */ (function () {
|
|
6138
|
+
function FileUploadComponent(sanitizer, fileUploadService, translate) {
|
|
6139
|
+
this.sanitizer = sanitizer;
|
|
6140
|
+
this.fileUploadService = fileUploadService;
|
|
6141
|
+
this.translate = translate;
|
|
6142
|
+
this.ADD_PERMISSION = FileUploadPermissions.Add;
|
|
6143
|
+
this.READ_PERMISSION = FileUploadPermissions.Read;
|
|
6144
|
+
this.REMOVE_PERMISSION = FileUploadPermissions.Remove;
|
|
6145
|
+
this.id = "s-file-upload-" + FileUploadComponent_1.nextId++;
|
|
6146
|
+
this.supportedExtensions = [];
|
|
6147
|
+
this.disabled = false;
|
|
6148
|
+
this.showFileUploadDate = false;
|
|
6149
|
+
this.permissions = ALL_PERMISSIONS;
|
|
6150
|
+
this.uploadHandler = new EventEmitter();
|
|
6151
|
+
this.removeFile = new EventEmitter();
|
|
6152
|
+
this.cancelUpload = new EventEmitter();
|
|
6153
|
+
this.downloadFile = new EventEmitter();
|
|
6154
|
+
this.validateErrors = new EventEmitter();
|
|
6155
|
+
this._files = [];
|
|
6156
|
+
this.ngUsubscribe = new Subject();
|
|
6157
|
+
this.inputValue = "";
|
|
6162
6158
|
}
|
|
6163
|
-
|
|
6164
|
-
|
|
6159
|
+
FileUploadComponent_1 = FileUploadComponent;
|
|
6160
|
+
Object.defineProperty(FileUploadComponent.prototype, "files", {
|
|
6161
|
+
get: function () {
|
|
6162
|
+
return this._files;
|
|
6163
|
+
},
|
|
6164
|
+
set: function (files) {
|
|
6165
|
+
var _this = this;
|
|
6166
|
+
var _a;
|
|
6167
|
+
if (this.showFileUploadDate && ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId)) {
|
|
6168
|
+
this.getUploadDate(files);
|
|
6169
|
+
}
|
|
6170
|
+
this._files = files.map(function (file) {
|
|
6171
|
+
if (_this.isImage(file)) {
|
|
6172
|
+
file.objectURL = _this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(file));
|
|
6173
|
+
}
|
|
6174
|
+
return file;
|
|
6175
|
+
});
|
|
6176
|
+
},
|
|
6177
|
+
enumerable: true,
|
|
6178
|
+
configurable: true
|
|
6179
|
+
});
|
|
6180
|
+
FileUploadComponent.prototype.ngOnInit = function () {
|
|
6181
|
+
this.supportedExtensions = this.supportedExtensions
|
|
6182
|
+
.map(function (extension) { return extension.replace(".", "").toLowerCase(); });
|
|
6165
6183
|
};
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
var configs = {
|
|
6170
|
-
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$",
|
|
6171
|
-
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 : ".",
|
|
6172
|
-
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 : ",",
|
|
6173
|
-
scale: (_k = options === null || options === void 0 ? void 0 : options.scale) !== null && _k !== void 0 ? _k : 2,
|
|
6174
|
-
allowNegative: (_l = options === null || options === void 0 ? void 0 : options.allowNegative) !== null && _l !== void 0 ? _l : true
|
|
6175
|
-
};
|
|
6176
|
-
var isNumber = !(new BigNumber(value).isNaN());
|
|
6177
|
-
return applyMask(value, configs, isNumber);
|
|
6178
|
-
}));
|
|
6184
|
+
FileUploadComponent.prototype.ngOnDestroy = function () {
|
|
6185
|
+
this.ngUsubscribe.next();
|
|
6186
|
+
this.ngUsubscribe.complete();
|
|
6179
6187
|
};
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
]; };
|
|
6183
|
-
LocalizedBignumberPipe = __decorate([
|
|
6184
|
-
Pipe({
|
|
6185
|
-
name: "localizedBignumber",
|
|
6186
|
-
})
|
|
6187
|
-
], LocalizedBignumberPipe);
|
|
6188
|
-
return LocalizedBignumberPipe;
|
|
6189
|
-
}());
|
|
6190
|
-
|
|
6191
|
-
var LocalizedBignumberImpurePipe = /** @class */ (function (_super) {
|
|
6192
|
-
__extends(LocalizedBignumberImpurePipe, _super);
|
|
6193
|
-
function LocalizedBignumberImpurePipe() {
|
|
6194
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
6195
|
-
}
|
|
6196
|
-
LocalizedBignumberImpurePipe.prototype.transform = function (value, options) {
|
|
6197
|
-
return _super.prototype.transform.call(this, value, options);
|
|
6188
|
+
FileUploadComponent.prototype.ngAfterContentInit = function () {
|
|
6189
|
+
this.update();
|
|
6198
6190
|
};
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
var LocalizedCurrencyPipeOptions = /** @class */ (function (_super) {
|
|
6209
|
-
__extends(LocalizedCurrencyPipeOptions, _super);
|
|
6210
|
-
function LocalizedCurrencyPipeOptions(config) {
|
|
6211
|
-
if (config === void 0) { config = {}; }
|
|
6212
|
-
var _this = _super.call(this, config) || this;
|
|
6213
|
-
_this.scale = 2;
|
|
6214
|
-
return _this;
|
|
6215
|
-
}
|
|
6216
|
-
return LocalizedCurrencyPipeOptions;
|
|
6217
|
-
}(NumberLocaleOptions));
|
|
6218
|
-
/**
|
|
6219
|
-
* @deprecated Should use localizedBignumberPipe instead
|
|
6220
|
-
*/
|
|
6221
|
-
var LocalizedCurrencyPipe = /** @class */ (function () {
|
|
6222
|
-
function LocalizedCurrencyPipe(localeService) {
|
|
6223
|
-
this.localeService = localeService;
|
|
6224
|
-
}
|
|
6225
|
-
LocalizedCurrencyPipe.prototype.transform = function (value, options) {
|
|
6226
|
-
if (!options) {
|
|
6227
|
-
options = new LocalizedCurrencyPipeOptions();
|
|
6191
|
+
FileUploadComponent.prototype.onResize = function () {
|
|
6192
|
+
this.update();
|
|
6193
|
+
};
|
|
6194
|
+
FileUploadComponent.prototype.onFileSelect = function (files) {
|
|
6195
|
+
var e_1, _a;
|
|
6196
|
+
var newFiles = [];
|
|
6197
|
+
if (!this.multiple) {
|
|
6198
|
+
this.files = [];
|
|
6228
6199
|
}
|
|
6229
|
-
|
|
6200
|
+
if (this.isFileLimitExceeded(files)) {
|
|
6201
|
+
this.validateErrors.emit({
|
|
6202
|
+
files: files,
|
|
6203
|
+
validation: ValidateErrors.MAX_FILE_LIMIT,
|
|
6204
|
+
});
|
|
6205
|
+
this.clearFileInput();
|
|
6206
|
+
return;
|
|
6207
|
+
}
|
|
6208
|
+
try {
|
|
6209
|
+
for (var files_1 = __values(files), files_1_1 = files_1.next(); !files_1_1.done; files_1_1 = files_1.next()) {
|
|
6210
|
+
var file = files_1_1.value;
|
|
6211
|
+
if (this.isUnsupportedFileExtension(file)) {
|
|
6212
|
+
this.validateErrors.emit({
|
|
6213
|
+
files: [file],
|
|
6214
|
+
validation: ValidateErrors.UNSUPPORTED_EXTENSION,
|
|
6215
|
+
});
|
|
6216
|
+
continue;
|
|
6217
|
+
}
|
|
6218
|
+
if (this.isFileSizeExceeded(file)) {
|
|
6219
|
+
this.validateErrors.emit({
|
|
6220
|
+
files: [file],
|
|
6221
|
+
validation: ValidateErrors.MAX_FILE_SIZE,
|
|
6222
|
+
});
|
|
6223
|
+
continue;
|
|
6224
|
+
}
|
|
6225
|
+
newFiles.push(file);
|
|
6226
|
+
}
|
|
6227
|
+
}
|
|
6228
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
6229
|
+
finally {
|
|
6230
|
+
try {
|
|
6231
|
+
if (files_1_1 && !files_1_1.done && (_a = files_1.return)) _a.call(files_1);
|
|
6232
|
+
}
|
|
6233
|
+
finally { if (e_1) throw e_1.error; }
|
|
6234
|
+
}
|
|
6235
|
+
if (newFiles.length) {
|
|
6236
|
+
this.files = this.files.concat(newFiles);
|
|
6237
|
+
this.uploadHandler.emit({
|
|
6238
|
+
files: newFiles,
|
|
6239
|
+
});
|
|
6240
|
+
}
|
|
6241
|
+
this.clearFileInput();
|
|
6230
6242
|
};
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
var integerPart = onlyNumbers
|
|
6238
|
-
.slice(0, onlyNumbers.length - scale)
|
|
6239
|
-
.replace(/^0*/g, "")
|
|
6240
|
-
.replace(/\B(?=(\d{3})+(?!\d))/g, thousandsSeparator) || "0";
|
|
6241
|
-
var decimalPart = onlyNumbers.slice(onlyNumbers.length - scale);
|
|
6242
|
-
var newValue = scale ? integerPart + decimalSeparator + decimalPart : integerPart;
|
|
6243
|
-
var isZero = !Number(onlyNumbers);
|
|
6244
|
-
var operator = rawValue.includes("-") && !isZero ? "-" : "";
|
|
6245
|
-
return "" + operator + currencySymbol + newValue;
|
|
6246
|
-
}));
|
|
6243
|
+
FileUploadComponent.prototype.onRemoveFile = function (file) {
|
|
6244
|
+
var fileIndex = this.files.indexOf(file);
|
|
6245
|
+
var removedFiles = this.files.splice(fileIndex, 1);
|
|
6246
|
+
if (removedFiles.length) {
|
|
6247
|
+
this.removeFile.emit({ file: file });
|
|
6248
|
+
}
|
|
6247
6249
|
};
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
})
|
|
6255
|
-
], LocalizedCurrencyPipe);
|
|
6256
|
-
return LocalizedCurrencyPipe;
|
|
6257
|
-
}());
|
|
6258
|
-
|
|
6259
|
-
/**
|
|
6260
|
-
* @deprecated Should use localizedBignumberPipe instead
|
|
6261
|
-
*/
|
|
6262
|
-
var LocalizedCurrencyImpurePipe = /** @class */ (function (_super) {
|
|
6263
|
-
__extends(LocalizedCurrencyImpurePipe, _super);
|
|
6264
|
-
function LocalizedCurrencyImpurePipe() {
|
|
6265
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
6266
|
-
}
|
|
6267
|
-
LocalizedCurrencyImpurePipe.prototype.transform = function (value, options) {
|
|
6268
|
-
if (options === void 0) { options = new LocalizedCurrencyPipeOptions(); }
|
|
6269
|
-
return _super.prototype.transform.call(this, value, options);
|
|
6250
|
+
FileUploadComponent.prototype.onCancelUpload = function (index) {
|
|
6251
|
+
var removedFiles = this.files.splice(index, 1);
|
|
6252
|
+
if (removedFiles.length) {
|
|
6253
|
+
this.cancelUpload.emit(index);
|
|
6254
|
+
}
|
|
6255
|
+
this.clearFileInput();
|
|
6270
6256
|
};
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
})
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6257
|
+
FileUploadComponent.prototype.onDowloadFile = function (index) {
|
|
6258
|
+
this.downloadFile.emit({
|
|
6259
|
+
index: index,
|
|
6260
|
+
anchor: this.anchor,
|
|
6261
|
+
});
|
|
6262
|
+
};
|
|
6263
|
+
FileUploadComponent.prototype.update = function () {
|
|
6264
|
+
var windowWidth = window.innerWidth;
|
|
6265
|
+
this.isSmallDevice = windowWidth <= Breakpoints.SM_MAX;
|
|
6266
|
+
};
|
|
6267
|
+
FileUploadComponent.prototype.isImage = function (file) {
|
|
6268
|
+
return /^image\//.test(file.type);
|
|
6269
|
+
};
|
|
6270
|
+
FileUploadComponent.prototype.isFileLimitExceeded = function (files) {
|
|
6271
|
+
if (!this.fileLimit) {
|
|
6272
|
+
return false;
|
|
6273
|
+
}
|
|
6274
|
+
return this.files.length + files.length > this.fileLimit;
|
|
6275
|
+
};
|
|
6276
|
+
FileUploadComponent.prototype.isFileSizeExceeded = function (file) {
|
|
6277
|
+
if (!this.maxFileSize) {
|
|
6278
|
+
return false;
|
|
6279
|
+
}
|
|
6280
|
+
return file.size > this.maxFileSize;
|
|
6281
|
+
};
|
|
6282
|
+
FileUploadComponent.prototype.isUnsupportedFileExtension = function (file) {
|
|
6283
|
+
var _a;
|
|
6284
|
+
if ((_a = this.supportedExtensions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
6285
|
+
var extension = file.name.split(".").pop().toLowerCase();
|
|
6286
|
+
return !this.supportedExtensions.includes(extension);
|
|
6287
|
+
}
|
|
6288
|
+
return false;
|
|
6289
|
+
};
|
|
6290
|
+
FileUploadComponent.prototype.clearFileInput = function () {
|
|
6291
|
+
this.inputUpload.nativeElement.value = null;
|
|
6292
|
+
};
|
|
6293
|
+
FileUploadComponent.prototype.getUploadDate = function (blobFile) {
|
|
6294
|
+
var _this = this;
|
|
6295
|
+
if (!blobFile) {
|
|
6296
|
+
return;
|
|
6297
|
+
}
|
|
6298
|
+
this.fileUploadService.getMetadataCustomField({ objectId: blobFile[0].objectId })
|
|
6299
|
+
.then(function (metadata) { return _this.setModifiedDate(metadata); });
|
|
6288
6300
|
};
|
|
6289
|
-
|
|
6290
|
-
|
|
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 });
|
|
6308
|
+
};
|
|
6309
|
+
var FileUploadComponent_1;
|
|
6310
|
+
FileUploadComponent.nextId = 0;
|
|
6311
|
+
FileUploadComponent.ctorParameters = function () { return [
|
|
6312
|
+
{ type: DomSanitizer },
|
|
6313
|
+
{ type: FileUploadService },
|
|
6314
|
+
{ type: TranslateService }
|
|
6291
6315
|
]; };
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6316
|
+
__decorate([
|
|
6317
|
+
ViewChild("inputUpload", { static: false })
|
|
6318
|
+
], FileUploadComponent.prototype, "inputUpload", void 0);
|
|
6319
|
+
__decorate([
|
|
6320
|
+
ViewChild("anchor", { static: false })
|
|
6321
|
+
], FileUploadComponent.prototype, "anchor", void 0);
|
|
6322
|
+
__decorate([
|
|
6323
|
+
Input()
|
|
6324
|
+
], FileUploadComponent.prototype, "id", void 0);
|
|
6325
|
+
__decorate([
|
|
6326
|
+
Input()
|
|
6327
|
+
], FileUploadComponent.prototype, "chooseLabel", void 0);
|
|
6328
|
+
__decorate([
|
|
6329
|
+
Input()
|
|
6330
|
+
], FileUploadComponent.prototype, "removeLabel", void 0);
|
|
6331
|
+
__decorate([
|
|
6332
|
+
Input()
|
|
6333
|
+
], FileUploadComponent.prototype, "cancelLabel", void 0);
|
|
6334
|
+
__decorate([
|
|
6335
|
+
Input()
|
|
6336
|
+
], FileUploadComponent.prototype, "successTooltip", void 0);
|
|
6337
|
+
__decorate([
|
|
6338
|
+
Input()
|
|
6339
|
+
], FileUploadComponent.prototype, "multiple", void 0);
|
|
6340
|
+
__decorate([
|
|
6341
|
+
Input()
|
|
6342
|
+
], FileUploadComponent.prototype, "accept", void 0);
|
|
6343
|
+
__decorate([
|
|
6344
|
+
Input()
|
|
6345
|
+
], FileUploadComponent.prototype, "supportedExtensions", void 0);
|
|
6346
|
+
__decorate([
|
|
6347
|
+
Input()
|
|
6348
|
+
], FileUploadComponent.prototype, "ariaLabelFileName", void 0);
|
|
6349
|
+
__decorate([
|
|
6350
|
+
Input()
|
|
6351
|
+
], FileUploadComponent.prototype, "maxFileSize", void 0);
|
|
6352
|
+
__decorate([
|
|
6353
|
+
Input()
|
|
6354
|
+
], FileUploadComponent.prototype, "fileLimit", void 0);
|
|
6355
|
+
__decorate([
|
|
6356
|
+
Input()
|
|
6357
|
+
], FileUploadComponent.prototype, "ariaLabelProgress", void 0);
|
|
6358
|
+
__decorate([
|
|
6359
|
+
Input()
|
|
6360
|
+
], FileUploadComponent.prototype, "ariaLabelSuccess", void 0);
|
|
6361
|
+
__decorate([
|
|
6362
|
+
Input()
|
|
6363
|
+
], FileUploadComponent.prototype, "ariaLabelError", void 0);
|
|
6364
|
+
__decorate([
|
|
6365
|
+
Input()
|
|
6366
|
+
], FileUploadComponent.prototype, "ariaLabelRemove", void 0);
|
|
6367
|
+
__decorate([
|
|
6368
|
+
Input()
|
|
6369
|
+
], FileUploadComponent.prototype, "formGroup", void 0);
|
|
6370
|
+
__decorate([
|
|
6371
|
+
Input()
|
|
6372
|
+
], FileUploadComponent.prototype, "disabled", void 0);
|
|
6373
|
+
__decorate([
|
|
6374
|
+
Input()
|
|
6375
|
+
], FileUploadComponent.prototype, "showFileUploadDate", void 0);
|
|
6376
|
+
__decorate([
|
|
6377
|
+
Input()
|
|
6378
|
+
], FileUploadComponent.prototype, "permissions", void 0);
|
|
6379
|
+
__decorate([
|
|
6380
|
+
Input()
|
|
6381
|
+
], FileUploadComponent.prototype, "files", null);
|
|
6382
|
+
__decorate([
|
|
6383
|
+
Output()
|
|
6384
|
+
], FileUploadComponent.prototype, "uploadHandler", void 0);
|
|
6385
|
+
__decorate([
|
|
6386
|
+
Output()
|
|
6387
|
+
], FileUploadComponent.prototype, "removeFile", void 0);
|
|
6388
|
+
__decorate([
|
|
6389
|
+
Output()
|
|
6390
|
+
], FileUploadComponent.prototype, "cancelUpload", void 0);
|
|
6391
|
+
__decorate([
|
|
6392
|
+
Output()
|
|
6393
|
+
], FileUploadComponent.prototype, "downloadFile", void 0);
|
|
6394
|
+
__decorate([
|
|
6395
|
+
Output()
|
|
6396
|
+
], FileUploadComponent.prototype, "validateErrors", void 0);
|
|
6397
|
+
__decorate([
|
|
6398
|
+
HostListener("window:resize")
|
|
6399
|
+
], FileUploadComponent.prototype, "onResize", null);
|
|
6400
|
+
FileUploadComponent = FileUploadComponent_1 = __decorate([
|
|
6401
|
+
Component({
|
|
6402
|
+
selector: "s-file-upload",
|
|
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}}"]
|
|
6295
6405
|
})
|
|
6296
|
-
],
|
|
6297
|
-
return
|
|
6406
|
+
], FileUploadComponent);
|
|
6407
|
+
return FileUploadComponent;
|
|
6298
6408
|
}());
|
|
6299
6409
|
|
|
6300
|
-
var
|
|
6301
|
-
|
|
6302
|
-
function LocalizedDateImpurePipe() {
|
|
6303
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
6410
|
+
var FileUploadModule = /** @class */ (function () {
|
|
6411
|
+
function FileUploadModule() {
|
|
6304
6412
|
}
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6413
|
+
FileUploadModule = __decorate([
|
|
6414
|
+
NgModule({
|
|
6415
|
+
declarations: [FileUploadComponent],
|
|
6416
|
+
imports: [
|
|
6417
|
+
CommonModule,
|
|
6418
|
+
ButtonModule,
|
|
6419
|
+
TooltipModule$1,
|
|
6420
|
+
ProgressBarModule$1,
|
|
6421
|
+
TranslateModule,
|
|
6422
|
+
],
|
|
6423
|
+
providers: [FileUploadService],
|
|
6424
|
+
exports: [FileUploadComponent],
|
|
6309
6425
|
})
|
|
6310
|
-
],
|
|
6311
|
-
return
|
|
6312
|
-
}(LocalizedDatePipe));
|
|
6313
|
-
|
|
6314
|
-
/**
|
|
6315
|
-
* @deprecated Should use localizedBignumberPipe instead
|
|
6316
|
-
*/
|
|
6317
|
-
var LocalizedNumberPipe = /** @class */ (function () {
|
|
6318
|
-
function LocalizedNumberPipe(localeService) {
|
|
6319
|
-
this.localeService = localeService;
|
|
6320
|
-
}
|
|
6321
|
-
LocalizedNumberPipe.prototype.transform = function (value, minimumFractionDigits) {
|
|
6322
|
-
return from(this.localeService.getLocale()).pipe(map(function (locale) {
|
|
6323
|
-
var numericValue = Number(value);
|
|
6324
|
-
if (!value && isNaN(numericValue))
|
|
6325
|
-
return;
|
|
6326
|
-
return new Intl.NumberFormat(locale, {
|
|
6327
|
-
minimumFractionDigits: minimumFractionDigits || 0,
|
|
6328
|
-
}).format(Number(value));
|
|
6329
|
-
}));
|
|
6330
|
-
};
|
|
6331
|
-
LocalizedNumberPipe.ctorParameters = function () { return [
|
|
6332
|
-
{ type: LocaleService }
|
|
6333
|
-
]; };
|
|
6334
|
-
LocalizedNumberPipe = __decorate([
|
|
6335
|
-
Pipe({ name: "localizedNumber" })
|
|
6336
|
-
], LocalizedNumberPipe);
|
|
6337
|
-
return LocalizedNumberPipe;
|
|
6426
|
+
], FileUploadModule);
|
|
6427
|
+
return FileUploadModule;
|
|
6338
6428
|
}());
|
|
6339
6429
|
|
|
6340
|
-
var
|
|
6341
|
-
|
|
6342
|
-
function LocalizedTimePipe(localeService) {
|
|
6343
|
-
this.localeService = localeService;
|
|
6430
|
+
var InfoSignComponent = /** @class */ (function () {
|
|
6431
|
+
function InfoSignComponent() {
|
|
6344
6432
|
}
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
{ type: LocaleService }
|
|
6351
|
-
]; };
|
|
6352
|
-
LocalizedTimePipe = __decorate([
|
|
6353
|
-
Pipe({
|
|
6354
|
-
name: "localizedTime",
|
|
6433
|
+
InfoSignComponent = __decorate([
|
|
6434
|
+
Component({
|
|
6435
|
+
selector: "s-info-sign-component",
|
|
6436
|
+
template: "<span class=\"info-sign\">\n <span *ngTemplateOutlet=\"templateRef\"></span>\n <i\n class=\"info-sign__icon fa fa-info-circle\"\n aria-hidden=\"true\"\n [sTooltip]=\"tooltip\"\n [escape]=\"false\"\n tooltipPosition=\"top\"\n [displayTime]=\"displayTime\"\n mobileBehavior=\"tap\"\n showDelay=\"0\">\n </i>\n</span>",
|
|
6437
|
+
styles: [".info-sign{-ms-flex-align:baseline;align-items:baseline;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:start;justify-content:flex-start}.info-sign .info-sign__icon{padding:0 12px}"]
|
|
6355
6438
|
})
|
|
6356
|
-
],
|
|
6357
|
-
return
|
|
6439
|
+
], InfoSignComponent);
|
|
6440
|
+
return InfoSignComponent;
|
|
6358
6441
|
}());
|
|
6359
6442
|
|
|
6360
|
-
var
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
Pipe({
|
|
6367
|
-
name: "localizedTimeImpure",
|
|
6368
|
-
pure: false,
|
|
6369
|
-
})
|
|
6370
|
-
], LocalizedTimeImpurePipe);
|
|
6371
|
-
return LocalizedTimeImpurePipe;
|
|
6372
|
-
}(LocalizedTimePipe));
|
|
6373
|
-
|
|
6374
|
-
var NumericService = /** @class */ (function () {
|
|
6375
|
-
function NumericService(localeService) {
|
|
6376
|
-
this.localeService = localeService;
|
|
6443
|
+
var InfoSignDirective = /** @class */ (function () {
|
|
6444
|
+
function InfoSignDirective(templateRef, viewContainer, componentFactoryResolver) {
|
|
6445
|
+
this.templateRef = templateRef;
|
|
6446
|
+
this.viewContainer = viewContainer;
|
|
6447
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
6448
|
+
this.displayTime = 5000;
|
|
6377
6449
|
}
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
*
|
|
6387
|
-
* @param {number | string | BigNumber} value The value to be formatted.
|
|
6388
|
-
* @param {Intl.NumberFormatOptions} options Options that overwrites the default Intl.NumberFormatOptions.
|
|
6389
|
-
* @return `string` The formatted value.
|
|
6390
|
-
*/
|
|
6391
|
-
NumericService.prototype.instant = function (value, options) {
|
|
6392
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
6393
|
-
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 }) });
|
|
6394
|
-
// From https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
6395
|
-
return new Intl.NumberFormat(options.locale, options.options).format(this.getType(value) === "number" || this.getType(value) === "string" ? value : value.toString());
|
|
6396
|
-
};
|
|
6397
|
-
NumericService.prototype.getType = function (value) {
|
|
6398
|
-
// From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
|
|
6399
|
-
if (value === null) {
|
|
6400
|
-
return "null";
|
|
6401
|
-
}
|
|
6402
|
-
var baseType = typeof value;
|
|
6403
|
-
// Primitive types
|
|
6404
|
-
if (baseType !== "object" && baseType !== "function") {
|
|
6405
|
-
return baseType;
|
|
6450
|
+
InfoSignDirective.prototype.ngOnInit = function () {
|
|
6451
|
+
if (!this.componentRef && this.sInfoSign) {
|
|
6452
|
+
this.viewContainer.clear();
|
|
6453
|
+
var componentFactory = this.componentFactoryResolver.resolveComponentFactory(InfoSignComponent);
|
|
6454
|
+
this.componentRef = this.viewContainer.createComponent(componentFactory);
|
|
6455
|
+
this.componentRef.instance.templateRef = this.templateRef;
|
|
6456
|
+
this.componentRef.instance.tooltip = this.sInfoSign;
|
|
6457
|
+
this.componentRef.instance.displayTime = this.displayTime;
|
|
6406
6458
|
}
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
var tag = value[Symbol.toStringTag];
|
|
6410
|
-
if (typeof tag === "string") {
|
|
6411
|
-
return tag;
|
|
6459
|
+
else if (this.componentRef && this.sInfoSign) {
|
|
6460
|
+
this.componentRef.instance.tooltip = this.sInfoSign;
|
|
6412
6461
|
}
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6462
|
+
else {
|
|
6463
|
+
this.viewContainer.clear();
|
|
6464
|
+
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
6416
6465
|
}
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
return className;
|
|
6466
|
+
};
|
|
6467
|
+
InfoSignDirective.prototype.ngOnDestroy = function () {
|
|
6468
|
+
if (this.componentRef) {
|
|
6469
|
+
this.componentRef.destroy();
|
|
6422
6470
|
}
|
|
6423
|
-
// At this point there's no robust way to get the type of value,
|
|
6424
|
-
// so we use the base implementation.
|
|
6425
|
-
return baseType;
|
|
6426
6471
|
};
|
|
6427
|
-
|
|
6428
|
-
{ type:
|
|
6472
|
+
InfoSignDirective.ctorParameters = function () { return [
|
|
6473
|
+
{ type: TemplateRef },
|
|
6474
|
+
{ type: ViewContainerRef },
|
|
6475
|
+
{ type: ComponentFactoryResolver }
|
|
6429
6476
|
]; };
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6477
|
+
__decorate([
|
|
6478
|
+
Input()
|
|
6479
|
+
], InfoSignDirective.prototype, "sInfoSign", void 0);
|
|
6480
|
+
__decorate([
|
|
6481
|
+
Input('sInfoSignDisplayTime')
|
|
6482
|
+
], InfoSignDirective.prototype, "displayTime", void 0);
|
|
6483
|
+
InfoSignDirective = __decorate([
|
|
6484
|
+
Directive({
|
|
6485
|
+
selector: "[sInfoSign]",
|
|
6434
6486
|
})
|
|
6435
|
-
],
|
|
6436
|
-
return
|
|
6437
|
-
}());
|
|
6438
|
-
|
|
6439
|
-
var NumericPipe = /** @class */ (function () {
|
|
6440
|
-
function NumericPipe(numericService, localeService) {
|
|
6441
|
-
this.numericService = numericService;
|
|
6442
|
-
this.localeService = localeService;
|
|
6443
|
-
}
|
|
6444
|
-
NumericPipe.prototype.transform = function (value, options) {
|
|
6445
|
-
var _this = this;
|
|
6446
|
-
return (options === null || options === void 0 ? void 0 : options.locale) ? of(this.numericService.instant(value, options))
|
|
6447
|
-
: this.localeService.getLocale().pipe(map(function (locale) {
|
|
6448
|
-
return _this.numericService.instant(value, {
|
|
6449
|
-
locale: locale,
|
|
6450
|
-
options: options === null || options === void 0 ? void 0 : options.options,
|
|
6451
|
-
});
|
|
6452
|
-
}));
|
|
6453
|
-
};
|
|
6454
|
-
NumericPipe.ctorParameters = function () { return [
|
|
6455
|
-
{ type: NumericService },
|
|
6456
|
-
{ type: LocaleService }
|
|
6457
|
-
]; };
|
|
6458
|
-
NumericPipe = __decorate([
|
|
6459
|
-
Pipe({ name: "numeric" })
|
|
6460
|
-
], NumericPipe);
|
|
6461
|
-
return NumericPipe;
|
|
6487
|
+
], InfoSignDirective);
|
|
6488
|
+
return InfoSignDirective;
|
|
6462
6489
|
}());
|
|
6463
6490
|
|
|
6464
|
-
var
|
|
6465
|
-
function
|
|
6491
|
+
var InfoSignModule = /** @class */ (function () {
|
|
6492
|
+
function InfoSignModule() {
|
|
6466
6493
|
}
|
|
6467
|
-
|
|
6468
|
-
LocaleModule.forRoot = function () {
|
|
6469
|
-
return {
|
|
6470
|
-
ngModule: LocaleModule_1,
|
|
6471
|
-
providers: [
|
|
6472
|
-
LocaleService,
|
|
6473
|
-
LocalizedCurrencyPipe,
|
|
6474
|
-
LocalizedDatePipe,
|
|
6475
|
-
LocalizedTimePipe,
|
|
6476
|
-
LocalizedNumberPipe,
|
|
6477
|
-
LocalizedCurrencyImpurePipe,
|
|
6478
|
-
LocalizedDateImpurePipe,
|
|
6479
|
-
LocalizedTimeImpurePipe,
|
|
6480
|
-
LocalizedBignumberPipe,
|
|
6481
|
-
LocalizedBignumberImpurePipe,
|
|
6482
|
-
NumericPipe
|
|
6483
|
-
],
|
|
6484
|
-
};
|
|
6485
|
-
};
|
|
6486
|
-
LocaleModule.forChild = function () {
|
|
6487
|
-
return {
|
|
6488
|
-
ngModule: LocaleModule_1,
|
|
6489
|
-
};
|
|
6490
|
-
};
|
|
6491
|
-
var LocaleModule_1;
|
|
6492
|
-
LocaleModule = LocaleModule_1 = __decorate([
|
|
6494
|
+
InfoSignModule = __decorate([
|
|
6493
6495
|
NgModule({
|
|
6494
|
-
imports: [
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
LocalizedDatePipe,
|
|
6498
|
-
LocalizedTimePipe,
|
|
6499
|
-
LocalizedNumberPipe,
|
|
6500
|
-
LocalizedCurrencyImpurePipe,
|
|
6501
|
-
LocalizedDateImpurePipe,
|
|
6502
|
-
LocalizedTimeImpurePipe,
|
|
6503
|
-
LocalizedBignumberPipe,
|
|
6504
|
-
LocalizedBignumberImpurePipe,
|
|
6505
|
-
NumericPipe
|
|
6496
|
+
imports: [
|
|
6497
|
+
TooltipModule,
|
|
6498
|
+
CommonModule,
|
|
6506
6499
|
],
|
|
6507
6500
|
declarations: [
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
LocalizedTimePipe,
|
|
6511
|
-
LocalizedNumberPipe,
|
|
6512
|
-
LocalizedCurrencyImpurePipe,
|
|
6513
|
-
LocalizedDateImpurePipe,
|
|
6514
|
-
LocalizedTimeImpurePipe,
|
|
6515
|
-
LocalizedBignumberPipe,
|
|
6516
|
-
LocalizedBignumberImpurePipe,
|
|
6517
|
-
NumericPipe
|
|
6501
|
+
InfoSignDirective,
|
|
6502
|
+
InfoSignComponent,
|
|
6518
6503
|
],
|
|
6504
|
+
exports: [InfoSignDirective],
|
|
6505
|
+
entryComponents: [InfoSignComponent],
|
|
6519
6506
|
})
|
|
6520
|
-
],
|
|
6521
|
-
return
|
|
6507
|
+
], InfoSignModule);
|
|
6508
|
+
return InfoSignModule;
|
|
6522
6509
|
}());
|
|
6523
6510
|
|
|
6524
|
-
var
|
|
6525
|
-
|
|
6526
|
-
SM_MAX: 767,
|
|
6527
|
-
MD_MIN: 768,
|
|
6528
|
-
MD_MAX: 991,
|
|
6529
|
-
LG_MIN: 992,
|
|
6530
|
-
LG_MAX: 1199,
|
|
6531
|
-
XL_MIN: 1200,
|
|
6532
|
-
XL_MAX: Infinity,
|
|
6533
|
-
};
|
|
6534
|
-
|
|
6535
|
-
var ExportUtils = /** @class */ (function () {
|
|
6536
|
-
function ExportUtils() {
|
|
6537
|
-
throw new Error("Classe não deve ser instanciada.");
|
|
6511
|
+
var IAssistIconComponent = /** @class */ (function () {
|
|
6512
|
+
function IAssistIconComponent() {
|
|
6538
6513
|
}
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
}
|
|
6546
|
-
};
|
|
6547
|
-
ExportUtils.exportCSV = function (columns, data, csvSeparator, documentName) {
|
|
6548
|
-
var _this = this;
|
|
6549
|
-
if (columns === void 0) { columns = []; }
|
|
6550
|
-
if (data === void 0) { data = []; }
|
|
6551
|
-
if (csvSeparator === void 0) { csvSeparator = ";"; }
|
|
6552
|
-
if (documentName === void 0) { documentName = "download"; }
|
|
6553
|
-
var csv = "\ufeff";
|
|
6554
|
-
columns.filter(function (column) { return column.exportable && column.field; }).forEach(function (column, i) {
|
|
6555
|
-
csv += "\"" + (column.header || column.field) + "\"";
|
|
6556
|
-
if (i < columns.length - 1)
|
|
6557
|
-
csv += csvSeparator;
|
|
6558
|
-
});
|
|
6559
|
-
data.forEach(function (record) {
|
|
6560
|
-
csv += "\n";
|
|
6561
|
-
columns.filter(function (column) { return column.exportable && column.field; }).forEach(function (column, i) {
|
|
6562
|
-
var cellData;
|
|
6563
|
-
if (Array.isArray(column.field)) {
|
|
6564
|
-
var fieldValues = column.field.map(function (col) { return _this.resolveFieldData(record, col); });
|
|
6565
|
-
cellData = fieldValues
|
|
6566
|
-
.flat()
|
|
6567
|
-
.filter(function (value) { return value !== null && value !== undefined; })
|
|
6568
|
-
.join(column.separator);
|
|
6569
|
-
}
|
|
6570
|
-
else {
|
|
6571
|
-
cellData = _this.resolveFieldData(record, column.field);
|
|
6572
|
-
}
|
|
6573
|
-
if (cellData != null)
|
|
6574
|
-
cellData = String(cellData).replace(/"/g, "\"\"");
|
|
6575
|
-
else
|
|
6576
|
-
cellData = "";
|
|
6577
|
-
csv += "\"" + cellData + "\"";
|
|
6578
|
-
if (i < columns.length - 1)
|
|
6579
|
-
csv += csvSeparator;
|
|
6580
|
-
});
|
|
6581
|
-
});
|
|
6582
|
-
var blob = new Blob([csv], {
|
|
6583
|
-
type: "text/csv;charset=utf-8;",
|
|
6584
|
-
});
|
|
6585
|
-
if (window.navigator.msSaveOrOpenBlob)
|
|
6586
|
-
navigator.msSaveOrOpenBlob(blob, documentName + ".csv");
|
|
6587
|
-
else {
|
|
6588
|
-
var link = document.createElement("a");
|
|
6589
|
-
link.style.display = "none";
|
|
6590
|
-
document.body.appendChild(link);
|
|
6591
|
-
if (link.download !== undefined) {
|
|
6592
|
-
link.setAttribute("href", URL.createObjectURL(blob));
|
|
6593
|
-
link.setAttribute("download", documentName + ".csv");
|
|
6594
|
-
link.click();
|
|
6595
|
-
}
|
|
6596
|
-
else {
|
|
6597
|
-
csv = "data:text/csv;charset=utf-8," + csv;
|
|
6598
|
-
window.open(encodeURI(csv));
|
|
6599
|
-
}
|
|
6600
|
-
document.body.removeChild(link);
|
|
6601
|
-
}
|
|
6602
|
-
};
|
|
6603
|
-
ExportUtils.resolveFieldData = function (data, field) {
|
|
6604
|
-
if (data && field) {
|
|
6605
|
-
if (this.isFunction(field))
|
|
6606
|
-
return field(data);
|
|
6607
|
-
else if (field.indexOf(".") == -1)
|
|
6608
|
-
return data[field];
|
|
6609
|
-
else {
|
|
6610
|
-
var fields = field.split(".");
|
|
6611
|
-
var value = data;
|
|
6612
|
-
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
6613
|
-
if (value == null) {
|
|
6614
|
-
return null;
|
|
6615
|
-
}
|
|
6616
|
-
value = value[fields[i]];
|
|
6617
|
-
}
|
|
6618
|
-
return value;
|
|
6619
|
-
}
|
|
6620
|
-
}
|
|
6621
|
-
else
|
|
6622
|
-
return null;
|
|
6623
|
-
};
|
|
6624
|
-
ExportUtils.isFunction = function (obj) {
|
|
6625
|
-
return !!(obj && obj.constructor && obj.call && obj.apply);
|
|
6626
|
-
};
|
|
6627
|
-
return ExportUtils;
|
|
6514
|
+
IAssistIconComponent = __decorate([
|
|
6515
|
+
Component({
|
|
6516
|
+
template: "<svg style=\"width: 100%; height: 100%;\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M5.81451 18.1054L5.99593 17.6059L7.52166 13.4099L7.60877 13.1726L7.61277 13.1614L7.94285 12.2543L8.01159 12.0648L8.05394 11.949L5.2998 8.52426L5.02726 8.18379C5.00569 8.15821 4.9881 8.13104 4.97292 8.10226C4.90099 7.9632 4.85063 7.81294 4.82186 7.6531C4.73075 7.1344 4.90418 6.60771 5.28382 6.24326C5.29421 6.23447 5.3038 6.22567 5.31419 6.21688L5.47164 6.0914L9.3439 3.00238L9.5469 2.84094L9.57088 2.82096L10.4101 2.15041L11.8007 1.04188C11.2181 0.925188 10.6163 0.863647 10.0001 0.863647C4.95374 0.863647 0.863281 4.9541 0.863281 9.99963C0.863281 13.5346 2.87254 16.5989 5.80971 18.1182\" fill=\"#0FA389\"/>\n <path d=\"M14.099 1.83472L13.9495 2.24632L11.997 7.61074L11.9427 7.7594L11.9003 7.87369L14.7448 11.4103C14.7463 11.4127 14.7479 11.4143 14.7495 11.4167L14.9414 11.654C14.9541 11.67 14.9661 11.6868 14.9765 11.7044C15.0764 11.8698 15.1444 12.0505 15.1779 12.2431C15.273 12.7826 15.0812 13.3284 14.676 13.6897C14.656 13.7129 14.6345 13.7344 14.6105 13.7536L11.8563 15.9507L11.6789 16.0922L11.6022 16.1537L10.7406 16.8402V16.841L10.3937 17.1176L9.85747 17.5452L9.39951 17.9112L8.11035 18.9398C8.72016 19.0677 9.35155 19.1364 9.99973 19.1364C15.0461 19.1364 19.1365 15.046 19.1365 9.99964C19.1365 6.42789 17.0857 3.33727 14.099 1.83472Z\" fill=\"#0FA389\"/>\n <path d=\"M14.7287 12.3222C14.7047 12.1832 14.6551 12.0545 14.5864 11.941L14.3954 11.7036C14.3954 11.7036 14.3946 11.7028 14.3938 11.7028L11.3839 7.96005L10.5031 6.86511L10.4256 6.7676L9.03255 5.03487L8.83674 4.79191C8.79278 4.71678 8.75681 4.63446 8.73204 4.54814C8.72085 4.51058 8.71286 4.47222 8.70566 4.43465C8.68568 4.32196 8.68408 4.21007 8.69847 4.10217L8.62334 4.16291L8.44511 4.30438L5.75731 6.44871L5.60066 6.57339C5.34011 6.82275 5.20584 7.19279 5.27218 7.57482C5.29296 7.68751 5.32892 7.79541 5.37927 7.89292C5.37927 7.89292 5.37927 7.89292 5.38007 7.89371L5.6566 8.23818L8.57139 11.8627L8.63293 11.9394L9.53047 13.0559L9.59041 13.1303L9.98363 13.6186L11.0178 14.9046C11.0186 14.9054 11.0194 14.9069 11.0202 14.9077L11.1361 15.0516V15.0524C11.2184 15.1755 11.2768 15.317 11.3048 15.4728C11.3239 15.5807 11.3263 15.6878 11.3143 15.7925L11.3175 15.7965L11.3943 15.735L11.5717 15.5935L14.3266 13.3964L14.3218 13.3908C14.6335 13.1438 14.8022 12.7394 14.7287 12.3222Z\" fill=\"#F3F3F5\"/>\n <path d=\"M10.6822 15.0082C10.6814 15.0074 10.6806 15.0058 10.6806 15.005L10.5672 14.8643L10.3809 14.6325L10.3282 14.567L10.2211 14.4335L9.40028 13.4129L9.32835 13.3242L8.77289 12.6345L8.68098 12.5194L8.44121 12.2205L8.37168 12.4099L8.04159 13.317L8.0376 13.329L7.95128 13.5664L6.42475 17.7623L6.24333 18.2618L5.90605 19.1881L5.73262 19.6645C5.73182 19.6661 5.73102 19.6677 5.73102 19.6685C5.72863 19.6749 5.72703 19.6821 5.72543 19.6885C5.71584 19.7228 5.71424 19.758 5.72063 19.7948C5.74461 19.929 5.87329 20.0193 6.00836 19.9962C6.04112 19.9898 6.07229 19.9778 6.09867 19.9602C6.09867 19.9602 6.09947 19.9602 6.10027 19.9594L6.14103 19.9266L7.39422 18.9268L9.11496 17.5537L9.57292 17.1877L10.1092 16.7601L10.4561 16.4827L10.4537 16.4811C10.7582 16.2382 10.9236 15.8402 10.8509 15.4294C10.8237 15.2735 10.7654 15.1313 10.6822 15.0082Z\" fill=\"#0C847B\"/>\n <path d=\"M9.17644 4.56325C9.2124 4.68713 9.26915 4.80062 9.34268 4.90053C9.34348 4.90053 9.34428 4.90213 9.34428 4.90213L9.40342 4.97645C9.40502 4.97805 9.40582 4.97885 9.40662 4.98045L9.56806 5.17946L9.64878 5.28096L9.67915 5.31932L9.8414 5.51993L10.5559 6.40947L10.7054 6.59569L11.2169 7.23188L11.5142 7.60192L11.5693 7.45247L13.5202 2.08964L14.1596 0.332135C14.1596 0.330536 14.1604 0.328139 14.1612 0.32654C14.174 0.288177 14.1772 0.246617 14.17 0.205058C14.1468 0.0699879 14.0182 -0.0195258 13.8823 0.00365186C13.8407 0.0116442 13.8024 0.028428 13.7712 0.0540033L12.578 1.00589L12.498 1.06982L10.6958 2.50844L9.85658 3.17819L9.8326 3.19737L9.6296 3.35961L9.45297 3.50028C9.2116 3.73925 9.08692 4.08931 9.15006 4.44976C9.15726 4.48813 9.16525 4.52649 9.17644 4.56325Z\" fill=\"#0C847B\"/>\n</svg>"
|
|
6517
|
+
})
|
|
6518
|
+
], IAssistIconComponent);
|
|
6519
|
+
return IAssistIconComponent;
|
|
6628
6520
|
}());
|
|
6629
6521
|
|
|
6630
|
-
var
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
})
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
(
|
|
6640
|
-
FileUploadPermissions["Add"] = "add";
|
|
6641
|
-
FileUploadPermissions["Read"] = "read";
|
|
6642
|
-
FileUploadPermissions["Remove"] = "remove";
|
|
6643
|
-
})(FileUploadPermissions || (FileUploadPermissions = {}));
|
|
6644
|
-
var ALL_PERMISSIONS = [
|
|
6645
|
-
FileUploadPermissions.Add,
|
|
6646
|
-
FileUploadPermissions.Read,
|
|
6647
|
-
FileUploadPermissions.Remove,
|
|
6648
|
-
];
|
|
6522
|
+
var SeniorIconComponent = /** @class */ (function () {
|
|
6523
|
+
function SeniorIconComponent() {
|
|
6524
|
+
}
|
|
6525
|
+
SeniorIconComponent = __decorate([
|
|
6526
|
+
Component({
|
|
6527
|
+
template: "<svg width=\"100%\" height=\"100%\" viewBox=\"0 0 348 613\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g filter=\"url(#filter0_d_2841_2040)\">\n <path d=\"M174.719 518.932L258.161 439.782C264.546 433.762 269.614 426.603 273.072 418.719C276.53 410.834 278.31 402.378 278.31 393.838C278.31 385.298 276.53 376.843 273.072 368.958C269.614 361.073 264.546 353.915 258.161 347.895L174.719 269.199C168.45 263.304 163.474 256.289 160.077 248.56C156.681 240.83 154.933 232.539 154.933 224.165C154.933 215.792 156.681 207.501 160.077 199.771C163.474 192.042 168.45 185.027 174.719 179.132L303.718 301.496C329.517 326.089 344 359.371 344 394.066C344 428.76 329.517 462.043 303.718 486.635L174.719 609C168.45 603.105 163.474 596.09 160.077 588.36C156.681 580.631 154.933 572.34 154.933 563.966C154.933 555.592 156.681 547.301 160.077 539.572C163.474 531.842 168.45 524.828 174.719 518.932ZM173.76 94.0677L90.3189 173.218C83.9334 179.238 78.8659 186.397 75.408 194.281C71.95 202.166 70.1698 210.622 70.1698 219.162C70.1698 227.702 71.95 236.157 75.408 244.042C78.8659 251.927 83.9334 259.085 90.3189 265.105L173.76 344.256C180.03 350.151 185.006 357.166 188.402 364.895C191.798 372.625 193.547 380.916 193.547 389.289C193.547 397.663 191.798 405.954 188.402 413.684C185.006 421.413 180.03 428.428 173.76 434.323L44.2823 311.504C18.4832 286.911 4 253.629 4 218.934C4 184.24 18.4832 150.957 44.2823 126.365L173.76 4C186.213 16.0129 193.192 32.1861 193.192 49.0338C193.192 65.8815 186.213 82.0547 173.76 94.0677Z\" fill=\"white\" />\n </g>\n <defs>\n <filter id=\"filter0_d_2841_2040\" x=\"0\" y=\"0\" width=\"348\" height=\"613\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\" >\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" result=\"hardAlpha\" />\n <feOffset />\n <feGaussianBlur stdDeviation=\"2\" />\n <feComposite in2=\"hardAlpha\" operator=\"out\" />\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.418936 0 0 0 0 1 0 0 0 0 0.930272 0 0 0 0.35 0\" />\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow_2841_2040\" />\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow_2841_2040\" result=\"shape\" />\n </filter>\n </defs>\n</svg>\n"
|
|
6528
|
+
})
|
|
6529
|
+
], SeniorIconComponent);
|
|
6530
|
+
return SeniorIconComponent;
|
|
6531
|
+
}());
|
|
6649
6532
|
|
|
6650
|
-
var
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
};
|
|
6533
|
+
var SVGFactoryIcons;
|
|
6534
|
+
(function (SVGFactoryIcons) {
|
|
6535
|
+
SVGFactoryIcons["IAssist"] = "iassist";
|
|
6536
|
+
SVGFactoryIcons["Senior"] = "senior";
|
|
6537
|
+
})(SVGFactoryIcons || (SVGFactoryIcons = {}));
|
|
6655
6538
|
|
|
6656
|
-
var
|
|
6657
|
-
function
|
|
6658
|
-
this.
|
|
6659
|
-
this.
|
|
6660
|
-
this.
|
|
6661
|
-
this.
|
|
6662
|
-
this.removeFile = new EventEmitter();
|
|
6539
|
+
var SVGFactoryDirective = /** @class */ (function () {
|
|
6540
|
+
function SVGFactoryDirective(viewContainerRef, componentFactoryResolver, cdr) {
|
|
6541
|
+
this.viewContainerRef = viewContainerRef;
|
|
6542
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
6543
|
+
this.cdr = cdr;
|
|
6544
|
+
this._iconClass = this._getIconClass(SVGFactoryIcons.Senior);
|
|
6663
6545
|
}
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6546
|
+
Object.defineProperty(SVGFactoryDirective.prototype, "sSVGFactory", {
|
|
6547
|
+
set: function (icon) {
|
|
6548
|
+
this._iconClass = this._getIconClass(icon);
|
|
6549
|
+
},
|
|
6550
|
+
enumerable: true,
|
|
6551
|
+
configurable: true
|
|
6552
|
+
});
|
|
6553
|
+
SVGFactoryDirective.prototype.ngAfterViewInit = function () {
|
|
6554
|
+
this._createComponent();
|
|
6672
6555
|
};
|
|
6673
|
-
|
|
6674
|
-
var
|
|
6675
|
-
this.
|
|
6556
|
+
SVGFactoryDirective.prototype._createComponent = function () {
|
|
6557
|
+
var factory = this.componentFactoryResolver.resolveComponentFactory(this._iconClass);
|
|
6558
|
+
this.viewContainerRef.clear();
|
|
6559
|
+
this.viewContainerRef.createComponent(factory);
|
|
6560
|
+
this.cdr.detectChanges();
|
|
6676
6561
|
};
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
else if (size < StorageUnits.MB) {
|
|
6685
|
-
convertedSize = size / StorageUnits.KB;
|
|
6686
|
-
unit = "KB";
|
|
6687
|
-
}
|
|
6688
|
-
else if (size < StorageUnits.GB) {
|
|
6689
|
-
convertedSize = size / StorageUnits.MB;
|
|
6690
|
-
unit = "MB";
|
|
6691
|
-
}
|
|
6692
|
-
else {
|
|
6693
|
-
convertedSize = size / StorageUnits.GB;
|
|
6694
|
-
unit = "GB";
|
|
6562
|
+
SVGFactoryDirective.prototype._getIconClass = function (icon) {
|
|
6563
|
+
switch (icon) {
|
|
6564
|
+
case SVGFactoryIcons.IAssist:
|
|
6565
|
+
return IAssistIconComponent;
|
|
6566
|
+
case SVGFactoryIcons.Senior:
|
|
6567
|
+
default:
|
|
6568
|
+
return SeniorIconComponent;
|
|
6695
6569
|
}
|
|
6696
|
-
return convertedSize.toLocaleString(this._locale, { maximumFractionDigits: 2 }) + " " + unit;
|
|
6697
|
-
};
|
|
6698
|
-
FileItemComponent.prototype._getLocale = function () {
|
|
6699
|
-
var _this = this;
|
|
6700
|
-
this.localeService
|
|
6701
|
-
.getLocale()
|
|
6702
|
-
.pipe(first())
|
|
6703
|
-
.subscribe(function (locale) {
|
|
6704
|
-
_this._locale = locale;
|
|
6705
|
-
});
|
|
6706
6570
|
};
|
|
6707
|
-
|
|
6708
|
-
{ type:
|
|
6571
|
+
SVGFactoryDirective.ctorParameters = function () { return [
|
|
6572
|
+
{ type: ViewContainerRef },
|
|
6573
|
+
{ type: ComponentFactoryResolver },
|
|
6574
|
+
{ type: ChangeDetectorRef }
|
|
6709
6575
|
]; };
|
|
6710
6576
|
__decorate([
|
|
6711
|
-
Input()
|
|
6712
|
-
],
|
|
6713
|
-
__decorate([
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
], FileItemComponent.prototype, "removeFile", void 0);
|
|
6743
|
-
__decorate([
|
|
6744
|
-
HostListener("window:resize")
|
|
6745
|
-
], FileItemComponent.prototype, "onResize", null);
|
|
6746
|
-
FileItemComponent = __decorate([
|
|
6577
|
+
Input("sSVGFactory")
|
|
6578
|
+
], SVGFactoryDirective.prototype, "sSVGFactory", null);
|
|
6579
|
+
SVGFactoryDirective = __decorate([
|
|
6580
|
+
Directive({
|
|
6581
|
+
selector: "[sSVGFactory]",
|
|
6582
|
+
})
|
|
6583
|
+
], SVGFactoryDirective);
|
|
6584
|
+
return SVGFactoryDirective;
|
|
6585
|
+
}());
|
|
6586
|
+
|
|
6587
|
+
var SVGFactoryModule = /** @class */ (function () {
|
|
6588
|
+
function SVGFactoryModule() {
|
|
6589
|
+
}
|
|
6590
|
+
SVGFactoryModule = __decorate([
|
|
6591
|
+
NgModule({
|
|
6592
|
+
imports: [CommonModule],
|
|
6593
|
+
declarations: [
|
|
6594
|
+
SVGFactoryDirective,
|
|
6595
|
+
IAssistIconComponent,
|
|
6596
|
+
SeniorIconComponent,
|
|
6597
|
+
],
|
|
6598
|
+
exports: [SVGFactoryDirective],
|
|
6599
|
+
})
|
|
6600
|
+
], SVGFactoryModule);
|
|
6601
|
+
return SVGFactoryModule;
|
|
6602
|
+
}());
|
|
6603
|
+
|
|
6604
|
+
var DotsIndicatorComponent = /** @class */ (function () {
|
|
6605
|
+
function DotsIndicatorComponent() {
|
|
6606
|
+
}
|
|
6607
|
+
DotsIndicatorComponent = __decorate([
|
|
6747
6608
|
Component({
|
|
6748
|
-
selector: "s-
|
|
6749
|
-
template: "<div
|
|
6750
|
-
styles: [".
|
|
6609
|
+
selector: "s-dots-indicator",
|
|
6610
|
+
template: "<div class=\"dots-indicator\">\n <div class=\"bounce bounce--1\"></div>\n <div class=\"bounce bounce--2\"></div>\n <div class=\"bounce bounce--3\"></div>\n</div>\n",
|
|
6611
|
+
styles: [".dots-indicator .bounce{animation:1.2s ease-out infinite bounce;background-color:#333;border-radius:100%;display:inline-block;height:10px;width:10px}.dots-indicator .bounce+.bounce{margin-left:15px}.dots-indicator .bounce.bounce--1{animation-delay:0s}.dots-indicator .bounce.bounce--2{animation-delay:.1s}.dots-indicator .bounce.bounce--3{animation-delay:.2s}@keyframes bounce{100%,80%{transform:scale(1)}90%{transform:scale(1.8)}}"]
|
|
6751
6612
|
})
|
|
6752
|
-
],
|
|
6753
|
-
return
|
|
6613
|
+
], DotsIndicatorComponent);
|
|
6614
|
+
return DotsIndicatorComponent;
|
|
6754
6615
|
}());
|
|
6755
6616
|
|
|
6756
|
-
var
|
|
6757
|
-
|
|
6758
|
-
function FileUploadService() {
|
|
6759
|
-
this.BASE_URL_FIELD_CUSTOMIZATION = "platform/field_customization";
|
|
6760
|
-
this.TOKEN = new AbortController();
|
|
6617
|
+
var LoadingIndicatorComponent = /** @class */ (function () {
|
|
6618
|
+
function LoadingIndicatorComponent() {
|
|
6761
6619
|
}
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
})
|
|
6767
|
-
})
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
Injectable()
|
|
6771
|
-
], FileUploadService);
|
|
6772
|
-
return FileUploadService;
|
|
6620
|
+
LoadingIndicatorComponent = __decorate([
|
|
6621
|
+
Component({
|
|
6622
|
+
selector: "s-logo-indicator",
|
|
6623
|
+
template: "<div class=\"logo-indicator\">\n <span *sSVGFactory=\"'senior'\"></span>\n</div>\n",
|
|
6624
|
+
styles: [".logo-indicator{animation:1s infinite pulsar,1s infinite scale;background-color:#00c89a;border-radius:50%;box-shadow:0 0 0 #00c89ab3;height:64px;padding:calc(64px * .16);position:relative;width:64px}@keyframes pulsar{0%{box-shadow:0 0 0 0 #00c89ab3}70%{box-shadow:0 0 0 40px #00c89a00}100%{box-shadow:0 0 0 0 #00c89a00}}@keyframes scale{0%,100%{transform:scale(1)}50%{transform:scale(1.3)}}"]
|
|
6625
|
+
})
|
|
6626
|
+
], LoadingIndicatorComponent);
|
|
6627
|
+
return LoadingIndicatorComponent;
|
|
6773
6628
|
}());
|
|
6774
6629
|
|
|
6775
|
-
var
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
this.
|
|
6784
|
-
this.id = "s-
|
|
6785
|
-
this.
|
|
6786
|
-
this.
|
|
6787
|
-
this.showFileUploadDate = false;
|
|
6788
|
-
this.permissions = ALL_PERMISSIONS;
|
|
6789
|
-
this.uploadHandler = new EventEmitter();
|
|
6790
|
-
this.removeFile = new EventEmitter();
|
|
6791
|
-
this.cancelUpload = new EventEmitter();
|
|
6792
|
-
this.downloadFile = new EventEmitter();
|
|
6793
|
-
this.validateErrors = new EventEmitter();
|
|
6794
|
-
this.inputValue = "";
|
|
6795
|
-
this._files = [];
|
|
6796
|
-
this.ngUsubscribe = new Subject();
|
|
6630
|
+
var LoadingStateIndicators;
|
|
6631
|
+
(function (LoadingStateIndicators) {
|
|
6632
|
+
LoadingStateIndicators["Dots"] = "dots";
|
|
6633
|
+
LoadingStateIndicators["Logo"] = "logo";
|
|
6634
|
+
})(LoadingStateIndicators || (LoadingStateIndicators = {}));
|
|
6635
|
+
|
|
6636
|
+
var LoadingStateComponent = /** @class */ (function () {
|
|
6637
|
+
function LoadingStateComponent() {
|
|
6638
|
+
this.indicator = LoadingStateIndicators.Dots;
|
|
6639
|
+
this.id = "s-loading-state-" + LoadingStateComponent_1.nextId++;
|
|
6640
|
+
this.BLOCK_TIMEOUT_VALUE = 300;
|
|
6641
|
+
this.UNBLOCK_TIMEOUT_VALUE = 200;
|
|
6797
6642
|
}
|
|
6798
|
-
|
|
6799
|
-
Object.defineProperty(
|
|
6643
|
+
LoadingStateComponent_1 = LoadingStateComponent;
|
|
6644
|
+
Object.defineProperty(LoadingStateComponent.prototype, "loading", {
|
|
6800
6645
|
get: function () {
|
|
6801
|
-
return this.
|
|
6802
|
-
},
|
|
6803
|
-
set: function (files) {
|
|
6804
|
-
var _this = this;
|
|
6805
|
-
var _a;
|
|
6806
|
-
if (this.showFileUploadDate && ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId)) {
|
|
6807
|
-
this._getUploadDate(files);
|
|
6808
|
-
}
|
|
6809
|
-
this._files = files.map(function (file) {
|
|
6810
|
-
if (_this._isImage(file)) {
|
|
6811
|
-
file.objectURL = _this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(file));
|
|
6812
|
-
}
|
|
6813
|
-
return file;
|
|
6814
|
-
});
|
|
6646
|
+
return this._loading;
|
|
6815
6647
|
},
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
this
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
var newFiles = [];
|
|
6829
|
-
if (!this.multiple) {
|
|
6830
|
-
this.files = [];
|
|
6831
|
-
}
|
|
6832
|
-
if (this._isFileLimitExceeded(files)) {
|
|
6833
|
-
this.validateErrors.emit({
|
|
6834
|
-
files: files,
|
|
6835
|
-
validation: ValidateErrors.MAX_FILE_LIMIT,
|
|
6836
|
-
});
|
|
6837
|
-
this._clearFileInput();
|
|
6838
|
-
return;
|
|
6839
|
-
}
|
|
6840
|
-
if (this._isFileCombinedSizeExceeded(files)) {
|
|
6841
|
-
this.validateErrors.emit({
|
|
6842
|
-
files: files,
|
|
6843
|
-
validation: ValidateErrors.MAX_COMBINED_FILE_SIZE,
|
|
6844
|
-
});
|
|
6845
|
-
this._clearFileInput();
|
|
6846
|
-
return;
|
|
6847
|
-
}
|
|
6848
|
-
try {
|
|
6849
|
-
for (var files_1 = __values(files), files_1_1 = files_1.next(); !files_1_1.done; files_1_1 = files_1.next()) {
|
|
6850
|
-
var file = files_1_1.value;
|
|
6851
|
-
if (this._isUnsupportedFileExtension(file)) {
|
|
6852
|
-
this.validateErrors.emit({
|
|
6853
|
-
files: [file],
|
|
6854
|
-
validation: ValidateErrors.UNSUPPORTED_EXTENSION,
|
|
6855
|
-
});
|
|
6856
|
-
continue;
|
|
6857
|
-
}
|
|
6858
|
-
if (this._isFileSizeExceeded(file)) {
|
|
6859
|
-
this.validateErrors.emit({
|
|
6860
|
-
files: [file],
|
|
6861
|
-
validation: ValidateErrors.MAX_FILE_SIZE,
|
|
6862
|
-
});
|
|
6863
|
-
continue;
|
|
6864
|
-
}
|
|
6865
|
-
newFiles.push(file);
|
|
6866
|
-
}
|
|
6867
|
-
}
|
|
6868
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
6869
|
-
finally {
|
|
6870
|
-
try {
|
|
6871
|
-
if (files_1_1 && !files_1_1.done && (_a = files_1.return)) _a.call(files_1);
|
|
6872
|
-
}
|
|
6873
|
-
finally { if (e_1) throw e_1.error; }
|
|
6874
|
-
}
|
|
6875
|
-
if (newFiles.length) {
|
|
6876
|
-
this.files = this.files.concat(newFiles);
|
|
6877
|
-
this.uploadHandler.emit({
|
|
6878
|
-
files: newFiles,
|
|
6879
|
-
});
|
|
6880
|
-
}
|
|
6881
|
-
this._clearFileInput();
|
|
6882
|
-
};
|
|
6883
|
-
FileUploadComponent.prototype.onRemoveFile = function (file) {
|
|
6884
|
-
var fileIndex = this.files.indexOf(file);
|
|
6885
|
-
var removedFiles = this.files.splice(fileIndex, 1);
|
|
6886
|
-
if (removedFiles.length) {
|
|
6887
|
-
this.removeFile.emit({ file: file });
|
|
6888
|
-
}
|
|
6889
|
-
};
|
|
6890
|
-
FileUploadComponent.prototype.onCancelUpload = function (file) {
|
|
6891
|
-
var index = this.files.indexOf(file);
|
|
6892
|
-
if (index != -1) {
|
|
6893
|
-
this.files.splice(index, 1);
|
|
6894
|
-
this.cancelUpload.emit(index);
|
|
6648
|
+
set: function (loading) {
|
|
6649
|
+
this._loading = loading;
|
|
6650
|
+
loading ? this.block() : this.unblock();
|
|
6651
|
+
},
|
|
6652
|
+
enumerable: true,
|
|
6653
|
+
configurable: true
|
|
6654
|
+
});
|
|
6655
|
+
LoadingStateComponent.prototype.block = function () {
|
|
6656
|
+
var _this = this;
|
|
6657
|
+
if (this.unblockTimeoutId) {
|
|
6658
|
+
clearTimeout(this.unblockTimeoutId);
|
|
6659
|
+
this.unblockTimeoutId = undefined;
|
|
6895
6660
|
}
|
|
6896
|
-
this.
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
anchor: this.anchor,
|
|
6902
|
-
});
|
|
6903
|
-
};
|
|
6904
|
-
FileUploadComponent.prototype._isImage = function (file) {
|
|
6905
|
-
return /^image\//.test(file.type);
|
|
6906
|
-
};
|
|
6907
|
-
FileUploadComponent.prototype._isFileLimitExceeded = function (files) {
|
|
6908
|
-
if (!this.fileLimit) {
|
|
6909
|
-
return false;
|
|
6661
|
+
if (!this.blockTimeoutId) {
|
|
6662
|
+
this.blockTimeoutId = setTimeout(function () {
|
|
6663
|
+
_this.blocking = true;
|
|
6664
|
+
_this.blockTimeoutId = undefined;
|
|
6665
|
+
}, this.BLOCK_TIMEOUT_VALUE);
|
|
6910
6666
|
}
|
|
6911
|
-
return this.files.length + files.length > this.fileLimit;
|
|
6912
6667
|
};
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6668
|
+
LoadingStateComponent.prototype.unblock = function () {
|
|
6669
|
+
var _this = this;
|
|
6670
|
+
if (this.blockTimeoutId) {
|
|
6671
|
+
clearTimeout(this.blockTimeoutId);
|
|
6672
|
+
this.blockTimeoutId = undefined;
|
|
6916
6673
|
}
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
if (!this.maxFileSize) {
|
|
6923
|
-
return false;
|
|
6674
|
+
if (!this.unblockTimeoutId) {
|
|
6675
|
+
this.unblockTimeoutId = setTimeout(function () {
|
|
6676
|
+
_this.blocking = false;
|
|
6677
|
+
_this.unblockTimeoutId = undefined;
|
|
6678
|
+
}, this.UNBLOCK_TIMEOUT_VALUE);
|
|
6924
6679
|
}
|
|
6925
|
-
return file.size > this.maxFileSize;
|
|
6926
6680
|
};
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
var extension = file.name
|
|
6931
|
-
.split(".")
|
|
6932
|
-
.pop()
|
|
6933
|
-
.toLowerCase();
|
|
6934
|
-
return !this.supportedExtensions.includes(extension);
|
|
6681
|
+
LoadingStateComponent.prototype.ngOnDestroy = function () {
|
|
6682
|
+
if (this.blockTimeoutId) {
|
|
6683
|
+
clearTimeout(this.blockTimeoutId);
|
|
6935
6684
|
}
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
FileUploadComponent.prototype._clearFileInput = function () {
|
|
6939
|
-
this.inputUpload.nativeElement.value = null;
|
|
6940
|
-
};
|
|
6941
|
-
FileUploadComponent.prototype._getUploadDate = function (blobFile) {
|
|
6942
|
-
var _this = this;
|
|
6943
|
-
if (!blobFile) {
|
|
6944
|
-
return;
|
|
6685
|
+
if (this.unblockTimeoutId) {
|
|
6686
|
+
clearTimeout(this.unblockTimeoutId);
|
|
6945
6687
|
}
|
|
6946
|
-
this.fileUploadService
|
|
6947
|
-
.getMetadataCustomField({ objectId: blobFile[0].objectId })
|
|
6948
|
-
.then(function (metadata) { return _this._setModifiedDate(metadata); });
|
|
6949
|
-
};
|
|
6950
|
-
FileUploadComponent.prototype._setModifiedDate = function (metadata) {
|
|
6951
|
-
var hour = moment$4(metadata.modified).format("HH");
|
|
6952
|
-
var minutes = moment$4(metadata.modified).format("mm");
|
|
6953
|
-
var day = moment$4(metadata.modified).format("DD");
|
|
6954
|
-
var month = moment$4(metadata.modified).format("MM");
|
|
6955
|
-
var fullYear = moment$4(metadata.modified).format("YYYY");
|
|
6956
|
-
this.modifiedDate = this.translate.instant("platform.angular_components.date_modified_custom_blob", {
|
|
6957
|
-
hour: hour,
|
|
6958
|
-
minutes: minutes,
|
|
6959
|
-
day: day,
|
|
6960
|
-
month: month,
|
|
6961
|
-
fullYear: fullYear,
|
|
6962
|
-
});
|
|
6963
6688
|
};
|
|
6964
|
-
var
|
|
6965
|
-
|
|
6966
|
-
FileUploadComponent.ctorParameters = function () { return [
|
|
6967
|
-
{ type: DomSanitizer },
|
|
6968
|
-
{ type: FileUploadService },
|
|
6969
|
-
{ type: TranslateService }
|
|
6970
|
-
]; };
|
|
6971
|
-
__decorate([
|
|
6972
|
-
ViewChild("inputUpload", { static: false })
|
|
6973
|
-
], FileUploadComponent.prototype, "inputUpload", void 0);
|
|
6974
|
-
__decorate([
|
|
6975
|
-
ViewChild("anchor", { static: false })
|
|
6976
|
-
], FileUploadComponent.prototype, "anchor", void 0);
|
|
6977
|
-
__decorate([
|
|
6978
|
-
Input()
|
|
6979
|
-
], FileUploadComponent.prototype, "id", void 0);
|
|
6980
|
-
__decorate([
|
|
6981
|
-
Input()
|
|
6982
|
-
], FileUploadComponent.prototype, "chooseLabel", void 0);
|
|
6983
|
-
__decorate([
|
|
6984
|
-
Input()
|
|
6985
|
-
], FileUploadComponent.prototype, "removeLabel", void 0);
|
|
6986
|
-
__decorate([
|
|
6987
|
-
Input()
|
|
6988
|
-
], FileUploadComponent.prototype, "cancelLabel", void 0);
|
|
6989
|
-
__decorate([
|
|
6990
|
-
Input()
|
|
6991
|
-
], FileUploadComponent.prototype, "successTooltip", void 0);
|
|
6992
|
-
__decorate([
|
|
6993
|
-
Input()
|
|
6994
|
-
], FileUploadComponent.prototype, "multiple", void 0);
|
|
6995
|
-
__decorate([
|
|
6996
|
-
Input()
|
|
6997
|
-
], FileUploadComponent.prototype, "accept", void 0);
|
|
6998
|
-
__decorate([
|
|
6999
|
-
Input()
|
|
7000
|
-
], FileUploadComponent.prototype, "supportedExtensions", void 0);
|
|
7001
|
-
__decorate([
|
|
7002
|
-
Input()
|
|
7003
|
-
], FileUploadComponent.prototype, "ariaLabelFileName", void 0);
|
|
7004
|
-
__decorate([
|
|
7005
|
-
Input()
|
|
7006
|
-
], FileUploadComponent.prototype, "maxFileSize", void 0);
|
|
7007
|
-
__decorate([
|
|
7008
|
-
Input()
|
|
7009
|
-
], FileUploadComponent.prototype, "maxCombinedFileSize", void 0);
|
|
7010
|
-
__decorate([
|
|
7011
|
-
Input()
|
|
7012
|
-
], FileUploadComponent.prototype, "fileLimit", void 0);
|
|
7013
|
-
__decorate([
|
|
7014
|
-
Input()
|
|
7015
|
-
], FileUploadComponent.prototype, "ariaLabelProgress", void 0);
|
|
7016
|
-
__decorate([
|
|
7017
|
-
Input()
|
|
7018
|
-
], FileUploadComponent.prototype, "ariaLabelSuccess", void 0);
|
|
7019
|
-
__decorate([
|
|
7020
|
-
Input()
|
|
7021
|
-
], FileUploadComponent.prototype, "ariaLabelError", void 0);
|
|
7022
|
-
__decorate([
|
|
7023
|
-
Input()
|
|
7024
|
-
], FileUploadComponent.prototype, "ariaLabelRemove", void 0);
|
|
7025
|
-
__decorate([
|
|
7026
|
-
Input()
|
|
7027
|
-
], FileUploadComponent.prototype, "formGroup", void 0);
|
|
6689
|
+
var LoadingStateComponent_1;
|
|
6690
|
+
LoadingStateComponent.nextId = 0;
|
|
7028
6691
|
__decorate([
|
|
7029
6692
|
Input()
|
|
7030
|
-
],
|
|
6693
|
+
], LoadingStateComponent.prototype, "indicator", void 0);
|
|
7031
6694
|
__decorate([
|
|
7032
6695
|
Input()
|
|
7033
|
-
],
|
|
6696
|
+
], LoadingStateComponent.prototype, "id", void 0);
|
|
7034
6697
|
__decorate([
|
|
7035
6698
|
Input()
|
|
7036
|
-
],
|
|
6699
|
+
], LoadingStateComponent.prototype, "blockWindow", void 0);
|
|
7037
6700
|
__decorate([
|
|
7038
6701
|
Input()
|
|
7039
|
-
],
|
|
7040
|
-
__decorate([
|
|
7041
|
-
Output()
|
|
7042
|
-
], FileUploadComponent.prototype, "uploadHandler", void 0);
|
|
7043
|
-
__decorate([
|
|
7044
|
-
Output()
|
|
7045
|
-
], FileUploadComponent.prototype, "removeFile", void 0);
|
|
7046
|
-
__decorate([
|
|
7047
|
-
Output()
|
|
7048
|
-
], FileUploadComponent.prototype, "cancelUpload", void 0);
|
|
7049
|
-
__decorate([
|
|
7050
|
-
Output()
|
|
7051
|
-
], FileUploadComponent.prototype, "downloadFile", void 0);
|
|
7052
|
-
__decorate([
|
|
7053
|
-
Output()
|
|
7054
|
-
], FileUploadComponent.prototype, "validateErrors", void 0);
|
|
7055
|
-
FileUploadComponent = FileUploadComponent_1 = __decorate([
|
|
7056
|
-
Component({
|
|
7057
|
-
selector: "s-file-upload",
|
|
7058
|
-
template: "<div [id]=\"id\" class=\"fileupload\">\n <div class=\"fileupload-choose\">\n <input\n #inputUpload\n type=\"file\"\n name=\"file\"\n [accept]=\"accept\"\n [multiple]=\"multiple\"\n (change)=\"onFileSelect($event.dataTransfer ? $event.dataTransfer.files : $event.target.files)\"\n />\n <s-button\n *ngIf=\"permissions.includes(ADD_PERMISSION)\"\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 >\n </s-button>\n </div>\n <ul\n *ngIf=\"files.length\"\n class=\"file-list\"\n role=\"grid\">\n <li *ngFor=\"let file of files; let i = index\" class=\"file-list-item\">\n <s-file-item\n [id]=\"'file-' + i\"\n [file]=\"file\"\n [canReadFiles]=\"permissions.includes(READ_PERMISSION) && file.savedFile || file.progress === 100\"\n [canRemoveFiles]=\"permissions.includes(REMOVE_PERMISSION) && !(disabled || !!formGroup?.disabled)\"\n [cancelLabel]=\"cancelLabel\"\n [removeLabel]=\"removeLabel\"\n [ariaLabelProgress]=\"ariaLabelProgress\"\n [successTooltip]=\"successTooltip\"\n [ariaLabelSuccess]=\"ariaLabelSuccess\"\n (cancelUpload)=\"onCancelUpload($event)\"\n (removeFile)=\"onRemoveFile($event)\"\n >\n </s-file-item>\n </li>\n </ul>\n</div>\n",
|
|
7059
|
-
styles: [".fileupload .fileupload-choose{position:relative;margin:15px 0;width:-webkit-max-content;width:max-content}.fileupload input[type=file]{display:none}.fileupload .file-list{border:1px solid #c1c1cc;border-radius:4px;padding:0}.fileupload .file-list .file-list-item{list-style-type:none}.fileupload .file-list .file-list-item:not(:first-child){border-top:1px solid #ccc}"]
|
|
7060
|
-
})
|
|
7061
|
-
], FileUploadComponent);
|
|
7062
|
-
return FileUploadComponent;
|
|
7063
|
-
}());
|
|
7064
|
-
|
|
7065
|
-
var FileUploadModule = /** @class */ (function () {
|
|
7066
|
-
function FileUploadModule() {
|
|
7067
|
-
}
|
|
7068
|
-
FileUploadModule = __decorate([
|
|
7069
|
-
NgModule({
|
|
7070
|
-
imports: [
|
|
7071
|
-
CommonModule,
|
|
7072
|
-
HttpClientModule,
|
|
7073
|
-
ButtonModule,
|
|
7074
|
-
TooltipModule,
|
|
7075
|
-
ProgressBarModule,
|
|
7076
|
-
TranslateModule,
|
|
7077
|
-
],
|
|
7078
|
-
declarations: [
|
|
7079
|
-
FileUploadComponent,
|
|
7080
|
-
FileItemComponent,
|
|
7081
|
-
],
|
|
7082
|
-
providers: [
|
|
7083
|
-
FileUploadService,
|
|
7084
|
-
LocaleService,
|
|
7085
|
-
],
|
|
7086
|
-
exports: [FileUploadComponent],
|
|
7087
|
-
})
|
|
7088
|
-
], FileUploadModule);
|
|
7089
|
-
return FileUploadModule;
|
|
7090
|
-
}());
|
|
7091
|
-
|
|
7092
|
-
var InfoSignComponent = /** @class */ (function () {
|
|
7093
|
-
function InfoSignComponent() {
|
|
7094
|
-
}
|
|
7095
|
-
InfoSignComponent = __decorate([
|
|
6702
|
+
], LoadingStateComponent.prototype, "loading", null);
|
|
6703
|
+
LoadingStateComponent = LoadingStateComponent_1 = __decorate([
|
|
7096
6704
|
Component({
|
|
7097
|
-
selector: "s-
|
|
7098
|
-
template: "<
|
|
7099
|
-
styles: [".
|
|
6705
|
+
selector: "s-loading-state",
|
|
6706
|
+
template: "<div\n [id]=\"id\"\n class=\"s-loading-state-container\"\n [ngClass]=\"{\n 'loading': loading,\n 'blocking': blocking,\n 'fullscreen': blockWindow\n }\">\n <div\n [id]=\"id + '-loader'\"\n class=\"loader\">\n <div\n [id]=\"id + '-spinner'\"\n class=\"spinner\">\n <ng-container [ngSwitch]=\"indicator\">\n <s-logo-indicator *ngSwitchCase=\"'logo'\"></s-logo-indicator>\n <s-dots-indicator *ngSwitchCase=\"'dots'\"></s-dots-indicator>\n </ng-container>\n </div>\n <div\n [id]=\"id + '-overlay'\"\n class=\"overlay\">\n </div>\n </div>\n <div\n [id]=\"id + '-contents'\"\n class=\"contents\">\n <ng-container *ngTemplateOutlet=\"contents || originalContent\"></ng-container>\n <ng-template #originalContent>\n <ng-content></ng-content>\n </ng-template>\n </div>\n</div>",
|
|
6707
|
+
styles: [".s-loading-state-container{position:relative}.s-loading-state-container .loader{opacity:0;position:absolute;transition:opacity .2s ease-out,display .2s ease-out;visibility:hidden;inset:1px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.s-loading-state-container .loader .overlay{background-color:#fff;height:100%;opacity:.8;transition:opacity .2s ease-out,display .2s ease-out;width:100%}.s-loading-state-container .loader .spinner{display:-ms-flexbox;display:flex;position:absolute;z-index:2}.s-loading-state-container.blocking>.loader,.s-loading-state-container.loading>.loader{visibility:visible}.s-loading-state-container.blocking>.loader,.s-loading-state-container.blocking>.loader>.overlay,.s-loading-state-container.loading>.loader,.s-loading-state-container.loading>.loader>.overlay{cursor:wait;z-index:1}.s-loading-state-container.blocking>.contents,.s-loading-state-container.loading>.contents{z-index:0!important}.s-loading-state-container.blocking.loading>.loader{opacity:1}.s-loading-state-container.fullscreen>.loader{left:0;position:fixed;top:0;z-index:1005}::ng-deep .s-loading-state-container.loading.blocking s-loading-state .s-loading-state-container>.loader{opacity:0;visibility:hidden}::ng-deep .s-loading-state-container.loading.blocking s-loading-state .s-loading-state-container>.contents{z-index:0!important}"]
|
|
7100
6708
|
})
|
|
7101
|
-
],
|
|
7102
|
-
return
|
|
6709
|
+
], LoadingStateComponent);
|
|
6710
|
+
return LoadingStateComponent;
|
|
7103
6711
|
}());
|
|
7104
6712
|
|
|
7105
|
-
var
|
|
7106
|
-
function
|
|
7107
|
-
this.
|
|
7108
|
-
this.
|
|
6713
|
+
var LoadingStateDirective = /** @class */ (function () {
|
|
6714
|
+
function LoadingStateDirective(target, template, componentFactoryResolver, cdr) {
|
|
6715
|
+
this.target = target;
|
|
6716
|
+
this.template = template;
|
|
7109
6717
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
7110
|
-
this.
|
|
6718
|
+
this.cdr = cdr;
|
|
6719
|
+
this._loading = false;
|
|
6720
|
+
this.indicator = LoadingStateIndicators.Dots;
|
|
7111
6721
|
}
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
this.
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
6722
|
+
Object.defineProperty(LoadingStateDirective.prototype, "sLoadingState", {
|
|
6723
|
+
set: function (value) {
|
|
6724
|
+
if (typeof value === "boolean") {
|
|
6725
|
+
this._loading = value;
|
|
6726
|
+
this.indicator = LoadingStateIndicators.Dots;
|
|
6727
|
+
}
|
|
6728
|
+
else if (typeof value === "object") {
|
|
6729
|
+
this._loading = value.loading;
|
|
6730
|
+
this.indicator = value.indicator || LoadingStateIndicators.Dots;
|
|
6731
|
+
}
|
|
6732
|
+
if (this.loaderComponent) {
|
|
6733
|
+
this.loaderComponent.instance.loading = this._loading;
|
|
6734
|
+
this.loaderComponent.instance.indicator = this.indicator;
|
|
6735
|
+
}
|
|
6736
|
+
},
|
|
6737
|
+
enumerable: true,
|
|
6738
|
+
configurable: true
|
|
6739
|
+
});
|
|
6740
|
+
LoadingStateDirective.prototype.ngAfterViewInit = function () {
|
|
6741
|
+
this.createComponent();
|
|
7128
6742
|
};
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
6743
|
+
LoadingStateDirective.prototype.createComponent = function () {
|
|
6744
|
+
var factory = this.componentFactoryResolver.resolveComponentFactory(LoadingStateComponent);
|
|
6745
|
+
this.loaderComponent = this.target.createComponent(factory);
|
|
6746
|
+
this.loaderComponent.instance.contents = this.template;
|
|
6747
|
+
this.loaderComponent.instance.loading = this._loading;
|
|
6748
|
+
this.loaderComponent.instance.indicator = this.indicator;
|
|
6749
|
+
this.cdr.detectChanges();
|
|
6750
|
+
};
|
|
6751
|
+
LoadingStateDirective.prototype.ngOnDestroy = function () {
|
|
6752
|
+
if (this.loaderComponent) {
|
|
6753
|
+
this.loaderComponent.destroy();
|
|
7132
6754
|
}
|
|
7133
6755
|
};
|
|
7134
|
-
|
|
7135
|
-
{ type: TemplateRef },
|
|
6756
|
+
LoadingStateDirective.ctorParameters = function () { return [
|
|
7136
6757
|
{ type: ViewContainerRef },
|
|
7137
|
-
{ type:
|
|
6758
|
+
{ type: TemplateRef },
|
|
6759
|
+
{ type: ComponentFactoryResolver },
|
|
6760
|
+
{ type: ChangeDetectorRef }
|
|
7138
6761
|
]; };
|
|
7139
6762
|
__decorate([
|
|
7140
|
-
Input()
|
|
7141
|
-
],
|
|
7142
|
-
__decorate([
|
|
7143
|
-
Input('sInfoSignDisplayTime')
|
|
7144
|
-
], InfoSignDirective.prototype, "displayTime", void 0);
|
|
7145
|
-
InfoSignDirective = __decorate([
|
|
6763
|
+
Input("sLoadingState")
|
|
6764
|
+
], LoadingStateDirective.prototype, "sLoadingState", null);
|
|
6765
|
+
LoadingStateDirective = __decorate([
|
|
7146
6766
|
Directive({
|
|
7147
|
-
selector: "[
|
|
6767
|
+
selector: "[sLoadingState]",
|
|
7148
6768
|
})
|
|
7149
|
-
],
|
|
7150
|
-
return
|
|
6769
|
+
], LoadingStateDirective);
|
|
6770
|
+
return LoadingStateDirective;
|
|
7151
6771
|
}());
|
|
7152
6772
|
|
|
7153
|
-
var
|
|
7154
|
-
function
|
|
6773
|
+
var LoadingStateModule = /** @class */ (function () {
|
|
6774
|
+
function LoadingStateModule() {
|
|
7155
6775
|
}
|
|
7156
|
-
|
|
6776
|
+
LoadingStateModule = __decorate([
|
|
7157
6777
|
NgModule({
|
|
7158
6778
|
imports: [
|
|
7159
|
-
TooltipModule,
|
|
7160
6779
|
CommonModule,
|
|
6780
|
+
SVGFactoryModule,
|
|
7161
6781
|
],
|
|
7162
6782
|
declarations: [
|
|
7163
|
-
|
|
7164
|
-
|
|
6783
|
+
LoadingStateComponent,
|
|
6784
|
+
LoadingStateDirective,
|
|
6785
|
+
DotsIndicatorComponent,
|
|
6786
|
+
LoadingIndicatorComponent,
|
|
7165
6787
|
],
|
|
7166
|
-
exports: [
|
|
7167
|
-
|
|
6788
|
+
exports: [
|
|
6789
|
+
LoadingStateComponent,
|
|
6790
|
+
LoadingStateDirective,
|
|
6791
|
+
],
|
|
6792
|
+
entryComponents: [LoadingStateComponent],
|
|
7168
6793
|
})
|
|
7169
|
-
],
|
|
7170
|
-
return
|
|
6794
|
+
], LoadingStateModule);
|
|
6795
|
+
return LoadingStateModule;
|
|
7171
6796
|
}());
|
|
7172
6797
|
|
|
7173
|
-
var
|
|
7174
|
-
function
|
|
6798
|
+
var LocalizedBignumberPipe = /** @class */ (function () {
|
|
6799
|
+
function LocalizedBignumberPipe(localeService) {
|
|
6800
|
+
this.localeService = localeService;
|
|
7175
6801
|
}
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
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",
|
|
7179
6825
|
})
|
|
7180
|
-
],
|
|
7181
|
-
return
|
|
6826
|
+
], LocalizedBignumberPipe);
|
|
6827
|
+
return LocalizedBignumberPipe;
|
|
7182
6828
|
}());
|
|
7183
6829
|
|
|
7184
|
-
var
|
|
7185
|
-
|
|
6830
|
+
var LocalizedBignumberImpurePipe = /** @class */ (function (_super) {
|
|
6831
|
+
__extends(LocalizedBignumberImpurePipe, _super);
|
|
6832
|
+
function LocalizedBignumberImpurePipe() {
|
|
6833
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
7186
6834
|
}
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
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,
|
|
7190
6842
|
})
|
|
7191
|
-
],
|
|
7192
|
-
return
|
|
7193
|
-
}());
|
|
7194
|
-
|
|
7195
|
-
var SVGFactoryIcons;
|
|
7196
|
-
(function (SVGFactoryIcons) {
|
|
7197
|
-
SVGFactoryIcons["IAssist"] = "iassist";
|
|
7198
|
-
SVGFactoryIcons["Senior"] = "senior";
|
|
7199
|
-
})(SVGFactoryIcons || (SVGFactoryIcons = {}));
|
|
6843
|
+
], LocalizedBignumberImpurePipe);
|
|
6844
|
+
return LocalizedBignumberImpurePipe;
|
|
6845
|
+
}(LocalizedBignumberPipe));
|
|
7200
6846
|
|
|
7201
|
-
var
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
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;
|
|
7207
6854
|
}
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
this.viewContainerRef.clear();
|
|
7221
|
-
this.viewContainerRef.createComponent(factory);
|
|
7222
|
-
this.cdr.detectChanges();
|
|
7223
|
-
};
|
|
7224
|
-
SVGFactoryDirective.prototype._getIconClass = function (icon) {
|
|
7225
|
-
switch (icon) {
|
|
7226
|
-
case SVGFactoryIcons.IAssist:
|
|
7227
|
-
return IAssistIconComponent;
|
|
7228
|
-
case SVGFactoryIcons.Senior:
|
|
7229
|
-
default:
|
|
7230
|
-
return SeniorIconComponent;
|
|
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();
|
|
7231
6867
|
}
|
|
6868
|
+
return value !== undefined && value !== null ? this.applyMask(value, options) : of(value);
|
|
7232
6869
|
};
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
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 }
|
|
7237
6889
|
]; };
|
|
7238
|
-
__decorate([
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
SVGFactoryDirective = __decorate([
|
|
7242
|
-
Directive({
|
|
7243
|
-
selector: "[sSVGFactory]",
|
|
6890
|
+
LocalizedCurrencyPipe = __decorate([
|
|
6891
|
+
Pipe({
|
|
6892
|
+
name: "localizedCurrency",
|
|
7244
6893
|
})
|
|
7245
|
-
],
|
|
7246
|
-
return
|
|
6894
|
+
], LocalizedCurrencyPipe);
|
|
6895
|
+
return LocalizedCurrencyPipe;
|
|
7247
6896
|
}());
|
|
7248
6897
|
|
|
7249
|
-
|
|
7250
|
-
|
|
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;
|
|
7251
6905
|
}
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
exports: [SVGFactoryDirective],
|
|
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,
|
|
7261
6914
|
})
|
|
7262
|
-
],
|
|
7263
|
-
return
|
|
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;
|
|
7264
6937
|
}());
|
|
7265
6938
|
|
|
7266
|
-
var
|
|
7267
|
-
|
|
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;
|
|
7268
6959
|
}
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
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;
|
|
7277
6977
|
}());
|
|
7278
6978
|
|
|
7279
|
-
var
|
|
7280
|
-
|
|
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;
|
|
7281
6983
|
}
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
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",
|
|
7287
6994
|
})
|
|
7288
|
-
],
|
|
7289
|
-
return
|
|
6995
|
+
], LocalizedTimePipe);
|
|
6996
|
+
return LocalizedTimePipe;
|
|
7290
6997
|
}());
|
|
7291
6998
|
|
|
7292
|
-
var
|
|
7293
|
-
(
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
}
|
|
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));
|
|
7297
7012
|
|
|
7298
|
-
var
|
|
7299
|
-
function
|
|
7300
|
-
this.
|
|
7301
|
-
this.id = "s-loading-state-" + LoadingStateComponent_1.nextId++;
|
|
7302
|
-
this.BLOCK_TIMEOUT_VALUE = 300;
|
|
7303
|
-
this.UNBLOCK_TIMEOUT_VALUE = 200;
|
|
7013
|
+
var NumericService = /** @class */ (function () {
|
|
7014
|
+
function NumericService(localeService) {
|
|
7015
|
+
this.localeService = localeService;
|
|
7304
7016
|
}
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
if (!this.blockTimeoutId) {
|
|
7324
|
-
this.blockTimeoutId = setTimeout(function () {
|
|
7325
|
-
_this.blocking = true;
|
|
7326
|
-
_this.blockTimeoutId = undefined;
|
|
7327
|
-
}, this.BLOCK_TIMEOUT_VALUE);
|
|
7328
|
-
}
|
|
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());
|
|
7329
7035
|
};
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
if (
|
|
7333
|
-
|
|
7334
|
-
this.blockTimeoutId = undefined;
|
|
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";
|
|
7335
7040
|
}
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
}, this.UNBLOCK_TIMEOUT_VALUE);
|
|
7041
|
+
var baseType = typeof value;
|
|
7042
|
+
// Primitive types
|
|
7043
|
+
if (baseType !== "object" && baseType !== "function") {
|
|
7044
|
+
return baseType;
|
|
7341
7045
|
}
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
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;
|
|
7346
7051
|
}
|
|
7347
|
-
|
|
7348
|
-
|
|
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;
|
|
7349
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;
|
|
7350
7065
|
};
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
], LoadingStateComponent.prototype, "id", void 0);
|
|
7359
|
-
__decorate([
|
|
7360
|
-
Input()
|
|
7361
|
-
], LoadingStateComponent.prototype, "blockWindow", void 0);
|
|
7362
|
-
__decorate([
|
|
7363
|
-
Input()
|
|
7364
|
-
], LoadingStateComponent.prototype, "loading", null);
|
|
7365
|
-
LoadingStateComponent = LoadingStateComponent_1 = __decorate([
|
|
7366
|
-
Component({
|
|
7367
|
-
selector: "s-loading-state",
|
|
7368
|
-
template: "<div\n [id]=\"id\"\n class=\"s-loading-state-container\"\n [ngClass]=\"{\n 'loading': loading,\n 'blocking': blocking,\n 'fullscreen': blockWindow\n }\">\n <div\n [id]=\"id + '-loader'\"\n class=\"loader\">\n <div\n [id]=\"id + '-spinner'\"\n class=\"spinner\">\n <ng-container [ngSwitch]=\"indicator\">\n <s-logo-indicator *ngSwitchCase=\"'logo'\"></s-logo-indicator>\n <s-dots-indicator *ngSwitchCase=\"'dots'\"></s-dots-indicator>\n </ng-container>\n </div>\n <div\n [id]=\"id + '-overlay'\"\n class=\"overlay\">\n </div>\n </div>\n <div\n [id]=\"id + '-contents'\"\n class=\"contents\">\n <ng-container *ngTemplateOutlet=\"contents || originalContent\"></ng-container>\n <ng-template #originalContent>\n <ng-content></ng-content>\n </ng-template>\n </div>\n</div>",
|
|
7369
|
-
styles: [".s-loading-state-container{position:relative}.s-loading-state-container .loader{opacity:0;position:absolute;transition:opacity .2s ease-out,display .2s ease-out;visibility:hidden;inset:1px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.s-loading-state-container .loader .overlay{background-color:#fff;height:100%;opacity:.8;transition:opacity .2s ease-out,display .2s ease-out;width:100%}.s-loading-state-container .loader .spinner{display:-ms-flexbox;display:flex;position:absolute;z-index:2}.s-loading-state-container.blocking>.loader,.s-loading-state-container.loading>.loader{visibility:visible}.s-loading-state-container.blocking>.loader,.s-loading-state-container.blocking>.loader>.overlay,.s-loading-state-container.loading>.loader,.s-loading-state-container.loading>.loader>.overlay{cursor:wait;z-index:1}.s-loading-state-container.blocking>.contents,.s-loading-state-container.loading>.contents{z-index:0!important}.s-loading-state-container.blocking.loading>.loader{opacity:1}.s-loading-state-container.fullscreen>.loader{left:0;position:fixed;top:0;z-index:1005}::ng-deep .s-loading-state-container.loading.blocking s-loading-state .s-loading-state-container>.loader{opacity:0;visibility:hidden}::ng-deep .s-loading-state-container.loading.blocking s-loading-state .s-loading-state-container>.contents{z-index:0!important}"]
|
|
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",
|
|
7370
7073
|
})
|
|
7371
|
-
],
|
|
7372
|
-
return
|
|
7074
|
+
], NumericService);
|
|
7075
|
+
return NumericService;
|
|
7373
7076
|
}());
|
|
7374
7077
|
|
|
7375
|
-
var
|
|
7376
|
-
function
|
|
7377
|
-
this.
|
|
7378
|
-
this.
|
|
7379
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
7380
|
-
this.cdr = cdr;
|
|
7381
|
-
this._loading = false;
|
|
7382
|
-
this.indicator = LoadingStateIndicators.Dots;
|
|
7078
|
+
var NumericPipe = /** @class */ (function () {
|
|
7079
|
+
function NumericPipe(numericService, localeService) {
|
|
7080
|
+
this.numericService = numericService;
|
|
7081
|
+
this.localeService = localeService;
|
|
7383
7082
|
}
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
}
|
|
7398
|
-
},
|
|
7399
|
-
enumerable: true,
|
|
7400
|
-
configurable: true
|
|
7401
|
-
});
|
|
7402
|
-
LoadingStateDirective.prototype.ngAfterViewInit = function () {
|
|
7403
|
-
this.createComponent();
|
|
7404
|
-
};
|
|
7405
|
-
LoadingStateDirective.prototype.createComponent = function () {
|
|
7406
|
-
var factory = this.componentFactoryResolver.resolveComponentFactory(LoadingStateComponent);
|
|
7407
|
-
this.loaderComponent = this.target.createComponent(factory);
|
|
7408
|
-
this.loaderComponent.instance.contents = this.template;
|
|
7409
|
-
this.loaderComponent.instance.loading = this._loading;
|
|
7410
|
-
this.loaderComponent.instance.indicator = this.indicator;
|
|
7411
|
-
this.cdr.detectChanges();
|
|
7412
|
-
};
|
|
7413
|
-
LoadingStateDirective.prototype.ngOnDestroy = function () {
|
|
7414
|
-
if (this.loaderComponent) {
|
|
7415
|
-
this.loaderComponent.destroy();
|
|
7416
|
-
}
|
|
7417
|
-
};
|
|
7418
|
-
LoadingStateDirective.ctorParameters = function () { return [
|
|
7419
|
-
{ type: ViewContainerRef },
|
|
7420
|
-
{ type: TemplateRef },
|
|
7421
|
-
{ type: ComponentFactoryResolver },
|
|
7422
|
-
{ type: ChangeDetectorRef }
|
|
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 }
|
|
7423
7096
|
]; };
|
|
7424
|
-
__decorate([
|
|
7425
|
-
|
|
7426
|
-
],
|
|
7427
|
-
|
|
7428
|
-
Directive({
|
|
7429
|
-
selector: "[sLoadingState]",
|
|
7430
|
-
})
|
|
7431
|
-
], LoadingStateDirective);
|
|
7432
|
-
return LoadingStateDirective;
|
|
7097
|
+
NumericPipe = __decorate([
|
|
7098
|
+
Pipe({ name: "numeric" })
|
|
7099
|
+
], NumericPipe);
|
|
7100
|
+
return NumericPipe;
|
|
7433
7101
|
}());
|
|
7434
7102
|
|
|
7435
|
-
var
|
|
7436
|
-
function
|
|
7103
|
+
var LocaleModule = /** @class */ (function () {
|
|
7104
|
+
function LocaleModule() {
|
|
7437
7105
|
}
|
|
7438
|
-
|
|
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([
|
|
7439
7132
|
NgModule({
|
|
7440
|
-
imports: [
|
|
7441
|
-
|
|
7442
|
-
|
|
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
|
|
7443
7145
|
],
|
|
7444
7146
|
declarations: [
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7147
|
+
LocalizedCurrencyPipe,
|
|
7148
|
+
LocalizedDatePipe,
|
|
7149
|
+
LocalizedTimePipe,
|
|
7150
|
+
LocalizedNumberPipe,
|
|
7151
|
+
LocalizedCurrencyImpurePipe,
|
|
7152
|
+
LocalizedDateImpurePipe,
|
|
7153
|
+
LocalizedTimeImpurePipe,
|
|
7154
|
+
LocalizedBignumberPipe,
|
|
7155
|
+
LocalizedBignumberImpurePipe,
|
|
7156
|
+
NumericPipe
|
|
7453
7157
|
],
|
|
7454
|
-
entryComponents: [LoadingStateComponent],
|
|
7455
7158
|
})
|
|
7456
|
-
],
|
|
7457
|
-
return
|
|
7159
|
+
], LocaleModule);
|
|
7160
|
+
return LocaleModule;
|
|
7458
7161
|
}());
|
|
7459
7162
|
|
|
7460
7163
|
var LocalizedNumberInputDirective = /** @class */ (function () {
|
|
@@ -8352,7 +8055,7 @@ var EnumBadgeColors;
|
|
|
8352
8055
|
EnumBadgeColors["GRAY"] = "gray";
|
|
8353
8056
|
})(EnumBadgeColors || (EnumBadgeColors = {}));
|
|
8354
8057
|
|
|
8355
|
-
var moment$
|
|
8058
|
+
var moment$4 = moment_;
|
|
8356
8059
|
var TableColumnsComponent = /** @class */ (function () {
|
|
8357
8060
|
function TableColumnsComponent(viewContainerRef, translate, hostProjectConfigs) {
|
|
8358
8061
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -8459,7 +8162,7 @@ var TableColumnsComponent = /** @class */ (function () {
|
|
|
8459
8162
|
return applyMask(attributeValue, numberConfigs, _this.isNumber(attributeValue));
|
|
8460
8163
|
case EnumColumnFieldType.DATE:
|
|
8461
8164
|
var dateFormat = _this.getDateFormat(column, locale);
|
|
8462
|
-
return moment$
|
|
8165
|
+
return moment$4(attributeValue).format(dateFormat);
|
|
8463
8166
|
case EnumColumnFieldType.BOOLEAN:
|
|
8464
8167
|
var value = attributeValue ? "yes" : "no";
|
|
8465
8168
|
return _this.translate.instant(prefix + value);
|
|
@@ -10591,7 +10294,7 @@ var CustomFieldType;
|
|
|
10591
10294
|
CustomFieldType["Any"] = "Any";
|
|
10592
10295
|
CustomFieldType["Enum"] = "Enum";
|
|
10593
10296
|
})(CustomFieldType || (CustomFieldType = {}));
|
|
10594
|
-
var moment$
|
|
10297
|
+
var moment$5 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
|
|
10595
10298
|
var CustomFieldsComponent = /** @class */ (function () {
|
|
10596
10299
|
function CustomFieldsComponent(customFieldsService, localeService, sanitizer, translateService, controlContainer) {
|
|
10597
10300
|
this.customFieldsService = customFieldsService;
|
|
@@ -10802,16 +10505,16 @@ var CustomFieldsComponent = /** @class */ (function () {
|
|
|
10802
10505
|
return;
|
|
10803
10506
|
switch (type) {
|
|
10804
10507
|
case FieldType.Date:
|
|
10805
|
-
parsedValues[name] = moment$
|
|
10508
|
+
parsedValues[name] = moment$5(value).toDate();
|
|
10806
10509
|
break;
|
|
10807
10510
|
case FieldType.DateTime:
|
|
10808
|
-
parsedValues[name] = moment$
|
|
10511
|
+
parsedValues[name] = moment$5(value).toDate();
|
|
10809
10512
|
break;
|
|
10810
10513
|
case FieldType.LocalDateTime:
|
|
10811
|
-
parsedValues[name] = moment$
|
|
10514
|
+
parsedValues[name] = moment$5(value, "YYYY-MM-DD[T]HH:mm:ss.SSS").toDate();
|
|
10812
10515
|
break;
|
|
10813
10516
|
case FieldType.Time:
|
|
10814
|
-
parsedValues[name] = moment$
|
|
10517
|
+
parsedValues[name] = moment$5(value, "HH:mm:ss").toDate();
|
|
10815
10518
|
break;
|
|
10816
10519
|
}
|
|
10817
10520
|
});
|
|
@@ -10844,16 +10547,16 @@ var CustomFieldsComponent = /** @class */ (function () {
|
|
|
10844
10547
|
value = new BigNumber(value).toFixed(scale).toString();
|
|
10845
10548
|
break;
|
|
10846
10549
|
case FieldType.Date:
|
|
10847
|
-
value = moment$
|
|
10550
|
+
value = moment$5(value).format("YYYY-MM-DD");
|
|
10848
10551
|
break;
|
|
10849
10552
|
case FieldType.DateTime:
|
|
10850
|
-
value = moment$
|
|
10553
|
+
value = moment$5(value).format();
|
|
10851
10554
|
break;
|
|
10852
10555
|
case FieldType.LocalDateTime:
|
|
10853
|
-
value = moment$
|
|
10556
|
+
value = moment$5(value).format("YYYY-MM-DD[T]HH:mm:ss.SSS");
|
|
10854
10557
|
break;
|
|
10855
10558
|
case FieldType.Time:
|
|
10856
|
-
value = moment$
|
|
10559
|
+
value = moment$5(value).format("HH:mm:ss");
|
|
10857
10560
|
break;
|
|
10858
10561
|
}
|
|
10859
10562
|
}
|
|
@@ -11266,7 +10969,7 @@ var EditableOverlayModule = /** @class */ (function () {
|
|
|
11266
10969
|
return EditableOverlayModule;
|
|
11267
10970
|
}());
|
|
11268
10971
|
|
|
11269
|
-
var moment$
|
|
10972
|
+
var moment$6 = moment_;
|
|
11270
10973
|
var YEAR = "year";
|
|
11271
10974
|
var MONTH = "month";
|
|
11272
10975
|
var DAY = "day";
|
|
@@ -11278,22 +10981,22 @@ var DateUtils = /** @class */ (function () {
|
|
|
11278
10981
|
function DateUtils() {
|
|
11279
10982
|
}
|
|
11280
10983
|
DateUtils.parse = function (date) {
|
|
11281
|
-
return moment$
|
|
10984
|
+
return moment$6(date).toDate();
|
|
11282
10985
|
};
|
|
11283
10986
|
DateUtils.toString = function (date, with_time) {
|
|
11284
10987
|
if (with_time === void 0) { with_time = false; }
|
|
11285
|
-
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");
|
|
11286
10989
|
return result.toString();
|
|
11287
10990
|
};
|
|
11288
10991
|
DateUtils.format = function (date, formatString, lang) {
|
|
11289
10992
|
if (formatString === void 0) { formatString = "YYYY-MM-DD HH:mm:ss.SSS"; }
|
|
11290
10993
|
if (lang === void 0) { lang = "en"; }
|
|
11291
|
-
var monthName = moment$
|
|
10994
|
+
var monthName = moment$6(date)
|
|
11292
10995
|
.locale(lang)
|
|
11293
10996
|
.startOf("month")
|
|
11294
10997
|
.format("MMMM");
|
|
11295
10998
|
var monthNameCapitalized = monthName.charAt(0).toUpperCase() + monthName.slice(1);
|
|
11296
|
-
var dateToFormat = moment$
|
|
10999
|
+
var dateToFormat = moment$6(date).locale(lang);
|
|
11297
11000
|
var format_map = {
|
|
11298
11001
|
YYYY: dateToFormat.format("YYYY"),
|
|
11299
11002
|
MM: dateToFormat.format("MM"),
|
|
@@ -11323,13 +11026,13 @@ var DateUtils = /** @class */ (function () {
|
|
|
11323
11026
|
return str;
|
|
11324
11027
|
};
|
|
11325
11028
|
DateUtils.diff = function (fistDate, secondDate, scale) {
|
|
11326
|
-
var milliseconds = moment$
|
|
11327
|
-
var seconds = moment$
|
|
11328
|
-
var minutes = moment$
|
|
11329
|
-
var hours = moment$
|
|
11330
|
-
var days = moment$
|
|
11331
|
-
var months = moment$
|
|
11332
|
-
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);
|
|
11333
11036
|
if (!scale.endsWith("s")) {
|
|
11334
11037
|
scale += "s";
|
|
11335
11038
|
}
|
|
@@ -11344,14 +11047,14 @@ var DateUtils = /** @class */ (function () {
|
|
|
11344
11047
|
}[scale]);
|
|
11345
11048
|
};
|
|
11346
11049
|
DateUtils.today = function () {
|
|
11347
|
-
var dateStr = moment$
|
|
11050
|
+
var dateStr = moment$6().format("YYY-MM-DD");
|
|
11348
11051
|
return new Date(dateStr);
|
|
11349
11052
|
};
|
|
11350
11053
|
DateUtils.now = function () {
|
|
11351
|
-
return moment$
|
|
11054
|
+
return moment$6().toDate();
|
|
11352
11055
|
};
|
|
11353
11056
|
DateUtils.add = function (date, quantity, scale) {
|
|
11354
|
-
return moment$
|
|
11057
|
+
return moment$6(date).add(quantity, scale).toDate();
|
|
11355
11058
|
};
|
|
11356
11059
|
DateUtils.startOf = function (date, scale) {
|
|
11357
11060
|
var _a;
|
|
@@ -11380,7 +11083,7 @@ var DateUtils = /** @class */ (function () {
|
|
|
11380
11083
|
return new Date(vals[0], vals[1], vals[2], vals[3], vals[4], vals[5], vals[6]);
|
|
11381
11084
|
};
|
|
11382
11085
|
DateUtils.clone = function (date) {
|
|
11383
|
-
return moment$
|
|
11086
|
+
return moment$6(date).toDate();
|
|
11384
11087
|
};
|
|
11385
11088
|
DateUtils.getDateValues = function (date) {
|
|
11386
11089
|
return [
|
|
@@ -11394,7 +11097,7 @@ var DateUtils = /** @class */ (function () {
|
|
|
11394
11097
|
];
|
|
11395
11098
|
};
|
|
11396
11099
|
DateUtils.getDaysInMonth = function (date) {
|
|
11397
|
-
return moment$
|
|
11100
|
+
return moment$6(date, "YYYY-MM").daysInMonth();
|
|
11398
11101
|
};
|
|
11399
11102
|
return DateUtils;
|
|
11400
11103
|
}());
|
|
@@ -15177,6 +14880,173 @@ var ProfilePicturePickerModule = /** @class */ (function () {
|
|
|
15177
14880
|
return ProfilePicturePickerModule;
|
|
15178
14881
|
}());
|
|
15179
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
|
+
|
|
15180
15050
|
var PanelComponent = /** @class */ (function () {
|
|
15181
15051
|
function PanelComponent() {
|
|
15182
15052
|
this.toggleable = true;
|
|
@@ -17728,5 +17598,5 @@ var fallback = {
|
|
|
17728
17598
|
* Generated bundle index. Do not edit.
|
|
17729
17599
|
*/
|
|
17730
17600
|
|
|
17731
|
-
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 };
|
|
17732
17602
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|