@seniorsistemas/angular-components 17.6.4 → 17.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +820 -851
  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/components/locale/locale.service.d.ts +5 -0
  9. package/components/locale/options/index.d.ts +1 -0
  10. package/components/locale/pipes/numeric.pipe.d.ts +13 -0
  11. package/components/locale/services/numeric.service.d.ts +24 -0
  12. package/esm2015/components/file-upload/file-upload.component.js +45 -60
  13. package/esm2015/components/file-upload/file-upload.module.js +6 -16
  14. package/esm2015/components/file-upload/file-upload.service.js +1 -3
  15. package/esm2015/components/file-upload/models/index.js +1 -2
  16. package/esm2015/components/file-upload/models/validate-errors.js +1 -2
  17. package/esm2015/components/locale/locale.module.js +8 -4
  18. package/esm2015/components/locale/locale.service.js +9 -2
  19. package/esm2015/components/locale/options/index.js +1 -1
  20. package/esm2015/components/locale/pipes/numeric.pipe.js +28 -0
  21. package/esm2015/components/locale/services/numeric.service.js +70 -0
  22. package/esm2015/seniorsistemas-angular-components.js +62 -62
  23. package/esm5/components/file-upload/file-upload.component.js +45 -60
  24. package/esm5/components/file-upload/file-upload.module.js +6 -16
  25. package/esm5/components/file-upload/file-upload.service.js +1 -3
  26. package/esm5/components/file-upload/models/index.js +1 -2
  27. package/esm5/components/file-upload/models/validate-errors.js +1 -2
  28. package/esm5/components/locale/locale.module.js +8 -4
  29. package/esm5/components/locale/locale.service.js +10 -3
  30. package/esm5/components/locale/options/index.js +1 -1
  31. package/esm5/components/locale/pipes/numeric.pipe.js +32 -0
  32. package/esm5/components/locale/services/numeric.service.js +71 -0
  33. package/esm5/seniorsistemas-angular-components.js +62 -62
  34. package/fesm2015/seniorsistemas-angular-components.js +769 -802
  35. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  36. package/fesm5/seniorsistemas-angular-components.js +766 -796
  37. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  38. package/package.json +1 -1
  39. package/seniorsistemas-angular-components.d.ts +61 -61
  40. package/seniorsistemas-angular-components.metadata.json +1 -1
  41. package/components/file-upload/components/file-item/file-item.component.d.ts +0 -26
  42. package/components/file-upload/models/storage-units.d.ts +0 -5
  43. package/esm2015/components/file-upload/components/file-item/file-item.component.js +0 -105
  44. package/esm2015/components/file-upload/models/storage-units.js +0 -6
  45. package/esm5/components/file-upload/components/file-item/file-item.component.js +0 -107
  46. 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;
@@ -1090,7 +1090,7 @@
1090
1090
  var _this = this;
1091
1091
  return this.localeOptions
1092
1092
  ? rxjs.of(this.localeOptions)
1093
- : this.getLocaleConfig().pipe(operators.tap(function (localeOptions) { return (_this.localeOptions = localeOptions); }));
1093
+ : this.getLocaleConfig().pipe(operators.tap(function (localeOptions) { return (_this.localeOptions = __assign(__assign({}, localeOptions), { locale: _this.locale })); }));
1094
1094
  };
1095
1095
  LocaleService.prototype.getLocale = function () {
1096
1096
  var _this = this;
@@ -1101,6 +1101,13 @@
1101
1101
  return _this.locale;
1102
1102
  }));
1103
1103
  };
1104
+ /**
1105
+ * Returns an object with the locale options based on the user's locale(platform locale).
1106
+ * @return The locale options object.
1107
+ */
1108
+ LocaleService.prototype.getLocaleOptions = function () {
1109
+ return this.localeOptions;
1110
+ };
1104
1111
  LocaleService.prototype.getUserData = function () {
1105
1112
  try {
1106
1113
  return rxjs.of(JSON.parse(this.cookieService.get("com.senior.token")));
@@ -6129,555 +6136,133 @@
6129
6136
  return EmptyStateModule;
6130
6137
  }());
6131
6138
 
6132
-
6133
- (function (ProgressBarColors) {
6134
- ProgressBarColors["Blue"] = "blue";
6135
- ProgressBarColors["Green"] = "green";
6136
- ProgressBarColors["Red"] = "red";
6137
- ProgressBarColors["Yellow"] = "yellow";
6138
- })(exports.ProgressBarColors || (exports.ProgressBarColors = {}));
6139
-
6140
- var ProgressBarMode;
6141
- (function (ProgressBarMode) {
6142
- ProgressBarMode["Determinate"] = "determinate";
6143
- ProgressBarMode["Indeterminate"] = "indeterminate";
6144
- })(ProgressBarMode || (ProgressBarMode = {}));
6145
-
6146
- var ProgressBarComponent = /** @class */ (function () {
6147
- function ProgressBarComponent() {
6148
- this.numberFormatOptions = {
6149
- style: "decimal",
6150
- minimumFractionDigits: 0,
6151
- maximumFractionDigits: 2,
6152
- };
6153
- this.showValue = true;
6154
- 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();
6155
6143
  }
6156
- ProgressBarComponent.prototype.ngOnInit = function () {
6157
- this.validateInputs();
6158
- };
6159
- ProgressBarComponent.prototype.validateInputs = function () {
6160
- if (this.value < 0 || this.value > 100) {
6161
- throw new Error("Invalid value for value");
6162
- }
6163
- if (this.targetValue < 0 || this.targetValue > 100) {
6164
- throw new Error("Invalid value for targetValue");
6165
- }
6166
- if (this.mode === ProgressBarMode.Indeterminate && (this.value || this.targetValue || this.targetLabel)) {
6167
- throw new Error("When the mode is indeterminate, the value, targetValue and targetLabel parameters are not expected.");
6168
- }
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
+ });
6169
6150
  };
6170
- __decorate([
6171
- core.Input()
6172
- ], ProgressBarComponent.prototype, "value", void 0);
6173
- __decorate([
6174
- core.Input()
6175
- ], ProgressBarComponent.prototype, "numberFormatOptions", void 0);
6176
- __decorate([
6177
- core.Input()
6178
- ], ProgressBarComponent.prototype, "targetValue", void 0);
6179
- __decorate([
6180
- core.Input()
6181
- ], ProgressBarComponent.prototype, "label", void 0);
6182
- __decorate([
6183
- core.Input()
6184
- ], ProgressBarComponent.prototype, "targetLabel", void 0);
6185
- __decorate([
6186
- core.Input()
6187
- ], ProgressBarComponent.prototype, "activeColor", void 0);
6188
- __decorate([
6189
- core.Input()
6190
- ], ProgressBarComponent.prototype, "showValue", void 0);
6191
- __decorate([
6192
- core.Input()
6193
- ], ProgressBarComponent.prototype, "mode", void 0);
6194
- ProgressBarComponent = __decorate([
6195
- core.Component({
6196
- selector: "s-progressbar",
6197
- 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>",
6198
- 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}"]
6199
- })
6200
- ], ProgressBarComponent);
6201
- return ProgressBarComponent;
6151
+ FileUploadService = __decorate([
6152
+ core.Injectable()
6153
+ ], FileUploadService);
6154
+ return FileUploadService;
6202
6155
  }());
6203
6156
 
6204
- var ProgressBarDeterminateComponent = /** @class */ (function () {
6205
- function ProgressBarDeterminateComponent(localeService) {
6206
- this.localeService = localeService;
6207
- 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.");
6208
6171
  }
6209
- ProgressBarDeterminateComponent.prototype.ngOnInit = function () {
6210
- this.validateValues();
6211
- this.onGetLocale();
6172
+ ExportUtils.addClass = function (element, className) {
6173
+ element.nativeElement.className = element.nativeElement.className + " " + className;
6212
6174
  };
6213
- 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) {
6214
6181
  var _this = this;
6215
- this.localeService.getLocale().subscribe({
6216
- next: function (locale) {
6217
- _this.numberFormat = new Intl.NumberFormat(locale !== null && locale !== void 0 ? locale : "pt-BR", _this.numberFormatOptions);
6218
- },
6219
- error: function () {
6220
- _this.numberFormat = new Intl.NumberFormat("pt-BR", _this.numberFormatOptions);
6221
- },
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;
6222
6191
  });
6223
- };
6224
- ProgressBarDeterminateComponent.prototype.validateValues = function () {
6225
- if (this.value < 0 || this.value > 100) {
6226
- 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);
6227
6234
  }
6228
- if (this.targetValue < 0 || this.targetValue > 100) {
6229
- 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
+ }
6230
6253
  }
6254
+ else
6255
+ return null;
6231
6256
  };
