@seniorsistemas/angular-components 17.3.15 → 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.
- package/bundles/seniorsistemas-angular-components.umd.js +409 -314
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/file-upload/components/file-item/file-item.component.d.ts +20 -0
- package/components/file-upload/file-upload.component.d.ts +11 -15
- package/components/file-upload/models/index.d.ts +1 -0
- package/components/file-upload/models/storage-units.d.ts +5 -0
- package/esm2015/components/file-upload/components/file-item/file-item.component.js +88 -0
- package/esm2015/components/file-upload/file-upload.component.js +42 -43
- package/esm2015/components/file-upload/file-upload.module.js +9 -5
- package/esm2015/components/file-upload/file-upload.service.js +3 -1
- package/esm2015/components/file-upload/models/index.js +2 -1
- package/esm2015/components/file-upload/models/storage-units.js +6 -0
- package/esm2015/seniorsistemas-angular-components.js +65 -64
- package/esm5/components/file-upload/components/file-item/file-item.component.js +89 -0
- package/esm5/components/file-upload/file-upload.component.js +41 -42
- package/esm5/components/file-upload/file-upload.module.js +9 -5
- package/esm5/components/file-upload/file-upload.service.js +3 -1
- package/esm5/components/file-upload/models/index.js +2 -1
- package/esm5/components/file-upload/models/storage-units.js +6 -0
- package/esm5/seniorsistemas-angular-components.js +65 -64
- package/fesm2015/seniorsistemas-angular-components.js +330 -238
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +342 -249
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.d.ts +64 -63
- 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('
|
|
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', '
|
|
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.
|
|
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,
|
|
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;
|
|
@@ -6226,24 +6226,171 @@
|
|
|
6226
6226
|
return EmptyStateModule;
|
|
6227
6227
|
}());
|
|
6228
6228
|
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
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
|
-
|
|
6235
|
-
|
|
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
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
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
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
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.
|
|
6635
|
+
this._getUploadDate(files);
|
|
6405
6636
|
}
|
|
6406
6637
|
this._files = files.map(function (file) {
|
|
6407
|
-
if (_this.
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 (
|
|
6487
|
-
var
|
|
6488
|
-
if (
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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.
|
|
6753
|
+
FileUploadComponent.prototype._clearFileInput = function () {
|
|
6527
6754
|
this.inputUpload.nativeElement.value = null;
|
|
6528
6755
|
};
|
|
6529
|
-
FileUploadComponent.prototype.
|
|
6756
|
+
FileUploadComponent.prototype._getUploadDate = function (blobFile) {
|
|
6530
6757
|
var _this = this;
|
|
6531
6758
|
if (!blobFile) {
|
|
6532
6759
|
return;
|
|
6533
6760
|
}
|
|
6534
|
-
this.fileUploadService
|
|
6535
|
-
.
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
var
|
|
6540
|
-
var
|
|
6541
|
-
var
|
|
6542
|
-
var
|
|
6543
|
-
|
|
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
|
|
6640
|
-
styles: [".
|
|
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
|
-
|
|
6656
|
-
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
10258
|
+
parsedValues[name] = moment$6(value).toDate();
|
|
10025
10259
|
break;
|
|
10026
10260
|
case exports.FieldType.DateTime:
|
|
10027
|
-
parsedValues[name] = moment$
|
|
10261
|
+
parsedValues[name] = moment$6(value).toDate();
|
|
10028
10262
|
break;
|
|
10029
10263
|
case exports.FieldType.LocalDateTime:
|
|
10030
|
-
parsedValues[name] = moment$
|
|
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$
|
|
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$
|
|
10300
|
+
value = moment$6(value).format("YYYY-MM-DD");
|
|
10067
10301
|
break;
|
|
10068
10302
|
case exports.FieldType.DateTime:
|
|
10069
|
-
value = moment$
|
|
10303
|
+
value = moment$6(value).format();
|
|
10070
10304
|
break;
|
|
10071
10305
|
case exports.FieldType.LocalDateTime:
|
|
10072
|
-
value = moment$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
10546
|
-
var seconds = moment$
|
|
10547
|
-
var minutes = moment$
|
|
10548
|
-
var hours = moment$
|
|
10549
|
-
var days = moment$
|
|
10550
|
-
var months = moment$
|
|
10551
|
-
var years = moment$
|
|
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$
|
|
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$
|
|
10804
|
+
return moment$7().toDate();
|
|
10571
10805
|
};
|
|
10572
10806
|
DateUtils.add = function (date, quantity, scale) {
|
|
10573
|
-
return moment$
|
|
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$
|
|
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$
|
|
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 =
|
|
16961
|
-
exports.ɵbb =
|
|
16962
|
-
exports.ɵbc =
|
|
16963
|
-
exports.ɵbd =
|
|
16964
|
-
exports.ɵbe =
|
|
16965
|
-
exports.ɵbf =
|
|
16966
|
-
exports.ɵbg =
|
|
16967
|
-
exports.ɵbh =
|
|
16968
|
-
exports.ɵbi =
|
|
16969
|
-
exports.ɵbj =
|
|
16970
|
-
exports.ɵbk =
|
|
16971
|
-
exports.ɵbl =
|
|
16972
|
-
exports.ɵbm =
|
|
16973
|
-
exports.ɵ
|
|
16974
|
-
exports.ɵ
|
|
16975
|
-
exports.ɵ
|
|
16976
|
-
exports.ɵbr =
|
|
16977
|
-
exports.ɵbs =
|
|
16978
|
-
exports.ɵbt =
|
|
16979
|
-
exports.ɵbu =
|
|
16980
|
-
exports.ɵbv =
|
|
16981
|
-
exports.ɵbw =
|
|
16982
|
-
exports.ɵbx =
|
|
16983
|
-
exports.ɵby =
|
|
16984
|
-
exports.ɵbz =
|
|
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 =
|
|
16987
|
-
exports.ɵcb =
|
|
16988
|
-
exports.ɵcc =
|
|
16989
|
-
exports.ɵcd =
|
|
16990
|
-
exports.ɵce =
|
|
16991
|
-
exports.ɵcf =
|
|
16992
|
-
exports.ɵcg =
|
|
16993
|
-
exports.ɵch =
|
|
16994
|
-
exports.ɵci =
|
|
16995
|
-
exports.ɵcj =
|
|
16996
|
-
exports.ɵck =
|
|
16997
|
-
exports.ɵcl =
|
|
16998
|
-
exports.ɵcm =
|
|
16999
|
-
exports.ɵcn =
|
|
17000
|
-
exports.ɵco =
|
|
17001
|
-
exports.ɵcp =
|
|
17002
|
-
exports.ɵcq =
|
|
17003
|
-
exports.ɵcr =
|
|
17004
|
-
exports.ɵcs =
|
|
17005
|
-
exports.ɵct =
|
|
17006
|
-
exports.ɵcu =
|
|
17007
|
-
exports.ɵcv =
|
|
17008
|
-
exports.ɵcw =
|
|
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 =
|
|
17018
|
-
exports.ɵm =
|
|
17019
|
-
exports.ɵn =
|
|
17020
|
-
exports.ɵo =
|
|
17021
|
-
exports.ɵp =
|
|
17022
|
-
exports.ɵq =
|
|
17023
|
-
exports.ɵr =
|
|
17024
|
-
exports.ɵs =
|
|
17025
|
-
exports.ɵt =
|
|
17026
|
-
exports.ɵu =
|
|
17027
|
-
exports.ɵv =
|
|
17028
|
-
exports.ɵw =
|
|
17029
|
-
exports.ɵx =
|
|
17030
|
-
exports.ɵy =
|
|
17031
|
-
exports.ɵz =
|
|
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
|
|