@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.
Files changed (32) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +1287 -1420
  2. package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
  3. package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
  4. package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
  5. package/components/file-upload/file-upload.component.d.ts +17 -15
  6. package/components/file-upload/models/index.d.ts +0 -1
  7. package/components/file-upload/models/validate-errors.d.ts +0 -1
  8. package/esm2015/components/file-upload/file-upload.component.js +45 -60
  9. package/esm2015/components/file-upload/file-upload.module.js +6 -16
  10. package/esm2015/components/file-upload/file-upload.service.js +1 -3
  11. package/esm2015/components/file-upload/models/index.js +1 -2
  12. package/esm2015/components/file-upload/models/validate-errors.js +1 -2
  13. package/esm2015/seniorsistemas-angular-components.js +74 -76
  14. package/esm5/components/file-upload/file-upload.component.js +45 -60
  15. package/esm5/components/file-upload/file-upload.module.js +6 -16
  16. package/esm5/components/file-upload/file-upload.service.js +1 -3
  17. package/esm5/components/file-upload/models/index.js +1 -2
  18. package/esm5/components/file-upload/models/validate-errors.js +1 -2
  19. package/esm5/seniorsistemas-angular-components.js +74 -76
  20. package/fesm2015/seniorsistemas-angular-components.js +835 -963
  21. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  22. package/fesm5/seniorsistemas-angular-components.js +1202 -1332
  23. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  24. package/package.json +1 -1
  25. package/seniorsistemas-angular-components.d.ts +73 -75
  26. package/seniorsistemas-angular-components.metadata.json +1 -1
  27. package/components/file-upload/components/file-item/file-item.component.d.ts +0 -26
  28. package/components/file-upload/models/storage-units.d.ts +0 -5
  29. package/esm2015/components/file-upload/components/file-item/file-item.component.js +0 -105
  30. package/esm2015/components/file-upload/models/storage-units.js +0 -6
  31. package/esm5/components/file-upload/components/file-item/file-item.component.js +0 -107
  32. package/esm5/components/file-upload/models/storage-units.js +0 -6
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/forms'), require('@angular/router'), require('@angular/common/http'), require('@seniorsistemas/senior-platform-data'), require('moment'), require('ngx-cookie-service'), require('@seniorsistemas/ng2-currency-mask'), require('primeng/breadcrumb'), require('primeng/tieredmenu'), require('primeng/tooltip'), require('primeng/dom'), require('primeng/calendar'), require('@codemirror/view'), require('@codemirror/state'), require('@codemirror/lint'), require('@codemirror/language'), require('@lezer/generator'), require('@codemirror/highlight'), require('@codemirror/autocomplete'), require('@ngx-translate/core'), require('@codemirror/tooltip'), require('@codemirror/gutter'), require('ngx-mask'), require('angular2-hotkeys'), require('bignumber.js'), require('primeng/autocomplete'), require('primeng/dialog'), require('primeng/table'), require('ng2-currency-mask'), require('primeng/button'), require('primeng/checkbox'), require('primeng/chips'), require('primeng/dropdown'), require('primeng/fieldset'), require('primeng/inputmask'), require('primeng/inputtext'), require('primeng/inputtextarea'), require('primeng/keyfilter'), require('primeng/multiselect'), require('primeng/panel'), require('primeng/radiobutton'), require('primeng/slider'), require('primeng/api'), require('@angular/platform-browser'), require('@angular/cdk/clipboard'), require('cropperjs'), require('@angular/cdk/drag-drop'), require('element-resize-detector'), require('primeng/confirmdialog'), require('@angular/cdk/a11y'), require('primeng/scrollpanel'), require('primeng/sidebar')) :
3
- typeof define === 'function' && define.amd ? define('@seniorsistemas/angular-components', ['exports', '@angular/core', '@angular/animations', 'rxjs', 'rxjs/operators', '@angular/common', '@angular/forms', '@angular/router', '@angular/common/http', '@seniorsistemas/senior-platform-data', 'moment', 'ngx-cookie-service', '@seniorsistemas/ng2-currency-mask', 'primeng/breadcrumb', 'primeng/tieredmenu', 'primeng/tooltip', 'primeng/dom', 'primeng/calendar', '@codemirror/view', '@codemirror/state', '@codemirror/lint', '@codemirror/language', '@lezer/generator', '@codemirror/highlight', '@codemirror/autocomplete', '@ngx-translate/core', '@codemirror/tooltip', '@codemirror/gutter', 'ngx-mask', 'angular2-hotkeys', 'bignumber.js', 'primeng/autocomplete', 'primeng/dialog', 'primeng/table', 'ng2-currency-mask', 'primeng/button', 'primeng/checkbox', 'primeng/chips', 'primeng/dropdown', 'primeng/fieldset', 'primeng/inputmask', 'primeng/inputtext', 'primeng/inputtextarea', 'primeng/keyfilter', 'primeng/multiselect', 'primeng/panel', 'primeng/radiobutton', 'primeng/slider', 'primeng/api', '@angular/platform-browser', '@angular/cdk/clipboard', 'cropperjs', '@angular/cdk/drag-drop', 'element-resize-detector', 'primeng/confirmdialog', '@angular/cdk/a11y', 'primeng/scrollpanel', 'primeng/sidebar'], factory) :
4
- (global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['angular-components'] = {}), global.ng.core, global.ng.animations, global.rxjs, global.rxjs.operators, global.ng.common, global.ng.forms, global.ng.router, global.ng.common.http, global.seniorPlatformData, global.moment_, global.ngxCookieService, global.ng2CurrencyMask, global.breadcrumb, global.tieredmenu, global.tooltip, global.dom, global.calendar, global.view, global.state, global.lint, global.language, global.generator, global.highlight, global.autocomplete$1, global.core$1, global.tooltip$1, global.gutter, global.ngxMask, global.angular2Hotkeys, global.BigNumber, global.autocomplete$2, global.dialog, global.table, global.ng2CurrencyMask$1, global.button, global.checkbox, global.chips, global.dropdown, global.fieldset, global.inputmask, global.inputtext, global.inputtextarea, global.keyfilter, global.multiselect, global.panel, global.radiobutton, global.slider, global.api, global.ng.platformBrowser, global.ng.cdk.clipboard, global.Cropper, global.ng.cdk['drag-drop'], global.elementResizeDetectorMaker_, global.confirmdialog, global.ng.cdk.a11y, global.scrollpanel, global.sidebar));
5
- }(this, (function (exports, core, animations, rxjs, operators, common, forms, router, http, seniorPlatformData, moment_, ngxCookieService, ng2CurrencyMask, breadcrumb, tieredmenu, tooltip, dom, calendar, view, state, lint, language, generator, highlight, autocomplete$1, core$1, tooltip$1, gutter, ngxMask, angular2Hotkeys, BigNumber, autocomplete$2, dialog, table, ng2CurrencyMask$1, button, checkbox, chips, dropdown, fieldset, inputmask, inputtext, inputtextarea, keyfilter, multiselect, panel, radiobutton, slider, api, platformBrowser, clipboard, Cropper, dragDrop, elementResizeDetectorMaker_, confirmdialog, a11y, scrollpanel, sidebar) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/forms'), require('@angular/router'), require('@angular/common/http'), require('@seniorsistemas/senior-platform-data'), require('moment'), require('ngx-cookie-service'), require('@seniorsistemas/ng2-currency-mask'), require('primeng/breadcrumb'), require('primeng/tieredmenu'), require('primeng/tooltip'), require('primeng/dom'), require('primeng/calendar'), require('@codemirror/view'), require('@codemirror/state'), require('@codemirror/lint'), require('@codemirror/language'), require('@lezer/generator'), require('@codemirror/highlight'), require('@codemirror/autocomplete'), require('@ngx-translate/core'), require('@codemirror/tooltip'), require('@codemirror/gutter'), require('ngx-mask'), require('angular2-hotkeys'), require('bignumber.js'), require('primeng/autocomplete'), require('primeng/dialog'), require('primeng/table'), require('ng2-currency-mask'), require('primeng/button'), require('primeng/checkbox'), require('primeng/chips'), require('primeng/dropdown'), require('primeng/fieldset'), require('primeng/inputmask'), require('primeng/inputtext'), require('primeng/inputtextarea'), require('primeng/keyfilter'), require('primeng/multiselect'), require('primeng/panel'), require('primeng/radiobutton'), require('primeng/slider'), require('primeng/api'), require('primeng/progressbar'), require('@angular/platform-browser'), require('@angular/cdk/clipboard'), require('cropperjs'), require('@angular/cdk/drag-drop'), require('element-resize-detector'), require('primeng/confirmdialog'), require('@angular/cdk/a11y'), require('primeng/scrollpanel'), require('primeng/sidebar')) :
3
+ typeof define === 'function' && define.amd ? define('@seniorsistemas/angular-components', ['exports', '@angular/core', '@angular/animations', 'rxjs', 'rxjs/operators', '@angular/common', '@angular/forms', '@angular/router', '@angular/common/http', '@seniorsistemas/senior-platform-data', 'moment', 'ngx-cookie-service', '@seniorsistemas/ng2-currency-mask', 'primeng/breadcrumb', 'primeng/tieredmenu', 'primeng/tooltip', 'primeng/dom', 'primeng/calendar', '@codemirror/view', '@codemirror/state', '@codemirror/lint', '@codemirror/language', '@lezer/generator', '@codemirror/highlight', '@codemirror/autocomplete', '@ngx-translate/core', '@codemirror/tooltip', '@codemirror/gutter', 'ngx-mask', 'angular2-hotkeys', 'bignumber.js', 'primeng/autocomplete', 'primeng/dialog', 'primeng/table', 'ng2-currency-mask', 'primeng/button', 'primeng/checkbox', 'primeng/chips', 'primeng/dropdown', 'primeng/fieldset', 'primeng/inputmask', 'primeng/inputtext', 'primeng/inputtextarea', 'primeng/keyfilter', 'primeng/multiselect', 'primeng/panel', 'primeng/radiobutton', 'primeng/slider', 'primeng/api', 'primeng/progressbar', '@angular/platform-browser', '@angular/cdk/clipboard', 'cropperjs', '@angular/cdk/drag-drop', 'element-resize-detector', 'primeng/confirmdialog', '@angular/cdk/a11y', 'primeng/scrollpanel', 'primeng/sidebar'], factory) :
4
+ (global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['angular-components'] = {}), global.ng.core, global.ng.animations, global.rxjs, global.rxjs.operators, global.ng.common, global.ng.forms, global.ng.router, global.ng.common.http, global.seniorPlatformData, global.moment_, global.ngxCookieService, global.ng2CurrencyMask, global.breadcrumb, global.tieredmenu, global.tooltip, global.dom, global.calendar, global.view, global.state, global.lint, global.language, global.generator, global.highlight, global.autocomplete$1, global.core$1, global.tooltip$1, global.gutter, global.ngxMask, global.angular2Hotkeys, global.BigNumber, global.autocomplete$2, global.dialog, global.table, global.ng2CurrencyMask$1, global.button, global.checkbox, global.chips, global.dropdown, global.fieldset, global.inputmask, global.inputtext, global.inputtextarea, global.keyfilter, global.multiselect, global.panel, global.radiobutton, global.slider, global.api, global.progressbar, global.ng.platformBrowser, global.ng.cdk.clipboard, global.Cropper, global.ng.cdk['drag-drop'], global.elementResizeDetectorMaker_, global.confirmdialog, global.ng.cdk.a11y, global.scrollpanel, global.sidebar));
5
+ }(this, (function (exports, core, animations, rxjs, operators, common, forms, router, http, seniorPlatformData, moment_, ngxCookieService, ng2CurrencyMask, breadcrumb, tieredmenu, tooltip, dom, calendar, view, state, lint, language, generator, highlight, autocomplete$1, core$1, tooltip$1, gutter, ngxMask, angular2Hotkeys, BigNumber, autocomplete$2, dialog, table, ng2CurrencyMask$1, button, checkbox, chips, dropdown, fieldset, inputmask, inputtext, inputtextarea, keyfilter, multiselect, panel, radiobutton, slider, api, progressbar, platformBrowser, clipboard, Cropper, dragDrop, elementResizeDetectorMaker_, confirmdialog, a11y, scrollpanel, sidebar) { 'use strict';
6
6
 
7
7
  var BigNumber__default = 'default' in BigNumber ? BigNumber['default'] : BigNumber;
8
8
  Cropper = Cropper && Cropper.hasOwnProperty('default') ? Cropper['default'] : Cropper;
@@ -6136,1472 +6136,1174 @@
6136
6136
  return EmptyStateModule;
6137
6137
  }());
6138
6138
 
6139
-
6140
- (function (ProgressBarColors) {
6141
- ProgressBarColors["Blue"] = "blue";
6142
- ProgressBarColors["Green"] = "green";
6143
- ProgressBarColors["Red"] = "red";
6144
- ProgressBarColors["Yellow"] = "yellow";
6145
- })(exports.ProgressBarColors || (exports.ProgressBarColors = {}));
6146
-
6147
- var ProgressBarMode;
6148
- (function (ProgressBarMode) {
6149
- ProgressBarMode["Determinate"] = "determinate";
6150
- ProgressBarMode["Indeterminate"] = "indeterminate";
6151
- })(ProgressBarMode || (ProgressBarMode = {}));
6152
-
6153
- var ProgressBarComponent = /** @class */ (function () {
6154
- function ProgressBarComponent() {
6155
- this.numberFormatOptions = {
6156
- style: "decimal",
6157
- minimumFractionDigits: 0,
6158
- maximumFractionDigits: 2,
6159
- };
6160
- this.showValue = true;
6161
- this.mode = ProgressBarMode.Determinate;
6139
+ var FileUploadService = /** @class */ (function () {
6140
+ function FileUploadService() {
6141
+ this.BASE_URL_FIELD_CUSTOMIZATION = "platform/field_customization";
6142
+ this.TOKEN = new AbortController();
6162
6143
  }
6163
- ProgressBarComponent.prototype.ngOnInit = function () {
6164
- this.validateInputs();
6165
- };
6166
- ProgressBarComponent.prototype.validateInputs = function () {
6167
- if (this.value < 0 || this.value > 100) {
6168
- throw new Error("Invalid value for value");
6169
- }
6170
- if (this.targetValue < 0 || this.targetValue > 100) {
6171
- throw new Error("Invalid value for targetValue");
6172
- }
6173
- if (this.mode === ProgressBarMode.Indeterminate && (this.value || this.targetValue || this.targetLabel)) {
6174
- throw new Error("When the mode is indeterminate, the value, targetValue and targetLabel parameters are not expected.");
6175
- }
6144
+ FileUploadService.prototype.getMetadataCustomField = function (request) {
6145
+ return __awaiter(this, void 0, void 0, function () {
6146
+ return __generator(this, function (_a) {
6147
+ return [2 /*return*/, CustomHttpClient.POST(this.BASE_URL_FIELD_CUSTOMIZATION + "/queries/getFileMetadata", request, { signal: this.TOKEN.signal })];
6148
+ });
6149
+ });
6176
6150
  };
6177
- __decorate([
6178
- core.Input()
6179
- ], ProgressBarComponent.prototype, "value", void 0);
6180
- __decorate([
6181
- core.Input()
6182
- ], ProgressBarComponent.prototype, "numberFormatOptions", void 0);
6183
- __decorate([
6184
- core.Input()
6185
- ], ProgressBarComponent.prototype, "targetValue", void 0);
6186
- __decorate([
6187
- core.Input()
6188
- ], ProgressBarComponent.prototype, "label", void 0);
6189
- __decorate([
6190
- core.Input()
6191
- ], ProgressBarComponent.prototype, "targetLabel", void 0);
6192
- __decorate([
6193
- core.Input()
6194
- ], ProgressBarComponent.prototype, "activeColor", void 0);
6195
- __decorate([
6196
- core.Input()
6197
- ], ProgressBarComponent.prototype, "showValue", void 0);
6198
- __decorate([
6199
- core.Input()
6200
- ], ProgressBarComponent.prototype, "mode", void 0);
6201
- ProgressBarComponent = __decorate([
6202
- core.Component({
6203
- selector: "s-progressbar",
6204
- 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>",
6205
- 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}"]
6206
- })
6207
- ], ProgressBarComponent);
6208
- return ProgressBarComponent;
6151
+ FileUploadService = __decorate([
6152
+ core.Injectable()
6153
+ ], FileUploadService);
6154
+ return FileUploadService;
6209
6155
  }());
6210
6156
 
6211
- var ProgressBarDeterminateComponent = /** @class */ (function () {
6212
- function ProgressBarDeterminateComponent(localeService) {
6213
- this.localeService = localeService;
6214
- this.showValue = true;
6157
+ var Breakpoints = {
6158
+ SM_MIN: 0,
6159
+ SM_MAX: 767,
6160
+ MD_MIN: 768,
6161
+ MD_MAX: 991,
6162
+ LG_MIN: 992,
6163
+ LG_MAX: 1199,
6164
+ XL_MIN: 1200,
6165
+ XL_MAX: Infinity,
6166
+ };
6167
+
6168
+ var ExportUtils = /** @class */ (function () {
6169
+ function ExportUtils() {
6170
+ throw new Error("Classe não deve ser instanciada.");
6215
6171
  }
6216
- ProgressBarDeterminateComponent.prototype.ngOnInit = function () {
6217
- this.validateValues();
6218
- this.onGetLocale();
6172
+ ExportUtils.addClass = function (element, className) {
6173
+ element.nativeElement.className = element.nativeElement.className + " " + className;
6219
6174
  };
6220
- ProgressBarDeterminateComponent.prototype.onGetLocale = function () {
6175
+ ExportUtils.removeClass = function (element, className) {
6176
+ if (element.nativeElement.className.includes(className)) {
6177
+ element.nativeElement.className = element.nativeElement.className.replace(className, "");
6178
+ }
6179
+ };
6180
+ ExportUtils.exportCSV = function (columns, data, csvSeparator, documentName) {
6221
6181
  var _this = this;
6222
- this.localeService.getLocale().subscribe({
6223
- next: function (locale) {
6224
- _this.numberFormat = new Intl.NumberFormat(locale !== null && locale !== void 0 ? locale : "pt-BR", _this.numberFormatOptions);
6225
- },
6226
- error: function () {
6227
- _this.numberFormat = new Intl.NumberFormat("pt-BR", _this.numberFormatOptions);
6228
- },
6182
+ if (columns === void 0) { columns = []; }
6183
+ if (data === void 0) { data = []; }
6184
+ if (csvSeparator === void 0) { csvSeparator = ";"; }
6185
+ if (documentName === void 0) { documentName = "download"; }
6186
+ var csv = "\ufeff";
6187
+ columns.filter(function (column) { return column.exportable && column.field; }).forEach(function (column, i) {
6188
+ csv += "\"" + (column.header || column.field) + "\"";
6189
+ if (i < columns.length - 1)
6190
+ csv += csvSeparator;
6229
6191
  });
6230
- };
6231
- ProgressBarDeterminateComponent.prototype.validateValues = function () {
6232
- if (this.value < 0 || this.value > 100) {
6233
- throw new Error("Invalid value for value");
6192
+ data.forEach(function (record) {
6193
+ csv += "\n";
6194
+ columns.filter(function (column) { return column.exportable && column.field; }).forEach(function (column, i) {
6195
+ var cellData;
6196
+ if (Array.isArray(column.field)) {
6197
+ var fieldValues = column.field.map(function (col) { return _this.resolveFieldData(record, col); });
6198
+ cellData = fieldValues
6199
+ .flat()
6200
+ .filter(function (value) { return value !== null && value !== undefined; })
6201
+ .join(column.separator);
6202
+ }
6203
+ else {
6204
+ cellData = _this.resolveFieldData(record, column.field);
6205
+ }
6206
+ if (cellData != null)
6207
+ cellData = String(cellData).replace(/"/g, "\"\"");
6208
+ else
6209
+ cellData = "";
6210
+ csv += "\"" + cellData + "\"";
6211
+ if (i < columns.length - 1)
6212
+ csv += csvSeparator;
6213
+ });
6214
+ });
6215
+ var blob = new Blob([csv], {
6216
+ type: "text/csv;charset=utf-8;",
6217
+ });
6218
+ if (window.navigator.msSaveOrOpenBlob)
6219
+ navigator.msSaveOrOpenBlob(blob, documentName + ".csv");
6220
+ else {
6221
+ var link = document.createElement("a");
6222
+ link.style.display = "none";
6223
+ document.body.appendChild(link);
6224
+ if (link.download !== undefined) {
6225
+ link.setAttribute("href", URL.createObjectURL(blob));
6226
+ link.setAttribute("download", documentName + ".csv");
6227
+ link.click();
6228
+ }
6229
+ else {
6230
+ csv = "data:text/csv;charset=utf-8," + csv;
6231
+ window.open(encodeURI(csv));
6232
+ }
6233
+ document.body.removeChild(link);
6234
6234
  }
6235
- if (this.targetValue < 0 || this.targetValue > 100) {
6236
- throw new Error("Invalid value for targetValue");
6235
+ };
6236
+ ExportUtils.resolveFieldData = function (data, field) {
6237
+ if (data && field) {
6238
+ if (this.isFunction(field))
6239
+ return field(data);
6240
+ else if (field.indexOf(".") == -1)
6241
+ return data[field];
6242
+ else {
6243
+ var fields = field.split(".");
6244
+ var value = data;
6245
+ for (var i = 0, len = fields.length; i < len; ++i) {
6246
+ if (value == null) {
6247
+ return null;
6248
+ }
6249
+ value = value[fields[i]];
6250
+ }
6251
+ return value;
6252
+ }
6237
6253
  }
6254
+ else
6255
+ return null;
6238
6256
  };
6239
- ProgressBarDeterminateComponent.ctorParameters = function () { return [
6240
- { type: LocaleService }
6241
- ]; };
6242
- __decorate([
6243
- core.Input()
6244
- ], ProgressBarDeterminateComponent.prototype, "value", void 0);
6245
- __decorate([
6246
- core.Input()
6247
- ], ProgressBarDeterminateComponent.prototype, "numberFormatOptions", void 0);
6248
- __decorate([
6249
- core.Input()
6250
- ], ProgressBarDeterminateComponent.prototype, "targetValue", void 0);
6251
- __decorate([
6252
- core.Input()
6253
- ], ProgressBarDeterminateComponent.prototype, "targetLabel", void 0);
6254
- __decorate([
6255
- core.Input()
6256
- ], ProgressBarDeterminateComponent.prototype, "activeColor", void 0);
6257
- __decorate([
6258
- core.Input()
6259
- ], ProgressBarDeterminateComponent.prototype, "showValue", void 0);
6260
- ProgressBarDeterminateComponent = __decorate([
6261
- core.Component({
6262
- selector: "s-progressbar-determinate",
6263
- 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",
6264
- 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}"]
6265
- })
6266
- ], ProgressBarDeterminateComponent);
6267
- return ProgressBarDeterminateComponent;
6257
+ ExportUtils.isFunction = function (obj) {
6258
+ return !!(obj && obj.constructor && obj.call && obj.apply);
6259
+ };
6260
+ return ExportUtils;
6268
6261
  }());
6269
6262
 
6270
- var ProgressBarIndeterminateComponent = /** @class */ (function () {
6271
- function ProgressBarIndeterminateComponent() {
6272
- }
6273
- __decorate([
6274
- core.Input()
6275
- ], ProgressBarIndeterminateComponent.prototype, "activeColor", void 0);
6276
- __decorate([
6277
- core.Input()
6278
- ], ProgressBarIndeterminateComponent.prototype, "label", void 0);
6279
- ProgressBarIndeterminateComponent = __decorate([
6280
- core.Component({
6281
- selector: "s-progressbar-indeterminate",
6282
- 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",
6283
- 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%)}}"]
6284
- })
6285
- ], ProgressBarIndeterminateComponent);
6286
- return ProgressBarIndeterminateComponent;
6287
- }());
6288
6263
 
6289
- var ProgressBarModule = /** @class */ (function () {
6290
- function ProgressBarModule() {
6291
- }
6292
- ProgressBarModule = __decorate([
6293
- core.NgModule({
6294
- imports: [common.CommonModule],
6295
- declarations: [
6296
- ProgressBarComponent,
6297
- ProgressBarDeterminateComponent,
6298
- ProgressBarIndeterminateComponent,
6299
- ],
6300
- exports: [ProgressBarComponent],
6301
- })
6302
- ], ProgressBarModule);
6303
- return ProgressBarModule;
6304
- }());
6305
-
6306
- var LocalizedBignumberPipe = /** @class */ (function () {
6307
- function LocalizedBignumberPipe(localeService) {
6308
- this.localeService = localeService;
6309
- }
6310
- LocalizedBignumberPipe.prototype.transform = function (value, options) {
6311
- return value !== undefined && value !== null ? this.applyMask(value, options) : rxjs.of(value);
6312
- };
6313
- LocalizedBignumberPipe.prototype.applyMask = function (value, options) {
6314
- return this.localeService.get().pipe(operators.map(function (localeConfig) {
6315
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
6316
- var configs = {
6317
- 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$",
6318
- 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 : ".",
6319
- 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 : ",",
6320
- scale: (_k = options === null || options === void 0 ? void 0 : options.scale) !== null && _k !== void 0 ? _k : 2,
6321
- allowNegative: (_l = options === null || options === void 0 ? void 0 : options.allowNegative) !== null && _l !== void 0 ? _l : true
6322
- };
6323
- var isNumber = !(new BigNumber__default(value).isNaN());
6324
- return ng2CurrencyMask.applyMask(value, configs, isNumber);
6325
- }));
6326
- };
6327
- LocalizedBignumberPipe.ctorParameters = function () { return [
6328
- { type: LocaleService }
6329
- ]; };
6330
- LocalizedBignumberPipe = __decorate([
6331
- core.Pipe({
6332
- name: "localizedBignumber",
6333
- })
6334
- ], LocalizedBignumberPipe);
6335
- return LocalizedBignumberPipe;
6336
- }());
6337
-
6338
- var LocalizedBignumberImpurePipe = /** @class */ (function (_super) {
6339
- __extends(LocalizedBignumberImpurePipe, _super);
6340
- function LocalizedBignumberImpurePipe() {
6341
- return _super !== null && _super.apply(this, arguments) || this;
6342
- }
6343
- LocalizedBignumberImpurePipe.prototype.transform = function (value, options) {
6344
- return _super.prototype.transform.call(this, value, options);
6345
- };
6346
- LocalizedBignumberImpurePipe = __decorate([
6347
- core.Pipe({
6348
- name: "localizedBignumberImpure",
6349
- pure: false,
6350
- })
6351
- ], LocalizedBignumberImpurePipe);
6352
- return LocalizedBignumberImpurePipe;
6353
- }(LocalizedBignumberPipe));
6354
-
6355
- var LocalizedCurrencyPipeOptions = /** @class */ (function (_super) {
6356
- __extends(LocalizedCurrencyPipeOptions, _super);
6357
- function LocalizedCurrencyPipeOptions(config) {
6358
- if (config === void 0) { config = {}; }
6359
- var _this = _super.call(this, config) || this;
6360
- _this.scale = 2;
6361
- return _this;
6362
- }
6363
- return LocalizedCurrencyPipeOptions;
6364
- }(NumberLocaleOptions));
6365
- /**
6366
- * @deprecated Should use localizedBignumberPipe instead
6367
- */
6368
- var LocalizedCurrencyPipe = /** @class */ (function () {
6369
- function LocalizedCurrencyPipe(localeService) {
6370
- this.localeService = localeService;
6371
- }
6372
- LocalizedCurrencyPipe.prototype.transform = function (value, options) {
6373
- if (!options) {
6374
- options = new LocalizedCurrencyPipeOptions();
6375
- }
6376
- return value !== undefined && value !== null ? this.applyMask(value, options) : rxjs.of(value);
6377
- };
6378
- LocalizedCurrencyPipe.prototype.applyMask = function (value, options) {
6379
- return this.localeService.get().pipe(operators.map(function (localeConfig) {
6380
- var config = __assign(__assign({}, localeConfig.number), options);
6381
- var scale = config.scale, currencySymbol = config.currencySymbol, thousandsSeparator = config.thousandsSeparator, decimalSeparator = config.decimalSeparator;
6382
- var rawValue = Number(value).toFixed(scale);
6383
- var onlyNumbers = rawValue.replace(/[^0-9]/g, "");
6384
- var integerPart = onlyNumbers
6385
- .slice(0, onlyNumbers.length - scale)
6386
- .replace(/^0*/g, "")
6387
- .replace(/\B(?=(\d{3})+(?!\d))/g, thousandsSeparator) || "0";
6388
- var decimalPart = onlyNumbers.slice(onlyNumbers.length - scale);
6389
- var newValue = scale ? integerPart + decimalSeparator + decimalPart : integerPart;
6390
- var isZero = !Number(onlyNumbers);
6391
- var operator = rawValue.includes("-") && !isZero ? "-" : "";
6392
- return "" + operator + currencySymbol + newValue;
6393
- }));
6394
- };
6395
- LocalizedCurrencyPipe.ctorParameters = function () { return [
6396
- { type: LocaleService }
6397
- ]; };
6398
- LocalizedCurrencyPipe = __decorate([
6399
- core.Pipe({
6400
- name: "localizedCurrency",
6401
- })
6402
- ], LocalizedCurrencyPipe);
6403
- return LocalizedCurrencyPipe;
6404
- }());
6405
-
6406
- /**
6407
- * @deprecated Should use localizedBignumberPipe instead
6408
- */
6409
- var LocalizedCurrencyImpurePipe = /** @class */ (function (_super) {
6410
- __extends(LocalizedCurrencyImpurePipe, _super);
6411
- function LocalizedCurrencyImpurePipe() {
6412
- return _super !== null && _super.apply(this, arguments) || this;
6413
- }
6414
- LocalizedCurrencyImpurePipe.prototype.transform = function (value, options) {
6415
- if (options === void 0) { options = new LocalizedCurrencyPipeOptions(); }
6416
- return _super.prototype.transform.call(this, value, options);
6417
- };
6418
- LocalizedCurrencyImpurePipe = __decorate([
6419
- core.Pipe({
6420
- name: "localizedCurrencyImpure",
6421
- pure: false,
6422
- })
6423
- ], LocalizedCurrencyImpurePipe);
6424
- return LocalizedCurrencyImpurePipe;
6425
- }(LocalizedCurrencyPipe));
6426
-
6427
- var moment$1 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
6428
- var LocalizedDatePipe = /** @class */ (function () {
6429
- function LocalizedDatePipe(localeService) {
6430
- this.localeService = localeService;
6431
- }
6432
- LocalizedDatePipe.prototype.transform = function (value, format) {
6433
- if (format === void 0) { format = "L LTS"; }
6434
- return this.localeService.get().pipe(operators.map(function () { return (value ? moment$1(value).format(format) : value); }));
6435
- };
6436
- LocalizedDatePipe.ctorParameters = function () { return [
6437
- { type: LocaleService }
6438
- ]; };
6439
- LocalizedDatePipe = __decorate([
6440
- core.Pipe({
6441
- name: "localizedDate",
6442
- })
6443
- ], LocalizedDatePipe);
6444
- return LocalizedDatePipe;
6445
- }());
6446
-
6447
- var LocalizedDateImpurePipe = /** @class */ (function (_super) {
6448
- __extends(LocalizedDateImpurePipe, _super);
6449
- function LocalizedDateImpurePipe() {
6450
- return _super !== null && _super.apply(this, arguments) || this;
6451
- }
6452
- LocalizedDateImpurePipe = __decorate([
6453
- core.Pipe({
6454
- name: "localizedDateImpure",
6455
- pure: false,
6456
- })
6457
- ], LocalizedDateImpurePipe);
6458
- return LocalizedDateImpurePipe;
6459
- }(LocalizedDatePipe));
6264
+ (function (ValidateErrors) {
6265
+ ValidateErrors["MAX_FILE_SIZE"] = "MAX_FILE_SIZE";
6266
+ ValidateErrors["MAX_FILE_LIMIT"] = "MAX_FILE_LIMIT";
6267
+ ValidateErrors["UNSUPPORTED_EXTENSION"] = "UNSUPPORTED_EXTENSION";
6268
+ })(exports.ValidateErrors || (exports.ValidateErrors = {}));
6460
6269
 
6461
- /**
6462
- * @deprecated Should use localizedBignumberPipe instead
6463
- */
6464
- var LocalizedNumberPipe = /** @class */ (function () {
6465
- function LocalizedNumberPipe(localeService) {
6466
- this.localeService = localeService;
6467
- }
6468
- LocalizedNumberPipe.prototype.transform = function (value, minimumFractionDigits) {
6469
- return rxjs.from(this.localeService.getLocale()).pipe(operators.map(function (locale) {
6470
- var numericValue = Number(value);
6471
- if (!value && isNaN(numericValue))
6472
- return;
6473
- return new Intl.NumberFormat(locale, {
6474
- minimumFractionDigits: minimumFractionDigits || 0,
6475
- }).format(Number(value));
6476
- }));
6477
- };
6478
- LocalizedNumberPipe.ctorParameters = function () { return [
6479
- { type: LocaleService }
6480
- ]; };
6481
- LocalizedNumberPipe = __decorate([
6482
- core.Pipe({ name: "localizedNumber" })
6483
- ], LocalizedNumberPipe);
6484
- return LocalizedNumberPipe;
6485
- }());
6270
+ var FileUploadPermissions;
6271
+ (function (FileUploadPermissions) {
6272
+ FileUploadPermissions["Add"] = "add";
6273
+ FileUploadPermissions["Read"] = "read";
6274
+ FileUploadPermissions["Remove"] = "remove";
6275
+ })(FileUploadPermissions || (FileUploadPermissions = {}));
6276
+ var ALL_PERMISSIONS = [
6277
+ FileUploadPermissions.Add,
6278
+ FileUploadPermissions.Read,
6279
+ FileUploadPermissions.Remove,
6280
+ ];
6486
6281
 
6487
- var moment$2 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
6488
- var LocalizedTimePipe = /** @class */ (function () {
6489
- function LocalizedTimePipe(localeService) {
6490
- this.localeService = localeService;
6282
+ var moment$1 = moment_;
6283
+ var FileUploadComponent = /** @class */ (function () {
6284
+ function FileUploadComponent(sanitizer, fileUploadService, translate) {
6285
+ this.sanitizer = sanitizer;
6286
+ this.fileUploadService = fileUploadService;
6287
+ this.translate = translate;
6288
+ this.ADD_PERMISSION = FileUploadPermissions.Add;
6289
+ this.READ_PERMISSION = FileUploadPermissions.Read;
6290
+ this.REMOVE_PERMISSION = FileUploadPermissions.Remove;
6291
+ this.id = "s-file-upload-" + FileUploadComponent_1.nextId++;
6292
+ this.supportedExtensions = [];
6293
+ this.disabled = false;
6294
+ this.showFileUploadDate = false;
6295
+ this.permissions = ALL_PERMISSIONS;
6296
+ this.uploadHandler = new core.EventEmitter();
6297
+ this.removeFile = new core.EventEmitter();
6298
+ this.cancelUpload = new core.EventEmitter();
6299
+ this.downloadFile = new core.EventEmitter();
6300
+ this.validateErrors = new core.EventEmitter();
6301
+ this._files = [];
6302
+ this.ngUsubscribe = new rxjs.Subject();
6303
+ this.inputValue = "";
6491
6304
  }
6492
- LocalizedTimePipe.prototype.transform = function (value, format) {
6493
- if (format === void 0) { format = "LTS"; }
6494
- return this.localeService.get().pipe(operators.map(function () { return (value ? moment$2(value, "HH:mm:ss").format(format) : value); }));
6305
+ FileUploadComponent_1 = FileUploadComponent;
6306
+ Object.defineProperty(FileUploadComponent.prototype, "files", {
6307
+ get: function () {
6308
+ return this._files;
6309
+ },
6310
+ set: function (files) {
6311
+ var _this = this;
6312
+ var _a;
6313
+ if (this.showFileUploadDate && ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId)) {
6314
+ this.getUploadDate(files);
6315
+ }
6316
+ this._files = files.map(function (file) {
6317
+ if (_this.isImage(file)) {
6318
+ file.objectURL = _this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(file));
6319
+ }
6320
+ return file;
6321
+ });
6322
+ },
6323
+ enumerable: true,
6324
+ configurable: true
6325
+ });
6326
+ FileUploadComponent.prototype.ngOnInit = function () {
6327
+ this.supportedExtensions = this.supportedExtensions
6328
+ .map(function (extension) { return extension.replace(".", "").toLowerCase(); });
6495
6329
  };
6496
- LocalizedTimePipe.ctorParameters = function () { return [
6497
- { type: LocaleService }
6498
- ]; };
6499
- LocalizedTimePipe = __decorate([
6500
- core.Pipe({
6501
- name: "localizedTime",
6502
- })
6503
- ], LocalizedTimePipe);
6504
- return LocalizedTimePipe;
6505
- }());
6506
-
6507
- var LocalizedTimeImpurePipe = /** @class */ (function (_super) {
6508
- __extends(LocalizedTimeImpurePipe, _super);
6509
- function LocalizedTimeImpurePipe() {
6510
- return _super !== null && _super.apply(this, arguments) || this;
6511
- }
6512
- LocalizedTimeImpurePipe = __decorate([
6513
- core.Pipe({
6514
- name: "localizedTimeImpure",
6515
- pure: false,
6516
- })
6517
- ], LocalizedTimeImpurePipe);
6518
- return LocalizedTimeImpurePipe;
6519
- }(LocalizedTimePipe));
6520
-
6521
- var NumericService = /** @class */ (function () {
6522
- function NumericService(localeService) {
6523
- this.localeService = localeService;
6524
- }
6525
- /**
6526
- * Wrapper around Intl.NumberFormat that returns the localized value using the user's locale by default(platform's preferential language).
6527
- *
6528
- * This method should only be used after the localeService has been initialized by the host application, either by a resolver or a manual call.
6529
- *
6530
- * Can be overwritten by the provided Intl.NumberFormatOptions.
6531
- *
6532
- * Documentation is available at {@link https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat Intl.NumberFormatOptions}.
6533
- *
6534
- * @param {number | string | BigNumber} value The value to be formatted.
6535
- * @param {Intl.NumberFormatOptions} options Options that overwrites the default Intl.NumberFormatOptions.
6536
- * @return `string` The formatted value.
6537
- */
6538
- NumericService.prototype.instant = function (value, options) {
6539
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
6540
- 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 }) });
6541
- // From https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
6542
- return new Intl.NumberFormat(options.locale, options.options).format(this.getType(value) === "number" || this.getType(value) === "string" ? value : value.toString());
6330
+ FileUploadComponent.prototype.ngOnDestroy = function () {
6331
+ this.ngUsubscribe.next();
6332
+ this.ngUsubscribe.complete();
6543
6333
  };
6544
- NumericService.prototype.getType = function (value) {
6545
- // From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
6546
- if (value === null) {
6547
- return "null";
6334
+ FileUploadComponent.prototype.ngAfterContentInit = function () {
6335
+ this.update();
6336
+ };
6337
+ FileUploadComponent.prototype.onResize = function () {
6338
+ this.update();
6339
+ };
6340
+ FileUploadComponent.prototype.onFileSelect = function (files) {
6341
+ var e_1, _a;
6342
+ var newFiles = [];
6343
+ if (!this.multiple) {
6344
+ this.files = [];
6548
6345
  }
6549
- var baseType = typeof value;
6550
- // Primitive types
6551
- if (baseType !== "object" && baseType !== "function") {
6552
- return baseType;
6346
+ if (this.isFileLimitExceeded(files)) {
6347
+ this.validateErrors.emit({
6348
+ files: files,
6349
+ validation: exports.ValidateErrors.MAX_FILE_LIMIT,
6350
+ });
6351
+ this.clearFileInput();
6352
+ return;
6553
6353
  }
6554
- // Symbol.toStringTag often specifies the "display name" of the
6555
- // object's class. It's used in Object.prototype.toString().
6556
- var tag = value[Symbol.toStringTag];
6557
- if (typeof tag === "string") {
6558
- return tag;
6354
+ try {
6355
+ for (var files_1 = __values(files), files_1_1 = files_1.next(); !files_1_1.done; files_1_1 = files_1.next()) {
6356
+ var file = files_1_1.value;
6357
+ if (this.isUnsupportedFileExtension(file)) {
6358
+ this.validateErrors.emit({
6359
+ files: [file],
6360
+ validation: exports.ValidateErrors.UNSUPPORTED_EXTENSION,
6361
+ });
6362
+ continue;
6363
+ }
6364
+ if (this.isFileSizeExceeded(file)) {
6365
+ this.validateErrors.emit({
6366
+ files: [file],
6367
+ validation: exports.ValidateErrors.MAX_FILE_SIZE,
6368
+ });
6369
+ continue;
6370
+ }
6371
+ newFiles.push(file);
6372
+ }
6559
6373
  }
6560
- // If it's a function whose source code starts with the "class" keyword
6561
- if (baseType === "function" && Function.prototype.toString.call(value).startsWith("class")) {
6562
- return "class";
6374
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
6375
+ finally {
6376
+ try {
6377
+ if (files_1_1 && !files_1_1.done && (_a = files_1.return)) _a.call(files_1);
6378
+ }
6379
+ finally { if (e_1) throw e_1.error; }
6563
6380
  }
6564
- // The name of the constructor; for example `Array`, `GeneratorFunction`,
6565
- // `Number`, `String`, `Boolean` or `MyCustomClass`
6566
- var className = value.constructor.name;
6567
- if (typeof className === "string" && className !== "") {
6568
- return className;
6381
+ if (newFiles.length) {
6382
+ this.files = this.files.concat(newFiles);
6383
+ this.uploadHandler.emit({
6384
+ files: newFiles,
6385
+ });
6569
6386
  }
6570
- // At this point there's no robust way to get the type of value,
6571
- // so we use the base implementation.
6572
- return baseType;
6387
+ this.clearFileInput();
6573
6388
  };
6574
- NumericService.ctorParameters = function () { return [
6575
- { type: LocaleService }
6576
- ]; };
6577
- NumericService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function NumericService_Factory() { return new NumericService(core["ɵɵinject"](LocaleService)); }, token: NumericService, providedIn: "root" });
6578
- NumericService = __decorate([
6579
- core.Injectable({
6580
- providedIn: "root",
6581
- })
6582
- ], NumericService);
6583
- return NumericService;
6584
- }());
6585
-
6586
- var NumericPipe = /** @class */ (function () {
6587
- function NumericPipe(numericService, localeService) {
6588
- this.numericService = numericService;
6589
- this.localeService = localeService;
6590
- }
6591
- NumericPipe.prototype.transform = function (value, options) {
6592
- var _this = this;
6593
- return (options === null || options === void 0 ? void 0 : options.locale) ? rxjs.of(this.numericService.instant(value, options))
6594
- : this.localeService.getLocale().pipe(operators.map(function (locale) {
6595
- return _this.numericService.instant(value, {
6596
- locale: locale,
6597
- options: options === null || options === void 0 ? void 0 : options.options,
6598
- });
6599
- }));
6389
+ FileUploadComponent.prototype.onRemoveFile = function (file) {
6390
+ var fileIndex = this.files.indexOf(file);
6391
+ var removedFiles = this.files.splice(fileIndex, 1);
6392
+ if (removedFiles.length) {
6393
+ this.removeFile.emit({ file: file });
6394
+ }
6600
6395
  };
6601
- NumericPipe.ctorParameters = function () { return [
6602
- { type: NumericService },
6603
- { type: LocaleService }
6604
- ]; };
6605
- NumericPipe = __decorate([
6606
- core.Pipe({ name: "numeric" })
6607
- ], NumericPipe);
6608
- return NumericPipe;
6609
- }());
6610
-
6611
- var LocaleModule = /** @class */ (function () {
6612
- function LocaleModule() {
6613
- }
6614
- LocaleModule_1 = LocaleModule;
6615
- LocaleModule.forRoot = function () {
6616
- return {
6617
- ngModule: LocaleModule_1,
6618
- providers: [
6619
- LocaleService,
6620
- LocalizedCurrencyPipe,
6621
- LocalizedDatePipe,
6622
- LocalizedTimePipe,
6623
- LocalizedNumberPipe,
6624
- LocalizedCurrencyImpurePipe,
6625
- LocalizedDateImpurePipe,
6626
- LocalizedTimeImpurePipe,
6627
- LocalizedBignumberPipe,
6628
- LocalizedBignumberImpurePipe,
6629
- NumericPipe
6630
- ],
6631
- };
6396
+ FileUploadComponent.prototype.onCancelUpload = function (index) {
6397
+ var removedFiles = this.files.splice(index, 1);
6398
+ if (removedFiles.length) {
6399
+ this.cancelUpload.emit(index);
6400
+ }
6401
+ this.clearFileInput();
6632
6402
  };
6633
- LocaleModule.forChild = function () {
6634
- return {
6635
- ngModule: LocaleModule_1,
6636
- };
6403
+ FileUploadComponent.prototype.onDowloadFile = function (index) {
6404
+ this.downloadFile.emit({
6405
+ index: index,
6406
+ anchor: this.anchor,
6407
+ });
6637
6408
  };
6638
- var LocaleModule_1;
6639
- LocaleModule = LocaleModule_1 = __decorate([
6409
+ FileUploadComponent.prototype.update = function () {
6410
+ var windowWidth = window.innerWidth;
6411
+ this.isSmallDevice = windowWidth <= Breakpoints.SM_MAX;
6412
+ };
6413
+ FileUploadComponent.prototype.isImage = function (file) {
6414
+ return /^image\//.test(file.type);
6415
+ };
6416
+ FileUploadComponent.prototype.isFileLimitExceeded = function (files) {
6417
+ if (!this.fileLimit) {
6418
+ return false;
6419
+ }
6420
+ return this.files.length + files.length > this.fileLimit;
6421
+ };
6422
+ FileUploadComponent.prototype.isFileSizeExceeded = function (file) {
6423
+ if (!this.maxFileSize) {
6424
+ return false;
6425
+ }
6426
+ return file.size > this.maxFileSize;
6427
+ };
6428
+ FileUploadComponent.prototype.isUnsupportedFileExtension = function (file) {
6429
+ var _a;
6430
+ if ((_a = this.supportedExtensions) === null || _a === void 0 ? void 0 : _a.length) {
6431
+ var extension = file.name.split(".").pop().toLowerCase();
6432
+ return !this.supportedExtensions.includes(extension);
6433
+ }
6434
+ return false;
6435
+ };
6436
+ FileUploadComponent.prototype.clearFileInput = function () {
6437
+ this.inputUpload.nativeElement.value = null;
6438
+ };
6439
+ FileUploadComponent.prototype.getUploadDate = function (blobFile) {
6440
+ var _this = this;
6441
+ if (!blobFile) {
6442
+ return;
6443
+ }
6444
+ this.fileUploadService.getMetadataCustomField({ objectId: blobFile[0].objectId })
6445
+ .then(function (metadata) { return _this.setModifiedDate(metadata); });
6446
+ };
6447
+ FileUploadComponent.prototype.setModifiedDate = function (metadata) {
6448
+ var hour = moment$1(metadata.modified).format("HH");
6449
+ var minutes = moment$1(metadata.modified).format("mm");
6450
+ var day = moment$1(metadata.modified).format("DD");
6451
+ var month = moment$1(metadata.modified).format("MM");
6452
+ var fullYear = moment$1(metadata.modified).format("YYYY");
6453
+ this.modifiedDate = this.translate.instant("platform.angular_components.date_modified_custom_blob", { hour: hour, minutes: minutes, day: day, month: month, fullYear: fullYear });
6454
+ };
6455
+ var FileUploadComponent_1;
6456
+ FileUploadComponent.nextId = 0;
6457
+ FileUploadComponent.ctorParameters = function () { return [
6458
+ { type: platformBrowser.DomSanitizer },
6459
+ { type: FileUploadService },
6460
+ { type: core$1.TranslateService }
6461
+ ]; };
6462
+ __decorate([
6463
+ core.ViewChild("inputUpload", { static: false })
6464
+ ], FileUploadComponent.prototype, "inputUpload", void 0);
6465
+ __decorate([
6466
+ core.ViewChild("anchor", { static: false })
6467
+ ], FileUploadComponent.prototype, "anchor", void 0);
6468
+ __decorate([
6469
+ core.Input()
6470
+ ], FileUploadComponent.prototype, "id", void 0);
6471
+ __decorate([
6472
+ core.Input()
6473
+ ], FileUploadComponent.prototype, "chooseLabel", void 0);
6474
+ __decorate([
6475
+ core.Input()
6476
+ ], FileUploadComponent.prototype, "removeLabel", void 0);
6477
+ __decorate([
6478
+ core.Input()
6479
+ ], FileUploadComponent.prototype, "cancelLabel", void 0);
6480
+ __decorate([
6481
+ core.Input()
6482
+ ], FileUploadComponent.prototype, "successTooltip", void 0);
6483
+ __decorate([
6484
+ core.Input()
6485
+ ], FileUploadComponent.prototype, "multiple", void 0);
6486
+ __decorate([
6487
+ core.Input()
6488
+ ], FileUploadComponent.prototype, "accept", void 0);
6489
+ __decorate([
6490
+ core.Input()
6491
+ ], FileUploadComponent.prototype, "supportedExtensions", void 0);
6492
+ __decorate([
6493
+ core.Input()
6494
+ ], FileUploadComponent.prototype, "ariaLabelFileName", void 0);
6495
+ __decorate([
6496
+ core.Input()
6497
+ ], FileUploadComponent.prototype, "maxFileSize", void 0);
6498
+ __decorate([
6499
+ core.Input()
6500
+ ], FileUploadComponent.prototype, "fileLimit", void 0);
6501
+ __decorate([
6502
+ core.Input()
6503
+ ], FileUploadComponent.prototype, "ariaLabelProgress", void 0);
6504
+ __decorate([
6505
+ core.Input()
6506
+ ], FileUploadComponent.prototype, "ariaLabelSuccess", void 0);
6507
+ __decorate([
6508
+ core.Input()
6509
+ ], FileUploadComponent.prototype, "ariaLabelError", void 0);
6510
+ __decorate([
6511
+ core.Input()
6512
+ ], FileUploadComponent.prototype, "ariaLabelRemove", void 0);
6513
+ __decorate([
6514
+ core.Input()
6515
+ ], FileUploadComponent.prototype, "formGroup", void 0);
6516
+ __decorate([
6517
+ core.Input()
6518
+ ], FileUploadComponent.prototype, "disabled", void 0);
6519
+ __decorate([
6520
+ core.Input()
6521
+ ], FileUploadComponent.prototype, "showFileUploadDate", void 0);
6522
+ __decorate([
6523
+ core.Input()
6524
+ ], FileUploadComponent.prototype, "permissions", void 0);
6525
+ __decorate([
6526
+ core.Input()
6527
+ ], FileUploadComponent.prototype, "files", null);
6528
+ __decorate([
6529
+ core.Output()
6530
+ ], FileUploadComponent.prototype, "uploadHandler", void 0);
6531
+ __decorate([
6532
+ core.Output()
6533
+ ], FileUploadComponent.prototype, "removeFile", void 0);
6534
+ __decorate([
6535
+ core.Output()
6536
+ ], FileUploadComponent.prototype, "cancelUpload", void 0);
6537
+ __decorate([
6538
+ core.Output()
6539
+ ], FileUploadComponent.prototype, "downloadFile", void 0);
6540
+ __decorate([
6541
+ core.Output()
6542
+ ], FileUploadComponent.prototype, "validateErrors", void 0);
6543
+ __decorate([
6544
+ core.HostListener("window:resize")
6545
+ ], FileUploadComponent.prototype, "onResize", null);
6546
+ FileUploadComponent = FileUploadComponent_1 = __decorate([
6547
+ core.Component({
6548
+ selector: "s-file-upload",
6549
+ 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",
6550
+ 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}}"]
6551
+ })
6552
+ ], FileUploadComponent);
6553
+ return FileUploadComponent;
6554
+ }());
6555
+
6556
+ var FileUploadModule = /** @class */ (function () {
6557
+ function FileUploadModule() {
6558
+ }
6559
+ FileUploadModule = __decorate([
6640
6560
  core.NgModule({
6641
- imports: [common.CommonModule],
6642
- exports: [
6643
- LocalizedCurrencyPipe,
6644
- LocalizedDatePipe,
6645
- LocalizedTimePipe,
6646
- LocalizedNumberPipe,
6647
- LocalizedCurrencyImpurePipe,
6648
- LocalizedDateImpurePipe,
6649
- LocalizedTimeImpurePipe,
6650
- LocalizedBignumberPipe,
6651
- LocalizedBignumberImpurePipe,
6652
- NumericPipe
6653
- ],
6654
- declarations: [
6655
- LocalizedCurrencyPipe,
6656
- LocalizedDatePipe,
6657
- LocalizedTimePipe,
6658
- LocalizedNumberPipe,
6659
- LocalizedCurrencyImpurePipe,
6660
- LocalizedDateImpurePipe,
6661
- LocalizedTimeImpurePipe,
6662
- LocalizedBignumberPipe,
6663
- LocalizedBignumberImpurePipe,
6664
- NumericPipe
6561
+ declarations: [FileUploadComponent],
6562
+ imports: [
6563
+ common.CommonModule,
6564
+ ButtonModule,
6565
+ tooltip.TooltipModule,
6566
+ progressbar.ProgressBarModule,
6567
+ core$1.TranslateModule,
6665
6568
  ],
6569
+ providers: [FileUploadService],
6570
+ exports: [FileUploadComponent],
6666
6571
  })
6667
- ], LocaleModule);
6668
- return LocaleModule;
6572
+ ], FileUploadModule);
6573
+ return FileUploadModule;
6669
6574
  }());
6670
6575
 
6671
- var Breakpoints = {
6672
- SM_MIN: 0,
6673
- SM_MAX: 767,
6674
- MD_MIN: 768,
6675
- MD_MAX: 991,
6676
- LG_MIN: 992,
6677
- LG_MAX: 1199,
6678
- XL_MIN: 1200,
6679
- XL_MAX: Infinity,
6680
- };
6576
+ var InfoSignComponent = /** @class */ (function () {
6577
+ function InfoSignComponent() {
6578
+ }
6579
+ InfoSignComponent = __decorate([
6580
+ core.Component({
6581
+ selector: "s-info-sign-component",
6582
+ 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>",
6583
+ 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}"]
6584
+ })
6585
+ ], InfoSignComponent);
6586
+ return InfoSignComponent;
6587
+ }());
6681
6588
 
6682
- var ExportUtils = /** @class */ (function () {
6683
- function ExportUtils() {
6684
- throw new Error("Classe não deve ser instanciada.");
6589
+ var InfoSignDirective = /** @class */ (function () {
6590
+ function InfoSignDirective(templateRef, viewContainer, componentFactoryResolver) {
6591
+ this.templateRef = templateRef;
6592
+ this.viewContainer = viewContainer;
6593
+ this.componentFactoryResolver = componentFactoryResolver;
6594
+ this.displayTime = 5000;
6685
6595
  }
6686
- ExportUtils.addClass = function (element, className) {
6687
- element.nativeElement.className = element.nativeElement.className + " " + className;
6688
- };
6689
- ExportUtils.removeClass = function (element, className) {
6690
- if (element.nativeElement.className.includes(className)) {
6691
- element.nativeElement.className = element.nativeElement.className.replace(className, "");
6596
+ InfoSignDirective.prototype.ngOnInit = function () {
6597
+ if (!this.componentRef && this.sInfoSign) {
6598
+ this.viewContainer.clear();
6599
+ var componentFactory = this.componentFactoryResolver.resolveComponentFactory(InfoSignComponent);
6600
+ this.componentRef = this.viewContainer.createComponent(componentFactory);
6601
+ this.componentRef.instance.templateRef = this.templateRef;
6602
+ this.componentRef.instance.tooltip = this.sInfoSign;
6603
+ this.componentRef.instance.displayTime = this.displayTime;
6604
+ }
6605
+ else if (this.componentRef && this.sInfoSign) {
6606
+ this.componentRef.instance.tooltip = this.sInfoSign;
6692
6607
  }
6693
- };
6694
- ExportUtils.exportCSV = function (columns, data, csvSeparator, documentName) {
6695
- var _this = this;
6696
- if (columns === void 0) { columns = []; }
6697
- if (data === void 0) { data = []; }
6698
- if (csvSeparator === void 0) { csvSeparator = ";"; }
6699
- if (documentName === void 0) { documentName = "download"; }
6700
- var csv = "\ufeff";
6701
- columns.filter(function (column) { return column.exportable && column.field; }).forEach(function (column, i) {
6702
- csv += "\"" + (column.header || column.field) + "\"";
6703
- if (i < columns.length - 1)
6704
- csv += csvSeparator;
6705
- });
6706
- data.forEach(function (record) {
6707
- csv += "\n";
6708
- columns.filter(function (column) { return column.exportable && column.field; }).forEach(function (column, i) {
6709
- var cellData;
6710
- if (Array.isArray(column.field)) {
6711
- var fieldValues = column.field.map(function (col) { return _this.resolveFieldData(record, col); });
6712
- cellData = fieldValues
6713
- .flat()
6714
- .filter(function (value) { return value !== null && value !== undefined; })
6715
- .join(column.separator);
6716
- }
6717
- else {
6718
- cellData = _this.resolveFieldData(record, column.field);
6719
- }
6720
- if (cellData != null)
6721
- cellData = String(cellData).replace(/"/g, "\"\"");
6722
- else
6723
- cellData = "";
6724
- csv += "\"" + cellData + "\"";
6725
- if (i < columns.length - 1)
6726
- csv += csvSeparator;
6727
- });
6728
- });
6729
- var blob = new Blob([csv], {
6730
- type: "text/csv;charset=utf-8;",
6731
- });
6732
- if (window.navigator.msSaveOrOpenBlob)
6733
- navigator.msSaveOrOpenBlob(blob, documentName + ".csv");
6734
6608
  else {
6735
- var link = document.createElement("a");
6736
- link.style.display = "none";
6737
- document.body.appendChild(link);
6738
- if (link.download !== undefined) {
6739
- link.setAttribute("href", URL.createObjectURL(blob));
6740
- link.setAttribute("download", documentName + ".csv");
6741
- link.click();
6742
- }
6743
- else {
6744
- csv = "data:text/csv;charset=utf-8," + csv;
6745
- window.open(encodeURI(csv));
6746
- }
6747
- document.body.removeChild(link);
6609
+ this.viewContainer.clear();
6610
+ this.viewContainer.createEmbeddedView(this.templateRef);
6748
6611
  }
6749
6612
  };
6750
- ExportUtils.resolveFieldData = function (data, field) {
6751
- if (data && field) {
6752
- if (this.isFunction(field))
6753
- return field(data);
6754
- else if (field.indexOf(".") == -1)
6755
- return data[field];
6756
- else {
6757
- var fields = field.split(".");
6758
- var value = data;
6759
- for (var i = 0, len = fields.length; i < len; ++i) {
6760
- if (value == null) {
6761
- return null;
6762
- }
6763
- value = value[fields[i]];
6764
- }
6765
- return value;
6766
- }
6613
+ InfoSignDirective.prototype.ngOnDestroy = function () {
6614
+ if (this.componentRef) {
6615
+ this.componentRef.destroy();
6767
6616
  }
6768
- else
6769
- return null;
6770
- };
6771
- ExportUtils.isFunction = function (obj) {
6772
- return !!(obj && obj.constructor && obj.call && obj.apply);
6773
6617
  };
6774
- return ExportUtils;
6618
+ InfoSignDirective.ctorParameters = function () { return [
6619
+ { type: core.TemplateRef },
6620
+ { type: core.ViewContainerRef },
6621
+ { type: core.ComponentFactoryResolver }
6622
+ ]; };
6623
+ __decorate([
6624
+ core.Input()
6625
+ ], InfoSignDirective.prototype, "sInfoSign", void 0);
6626
+ __decorate([
6627
+ core.Input('sInfoSignDisplayTime')
6628
+ ], InfoSignDirective.prototype, "displayTime", void 0);
6629
+ InfoSignDirective = __decorate([
6630
+ core.Directive({
6631
+ selector: "[sInfoSign]",
6632
+ })
6633
+ ], InfoSignDirective);
6634
+ return InfoSignDirective;
6775
6635
  }());
6776
6636
 
6637
+ var InfoSignModule = /** @class */ (function () {
6638
+ function InfoSignModule() {
6639
+ }
6640
+ InfoSignModule = __decorate([
6641
+ core.NgModule({
6642
+ imports: [
6643
+ TooltipModule,
6644
+ common.CommonModule,
6645
+ ],
6646
+ declarations: [
6647
+ InfoSignDirective,
6648
+ InfoSignComponent,
6649
+ ],
6650
+ exports: [InfoSignDirective],
6651
+ entryComponents: [InfoSignComponent],
6652
+ })
6653
+ ], InfoSignModule);
6654
+ return InfoSignModule;
6655
+ }());
6777
6656
 
6778
- (function (ValidateErrors) {
6779
- ValidateErrors["MAX_FILE_SIZE"] = "MAX_FILE_SIZE";
6780
- ValidateErrors["MAX_COMBINED_FILE_SIZE"] = "MAX_COMBINED_FILE_SIZE";
6781
- ValidateErrors["MAX_FILE_LIMIT"] = "MAX_FILE_LIMIT";
6782
- ValidateErrors["UNSUPPORTED_EXTENSION"] = "UNSUPPORTED_EXTENSION";
6783
- })(exports.ValidateErrors || (exports.ValidateErrors = {}));
6657
+ var IAssistIconComponent = /** @class */ (function () {
6658
+ function IAssistIconComponent() {
6659
+ }
6660
+ IAssistIconComponent = __decorate([
6661
+ core.Component({
6662
+ 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>"
6663
+ })
6664
+ ], IAssistIconComponent);
6665
+ return IAssistIconComponent;
6666
+ }());
6784
6667
 
6785
- var FileUploadPermissions;
6786
- (function (FileUploadPermissions) {
6787
- FileUploadPermissions["Add"] = "add";
6788
- FileUploadPermissions["Read"] = "read";
6789
- FileUploadPermissions["Remove"] = "remove";
6790
- })(FileUploadPermissions || (FileUploadPermissions = {}));
6791
- var ALL_PERMISSIONS = [
6792
- FileUploadPermissions.Add,
6793
- FileUploadPermissions.Read,
6794
- FileUploadPermissions.Remove,
6795
- ];
6668
+ var SeniorIconComponent = /** @class */ (function () {
6669
+ function SeniorIconComponent() {
6670
+ }
6671
+ SeniorIconComponent = __decorate([
6672
+ core.Component({
6673
+ 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"
6674
+ })
6675
+ ], SeniorIconComponent);
6676
+ return SeniorIconComponent;
6677
+ }());
6796
6678
 
6797
- var StorageUnits = {
6798
- KB: 1024,
6799
- MB: Math.pow(1024, 2),
6800
- GB: Math.pow(1024, 3),
6801
- };
6679
+ var SVGFactoryIcons;
6680
+ (function (SVGFactoryIcons) {
6681
+ SVGFactoryIcons["IAssist"] = "iassist";
6682
+ SVGFactoryIcons["Senior"] = "senior";
6683
+ })(SVGFactoryIcons || (SVGFactoryIcons = {}));
6802
6684
 
6803
- var FileItemComponent = /** @class */ (function () {
6804
- function FileItemComponent(localeService) {
6805
- this.localeService = localeService;
6806
- this.canReadFiles = true;
6807
- this.canRemoveFiles = true;
6808
- this.cancelUpload = new core.EventEmitter();
6809
- this.removeFile = new core.EventEmitter();
6685
+ var SVGFactoryDirective = /** @class */ (function () {
6686
+ function SVGFactoryDirective(viewContainerRef, componentFactoryResolver, cdr) {
6687
+ this.viewContainerRef = viewContainerRef;
6688
+ this.componentFactoryResolver = componentFactoryResolver;
6689
+ this.cdr = cdr;
6690
+ this._iconClass = this._getIconClass(SVGFactoryIcons.Senior);
6810
6691
  }
6811
- FileItemComponent.prototype.ngOnInit = function () {
6812
- this._getLocale();
6813
- };
6814
- FileItemComponent.prototype.ngAfterContentInit = function () {
6815
- this._update();
6816
- };
6817
- FileItemComponent.prototype.onResize = function () {
6818
- this._update();
6692
+ Object.defineProperty(SVGFactoryDirective.prototype, "sSVGFactory", {
6693
+ set: function (icon) {
6694
+ this._iconClass = this._getIconClass(icon);
6695
+ },
6696
+ enumerable: true,
6697
+ configurable: true
6698
+ });
6699
+ SVGFactoryDirective.prototype.ngAfterViewInit = function () {
6700
+ this._createComponent();
6819
6701
  };
6820
- FileItemComponent.prototype._update = function () {
6821
- var windowWidth = window.innerWidth;
6822
- this.isSmallDevice = windowWidth <= Breakpoints.SM_MAX;
6702
+ SVGFactoryDirective.prototype._createComponent = function () {
6703
+ var factory = this.componentFactoryResolver.resolveComponentFactory(this._iconClass);
6704
+ this.viewContainerRef.clear();
6705
+ this.viewContainerRef.createComponent(factory);
6706
+ this.cdr.detectChanges();
6823
6707
  };
6824
- FileItemComponent.prototype.simplifySize = function (size) {
6825
- var unit;
6826
- var convertedSize;
6827
- if (size < StorageUnits.KB) {
6828
- convertedSize = size;
6829
- unit = "bytes";
6830
- }
6831
- else if (size < StorageUnits.MB) {
6832
- convertedSize = size / StorageUnits.KB;
6833
- unit = "KB";
6834
- }
6835
- else if (size < StorageUnits.GB) {
6836
- convertedSize = size / StorageUnits.MB;
6837
- unit = "MB";
6838
- }
6839
- else {
6840
- convertedSize = size / StorageUnits.GB;
6841
- unit = "GB";
6708
+ SVGFactoryDirective.prototype._getIconClass = function (icon) {
6709
+ switch (icon) {
6710
+ case SVGFactoryIcons.IAssist:
6711
+ return IAssistIconComponent;
6712
+ case SVGFactoryIcons.Senior:
6713
+ default:
6714
+ return SeniorIconComponent;
6842
6715
  }
6843
- return convertedSize.toLocaleString(this._locale, { maximumFractionDigits: 2 }) + " " + unit;
6844
- };
6845
- FileItemComponent.prototype._getLocale = function () {
6846
- var _this = this;
6847
- this.localeService
6848
- .getLocale()
6849
- .pipe(operators.first())
6850
- .subscribe(function (locale) {
6851
- _this._locale = locale;
6852
- });
6853
6716
  };
6854
- FileItemComponent.ctorParameters = function () { return [
6855
- { type: LocaleService }
6717
+ SVGFactoryDirective.ctorParameters = function () { return [
6718
+ { type: core.ViewContainerRef },
6719
+ { type: core.ComponentFactoryResolver },
6720
+ { type: core.ChangeDetectorRef }
6856
6721
  ]; };
6857
6722
  __decorate([
6858
- core.Input()
6859
- ], FileItemComponent.prototype, "id", void 0);
6860
- __decorate([
6861
- core.Input()
6862
- ], FileItemComponent.prototype, "file", void 0);
6863
- __decorate([
6864
- core.Input()
6865
- ], FileItemComponent.prototype, "canReadFiles", void 0);
6866
- __decorate([
6867
- core.Input()
6868
- ], FileItemComponent.prototype, "canRemoveFiles", void 0);
6869
- __decorate([
6870
- core.Input()
6871
- ], FileItemComponent.prototype, "cancelLabel", void 0);
6872
- __decorate([
6873
- core.Input()
6874
- ], FileItemComponent.prototype, "removeLabel", void 0);
6875
- __decorate([
6876
- core.Input()
6877
- ], FileItemComponent.prototype, "ariaLabelProgress", void 0);
6878
- __decorate([
6879
- core.Input()
6880
- ], FileItemComponent.prototype, "successTooltip", void 0);
6881
- __decorate([
6882
- core.Input()
6883
- ], FileItemComponent.prototype, "ariaLabelSuccess", void 0);
6884
- __decorate([
6885
- core.Output()
6886
- ], FileItemComponent.prototype, "cancelUpload", void 0);
6887
- __decorate([
6888
- core.Output()
6889
- ], FileItemComponent.prototype, "removeFile", void 0);
6890
- __decorate([
6891
- core.HostListener("window:resize")
6892
- ], FileItemComponent.prototype, "onResize", null);
6893
- FileItemComponent = __decorate([
6723
+ core.Input("sSVGFactory")
6724
+ ], SVGFactoryDirective.prototype, "sSVGFactory", null);
6725
+ SVGFactoryDirective = __decorate([
6726
+ core.Directive({
6727
+ selector: "[sSVGFactory]",
6728
+ })
6729
+ ], SVGFactoryDirective);
6730
+ return SVGFactoryDirective;
6731
+ }());
6732
+
6733
+ var SVGFactoryModule = /** @class */ (function () {
6734
+ function SVGFactoryModule() {
6735
+ }
6736
+ SVGFactoryModule = __decorate([
6737
+ core.NgModule({
6738
+ imports: [common.CommonModule],
6739
+ declarations: [
6740
+ SVGFactoryDirective,
6741
+ IAssistIconComponent,
6742
+ SeniorIconComponent,
6743
+ ],
6744
+ exports: [SVGFactoryDirective],
6745
+ })
6746
+ ], SVGFactoryModule);
6747
+ return SVGFactoryModule;
6748
+ }());
6749
+
6750
+ var DotsIndicatorComponent = /** @class */ (function () {
6751
+ function DotsIndicatorComponent() {
6752
+ }
6753
+ DotsIndicatorComponent = __decorate([
6894
6754
  core.Component({
6895
- selector: "s-file-item",
6896
- template: "<div [id]=\"id\" class=\"file-item-container\">\n <div class=\"file-info\">\n <ng-container *ngIf=\"canReadFiles; then fileNameUrl; else fileName\"></ng-container>\n <ng-template #fileNameUrl>\n <a\n class=\"file-name file-name--link\"\n tabindex=\"0\"\n [href]=\"file.objectURL\"\n download>\n {{ file.name }}\n </a>\n </ng-template>\n <ng-template #fileName>\n <span\n *ngIf=\"!canReadFiles\"\n class=\"file-name\">\n {{ file.name }}\n </span>\n </ng-template>\n <span class=\"file-size\">\n {{ simplifySize(file.size) }}\n </span>\n <div\n *ngIf=\"file.isUploading && !isSmallDevice\"\n class=\"progressbar\"\n [attr.aria-label]=\"ariaLabelProgress || 'platform.angular_components.loading_file' | translate\">\n <s-progressbar\n [value]=\"file.progress\"\n activeColor=\"blue\"\n [showValue]=\"true\">\n </s-progressbar>\n </div>\n <span\n *ngIf=\"file.isUploading && isSmallDevice\" \n class=\"fas fa-circle-notch fa-spin\"\n [attr.aria-label]=\"ariaLabelProgress || 'platform.angular_components.loading_file' | translate\">\n </span>\n\n <span\n *ngIf=\"!file.isUploading && !file.error\"\n class=\"status-icon status-icon--success fas fa-check\"\n [attr.aria-label]=\"ariaLabelSuccess || successTooltip || 'platform.angular_components.file_attached_successfully' | translate\"\n [sTooltip]=\"successTooltip || 'platform.angular_components.file_attached_successfully' | translate\">\n </span>\n <span\n *ngIf=\"!file.isUploading && file.error\"\n class=\"status-icon status-icon--fail fas fa-times\"\n [attr.aria-label]=\"file.error?.message\"\n [sTooltip]=\"file.error?.message\">\n </span>\n </div>\n <button\n *ngIf=\"file.isUploading\"\n class=\"file-option file-option--cancel\"\n (click)=\"cancelUpload.emit(file)\">\n {{ cancelLabel || \"platform.angular_components.cancel\" | translate }}\n </button>\n <button\n *ngIf=\"canRemoveFiles && !file.isUploading\"\n class=\"file-option file-option--remove\"\n (click)=\"removeFile.emit(file)\">\n {{ removeLabel || \"platform.angular_components.remove\" | translate }}\n </button>\n</div>\n",
6897
- styles: [".file-item-container{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:16px;padding:16px}.file-item-container .file-info{color:#212533;display:-ms-flexbox;display:flex;font-family:\"Open Sans\",sans-serif;font-size:14px;gap:16px;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}.file-item-container .file-info .file-name{-ms-flex-positive:1;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-item-container .file-info .file-name--link{color:#428bca;text-decoration:none}.file-item-container .file-info .file-size{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-item-container .progressbar{width:20%}.file-item-container .status-icon{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;font-size:12px}.file-item-container .status-icon--success{color:#0c9348}.file-item-container .status-icon--fail{color:#c13018}.file-item-container .file-option{background-color:transparent;border:none;color:#428bca;cursor:pointer;font-family:\"Open Sans\",sans-serif;font-size:14px;overflow:hidden;text-overflow:ellipsis;max-width:100%}@media screen and (max-width:600px){.file-item-container{-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:column;flex-direction:column}}"]
6755
+ selector: "s-dots-indicator",
6756
+ 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",
6757
+ 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)}}"]
6898
6758
  })
6899
- ], FileItemComponent);
6900
- return FileItemComponent;
6759
+ ], DotsIndicatorComponent);
6760
+ return DotsIndicatorComponent;
6901
6761
  }());
6902
6762
 
6903
- var moment$3 = moment_;
6904
- var FileUploadService = /** @class */ (function () {
6905
- function FileUploadService() {
6906
- this.BASE_URL_FIELD_CUSTOMIZATION = "platform/field_customization";
6907
- this.TOKEN = new AbortController();
6763
+ var LoadingIndicatorComponent = /** @class */ (function () {
6764
+ function LoadingIndicatorComponent() {
6908
6765
  }
6909
- FileUploadService.prototype.getMetadataCustomField = function (request) {
6910
- return __awaiter(this, void 0, void 0, function () {
6911
- return __generator(this, function (_a) {
6912
- return [2 /*return*/, CustomHttpClient.POST(this.BASE_URL_FIELD_CUSTOMIZATION + "/queries/getFileMetadata", request, { signal: this.TOKEN.signal })];
6913
- });
6914
- });
6915
- };
6916
- FileUploadService = __decorate([
6917
- core.Injectable()
6918
- ], FileUploadService);
6919
- return FileUploadService;
6766
+ LoadingIndicatorComponent = __decorate([
6767
+ core.Component({
6768
+ selector: "s-logo-indicator",
6769
+ template: "<div class=\"logo-indicator\">\n <span *sSVGFactory=\"'senior'\"></span>\n</div>\n",
6770
+ 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)}}"]
6771
+ })
6772
+ ], LoadingIndicatorComponent);
6773
+ return LoadingIndicatorComponent;
6920
6774
  }());
6921
6775
 
6922
- var moment$4 = moment_;
6923
- var FileUploadComponent = /** @class */ (function () {
6924
- function FileUploadComponent(sanitizer, fileUploadService, translate) {
6925
- this.sanitizer = sanitizer;
6926
- this.fileUploadService = fileUploadService;
6927
- this.translate = translate;
6928
- this.ADD_PERMISSION = FileUploadPermissions.Add;
6929
- this.READ_PERMISSION = FileUploadPermissions.Read;
6930
- this.REMOVE_PERMISSION = FileUploadPermissions.Remove;
6931
- this.id = "s-file-upload-" + FileUploadComponent_1.nextId++;
6932
- this.supportedExtensions = [];
6933
- this.disabled = false;
6934
- this.showFileUploadDate = false;
6935
- this.permissions = ALL_PERMISSIONS;
6936
- this.uploadHandler = new core.EventEmitter();
6937
- this.removeFile = new core.EventEmitter();
6938
- this.cancelUpload = new core.EventEmitter();
6939
- this.downloadFile = new core.EventEmitter();
6940
- this.validateErrors = new core.EventEmitter();
6941
- this.inputValue = "";
6942
- this._files = [];
6943
- this.ngUsubscribe = new rxjs.Subject();
6776
+ var LoadingStateIndicators;
6777
+ (function (LoadingStateIndicators) {
6778
+ LoadingStateIndicators["Dots"] = "dots";
6779
+ LoadingStateIndicators["Logo"] = "logo";
6780
+ })(LoadingStateIndicators || (LoadingStateIndicators = {}));
6781
+
6782
+ var LoadingStateComponent = /** @class */ (function () {
6783
+ function LoadingStateComponent() {
6784
+ this.indicator = LoadingStateIndicators.Dots;
6785
+ this.id = "s-loading-state-" + LoadingStateComponent_1.nextId++;
6786
+ this.BLOCK_TIMEOUT_VALUE = 300;
6787
+ this.UNBLOCK_TIMEOUT_VALUE = 200;
6944
6788
  }
6945
- FileUploadComponent_1 = FileUploadComponent;
6946
- Object.defineProperty(FileUploadComponent.prototype, "files", {
6789
+ LoadingStateComponent_1 = LoadingStateComponent;
6790
+ Object.defineProperty(LoadingStateComponent.prototype, "loading", {
6947
6791
  get: function () {
6948
- return this._files;
6949
- },
6950
- set: function (files) {
6951
- var _this = this;
6952
- var _a;
6953
- if (this.showFileUploadDate && ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId)) {
6954
- this._getUploadDate(files);
6955
- }
6956
- this._files = files.map(function (file) {
6957
- if (_this._isImage(file)) {
6958
- file.objectURL = _this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(file));
6959
- }
6960
- return file;
6961
- });
6792
+ return this._loading;
6962
6793
  },
6963
- enumerable: true,
6964
- configurable: true
6965
- });
6966
- FileUploadComponent.prototype.ngOnInit = function () {
6967
- this.supportedExtensions = this.supportedExtensions.map(function (extension) { return extension.replace(".", "").toLowerCase(); });
6968
- };
6969
- FileUploadComponent.prototype.ngOnDestroy = function () {
6970
- this.ngUsubscribe.next();
6971
- this.ngUsubscribe.complete();
6972
- };
6973
- FileUploadComponent.prototype.onFileSelect = function (files) {
6974
- var e_1, _a;
6975
- var newFiles = [];
6976
- if (!this.multiple) {
6977
- this.files = [];
6978
- }
6979
- if (this._isFileLimitExceeded(files)) {
6980
- this.validateErrors.emit({
6981
- files: files,
6982
- validation: exports.ValidateErrors.MAX_FILE_LIMIT,
6983
- });
6984
- this._clearFileInput();
6985
- return;
6986
- }
6987
- if (this._isFileCombinedSizeExceeded(files)) {
6988
- this.validateErrors.emit({
6989
- files: files,
6990
- validation: exports.ValidateErrors.MAX_COMBINED_FILE_SIZE,
6991
- });
6992
- this._clearFileInput();
6993
- return;
6994
- }
6995
- try {
6996
- for (var files_1 = __values(files), files_1_1 = files_1.next(); !files_1_1.done; files_1_1 = files_1.next()) {
6997
- var file = files_1_1.value;
6998
- if (this._isUnsupportedFileExtension(file)) {
6999
- this.validateErrors.emit({
7000
- files: [file],
7001
- validation: exports.ValidateErrors.UNSUPPORTED_EXTENSION,
7002
- });
7003
- continue;
7004
- }
7005
- if (this._isFileSizeExceeded(file)) {
7006
- this.validateErrors.emit({
7007
- files: [file],
7008
- validation: exports.ValidateErrors.MAX_FILE_SIZE,
7009
- });
7010
- continue;
7011
- }
7012
- newFiles.push(file);
7013
- }
7014
- }
7015
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
7016
- finally {
7017
- try {
7018
- if (files_1_1 && !files_1_1.done && (_a = files_1.return)) _a.call(files_1);
7019
- }
7020
- finally { if (e_1) throw e_1.error; }
7021
- }
7022
- if (newFiles.length) {
7023
- this.files = this.files.concat(newFiles);
7024
- this.uploadHandler.emit({
7025
- files: newFiles,
7026
- });
7027
- }
7028
- this._clearFileInput();
7029
- };
7030
- FileUploadComponent.prototype.onRemoveFile = function (file) {
7031
- var fileIndex = this.files.indexOf(file);
7032
- var removedFiles = this.files.splice(fileIndex, 1);
7033
- if (removedFiles.length) {
7034
- this.removeFile.emit({ file: file });
7035
- }
7036
- };
7037
- FileUploadComponent.prototype.onCancelUpload = function (file) {
7038
- var index = this.files.indexOf(file);
7039
- if (index != -1) {
7040
- this.files.splice(index, 1);
7041
- this.cancelUpload.emit(index);
6794
+ set: function (loading) {
6795
+ this._loading = loading;
6796
+ loading ? this.block() : this.unblock();
6797
+ },
6798
+ enumerable: true,
6799
+ configurable: true
6800
+ });
6801
+ LoadingStateComponent.prototype.block = function () {
6802
+ var _this = this;
6803
+ if (this.unblockTimeoutId) {
6804
+ clearTimeout(this.unblockTimeoutId);
6805
+ this.unblockTimeoutId = undefined;
7042
6806
  }
7043
- this._clearFileInput();
7044
- };
7045
- FileUploadComponent.prototype.onDowloadFile = function (index) {
7046
- this.downloadFile.emit({
7047
- index: index,
7048
- anchor: this.anchor,
7049
- });
7050
- };
7051
- FileUploadComponent.prototype._isImage = function (file) {
7052
- return /^image\//.test(file.type);
7053
- };
7054
- FileUploadComponent.prototype._isFileLimitExceeded = function (files) {
7055
- if (!this.fileLimit) {
7056
- return false;
6807
+ if (!this.blockTimeoutId) {
6808
+ this.blockTimeoutId = setTimeout(function () {
6809
+ _this.blocking = true;
6810
+ _this.blockTimeoutId = undefined;
6811
+ }, this.BLOCK_TIMEOUT_VALUE);
7057
6812
  }
7058
- return this.files.length + files.length > this.fileLimit;
7059
6813
  };
7060
- FileUploadComponent.prototype._isFileCombinedSizeExceeded = function (files) {
7061
- if (!this.maxCombinedFileSize) {
7062
- return false;
6814
+ LoadingStateComponent.prototype.unblock = function () {
6815
+ var _this = this;
6816
+ if (this.blockTimeoutId) {
6817
+ clearTimeout(this.blockTimeoutId);
6818
+ this.blockTimeoutId = undefined;
7063
6819
  }
7064
- var filesList = __spread(files, this.files);
7065
- var combinedSize = filesList.reduce(function (combinedSize, file) { return combinedSize + file.size; }, 0);
7066
- return combinedSize > this.maxCombinedFileSize;
7067
- };
7068
- FileUploadComponent.prototype._isFileSizeExceeded = function (file) {
7069
- if (!this.maxFileSize) {
7070
- return false;
6820
+ if (!this.unblockTimeoutId) {
6821
+ this.unblockTimeoutId = setTimeout(function () {
6822
+ _this.blocking = false;
6823
+ _this.unblockTimeoutId = undefined;
6824
+ }, this.UNBLOCK_TIMEOUT_VALUE);
7071
6825
  }
7072
- return file.size > this.maxFileSize;
7073
6826
  };
7074
- FileUploadComponent.prototype._isUnsupportedFileExtension = function (file) {
7075
- var _a;
7076
- if ((_a = this.supportedExtensions) === null || _a === void 0 ? void 0 : _a.length) {
7077
- var extension = file.name
7078
- .split(".")
7079
- .pop()
7080
- .toLowerCase();
7081
- return !this.supportedExtensions.includes(extension);
6827
+ LoadingStateComponent.prototype.ngOnDestroy = function () {
6828
+ if (this.blockTimeoutId) {
6829
+ clearTimeout(this.blockTimeoutId);
7082
6830
  }
7083
- return false;
7084
- };
7085
- FileUploadComponent.prototype._clearFileInput = function () {
7086
- this.inputUpload.nativeElement.value = null;
7087
- };
7088
- FileUploadComponent.prototype._getUploadDate = function (blobFile) {
7089
- var _this = this;
7090
- if (!blobFile) {
7091
- return;
6831
+ if (this.unblockTimeoutId) {
6832
+ clearTimeout(this.unblockTimeoutId);
7092
6833
  }
7093
- this.fileUploadService
7094
- .getMetadataCustomField({ objectId: blobFile[0].objectId })
7095
- .then(function (metadata) { return _this._setModifiedDate(metadata); });
7096
- };
7097
- FileUploadComponent.prototype._setModifiedDate = function (metadata) {
7098
- var hour = moment$4(metadata.modified).format("HH");
7099
- var minutes = moment$4(metadata.modified).format("mm");
7100
- var day = moment$4(metadata.modified).format("DD");
7101
- var month = moment$4(metadata.modified).format("MM");
7102
- var fullYear = moment$4(metadata.modified).format("YYYY");
7103
- this.modifiedDate = this.translate.instant("platform.angular_components.date_modified_custom_blob", {
7104
- hour: hour,
7105
- minutes: minutes,
7106
- day: day,
7107
- month: month,
7108
- fullYear: fullYear,
7109
- });
7110
6834
  };
7111
- var FileUploadComponent_1;
7112
- FileUploadComponent.nextId = 0;
7113
- FileUploadComponent.ctorParameters = function () { return [
7114
- { type: platformBrowser.DomSanitizer },
7115
- { type: FileUploadService },
7116
- { type: core$1.TranslateService }
7117
- ]; };
7118
- __decorate([
7119
- core.ViewChild("inputUpload", { static: false })
7120
- ], FileUploadComponent.prototype, "inputUpload", void 0);
7121
- __decorate([
7122
- core.ViewChild("anchor", { static: false })
7123
- ], FileUploadComponent.prototype, "anchor", void 0);
7124
- __decorate([
7125
- core.Input()
7126
- ], FileUploadComponent.prototype, "id", void 0);
7127
- __decorate([
7128
- core.Input()
7129
- ], FileUploadComponent.prototype, "chooseLabel", void 0);
7130
- __decorate([
7131
- core.Input()
7132
- ], FileUploadComponent.prototype, "removeLabel", void 0);
7133
- __decorate([
7134
- core.Input()
7135
- ], FileUploadComponent.prototype, "cancelLabel", void 0);
7136
- __decorate([
7137
- core.Input()
7138
- ], FileUploadComponent.prototype, "successTooltip", void 0);
7139
- __decorate([
7140
- core.Input()
7141
- ], FileUploadComponent.prototype, "multiple", void 0);
7142
- __decorate([
7143
- core.Input()
7144
- ], FileUploadComponent.prototype, "accept", void 0);
7145
- __decorate([
7146
- core.Input()
7147
- ], FileUploadComponent.prototype, "supportedExtensions", void 0);
7148
- __decorate([
7149
- core.Input()
7150
- ], FileUploadComponent.prototype, "ariaLabelFileName", void 0);
7151
- __decorate([
7152
- core.Input()
7153
- ], FileUploadComponent.prototype, "maxFileSize", void 0);
7154
- __decorate([
7155
- core.Input()
7156
- ], FileUploadComponent.prototype, "maxCombinedFileSize", void 0);
7157
- __decorate([
7158
- core.Input()
7159
- ], FileUploadComponent.prototype, "fileLimit", void 0);
7160
- __decorate([
7161
- core.Input()
7162
- ], FileUploadComponent.prototype, "ariaLabelProgress", void 0);
7163
- __decorate([
7164
- core.Input()
7165
- ], FileUploadComponent.prototype, "ariaLabelSuccess", void 0);
7166
- __decorate([
7167
- core.Input()
7168
- ], FileUploadComponent.prototype, "ariaLabelError", void 0);
7169
- __decorate([
7170
- core.Input()
7171
- ], FileUploadComponent.prototype, "ariaLabelRemove", void 0);
7172
- __decorate([
7173
- core.Input()
7174
- ], FileUploadComponent.prototype, "formGroup", void 0);
6835
+ var LoadingStateComponent_1;
6836
+ LoadingStateComponent.nextId = 0;
7175
6837
  __decorate([
7176
6838
  core.Input()
7177
- ], FileUploadComponent.prototype, "disabled", void 0);
6839
+ ], LoadingStateComponent.prototype, "indicator", void 0);
7178
6840
  __decorate([
7179
6841
  core.Input()
7180
- ], FileUploadComponent.prototype, "showFileUploadDate", void 0);
6842
+ ], LoadingStateComponent.prototype, "id", void 0);
7181
6843
  __decorate([
7182
6844
  core.Input()
7183
- ], FileUploadComponent.prototype, "permissions", void 0);
6845
+ ], LoadingStateComponent.prototype, "blockWindow", void 0);
7184
6846
  __decorate([
7185
6847
  core.Input()
7186
- ], FileUploadComponent.prototype, "files", null);
7187
- __decorate([
7188
- core.Output()
7189
- ], FileUploadComponent.prototype, "uploadHandler", void 0);
7190
- __decorate([
7191
- core.Output()
7192
- ], FileUploadComponent.prototype, "removeFile", void 0);
7193
- __decorate([
7194
- core.Output()
7195
- ], FileUploadComponent.prototype, "cancelUpload", void 0);
7196
- __decorate([
7197
- core.Output()
7198
- ], FileUploadComponent.prototype, "downloadFile", void 0);
7199
- __decorate([
7200
- core.Output()
7201
- ], FileUploadComponent.prototype, "validateErrors", void 0);
7202
- FileUploadComponent = FileUploadComponent_1 = __decorate([
7203
- core.Component({
7204
- selector: "s-file-upload",
7205
- 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",
7206
- 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}"]
7207
- })
7208
- ], FileUploadComponent);
7209
- return FileUploadComponent;
7210
- }());
7211
-
7212
- var FileUploadModule = /** @class */ (function () {
7213
- function FileUploadModule() {
7214
- }
7215
- FileUploadModule = __decorate([
7216
- core.NgModule({
7217
- imports: [
7218
- common.CommonModule,
7219
- http.HttpClientModule,
7220
- ButtonModule,
7221
- TooltipModule,
7222
- ProgressBarModule,
7223
- core$1.TranslateModule,
7224
- ],
7225
- declarations: [
7226
- FileUploadComponent,
7227
- FileItemComponent,
7228
- ],
7229
- providers: [
7230
- FileUploadService,
7231
- LocaleService,
7232
- ],
7233
- exports: [FileUploadComponent],
7234
- })
7235
- ], FileUploadModule);
7236
- return FileUploadModule;
7237
- }());
7238
-
7239
- var InfoSignComponent = /** @class */ (function () {
7240
- function InfoSignComponent() {
7241
- }
7242
- InfoSignComponent = __decorate([
6848
+ ], LoadingStateComponent.prototype, "loading", null);
6849
+ LoadingStateComponent = LoadingStateComponent_1 = __decorate([
7243
6850
  core.Component({
7244
- selector: "s-info-sign-component",
7245
- 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>",
7246
- 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}"]
6851
+ selector: "s-loading-state",
6852
+ 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>",
6853
+ 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}"]
7247
6854
  })
7248
- ], InfoSignComponent);
7249
- return InfoSignComponent;
6855
+ ], LoadingStateComponent);
6856
+ return LoadingStateComponent;
7250
6857
  }());
7251
6858
 
7252
- var InfoSignDirective = /** @class */ (function () {
7253
- function InfoSignDirective(templateRef, viewContainer, componentFactoryResolver) {
7254
- this.templateRef = templateRef;
7255
- this.viewContainer = viewContainer;
6859
+ var LoadingStateDirective = /** @class */ (function () {
6860
+ function LoadingStateDirective(target, template, componentFactoryResolver, cdr) {
6861
+ this.target = target;
6862
+ this.template = template;
7256
6863
  this.componentFactoryResolver = componentFactoryResolver;
7257
- this.displayTime = 5000;
6864
+ this.cdr = cdr;
6865
+ this._loading = false;
6866
+ this.indicator = LoadingStateIndicators.Dots;
7258
6867
  }
7259
- InfoSignDirective.prototype.ngOnInit = function () {
7260
- if (!this.componentRef && this.sInfoSign) {
7261
- this.viewContainer.clear();
7262
- var componentFactory = this.componentFactoryResolver.resolveComponentFactory(InfoSignComponent);
7263
- this.componentRef = this.viewContainer.createComponent(componentFactory);
7264
- this.componentRef.instance.templateRef = this.templateRef;
7265
- this.componentRef.instance.tooltip = this.sInfoSign;
7266
- this.componentRef.instance.displayTime = this.displayTime;
7267
- }
7268
- else if (this.componentRef && this.sInfoSign) {
7269
- this.componentRef.instance.tooltip = this.sInfoSign;
7270
- }
7271
- else {
7272
- this.viewContainer.clear();
7273
- this.viewContainer.createEmbeddedView(this.templateRef);
7274
- }
6868
+ Object.defineProperty(LoadingStateDirective.prototype, "sLoadingState", {
6869
+ set: function (value) {
6870
+ if (typeof value === "boolean") {
6871
+ this._loading = value;
6872
+ this.indicator = LoadingStateIndicators.Dots;
6873
+ }
6874
+ else if (typeof value === "object") {
6875
+ this._loading = value.loading;
6876
+ this.indicator = value.indicator || LoadingStateIndicators.Dots;
6877
+ }
6878
+ if (this.loaderComponent) {
6879
+ this.loaderComponent.instance.loading = this._loading;
6880
+ this.loaderComponent.instance.indicator = this.indicator;
6881
+ }
6882
+ },
6883
+ enumerable: true,
6884
+ configurable: true
6885
+ });
6886
+ LoadingStateDirective.prototype.ngAfterViewInit = function () {
6887
+ this.createComponent();
7275
6888
  };
7276
- InfoSignDirective.prototype.ngOnDestroy = function () {
7277
- if (this.componentRef) {
7278
- this.componentRef.destroy();
6889
+ LoadingStateDirective.prototype.createComponent = function () {
6890
+ var factory = this.componentFactoryResolver.resolveComponentFactory(LoadingStateComponent);
6891
+ this.loaderComponent = this.target.createComponent(factory);
6892
+ this.loaderComponent.instance.contents = this.template;
6893
+ this.loaderComponent.instance.loading = this._loading;
6894
+ this.loaderComponent.instance.indicator = this.indicator;
6895
+ this.cdr.detectChanges();
6896
+ };
6897
+ LoadingStateDirective.prototype.ngOnDestroy = function () {
6898
+ if (this.loaderComponent) {
6899
+ this.loaderComponent.destroy();
7279
6900
  }
7280
6901
  };
7281
- InfoSignDirective.ctorParameters = function () { return [
7282
- { type: core.TemplateRef },
6902
+ LoadingStateDirective.ctorParameters = function () { return [
7283
6903
  { type: core.ViewContainerRef },
7284
- { type: core.ComponentFactoryResolver }
6904
+ { type: core.TemplateRef },
6905
+ { type: core.ComponentFactoryResolver },
6906
+ { type: core.ChangeDetectorRef }
7285
6907
  ]; };
7286
6908
  __decorate([
7287
- core.Input()
7288
- ], InfoSignDirective.prototype, "sInfoSign", void 0);
7289
- __decorate([
7290
- core.Input('sInfoSignDisplayTime')
7291
- ], InfoSignDirective.prototype, "displayTime", void 0);
7292
- InfoSignDirective = __decorate([
6909
+ core.Input("sLoadingState")
6910
+ ], LoadingStateDirective.prototype, "sLoadingState", null);
6911
+ LoadingStateDirective = __decorate([
7293
6912
  core.Directive({
7294
- selector: "[sInfoSign]",
6913
+ selector: "[sLoadingState]",
7295
6914
  })
7296
- ], InfoSignDirective);
7297
- return InfoSignDirective;
6915
+ ], LoadingStateDirective);
6916
+ return LoadingStateDirective;
7298
6917
  }());
7299
6918
 
7300
- var InfoSignModule = /** @class */ (function () {
7301
- function InfoSignModule() {
6919
+ var LoadingStateModule = /** @class */ (function () {
6920
+ function LoadingStateModule() {
7302
6921
  }
7303
- InfoSignModule = __decorate([
6922
+ LoadingStateModule = __decorate([
7304
6923
  core.NgModule({
7305
6924
  imports: [
7306
- TooltipModule,
7307
6925
  common.CommonModule,
6926
+ SVGFactoryModule,
7308
6927
  ],
7309
6928
  declarations: [
7310
- InfoSignDirective,
7311
- InfoSignComponent,
6929
+ LoadingStateComponent,
6930
+ LoadingStateDirective,
6931
+ DotsIndicatorComponent,
6932
+ LoadingIndicatorComponent,
7312
6933
  ],
7313
- exports: [InfoSignDirective],
7314
- entryComponents: [InfoSignComponent],
6934
+ exports: [
6935
+ LoadingStateComponent,
6936
+ LoadingStateDirective,
6937
+ ],
6938
+ entryComponents: [LoadingStateComponent],
7315
6939
  })
7316
- ], InfoSignModule);
7317
- return InfoSignModule;
6940
+ ], LoadingStateModule);
6941
+ return LoadingStateModule;
7318
6942
  }());
7319
6943
 
7320
- var IAssistIconComponent = /** @class */ (function () {
7321
- function IAssistIconComponent() {
6944
+ var LocalizedBignumberPipe = /** @class */ (function () {
6945
+ function LocalizedBignumberPipe(localeService) {
6946
+ this.localeService = localeService;
7322
6947
  }
7323
- IAssistIconComponent = __decorate([
7324
- core.Component({
7325
- 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>"
6948
+ LocalizedBignumberPipe.prototype.transform = function (value, options) {
6949
+ return value !== undefined && value !== null ? this.applyMask(value, options) : rxjs.of(value);
6950
+ };
6951
+ LocalizedBignumberPipe.prototype.applyMask = function (value, options) {
6952
+ return this.localeService.get().pipe(operators.map(function (localeConfig) {
6953
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
6954
+ var configs = {
6955
+ 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$",
6956
+ 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 : ".",
6957
+ 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 : ",",
6958
+ scale: (_k = options === null || options === void 0 ? void 0 : options.scale) !== null && _k !== void 0 ? _k : 2,
6959
+ allowNegative: (_l = options === null || options === void 0 ? void 0 : options.allowNegative) !== null && _l !== void 0 ? _l : true
6960
+ };
6961
+ var isNumber = !(new BigNumber__default(value).isNaN());
6962
+ return ng2CurrencyMask.applyMask(value, configs, isNumber);
6963
+ }));
6964
+ };
6965
+ LocalizedBignumberPipe.ctorParameters = function () { return [
6966
+ { type: LocaleService }
6967
+ ]; };
6968
+ LocalizedBignumberPipe = __decorate([
6969
+ core.Pipe({
6970
+ name: "localizedBignumber",
7326
6971
  })
7327
- ], IAssistIconComponent);
7328
- return IAssistIconComponent;
6972
+ ], LocalizedBignumberPipe);
6973
+ return LocalizedBignumberPipe;
7329
6974
  }());
7330
6975
 
7331
- var SeniorIconComponent = /** @class */ (function () {
7332
- function SeniorIconComponent() {
6976
+ var LocalizedBignumberImpurePipe = /** @class */ (function (_super) {
6977
+ __extends(LocalizedBignumberImpurePipe, _super);
6978
+ function LocalizedBignumberImpurePipe() {
6979
+ return _super !== null && _super.apply(this, arguments) || this;
7333
6980
  }
7334
- SeniorIconComponent = __decorate([
7335
- core.Component({
7336
- 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"
6981
+ LocalizedBignumberImpurePipe.prototype.transform = function (value, options) {
6982
+ return _super.prototype.transform.call(this, value, options);
6983
+ };
6984
+ LocalizedBignumberImpurePipe = __decorate([
6985
+ core.Pipe({
6986
+ name: "localizedBignumberImpure",
6987
+ pure: false,
7337
6988
  })
7338
- ], SeniorIconComponent);
7339
- return SeniorIconComponent;
7340
- }());
7341
-
7342
- var SVGFactoryIcons;
7343
- (function (SVGFactoryIcons) {
7344
- SVGFactoryIcons["IAssist"] = "iassist";
7345
- SVGFactoryIcons["Senior"] = "senior";
7346
- })(SVGFactoryIcons || (SVGFactoryIcons = {}));
6989
+ ], LocalizedBignumberImpurePipe);
6990
+ return LocalizedBignumberImpurePipe;
6991
+ }(LocalizedBignumberPipe));
7347
6992
 
7348
- var SVGFactoryDirective = /** @class */ (function () {
7349
- function SVGFactoryDirective(viewContainerRef, componentFactoryResolver, cdr) {
7350
- this.viewContainerRef = viewContainerRef;
7351
- this.componentFactoryResolver = componentFactoryResolver;
7352
- this.cdr = cdr;
7353
- this._iconClass = this._getIconClass(SVGFactoryIcons.Senior);
6993
+ var LocalizedCurrencyPipeOptions = /** @class */ (function (_super) {
6994
+ __extends(LocalizedCurrencyPipeOptions, _super);
6995
+ function LocalizedCurrencyPipeOptions(config) {
6996
+ if (config === void 0) { config = {}; }
6997
+ var _this = _super.call(this, config) || this;
6998
+ _this.scale = 2;
6999
+ return _this;
7354
7000
  }
7355
- Object.defineProperty(SVGFactoryDirective.prototype, "sSVGFactory", {
7356
- set: function (icon) {
7357
- this._iconClass = this._getIconClass(icon);
7358
- },
7359
- enumerable: true,
7360
- configurable: true
7361
- });
7362
- SVGFactoryDirective.prototype.ngAfterViewInit = function () {
7363
- this._createComponent();
7364
- };
7365
- SVGFactoryDirective.prototype._createComponent = function () {
7366
- var factory = this.componentFactoryResolver.resolveComponentFactory(this._iconClass);
7367
- this.viewContainerRef.clear();
7368
- this.viewContainerRef.createComponent(factory);
7369
- this.cdr.detectChanges();
7370
- };
7371
- SVGFactoryDirective.prototype._getIconClass = function (icon) {
7372
- switch (icon) {
7373
- case SVGFactoryIcons.IAssist:
7374
- return IAssistIconComponent;
7375
- case SVGFactoryIcons.Senior:
7376
- default:
7377
- return SeniorIconComponent;
7001
+ return LocalizedCurrencyPipeOptions;
7002
+ }(NumberLocaleOptions));
7003
+ /**
7004
+ * @deprecated Should use localizedBignumberPipe instead
7005
+ */
7006
+ var LocalizedCurrencyPipe = /** @class */ (function () {
7007
+ function LocalizedCurrencyPipe(localeService) {
7008
+ this.localeService = localeService;
7009
+ }
7010
+ LocalizedCurrencyPipe.prototype.transform = function (value, options) {
7011
+ if (!options) {
7012
+ options = new LocalizedCurrencyPipeOptions();
7378
7013
  }
7014
+ return value !== undefined && value !== null ? this.applyMask(value, options) : rxjs.of(value);
7379
7015
  };
7380
- SVGFactoryDirective.ctorParameters = function () { return [
7381
- { type: core.ViewContainerRef },
7382
- { type: core.ComponentFactoryResolver },
7383
- { type: core.ChangeDetectorRef }
7016
+ LocalizedCurrencyPipe.prototype.applyMask = function (value, options) {
7017
+ return this.localeService.get().pipe(operators.map(function (localeConfig) {
7018
+ var config = __assign(__assign({}, localeConfig.number), options);
7019
+ var scale = config.scale, currencySymbol = config.currencySymbol, thousandsSeparator = config.thousandsSeparator, decimalSeparator = config.decimalSeparator;
7020
+ var rawValue = Number(value).toFixed(scale);
7021
+ var onlyNumbers = rawValue.replace(/[^0-9]/g, "");
7022
+ var integerPart = onlyNumbers
7023
+ .slice(0, onlyNumbers.length - scale)
7024
+ .replace(/^0*/g, "")
7025
+ .replace(/\B(?=(\d{3})+(?!\d))/g, thousandsSeparator) || "0";
7026
+ var decimalPart = onlyNumbers.slice(onlyNumbers.length - scale);
7027
+ var newValue = scale ? integerPart + decimalSeparator + decimalPart : integerPart;
7028
+ var isZero = !Number(onlyNumbers);
7029
+ var operator = rawValue.includes("-") && !isZero ? "-" : "";
7030
+ return "" + operator + currencySymbol + newValue;
7031
+ }));
7032
+ };
7033
+ LocalizedCurrencyPipe.ctorParameters = function () { return [
7034
+ { type: LocaleService }
7384
7035
  ]; };
7385
- __decorate([
7386
- core.Input("sSVGFactory")
7387
- ], SVGFactoryDirective.prototype, "sSVGFactory", null);
7388
- SVGFactoryDirective = __decorate([
7389
- core.Directive({
7390
- selector: "[sSVGFactory]",
7036
+ LocalizedCurrencyPipe = __decorate([
7037
+ core.Pipe({
7038
+ name: "localizedCurrency",
7391
7039
  })
7392
- ], SVGFactoryDirective);
7393
- return SVGFactoryDirective;
7040
+ ], LocalizedCurrencyPipe);
7041
+ return LocalizedCurrencyPipe;
7394
7042
  }());
7395
7043
 
7396
- var SVGFactoryModule = /** @class */ (function () {
7397
- function SVGFactoryModule() {
7044
+ /**
7045
+ * @deprecated Should use localizedBignumberPipe instead
7046
+ */
7047
+ var LocalizedCurrencyImpurePipe = /** @class */ (function (_super) {
7048
+ __extends(LocalizedCurrencyImpurePipe, _super);
7049
+ function LocalizedCurrencyImpurePipe() {
7050
+ return _super !== null && _super.apply(this, arguments) || this;
7398
7051
  }
7399
- SVGFactoryModule = __decorate([
7400
- core.NgModule({
7401
- imports: [common.CommonModule],
7402
- declarations: [
7403
- SVGFactoryDirective,
7404
- IAssistIconComponent,
7405
- SeniorIconComponent,
7406
- ],
7407
- exports: [SVGFactoryDirective],
7052
+ LocalizedCurrencyImpurePipe.prototype.transform = function (value, options) {
7053
+ if (options === void 0) { options = new LocalizedCurrencyPipeOptions(); }
7054
+ return _super.prototype.transform.call(this, value, options);
7055
+ };
7056
+ LocalizedCurrencyImpurePipe = __decorate([
7057
+ core.Pipe({
7058
+ name: "localizedCurrencyImpure",
7059
+ pure: false,
7408
7060
  })
7409
- ], SVGFactoryModule);
7410
- return SVGFactoryModule;
7061
+ ], LocalizedCurrencyImpurePipe);
7062
+ return LocalizedCurrencyImpurePipe;
7063
+ }(LocalizedCurrencyPipe));
7064
+
7065
+ var moment$2 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
7066
+ var LocalizedDatePipe = /** @class */ (function () {
7067
+ function LocalizedDatePipe(localeService) {
7068
+ this.localeService = localeService;
7069
+ }
7070
+ LocalizedDatePipe.prototype.transform = function (value, format) {
7071
+ if (format === void 0) { format = "L LTS"; }
7072
+ return this.localeService.get().pipe(operators.map(function () { return (value ? moment$2(value).format(format) : value); }));
7073
+ };
7074
+ LocalizedDatePipe.ctorParameters = function () { return [
7075
+ { type: LocaleService }
7076
+ ]; };
7077
+ LocalizedDatePipe = __decorate([
7078
+ core.Pipe({
7079
+ name: "localizedDate",
7080
+ })
7081
+ ], LocalizedDatePipe);
7082
+ return LocalizedDatePipe;
7411
7083
  }());
7412
7084
 
7413
- var DotsIndicatorComponent = /** @class */ (function () {
7414
- function DotsIndicatorComponent() {
7085
+ var LocalizedDateImpurePipe = /** @class */ (function (_super) {
7086
+ __extends(LocalizedDateImpurePipe, _super);
7087
+ function LocalizedDateImpurePipe() {
7088
+ return _super !== null && _super.apply(this, arguments) || this;
7089
+ }
7090
+ LocalizedDateImpurePipe = __decorate([
7091
+ core.Pipe({
7092
+ name: "localizedDateImpure",
7093
+ pure: false,
7094
+ })
7095
+ ], LocalizedDateImpurePipe);
7096
+ return LocalizedDateImpurePipe;
7097
+ }(LocalizedDatePipe));
7098
+
7099
+ /**
7100
+ * @deprecated Should use localizedBignumberPipe instead
7101
+ */
7102
+ var LocalizedNumberPipe = /** @class */ (function () {
7103
+ function LocalizedNumberPipe(localeService) {
7104
+ this.localeService = localeService;
7415
7105
  }
7416
- DotsIndicatorComponent = __decorate([
7417
- core.Component({
7418
- selector: "s-dots-indicator",
7419
- 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",
7420
- 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)}}"]
7421
- })
7422
- ], DotsIndicatorComponent);
7423
- return DotsIndicatorComponent;
7106
+ LocalizedNumberPipe.prototype.transform = function (value, minimumFractionDigits) {
7107
+ return rxjs.from(this.localeService.getLocale()).pipe(operators.map(function (locale) {
7108
+ var numericValue = Number(value);
7109
+ if (!value && isNaN(numericValue))
7110
+ return;
7111
+ return new Intl.NumberFormat(locale, {
7112
+ minimumFractionDigits: minimumFractionDigits || 0,
7113
+ }).format(Number(value));
7114
+ }));
7115
+ };
7116
+ LocalizedNumberPipe.ctorParameters = function () { return [
7117
+ { type: LocaleService }
7118
+ ]; };
7119
+ LocalizedNumberPipe = __decorate([
7120
+ core.Pipe({ name: "localizedNumber" })
7121
+ ], LocalizedNumberPipe);
7122
+ return LocalizedNumberPipe;
7424
7123
  }());
7425
7124
 
7426
- var LoadingIndicatorComponent = /** @class */ (function () {
7427
- function LoadingIndicatorComponent() {
7125
+ var moment$3 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
7126
+ var LocalizedTimePipe = /** @class */ (function () {
7127
+ function LocalizedTimePipe(localeService) {
7128
+ this.localeService = localeService;
7428
7129
  }
7429
- LoadingIndicatorComponent = __decorate([
7430
- core.Component({
7431
- selector: "s-logo-indicator",
7432
- template: "<div class=\"logo-indicator\">\n <span *sSVGFactory=\"'senior'\"></span>\n</div>\n",
7433
- 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)}}"]
7130
+ LocalizedTimePipe.prototype.transform = function (value, format) {
7131
+ if (format === void 0) { format = "LTS"; }
7132
+ return this.localeService.get().pipe(operators.map(function () { return (value ? moment$3(value, "HH:mm:ss").format(format) : value); }));
7133
+ };
7134
+ LocalizedTimePipe.ctorParameters = function () { return [
7135
+ { type: LocaleService }
7136
+ ]; };
7137
+ LocalizedTimePipe = __decorate([
7138
+ core.Pipe({
7139
+ name: "localizedTime",
7434
7140
  })
7435
- ], LoadingIndicatorComponent);
7436
- return LoadingIndicatorComponent;
7141
+ ], LocalizedTimePipe);
7142
+ return LocalizedTimePipe;
7437
7143
  }());
7438
7144
 
7439
- var LoadingStateIndicators;
7440
- (function (LoadingStateIndicators) {
7441
- LoadingStateIndicators["Dots"] = "dots";
7442
- LoadingStateIndicators["Logo"] = "logo";
7443
- })(LoadingStateIndicators || (LoadingStateIndicators = {}));
7145
+ var LocalizedTimeImpurePipe = /** @class */ (function (_super) {
7146
+ __extends(LocalizedTimeImpurePipe, _super);
7147
+ function LocalizedTimeImpurePipe() {
7148
+ return _super !== null && _super.apply(this, arguments) || this;
7149
+ }
7150
+ LocalizedTimeImpurePipe = __decorate([
7151
+ core.Pipe({
7152
+ name: "localizedTimeImpure",
7153
+ pure: false,
7154
+ })
7155
+ ], LocalizedTimeImpurePipe);
7156
+ return LocalizedTimeImpurePipe;
7157
+ }(LocalizedTimePipe));
7444
7158
 
7445
- var LoadingStateComponent = /** @class */ (function () {
7446
- function LoadingStateComponent() {
7447
- this.indicator = LoadingStateIndicators.Dots;
7448
- this.id = "s-loading-state-" + LoadingStateComponent_1.nextId++;
7449
- this.BLOCK_TIMEOUT_VALUE = 300;
7450
- this.UNBLOCK_TIMEOUT_VALUE = 200;
7159
+ var NumericService = /** @class */ (function () {
7160
+ function NumericService(localeService) {
7161
+ this.localeService = localeService;
7451
7162
  }
7452
- LoadingStateComponent_1 = LoadingStateComponent;
7453
- Object.defineProperty(LoadingStateComponent.prototype, "loading", {
7454
- get: function () {
7455
- return this._loading;
7456
- },
7457
- set: function (loading) {
7458
- this._loading = loading;
7459
- loading ? this.block() : this.unblock();
7460
- },
7461
- enumerable: true,
7462
- configurable: true
7463
- });
7464
- LoadingStateComponent.prototype.block = function () {
7465
- var _this = this;
7466
- if (this.unblockTimeoutId) {
7467
- clearTimeout(this.unblockTimeoutId);
7468
- this.unblockTimeoutId = undefined;
7469
- }
7470
- if (!this.blockTimeoutId) {
7471
- this.blockTimeoutId = setTimeout(function () {
7472
- _this.blocking = true;
7473
- _this.blockTimeoutId = undefined;
7474
- }, this.BLOCK_TIMEOUT_VALUE);
7475
- }
7163
+ /**
7164
+ * Wrapper around Intl.NumberFormat that returns the localized value using the user's locale by default(platform's preferential language).
7165
+ *
7166
+ * This method should only be used after the localeService has been initialized by the host application, either by a resolver or a manual call.
7167
+ *
7168
+ * Can be overwritten by the provided Intl.NumberFormatOptions.
7169
+ *
7170
+ * Documentation is available at {@link https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat Intl.NumberFormatOptions}.
7171
+ *
7172
+ * @param {number | string | BigNumber} value The value to be formatted.
7173
+ * @param {Intl.NumberFormatOptions} options Options that overwrites the default Intl.NumberFormatOptions.
7174
+ * @return `string` The formatted value.
7175
+ */
7176
+ NumericService.prototype.instant = function (value, options) {
7177
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
7178
+ 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 }) });
7179
+ // From https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
7180
+ return new Intl.NumberFormat(options.locale, options.options).format(this.getType(value) === "number" || this.getType(value) === "string" ? value : value.toString());
7476
7181
  };
7477
- LoadingStateComponent.prototype.unblock = function () {
7478
- var _this = this;
7479
- if (this.blockTimeoutId) {
7480
- clearTimeout(this.blockTimeoutId);
7481
- this.blockTimeoutId = undefined;
7182
+ NumericService.prototype.getType = function (value) {
7183
+ // From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
7184
+ if (value === null) {
7185
+ return "null";
7482
7186
  }
7483
- if (!this.unblockTimeoutId) {
7484
- this.unblockTimeoutId = setTimeout(function () {
7485
- _this.blocking = false;
7486
- _this.unblockTimeoutId = undefined;
7487
- }, this.UNBLOCK_TIMEOUT_VALUE);
7187
+ var baseType = typeof value;
7188
+ // Primitive types
7189
+ if (baseType !== "object" && baseType !== "function") {
7190
+ return baseType;
7488
7191
  }
7489
- };
7490
- LoadingStateComponent.prototype.ngOnDestroy = function () {
7491
- if (this.blockTimeoutId) {
7492
- clearTimeout(this.blockTimeoutId);
7192
+ // Symbol.toStringTag often specifies the "display name" of the
7193
+ // object's class. It's used in Object.prototype.toString().
7194
+ var tag = value[Symbol.toStringTag];
7195
+ if (typeof tag === "string") {
7196
+ return tag;
7493
7197
  }
7494
- if (this.unblockTimeoutId) {
7495
- clearTimeout(this.unblockTimeoutId);
7198
+ // If it's a function whose source code starts with the "class" keyword
7199
+ if (baseType === "function" && Function.prototype.toString.call(value).startsWith("class")) {
7200
+ return "class";
7201
+ }
7202
+ // The name of the constructor; for example `Array`, `GeneratorFunction`,
7203
+ // `Number`, `String`, `Boolean` or `MyCustomClass`
7204
+ var className = value.constructor.name;
7205
+ if (typeof className === "string" && className !== "") {
7206
+ return className;
7496
7207
  }
7208
+ // At this point there's no robust way to get the type of value,
7209
+ // so we use the base implementation.
7210
+ return baseType;
7497
7211
  };
7498
- var LoadingStateComponent_1;
7499
- LoadingStateComponent.nextId = 0;
7500
- __decorate([
7501
- core.Input()
7502
- ], LoadingStateComponent.prototype, "indicator", void 0);
7503
- __decorate([
7504
- core.Input()
7505
- ], LoadingStateComponent.prototype, "id", void 0);
7506
- __decorate([
7507
- core.Input()
7508
- ], LoadingStateComponent.prototype, "blockWindow", void 0);
7509
- __decorate([
7510
- core.Input()
7511
- ], LoadingStateComponent.prototype, "loading", null);
7512
- LoadingStateComponent = LoadingStateComponent_1 = __decorate([
7513
- core.Component({
7514
- selector: "s-loading-state",
7515
- 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>",
7516
- 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}"]
7212
+ NumericService.ctorParameters = function () { return [
7213
+ { type: LocaleService }
7214
+ ]; };
7215
+ NumericService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function NumericService_Factory() { return new NumericService(core["ɵɵinject"](LocaleService)); }, token: NumericService, providedIn: "root" });
7216
+ NumericService = __decorate([
7217
+ core.Injectable({
7218
+ providedIn: "root",
7517
7219
  })
7518
- ], LoadingStateComponent);
7519
- return LoadingStateComponent;
7220
+ ], NumericService);
7221
+ return NumericService;
7520
7222
  }());
7521
7223
 
7522
- var LoadingStateDirective = /** @class */ (function () {
7523
- function LoadingStateDirective(target, template, componentFactoryResolver, cdr) {
7524
- this.target = target;
7525
- this.template = template;
7526
- this.componentFactoryResolver = componentFactoryResolver;
7527
- this.cdr = cdr;
7528
- this._loading = false;
7529
- this.indicator = LoadingStateIndicators.Dots;
7224
+ var NumericPipe = /** @class */ (function () {
7225
+ function NumericPipe(numericService, localeService) {
7226
+ this.numericService = numericService;
7227
+ this.localeService = localeService;
7530
7228
  }
7531
- Object.defineProperty(LoadingStateDirective.prototype, "sLoadingState", {
7532
- set: function (value) {
7533
- if (typeof value === "boolean") {
7534
- this._loading = value;
7535
- this.indicator = LoadingStateIndicators.Dots;
7536
- }
7537
- else if (typeof value === "object") {
7538
- this._loading = value.loading;
7539
- this.indicator = value.indicator || LoadingStateIndicators.Dots;
7540
- }
7541
- if (this.loaderComponent) {
7542
- this.loaderComponent.instance.loading = this._loading;
7543
- this.loaderComponent.instance.indicator = this.indicator;
7544
- }
7545
- },
7546
- enumerable: true,
7547
- configurable: true
7548
- });
7549
- LoadingStateDirective.prototype.ngAfterViewInit = function () {
7550
- this.createComponent();
7551
- };
7552
- LoadingStateDirective.prototype.createComponent = function () {
7553
- var factory = this.componentFactoryResolver.resolveComponentFactory(LoadingStateComponent);
7554
- this.loaderComponent = this.target.createComponent(factory);
7555
- this.loaderComponent.instance.contents = this.template;
7556
- this.loaderComponent.instance.loading = this._loading;
7557
- this.loaderComponent.instance.indicator = this.indicator;
7558
- this.cdr.detectChanges();
7559
- };
7560
- LoadingStateDirective.prototype.ngOnDestroy = function () {
7561
- if (this.loaderComponent) {
7562
- this.loaderComponent.destroy();
7563
- }
7564
- };
7565
- LoadingStateDirective.ctorParameters = function () { return [
7566
- { type: core.ViewContainerRef },
7567
- { type: core.TemplateRef },
7568
- { type: core.ComponentFactoryResolver },
7569
- { type: core.ChangeDetectorRef }
7229
+ NumericPipe.prototype.transform = function (value, options) {
7230
+ var _this = this;
7231
+ return (options === null || options === void 0 ? void 0 : options.locale) ? rxjs.of(this.numericService.instant(value, options))
7232
+ : this.localeService.getLocale().pipe(operators.map(function (locale) {
7233
+ return _this.numericService.instant(value, {
7234
+ locale: locale,
7235
+ options: options === null || options === void 0 ? void 0 : options.options,
7236
+ });
7237
+ }));
7238
+ };
7239
+ NumericPipe.ctorParameters = function () { return [
7240
+ { type: NumericService },
7241
+ { type: LocaleService }
7570
7242
  ]; };
7571
- __decorate([
7572
- core.Input("sLoadingState")
7573
- ], LoadingStateDirective.prototype, "sLoadingState", null);
7574
- LoadingStateDirective = __decorate([
7575
- core.Directive({
7576
- selector: "[sLoadingState]",
7577
- })
7578
- ], LoadingStateDirective);
7579
- return LoadingStateDirective;
7243
+ NumericPipe = __decorate([
7244
+ core.Pipe({ name: "numeric" })
7245
+ ], NumericPipe);
7246
+ return NumericPipe;
7580
7247
  }());
7581
7248
 
7582
- var LoadingStateModule = /** @class */ (function () {
7583
- function LoadingStateModule() {
7249
+ var LocaleModule = /** @class */ (function () {
7250
+ function LocaleModule() {
7584
7251
  }
7585
- LoadingStateModule = __decorate([
7252
+ LocaleModule_1 = LocaleModule;
7253
+ LocaleModule.forRoot = function () {
7254
+ return {
7255
+ ngModule: LocaleModule_1,
7256
+ providers: [
7257
+ LocaleService,
7258
+ LocalizedCurrencyPipe,
7259
+ LocalizedDatePipe,
7260
+ LocalizedTimePipe,
7261
+ LocalizedNumberPipe,
7262
+ LocalizedCurrencyImpurePipe,
7263
+ LocalizedDateImpurePipe,
7264
+ LocalizedTimeImpurePipe,
7265
+ LocalizedBignumberPipe,
7266
+ LocalizedBignumberImpurePipe,
7267
+ NumericPipe
7268
+ ],
7269
+ };
7270
+ };
7271
+ LocaleModule.forChild = function () {
7272
+ return {
7273
+ ngModule: LocaleModule_1,
7274
+ };
7275
+ };
7276
+ var LocaleModule_1;
7277
+ LocaleModule = LocaleModule_1 = __decorate([
7586
7278
  core.NgModule({
7587
- imports: [
7588
- common.CommonModule,
7589
- SVGFactoryModule,
7279
+ imports: [common.CommonModule],
7280
+ exports: [
7281
+ LocalizedCurrencyPipe,
7282
+ LocalizedDatePipe,
7283
+ LocalizedTimePipe,
7284
+ LocalizedNumberPipe,
7285
+ LocalizedCurrencyImpurePipe,
7286
+ LocalizedDateImpurePipe,
7287
+ LocalizedTimeImpurePipe,
7288
+ LocalizedBignumberPipe,
7289
+ LocalizedBignumberImpurePipe,
7290
+ NumericPipe
7590
7291
  ],
7591
7292
  declarations: [
7592
- LoadingStateComponent,
7593
- LoadingStateDirective,
7594
- DotsIndicatorComponent,
7595
- LoadingIndicatorComponent,
7596
- ],
7597
- exports: [
7598
- LoadingStateComponent,
7599
- LoadingStateDirective,
7293
+ LocalizedCurrencyPipe,
7294
+ LocalizedDatePipe,
7295
+ LocalizedTimePipe,
7296
+ LocalizedNumberPipe,
7297
+ LocalizedCurrencyImpurePipe,
7298
+ LocalizedDateImpurePipe,
7299
+ LocalizedTimeImpurePipe,
7300
+ LocalizedBignumberPipe,
7301
+ LocalizedBignumberImpurePipe,
7302
+ NumericPipe
7600
7303
  ],
7601
- entryComponents: [LoadingStateComponent],
7602
7304
  })
7603
- ], LoadingStateModule);
7604
- return LoadingStateModule;
7305
+ ], LocaleModule);
7306
+ return LocaleModule;
7605
7307
  }());
7606
7308
 
7607
7309
  var LocalizedNumberInputDirective = /** @class */ (function () {
@@ -8499,7 +8201,7 @@
8499
8201
  EnumBadgeColors["GRAY"] = "gray";
8500
8202
  })(exports.EnumBadgeColors || (exports.EnumBadgeColors = {}));
8501
8203
 
8502
- var moment$5 = moment_;
8204
+ var moment$4 = moment_;
8503
8205
  var TableColumnsComponent = /** @class */ (function () {
8504
8206
  function TableColumnsComponent(viewContainerRef, translate, hostProjectConfigs) {
8505
8207
  this.viewContainerRef = viewContainerRef;
@@ -8606,7 +8308,7 @@
8606
8308
  return ng2CurrencyMask.applyMask(attributeValue, numberConfigs, _this.isNumber(attributeValue));
8607
8309
  case exports.EnumColumnFieldType.DATE:
8608
8310
  var dateFormat = _this.getDateFormat(column, locale);
8609
- return moment$5(attributeValue).format(dateFormat);
8311
+ return moment$4(attributeValue).format(dateFormat);
8610
8312
  case exports.EnumColumnFieldType.BOOLEAN:
8611
8313
  var value = attributeValue ? "yes" : "no";
8612
8314
  return _this.translate.instant(prefix + value);
@@ -10738,7 +10440,7 @@
10738
10440
  CustomFieldType["Any"] = "Any";
10739
10441
  CustomFieldType["Enum"] = "Enum";
10740
10442
  })(CustomFieldType || (CustomFieldType = {}));
10741
- var moment$6 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
10443
+ var moment$5 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
10742
10444
  var CustomFieldsComponent = /** @class */ (function () {
10743
10445
  function CustomFieldsComponent(customFieldsService, localeService, sanitizer, translateService, controlContainer) {
10744
10446
  this.customFieldsService = customFieldsService;
@@ -10949,16 +10651,16 @@
10949
10651
  return;
10950
10652
  switch (type) {
10951
10653
  case exports.FieldType.Date:
10952
- parsedValues[name] = moment$6(value).toDate();
10654
+ parsedValues[name] = moment$5(value).toDate();
10953
10655
  break;
10954
10656
  case exports.FieldType.DateTime:
10955
- parsedValues[name] = moment$6(value).toDate();
10657
+ parsedValues[name] = moment$5(value).toDate();
10956
10658
  break;
10957
10659
  case exports.FieldType.LocalDateTime:
10958
- parsedValues[name] = moment$6(value, "YYYY-MM-DD[T]HH:mm:ss.SSS").toDate();
10660
+ parsedValues[name] = moment$5(value, "YYYY-MM-DD[T]HH:mm:ss.SSS").toDate();
10959
10661
  break;
10960
10662
  case exports.FieldType.Time:
10961
- parsedValues[name] = moment$6(value, "HH:mm:ss").toDate();
10663
+ parsedValues[name] = moment$5(value, "HH:mm:ss").toDate();
10962
10664
  break;
10963
10665
  }
10964
10666
  });
@@ -10991,16 +10693,16 @@
10991
10693
  value = new BigNumber__default(value).toFixed(scale).toString();
10992
10694
  break;
10993
10695
  case exports.FieldType.Date:
10994
- value = moment$6(value).format("YYYY-MM-DD");
10696
+ value = moment$5(value).format("YYYY-MM-DD");
10995
10697
  break;
10996
10698
  case exports.FieldType.DateTime:
10997
- value = moment$6(value).format();
10699
+ value = moment$5(value).format();
10998
10700
  break;
10999
10701
  case exports.FieldType.LocalDateTime:
11000
- value = moment$6(value).format("YYYY-MM-DD[T]HH:mm:ss.SSS");
10702
+ value = moment$5(value).format("YYYY-MM-DD[T]HH:mm:ss.SSS");
11001
10703
  break;
11002
10704
  case exports.FieldType.Time:
11003
- value = moment$6(value).format("HH:mm:ss");
10705
+ value = moment$5(value).format("HH:mm:ss");
11004
10706
  break;
11005
10707
  }
11006
10708
  }
@@ -11413,7 +11115,7 @@
11413
11115
  return EditableOverlayModule;
11414
11116
  }());
11415
11117
 
11416
- var moment$7 = moment_;
11118
+ var moment$6 = moment_;
11417
11119
  var YEAR = "year";
11418
11120
  var MONTH = "month";
11419
11121
  var DAY = "day";
@@ -11425,22 +11127,22 @@
11425
11127
  function DateUtils() {
11426
11128
  }
11427
11129
  DateUtils.parse = function (date) {
11428
- return moment$7(date).toDate();
11130
+ return moment$6(date).toDate();
11429
11131
  };
11430
11132
  DateUtils.toString = function (date, with_time) {
11431
11133
  if (with_time === void 0) { with_time = false; }
11432
- var result = with_time ? moment$7(date, "YYYY-MM-DD hh:mm:ss.SSS") : moment$7(date, "YYYY-MM-DD");
11134
+ var result = with_time ? moment$6(date, "YYYY-MM-DD hh:mm:ss.SSS") : moment$6(date, "YYYY-MM-DD");
11433
11135
  return result.toString();
11434
11136
  };
11435
11137
  DateUtils.format = function (date, formatString, lang) {
11436
11138
  if (formatString === void 0) { formatString = "YYYY-MM-DD HH:mm:ss.SSS"; }
11437
11139
  if (lang === void 0) { lang = "en"; }
11438
- var monthName = moment$7(date)
11140
+ var monthName = moment$6(date)
11439
11141
  .locale(lang)
11440
11142
  .startOf("month")
11441
11143
  .format("MMMM");
11442
11144
  var monthNameCapitalized = monthName.charAt(0).toUpperCase() + monthName.slice(1);
11443
- var dateToFormat = moment$7(date).locale(lang);
11145
+ var dateToFormat = moment$6(date).locale(lang);
11444
11146
  var format_map = {
11445
11147
  YYYY: dateToFormat.format("YYYY"),
11446
11148
  MM: dateToFormat.format("MM"),
@@ -11470,13 +11172,13 @@
11470
11172
  return str;
11471
11173
  };
11472
11174
  DateUtils.diff = function (fistDate, secondDate, scale) {
11473
- var milliseconds = moment$7(fistDate).diff(secondDate, MILLISECOND);
11474
- var seconds = moment$7(fistDate).diff(secondDate, SECOND);
11475
- var minutes = moment$7(fistDate).diff(secondDate, MINUTE);
11476
- var hours = moment$7(fistDate).diff(secondDate, HOUR);
11477
- var days = moment$7(fistDate).diff(secondDate, DAY);
11478
- var months = moment$7(fistDate).diff(secondDate, MONTH);
11479
- var years = moment$7(fistDate).diff(secondDate, YEAR);
11175
+ var milliseconds = moment$6(fistDate).diff(secondDate, MILLISECOND);
11176
+ var seconds = moment$6(fistDate).diff(secondDate, SECOND);
11177
+ var minutes = moment$6(fistDate).diff(secondDate, MINUTE);
11178
+ var hours = moment$6(fistDate).diff(secondDate, HOUR);
11179
+ var days = moment$6(fistDate).diff(secondDate, DAY);
11180
+ var months = moment$6(fistDate).diff(secondDate, MONTH);
11181
+ var years = moment$6(fistDate).diff(secondDate, YEAR);
11480
11182
  if (!scale.endsWith("s")) {
11481
11183
  scale += "s";
11482
11184
  }
@@ -11491,14 +11193,14 @@
11491
11193
  }[scale]);
11492
11194
  };
11493
11195
  DateUtils.today = function () {
11494
- var dateStr = moment$7().format("YYY-MM-DD");
11196
+ var dateStr = moment$6().format("YYY-MM-DD");
11495
11197
  return new Date(dateStr);
11496
11198
  };
11497
11199
  DateUtils.now = function () {
11498
- return moment$7().toDate();
11200
+ return moment$6().toDate();
11499
11201
  };
11500
11202
  DateUtils.add = function (date, quantity, scale) {
11501
- return moment$7(date).add(quantity, scale).toDate();
11203
+ return moment$6(date).add(quantity, scale).toDate();
11502
11204
  };
11503
11205
  DateUtils.startOf = function (date, scale) {
11504
11206
  var _a;
@@ -11527,7 +11229,7 @@
11527
11229
  return new Date(vals[0], vals[1], vals[2], vals[3], vals[4], vals[5], vals[6]);
11528
11230
  };
11529
11231
  DateUtils.clone = function (date) {
11530
- return moment$7(date).toDate();
11232
+ return moment$6(date).toDate();
11531
11233
  };
11532
11234
  DateUtils.getDateValues = function (date) {
11533
11235
  return [
@@ -11541,7 +11243,7 @@
11541
11243
  ];
11542
11244
  };
11543
11245
  DateUtils.getDaysInMonth = function (date) {
11544
- return moment$7(date, "YYYY-MM").daysInMonth();
11246
+ return moment$6(date, "YYYY-MM").daysInMonth();
11545
11247
  };
11546
11248
  return DateUtils;
11547
11249
  }());
@@ -15324,6 +15026,173 @@
15324
15026
  return ProfilePicturePickerModule;
15325
15027
  }());
15326
15028
 
15029
+
15030
+ (function (ProgressBarColors) {
15031
+ ProgressBarColors["Blue"] = "blue";
15032
+ ProgressBarColors["Green"] = "green";
15033
+ ProgressBarColors["Red"] = "red";
15034
+ ProgressBarColors["Yellow"] = "yellow";
15035
+ })(exports.ProgressBarColors || (exports.ProgressBarColors = {}));
15036
+
15037
+ var ProgressBarMode;
15038
+ (function (ProgressBarMode) {
15039
+ ProgressBarMode["Determinate"] = "determinate";
15040
+ ProgressBarMode["Indeterminate"] = "indeterminate";
15041
+ })(ProgressBarMode || (ProgressBarMode = {}));
15042
+
15043
+ var ProgressBarComponent = /** @class */ (function () {
15044
+ function ProgressBarComponent() {
15045
+ this.numberFormatOptions = {
15046
+ style: "decimal",
15047
+ minimumFractionDigits: 0,
15048
+ maximumFractionDigits: 2,
15049
+ };
15050
+ this.showValue = true;
15051
+ this.mode = ProgressBarMode.Determinate;
15052
+ }
15053
+ ProgressBarComponent.prototype.ngOnInit = function () {
15054
+ this.validateInputs();
15055
+ };
15056
+ ProgressBarComponent.prototype.validateInputs = function () {
15057
+ if (this.value < 0 || this.value > 100) {
15058
+ throw new Error("Invalid value for value");
15059
+ }
15060
+ if (this.targetValue < 0 || this.targetValue > 100) {
15061
+ throw new Error("Invalid value for targetValue");
15062
+ }
15063
+ if (this.mode === ProgressBarMode.Indeterminate && (this.value || this.targetValue || this.targetLabel)) {
15064
+ throw new Error("When the mode is indeterminate, the value, targetValue and targetLabel parameters are not expected.");
15065
+ }
15066
+ };
15067
+ __decorate([
15068
+ core.Input()
15069
+ ], ProgressBarComponent.prototype, "value", void 0);
15070
+ __decorate([
15071
+ core.Input()
15072
+ ], ProgressBarComponent.prototype, "numberFormatOptions", void 0);
15073
+ __decorate([
15074
+ core.Input()
15075
+ ], ProgressBarComponent.prototype, "targetValue", void 0);
15076
+ __decorate([
15077
+ core.Input()
15078
+ ], ProgressBarComponent.prototype, "label", void 0);
15079
+ __decorate([
15080
+ core.Input()
15081
+ ], ProgressBarComponent.prototype, "targetLabel", void 0);
15082
+ __decorate([
15083
+ core.Input()
15084
+ ], ProgressBarComponent.prototype, "activeColor", void 0);
15085
+ __decorate([
15086
+ core.Input()
15087
+ ], ProgressBarComponent.prototype, "showValue", void 0);
15088
+ __decorate([
15089
+ core.Input()
15090
+ ], ProgressBarComponent.prototype, "mode", void 0);
15091
+ ProgressBarComponent = __decorate([
15092
+ core.Component({
15093
+ selector: "s-progressbar",
15094
+ 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>",
15095
+ 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}"]
15096
+ })
15097
+ ], ProgressBarComponent);
15098
+ return ProgressBarComponent;
15099
+ }());
15100
+
15101
+ var ProgressBarDeterminateComponent = /** @class */ (function () {
15102
+ function ProgressBarDeterminateComponent(localeService) {
15103
+ this.localeService = localeService;
15104
+ this.showValue = true;
15105
+ }
15106
+ ProgressBarDeterminateComponent.prototype.ngOnInit = function () {
15107
+ this.validateValues();
15108
+ this.onGetLocale();
15109
+ };
15110
+ ProgressBarDeterminateComponent.prototype.onGetLocale = function () {
15111
+ var _this = this;
15112
+ this.localeService.getLocale().subscribe({
15113
+ next: function (locale) {
15114
+ _this.numberFormat = new Intl.NumberFormat(locale !== null && locale !== void 0 ? locale : "pt-BR", _this.numberFormatOptions);
15115
+ },
15116
+ error: function () {
15117
+ _this.numberFormat = new Intl.NumberFormat("pt-BR", _this.numberFormatOptions);
15118
+ },
15119
+ });
15120
+ };
15121
+ ProgressBarDeterminateComponent.prototype.validateValues = function () {
15122
+ if (this.value < 0 || this.value > 100) {
15123
+ throw new Error("Invalid value for value");
15124
+ }
15125
+ if (this.targetValue < 0 || this.targetValue > 100) {
15126
+ throw new Error("Invalid value for targetValue");
15127
+ }
15128
+ };
15129
+ ProgressBarDeterminateComponent.ctorParameters = function () { return [
15130
+ { type: LocaleService }
15131
+ ]; };
15132
+ __decorate([
15133
+ core.Input()
15134
+ ], ProgressBarDeterminateComponent.prototype, "value", void 0);
15135
+ __decorate([
15136
+ core.Input()
15137
+ ], ProgressBarDeterminateComponent.prototype, "numberFormatOptions", void 0);
15138
+ __decorate([
15139
+ core.Input()
15140
+ ], ProgressBarDeterminateComponent.prototype, "targetValue", void 0);
15141
+ __decorate([
15142
+ core.Input()
15143
+ ], ProgressBarDeterminateComponent.prototype, "targetLabel", void 0);
15144
+ __decorate([
15145
+ core.Input()
15146
+ ], ProgressBarDeterminateComponent.prototype, "activeColor", void 0);
15147
+ __decorate([
15148
+ core.Input()
15149
+ ], ProgressBarDeterminateComponent.prototype, "showValue", void 0);
15150
+ ProgressBarDeterminateComponent = __decorate([
15151
+ core.Component({
15152
+ selector: "s-progressbar-determinate",
15153
+ 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",
15154
+ 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}"]
15155
+ })
15156
+ ], ProgressBarDeterminateComponent);
15157
+ return ProgressBarDeterminateComponent;
15158
+ }());
15159
+
15160
+ var ProgressBarIndeterminateComponent = /** @class */ (function () {
15161
+ function ProgressBarIndeterminateComponent() {
15162
+ }
15163
+ __decorate([
15164
+ core.Input()
15165
+ ], ProgressBarIndeterminateComponent.prototype, "activeColor", void 0);
15166
+ __decorate([
15167
+ core.Input()
15168
+ ], ProgressBarIndeterminateComponent.prototype, "label", void 0);
15169
+ ProgressBarIndeterminateComponent = __decorate([
15170
+ core.Component({
15171
+ selector: "s-progressbar-indeterminate",
15172
+ 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",
15173
+ 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%)}}"]
15174
+ })
15175
+ ], ProgressBarIndeterminateComponent);
15176
+ return ProgressBarIndeterminateComponent;
15177
+ }());
15178
+
15179
+ var ProgressBarModule = /** @class */ (function () {
15180
+ function ProgressBarModule() {
15181
+ }
15182
+ ProgressBarModule = __decorate([
15183
+ core.NgModule({
15184
+ imports: [common.CommonModule],
15185
+ declarations: [
15186
+ ProgressBarComponent,
15187
+ ProgressBarDeterminateComponent,
15188
+ ProgressBarIndeterminateComponent,
15189
+ ],
15190
+ exports: [ProgressBarComponent],
15191
+ })
15192
+ ], ProgressBarModule);
15193
+ return ProgressBarModule;
15194
+ }());
15195
+
15327
15196
  var PanelComponent = /** @class */ (function () {
15328
15197
  function PanelComponent() {
15329
15198
  this.toggleable = true;
@@ -18033,76 +17902,74 @@
18033
17902
  exports.fallback = fallback;
18034
17903
  exports.ɵa = TooltipComponent;
18035
17904
  exports.ɵb = TooltipDirective;
18036
- exports.ɵba = TablePagingComponent;
18037
- exports.ɵbb = TextFieldModule;
18038
- exports.ɵbc = TextFieldComponent;
18039
- exports.ɵbd = NumberFieldModule;
18040
- exports.ɵbe = LocalizedNumberInputModule;
18041
- exports.ɵbf = NumberInputModule;
18042
- exports.ɵbg = NumberFieldComponent;
18043
- exports.ɵbh = CurrencyFieldModule;
18044
- exports.ɵbi = CurrencyFieldComponent;
18045
- exports.ɵbj = NumberFieldModule$1;
18046
- exports.ɵbk = BignumberInputModule;
18047
- exports.ɵbl = BignumberFieldComponent;
18048
- exports.ɵbm = AutocompleteFieldComponent;
18049
- exports.ɵbn = BooleanFieldComponent;
18050
- exports.ɵbo = BooleanSwitchFieldComponent;
18051
- exports.ɵbp = CalendarFieldComponent;
18052
- exports.ɵbq = ChipsFieldComponent;
18053
- exports.ɵbr = CountryPhonePickerFieldComponent;
18054
- exports.ɵbs = DynamicFieldComponent;
18055
- exports.ɵbt = DynamicFormDirective;
18056
- exports.ɵbu = FieldsetComponent;
18057
- exports.ɵbv = FileUploadComponent$1;
18058
- exports.ɵbw = LookupFieldComponent;
18059
- exports.ɵbx = PasswordFieldComponent;
18060
- exports.ɵby = RadioButtonComponent;
18061
- exports.ɵbz = RowComponent;
17905
+ exports.ɵba = LocalizedNumberInputModule;
17906
+ exports.ɵbb = NumberInputModule;
17907
+ exports.ɵbc = NumberFieldComponent;
17908
+ exports.ɵbd = CurrencyFieldModule;
17909
+ exports.ɵbe = CurrencyFieldComponent;
17910
+ exports.ɵbf = NumberFieldModule$1;
17911
+ exports.ɵbg = BignumberInputModule;
17912
+ exports.ɵbh = BignumberFieldComponent;
17913
+ exports.ɵbi = AutocompleteFieldComponent;
17914
+ exports.ɵbj = BooleanFieldComponent;
17915
+ exports.ɵbk = BooleanSwitchFieldComponent;
17916
+ exports.ɵbl = CalendarFieldComponent;
17917
+ exports.ɵbm = ChipsFieldComponent;
17918
+ exports.ɵbn = CountryPhonePickerFieldComponent;
17919
+ exports.ɵbo = DynamicFieldComponent;
17920
+ exports.ɵbp = DynamicFormDirective;
17921
+ exports.ɵbq = FieldsetComponent;
17922
+ exports.ɵbr = FileUploadComponent$1;
17923
+ exports.ɵbs = LookupFieldComponent;
17924
+ exports.ɵbt = PasswordFieldComponent;
17925
+ exports.ɵbu = RadioButtonComponent;
17926
+ exports.ɵbv = RowComponent;
17927
+ exports.ɵbw = SectionComponent;
17928
+ exports.ɵbx = SelectFieldComponent;
17929
+ exports.ɵby = SliderFieldComponent;
17930
+ exports.ɵbz = TextAreaFieldComponent;
18062
17931
  exports.ɵc = TemplateDirective;
18063
- exports.ɵca = SectionComponent;
18064
- exports.ɵcb = SelectFieldComponent;
18065
- exports.ɵcc = SliderFieldComponent;
18066
- exports.ɵcd = TextAreaFieldComponent;
18067
- exports.ɵce = TextAreaIAFieldComponent;
18068
- exports.ɵcf = IAssistService;
18069
- exports.ɵch = DecimalField;
18070
- exports.ɵci = SideTableComponent;
18071
- exports.ɵcj = ThumbnailService;
18072
- exports.ɵck = InfiniteScrollModule;
18073
- exports.ɵcl = InfiniteScrollDirective;
18074
- exports.ɵcm = IAInsightSidebarComponent;
18075
- exports.ɵcn = IAInsightCardComponent;
18076
- exports.ɵco = IAInsightCardLoaderComponent;
18077
- exports.ɵcp = StructureModule;
18078
- exports.ɵcq = HeaderComponent;
18079
- exports.ɵcr = FooterComponent;
18080
- exports.ɵcs = KanbanEventService;
18081
- exports.ɵct = KanbanItemComponent;
18082
- exports.ɵcu = KanbanColumnComponent;
18083
- exports.ɵcv = KanbanItemDraggingComponent;
18084
- exports.ɵcw = NumberLocaleOptions;
18085
- exports.ɵcx = BorderButtonModule;
18086
- exports.ɵcy = BorderButtonComponent;
18087
- exports.ɵcz = SelectButtonItemComponent;
17932
+ exports.ɵca = TextAreaIAFieldComponent;
17933
+ exports.ɵcb = IAssistService;
17934
+ exports.ɵcd = DecimalField;
17935
+ exports.ɵce = SideTableComponent;
17936
+ exports.ɵcf = ThumbnailService;
17937
+ exports.ɵcg = InfiniteScrollModule;
17938
+ exports.ɵch = InfiniteScrollDirective;
17939
+ exports.ɵci = IAInsightSidebarComponent;
17940
+ exports.ɵcj = IAInsightCardComponent;
17941
+ exports.ɵck = IAInsightCardLoaderComponent;
17942
+ exports.ɵcl = StructureModule;
17943
+ exports.ɵcm = HeaderComponent;
17944
+ exports.ɵcn = FooterComponent;
17945
+ exports.ɵco = KanbanEventService;
17946
+ exports.ɵcp = KanbanItemComponent;
17947
+ exports.ɵcq = KanbanColumnComponent;
17948
+ exports.ɵcr = KanbanItemDraggingComponent;
17949
+ exports.ɵcs = NumberLocaleOptions;
17950
+ exports.ɵct = BorderButtonModule;
17951
+ exports.ɵcu = BorderButtonComponent;
17952
+ exports.ɵcv = ProgressBarDeterminateComponent;
17953
+ exports.ɵcw = ProgressBarIndeterminateComponent;
17954
+ exports.ɵcx = SelectButtonItemComponent;
17955
+ exports.ɵcy = SlidePanelService;
17956
+ exports.ɵcz = TieredMenuEventService;
18088
17957
  exports.ɵd = TemplateModule;
18089
- exports.ɵda = SlidePanelService;
18090
- exports.ɵdb = TieredMenuEventService;
18091
- exports.ɵdc = TieredMenuService;
18092
- exports.ɵdd = TieredMenuComponent;
18093
- exports.ɵde = TieredMenuNestedComponent;
18094
- exports.ɵdf = TieredMenuItemComponent;
18095
- exports.ɵdg = TieredMenuDividerComponent;
18096
- exports.ɵdh = TimelineItemModule;
18097
- exports.ɵdi = TimelineIconItemComponent;
18098
- exports.ɵdj = HorizontalTimelineModule;
18099
- exports.ɵdk = HorizontalTimelineComponent;
18100
- exports.ɵdl = VerticalTimelineModule;
18101
- exports.ɵdm = VerticalTimelineComponent;
18102
- exports.ɵdn = RangeLineComponent;
18103
- exports.ɵdo = CollapseOptionComponent;
18104
- exports.ɵdp = CollapsedItemsComponent;
18105
- exports.ɵdq = VerticalItemsComponent;
17958
+ exports.ɵda = TieredMenuService;
17959
+ exports.ɵdb = TieredMenuComponent;
17960
+ exports.ɵdc = TieredMenuNestedComponent;
17961
+ exports.ɵdd = TieredMenuItemComponent;
17962
+ exports.ɵde = TieredMenuDividerComponent;
17963
+ exports.ɵdf = TimelineItemModule;
17964
+ exports.ɵdg = TimelineIconItemComponent;
17965
+ exports.ɵdh = HorizontalTimelineModule;
17966
+ exports.ɵdi = HorizontalTimelineComponent;
17967
+ exports.ɵdj = VerticalTimelineModule;
17968
+ exports.ɵdk = VerticalTimelineComponent;
17969
+ exports.ɵdl = RangeLineComponent;
17970
+ exports.ɵdm = CollapseOptionComponent;
17971
+ exports.ɵdn = CollapsedItemsComponent;
17972
+ exports.ɵdo = VerticalItemsComponent;
18106
17973
  exports.ɵe = CustomTranslationsModule;
18107
17974
  exports.ɵf = CodeEditorComponent;
18108
17975
  exports.ɵg = CoreFacade;
@@ -18118,13 +17985,13 @@
18118
17985
  exports.ɵq = SeniorIconComponent;
18119
17986
  exports.ɵr = DotsIndicatorComponent;
18120
17987
  exports.ɵs = LoadingIndicatorComponent;
18121
- exports.ɵt = ProgressBarDeterminateComponent;
18122
- exports.ɵu = ProgressBarIndeterminateComponent;
18123
- exports.ɵv = FileUploadService;
18124
- exports.ɵw = FileItemComponent;
18125
- exports.ɵx = LocaleService;
18126
- exports.ɵy = InfoSignComponent;
18127
- exports.ɵz = TableColumnsComponent;
17988
+ exports.ɵt = FileUploadService;
17989
+ exports.ɵu = InfoSignComponent;
17990
+ exports.ɵv = TableColumnsComponent;
17991
+ exports.ɵw = TablePagingComponent;
17992
+ exports.ɵx = TextFieldModule;
17993
+ exports.ɵy = TextFieldComponent;
17994
+ exports.ɵz = NumberFieldModule;
18128
17995
 
18129
17996
  Object.defineProperty(exports, '__esModule', { value: true });
18130
17997