6232
- ProgressBarDeterminateComponent.ctorParameters = function () { return [
6233
- { type: LocaleService }
6234
- ]; };
6235
- __decorate([
6236
- core.Input()
6237
- ], ProgressBarDeterminateComponent.prototype, "value", void 0);
6238
- __decorate([
6239
- core.Input()
6240
- ], ProgressBarDeterminateComponent.prototype, "numberFormatOptions", void 0);
6241
- __decorate([
6242
- core.Input()
6243
- ], ProgressBarDeterminateComponent.prototype, "targetValue", void 0);
6244
- __decorate([
6245
- core.Input()
6246
- ], ProgressBarDeterminateComponent.prototype, "targetLabel", void 0);
6247
- __decorate([
6248
- core.Input()
6249
- ], ProgressBarDeterminateComponent.prototype, "activeColor", void 0);
6250
- __decorate([
6251
- core.Input()
6252
- ], ProgressBarDeterminateComponent.prototype, "showValue", void 0);
6253
- ProgressBarDeterminateComponent = __decorate([
6254
- core.Component({
6255
- selector: "s-progressbar-determinate",
6256
- 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",
6257
- 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}"]
6258
- })
6259
- ], ProgressBarDeterminateComponent);
6260
- return ProgressBarDeterminateComponent;
6261
- }());
6262
-
6263
- var ProgressBarIndeterminateComponent = /** @class */ (function () {
6264
- function ProgressBarIndeterminateComponent() {
6265
- }
6266
- __decorate([
6267
- core.Input()
6268
- ], ProgressBarIndeterminateComponent.prototype, "activeColor", void 0);
6269
- __decorate([
6270
- core.Input()
6271
- ], ProgressBarIndeterminateComponent.prototype, "label", void 0);
6272
- ProgressBarIndeterminateComponent = __decorate([
6273
- core.Component({
6274
- selector: "s-progressbar-indeterminate",
6275
- 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",
6276
- 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%)}}"]
6277
- })
6278
- ], ProgressBarIndeterminateComponent);
6279
- return ProgressBarIndeterminateComponent;
6280
- }());
6281
-
6282
- var ProgressBarModule = /** @class */ (function () {
6283
- function ProgressBarModule() {
6284
- }
6285
- ProgressBarModule = __decorate([
6286
- core.NgModule({
6287
- imports: [common.CommonModule],
6288
- declarations: [
6289
- ProgressBarComponent,
6290
- ProgressBarDeterminateComponent,
6291
- ProgressBarIndeterminateComponent,
6292
- ],
6293
- exports: [ProgressBarComponent],
6294
- })
6295
- ], ProgressBarModule);
6296
- return ProgressBarModule;
6297
- }());
6298
-
6299
- var LocalizedBignumberPipe = /** @class */ (function () {
6300
- function LocalizedBignumberPipe(localeService) {
6301
- this.localeService = localeService;
6302
- }
6303
- LocalizedBignumberPipe.prototype.transform = function (value, options) {
6304
- return value !== undefined && value !== null ? this.applyMask(value, options) : rxjs.of(value);
6305
- };
6306
- LocalizedBignumberPipe.prototype.applyMask = function (value, options) {
6307
- return this.localeService.get().pipe(operators.map(function (localeConfig) {
6308
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
6309
- var configs = {
6310
- 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$",
6311
- 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 : ".",
6312
- 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 : ",",
6313
- scale: (_k = options === null || options === void 0 ? void 0 : options.scale) !== null && _k !== void 0 ? _k : 2,
6314
- allowNegative: (_l = options === null || options === void 0 ? void 0 : options.allowNegative) !== null && _l !== void 0 ? _l : true
6315
- };
6316
- var isNumber = !(new BigNumber__default(value).isNaN());
6317
- return ng2CurrencyMask.applyMask(value, configs, isNumber);
6318
- }));
6319
- };
6320
- LocalizedBignumberPipe.ctorParameters = function () { return [
6321
- { type: LocaleService }
6322
- ]; };
6323
- LocalizedBignumberPipe = __decorate([
6324
- core.Pipe({
6325
- name: "localizedBignumber",
6326
- })
6327
- ], LocalizedBignumberPipe);
6328
- return LocalizedBignumberPipe;
6329
- }());
6330
-
6331
- var LocalizedBignumberImpurePipe = /** @class */ (function (_super) {
6332
- __extends(LocalizedBignumberImpurePipe, _super);
6333
- function LocalizedBignumberImpurePipe() {
6334
- return _super !== null && _super.apply(this, arguments) || this;
6335
- }
6336
- LocalizedBignumberImpurePipe.prototype.transform = function (value, options) {
6337
- return _super.prototype.transform.call(this, value, options);
6338
- };
6339
- LocalizedBignumberImpurePipe = __decorate([
6340
- core.Pipe({
6341
- name: "localizedBignumberImpure",
6342
- pure: false,
6343
- })
6344
- ], LocalizedBignumberImpurePipe);
6345
- return LocalizedBignumberImpurePipe;
6346
- }(LocalizedBignumberPipe));
6347
-
6348
- var LocalizedCurrencyPipeOptions = /** @class */ (function (_super) {
6349
- __extends(LocalizedCurrencyPipeOptions, _super);
6350
- function LocalizedCurrencyPipeOptions(config) {
6351
- if (config === void 0) { config = {}; }
6352
- var _this = _super.call(this, config) || this;
6353
- _this.scale = 2;
6354
- return _this;
6355
- }
6356
- return LocalizedCurrencyPipeOptions;
6357
- }(NumberLocaleOptions));
6358
- /**
6359
- * @deprecated Should use localizedBignumberPipe instead
6360
- */
6361
- var LocalizedCurrencyPipe = /** @class */ (function () {
6362
- function LocalizedCurrencyPipe(localeService) {
6363
- this.localeService = localeService;
6364
- }
6365
- LocalizedCurrencyPipe.prototype.transform = function (value, options) {
6366
- if (!options) {
6367
- options = new LocalizedCurrencyPipeOptions();
6368
- }
6369
- return value !== undefined && value !== null ? this.applyMask(value, options) : rxjs.of(value);
6370
- };
6371
- LocalizedCurrencyPipe.prototype.applyMask = function (value, options) {
6372
- return this.localeService.get().pipe(operators.map(function (localeConfig) {
6373
- var config = __assign(__assign({}, localeConfig.number), options);
6374
- var scale = config.scale, currencySymbol = config.currencySymbol, thousandsSeparator = config.thousandsSeparator, decimalSeparator = config.decimalSeparator;
6375
- var rawValue = Number(value).toFixed(scale);
6376
- var onlyNumbers = rawValue.replace(/[^0-9]/g, "");
6377
- var integerPart = onlyNumbers
6378
- .slice(0, onlyNumbers.length - scale)
6379
- .replace(/^0*/g, "")
6380
- .replace(/\B(?=(\d{3})+(?!\d))/g, thousandsSeparator) || "0";
6381
- var decimalPart = onlyNumbers.slice(onlyNumbers.length - scale);
6382
- var newValue = scale ? integerPart + decimalSeparator + decimalPart : integerPart;
6383
- var isZero = !Number(onlyNumbers);
6384
- var operator = rawValue.includes("-") && !isZero ? "-" : "";
6385
- return "" + operator + currencySymbol + newValue;
6386
- }));
6387
- };
6388
- LocalizedCurrencyPipe.ctorParameters = function () { return [
6389
- { type: LocaleService }
6390
- ]; };
6391
- LocalizedCurrencyPipe = __decorate([
6392
- core.Pipe({
6393
- name: "localizedCurrency",
6394
- })
6395
- ], LocalizedCurrencyPipe);
6396
- return LocalizedCurrencyPipe;
6397
- }());
6398
-
6399
- /**
6400
- * @deprecated Should use localizedBignumberPipe instead
6401
- */
6402
- var LocalizedCurrencyImpurePipe = /** @class */ (function (_super) {
6403
- __extends(LocalizedCurrencyImpurePipe, _super);
6404
- function LocalizedCurrencyImpurePipe() {
6405
- return _super !== null && _super.apply(this, arguments) || this;
6406
- }
6407
- LocalizedCurrencyImpurePipe.prototype.transform = function (value, options) {
6408
- if (options === void 0) { options = new LocalizedCurrencyPipeOptions(); }
6409
- return _super.prototype.transform.call(this, value, options);
6410
- };
6411
- LocalizedCurrencyImpurePipe = __decorate([
6412
- core.Pipe({
6413
- name: "localizedCurrencyImpure",
6414
- pure: false,
6415
- })
6416
- ], LocalizedCurrencyImpurePipe);
6417
- return LocalizedCurrencyImpurePipe;
6418
- }(LocalizedCurrencyPipe));
6419
-
6420
- var moment$1 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
6421
- var LocalizedDatePipe = /** @class */ (function () {
6422
- function LocalizedDatePipe(localeService) {
6423
- this.localeService = localeService;
6424
- }
6425
- LocalizedDatePipe.prototype.transform = function (value, format) {
6426
- if (format === void 0) { format = "L LTS"; }
6427
- return this.localeService.get().pipe(operators.map(function () { return (value ? moment$1(value).format(format) : value); }));
6428
- };
6429
- LocalizedDatePipe.ctorParameters = function () { return [
6430
- { type: LocaleService }
6431
- ]; };
6432
- LocalizedDatePipe = __decorate([
6433
- core.Pipe({
6434
- name: "localizedDate",
6435
- })
6436
- ], LocalizedDatePipe);
6437
- return LocalizedDatePipe;
6438
- }());
6439
-
6440
- var LocalizedDateImpurePipe = /** @class */ (function (_super) {
6441
- __extends(LocalizedDateImpurePipe, _super);
6442
- function LocalizedDateImpurePipe() {
6443
- return _super !== null && _super.apply(this, arguments) || this;
6444
- }
6445
- LocalizedDateImpurePipe = __decorate([
6446
- core.Pipe({
6447
- name: "localizedDateImpure",
6448
- pure: false,
6449
- })
6450
- ], LocalizedDateImpurePipe);
6451
- return LocalizedDateImpurePipe;
6452
- }(LocalizedDatePipe));
6453
-
6454
- /**
6455
- * @deprecated Should use localizedBignumberPipe instead
6456
- */
6457
- var LocalizedNumberPipe = /** @class */ (function () {
6458
- function LocalizedNumberPipe(localeService) {
6459
- this.localeService = localeService;
6460
- }
6461
- LocalizedNumberPipe.prototype.transform = function (value, minimumFractionDigits) {
6462
- return rxjs.from(this.localeService.getLocale()).pipe(operators.map(function (locale) {
6463
- var numericValue = Number(value);
6464
- if (!value && isNaN(numericValue))
6465
- return;
6466
- return new Intl.NumberFormat(locale, {
6467
- minimumFractionDigits: minimumFractionDigits || 0,
6468
- }).format(Number(value));
6469
- }));
6470
- };
6471
- LocalizedNumberPipe.ctorParameters = function () { return [
6472
- { type: LocaleService }
6473
- ]; };
6474
- LocalizedNumberPipe = __decorate([
6475
- core.Pipe({ name: "localizedNumber" })
6476
- ], LocalizedNumberPipe);
6477
- return LocalizedNumberPipe;
6478
- }());
6479
-
6480
- var moment$2 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
6481
- var LocalizedTimePipe = /** @class */ (function () {
6482
- function LocalizedTimePipe(localeService) {
6483
- this.localeService = localeService;
6484
- }
6485
- LocalizedTimePipe.prototype.transform = function (value, format) {
6486
- if (format === void 0) { format = "LTS"; }
6487
- return this.localeService.get().pipe(operators.map(function () { return (value ? moment$2(value, "HH:mm:ss").format(format) : value); }));
6488
- };
6489
- LocalizedTimePipe.ctorParameters = function () { return [
6490
- { type: LocaleService }
6491
- ]; };
6492
- LocalizedTimePipe = __decorate([
6493
- core.Pipe({
6494
- name: "localizedTime",
6495
- })
6496
- ], LocalizedTimePipe);
6497
- return LocalizedTimePipe;
6498
- }());
6499
-
6500
- var LocalizedTimeImpurePipe = /** @class */ (function (_super) {
6501
- __extends(LocalizedTimeImpurePipe, _super);
6502
- function LocalizedTimeImpurePipe() {
6503
- return _super !== null && _super.apply(this, arguments) || this;
6504
- }
6505
- LocalizedTimeImpurePipe = __decorate([
6506
- core.Pipe({
6507
- name: "localizedTimeImpure",
6508
- pure: false,
6509
- })
6510
- ], LocalizedTimeImpurePipe);
6511
- return LocalizedTimeImpurePipe;
6512
- }(LocalizedTimePipe));
6513
-
6514
- var LocaleModule = /** @class */ (function () {
6515
- function LocaleModule() {
6516
- }
6517
- LocaleModule_1 = LocaleModule;
6518
- LocaleModule.forRoot = function () {
6519
- return {
6520
- ngModule: LocaleModule_1,
6521
- providers: [
6522
- LocaleService,
6523
- LocalizedCurrencyPipe,
6524
- LocalizedDatePipe,
6525
- LocalizedTimePipe,
6526
- LocalizedNumberPipe,
6527
- LocalizedCurrencyImpurePipe,
6528
- LocalizedDateImpurePipe,
6529
- LocalizedTimeImpurePipe,
6530
- LocalizedBignumberPipe,
6531
- LocalizedBignumberImpurePipe
6532
- ],
6533
- };
6534
- };
6535
- LocaleModule.forChild = function () {
6536
- return {
6537
- ngModule: LocaleModule_1,
6538
- };
6539
- };
6540
- var LocaleModule_1;
6541
- LocaleModule = LocaleModule_1 = __decorate([
6542
- core.NgModule({
6543
- imports: [common.CommonModule],
6544
- exports: [
6545
- LocalizedCurrencyPipe,
6546
- LocalizedDatePipe,
6547
- LocalizedTimePipe,
6548
- LocalizedNumberPipe,
6549
- LocalizedCurrencyImpurePipe,
6550
- LocalizedDateImpurePipe,
6551
- LocalizedTimeImpurePipe,
6552
- LocalizedBignumberPipe,
6553
- LocalizedBignumberImpurePipe
6554
- ],
6555
- declarations: [
6556
- LocalizedCurrencyPipe,
6557
- LocalizedDatePipe,
6558
- LocalizedTimePipe,
6559
- LocalizedNumberPipe,
6560
- LocalizedCurrencyImpurePipe,
6561
- LocalizedDateImpurePipe,
6562
- LocalizedTimeImpurePipe,
6563
- LocalizedBignumberPipe,
6564
- LocalizedBignumberImpurePipe
6565
- ],
6566
- })
6567
- ], LocaleModule);
6568
- return LocaleModule;
6569
- }());
6570
-
6571
- var Breakpoints = {
6572
- SM_MIN: 0,
6573
- SM_MAX: 767,
6574
- MD_MIN: 768,
6575
- MD_MAX: 991,
6576
- LG_MIN: 992,
6577
- LG_MAX: 1199,
6578
- XL_MIN: 1200,
6579
- XL_MAX: Infinity,
6580
- };
6581
-
6582
- var ExportUtils = /** @class */ (function () {
6583
- function ExportUtils() {
6584
- throw new Error("Classe não deve ser instanciada.");
6585
- }
6586
- ExportUtils.addClass = function (element, className) {
6587
- element.nativeElement.className = element.nativeElement.className + " " + className;
6588
- };
6589
- ExportUtils.removeClass = function (element, className) {
6590
- if (element.nativeElement.className.includes(className)) {
6591
- element.nativeElement.className = element.nativeElement.className.replace(className, "");
6592
- }
6593
- };
6594
- ExportUtils.exportCSV = function (columns, data, csvSeparator, documentName) {
6595
- var _this = this;
6596
- if (columns === void 0) { columns = []; }
6597
- if (data === void 0) { data = []; }
6598
- if (csvSeparator === void 0) { csvSeparator = ";"; }
6599
- if (documentName === void 0) { documentName = "download"; }
6600
- var csv = "\ufeff";
6601
- columns.filter(function (column) { return column.exportable && column.field; }).forEach(function (column, i) {
6602
- csv += "\"" + (column.header || column.field) + "\"";
6603
- if (i < columns.length - 1)
6604
- csv += csvSeparator;
6605
- });
6606
- data.forEach(function (record) {
6607
- csv += "\n";
6608
- columns.filter(function (column) { return column.exportable && column.field; }).forEach(function (column, i) {
6609
- var cellData;
6610
- if (Array.isArray(column.field)) {
6611
- var fieldValues = column.field.map(function (col) { return _this.resolveFieldData(record, col); });
6612
- cellData = fieldValues
6613
- .flat()
6614
- .filter(function (value) { return value !== null && value !== undefined; })
6615
- .join(column.separator);
6616
- }
6617
- else {
6618
- cellData = _this.resolveFieldData(record, column.field);
6619
- }
6620
- if (cellData != null)
6621
- cellData = String(cellData).replace(/"/g, "\"\"");
6622
- else
6623
- cellData = "";
6624
- csv += "\"" + cellData + "\"";
6625
- if (i < columns.length - 1)
6626
- csv += csvSeparator;
6627
- });
6628
- });
6629
- var blob = new Blob([csv], {
6630
- type: "text/csv;charset=utf-8;",
6631
- });
6632
- if (window.navigator.msSaveOrOpenBlob)
6633
- navigator.msSaveOrOpenBlob(blob, documentName + ".csv");
6634
- else {
6635
- var link = document.createElement("a");
6636
- link.style.display = "none";
6637
- document.body.appendChild(link);
6638
- if (link.download !== undefined) {
6639
- link.setAttribute("href", URL.createObjectURL(blob));
6640
- link.setAttribute("download", documentName + ".csv");
6641
- link.click();
6642
- }
6643
- else {
6644
- csv = "data:text/csv;charset=utf-8," + csv;
6645
- window.open(encodeURI(csv));
6646
- }
6647
- document.body.removeChild(link);
6648
- }
6649
- };
6650
- ExportUtils.resolveFieldData = function (data, field) {
6651
- if (data && field) {
6652
- if (this.isFunction(field))
6653
- return field(data);
6654
- else if (field.indexOf(".") == -1)
6655
- return data[field];
6656
- else {
6657
- var fields = field.split(".");
6658
- var value = data;
6659
- for (var i = 0, len = fields.length; i < len; ++i) {
6660
- if (value == null) {
6661
- return null;
6662
- }
6663
- value = value[fields[i]];
6664
- }
6665
- return value;
6666
- }
6667
- }
6668
- else
6669
- return null;
6670
- };
6671
- ExportUtils.isFunction = function (obj) {
6672
- return !!(obj && obj.constructor && obj.call && obj.apply);
6673
- };
6674
- return ExportUtils;
6257
+ ExportUtils.isFunction = function (obj) {
6258
+ return !!(obj && obj.constructor && obj.call && obj.apply);
6259
+ };
6260
+ return ExportUtils;
6675
6261
  }());
