@seniorsistemas/angular-components 17.3.14 → 17.3.16

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 (31) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +430 -335
  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/components/file-item/file-item.component.d.ts +20 -0
  6. package/components/file-upload/file-upload.component.d.ts +11 -15
  7. package/components/file-upload/models/index.d.ts +1 -0
  8. package/components/file-upload/models/storage-units.d.ts +5 -0
  9. package/esm2015/components/country-phone-picker/resources/countries.js +22 -22
  10. package/esm2015/components/file-upload/components/file-item/file-item.component.js +88 -0
  11. package/esm2015/components/file-upload/file-upload.component.js +42 -43
  12. package/esm2015/components/file-upload/file-upload.module.js +9 -5
  13. package/esm2015/components/file-upload/file-upload.service.js +3 -1
  14. package/esm2015/components/file-upload/models/index.js +2 -1
  15. package/esm2015/components/file-upload/models/storage-units.js +6 -0
  16. package/esm2015/seniorsistemas-angular-components.js +65 -64
  17. package/esm5/components/country-phone-picker/resources/countries.js +22 -22
  18. package/esm5/components/file-upload/components/file-item/file-item.component.js +89 -0
  19. package/esm5/components/file-upload/file-upload.component.js +41 -42
  20. package/esm5/components/file-upload/file-upload.module.js +9 -5
  21. package/esm5/components/file-upload/file-upload.service.js +3 -1
  22. package/esm5/components/file-upload/models/index.js +2 -1
  23. package/esm5/components/file-upload/models/storage-units.js +6 -0
  24. package/esm5/seniorsistemas-angular-components.js +65 -64
  25. package/fesm2015/seniorsistemas-angular-components.js +351 -259
  26. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  27. package/fesm5/seniorsistemas-angular-components.js +363 -270
  28. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  29. package/package.json +1 -1
  30. package/seniorsistemas-angular-components.d.ts +64 -63
  31. package/seniorsistemas-angular-components.metadata.json +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/forms'), require('@angular/router'), 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('@seniorsistemas/senior-platform-data'), require('@ngx-translate/core'), require('@codemirror/tooltip'), require('@codemirror/gutter'), require('ngx-mask'), require('@angular/common/http'), require('angular2-hotkeys'), require('bignumber.js'), require('primeng/autocomplete'), require('primeng/dialog'), require('primeng/table'), require('moment'), require('ngx-cookie-service'), require('ng2-currency-mask'), require('primeng/button'), require('primeng/checkbox'), require('primeng/chips'), require('primeng/dropdown'), require('primeng/fieldset'), require('primeng/inputmask'), require('primeng/inputtext'), require('primeng/inputtextarea'), require('primeng/keyfilter'), require('primeng/multiselect'), require('primeng/panel'), require('primeng/radiobutton'), require('primeng/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', '@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', '@seniorsistemas/senior-platform-data', '@ngx-translate/core', '@codemirror/tooltip', '@codemirror/gutter', 'ngx-mask', '@angular/common/http', 'angular2-hotkeys', 'bignumber.js', 'primeng/autocomplete', 'primeng/dialog', 'primeng/table', 'moment', 'ngx-cookie-service', 'ng2-currency-mask', 'primeng/button', 'primeng/checkbox', 'primeng/chips', 'primeng/dropdown', 'primeng/fieldset', 'primeng/inputmask', 'primeng/inputtext', 'primeng/inputtextarea', 'primeng/keyfilter', 'primeng/multiselect', 'primeng/panel', 'primeng/radiobutton', 'primeng/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.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.seniorPlatformData, global.core$1, global.tooltip$1, global.gutter, global.ngxMask, global.ng.common.http, global.angular2Hotkeys, global.BigNumber, global.autocomplete$2, global.dialog, global.table, global.moment_, global.ngxCookieService, global.ng2CurrencyMask$1, global.button, global.checkbox, global.chips, global.dropdown, global.fieldset, global.inputmask, global.inputtext, global.inputtextarea, global.keyfilter, global.multiselect, global.panel, global.radiobutton, global.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, ng2CurrencyMask, breadcrumb, tieredmenu, tooltip, dom, calendar, view, state, lint, language, generator, highlight, autocomplete$1, seniorPlatformData, core$1, tooltip$1, gutter, ngxMask, http, angular2Hotkeys, BigNumber, autocomplete$2, dialog, table, moment_, ngxCookieService, 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';
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('@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('@seniorsistemas/senior-platform-data'), require('@ngx-translate/core'), require('@codemirror/tooltip'), require('@codemirror/gutter'), require('ngx-mask'), require('@angular/common/http'), require('angular2-hotkeys'), require('bignumber.js'), require('primeng/autocomplete'), require('primeng/dialog'), require('primeng/table'), require('moment'), require('ngx-cookie-service'), require('ng2-currency-mask'), require('primeng/button'), require('primeng/checkbox'), require('primeng/chips'), require('primeng/dropdown'), require('primeng/fieldset'), require('primeng/inputmask'), require('primeng/inputtext'), require('primeng/inputtextarea'), require('primeng/keyfilter'), require('primeng/multiselect'), require('primeng/panel'), require('primeng/radiobutton'), require('primeng/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', '@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', '@seniorsistemas/senior-platform-data', '@ngx-translate/core', '@codemirror/tooltip', '@codemirror/gutter', 'ngx-mask', '@angular/common/http', 'angular2-hotkeys', 'bignumber.js', 'primeng/autocomplete', 'primeng/dialog', 'primeng/table', 'moment', 'ngx-cookie-service', 'ng2-currency-mask', 'primeng/button', 'primeng/checkbox', 'primeng/chips', 'primeng/dropdown', 'primeng/fieldset', 'primeng/inputmask', 'primeng/inputtext', 'primeng/inputtextarea', 'primeng/keyfilter', 'primeng/multiselect', 'primeng/panel', 'primeng/radiobutton', 'primeng/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.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.seniorPlatformData, global.core$1, global.tooltip$1, global.gutter, global.ngxMask, global.ng.common.http, global.angular2Hotkeys, global.BigNumber, global.autocomplete$2, global.dialog, global.table, global.moment_, global.ngxCookieService, global.ng2CurrencyMask$1, global.button, global.checkbox, global.chips, global.dropdown, global.fieldset, global.inputmask, global.inputtext, global.inputtextarea, global.keyfilter, global.multiselect, global.panel, global.radiobutton, global.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, ng2CurrencyMask, breadcrumb, tieredmenu, tooltip, dom, calendar, view, state, lint, language, generator, highlight, autocomplete$1, seniorPlatformData, core$1, tooltip$1, gutter, ngxMask, http, angular2Hotkeys, BigNumber, autocomplete$2, dialog, table, moment_, ngxCookieService, 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';
6
6
 
7
7
  var BigNumber__default = 'default' in BigNumber ? BigNumber['default'] : BigNumber;
8
8
  Cropper = Cropper && Cropper.hasOwnProperty('default') ? Cropper['default'] : Cropper;
@@ -3619,14 +3619,28 @@
3619
3619
 
3620
3620
  var countries = [
3621
3621
  { id: "br", ddi: "+55", mask: ["(00) 0000-00009", "(00) 00000-0000"] },
3622
- { id: "us", ddi: "+1", mask: "000-0000" },
3623
- { id: "co", ddi: "+57", mask: "000 0000000" },
3624
- { id: "ar", ddi: "+54", mask: "000 00-0000-0000" },
3625
- { id: "cl", ddi: "+56", mask: "(0) 0000-0000" },
3626
- { id: "py", ddi: "+595", mask: "0000 000000" },
3627
- { id: "uy", ddi: "+598", mask: "000 000 000" },
3622
+ { id: "ar", ddi: "+54", mask: ["(00) 0000-00009", "(000) 0000-0000"] },
3623
+ { id: "bo", ddi: "+591", mask: "0 000 0000" },
3624
+ { id: "cl", ddi: "+56", mask: "0 0000 0000" },
3625
+ { id: "co", ddi: "+57", mask: ["0 00000009", "000 0000000"] },
3626
+ { id: "cr", ddi: "+506", mask: "0000 0000" },
3627
+ { id: "cu", ddi: "+53", mask: ["000 0009", "00 000000"] },
3628
+ { id: "ec", ddi: "+593", mask: ["000 00009", "000 000 000"] },
3629
+ { id: "sv", ddi: "+503", mask: "0000 0000" },
3630
+ { id: "gt", ddi: "+502", mask: "0000 0000" },
3631
+ { id: "ht", ddi: "+509", mask: "0000 0000" },
3632
+ { id: "hn", ddi: "+504", mask: "0000-0000" },
3633
+ { id: "mx", ddi: "+52", mask: ["00 0000 00009", "0 00 0000 0000"] },
3634
+ { id: "ni", ddi: "+505", mask: "0000 0000" },
3635
+ { id: "pa", ddi: "+507", mask: "0000 0000" },
3636
+ { id: "py", ddi: "+595", mask: ["00 000 0009", "000 000000"] },
3637
+ { id: "pe", ddi: "+51", mask: "000 000 000" },
3638
+ { id: "do", ddi: "+1809", mask: "000 000-0000" },
3639
+ { id: "uy", ddi: "+598", mask: ["0000 00009", "0000 00000"] },
3640
+ { id: "ve", ddi: "+58", mask: "000-0000000" },
3641
+ { id: "us", ddi: "+1", mask: "000-000-0000" },
3642
+ { id: "ca", ddi: "+1", mask: "000-000-0000" },
3628
3643
  { id: "cn", ddi: "+86", mask: "000 0000 0000" },
3629
- { id: "ca", ddi: "+1", mask: "000-0000" },
3630
3644
  { id: "as", ddi: "+1684", mask: "000-0000" },
3631
3645
  { id: "ai", ddi: "+1264", mask: "000-0000" },
3632
3646
  { id: "ag", ddi: "+1268", mask: "000-0000" },
@@ -3636,7 +3650,6 @@
3636
3650
  { id: "vg", ddi: "+1284", mask: "000-0000" },
3637
3651
  { id: "ky", ddi: "+1345", mask: "000-0000" },
3638
3652
  { id: "dm", ddi: "+1767", mask: "000-0000" },
3639
- { id: "do", ddi: "+1809", mask: "000-0000" },
3640
3653
  { id: "gd", ddi: "+1473", mask: "000-0000" },
3641
3654
  { id: "gu", ddi: "+1671", mask: "000-0000" },
3642
3655
  { id: "jm", ddi: "+1876", mask: "000-0000" },
@@ -3654,7 +3667,6 @@
3654
3667
  { id: "af", ddi: "+93", mask: "000 000 0000" },
3655
3668
  { id: "al", ddi: "+355", mask: "000 000 0000" },
3656
3669
  { id: "hr", ddi: "+385", mask: "000 000 0000" },
3657
- { id: "ec", ddi: "+593", mask: "000 000 0000" },
3658
3670
  { id: "et", ddi: "+251", mask: "000 000 0000" },
3659
3671
  { id: "gh", ddi: "+233", mask: "000 000 0000" },
3660
3672
  { id: "gr", ddi: "+30", mask: "000 000 0000" },
@@ -3689,7 +3701,6 @@
3689
3701
  { id: "lu", ddi: "+352", mask: "000 000 000" },
3690
3702
  { id: "mk", ddi: "+389", mask: "000 000 000" },
3691
3703
  { id: "me", ddi: "+382", mask: "000 000 000" },
3692
- { id: "pe", ddi: "+51", mask: "000 000 000" },
3693
3704
  { id: "pl", ddi: "+48", mask: "000 000 000" },
3694
3705
  { id: "pt", ddi: "+351", mask: "000 000 000" },
3695
3706
  { id: "si", ddi: "+386", mask: "000 000 000" },
@@ -3729,18 +3740,14 @@
3729
3740
  { id: "ch", ddi: "+41", mask: "000 000 00 00" },
3730
3741
  { id: "vn", ddi: "+84", mask: "000 000 00 00" },
3731
3742
  { id: "bh", ddi: "+973", mask: "0000 0000" },
3732
- { id: "cr", ddi: "+506", mask: "0000 0000" },
3733
- { id: "sv", ddi: "+503", mask: "0000 0000" },
3734
3743
  { id: "ee", ddi: "+372", mask: "0000 0000" },
3735
3744
  { id: "sz", ddi: "+268", mask: "0000 0000" },
3736
- { id: "gt", ddi: "+502", mask: "0000 0000" },
3737
3745
  { id: "hk", ddi: "+852", mask: "0000 0000" },
3738
3746
  { id: "ls", ddi: "+266", mask: "0000 0000" },
3739
3747
  { id: "mo", ddi: "+853", mask: "0000 0000" },
3740
3748
  { id: "mt", ddi: "+356", mask: "0000 0000" },
3741
3749
  { id: "mu", ddi: "+230", mask: "0000 0000" },
3742
3750
  { id: "mn", ddi: "+976", mask: "0000 0000" },
3743
- { id: "ni", ddi: "+505", mask: "0000 0000" },
3744
3751
  { id: "om", ddi: "+968", mask: "0000 0000" },
3745
3752
  { id: "pg", ddi: "+675", mask: "0000 0000" },
3746
3753
  { id: "qa", ddi: "+974", mask: "0000 0000" },
@@ -3770,7 +3777,6 @@
3770
3777
  { id: "ne", ddi: "+227", mask: "00 00 00 00" },
3771
3778
  { id: "sm", ddi: "+378", mask: "00 00 00 00" },
3772
3779
  { id: "tg", ddi: "+228", mask: "00 00 00 00" },
3773
- { id: "bo", ddi: "+591", mask: "00000000" },
3774
3780
  { id: "gi", ddi: "+350", mask: "00000000" },
3775
3781
  { id: "ki", ddi: "+686", mask: "00000000" },
3776
3782
  { id: "tv", ddi: "+688", mask: "00000000" },
@@ -3787,7 +3793,6 @@
3787
3793
  { id: "mz", ddi: "+258", mask: "00 000 0000" },
3788
3794
  { id: "mm", ddi: "+95", mask: "00 000 0000" },
3789
3795
  { id: "ck", ddi: "+682", mask: "00 000" },
3790
- { id: "cu", ddi: "+53", mask: "00 000000" },
3791
3796
  { id: "cy", ddi: "+357", mask: "00 000000" },
3792
3797
  { id: "eg", ddi: "+20", mask: "0000 000 0000" },
3793
3798
  { id: "ir", ddi: "+98", mask: "0000 000 0000" },
@@ -3801,9 +3806,6 @@
3801
3806
  { id: "de", ddi: "+49", mask: "00000 0000000" },
3802
3807
  { id: "gl", ddi: "+299", mask: "00 00 00" },
3803
3808
  { id: "wf", ddi: "+681", mask: "00 00 00" },
3804
- { id: "ht", ddi: "+509", mask: "00 00 0000" },
3805
- { id: "hn", ddi: "+504", mask: "0000-0000" },
3806
- { id: "pa", ddi: "+507", mask: "0000-0000" },
3807
3809
  { id: "hu", ddi: "+36", mask: "(00) 000 0000" },
3808
3810
  { id: "in", ddi: "+91", mask: "000000 00000" },
3809
3811
  { id: "id", ddi: "+62", mask: "0000-000-000" },
@@ -3819,7 +3821,6 @@
3819
3821
  { id: "mg", ddi: "+261", mask: "000 00 000 00" },
3820
3822
  { id: "mw", ddi: "+265", mask: "000 00 000 00" },
3821
3823
  { id: "my", ddi: "+60", mask: "000-000 0000" },
3822
- { id: "mx", ddi: "+52", mask: "000 000 000 0000" },
3823
3824
  { id: "md", ddi: "+373", mask: "0000 00 000" },
3824
3825
  { id: "mc", ddi: "+377", mask: "00 00 00 00 00" },
3825
3826
  { id: "ma", ddi: "+212", mask: "0000-000000" },
@@ -3841,7 +3842,6 @@
3841
3842
  { id: "tr", ddi: "+90", mask: "0000 000 00 00" },
3842
3843
  { id: "tm", ddi: "+993", mask: "0 00 000000" },
3843
3844
  { id: "uz", ddi: "+998", mask: "0 00 000 00 00" },
3844
- { id: "ve", ddi: "+58", mask: "0000-0000000" },
3845
3845
  ];
3846
3846
 
3847
3847
 
@@ -6226,24 +6226,171 @@
6226
6226
  return EmptyStateModule;
6227
6227
  }());
