@seniorsistemas/angular-components 17.3.15 → 17.3.17
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 +432 -299
- 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 +26 -0
- package/components/file-upload/file-upload.component.d.ts +15 -17
- package/components/file-upload/models/index.d.ts +1 -0
- package/components/file-upload/models/storage-units.d.ts +5 -0
- package/components/file-upload/models/validate-errors.d.ts +1 -0
- package/esm2015/components/file-upload/components/file-item/file-item.component.js +105 -0
- package/esm2015/components/file-upload/file-upload.component.js +60 -45
- package/esm2015/components/file-upload/file-upload.module.js +16 -6
- 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/components/file-upload/models/validate-errors.js +2 -1
- package/esm2015/seniorsistemas-angular-components.js +66 -64
- package/esm5/components/file-upload/components/file-item/file-item.component.js +107 -0
- package/esm5/components/file-upload/file-upload.component.js +60 -45
- package/esm5/components/file-upload/file-upload.module.js +16 -6
- 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/components/file-upload/models/validate-errors.js +2 -1
- package/esm5/seniorsistemas-angular-components.js +66 -64
- package/fesm2015/seniorsistemas-angular-components.js +354 -226
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +366 -236
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.d.ts +65 -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,22 +6226,144 @@
|
|
|
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;
|
|
6331
|
+
}());
|
|
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;
|
|
6245
6367
|
}());
|
|
6246
6368
|
|
|
6247
6369
|
var Breakpoints = {
|
|
@@ -6353,6 +6475,7 @@
|
|
|
6353
6475
|
|
|
6354
6476
|
(function (ValidateErrors) {
|
|
6355
6477
|
ValidateErrors["MAX_FILE_SIZE"] = "MAX_FILE_SIZE";
|
|
6478
|
+
ValidateErrors["MAX_COMBINED_FILE_SIZE"] = "MAX_COMBINED_FILE_SIZE";
|
|
6356
6479
|
ValidateErrors["MAX_FILE_LIMIT"] = "MAX_FILE_LIMIT";
|
|
6357
6480
|
ValidateErrors["UNSUPPORTED_EXTENSION"] = "UNSUPPORTED_EXTENSION";
|
|
6358
6481
|
})(exports.ValidateErrors || (exports.ValidateErrors = {}));
|
|
@@ -6369,7 +6492,132 @@
|
|
|
6369
6492
|
FileUploadPermissions.Remove,
|
|
6370
6493
|
];
|
|
6371
6494
|
|
|
6495
|
+
var StorageUnits = {
|
|
6496
|
+
KB: 1024,
|
|
6497
|
+
MB: Math.pow(1024, 2),
|
|
6498
|
+
GB: Math.pow(1024, 3),
|
|
6499
|
+
};
|
|
6500
|
+
|
|
6501
|
+
var FileItemComponent = /** @class */ (function () {
|
|
6502
|
+
function FileItemComponent(localeService) {
|
|
6503
|
+
this.localeService = localeService;
|
|
6504
|
+
this.canReadFiles = true;
|
|
6505
|
+
this.canRemoveFiles = true;
|
|
6506
|
+
this.cancelUpload = new core.EventEmitter();
|
|
6507
|
+
this.removeFile = new core.EventEmitter();
|
|
6508
|
+
}
|
|
6509
|
+
FileItemComponent.prototype.ngOnInit = function () {
|
|
6510
|
+
this._getLocale();
|
|
6511
|
+
};
|
|
6512
|
+
FileItemComponent.prototype.ngAfterContentInit = function () {
|
|
6513
|
+
this._update();
|
|
6514
|
+
};
|
|
6515
|
+
FileItemComponent.prototype.onResize = function () {
|
|
6516
|
+
this._update();
|
|
6517
|
+
};
|
|
6518
|
+
FileItemComponent.prototype._update = function () {
|
|
6519
|
+
var windowWidth = window.innerWidth;
|
|
6520
|
+
this.isSmallDevice = windowWidth <= Breakpoints.SM_MAX;
|
|
6521
|
+
};
|
|
6522
|
+
FileItemComponent.prototype.simplifySize = function (size) {
|
|
6523
|
+
var unit;
|
|
6524
|
+
var convertedSize;
|
|
6525
|
+
if (size < StorageUnits.KB) {
|
|
6526
|
+
convertedSize = size;
|
|
6527
|
+
unit = "bytes";
|
|
6528
|
+
}
|
|
6529
|
+
else if (size < StorageUnits.MB) {
|
|
6530
|
+
convertedSize = size / StorageUnits.KB;
|
|
6531
|
+
unit = "KB";
|
|
6532
|
+
}
|
|
6533
|
+
else if (size < StorageUnits.GB) {
|
|
6534
|
+
convertedSize = size / StorageUnits.MB;
|
|
6535
|
+
unit = "MB";
|
|
6536
|
+
}
|
|
6537
|
+
else {
|
|
6538
|
+
convertedSize = size / StorageUnits.GB;
|
|
6539
|
+
unit = "GB";
|
|
6540
|
+
}
|
|
6541
|
+
return convertedSize.toLocaleString(this._locale, { maximumFractionDigits: 2 }) + " " + unit;
|
|
6542
|
+
};
|
|
6543
|
+
FileItemComponent.prototype._getLocale = function () {
|
|
6544
|
+
var _this = this;
|
|
6545
|
+
this.localeService
|
|
6546
|
+
.getLocale()
|
|
6547
|
+
.pipe(operators.first())
|
|
6548
|
+
.subscribe(function (locale) {
|
|
6549
|
+
_this._locale = locale;
|
|
6550
|
+
});
|
|
6551
|
+
};
|
|
6552
|
+
FileItemComponent.ctorParameters = function () { return [
|
|
6553
|
+
{ type: LocaleService }
|
|
6554
|
+
]; };
|
|
6555
|
+
__decorate([
|
|
6556
|
+
core.Input()
|
|
6557
|
+
], FileItemComponent.prototype, "id", void 0);
|
|
6558
|
+
__decorate([
|
|
6559
|
+
core.Input()
|
|
6560
|
+
], FileItemComponent.prototype, "file", void 0);
|
|
6561
|
+
__decorate([
|
|
6562
|
+
core.Input()
|
|
6563
|
+
], FileItemComponent.prototype, "canReadFiles", void 0);
|
|
6564
|
+
__decorate([
|
|
6565
|
+
core.Input()
|
|
6566
|
+
], FileItemComponent.prototype, "canRemoveFiles", void 0);
|
|
6567
|
+
__decorate([
|
|
6568
|
+
core.Input()
|
|
6569
|
+
], FileItemComponent.prototype, "cancelLabel", void 0);
|
|
6570
|
+
__decorate([
|
|
6571
|
+
core.Input()
|
|
6572
|
+
], FileItemComponent.prototype, "removeLabel", void 0);
|
|
6573
|
+
__decorate([
|
|
6574
|
+
core.Input()
|
|
6575
|
+
], FileItemComponent.prototype, "ariaLabelProgress", void 0);
|
|
6576
|
+
__decorate([
|
|
6577
|
+
core.Input()
|
|
6578
|
+
], FileItemComponent.prototype, "successTooltip", void 0);
|
|
6579
|
+
__decorate([
|
|
6580
|
+
core.Input()
|
|
6581
|
+
], FileItemComponent.prototype, "ariaLabelSuccess", void 0);
|
|
6582
|
+
__decorate([
|
|
6583
|
+
core.Output()
|
|
6584
|
+
], FileItemComponent.prototype, "cancelUpload", void 0);
|
|
6585
|
+
__decorate([
|
|
6586
|
+
core.Output()
|
|
6587
|
+
], FileItemComponent.prototype, "removeFile", void 0);
|
|
6588
|
+
__decorate([
|
|
6589
|
+
core.HostListener("window:resize")
|
|
6590
|
+
], FileItemComponent.prototype, "onResize", null);
|
|
6591
|
+
FileItemComponent = __decorate([
|
|
6592
|
+
core.Component({
|
|
6593
|
+
selector: "s-file-item",
|
|
6594
|
+
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",
|
|
6595
|
+
styles: [".file-item-container{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:16px;padding:16px}.file-item-container .file-info{color:#212533;display:-ms-flexbox;display:flex;font-family:\"Open Sans\",sans-serif;font-size:14px;gap:16px;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}.file-item-container .file-info .file-name{-ms-flex-positive:1;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-item-container .file-info .file-name--link{color:#428bca;text-decoration:none}.file-item-container .file-info .file-size{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-item-container .progressbar{width:20%}.file-item-container .status-icon{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;font-size:12px}.file-item-container .status-icon--success{color:#0c9348}.file-item-container .status-icon--fail{color:#c13018}.file-item-container .file-option{background-color:transparent;border:none;color:#428bca;cursor:pointer;font-family:\"Open Sans\",sans-serif;font-size:14px;overflow:hidden;text-overflow:ellipsis;max-width:100%}@media screen and (max-width:600px){.file-item-container{-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:column;flex-direction:column}}"]
|
|
6596
|
+
})
|
|
6597
|
+
], FileItemComponent);
|
|
6598
|
+
return FileItemComponent;
|
|
6599
|
+
}());
|
|
6600
|
+
|
|
6372
6601
|
var moment$3 = moment_;
|
|
6602
|
+
var FileUploadService = /** @class */ (function () {
|
|
6603
|
+
function FileUploadService() {
|
|
6604
|
+
this.BASE_URL_FIELD_CUSTOMIZATION = "platform/field_customization";
|
|
6605
|
+
this.TOKEN = new AbortController();
|
|
6606
|
+
}
|
|
6607
|
+
FileUploadService.prototype.getMetadataCustomField = function (request) {
|
|
6608
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6609
|
+
return __generator(this, function (_a) {
|
|
6610
|
+
return [2 /*return*/, CustomHttpClient.POST(this.BASE_URL_FIELD_CUSTOMIZATION + "/queries/getFileMetadata", request, { signal: this.TOKEN.signal })];
|
|
6611
|
+
});
|
|
6612
|
+
});
|
|
6613
|
+
};
|
|
6614
|
+
FileUploadService = __decorate([
|
|
6615
|
+
core.Injectable()
|
|
6616
|
+
], FileUploadService);
|
|
6617
|
+
return FileUploadService;
|
|
6618
|
+
}());
|
|
6619
|
+
|
|
6620
|
+
var moment$4 = moment_;
|
|
6373
6621
|
var FileUploadComponent = /** @class */ (function () {
|
|
6374
6622
|
function FileUploadComponent(sanitizer, fileUploadService, translate) {
|
|
6375
6623
|
this.sanitizer = sanitizer;
|
|
@@ -6388,9 +6636,9 @@
|
|
|
6388
6636
|
this.cancelUpload = new core.EventEmitter();
|
|
6389
6637
|
this.downloadFile = new core.EventEmitter();
|
|
6390
6638
|
this.validateErrors = new core.EventEmitter();
|
|
6639
|
+
this.inputValue = "";
|
|
6391
6640
|
this._files = [];
|
|
6392
6641
|
this.ngUsubscribe = new rxjs.Subject();
|
|
6393
|
-
this.inputValue = "";
|
|
6394
6642
|
}
|
|
6395
6643
|
FileUploadComponent_1 = FileUploadComponent;
|
|
6396
6644
|
Object.defineProperty(FileUploadComponent.prototype, "files", {
|
|
@@ -6401,10 +6649,10 @@
|
|
|
6401
6649
|
var _this = this;
|
|
6402
6650
|
var _a;
|
|
6403
6651
|
if (this.showFileUploadDate && ((_a = files[0]) === null || _a === void 0 ? void 0 : _a.objectId)) {
|
|
6404
|
-
this.
|
|
6652
|
+
this._getUploadDate(files);
|
|
6405
6653
|
}
|
|
6406
6654
|
this._files = files.map(function (file) {
|
|
6407
|
-
if (_this.
|
|
6655
|
+
if (_this._isImage(file)) {
|
|
6408
6656
|
file.objectURL = _this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(file));
|
|
6409
6657
|
}
|
|
6410
6658
|
return file;
|
|
@@ -6414,44 +6662,45 @@
|
|
|
6414
6662
|
configurable: true
|
|
6415
6663
|
});
|
|
6416
6664
|
FileUploadComponent.prototype.ngOnInit = function () {
|
|
6417
|
-
this.supportedExtensions = this.supportedExtensions
|
|
6418
|
-
.map(function (extension) { return extension.replace(".", "").toLowerCase(); });
|
|
6665
|
+
this.supportedExtensions = this.supportedExtensions.map(function (extension) { return extension.replace(".", "").toLowerCase(); });
|
|
6419
6666
|
};
|
|
6420
6667
|
FileUploadComponent.prototype.ngOnDestroy = function () {
|
|
6421
6668
|
this.ngUsubscribe.next();
|
|
6422
6669
|
this.ngUsubscribe.complete();
|
|
6423
6670
|
};
|
|
6424
|
-
FileUploadComponent.prototype.ngAfterContentInit = function () {
|
|
6425
|
-
this.update();
|
|
6426
|
-
};
|
|
6427
|
-
FileUploadComponent.prototype.onResize = function () {
|
|
6428
|
-
this.update();
|
|
6429
|
-
};
|
|
6430
6671
|
FileUploadComponent.prototype.onFileSelect = function (files) {
|
|
6431
6672
|
var e_1, _a;
|
|
6432
6673
|
var newFiles = [];
|
|
6433
6674
|
if (!this.multiple) {
|
|
6434
6675
|
this.files = [];
|
|
6435
6676
|
}
|
|
6436
|
-
if (this.
|
|
6677
|
+
if (this._isFileLimitExceeded(files)) {
|
|
6437
6678
|
this.validateErrors.emit({
|
|
6438
6679
|
files: files,
|
|
6439
6680
|
validation: exports.ValidateErrors.MAX_FILE_LIMIT,
|
|
6440
6681
|
});
|
|
6441
|
-
this.
|
|
6682
|
+
this._clearFileInput();
|
|
6683
|
+
return;
|
|
6684
|
+
}
|
|
6685
|
+
if (this._isFileCombinedSizeExceeded(files)) {
|
|
6686
|
+
this.validateErrors.emit({
|
|
6687
|
+
files: files,
|
|
6688
|
+
validation: exports.ValidateErrors.MAX_COMBINED_FILE_SIZE,
|
|
6689
|
+
});
|
|
6690
|
+
this._clearFileInput();
|
|
6442
6691
|
return;
|
|
6443
6692
|
}
|
|
6444
6693
|
try {
|
|
6445
6694
|
for (var files_1 = __values(files), files_1_1 = files_1.next(); !files_1_1.done; files_1_1 = files_1.next()) {
|
|
6446
6695
|
var file = files_1_1.value;
|
|
6447
|
-
if (this.
|
|
6696
|
+
if (this._isUnsupportedFileExtension(file)) {
|
|
6448
6697
|
this.validateErrors.emit({
|
|
6449
6698
|
files: [file],
|
|
6450
6699
|
validation: exports.ValidateErrors.UNSUPPORTED_EXTENSION,
|
|
6451
6700
|
});
|
|
6452
6701
|
continue;
|
|
6453
6702
|
}
|
|
6454
|
-
if (this.
|
|
6703
|
+
if (this._isFileSizeExceeded(file)) {
|
|
6455
6704
|
this.validateErrors.emit({
|
|
6456
6705
|
files: [file],
|
|
6457
6706
|
validation: exports.ValidateErrors.MAX_FILE_SIZE,
|
|
@@ -6474,7 +6723,7 @@
|
|
|
6474
6723
|
files: newFiles,
|
|
6475
6724
|
});
|
|
6476
6725
|
}
|
|
6477
|
-
this.
|
|
6726
|
+
this._clearFileInput();
|
|
6478
6727
|
};
|
|
6479
6728
|
FileUploadComponent.prototype.onRemoveFile = function (file) {
|
|
6480
6729
|
var fileIndex = this.files.indexOf(file);
|
|
@@ -6483,12 +6732,13 @@
|
|
|
6483
6732
|
this.removeFile.emit({ file: file });
|
|
6484
6733
|
}
|
|
6485
6734
|
};
|
|
6486
|
-
FileUploadComponent.prototype.onCancelUpload = function (
|
|
6487
|
-
var
|
|
6488
|
-
if (
|
|
6735
|
+
FileUploadComponent.prototype.onCancelUpload = function (file) {
|
|
6736
|
+
var index = this.files.indexOf(file);
|
|
6737
|
+
if (index != -1) {
|
|
6738
|
+
this.files.splice(index, 1);
|
|
6489
6739
|
this.cancelUpload.emit(index);
|
|
6490
6740
|
}
|
|
6491
|
-
this.
|
|
6741
|
+
this._clearFileInput();
|
|
6492
6742
|
};
|
|
6493
6743
|
FileUploadComponent.prototype.onDowloadFile = function (index) {
|
|
6494
6744
|
this.downloadFile.emit({
|
|
@@ -6496,51 +6746,65 @@
|
|
|
6496
6746
|
anchor: this.anchor,
|
|
6497
6747
|
});
|
|
6498
6748
|
};
|
|
6499
|
-
FileUploadComponent.prototype.
|
|
6500
|
-
var windowWidth = window.innerWidth;
|
|
6501
|
-
this.isSmallDevice = windowWidth <= Breakpoints.SM_MAX;
|
|
6502
|
-
};
|
|
6503
|
-
FileUploadComponent.prototype.isImage = function (file) {
|
|
6749
|
+
FileUploadComponent.prototype._isImage = function (file) {
|
|
6504
6750
|
return /^image\//.test(file.type);
|
|
6505
6751
|
};
|
|
6506
|
-
FileUploadComponent.prototype.
|
|
6752
|
+
FileUploadComponent.prototype._isFileLimitExceeded = function (files) {
|
|
6507
6753
|
if (!this.fileLimit) {
|
|
6508
6754
|
return false;
|
|
6509
6755
|
}
|
|
6510
6756
|
return this.files.length + files.length > this.fileLimit;
|
|
6511
6757
|
};
|
|
6512
|
-
FileUploadComponent.prototype.
|
|
6758
|
+
FileUploadComponent.prototype._isFileCombinedSizeExceeded = function (files) {
|
|
6759
|
+
if (!this.maxCombinedFileSize) {
|
|
6760
|
+
return false;
|
|
6761
|
+
}
|
|
6762
|
+
var filesList = __spread(files, this.files);
|
|
6763
|
+
var combinedSize = filesList.reduce(function (combinedSize, file) { return combinedSize + file.size; }, 0);
|
|
6764
|
+
return combinedSize > this.maxCombinedFileSize;
|
|
6765
|
+
};
|
|
6766
|
+
FileUploadComponent.prototype._isFileSizeExceeded = function (file) {
|
|
6513
6767
|
if (!this.maxFileSize) {
|
|
6514
6768
|
return false;
|
|
6515
6769
|
}
|
|
6516
6770
|
return file.size > this.maxFileSize;
|
|
6517
6771
|
};
|
|
6518
|
-
FileUploadComponent.prototype.
|
|
6772
|
+
FileUploadComponent.prototype._isUnsupportedFileExtension = function (file) {
|
|
6519
6773
|
var _a;
|
|
6520
6774
|
if ((_a = this.supportedExtensions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
6521
|
-
var extension = file.name
|
|
6775
|
+
var extension = file.name
|
|
6776
|
+
.split(".")
|
|
6777
|
+
.pop()
|
|
6778
|
+
.toLowerCase();
|
|
6522
6779
|
return !this.supportedExtensions.includes(extension);
|
|
6523
6780
|
}
|
|
6524
6781
|
return false;
|
|
6525
6782
|
};
|
|
6526
|
-
FileUploadComponent.prototype.
|
|
6783
|
+
FileUploadComponent.prototype._clearFileInput = function () {
|
|
6527
6784
|
this.inputUpload.nativeElement.value = null;
|
|
6528
6785
|
};
|
|
6529
|
-
FileUploadComponent.prototype.
|
|
6786
|
+
FileUploadComponent.prototype._getUploadDate = function (blobFile) {
|
|
6530
6787
|
var _this = this;
|
|
6531
6788
|
if (!blobFile) {
|
|
6532
6789
|
return;
|
|
6533
6790
|
}
|
|
6534
|
-
this.fileUploadService
|
|
6535
|
-
.
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
var
|
|
6540
|
-
var
|
|
6541
|
-
var
|
|
6542
|
-
var
|
|
6543
|
-
|
|
6791
|
+
this.fileUploadService
|
|
6792
|
+
.getMetadataCustomField({ objectId: blobFile[0].objectId })
|
|
6793
|
+
.then(function (metadata) { return _this._setModifiedDate(metadata); });
|
|
6794
|
+
};
|
|
6795
|
+
FileUploadComponent.prototype._setModifiedDate = function (metadata) {
|
|
6796
|
+
var hour = moment$4(metadata.modified).format("HH");
|
|
6797
|
+
var minutes = moment$4(metadata.modified).format("mm");
|
|
6798
|
+
var day = moment$4(metadata.modified).format("DD");
|
|
6799
|
+
var month = moment$4(metadata.modified).format("MM");
|
|
6800
|
+
var fullYear = moment$4(metadata.modified).format("YYYY");
|
|
6801
|
+
this.modifiedDate = this.translate.instant("platform.angular_components.date_modified_custom_blob", {
|
|
6802
|
+
hour: hour,
|
|
6803
|
+
minutes: minutes,
|
|
6804
|
+
day: day,
|
|
6805
|
+
month: month,
|
|
6806
|
+
fullYear: fullYear,
|
|
6807
|
+
});
|
|
6544
6808
|
};
|
|
6545
6809
|
var FileUploadComponent_1;
|
|
6546
6810
|
FileUploadComponent.nextId = 0;
|
|
@@ -6585,6 +6849,9 @@
|
|
|
6585
6849
|
__decorate([
|
|
6586
6850
|
core.Input()
|
|
6587
6851
|
], FileUploadComponent.prototype, "maxFileSize", void 0);
|
|
6852
|
+
__decorate([
|
|
6853
|
+
core.Input()
|
|
6854
|
+
], FileUploadComponent.prototype, "maxCombinedFileSize", void 0);
|
|
6588
6855
|
__decorate([
|
|
6589
6856
|
core.Input()
|
|
6590
6857
|
], FileUploadComponent.prototype, "fileLimit", void 0);
|
|
@@ -6630,14 +6897,11 @@
|
|
|
6630
6897
|
__decorate([
|
|
6631
6898
|
core.Output()
|
|
6632
6899
|
], FileUploadComponent.prototype, "validateErrors", void 0);
|
|
6633
|
-
__decorate([
|
|
6634
|
-
core.HostListener("window:resize")
|
|
6635
|
-
], FileUploadComponent.prototype, "onResize", null);
|
|
6636
6900
|
FileUploadComponent = FileUploadComponent_1 = __decorate([
|
|
6637
6901
|
core.Component({
|
|
6638
6902
|
selector: "s-file-upload",
|
|
6639
|
-
template: "<div
|
|
6640
|
-
styles: [".
|
|
6903
|
+
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",
|
|
6904
|
+
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
6905
|
})
|
|
6642
6906
|
], FileUploadComponent);
|
|
6643
6907
|
return FileUploadComponent;
|
|
@@ -6648,15 +6912,22 @@
|
|
|
6648
6912
|
}
|
|
6649
6913
|
FileUploadModule = __decorate([
|
|
6650
6914
|
core.NgModule({
|
|
6651
|
-
declarations: [FileUploadComponent],
|
|
6652
6915
|
imports: [
|
|
6653
6916
|
common.CommonModule,
|
|
6917
|
+
http.HttpClientModule,
|
|
6654
6918
|
ButtonModule,
|
|
6655
|
-
|
|
6656
|
-
|
|
6919
|
+
TooltipModule,
|
|
6920
|
+
ProgressBarModule,
|
|
6657
6921
|
core$1.TranslateModule,
|
|
6658
6922
|
],
|
|
6659
|
-
|
|
6923
|
+
declarations: [
|
|
6924
|
+
FileUploadComponent,
|
|
6925
|
+
FileItemComponent,
|
|
6926
|
+
],
|
|
6927
|
+
providers: [
|
|
6928
|
+
FileUploadService,
|
|
6929
|
+
LocaleService,
|
|
6930
|
+
],
|
|
6660
6931
|
exports: [FileUploadComponent],
|
|
6661
6932
|
})
|
|
6662
6933
|
], FileUploadModule);
|
|
@@ -7765,7 +8036,7 @@
|
|
|
7765
8036
|
EnumBadgeColors["GRAY"] = "gray";
|
|
7766
8037
|
})(exports.EnumBadgeColors || (exports.EnumBadgeColors = {}));
|
|
7767
8038
|
|
|
7768
|
-
var moment$
|
|
8039
|
+
var moment$5 = moment_;
|
|
7769
8040
|
var TableColumnsComponent = /** @class */ (function () {
|
|
7770
8041
|
function TableColumnsComponent(viewContainerRef, translate, hostProjectConfigs) {
|
|
7771
8042
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -7872,7 +8143,7 @@
|
|
|
7872
8143
|
return ng2CurrencyMask.applyMask(attributeValue, numberConfigs, _this.isNumber(attributeValue));
|
|
7873
8144
|
case exports.EnumColumnFieldType.DATE:
|
|
7874
8145
|
var dateFormat = _this.getDateFormat(column, locale);
|
|
7875
|
-
return moment$
|
|
8146
|
+
return moment$5(attributeValue).format(dateFormat);
|
|
7876
8147
|
case exports.EnumColumnFieldType.BOOLEAN:
|
|
7877
8148
|
var value = attributeValue ? "yes" : "no";
|
|
7878
8149
|
return _this.translate.instant(prefix + value);
|
|
@@ -9812,7 +10083,7 @@
|
|
|
9812
10083
|
CustomFieldType["Any"] = "Any";
|
|
9813
10084
|
CustomFieldType["Enum"] = "Enum";
|
|
9814
10085
|
})(CustomFieldType || (CustomFieldType = {}));
|
|
9815
|
-
var moment$
|
|
10086
|
+
var moment$6 = moment_; // @HACK Necessary because of https://github.com/rollup/rollup/issues/670
|
|
9816
10087
|
var CustomFieldsComponent = /** @class */ (function () {
|
|
9817
10088
|
function CustomFieldsComponent(customFieldsService, localeService, sanitizer, translateService, controlContainer) {
|
|
9818
10089
|
this.customFieldsService = customFieldsService;
|
|
@@ -10021,16 +10292,16 @@
|
|
|
10021
10292
|
return;
|
|
10022
10293
|
switch (type) {
|
|
10023
10294
|
case exports.FieldType.Date:
|
|
10024
|
-
parsedValues[name] = moment$
|
|
10295
|
+
parsedValues[name] = moment$6(value).toDate();
|
|
10025
10296
|
break;
|
|
10026
10297
|
case exports.FieldType.DateTime:
|
|
10027
|
-
parsedValues[name] = moment$
|
|
10298
|
+
parsedValues[name] = moment$6(value).toDate();
|
|
10028
10299
|
break;
|
|
10029
10300
|
case exports.FieldType.LocalDateTime:
|
|
10030
|
-
parsedValues[name] = moment$
|
|
10301
|
+
parsedValues[name] = moment$6(value, "YYYY-MM-DD[T]HH:mm:ss.SSS").toDate();
|
|
10031
10302
|
break;
|
|
10032
10303
|
case exports.FieldType.Time:
|
|
10033
|
-
parsedValues[name] = moment$
|
|
10304
|
+
parsedValues[name] = moment$6(value, "HH:mm:ss").toDate();
|
|
10034
10305
|
break;
|
|
10035
10306
|
}
|
|
10036
10307
|
});
|
|
@@ -10063,16 +10334,16 @@
|
|
|
10063
10334
|
value = new BigNumber__default(value).toFixed(scale).toString();
|
|
10064
10335
|
break;
|
|
10065
10336
|
case exports.FieldType.Date:
|
|
10066
|
-
value = moment$
|
|
10337
|
+
value = moment$6(value).format("YYYY-MM-DD");
|
|
10067
10338
|
break;
|
|
10068
10339
|
case exports.FieldType.DateTime:
|
|
10069
|
-
value = moment$
|
|
10340
|
+
value = moment$6(value).format();
|
|
10070
10341
|
break;
|
|
10071
10342
|
case exports.FieldType.LocalDateTime:
|
|
10072
|
-
value = moment$
|
|
10343
|
+
value = moment$6(value).format("YYYY-MM-DD[T]HH:mm:ss.SSS");
|
|
10073
10344
|
break;
|
|
10074
10345
|
case exports.FieldType.Time:
|
|
10075
|
-
value = moment$
|
|
10346
|
+
value = moment$6(value).format("HH:mm:ss");
|
|
10076
10347
|
break;
|
|
10077
10348
|
}
|
|
10078
10349
|
}
|
|
@@ -10485,7 +10756,7 @@
|
|
|
10485
10756
|
return EditableOverlayModule;
|
|
10486
10757
|
}());
|
|
10487
10758
|
|
|
10488
|
-
var moment$
|
|
10759
|
+
var moment$7 = moment_;
|
|
10489
10760
|
var YEAR = "year";
|
|
10490
10761
|
var MONTH = "month";
|
|
10491
10762
|
var DAY = "day";
|
|
@@ -10497,22 +10768,22 @@
|
|
|
10497
10768
|
function DateUtils() {
|
|
10498
10769
|
}
|
|
10499
10770
|
DateUtils.parse = function (date) {
|
|
10500
|
-
return moment$
|
|
10771
|
+
return moment$7(date).toDate();
|
|
10501
10772
|
};
|
|
10502
10773
|
DateUtils.toString = function (date, with_time) {
|
|
10503
10774
|
if (with_time === void 0) { with_time = false; }
|
|
10504
|
-
var result = with_time ? moment$
|
|
10775
|
+
var result = with_time ? moment$7(date, "YYYY-MM-DD hh:mm:ss.SSS") : moment$7(date, "YYYY-MM-DD");
|
|
10505
10776
|
return result.toString();
|
|
10506
10777
|
};
|
|
10507
10778
|
DateUtils.format = function (date, formatString, lang) {
|
|
10508
10779
|
if (formatString === void 0) { formatString = "YYYY-MM-DD HH:mm:ss.SSS"; }
|
|
10509
10780
|
if (lang === void 0) { lang = "en"; }
|
|
10510
|
-
var monthName = moment$
|
|
10781
|
+
var monthName = moment$7(date)
|
|
10511
10782
|
.locale(lang)
|
|
10512
10783
|
.startOf("month")
|
|
10513
10784
|
.format("MMMM");
|
|
10514
10785
|
var monthNameCapitalized = monthName.charAt(0).toUpperCase() + monthName.slice(1);
|
|
10515
|
-
var dateToFormat = moment$
|
|
10786
|
+
var dateToFormat = moment$7(date).locale(lang);
|
|
10516
10787
|
var format_map = {
|
|
10517
10788
|
YYYY: dateToFormat.format("YYYY"),
|
|
10518
10789
|
MM: dateToFormat.format("MM"),
|
|
@@ -10542,13 +10813,13 @@
|
|
|
10542
10813
|
return str;
|
|
10543
10814
|
};
|
|
10544
10815
|
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$
|
|
10816
|
+
var milliseconds = moment$7(fistDate).diff(secondDate, MILLISECOND);
|
|
10817
|
+
var seconds = moment$7(fistDate).diff(secondDate, SECOND);
|
|
10818
|
+
var minutes = moment$7(fistDate).diff(secondDate, MINUTE);
|
|
10819
|
+
var hours = moment$7(fistDate).diff(secondDate, HOUR);
|
|
10820
|
+
var days = moment$7(fistDate).diff(secondDate, DAY);
|
|
10821
|
+
var months = moment$7(fistDate).diff(secondDate, MONTH);
|
|
10822
|
+
var years = moment$7(fistDate).diff(secondDate, YEAR);
|
|
10552
10823
|
if (!scale.endsWith("s")) {
|
|
10553
10824
|
scale += "s";
|
|
10554
10825
|
}
|
|
@@ -10563,14 +10834,14 @@
|
|
|
10563
10834
|
}[scale]);
|
|
10564
10835
|
};
|
|
10565
10836
|
DateUtils.today = function () {
|
|
10566
|
-
var dateStr = moment$
|
|
10837
|
+
var dateStr = moment$7().format("YYY-MM-DD");
|
|
10567
10838
|
return new Date(dateStr);
|
|
10568
10839
|
};
|
|
10569
10840
|
DateUtils.now = function () {
|
|
10570
|
-
return moment$
|
|
10841
|
+
return moment$7().toDate();
|
|
10571
10842
|
};
|
|
10572
10843
|
DateUtils.add = function (date, quantity, scale) {
|
|
10573
|
-
return moment$
|
|
10844
|
+
return moment$7(date).add(quantity, scale).toDate();
|
|
10574
10845
|
};
|
|
10575
10846
|
DateUtils.startOf = function (date, scale) {
|
|
10576
10847
|
var _a;
|
|
@@ -10599,7 +10870,7 @@
|
|
|
10599
10870
|
return new Date(vals[0], vals[1], vals[2], vals[3], vals[4], vals[5], vals[6]);
|
|
10600
10871
|
};
|
|
10601
10872
|
DateUtils.clone = function (date) {
|
|
10602
|
-
return moment$
|
|
10873
|
+
return moment$7(date).toDate();
|
|
10603
10874
|
};
|
|
10604
10875
|
DateUtils.getDateValues = function (date) {
|
|
10605
10876
|
return [
|
|
@@ -10613,7 +10884,7 @@
|
|
|
10613
10884
|
];
|
|
10614
10885
|
};
|
|
10615
10886
|
DateUtils.getDaysInMonth = function (date) {
|
|
10616
|
-
return moment$
|
|
10887
|
+
return moment$7(date, "YYYY-MM").daysInMonth();
|
|
10617
10888
|
};
|
|
10618
10889
|
return DateUtils;
|
|
10619
10890
|
}());
|
|
@@ -14178,146 +14449,6 @@
|
|
|
14178
14449
|
return ProfilePicturePickerModule;
|
|
14179
14450
|
}());
|
|
14180
14451
|
|
|
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
14452
|
var PanelComponent = /** @class */ (function () {
|
|
14322
14453
|
function PanelComponent() {
|
|
14323
14454
|
this.toggleable = true;
|
|
@@ -16957,55 +17088,57 @@
|
|
|
16957
17088
|
exports.fallback = fallback;
|
|
16958
17089
|
exports.ɵa = TooltipComponent;
|
|
16959
17090
|
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.ɵ
|
|
16977
|
-
exports.ɵbs =
|
|
16978
|
-
exports.ɵbt =
|
|
16979
|
-
exports.ɵbu =
|
|
16980
|
-
exports.ɵbv =
|
|
16981
|
-
exports.ɵbw =
|
|
16982
|
-
exports.ɵbx =
|
|
16983
|
-
exports.ɵby =
|
|
16984
|
-
exports.ɵbz =
|
|
17091
|
+
exports.ɵba = CurrencyFieldComponent;
|
|
17092
|
+
exports.ɵbb = DynamicFieldComponent;
|
|
17093
|
+
exports.ɵbc = DynamicFormDirective;
|
|
17094
|
+
exports.ɵbd = FieldsetComponent;
|
|
17095
|
+
exports.ɵbe = FileUploadComponent$1;
|
|
17096
|
+
exports.ɵbf = LookupFieldComponent;
|
|
17097
|
+
exports.ɵbg = NumberFieldComponent;
|
|
17098
|
+
exports.ɵbh = PasswordFieldComponent;
|
|
17099
|
+
exports.ɵbi = RadioButtonComponent;
|
|
17100
|
+
exports.ɵbj = RowComponent;
|
|
17101
|
+
exports.ɵbk = SectionComponent;
|
|
17102
|
+
exports.ɵbl = SelectFieldComponent;
|
|
17103
|
+
exports.ɵbm = SliderFieldComponent;
|
|
17104
|
+
exports.ɵbn = TextAreaFieldComponent;
|
|
17105
|
+
exports.ɵbo = TextAreaIAFieldComponent;
|
|
17106
|
+
exports.ɵbp = IAssistService;
|
|
17107
|
+
exports.ɵbq = TextFieldComponent;
|
|
17108
|
+
exports.ɵbs = DecimalField;
|
|
17109
|
+
exports.ɵbt = SideTableComponent;
|
|
17110
|
+
exports.ɵbu = ThumbnailService;
|
|
17111
|
+
exports.ɵbv = InfiniteScrollModule;
|
|
17112
|
+
exports.ɵbw = InfiniteScrollDirective;
|
|
17113
|
+
exports.ɵbx = StructureModule;
|
|
17114
|
+
exports.ɵby = HeaderComponent;
|
|
17115
|
+
exports.ɵbz = FooterComponent;
|
|
16985
17116
|
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 =
|
|
17117
|
+
exports.ɵca = KanbanEventService;
|
|
17118
|
+
exports.ɵcb = KanbanItemComponent;
|
|
17119
|
+
exports.ɵcc = KanbanColumnComponent;
|
|
17120
|
+
exports.ɵcd = KanbanItemDraggingComponent;
|
|
17121
|
+
exports.ɵce = NumberLocaleOptions;
|
|
17122
|
+
exports.ɵcf = BorderButtonModule;
|
|
17123
|
+
exports.ɵcg = BorderButtonComponent;
|
|
17124
|
+
exports.ɵch = SelectButtonItemComponent;
|
|
17125
|
+
exports.ɵci = SlidePanelService;
|
|
17126
|
+
exports.ɵcj = TieredMenuEventService;
|
|
17127
|
+
exports.ɵck = TieredMenuService;
|
|
17128
|
+
exports.ɵcl = TieredMenuComponent;
|
|
17129
|
+
exports.ɵcm = TieredMenuNestedComponent;
|
|
17130
|
+
exports.ɵcn = TieredMenuItemComponent;
|
|
17131
|
+
exports.ɵco = TieredMenuDividerComponent;
|
|
17132
|
+
exports.ɵcp = TimelineItemModule;
|
|
17133
|
+
exports.ɵcq = TimelineIconItemComponent;
|
|
17134
|
+
exports.ɵcr = HorizontalTimelineModule;
|
|
17135
|
+
exports.ɵcs = HorizontalTimelineComponent;
|
|
17136
|
+
exports.ɵct = VerticalTimelineModule;
|
|
17137
|
+
exports.ɵcu = VerticalTimelineComponent;
|
|
17138
|
+
exports.ɵcv = RangeLineComponent;
|
|
17139
|
+
exports.ɵcw = CollapseOptionComponent;
|
|
17140
|
+
exports.ɵcx = CollapsedItemsComponent;
|
|
17141
|
+
exports.ɵcy = VerticalItemsComponent;
|
|
17009
17142
|
exports.ɵd = CodeEditorComponent;
|
|
17010
17143
|
exports.ɵe = CoreFacade;
|
|
17011
17144
|
exports.ɵf = CodeMirror6Core;
|
|
@@ -17014,21 +17147,21 @@
|
|
|
17014
17147
|
exports.ɵi = LocalizedBignumberPipe;
|
|
17015
17148
|
exports.ɵj = LocalizedBignumberImpurePipe;
|
|
17016
17149
|
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 =
|
|
17150
|
+
exports.ɵl = ProgressBarDeterminateComponent;
|
|
17151
|
+
exports.ɵm = ProgressBarIndeterminateComponent;
|
|
17152
|
+
exports.ɵn = FileUploadService;
|
|
17153
|
+
exports.ɵo = FileItemComponent;
|
|
17154
|
+
exports.ɵp = LocaleService;
|
|
17155
|
+
exports.ɵq = InfoSignComponent;
|
|
17156
|
+
exports.ɵr = TableColumnsComponent;
|
|
17157
|
+
exports.ɵs = TablePagingComponent;
|
|
17158
|
+
exports.ɵt = AutocompleteFieldComponent;
|
|
17159
|
+
exports.ɵu = BignumberFieldComponent;
|
|
17160
|
+
exports.ɵv = BooleanFieldComponent;
|
|
17161
|
+
exports.ɵw = BooleanSwitchFieldComponent;
|
|
17162
|
+
exports.ɵx = CalendarFieldComponent;
|
|
17163
|
+
exports.ɵy = ChipsFieldComponent;
|
|
17164
|
+
exports.ɵz = CountryPhonePickerFieldComponent;
|
|
17032
17165
|
|
|
17033
17166
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
17034
17167
|
|