6676
6262
 
6677
6263
 
6678
6264
  (function (ValidateErrors) {
6679
6265
  ValidateErrors["MAX_FILE_SIZE"] = "MAX_FILE_SIZE";
6680
- ValidateErrors["MAX_COMBINED_FILE_SIZE"] = "MAX_COMBINED_FILE_SIZE";
6681
6266
  ValidateErrors["MAX_FILE_LIMIT"] = "MAX_FILE_LIMIT";
6682
6267
  ValidateErrors["UNSUPPORTED_EXTENSION"] = "UNSUPPORTED_EXTENSION";
6683
6268
  })(exports.ValidateErrors || (exports.ValidateErrors = {}));
@@ -6694,132 +6279,7 @@
6694
6279
  FileUploadPermissions.Remove,
6695
6280
  ];
6696
6281
 
6697
- var StorageUnits = {
6698
- KB: 1024,
6699
- MB: Math.pow(1024, 2),
6700
- GB: Math.pow(1024, 3),
6701
- };
6702
-
6703
- var FileItemComponent = /** @class */ (function () {
6704
- function FileItemComponent(localeService) {
6705
- this.localeService = localeService;
6706
- this.canReadFiles = true;
6707
- this.canRemoveFiles = true;
6708
- this.cancelUpload = new core.EventEmitter();
6709
- this.removeFile = new core.EventEmitter();
6710
- }
6711
- FileItemComponent.prototype.ngOnInit = function () {
6712
- this._getLocale();
6713
- };
6714
- FileItemComponent.prototype.ngAfterContentInit = function () {
6715
- this._update();
6716
- };
6717
- FileItemComponent.prototype.onResize = function () {
6718
- this._update();
6719
- };
6720
- FileItemComponent.prototype._update = function () {
6721
- var windowWidth = window.innerWidth;
6722
- this.isSmallDevice = windowWidth <= Breakpoints.SM_MAX;
6723
- };
6724
- FileItemComponent.prototype.simplifySize = function (size) {
6725
- var unit;
6726
- var convertedSize;
6727
- if (size < StorageUnits.KB) {
6728
- convertedSize = size;
6729
- unit = "bytes";
6730
- }
6731
- else if (size < StorageUnits.MB) {
6732
- convertedSize = size / StorageUnits.KB;
6733
- unit = "KB";
6734
- }
6735
- else if (size < StorageUnits.GB) {
6736
- convertedSize = size / StorageUnits.MB;
6737
- unit = "MB";
6738
- }
6739
- else {
6740
- convertedSize = size / StorageUnits.GB;
6741
- unit = "GB";
6742
- }
6743
- return convertedSize.toLocaleString(this._locale, { maximumFractionDigits: 2 }) + " " + unit;
6744
- };
6745
- FileItemComponent.prototype._getLocale = function () {
6746
- var _this = this;
6747
- this.localeService
6748
- .getLocale()
6749
- .pipe(operators.first())
6750
- .subscribe(function (locale) {
6751
- _this._locale = locale;
6752
- });
6753
- };
6754
- FileItemComponent.ctorParameters = function () { return [
6755
- { type: LocaleService }
6756
- ]; };
6757
- __decorate([
6758
- core.Input()
6759
- ], FileItemComponent.prototype, "id", void 0);
6760
- __decorate([
6761
- core.Input()
6762
- ], FileItemComponent.prototype, "file", void 0);
6763
- __decorate([
6764
- core.Input()
6765
- ], FileItemComponent.prototype, "canReadFiles", void 0);
6766
- __decorate([
6767
- core.Input()
6768
- ], FileItemComponent.prototype, "canRemoveFiles", void 0);
6769
- __decorate([
6770
- core.Input()
6771
- ], FileItemComponent.prototype, "cancelLabel", void 0);
6772
- __decorate([
6773
- core.Input()
6774
- ], FileItemComponent.prototype, "removeLabel", void 0);
6775
- __decorate([
6776
- core.Input()
6777
- ], FileItemComponent.prototype, "ariaLabelProgress", void 0);
6778
- __decorate([
6779
- core.Input()
6780
- ], FileItemComponent.prototype, "successTooltip", void 0);
6781
- __decorate([
6782
- core.Input()
6783
- ], FileItemComponent.prototype, "ariaLabelSuccess", void 0);
6784
- __decorate([
6785
- core.Output()
6786
- ], FileItemComponent.prototype, "cancelUpload", void 0);
6787
- __decorate([
6788
- core.Output()
6789
- ], FileItemComponent.prototype, "removeFile", void 0);
6790
- __decorate([
6791
- core.HostListener("window:resize")
6792
- ], FileItemComponent.prototype, "onResize", null);
6793
- FileItemComponent = __decorate([
6794
- core.Component({
6795
- selector: "s-file-item",
6796
- 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",
6797
- 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}}"]
6798
- })
6799
- ], FileItemComponent);
6800
- return FileItemComponent;
6801
- }());
6802
-
6803
- var moment$3 = moment_;
6804
- var FileUploadService = /** @class */ (function () {
6805
- function FileUploadService() {
6806
- this.BASE_URL_FIELD_CUSTOMIZATION = "platform/field_customization";
6807
- this.TOKEN = new AbortController();
6808
- }
6809
- FileUploadService.prototype.getMetadataCustomField = function (request) {
6810
- return __awaiter(this, void 0, void 0, function () {
6811
- return __generator(this, function (_a) {
6812
- return [2 /*return*/, CustomHttpClient.POST(this.BASE_URL_FIELD_CUSTOMIZATION + "/queries/getFileMetadata", request, { signal: this.TOKEN.signal })];
6813
- });
6814
- });
6815
- };
6816
- FileUploadService = __decorate([
6817
- core.Injectable()
6818
- ], FileUploadService);
6819
- return FileUploadService;
6820
- }());
6821
-
6822
- var moment$4 = moment_;
6282
+ var moment$1 = moment_;
6823
6283
  var FileUploadComponent = /** @class */ (function () {
6824
6284
  function FileUploadComponent(sanitizer, fileUploadService, translate) {
6825
6285
  this.sanitizer = sanitizer;
@@ -6838,9 +6298,9 @@
6838
6298
  this.cancelUpload = new core.EventEmitter();
6839
6299
  this.downloadFile = new core.EventEmitter();
6840
6300
  this.validateErrors = new core.EventEmitter();
6841
- this.inputValue = "";
6842
6301
  this._files = [];
6843
6302
  this.ngUsubscribe = new rxjs.Subject();
6303
+ this.inputValue = "";
6844
6304
  }
6845
6305
  FileUploadComponent_1 = FileUploadComponent;
6846
6306
  Object.defineProperty(FileUploadComponent.prototype, "files", {
@@ -6851,10 +6311,10 @@
6851
6311
  var _this = this;
6852
6312
  var _a;
6853
6313
  if (this.showFileUploadDate && ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId)) {
6854
- this._getUploadDate(files);
6314
+ this.getUploadDate(files);
6855
6315
  }
6856
6316
  this._files = files.map(function (file) {
6857
- if (_this._isImage(file)) {
6317
+ if (_this.isImage(file)) {
6858
6318
  file.objectURL = _this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(file));
6859
6319
  }
6860
6320
  return file;
@@ -6864,45 +6324,44 @@
6864
6324
  configurable: true
6865
6325
  });
6866
6326
  FileUploadComponent.prototype.ngOnInit = function () {
6867
- this.supportedExtensions = this.supportedExtensions.map(function (extension) { return extension.replace(".", "").toLowerCase(); });
6327
+ this.supportedExtensions = this.supportedExtensions
6328
+ .map(function (extension) { return extension.replace(".", "").toLowerCase(); });
6868
6329
  };
6869
6330
  FileUploadComponent.prototype.ngOnDestroy = function () {
6870
6331
  this.ngUsubscribe.next();
6871
6332
  this.ngUsubscribe.complete();
6872
6333
  };
6334
+ FileUploadComponent.prototype.ngAfterContentInit = function () {
6335
+ this.update();
6336
+ };
6337
+ FileUploadComponent.prototype.onResize = function () {
6338
+ this.update();
6339
+ };
6873
6340
  FileUploadComponent.prototype.onFileSelect = function (files) {
6874
6341
  var e_1, _a;
6875
6342
  var newFiles = [];
6876
6343
  if (!this.multiple) {
6877
6344
  this.files = [];
6878
6345
  }
6879
- if (this._isFileLimitExceeded(files)) {
6346
+ if (this.isFileLimitExceeded(files)) {
6880
6347
  this.validateErrors.emit({
6881
6348
  files: files,
6882
6349
  validation: exports.ValidateErrors.MAX_FILE_LIMIT,
6883
6350
  });
6884
- this._clearFileInput();
6885
- return;
6886
- }
6887
- if (this._isFileCombinedSizeExceeded(files)) {
6888
- this.validateErrors.emit({
6889
- files: files,
6890
- validation: exports.ValidateErrors.MAX_COMBINED_FILE_SIZE,
6891
- });
6892
- this._clearFileInput();
6351
+ this.clearFileInput();
6893
6352
  return;
6894
6353
  }
6895
6354
  try {
6896
6355
  for (var files_1 = __values(files), files_1_1 = files_1.next(); !files_1_1.done; files_1_1 = files_1.next()) {
6897
6356
  var file = files_1_1.value;
6898
- if (this._isUnsupportedFileExtension(file)) {
6357
+ if (this.isUnsupportedFileExtension(file)) {
6899
6358
  this.validateErrors.emit({
6900
6359
  files: [file],
6901
6360
  validation: exports.ValidateErrors.UNSUPPORTED_EXTENSION,
6902
6361
  });
6903
6362
  continue;
6904
6363
  }
6905
- if (this._isFileSizeExceeded(file)) {
6364
+ if (this.isFileSizeExceeded(file)) {
6906
6365
  this.validateErrors.emit({
6907
6366
  files: [file],
6908
6367
  validation: exports.ValidateErrors.MAX_FILE_SIZE,
@@ -6925,7 +6384,7 @@
6925
6384
  files: newFiles,
6926
6385
  });
6927
6386
  }
6928
- this._clearFileInput();
6387
+ this.clearFileInput();
6929
6388
  };
6930
6389
  FileUploadComponent.prototype.onRemoveFile = function (file) {
6931
6390
  var fileIndex = this.files.indexOf(file);
@@ -6934,13 +6393,12 @@
6934
6393
  this.removeFile.emit({ file: file });
6935
6394
  }
6936
6395
  };
6937
- FileUploadComponent.prototype.onCancelUpload = function (file) {
6938
- var index = this.files.indexOf(file);
6939
- if (index != -1) {
6940
- this.files.splice(index, 1);
6396
+ FileUploadComponent.prototype.onCancelUpload = function (index) {
6397
+ var removedFiles = this.files.splice(index, 1);
6398
+ if (removedFiles.length) {
6941
6399
  this.cancelUpload.emit(index);
6942
6400
  }
6943
- this._clearFileInput();
6401
+ this.clearFileInput();
6944
6402
  };
6945
6403
  FileUploadComponent.prototype.onDowloadFile = function (index) {
6946
6404
  this.downloadFile.emit({
@@ -6948,65 +6406,51 @@
6948
6406
  anchor: this.anchor,
6949
6407
  });
6950
6408
  };
6951
- FileUploadComponent.prototype._isImage = function (file) {
6409
+ FileUploadComponent.prototype.update = function () {
6410
+ var windowWidth = window.innerWidth;
6411
+ this.isSmallDevice = windowWidth <= Breakpoints.SM_MAX;
6412
+ };
6413
+ FileUploadComponent.prototype.isImage = function (file) {
6952
6414
  return /^image\//.test(file.type);
6953
6415
  };
6954
- FileUploadComponent.prototype._isFileLimitExceeded = function (files) {
6416
+ FileUploadComponent.prototype.isFileLimitExceeded = function (files) {
6955
6417
  if (!this.fileLimit) {
6956
6418
  return false;
6957
6419
  }
6958
6420
  return this.files.length + files.length > this.fileLimit;
6959
6421
  };
6960
- FileUploadComponent.prototype._isFileCombinedSizeExceeded = function (files) {
6961
- if (!this.maxCombinedFileSize) {
6962
- return false;
6963
- }
6964
- var filesList = __spread(files, this.files);
6965
- var combinedSize = filesList.reduce(function (combinedSize, file) { return combinedSize + file.size; }, 0);
6966
- return combinedSize > this.maxCombinedFileSize;
6967
- };
6968
- FileUploadComponent.prototype._isFileSizeExceeded = function (file) {
6422
+ FileUploadComponent.prototype.isFileSizeExceeded = function (file) {
6969
6423
  if (!this.maxFileSize) {
6970
6424
  return false;
6971
6425
  }
6972
6426
  return file.size > this.maxFileSize;
6973
6427
  };
6974
- FileUploadComponent.prototype._isUnsupportedFileExtension = function (file) {
6428
+ FileUploadComponent.prototype.isUnsupportedFileExtension = function (file) {
6975
6429
  var _a;
6976
6430
  if ((_a = this.supportedExtensions) === null || _a === void 0 ? void 0 : _a.length) {
6977
- var extension = file.name
6978
- .split(".")
6979
- .pop()
6980
- .toLowerCase();
6431
+ var extension = file.name.split(".").pop().toLowerCase();
6981
6432
  return !this.supportedExtensions.includes(extension);
6982
6433
  }
6983
6434
  return false;
6984
6435
  };
6985
- FileUploadComponent.prototype._clearFileInput = function () {
6436
+ FileUploadComponent.prototype.clearFileInput = function () {
6986
6437
  this.inputUpload.nativeElement.value = null;
6987
6438
  };
6988
- FileUploadComponent.prototype._getUploadDate = function (blobFile) {
6439
+ FileUploadComponent.prototype.getUploadDate = function (blobFile) {
6989
6440
  var _this = this;
6990
6441
  if (!blobFile) {
6991
6442
  return;
6992
6443
  }
6993
- this.fileUploadService
6994
- .getMetadataCustomField({ objectId: blobFile[0].objectId })
6995
- .then(function (metadata) { return _this._setModifiedDate(metadata); });
6996
- };
6997
- FileUploadComponent.prototype._setModifiedDate = function (metadata) {
6998
- var hour = moment$4(metadata.modified).format("HH");
6999
- var minutes = moment$4(metadata.modified).format("mm");
7000
- var day = moment$4(metadata.modified).format("DD");
7001
- var month = moment$4(metadata.modified).format("MM");
7002
- var fullYear = moment$4(metadata.modified).format("YYYY");
7003
- this.modifiedDate = this.translate.instant("platform.angular_components.date_modified_custom_blob", {
7004
- hour: hour,
7005
- minutes: minutes,
7006
- day: day,
7007
- month: month,
7008
- fullYear: fullYear,
7009
- });
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 });
7010
6454
  };
7011
6455
  var FileUploadComponent_1;
7012
6456
  FileUploadComponent.nextId = 0;
@@ -7051,9 +6495,6 @@
7051
6495
  __decorate([
7052
6496
  core.Input()
7053
6497
  ], FileUploadComponent.prototype, "maxFileSize", void 0);
7054
- __decorate([
7055
- core.Input()
7056
- ], FileUploadComponent.prototype, "maxCombinedFileSize", void 0);
7057
6498
  __decorate([
7058
6499
  core.Input()
7059
6500
  ], FileUploadComponent.prototype, "fileLimit", void 0);
@@ -7099,11 +6540,14 @@
7099
6540
  __decorate([
7100
6541
  core.Output()
7101
6542
  ], FileUploadComponent.prototype, "validateErrors", void 0);
6543
+ __decorate([
6544
+ core.HostListener("window:resize")
6545
+ ], FileUploadComponent.prototype, "onResize", null);
7102
6546
  FileUploadComponent = FileUploadComponent_1 = __decorate([
7103
6547
  core.Component({
7104
6548
  selector: "s-file-upload",
7105
- 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",
7106
- 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}"]
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}}"]
7107
6551
  })
7108
6552
  ], FileUploadComponent);
7109
6553
  return FileUploadComponent;
@@ -7114,22 +6558,15 @@
7114
6558
  }
7115
6559
  FileUploadModule = __decorate([
7116
6560
  core.NgModule({
6561
+ declarations: [FileUploadComponent],
7117
6562
  imports: [
7118
6563
  common.CommonModule,
7119
- http.HttpClientModule,
7120
6564
  ButtonModule,
7121
- TooltipModule,
7122
- ProgressBarModule,
6565
+ tooltip.TooltipModule,
6566
+ progressbar.ProgressBarModule,
7123
6567
  core$1.TranslateModule,
7124
6568
  ],
7125
- declarations: [
7126
- FileUploadComponent,
7127
- FileItemComponent,
7128
- ],
7129
- providers: [
7130
- FileUploadService,
7131
- LocaleService,
7132
- ],
6569
+ providers: [FileUploadService],
7133
6570
  exports: [FileUploadComponent],
7134
6571
  })
7135
6572
  ], FileUploadModule);
@@ -7468,40 +6905,405 @@
7468
6905
  { type: core.ComponentFactoryResolver },
7469
6906
  { type: core.ChangeDetectorRef }
7470
6907
  ]; };
7471
- __decorate([
7472
- core.Input("sLoadingState")
7473
- ], LoadingStateDirective.prototype, "sLoadingState", null);
7474
- LoadingStateDirective = __decorate([
7475
- core.Directive({
7476
- selector: "[sLoadingState]",
6908
+ __decorate([
6909
+ core.Input("sLoadingState")
6910
+ ], LoadingStateDirective.prototype, "sLoadingState", null);
6911
+ LoadingStateDirective = __decorate([
6912
+ core.Directive({
6913
+ selector: "[sLoadingState]",
6914
+ })
6915
+ ], LoadingStateDirective);
6916
+ return LoadingStateDirective;
6917
+ }());
6918
+
6919
+ var LoadingStateModule = /** @class */ (function () {
6920
+ function LoadingStateModule() {
6921
+ }
6922
+ LoadingStateModule = __decorate([
6923
+ core.NgModule({
6924
+ imports: [
6925
+ common.CommonModule,
6926
+ SVGFactoryModule,
6927
+ ],
6928
+ declarations: [
6929
+ LoadingStateComponent,
6930
+ LoadingStateDirective,
6931
+ DotsIndicatorComponent,
6932
+ LoadingIndicatorComponent,
6933
+ ],
6934
+ exports: [
6935
+ LoadingStateComponent,
6936
+ LoadingStateDirective,
6937
+ ],
6938
+ entryComponents: [LoadingStateComponent],
6939
+ })
6940
+ ], LoadingStateModule);
6941
+ return LoadingStateModule;
6942
+ }());
6943
+
6944
+ var LocalizedBignumberPipe = /** @class */ (function () {
6945
+ function LocalizedBignumberPipe(localeService) {
6946
+ this.localeService = localeService;
6947
+ }
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",
6971
+ })
6972
+ ], LocalizedBignumberPipe);
6973
+ return LocalizedBignumberPipe;
6974
+ }());
6975
+
6976
+ var LocalizedBignumberImpurePipe = /** @class */ (function (_super) {
6977
+ __extends(LocalizedBignumberImpurePipe, _super);
6978
+ function LocalizedBignumberImpurePipe() {
6979
+ return _super !== null && _super.apply(this, arguments) || this;
6980
+ }
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,
6988
+ })
6989
+ ], LocalizedBignumberImpurePipe);
6990
+ return LocalizedBignumberImpurePipe;
6991
+ }(LocalizedBignumberPipe));
6992
+
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;
7000
+ }
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();
7013
+ }
7014
+ return value !== undefined && value !== null ? this.applyMask(value, options) : rxjs.of(value);
7015
+ };
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 }
7035
+ ]; };
7036
+ LocalizedCurrencyPipe = __decorate([
7037
+ core.Pipe({
7038
+ name: "localizedCurrency",
7039
+ })
7040
+ ], LocalizedCurrencyPipe);
7041
+ return LocalizedCurrencyPipe;
7042
+ }());
7043
+
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;
7051
+ }
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,
7060
+ })
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;
7083
+ }());
7084
+
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;
7105
+ }
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;
7123
+ }());
7124
+
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;
7129
+ }
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",
7140
+ })
7141
+ ], LocalizedTimePipe);
7142
+ return LocalizedTimePipe;
7143
+ }());
7144
+
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));
7158
+
7159
+ var NumericService = /** @class */ (function () {
7160
+ function NumericService(localeService) {
7161
+ this.localeService = localeService;
7162
+ }
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());
7181
+ };
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";
7186
+ }
7187
+ var baseType = typeof value;
7188
+ // Primitive types
7189
+ if (baseType !== "object" && baseType !== "function") {
7190
+ return baseType;
7191
+ }
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;
7197
+ }
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;
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;
7211
+ };
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",
7477
7219
  })