6228
6228
 
6229
- var FileUploadService = /** @class */ (function () {
6230
- function FileUploadService() {
6231
- this.BASE_URL_FIELD_CUSTOMIZATION = "platform/field_customization";
6232
- this.TOKEN = new AbortController();
6229
+
6230
+ (function (ProgressBarColors) {
6231
+ ProgressBarColors["Blue"] = "blue";
6232
+ ProgressBarColors["Green"] = "green";
6233
+ ProgressBarColors["Red"] = "red";
6234
+ ProgressBarColors["Yellow"] = "yellow";
6235
+ })(exports.ProgressBarColors || (exports.ProgressBarColors = {}));
6236
+
6237
+ var ProgressBarMode;
6238
+ (function (ProgressBarMode) {
6239
+ ProgressBarMode["Determinate"] = "determinate";
6240
+ ProgressBarMode["Indeterminate"] = "indeterminate";
6241
+ })(ProgressBarMode || (ProgressBarMode = {}));
6242
+
6243
+ var ProgressBarComponent = /** @class */ (function () {
6244
+ function ProgressBarComponent() {
6245
+ this.showValue = true;
6246
+ this.mode = ProgressBarMode.Determinate;
6233
6247
  }
6234
- FileUploadService.prototype.getMetadataCustomField = function (request) {
6235
- return __awaiter(this, void 0, void 0, function () {
6236
- return __generator(this, function (_a) {
6237
- return [2 /*return*/, CustomHttpClient.POST(this.BASE_URL_FIELD_CUSTOMIZATION + "/queries/getFileMetadata", request, { signal: this.TOKEN.signal })];
6238
- });
6239
- });
6248
+ ProgressBarComponent.prototype.ngOnInit = function () {
6249
+ this.validateInputs();
6240
6250
  };
6241
- FileUploadService = __decorate([
6242
- core.Injectable()
6243
- ], FileUploadService);
6244
- return FileUploadService;
6251
+ ProgressBarComponent.prototype.validateInputs = function () {
6252
+ if (this.value < 0 || this.value > 100) {
6253
+ throw new Error("Invalid value for value");
6254
+ }
6255
+ if (this.targetValue < 0 || this.targetValue > 100) {
6256
+ throw new Error("Invalid value for targetValue");
6257
+ }
6258
+ if (this.mode === ProgressBarMode.Indeterminate && (this.value || this.targetValue || this.targetLabel)) {
6259
+ throw new Error("When the mode is indeterminate, the value, targetValue and targetLabel parameters are not expected.");
6260
+ }
6261
+ };
6262
+ __decorate([
6263
+ core.Input()
6264
+ ], ProgressBarComponent.prototype, "value", void 0);
6265
+ __decorate([
6266
+ core.Input()
6267
+ ], ProgressBarComponent.prototype, "targetValue", void 0);
6268
+ __decorate([
6269
+ core.Input()
6270
+ ], ProgressBarComponent.prototype, "label", void 0);
6271
+ __decorate([
6272
+ core.Input()
6273
+ ], ProgressBarComponent.prototype, "targetLabel", void 0);
6274
+ __decorate([
6275
+ core.Input()
6276
+ ], ProgressBarComponent.prototype, "activeColor", void 0);
6277
+ __decorate([
6278
+ core.Input()
6279
+ ], ProgressBarComponent.prototype, "showValue", void 0);
6280
+ __decorate([
6281
+ core.Input()
6282
+ ], ProgressBarComponent.prototype, "mode", void 0);
6283
+ ProgressBarComponent = __decorate([
6284
+ core.Component({
6285
+ selector: "s-progressbar",
6286
+ 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 [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>",
6287
+ 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}"]
6288
+ })
6289
+ ], ProgressBarComponent);
6290
+ return ProgressBarComponent;
6291
+ }());
6292
+
6293
+ var ProgressBarDeterminateComponent = /** @class */ (function () {
6294
+ function ProgressBarDeterminateComponent() {
6295
+ this.showValue = true;
6296
+ }
6297
+ ProgressBarDeterminateComponent.prototype.ngOnInit = function () {
6298
+ this.validateValues();
6299
+ };
6300
+ ProgressBarDeterminateComponent.prototype.validateValues = function () {
6301
+ if (this.value < 0 || this.value > 100) {
6302
+ throw new Error("Invalid value for value");
6303
+ }
6304
+ if (this.targetValue < 0 || this.targetValue > 100) {
6305
+ throw new Error("Invalid value for targetValue");
6306
+ }
6307
+ };
6308
+ __decorate([
6309
+ core.Input()
6310
+ ], ProgressBarDeterminateComponent.prototype, "value", void 0);
6311
+ __decorate([
6312
+ core.Input()
6313
+ ], ProgressBarDeterminateComponent.prototype, "targetValue", void 0);
6314
+ __decorate([
6315
+ core.Input()
6316
+ ], ProgressBarDeterminateComponent.prototype, "targetLabel", void 0);
6317
+ __decorate([
6318
+ core.Input()
6319
+ ], ProgressBarDeterminateComponent.prototype, "activeColor", void 0);
6320
+ __decorate([
6321
+ core.Input()
6322
+ ], ProgressBarDeterminateComponent.prototype, "showValue", void 0);
6323
+ ProgressBarDeterminateComponent = __decorate([
6324
+ core.Component({
6325
+ selector: "s-progressbar-determinate",
6326
+ 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 {{ showValue && value ? 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 || value + '%' }}\n </span>\n </div>\n </div>\n ",
6327
+ 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}"]
6328
+ })
6329
+ ], ProgressBarDeterminateComponent);
6330
+ return ProgressBarDeterminateComponent;
6245
6331
  }());
6246
6332
 
6333
+ var ProgressBarIndeterminateComponent = /** @class */ (function () {
6334
+ function ProgressBarIndeterminateComponent() {
6335
+ }
6336
+ __decorate([
6337
+ core.Input()
6338
+ ], ProgressBarIndeterminateComponent.prototype, "activeColor", void 0);
6339
+ __decorate([
6340
+ core.Input()
6341
+ ], ProgressBarIndeterminateComponent.prototype, "label", void 0);
6342
+ ProgressBarIndeterminateComponent = __decorate([
6343
+ core.Component({
6344
+ selector: "s-progressbar-indeterminate",
6345
+ template: "<!-- progressbar-indeterminate.component.html -->\n<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",
6346
+ 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%)}}"]
6347
+ })
6348
+ ], ProgressBarIndeterminateComponent);
6349
+ return ProgressBarIndeterminateComponent;
6350
+ }());
6351
+
6352
+ var ProgressBarModule = /** @class */ (function () {
6353
+ function ProgressBarModule() {
6354
+ }
6355
+ ProgressBarModule = __decorate([
6356
+ core.NgModule({
6357
+ imports: [common.CommonModule],
6358
+ declarations: [
6359
+ ProgressBarComponent,
6360
+ ProgressBarDeterminateComponent,
6361
+ ProgressBarIndeterminateComponent,
6362
+ ],
6363
+ exports: [ProgressBarComponent],
6364
+ })
6365
+ ], ProgressBarModule);
6366
+ return ProgressBarModule;
6367
+ }());
6368
+
6369
+
6370
+ (function (ValidateErrors) {
6371
+ ValidateErrors["MAX_FILE_SIZE"] = "MAX_FILE_SIZE";
6372
+ ValidateErrors["MAX_FILE_LIMIT"] = "MAX_FILE_LIMIT";
6373
+ ValidateErrors["UNSUPPORTED_EXTENSION"] = "UNSUPPORTED_EXTENSION";
6374
+ })(exports.ValidateErrors || (exports.ValidateErrors = {}));
6375
+
6376
+ var FileUploadPermissions;
6377
+ (function (FileUploadPermissions) {
6378
+ FileUploadPermissions["Add"] = "add";
6379
+ FileUploadPermissions["Read"] = "read";
6380
+ FileUploadPermissions["Remove"] = "remove";
6381
+ })(FileUploadPermissions || (FileUploadPermissions = {}));
6382
+ var ALL_PERMISSIONS = [
6383
+ FileUploadPermissions.Add,
6384
+ FileUploadPermissions.Read,
6385
+ FileUploadPermissions.Remove,
6386
+ ];
6387
+
6388
+ var StorageUnits = {
6389
+ KB: 1024,
6390
+ MB: Math.pow(1024, 2),
6391
+ GB: Math.pow(1024, 3),
6392
+ };
6393
+
6247
6394
  var Breakpoints = {
6248
6395
  SM_MIN: 0,
6249
6396
  SM_MAX: 767,
@@ -6350,26 +6497,110 @@
6350
6497
  return ExportUtils;
6351
6498
  }());