7478
- ], LoadingStateDirective);
7479
- return LoadingStateDirective;
7220
+ ], NumericService);
7221
+ return NumericService;
7480
7222
  }());
7481
7223
 
7482
- var LoadingStateModule = /** @class */ (function () {
7483
- function LoadingStateModule() {
7224
+ var NumericPipe = /** @class */ (function () {
7225
+ function NumericPipe(numericService, localeService) {
7226
+ this.numericService = numericService;
7227
+ this.localeService = localeService;
7484
7228
  }
7485
- LoadingStateModule = __decorate([
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 }
7242
+ ]; };
7243
+ NumericPipe = __decorate([
7244
+ core.Pipe({ name: "numeric" })
7245
+ ], NumericPipe);
7246
+ return NumericPipe;
7247
+ }());
7248
+
7249
+ var LocaleModule = /** @class */ (function () {
7250
+ function LocaleModule() {
7251
+ }
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([
7486
7278
  core.NgModule({
7487
- imports: [
7488
- common.CommonModule,
7489
- 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
7490
7291
  ],
7491
7292
  declarations: [
7492
- LoadingStateComponent,
7493
- LoadingStateDirective,
7494
- DotsIndicatorComponent,
7495
- LoadingIndicatorComponent,
7496
- ],
7497
- exports: [
7498
- LoadingStateComponent,
7499
- LoadingStateDirective,
7293
+ LocalizedCurrencyPipe,
7294
+ LocalizedDatePipe,
7295
+ LocalizedTimePipe,
7296
+ LocalizedNumberPipe,
7297
+ LocalizedCurrencyImpurePipe,
7298
+ LocalizedDateImpurePipe,
7299
+ LocalizedTimeImpurePipe,
7300
+ LocalizedBignumberPipe,
7301
+ LocalizedBignumberImpurePipe,
7302
+ NumericPipe
7500
7303
  ],
7501
- entryComponents: [LoadingStateComponent],
7502
7304
  })
7503
- ], LoadingStateModule);
7504
- return LoadingStateModule;
7305
+ ], LocaleModule);
7306
+ return LocaleModule;
7505
7307
  }());
7506
7308
 
7507
7309
  var LocalizedNumberInputDirective = /** @class */ (function () {
@@ -8399,7 +8201,7 @@
8399
8201
  EnumBadgeColors["GRAY"] = "gray";
8400
8202
  })(exports.EnumBadgeColors || (exports.EnumBadgeColors = {}));
8401
8203
 
8402
- var moment$5 = moment_;
8204
+ var moment$4 = moment_;
8403
8205
  var TableColumnsComponent = /** @class */ (function () {
8404
8206
  function TableColumnsComponent(viewContainerRef, translate, hostProjectConfigs) {
8405
8207
  this.viewContainerRef = viewContainerRef;
@@ -8506,7 +8308,7 @@
8506
8308
  return ng2CurrencyMask.applyMask(attributeValue, numberConfigs, _this.isNumber(attributeValue));
8507
8309
  case exports.EnumColumnFieldType.DATE:
8508
8310
  var dateFormat = _this.getDateFormat(column, locale);
8509
- return moment$5(attributeValue).format(dateFormat);
8311
+ return moment$4(attributeValue).format(dateFormat);
8510
8312
  case exports.EnumColumnFieldType.BOOLEAN:
8511
8313
  var value = attributeValue ? "yes" : "no";
8512
8314
  return _this.translate.instant(prefix + value);
@@ -10638,7 +10440,7 @@
10638
10440
  CustomFieldType["Any"] = "Any";
10639
10441
  CustomFieldType["Enum"] = "Enum";
10640
10442
  })(CustomFieldType || (CustomFieldType = {}));
10641
- 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
10642
10444
  var CustomFieldsComponent = /** @class */ (function () {
10643
10445
  function CustomFieldsComponent(customFieldsService, localeService, sanitizer, translateService, controlContainer) {
10644
10446
  this.customFieldsService = customFieldsService;
@@ -10849,16 +10651,16 @@
10849
10651
  return;
10850
10652
  switch (type) {
10851
10653
  case exports.FieldType.Date:
10852
- parsedValues[name] = moment$6(value).toDate();
10654
+ parsedValues[name] = moment$5(value).toDate();
10853
10655
  break;
10854
10656
  case exports.FieldType.DateTime:
10855
- parsedValues[name] = moment$6(value).toDate();
10657
+ parsedValues[name] = moment$5(value).toDate();
10856
10658
  break;
10857
10659
  case exports.FieldType.LocalDateTime:
10858
- 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();
10859
10661
  break;
10860
10662
  case exports.FieldType.Time:
10861
- parsedValues[name] = moment$6(value, "HH:mm:ss").toDate();
10663
+ parsedValues[name] = moment$5(value, "HH:mm:ss").toDate();
10862
10664
  break;
10863
10665
  }
10864
10666
  });
@@ -10891,16 +10693,16 @@
10891
10693
  value = new BigNumber__default(value).toFixed(scale).toString();
10892
10694
  break;
10893
10695
  case exports.FieldType.Date:
10894
- value = moment$6(value).format("YYYY-MM-DD");
10696
+ value = moment$5(value).format("YYYY-MM-DD");
10895
10697
  break;
10896
10698
  case exports.FieldType.DateTime:
10897
- value = moment$6(value).format();
10699
+ value = moment$5(value).format();
10898
10700
  break;
10899
10701
  case exports.FieldType.LocalDateTime:
10900
- 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");
10901
10703
  break;
10902
10704
  case exports.FieldType.Time:
10903
- value = moment$6(value).format("HH:mm:ss");
10705
+ value = moment$5(value).format("HH:mm:ss");
10904
10706
  break;
10905
10707
  }
10906
10708
  }