6352
6499
 
6353
-
6354
- (function (ValidateErrors) {
6355
- ValidateErrors["MAX_FILE_SIZE"] = "MAX_FILE_SIZE";
6356
- ValidateErrors["MAX_FILE_LIMIT"] = "MAX_FILE_LIMIT";
6357
- ValidateErrors["UNSUPPORTED_EXTENSION"] = "UNSUPPORTED_EXTENSION";
6358
- })(exports.ValidateErrors || (exports.ValidateErrors = {}));
6359
-
6360
- var FileUploadPermissions;
6361
- (function (FileUploadPermissions) {
6362
- FileUploadPermissions["Add"] = "add";
6363
- FileUploadPermissions["Read"] = "read";
6364
- FileUploadPermissions["Remove"] = "remove";
6365
- })(FileUploadPermissions || (FileUploadPermissions = {}));
6366
- var ALL_PERMISSIONS = [
6367
- FileUploadPermissions.Add,
6368
- FileUploadPermissions.Read,
6369
- FileUploadPermissions.Remove,
6370
- ];
6500
+ var FileItemComponent = /** @class */ (function () {
6501
+ function FileItemComponent() {
6502
+ this.canReadFiles = true;
6503
+ this.canRemoveFiles = true;
6504
+ this.cancelUpload = new core.EventEmitter();
6505
+ this.removeFile = new core.EventEmitter();
6506
+ }
6507
+ FileItemComponent.prototype.ngAfterContentInit = function () {
6508
+ this._update();
6509
+ };
6510
+ FileItemComponent.prototype.onResize = function () {
6511
+ this._update();
6512
+ };
6513
+ FileItemComponent.prototype._update = function () {
6514
+ var windowWidth = window.innerWidth;
6515
+ this.isSmallDevice = windowWidth <= Breakpoints.SM_MAX;
6516
+ };
6517
+ FileItemComponent.prototype.simplifySize = function (size) {
6518
+ var unit;
6519
+ var convertedSize;
6520
+ if (size < StorageUnits.KB) {
6521
+ convertedSize = size;
6522
+ unit = "bytes";
6523
+ }
6524
+ else if (size < StorageUnits.MB) {
6525
+ convertedSize = size / StorageUnits.KB;
6526
+ unit = "KB";
6527
+ }
6528
+ else if (size < StorageUnits.GB) {
6529
+ convertedSize = size / StorageUnits.MB;
6530
+ unit = "MB";
6531
+ }
6532
+ else {
6533
+ convertedSize = size / StorageUnits.GB;
6534
+ unit = "GB";
6535
+ }
6536
+ return convertedSize + " " + unit;
6537
+ };
6538
+ __decorate([
6539
+ core.Input()
6540
+ ], FileItemComponent.prototype, "id", void 0);
6541
+ __decorate([
6542
+ core.Input()
6543
+ ], FileItemComponent.prototype, "file", void 0);
6544
+ __decorate([
6545
+ core.Input()
6546
+ ], FileItemComponent.prototype, "canReadFiles", void 0);
6547
+ __decorate([
6548
+ core.Input()
6549
+ ], FileItemComponent.prototype, "canRemoveFiles", void 0);
6550
+ __decorate([
6551
+ core.Input()
6552
+ ], FileItemComponent.prototype, "cancelLabel", void 0);
6553
+ __decorate([
6554
+ core.Input()
6555
+ ], FileItemComponent.prototype, "removeLabel", void 0);
6556
+ __decorate([
6557
+ core.Input()
6558
+ ], FileItemComponent.prototype, "ariaLabelProgress", void 0);
6559
+ __decorate([
6560
+ core.Input()
6561
+ ], FileItemComponent.prototype, "successTooltip", void 0);
6562
+ __decorate([
6563
+ core.Input()
6564
+ ], FileItemComponent.prototype, "ariaLabelSuccess", void 0);
6565
+ __decorate([
6566
+ core.Output()
6567
+ ], FileItemComponent.prototype, "cancelUpload", void 0);
6568
+ __decorate([
6569
+ core.Output()
6570
+ ], FileItemComponent.prototype, "removeFile", void 0);
6571
+ __decorate([
6572
+ core.HostListener("window:resize")
6573
+ ], FileItemComponent.prototype, "onResize", null);
6574
+ FileItemComponent = __decorate([
6575
+ core.Component({
6576
+ selector: "s-file-item",
6577
+ 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",
6578
+ 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;width:100%;-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}}"]
6579
+ })
6580
+ ], FileItemComponent);
6581
+ return FileItemComponent;
6582
+ }());
6371
6583
 