@@ -11313,7 +11115,7 @@
11313
11115
  return EditableOverlayModule;
11314
11116
  }());
11315
11117
 
11316
- var moment$7 = moment_;
11118
+ var moment$6 = moment_;
11317
11119
  var YEAR = "year";
11318
11120
  var MONTH = "month";
11319
11121
  var DAY = "day";
@@ -11325,22 +11127,22 @@
11325
11127
  function DateUtils() {
11326
11128
  }
11327
11129
  DateUtils.parse = function (date) {
11328
- return moment$7(date).toDate();
11130
+ return moment$6(date).toDate();
11329
11131
  };
11330
11132
  DateUtils.toString = function (date, with_time) {
11331
11133
  if (with_time === void 0) { with_time = false; }
11332
- 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");
11333
11135
  return result.toString();
11334
11136
  };
11335
11137
  DateUtils.format = function (date, formatString, lang) {
11336
11138
  if (formatString === void 0) { formatString = "YYYY-MM-DD HH:mm:ss.SSS"; }
11337
11139
  if (lang === void 0) { lang = "en"; }
11338
- var monthName = moment$7(date)
11140
+ var monthName = moment$6(date)
11339
11141
  .locale(lang)
11340
11142
  .startOf("month")
11341
11143
  .format("MMMM");
11342
11144
  var monthNameCapitalized = monthName.charAt(0).toUpperCase() + monthName.slice(1);
11343
- var dateToFormat = moment$7(date).locale(lang);
11145
+ var dateToFormat = moment$6(date).locale(lang);
11344
11146
  var format_map = {
11345
11147
  YYYY: dateToFormat.format("YYYY"),
11346
11148
  MM: dateToFormat.format("MM"),
@@ -11370,13 +11172,13 @@
11370
11172
  return str;
11371
11173
  };
11372
11174
  DateUtils.diff = function (fistDate, secondDate, scale) {
11373
- var milliseconds = moment$7(fistDate).diff(secondDate, MILLISECOND);
11374
- var seconds = moment$7(fistDate).diff(secondDate, SECOND);
11375
- var minutes = moment$7(fistDate).diff(secondDate, MINUTE);
11376
- var hours = moment$7(fistDate).diff(secondDate, HOUR);
11377
- var days = moment$7(fistDate).diff(secondDate, DAY);
11378
- var months = moment$7(fistDate).diff(secondDate, MONTH);
11379
- 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);
11380
11182
  if (!scale.endsWith("s")) {
11381
11183
  scale += "s";
11382
11184
  }
@@ -11391,14 +11193,14 @@
11391
11193
  }[scale]);
11392
11194
  };
11393
11195
  DateUtils.today = function () {
11394
- var dateStr = moment$7().format("YYY-MM-DD");
11196
+ var dateStr = moment$6().format("YYY-MM-DD");
11395
11197
  return new Date(dateStr);
11396
11198
  };
11397
11199
  DateUtils.now = function () {
11398
- return moment$7().toDate();
11200
+ return moment$6().toDate();
11399
11201
  };
11400
11202
  DateUtils.add = function (date, quantity, scale) {
11401
- return moment$7(date).add(quantity, scale).toDate();
11203
+ return moment$6(date).add(quantity, scale).toDate();
11402
11204
  };
11403
11205
  DateUtils.startOf = function (date, scale) {
11404
11206
  var _a;
@@ -11427,7 +11229,7 @@
11427
11229
  return new Date(vals[0], vals[1], vals[2], vals[3], vals[4], vals[5], vals[6]);
11428
11230
  };
11429
11231
  DateUtils.clone = function (date) {
11430
- return moment$7(date).toDate();
11232
+ return moment$6(date).toDate();
11431
11233
  };
11432
11234
  DateUtils.getDateValues = function (date) {
11433
11235
  return [
@@ -11441,7 +11243,7 @@
11441
11243
  ];
11442
11244
  };