6372
6584
  var moment$3 = moment_;
6585
+ var FileUploadService = /** @class */ (function () {
6586
+ function FileUploadService() {
6587
+ this.BASE_URL_FIELD_CUSTOMIZATION = "platform/field_customization";
6588
+ this.TOKEN = new AbortController();
6589
+ }
6590
+ FileUploadService.prototype.getMetadataCustomField = function (request) {
6591
+ return __awaiter(this, void 0, void 0, function () {
6592
+ return __generator(this, function (_a) {
6593
+ return [2 /*return*/, CustomHttpClient.POST(this.BASE_URL_FIELD_CUSTOMIZATION + "/queries/getFileMetadata", request, { signal: this.TOKEN.signal })];
6594
+ });
6595
+ });
6596
+ };
6597
+ FileUploadService = __decorate([
6598
+ core.Injectable()
6599
+ ], FileUploadService);
6600
+ return FileUploadService;
6601
+ }());
6602
+
6603
+ var moment$4 = moment_;
6373
6604
  var FileUploadComponent = /** @class */ (function () {
6374
6605
  function FileUploadComponent(sanitizer, fileUploadService, translate) {
6375
6606
  this.sanitizer = sanitizer;
@@ -6401,10 +6632,10 @@
6401
6632
  var _this = this;
6402
6633
  var _a;
6403
6634
  if (this.showFileUploadDate && ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId)) {
6404
- this.getUploadDate(files);
6635
+ this._getUploadDate(files);
6405
6636
  }
6406
6637
  this._files = files.map(function (file) {
6407
- if (_this.isImage(file)) {
6638
+ if (_this._isImage(file)) {
6408
6639
  file.objectURL = _this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(file));
6409
6640
  }
6410
6641
  return file;
@@ -6415,43 +6646,39 @@
6415
6646
  });
6416
6647
  FileUploadComponent.prototype.ngOnInit = function () {
6417
6648
  this.supportedExtensions = this.supportedExtensions
6418
- .map(function (extension) { return extension.replace(".", "").toLowerCase(); });
6649
+ .map(function (extension) { return extension
6650
+ .replace(".", "")
6651
+ .toLowerCase(); });
6419
6652
  };
6420
6653
  FileUploadComponent.prototype.ngOnDestroy = function () {
6421
6654
  this.ngUsubscribe.next();
6422
6655
  this.ngUsubscribe.complete();
6423
6656
  };
6424
- FileUploadComponent.prototype.ngAfterContentInit = function () {
6425
- this.update();
6426
- };
6427
- FileUploadComponent.prototype.onResize = function () {
6428
- this.update();
6429
- };
6430
6657
  FileUploadComponent.prototype.onFileSelect = function (files) {
6431
6658
  var e_1, _a;
6432
6659
  var newFiles = [];
6433
6660
  if (!this.multiple) {
6434
6661
  this.files = [];
6435
6662
  }
6436
- if (this.isFileLimitExceeded(files)) {
6663
+ if (this._isFileLimitExceeded(files)) {
6437
6664
  this.validateErrors.emit({
6438
6665
  files: files,
6439
6666
  validation: exports.ValidateErrors.MAX_FILE_LIMIT,
6440
6667
  });
6441
- this.clearFileInput();
6668
+ this._clearFileInput();
6442
6669
  return;
6443
6670
  }
6444
6671
  try {
6445
6672
  for (var files_1 = __values(files), files_1_1 = files_1.next(); !files_1_1.done; files_1_1 = files_1.next()) {
6446
6673
  var file = files_1_1.value;
6447
- if (this.isUnsupportedFileExtension(file)) {
6674
+ if (this._isUnsupportedFileExtension(file)) {
6448
6675
  this.validateErrors.emit({
6449
6676
  files: [file],
6450
6677
  validation: exports.ValidateErrors.UNSUPPORTED_EXTENSION,
6451
6678
  });
6452
6679
  continue;
6453
6680
  }
6454
- if (this.isFileSizeExceeded(file)) {
6681
+ if (this._isFileSizeExceeded(file)) {
6455
6682
  this.validateErrors.emit({
6456
6683
  files: [file],
6457
6684
  validation: exports.ValidateErrors.MAX_FILE_SIZE,
@@ -6474,7 +6701,7 @@
6474
6701
  files: newFiles,
6475
6702
  });
6476
6703
  }
6477
- this.clearFileInput();
6704
+ this._clearFileInput();
6478
6705
  };
6479
6706
  FileUploadComponent.prototype.onRemoveFile = function (file) {
6480
6707
  var fileIndex = this.files.indexOf(file);
@@ -6483,12 +6710,13 @@
6483
6710
  this.removeFile.emit({ file: file });
6484
6711
  }
6485
6712
  };
6486
- FileUploadComponent.prototype.onCancelUpload = function (index) {
6487
- var removedFiles = this.files.splice(index, 1);
6488
- if (removedFiles.length) {
6713
+ FileUploadComponent.prototype.onCancelUpload = function (file) {
6714
+ var index = this.files.indexOf(file);
6715
+ if (index != -1) {
6716
+ this.files.splice(index, 1);
6489
6717
  this.cancelUpload.emit(index);
6490
6718
  }
6491
- this.clearFileInput();
6719
+ this._clearFileInput();
6492
6720
  };
6493
6721
  FileUploadComponent.prototype.onDowloadFile = function (index) {
6494
6722
  this.downloadFile.emit({
@@ -6496,51 +6724,57 @@
6496
6724
  anchor: this.anchor,
6497
6725
  });
6498
6726
  };
6499
- FileUploadComponent.prototype.update = function () {
6500
- var windowWidth = window.innerWidth;
6501
- this.isSmallDevice = windowWidth <= Breakpoints.SM_MAX;
6502
- };
6503
- FileUploadComponent.prototype.isImage = function (file) {
6727
+ FileUploadComponent.prototype._isImage = function (file) {
6504
6728
  return /^image\//.test(file.type);
6505
6729
  };
6506
- FileUploadComponent.prototype.isFileLimitExceeded = function (files) {
6730
+ FileUploadComponent.prototype._isFileLimitExceeded = function (files) {
6507
6731
  if (!this.fileLimit) {
6508
6732
  return false;
6509
6733
  }
6510
6734
  return this.files.length + files.length > this.fileLimit;
6511
6735
  };
6512
- FileUploadComponent.prototype.isFileSizeExceeded = function (file) {
6736
+ FileUploadComponent.prototype._isFileSizeExceeded = function (file) {
6513
6737
  if (!this.maxFileSize) {
6514
6738
  return false;
6515
6739
  }
6516
6740
  return file.size > this.maxFileSize;
6517
6741
  };
6518
- FileUploadComponent.prototype.isUnsupportedFileExtension = function (file) {
6742
+ FileUploadComponent.prototype._isUnsupportedFileExtension = function (file) {
6519
6743
  var _a;
6520
6744
  if ((_a = this.supportedExtensions) === null || _a === void 0 ? void 0 : _a.length) {
6521
- var extension = file.name.split(".").pop().toLowerCase();
6745
+ var extension = file.name
6746
+ .split(".")
6747
+ .pop()
6748
+ .toLowerCase();
6522
6749
  return !this.supportedExtensions.includes(extension);
6523
6750
  }
6524
6751
  return false;
6525
6752
  };
6526
- FileUploadComponent.prototype.clearFileInput = function () {
6753
+ FileUploadComponent.prototype._clearFileInput = function () {
6527
6754
  this.inputUpload.nativeElement.value = null;
6528
6755
  };
6529
- FileUploadComponent.prototype.getUploadDate = function (blobFile) {
6756
+ FileUploadComponent.prototype._getUploadDate = function (blobFile) {
6530
6757
  var _this = this;
6531
6758
  if (!blobFile) {
6532
6759
  return;
6533
6760
  }
6534
- this.fileUploadService.getMetadataCustomField({ objectId: blobFile[0].objectId })
6535
- .then(function (metadata) { return _this.setModifiedDate(metadata); });
6536
- };
6537
- FileUploadComponent.prototype.setModifiedDate = function (metadata) {
6538
- var hour = moment$3(metadata.modified).format("HH");
6539
- var minutes = moment$3(metadata.modified).format("mm");
6540
- var day = moment$3(metadata.modified).format("DD");
6541
- var month = moment$3(metadata.modified).format("MM");
6542
- var fullYear = moment$3(metadata.modified).format("YYYY");
6543
- this.modifiedDate = this.translate.instant("platform.angular_components.date_modified_custom_blob", { hour: hour, minutes: minutes, day: day, month: month, fullYear: fullYear });
6761
+ this.fileUploadService
6762
+ .getMetadataCustomField({ objectId: blobFile[0].objectId })
6763
+ .then(function (metadata) { return _this._setModifiedDate(metadata); });
6764
+ };
6765
+ FileUploadComponent.prototype._setModifiedDate = function (metadata) {
6766
+ var hour = moment$4(metadata.modified).format("HH");
6767
+ var minutes = moment$4(metadata.modified).format("mm");
6768
+ var day = moment$4(metadata.modified).format("DD");
6769
+ var month = moment$4(metadata.modified).format("MM");
6770
+ var fullYear = moment$4(metadata.modified).format("YYYY");
6771
+ this.modifiedDate = this.translate.instant("platform.angular_components.date_modified_custom_blob", {
6772
+ hour: hour,
6773
+ minutes: minutes,
6774
+ day: day,
6775
+ month: month,
6776
+ fullYear: fullYear,
6777
+ });
6544
6778
  };
6545
6779
  var FileUploadComponent_1;
6546
6780
  FileUploadComponent.nextId = 0;
@@ -6630,14 +6864,11 @@
6630
6864
  __decorate([
6631
6865
  core.Output()
6632
6866
  ], FileUploadComponent.prototype, "validateErrors", void 0);
6633
- __decorate([
6634
- core.HostListener("window:resize")
6635
- ], FileUploadComponent.prototype, "onResize", null);
6636
6867
  FileUploadComponent = FileUploadComponent_1 = __decorate([
6637
6868
  core.Component({
6638
6869
  selector: "s-file-upload",
6639
- 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",
6640
- 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}}"]
6870
+ 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",
6871
+ 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}"]
6641
6872
  })
6642
6873
  ], FileUploadComponent);
6643
6874
  return FileUploadComponent;
@@ -6648,14 +6879,17 @@
6648
6879
  }
6649
6880
  FileUploadModule = __decorate([
6650
6881
  core.NgModule({
6651
- declarations: [FileUploadComponent],
6652
6882
  imports: [
6653
6883
  common.CommonModule,
6654
6884
  ButtonModule,
6655
- tooltip.TooltipModule,
6656
- progressbar.ProgressBarModule,
6885
+ TooltipModule,
6886
+ ProgressBarModule,
6657
6887
  core$1.TranslateModule,
6658
6888
  ],
6889
+ declarations: [
6890
+ FileUploadComponent,
6891
+ FileItemComponent,
6892
+ ],
6659
6893
  providers: [FileUploadService],
6660
6894
  exports: [FileUploadComponent],
6661
6895
  })
@@ -7765,7 +7999,7 @@
7765
7999
  EnumBadgeColors["GRAY"] = "gray";
7766
8000
  })(exports.EnumBadgeColors || (exports.EnumBadgeColors = {}));
7767
8001
 
7768
- var moment$4 = moment_;
8002
+ var moment$5 = moment_;
7769
8003
  var TableColumnsComponent = /** @class */ (function () {
7770
8004
  function TableColumnsComponent(viewContainerRef, translate, hostProjectConfigs) {
7771
8005
  this.viewContainerRef = viewContainerRef;
@@ -7872,7 +8106,7 @@
7872
8106
  return ng2CurrencyMask.applyMask(attributeValue, numberConfigs, _this.isNumber(attributeValue));
7873
8107
  case exports.EnumColumnFieldType.DATE:
7874
8108
  var dateFormat = _this.getDateFormat(column, locale);
7875
- return moment$4(attributeValue).format(dateFormat);
8109
+ return moment$5(attributeValue).format(dateFormat);
7876
8110
  case exports.EnumColumnFieldType.BOOLEAN:
7877
8111
  var value = attributeValue ? "yes" : "no";
7878
8112
  return _this.translate.instant(prefix + value);
@@ -9812,7 +10046,7 @@
9812
10046
  CustomFieldType["Any"] = "Any";
9813
10047
  CustomFieldType["Enum"] = "Enum";
9814
10048
  })(CustomFieldType || (CustomFieldType = {}));
9815
- var moment$5 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
10049
+ var moment$6 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
9816
10050
  var CustomFieldsComponent = /** @class */ (function () {
9817
10051
  function CustomFieldsComponent(customFieldsService, localeService, sanitizer, translateService, controlContainer) {
9818
10052
  this.customFieldsService = customFieldsService;
@@ -10021,16 +10255,16 @@
10021
10255
  return;
10022
10256
  switch (type) {
10023
10257
  case exports.FieldType.Date:
10024
- parsedValues[name] = moment$5(value).toDate();
10258
+ parsedValues[name] = moment$6(value).toDate();
10025
10259
  break;
10026
10260
  case exports.FieldType.DateTime:
10027
- parsedValues[name] = moment$5(value).toDate();
10261
+ parsedValues[name] = moment$6(value).toDate();
10028
10262
  break;
10029
10263
  case exports.FieldType.LocalDateTime:
10030
- parsedValues[name] = moment$5(value, "YYYY-MM-DD[T]HH:mm:ss.SSS").toDate();
10264
+ parsedValues[name] = moment$6(value, "YYYY-MM-DD[T]HH:mm:ss.SSS").toDate();
10031
10265
  break;
10032
10266
  case exports.FieldType.Time:
10033
- parsedValues[name] = moment$5(value, "HH:mm:ss").toDate();
10267
+ parsedValues[name] = moment$6(value, "HH:mm:ss").toDate();
10034
10268
  break;
10035
10269
  }
10036
10270
  });
@@ -10063,16 +10297,16 @@
10063
10297
  value = new BigNumber__default(value).toFixed(scale).toString();
10064
10298
  break;
10065
10299
  case exports.FieldType.Date:
10066
- value = moment$5(value).format("YYYY-MM-DD");
10300
+ value = moment$6(value).format("YYYY-MM-DD");
10067
10301
  break;
10068
10302
  case exports.FieldType.DateTime:
10069
- value = moment$5(value).format();
10303
+ value = moment$6(value).format();
10070
10304
  break;
10071
10305
  case exports.FieldType.LocalDateTime:
10072
- value = moment$5(value).format("YYYY-MM-DD[T]HH:mm:ss.SSS");
10306
+ value = moment$6(value).format("YYYY-MM-DD[T]HH:mm:ss.SSS");
10073
10307
  break;
10074
10308
  case exports.FieldType.Time:
10075
- value = moment$5(value).format("HH:mm:ss");
10309
+ value = moment$6(value).format("HH:mm:ss");
10076
10310
  break;
10077
10311
  }
10078
10312
  }
@@ -10485,7 +10719,7 @@
10485
10719
  return EditableOverlayModule;
10486
10720
  }());
10487
10721
 
10488
- var moment$6 = moment_;
10722
+ var moment$7 = moment_;
10489
10723
  var YEAR = "year";
10490
10724
  var MONTH = "month";
10491
10725
  var DAY = "day";
@@ -10497,22 +10731,22 @@
10497
10731
  function DateUtils() {
10498
10732
  }
10499
10733
  DateUtils.parse = function (date) {
10500
- return moment$6(date).toDate();
10734
+ return moment$7(date).toDate();
10501
10735
  };
10502
10736
  DateUtils.toString = function (date, with_time) {
10503
10737
  if (with_time === void 0) { with_time = false; }
10504
- var result = with_time ? moment$6(date, "YYYY-MM-DD hh:mm:ss.SSS") : moment$6(date, "YYYY-MM-DD");
10738
+ var result = with_time ? moment$7(date, "YYYY-MM-DD hh:mm:ss.SSS") : moment$7(date, "YYYY-MM-DD");
10505
10739
  return result.toString();
10506
10740
  };
10507
10741
  DateUtils.format = function (date, formatString, lang) {
10508
10742
  if (formatString === void 0) { formatString = "YYYY-MM-DD HH:mm:ss.SSS"; }
10509
10743
  if (lang === void 0) { lang = "en"; }
10510
- var monthName = moment$6(date)
10744
+ var monthName = moment$7(date)
10511
10745
  .locale(lang)
10512
10746
  .startOf("month")
10513
10747
  .format("MMMM");
10514
10748
  var monthNameCapitalized = monthName.charAt(0).toUpperCase() + monthName.slice(1);
10515
- var dateToFormat = moment$6(date).locale(lang);
10749
+ var dateToFormat = moment$7(date).locale(lang);
10516
10750
  var format_map = {
10517
10751
  YYYY: dateToFormat.format("YYYY"),
10518
10752
  MM: dateToFormat.format("MM"),
@@ -10542,13 +10776,13 @@
10542
10776
  return str;
10543
10777
  };
10544
10778
  DateUtils.diff = function (fistDate, secondDate, scale) {
10545
- var milliseconds = moment$6(fistDate).diff(secondDate, MILLISECOND);
10546
- var seconds = moment$6(fistDate).diff(secondDate, SECOND);
10547
- var minutes = moment$6(fistDate).diff(secondDate, MINUTE);
10548
- var hours = moment$6(fistDate).diff(secondDate, HOUR);
10549
- var days = moment$6(fistDate).diff(secondDate, DAY);
10550
- var months = moment$6(fistDate).diff(secondDate, MONTH);
10551
- var years = moment$6(fistDate).diff(secondDate, YEAR);
10779
+ var milliseconds = moment$7(fistDate).diff(secondDate, MILLISECOND);
10780
+ var seconds = moment$7(fistDate).diff(secondDate, SECOND);
10781
+ var minutes = moment$7(fistDate).diff(secondDate, MINUTE);
10782
+ var hours = moment$7(fistDate).diff(secondDate, HOUR);
10783
+ var days = moment$7(fistDate).diff(secondDate, DAY);
10784
+ var months = moment$7(fistDate).diff(secondDate, MONTH);
10785
+ var years = moment$7(fistDate).diff(secondDate, YEAR);
10552
10786
  if (!scale.endsWith("s")) {
10553
10787
  scale += "s";
10554
10788
  }
@@ -10563,14 +10797,14 @@
10563
10797
  }[scale]);
10564
10798
  };
10565
10799
  DateUtils.today = function () {
10566
- var dateStr = moment$6().format("YYY-MM-DD");
10800
+ var dateStr = moment$7().format("YYY-MM-DD");
10567
10801
  return new Date(dateStr);
10568
10802
  };
10569
10803
  DateUtils.now = function () {
10570
- return moment$6().toDate();
10804
+ return moment$7().toDate();
10571
10805
  };
10572
10806
  DateUtils.add = function (date, quantity, scale) {
10573
- return moment$6(date).add(quantity, scale).toDate();
10807
+ return moment$7(date).add(quantity, scale).toDate();
10574
10808
  };
10575
10809
  DateUtils.startOf = function (date, scale) {
10576
10810
  var _a;
@@ -10599,7 +10833,7 @@
10599
10833
  return new Date(vals[0], vals[1], vals[2], vals[3], vals[4], vals[5], vals[6]);
10600
10834
  };
10601
10835
  DateUtils.clone = function (date) {
10602
- return moment$6(date).toDate();
10836
+ return moment$7(date).toDate();
10603
10837
  };
10604
10838
  DateUtils.getDateValues = function (date) {
10605
10839
  return [
@@ -10613,7 +10847,7 @@
10613
10847
  ];
10614
10848
  };
10615
10849
  DateUtils.getDaysInMonth = function (date) {
10616
- return moment$6(date, "YYYY-MM").daysInMonth();
10850
+ return moment$7(date, "YYYY-MM").daysInMonth();
10617
10851
  };
10618
10852
  return DateUtils;
10619
10853
  }());
@@ -14178,146 +14412,6 @@
14178
14412
  return ProfilePicturePickerModule;
14179
14413
  }());
14180
14414
 
14181
-
14182
- (function (ProgressBarColors) {
14183
- ProgressBarColors["Blue"] = "blue";
14184
- ProgressBarColors["Green"] = "green";
14185
- ProgressBarColors["Red"] = "red";
14186
- ProgressBarColors["Yellow"] = "yellow";
14187
- })(exports.ProgressBarColors || (exports.ProgressBarColors = {}));
14188
-
14189
- var ProgressBarMode;
14190
- (function (ProgressBarMode) {
14191
- ProgressBarMode["Determinate"] = "determinate";
14192
- ProgressBarMode["Indeterminate"] = "indeterminate";
14193
- })(ProgressBarMode || (ProgressBarMode = {}));
14194
-
14195
- var ProgressBarComponent = /** @class */ (function () {
14196
- function ProgressBarComponent() {
14197
- this.showValue = true;
14198
- this.mode = ProgressBarMode.Determinate;
14199
- }
14200
- ProgressBarComponent.prototype.ngOnInit = function () {
14201
- this.validateInputs();
14202
- };
14203
- ProgressBarComponent.prototype.validateInputs = function () {
14204
- if (this.value < 0 || this.value > 100) {
14205
- throw new Error("Invalid value for value");
14206
- }
14207
- if (this.targetValue < 0 || this.targetValue > 100) {
14208
- throw new Error("Invalid value for targetValue");
14209
- }
14210
- if (this.mode === ProgressBarMode.Indeterminate && (this.value || this.targetValue || this.targetLabel)) {
14211
- throw new Error("When the mode is indeterminate, the value, targetValue and targetLabel parameters are not expected.");
14212
- }
14213
- };
14214
- __decorate([
14215
- core.Input()
14216
- ], ProgressBarComponent.prototype, "value", void 0);
14217
- __decorate([
14218
- core.Input()
14219
- ], ProgressBarComponent.prototype, "targetValue", void 0);
14220
- __decorate([
14221
- core.Input()
14222
- ], ProgressBarComponent.prototype, "label", void 0);
14223
- __decorate([
14224
- core.Input()
14225
- ], ProgressBarComponent.prototype, "targetLabel", void 0);
14226
- __decorate([
14227
- core.Input()
14228
- ], ProgressBarComponent.prototype, "activeColor", void 0);
14229
- __decorate([
14230
- core.Input()
14231
- ], ProgressBarComponent.prototype, "showValue", void 0);
14232
- __decorate([
14233
- core.Input()
14234
- ], ProgressBarComponent.prototype, "mode", void 0);
14235
- ProgressBarComponent = __decorate([
14236
- core.Component({
14237
- selector: "s-progressbar",
14238
- 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 [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>",
14239
- 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}"]
14240
- })
14241
- ], ProgressBarComponent);
14242
- return ProgressBarComponent;
14243
- }());
14244
-
14245
- var ProgressBarDeterminateComponent = /** @class */ (function () {
14246
- function ProgressBarDeterminateComponent() {
14247
- this.showValue = true;
14248
- }
14249
- ProgressBarDeterminateComponent.prototype.ngOnInit = function () {
14250
- this.validateValues();
14251
- };
14252
- ProgressBarDeterminateComponent.prototype.validateValues = function () {
14253
- if (this.value < 0 || this.value > 100) {
14254
- throw new Error("Invalid value for value");
14255
- }
14256
- if (this.targetValue < 0 || this.targetValue > 100) {
14257
- throw new Error("Invalid value for targetValue");
14258
- }
14259
- };
14260
- __decorate([
14261
- core.Input()
14262
- ], ProgressBarDeterminateComponent.prototype, "value", void 0);
14263
- __decorate([
14264
- core.Input()
14265
- ], ProgressBarDeterminateComponent.prototype, "targetValue", void 0);
14266
- __decorate([
14267
- core.Input()
14268
- ], ProgressBarDeterminateComponent.prototype, "targetLabel", void 0);
14269
- __decorate([
14270
- core.Input()
14271
- ], ProgressBarDeterminateComponent.prototype, "activeColor", void 0);
14272
- __decorate([
14273
- core.Input()
14274
- ], ProgressBarDeterminateComponent.prototype, "showValue", void 0);
14275
- ProgressBarDeterminateComponent = __decorate([
14276
- core.Component({
14277
- selector: "s-progressbar-determinate",
14278
- 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 {{ showValue && value ? 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 || value + '%' }}\n </span>\n </div>\n </div>\n ",
14279
- 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}"]
14280
- })
14281
- ], ProgressBarDeterminateComponent);
14282
- return ProgressBarDeterminateComponent;
14283
- }());
14284
-
14285
- var ProgressBarIndeterminateComponent = /** @class */ (function () {
14286
- function ProgressBarIndeterminateComponent() {
14287
- }
14288
- __decorate([
14289
- core.Input()
14290
- ], ProgressBarIndeterminateComponent.prototype, "activeColor", void 0);
14291
- __decorate([
14292
- core.Input()
14293
- ], ProgressBarIndeterminateComponent.prototype, "label", void 0);
14294
- ProgressBarIndeterminateComponent = __decorate([
14295
- core.Component({
14296
- selector: "s-progressbar-indeterminate",
14297
- template: "<!-- progressbar-indeterminate.component.html -->\n<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",
14298
- 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%)}}"]
14299
- })
14300
- ], ProgressBarIndeterminateComponent);
14301
- return ProgressBarIndeterminateComponent;
14302
- }());
14303
-
14304
- var ProgressBarModule = /** @class */ (function () {
14305
- function ProgressBarModule() {
14306
- }
14307
- ProgressBarModule = __decorate([
14308
- core.NgModule({
14309
- imports: [common.CommonModule],
14310
- declarations: [
14311
- ProgressBarComponent,
14312
- ProgressBarDeterminateComponent,
14313
- ProgressBarIndeterminateComponent,
14314
- ],
14315
- exports: [ProgressBarComponent],
14316
- })
14317
- ], ProgressBarModule);
14318
- return ProgressBarModule;
14319
- }());
14320
-
14321
14415
  var PanelComponent = /** @class */ (function () {
14322
14416
  function PanelComponent() {
14323
14417
  this.toggleable = true;
@@ -16957,55 +17051,56 @@
16957
17051
  exports.fallback = fallback;
16958
17052
  exports.ɵa = TooltipComponent;
16959
17053
  exports.ɵb = TooltipDirective;
16960
- exports.ɵba = FileUploadComponent$1;
16961
- exports.ɵbb = LookupFieldComponent;
16962
- exports.ɵbc = NumberFieldComponent;
16963
- exports.ɵbd = PasswordFieldComponent;
16964
- exports.ɵbe = RadioButtonComponent;
16965
- exports.ɵbf = RowComponent;
16966
- exports.ɵbg = SectionComponent;
16967
- exports.ɵbh = SelectFieldComponent;
16968
- exports.ɵbi = SliderFieldComponent;
16969
- exports.ɵbj = TextAreaFieldComponent;
16970
- exports.ɵbk = TextAreaIAFieldComponent;
16971
- exports.ɵbl = IAssistService;
16972
- exports.ɵbm = TextFieldComponent;
16973
- exports.ɵbo = DecimalField;
16974
- exports.ɵbp = SideTableComponent;
16975
- exports.ɵbq = ThumbnailService;
16976
- exports.ɵbr = InfiniteScrollModule;
16977
- exports.ɵbs = InfiniteScrollDirective;
16978
- exports.ɵbt = StructureModule;
16979
- exports.ɵbu = HeaderComponent;
16980
- exports.ɵbv = FooterComponent;
16981
- exports.ɵbw = KanbanEventService;
16982
- exports.ɵbx = KanbanItemComponent;
16983
- exports.ɵby = KanbanColumnComponent;
16984
- exports.ɵbz = KanbanItemDraggingComponent;
17054
+ exports.ɵba = DynamicFieldComponent;
17055
+ exports.ɵbb = DynamicFormDirective;
17056
+ exports.ɵbc = FieldsetComponent;
17057
+ exports.ɵbd = FileUploadComponent$1;
17058
+ exports.ɵbe = LookupFieldComponent;
17059
+ exports.ɵbf = NumberFieldComponent;
17060
+ exports.ɵbg = PasswordFieldComponent;
17061
+ exports.ɵbh = RadioButtonComponent;
17062
+ exports.ɵbi = RowComponent;
17063
+ exports.ɵbj = SectionComponent;
17064
+ exports.ɵbk = SelectFieldComponent;
17065
+ exports.ɵbl = SliderFieldComponent;
17066
+ exports.ɵbm = TextAreaFieldComponent;
17067
+ exports.ɵbn = TextAreaIAFieldComponent;
17068
+ exports.ɵbo = IAssistService;
17069
+ exports.ɵbp = TextFieldComponent;
17070
+ exports.ɵbr = DecimalField;
17071
+ exports.ɵbs = SideTableComponent;
17072
+ exports.ɵbt = ThumbnailService;
17073
+ exports.ɵbu = InfiniteScrollModule;
17074
+ exports.ɵbv = InfiniteScrollDirective;
17075
+ exports.ɵbw = StructureModule;
17076
+ exports.ɵbx = HeaderComponent;
17077
+ exports.ɵby = FooterComponent;
17078
+ exports.ɵbz = KanbanEventService;
16985
17079
  exports.ɵc = CustomTranslationsModule;
16986
- exports.ɵca = NumberLocaleOptions;
16987
- exports.ɵcb = BorderButtonModule;
16988
- exports.ɵcc = BorderButtonComponent;
16989
- exports.ɵcd = ProgressBarDeterminateComponent;
16990
- exports.ɵce = ProgressBarIndeterminateComponent;
16991
- exports.ɵcf = SelectButtonItemComponent;
16992
- exports.ɵcg = SlidePanelService;
16993
- exports.ɵch = TieredMenuEventService;
16994
- exports.ɵci = TieredMenuService;
16995
- exports.ɵcj = TieredMenuComponent;
16996
- exports.ɵck = TieredMenuNestedComponent;
16997
- exports.ɵcl = TieredMenuItemComponent;
16998
- exports.ɵcm = TieredMenuDividerComponent;
16999
- exports.ɵcn = TimelineItemModule;
17000
- exports.ɵco = TimelineIconItemComponent;
17001
- exports.ɵcp = HorizontalTimelineModule;
17002
- exports.ɵcq = HorizontalTimelineComponent;
17003
- exports.ɵcr = VerticalTimelineModule;
17004
- exports.ɵcs = VerticalTimelineComponent;
17005
- exports.ɵct = RangeLineComponent;
17006
- exports.ɵcu = CollapseOptionComponent;
17007
- exports.ɵcv = CollapsedItemsComponent;
17008
- exports.ɵcw = VerticalItemsComponent;
17080
+ exports.ɵca = KanbanItemComponent;
17081
+ exports.ɵcb = KanbanColumnComponent;
17082
+ exports.ɵcc = KanbanItemDraggingComponent;
17083
+ exports.ɵcd = NumberLocaleOptions;
17084
+ exports.ɵce = BorderButtonModule;
17085
+ exports.ɵcf = BorderButtonComponent;
17086
+ exports.ɵcg = SelectButtonItemComponent;
17087
+ exports.ɵch = SlidePanelService;
17088
+ exports.ɵci = TieredMenuEventService;
17089
+ exports.ɵcj = TieredMenuService;
17090
+ exports.ɵck = TieredMenuComponent;
17091
+ exports.ɵcl = TieredMenuNestedComponent;
17092
+ exports.ɵcm = TieredMenuItemComponent;
17093
+ exports.ɵcn = TieredMenuDividerComponent;
17094
+ exports.ɵco = TimelineItemModule;
17095
+ exports.ɵcp = TimelineIconItemComponent;
17096
+ exports.ɵcq = HorizontalTimelineModule;
17097
+ exports.ɵcr = HorizontalTimelineComponent;
17098
+ exports.ɵcs = VerticalTimelineModule;
17099
+ exports.ɵct = VerticalTimelineComponent;
17100
+ exports.ɵcu = RangeLineComponent;
17101
+ exports.ɵcv = CollapseOptionComponent;
17102
+ exports.ɵcw = CollapsedItemsComponent;
17103
+ exports.ɵcx = VerticalItemsComponent;
17009
17104
  exports.ɵd = CodeEditorComponent;
17010
17105
  exports.ɵe = CoreFacade;
17011
17106
  exports.ɵf = CodeMirror6Core;
@@ -17014,21 +17109,21 @@
17014
17109
  exports.ɵi = LocalizedBignumberPipe;
17015
17110
  exports.ɵj = LocalizedBignumberImpurePipe;
17016
17111
  exports.ɵk = EmptyStateGoBackComponent;
17017
- exports.ɵl = FileUploadService;
17018
- exports.ɵm = InfoSignComponent;
17019
- exports.ɵn = TableColumnsComponent;
17020
- exports.ɵo = TablePagingComponent;
17021
- exports.ɵp = AutocompleteFieldComponent;
17022
- exports.ɵq = BignumberFieldComponent;
17023
- exports.ɵr = BooleanFieldComponent;
17024
- exports.ɵs = BooleanSwitchFieldComponent;
17025
- exports.ɵt = CalendarFieldComponent;
17026
- exports.ɵu = ChipsFieldComponent;
17027
- exports.ɵv = CountryPhonePickerFieldComponent;
17028
- exports.ɵw = CurrencyFieldComponent;
17029
- exports.ɵx = DynamicFieldComponent;
17030
- exports.ɵy = DynamicFormDirective;
17031
- exports.ɵz = FieldsetComponent;
17112
+ exports.ɵl = ProgressBarDeterminateComponent;
17113
+ exports.ɵm = ProgressBarIndeterminateComponent;
17114
+ exports.ɵn = FileUploadService;
17115
+ exports.ɵo = FileItemComponent;
17116
+ exports.ɵp = InfoSignComponent;
17117
+ exports.ɵq = TableColumnsComponent;
17118
+ exports.ɵr = TablePagingComponent;
17119
+ exports.ɵs = AutocompleteFieldComponent;
17120
+ exports.ɵt = BignumberFieldComponent;
17121
+ exports.ɵu = BooleanFieldComponent;
17122
+ exports.ɵv = BooleanSwitchFieldComponent;
17123
+ exports.ɵw = CalendarFieldComponent;
17124
+ exports.ɵx = ChipsFieldComponent;
17125
+ exports.ɵy = CountryPhonePickerFieldComponent;
17126
+ exports.ɵz = CurrencyFieldComponent;
17032
17127
 
17033
17128
  Object.defineProperty(exports, '__esModule', { value: true });
17034
17129