11443
11245
  DateUtils.getDaysInMonth = function (date) {
11444
- return moment$7(date, "YYYY-MM").daysInMonth();
11246
+ return moment$6(date, "YYYY-MM").daysInMonth();
11445
11247
  };
11446
11248
  return DateUtils;
11447
11249
  }());
@@ -15224,6 +15026,173 @@
15224
15026
  return ProfilePicturePickerModule;
15225
15027
  }());
15226
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
+
15227
15196
  var PanelComponent = /** @class */ (function () {
15228
15197
  function PanelComponent() {
15229
15198
  this.toggleable = true;
@@ -17933,55 +17902,55 @@
17933
17902
  exports.fallback = fallback;
17934
17903
  exports.ɵa = TooltipComponent;
17935
17904
  exports.ɵb = TooltipDirective;
17936
- exports.ɵba = TextFieldComponent;
17937
- exports.ɵbb = NumberFieldModule;
17938
- exports.ɵbc = LocalizedNumberInputModule;
17939
- exports.ɵbd = NumberInputModule;
17940
- exports.ɵbe = NumberFieldComponent;
17941
- exports.ɵbf = CurrencyFieldModule;
17942
- exports.ɵbg = CurrencyFieldComponent;
17943
- exports.ɵbh = NumberFieldModule$1;
17944
- exports.ɵbi = BignumberInputModule;
17945
- exports.ɵbj = BignumberFieldComponent;
17946
- exports.ɵbk = AutocompleteFieldComponent;
17947
- exports.ɵbl = BooleanFieldComponent;
17948
- exports.ɵbm = BooleanSwitchFieldComponent;
17949
- exports.ɵbn = CalendarFieldComponent;
17950
- exports.ɵbo = ChipsFieldComponent;
17951
- exports.ɵbp = CountryPhonePickerFieldComponent;
17952
- exports.ɵbq = DynamicFieldComponent;
17953
- exports.ɵbr = DynamicFormDirective;
17954
- exports.ɵbs = FieldsetComponent;
17955
- exports.ɵbt = FileUploadComponent$1;
17956
- exports.ɵbu = LookupFieldComponent;
17957
- exports.ɵbv = PasswordFieldComponent;
17958
- exports.ɵbw = RadioButtonComponent;
17959
- exports.ɵbx = RowComponent;
17960
- exports.ɵby = SectionComponent;
17961
- exports.ɵbz = SelectFieldComponent;
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;
17962
17931
  exports.ɵc = TemplateDirective;
17963
- exports.ɵca = SliderFieldComponent;
17964
- exports.ɵcb = TextAreaFieldComponent;
17965
- exports.ɵcc = TextAreaIAFieldComponent;
17966
- exports.ɵcd = IAssistService;
17967
- exports.ɵcf = DecimalField;
17968
- exports.ɵcg = SideTableComponent;
17969
- exports.ɵch = ThumbnailService;
17970
- exports.ɵci = InfiniteScrollModule;
17971
- exports.ɵcj = InfiniteScrollDirective;
17972
- exports.ɵck = IAInsightSidebarComponent;
17973
- exports.ɵcl = IAInsightCardComponent;
17974
- exports.ɵcm = IAInsightCardLoaderComponent;
17975
- exports.ɵcn = StructureModule;
17976
- exports.ɵco = HeaderComponent;
17977
- exports.ɵcp = FooterComponent;
17978
- exports.ɵcq = KanbanEventService;
17979
- exports.ɵcr = KanbanItemComponent;
17980
- exports.ɵcs = KanbanColumnComponent;
17981
- exports.ɵct = KanbanItemDraggingComponent;
17982
- exports.ɵcu = NumberLocaleOptions;
17983
- exports.ɵcv = BorderButtonModule;
17984
- exports.ɵcw = BorderButtonComponent;
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;
17985
17954
  exports.ɵcx = SelectButtonItemComponent;
17986
17955
  exports.ɵcy = SlidePanelService;
17987
17956
  exports.ɵcz = TieredMenuEventService;
@@ -18009,20 +17978,20 @@
18009
17978
  exports.ɵj = LocalizedCurrencyImpurePipe;
18010
17979
  exports.ɵk = LocalizedBignumberPipe;
18011
17980
  exports.ɵl = LocalizedBignumberImpurePipe;
18012
- exports.ɵm = EmptyStateGoBackComponent;
18013
- exports.ɵn = IAssistIconComponent;
18014
- exports.ɵo = SeniorIconComponent;
18015
- exports.ɵp = DotsIndicatorComponent;
18016
- exports.ɵq = LoadingIndicatorComponent;
18017
- exports.ɵr = ProgressBarDeterminateComponent;
18018
- exports.ɵs = ProgressBarIndeterminateComponent;
17981
+ exports.ɵm = NumericPipe;
17982
+ exports.ɵn = NumericService;
17983
+ exports.ɵo = EmptyStateGoBackComponent;
17984
+ exports.ɵp = IAssistIconComponent;
17985
+ exports.ɵq = SeniorIconComponent;
17986
+ exports.ɵr = DotsIndicatorComponent;
17987
+ exports.ɵs = LoadingIndicatorComponent;
18019
17988
  exports.ɵt = FileUploadService;
18020
- exports.ɵu = FileItemComponent;
18021
- exports.ɵv = LocaleService;
18022
- exports.ɵw = InfoSignComponent;
18023
- exports.ɵx = TableColumnsComponent;
18024
- exports.ɵy = TablePagingComponent;
18025
- exports.ɵz = TextFieldModule;
17989
+ exports.ɵu = InfoSignComponent;
17990
+ exports.ɵv = TableColumnsComponent;
17991
+ exports.ɵw = TablePagingComponent;
17992
+ exports.ɵx = TextFieldModule;
17993
+ exports.ɵy = TextFieldComponent;
17994
+ exports.ɵz = NumberFieldModule;
18026
17995
 
18027
17996
  Object.defineProperty(exports, '__esModule', { value: true });
18028
17997