@seniorsistemas/angular-components 14.5.0 → 14.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/seniorsistemas-angular-components.umd.js +140 -76
- 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/dynamic-form/components/lookup/lookup.component.d.ts +3 -0
- package/components/locale/pipes/localized-bignumber-impure.pipe.d.ts +6 -0
- package/components/locale/pipes/localized-bignumber.pipe.d.ts +9 -0
- package/components/locale/pipes/localized-currency-impure.pipe.d.ts +3 -0
- package/components/locale/pipes/localized-currency.pipe.d.ts +3 -0
- package/components/locale/pipes/localized-number.pipe.d.ts +3 -0
- package/components/stats-card/stats-card.component.d.ts +2 -1
- package/components/table/table-column/table-columns.component.d.ts +1 -1
- package/esm2015/components/dynamic-form/components/lookup/lookup.component.js +13 -3
- package/esm2015/components/dynamic-form/configurations/fields/bignumber-field.js +3 -2
- package/esm2015/components/locale/locale.module.js +9 -1
- package/esm2015/components/locale/pipes/localized-bignumber-impure.pipe.js +16 -0
- package/esm2015/components/locale/pipes/localized-bignumber.pipe.js +38 -0
- package/esm2015/components/locale/pipes/localized-currency-impure.pipe.js +4 -1
- package/esm2015/components/locale/pipes/localized-currency.pipe.js +4 -1
- package/esm2015/components/locale/pipes/localized-number.pipe.js +4 -1
- package/esm2015/components/stats-card/stats-card.component.js +21 -19
- package/esm2015/components/table/table-column/table-columns.component.js +11 -20
- package/esm2015/seniorsistemas-angular-components.js +34 -32
- package/esm5/components/dynamic-form/components/lookup/lookup.component.js +13 -3
- package/esm5/components/dynamic-form/configurations/fields/bignumber-field.js +3 -2
- package/esm5/components/locale/locale.module.js +9 -1
- package/esm5/components/locale/pipes/localized-bignumber-impure.pipe.js +21 -0
- package/esm5/components/locale/pipes/localized-bignumber.pipe.js +39 -0
- package/esm5/components/locale/pipes/localized-currency-impure.pipe.js +4 -1
- package/esm5/components/locale/pipes/localized-currency.pipe.js +4 -1
- package/esm5/components/locale/pipes/localized-number.pipe.js +4 -1
- package/esm5/components/stats-card/stats-card.component.js +20 -19
- package/esm5/components/table/table-column/table-columns.component.js +11 -21
- package/esm5/seniorsistemas-angular-components.js +34 -32
- package/fesm2015/seniorsistemas-angular-components.js +100 -42
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +105 -43
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +2 -2
- package/seniorsistemas-angular-components.d.ts +33 -31
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -13,10 +13,11 @@ import { trigger, state, style, transition, animate, group, query, animateChild
|
|
|
13
13
|
import { FormsModule, ReactiveFormsModule, NG_VALUE_ACCESSOR, FormControl, FormGroup, NG_VALIDATORS, Validators, FormArray } from '@angular/forms';
|
|
14
14
|
import { HttpClient, HttpEventType, HttpClientModule } from '@angular/common/http';
|
|
15
15
|
import { Hotkey, HotkeysService, HotkeyModule } from 'angular2-hotkeys';
|
|
16
|
+
import BigNumber, { BigNumber as BigNumber$1 } from 'bignumber.js';
|
|
16
17
|
import { AutoComplete, AutoCompleteModule } from 'primeng/autocomplete';
|
|
17
18
|
import { Dialog, DialogModule } from 'primeng/dialog';
|
|
18
19
|
import { Table, TableService, RowToggler, TableModule as TableModule$1 } from 'primeng/table';
|
|
19
|
-
import { AlignmentOptions, CurrencyMaskDirective as CurrencyMaskDirective$1 } from '@seniorsistemas/ng2-currency-mask';
|
|
20
|
+
import { applyMask, AlignmentOptions, CurrencyMaskDirective as CurrencyMaskDirective$1 } from '@seniorsistemas/ng2-currency-mask';
|
|
20
21
|
import { user } from '@seniorsistemas/senior-platform-data';
|
|
21
22
|
import * as moment_ from 'moment';
|
|
22
23
|
import { CookieService } from 'ngx-cookie-service';
|
|
@@ -1169,6 +1170,54 @@ var LocaleService = /** @class */ (function () {
|
|
|
1169
1170
|
return LocaleService;
|
|
1170
1171
|
}());
|
|
1171
1172
|
|
|
1173
|
+
var LocalizedBignumberPipe = /** @class */ (function () {
|
|
1174
|
+
function LocalizedBignumberPipe(localeService) {
|
|
1175
|
+
this.localeService = localeService;
|
|
1176
|
+
}
|
|
1177
|
+
LocalizedBignumberPipe.prototype.transform = function (value, options) {
|
|
1178
|
+
return value !== undefined && value !== null ? this.applyMask(value, options) : of(value);
|
|
1179
|
+
};
|
|
1180
|
+
LocalizedBignumberPipe.prototype.applyMask = function (value, options) {
|
|
1181
|
+
return this.localeService.get().pipe(map(function (localeConfig) {
|
|
1182
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1183
|
+
var configs = {
|
|
1184
|
+
prefix: (_c = (_a = options.prefix) !== null && _a !== void 0 ? _a : (_b = localeConfig === null || localeConfig === void 0 ? void 0 : localeConfig.number) === null || _b === void 0 ? void 0 : _b.currencySymbol) !== null && _c !== void 0 ? _c : "R$",
|
|
1185
|
+
thousandsSeparator: (_f = (_d = options === null || options === void 0 ? void 0 : options.thousandsSeparator) !== null && _d !== void 0 ? _d : (_e = localeConfig === null || localeConfig === void 0 ? void 0 : localeConfig.number) === null || _e === void 0 ? void 0 : _e.thousandsSeparator) !== null && _f !== void 0 ? _f : ".",
|
|
1186
|
+
decimalSeparator: (_j = (_g = options === null || options === void 0 ? void 0 : options.decimalSeparator) !== null && _g !== void 0 ? _g : (_h = localeConfig === null || localeConfig === void 0 ? void 0 : localeConfig.number) === null || _h === void 0 ? void 0 : _h.decimalSeparator) !== null && _j !== void 0 ? _j : ",",
|
|
1187
|
+
scale: (_k = options === null || options === void 0 ? void 0 : options.scale) !== null && _k !== void 0 ? _k : 2
|
|
1188
|
+
};
|
|
1189
|
+
var isNumber = !(new BigNumber(value).isNaN());
|
|
1190
|
+
return applyMask(value, configs, isNumber);
|
|
1191
|
+
}));
|
|
1192
|
+
};
|
|
1193
|
+
LocalizedBignumberPipe.ctorParameters = function () { return [
|
|
1194
|
+
{ type: LocaleService }
|
|
1195
|
+
]; };
|
|
1196
|
+
LocalizedBignumberPipe = __decorate([
|
|
1197
|
+
Pipe({
|
|
1198
|
+
name: "localizedBignumber",
|
|
1199
|
+
})
|
|
1200
|
+
], LocalizedBignumberPipe);
|
|
1201
|
+
return LocalizedBignumberPipe;
|
|
1202
|
+
}());
|
|
1203
|
+
|
|
1204
|
+
var LocalizedBignumberImpurePipe = /** @class */ (function (_super) {
|
|
1205
|
+
__extends(LocalizedBignumberImpurePipe, _super);
|
|
1206
|
+
function LocalizedBignumberImpurePipe() {
|
|
1207
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1208
|
+
}
|
|
1209
|
+
LocalizedBignumberImpurePipe.prototype.transform = function (value, options) {
|
|
1210
|
+
return _super.prototype.transform.call(this, value, options);
|
|
1211
|
+
};
|
|
1212
|
+
LocalizedBignumberImpurePipe = __decorate([
|
|
1213
|
+
Pipe({
|
|
1214
|
+
name: "localizedBignumberImpure",
|
|
1215
|
+
pure: false,
|
|
1216
|
+
})
|
|
1217
|
+
], LocalizedBignumberImpurePipe);
|
|
1218
|
+
return LocalizedBignumberImpurePipe;
|
|
1219
|
+
}(LocalizedBignumberPipe));
|
|
1220
|
+
|
|
1172
1221
|
var LocalizedCurrencyPipeOptions = /** @class */ (function (_super) {
|
|
1173
1222
|
__extends(LocalizedCurrencyPipeOptions, _super);
|
|
1174
1223
|
function LocalizedCurrencyPipeOptions(config) {
|
|
@@ -1179,6 +1228,9 @@ var LocalizedCurrencyPipeOptions = /** @class */ (function (_super) {
|
|
|
1179
1228
|
}
|
|
1180
1229
|
return LocalizedCurrencyPipeOptions;
|
|
1181
1230
|
}(NumberLocaleOptions));
|
|
1231
|
+
/**
|
|
1232
|
+
* @deprecated Should use localizedBignumberPipe instead
|
|
1233
|
+
*/
|
|
1182
1234
|
var LocalizedCurrencyPipe = /** @class */ (function () {
|
|
1183
1235
|
function LocalizedCurrencyPipe(localeService) {
|
|
1184
1236
|
this.localeService = localeService;
|
|
@@ -1217,6 +1269,9 @@ var LocalizedCurrencyPipe = /** @class */ (function () {
|
|
|
1217
1269
|
return LocalizedCurrencyPipe;
|
|
1218
1270
|
}());
|
|
1219
1271
|
|
|
1272
|
+
/**
|
|
1273
|
+
* @deprecated Should use localizedBignumberPipe instead
|
|
1274
|
+
*/
|
|
1220
1275
|
var LocalizedCurrencyImpurePipe = /** @class */ (function (_super) {
|
|
1221
1276
|
__extends(LocalizedCurrencyImpurePipe, _super);
|
|
1222
1277
|
function LocalizedCurrencyImpurePipe() {
|
|
@@ -1269,6 +1324,9 @@ var LocalizedDateImpurePipe = /** @class */ (function (_super) {
|
|
|
1269
1324
|
return LocalizedDateImpurePipe;
|
|
1270
1325
|
}(LocalizedDatePipe));
|
|
1271
1326
|
|
|
1327
|
+
/**
|
|
1328
|
+
* @deprecated Should use localizedBignumberPipe instead
|
|
1329
|
+
*/
|
|
1272
1330
|
var LocalizedNumberPipe = /** @class */ (function () {
|
|
1273
1331
|
function LocalizedNumberPipe(localeService) {
|
|
1274
1332
|
this.localeService = localeService;
|
|
@@ -1342,6 +1400,8 @@ var LocaleModule = /** @class */ (function () {
|
|
|
1342
1400
|
LocalizedCurrencyImpurePipe,
|
|
1343
1401
|
LocalizedDateImpurePipe,
|
|
1344
1402
|
LocalizedTimeImpurePipe,
|
|
1403
|
+
LocalizedBignumberPipe,
|
|
1404
|
+
LocalizedBignumberImpurePipe
|
|
1345
1405
|
],
|
|
1346
1406
|
};
|
|
1347
1407
|
};
|
|
@@ -1362,6 +1422,8 @@ var LocaleModule = /** @class */ (function () {
|
|
|
1362
1422
|
LocalizedCurrencyImpurePipe,
|
|
1363
1423
|
LocalizedDateImpurePipe,
|
|
1364
1424
|
LocalizedTimeImpurePipe,
|
|
1425
|
+
LocalizedBignumberPipe,
|
|
1426
|
+
LocalizedBignumberImpurePipe
|
|
1365
1427
|
],
|
|
1366
1428
|
declarations: [
|
|
1367
1429
|
LocalizedCurrencyPipe,
|
|
@@ -1371,6 +1433,8 @@ var LocaleModule = /** @class */ (function () {
|
|
|
1371
1433
|
LocalizedCurrencyImpurePipe,
|
|
1372
1434
|
LocalizedDateImpurePipe,
|
|
1373
1435
|
LocalizedTimeImpurePipe,
|
|
1436
|
+
LocalizedBignumberPipe,
|
|
1437
|
+
LocalizedBignumberImpurePipe
|
|
1374
1438
|
],
|
|
1375
1439
|
})
|
|
1376
1440
|
], LocaleModule);
|
|
@@ -1380,11 +1444,12 @@ var LocaleModule = /** @class */ (function () {
|
|
|
1380
1444
|
var BignumberField = /** @class */ (function (_super) {
|
|
1381
1445
|
__extends(BignumberField, _super);
|
|
1382
1446
|
function BignumberField(config) {
|
|
1447
|
+
var _a;
|
|
1383
1448
|
var _this = _super.call(this, config) || this;
|
|
1384
1449
|
_this.numberLocaleOptions = config.numberLocaleOptions || DEFAULT_NUMBER_LOCALE_OPTIONS;
|
|
1385
1450
|
_this.browserAutocomplete = config.browserAutocomplete;
|
|
1386
1451
|
_this.precision = config.precision;
|
|
1387
|
-
_this.scale = config.scale
|
|
1452
|
+
_this.scale = (_a = config.scale) !== null && _a !== void 0 ? _a : 2;
|
|
1388
1453
|
_this.alignTo = _this.scale ? AlignmentOptions.RIGHT : AlignmentOptions.LEFT;
|
|
1389
1454
|
_this.mask = config.mask;
|
|
1390
1455
|
_this.leftAddon = config.leftAddon;
|
|
@@ -2028,7 +2093,7 @@ var LookupComponent = /** @class */ (function () {
|
|
|
2028
2093
|
return this.emptyFieldLabel;
|
|
2029
2094
|
};
|
|
2030
2095
|
LookupComponent.prototype.isNumber = function (obj, path) {
|
|
2031
|
-
return
|
|
2096
|
+
return !(new BigNumber(this.getFieldValue(obj, path)).isNaN());
|
|
2032
2097
|
};
|
|
2033
2098
|
LookupComponent.prototype.setHotkeys = function () {
|
|
2034
2099
|
var _this = this;
|
|
@@ -2070,6 +2135,15 @@ var LookupComponent = /** @class */ (function () {
|
|
|
2070
2135
|
LookupComponent.prototype.isFunction = function (value) {
|
|
2071
2136
|
return value instanceof Function;
|
|
2072
2137
|
};
|
|
2138
|
+
LookupComponent.prototype.getNumberMaskConfig = function (col) {
|
|
2139
|
+
var _a, _b, _c;
|
|
2140
|
+
return {
|
|
2141
|
+
scale: this.getScale(col.scale),
|
|
2142
|
+
decimalSeparator: (_a = col.numberLocaleOptions) === null || _a === void 0 ? void 0 : _a.decimalSeparator,
|
|
2143
|
+
thousandsSeparator: (_b = col.numberLocaleOptions) === null || _b === void 0 ? void 0 : _b.thousandsSeparator,
|
|
2144
|
+
prefix: (_c = col.numberLocaleOptions) === null || _c === void 0 ? void 0 : _c.currencySymbol
|
|
2145
|
+
};
|
|
2146
|
+
};
|
|
2073
2147
|
var LookupComponent_1;
|
|
2074
2148
|
LookupComponent.nextId = 0;
|
|
2075
2149
|
LookupComponent.ctorParameters = function () { return [
|
|
@@ -2204,7 +2278,7 @@ var LookupComponent = /** @class */ (function () {
|
|
|
2204
2278
|
LookupComponent = LookupComponent_1 = __decorate([
|
|
2205
2279
|
Component({
|
|
2206
2280
|
selector: "s-lookup",
|
|
2207
|
-
template: "<div [ngClass]=\"{ inputgroup: showSearch }\">\n <p-autoComplete\n #autocomplete\n [(ngModel)]=\"value\"\n [disabled]=\"disabled\"\n [dataKey]=\"dataKey\"\n [multiple]=\"multiple\"\n [inputId]=\"id + '-autocomplete'\"\n [forceSelection]=\"true\"\n [suggestions]=\"getLookupSuggestions()\"\n (completeMethod)=\"lazyLoadLookup($event)\"\n (onSelect)=\"onSelect.next($event)\"\n (onBlur)=\"onBlur.next($event)\"\n (onFocus)=\"onFocus.next($event)\"\n (onUnselect)=\"onUnselect.next($event)\"\n (onClear)=\"onClear.next($event)\"\n (onKeyUp)=\"onKeyUp.next($event)\"\n [field]=\"lookupDisplayField\"\n [emptyMessage]=\"lookupEmptyMessage\"\n [dropdown]=\"!showSearch\"\n [appendTo]=\"lookupAppendTo\"\n [placeholder]=\"placeholder || ' '\"\n [autoHighlight]=\"true\"\n inputStyleClass=\"mousetrap\"\n >\n </p-autoComplete>\n\n <button\n *ngIf=\"showSearch\"\n pButton\n type=\"button\"\n icon=\"fa fa-search\"\n class=\"button-addon\"\n [disabled]=\"disabled\"\n (click)=\"showDialog()\"\n ></button>\n</div>\n\n<p-dialog\n appendTo=\"body\"\n styleClass=\"s-lookup-modal\"\n [header]=\"searchTitle\"\n [(visible)]=\"dialogVisible\"\n [modal]=\"true\"\n (onHide)=\"hideDialog()\"\n [blockScroll]=\"true\"\n [focusOnShow]=\"true\"\n [draggable]=\"false\"\n [resizable]=\"false\"\n #dialog\n>\n <div *ngIf=\"dialogVisible\" class=\"s-lookup-modal-container\">\n <div *ngIf=\"searchFields && searchFields.length\" class=\"filter\"\n [@collapseContent]=\"collapsed ? {value: 'hidden', params: {transitionParams: transitionOptions }} : {value: 'visible', params: {transitionParams: transitionOptions}}\"\n (@collapseContent.done)=\"onToggleDone()\">\n <form [formGroup]=\"formGroupDialog\" novalidate autocomplete=\"off\">\n <div *ngIf=\"!collapsed\"\n [@childCollapseContent]=\"collapsed ? {value: ':leave', params: {transitionParams: transitionOptions }} : {value: ':enter', params: {transitionParams: transitionOptions}}\"\n class=\"form-content\">\n <div class=\"filter-title sds-section-title\">{{ filterTitle }}</div>\n <div class=\"form-fields\">\n <s-dynamic-form [fields]=\"searchFields\" [form]=\"formGroupDialog\"></s-dynamic-form>\n </div>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <s-button\n [id]=\"id + '-filter-button'\"\n type=\"submit\"\n [label]=\"filterLabel\"\n (onClick)=\"search()\"\n pTooltip=\"(ALT + SHIFT + F)\"\n showDelay=\"500\"\n ></s-button>\n <s-button\n [id]=\"id + '-clear-button'\"\n type=\"button\"\n [label]=\"clearLabel\"\n (onClick)=\"clear()\"\n priority=\"link\"\n pTooltip=\"(ALT + SHIFT + L)\"\n showDelay=\"500\"\n ></s-button>\n </div>\n </div>\n </div>\n </form> \n </div>\n <div *ngIf=\"searchFields && searchFields.length\" class=\"filter-toggle\">\n <div class=\"filter-toggle--start-border-mask\"></div>\n <button [id]=\"id + '-filter-toggle-button'\" type=\"button\" (click)=\"filterToggle()\">\n <span class=\"fa\" [ngClass]=\"{'fa-chevron-left': !collapsed, 'fa-chevron-right': collapsed}\"\n aria-hidden=\"true\"></span>\n </button>\n <div class=\"filter-toggle--end-border-mask\"></div>\n </div>\n <div class=\"content\" [ngClass]=\"{'empty-content': !searchTotalRecords && !loading}\">\n <s-empty-state\n [id]=\"id + '-empty-state'\"\n *ngIf=\"!searchTotalRecords && !loading\"\n [title]=\"searchEmptyTitle\"\n [description]=\"searchEmptyDescription\"\n iconClass=\"fa fa-search\"\n ></s-empty-state>\n\n <p-table\n [dataKey]=\"dataKey\"\n [value]=\"getGridData()\"\n [columns]=\"searchGridFields\"\n [lazy]=\"true\"\n [scrollable]=\"true\"\n [paginator]=\"true\"\n sortMode=\"multiple\"\n [totalRecords]=\"searchTotalRecords\"\n [rows]=\"10\"\n [selection]=\"selected\"\n (onLazyLoad)=\"lazyLoadGrid($event)\"\n *sLoadingState=\"loading\"\n [multiSortMeta]=\"multiSortMeta\"\n [attr.data-hidden]=\"!searchTotalRecords && !loading\"\n [selectionMode]=\"multiple ? 'multiple' : 'single'\"\n (selectionChange)=\"onSelectionChange($event)\"\n >\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngIf=\"multiple\" style=\"width: 50px\" />\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\" />\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngIf=\"multiple\" style=\"width: 50px\">\n <s-table-header-checkbox [useAllObject]=\"lookupRowProps ? false : true\" [rowProps]=\"lookupRowProps\"></s-table-header-checkbox>\n </th>\n <th\n [style.width]=\"col.width\"\n *ngFor=\"let col of columns\"\n [pSortableColumn]=\"col.name\"\n [pSortableColumnDisabled]=\"sortableColumnsDisabled?.includes(col.name)\"\n >\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.label }}</span>\n <p-sortIcon [field]=\"col.name\" *ngIf=\"!sortableColumnsDisabled?.includes(col.name)\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-rowIndex=\"rowIndex\">\n <tr sNavigation [pSelectableRow]=\"rowData\" [pSelectableRowIndex]=\"rowIndex\">\n <td *ngIf=\"multiple\" style=\"width: 50px\" tabindex=\"0\">\n <p-tableCheckbox [value]=\"rowData\" [pSelectableRow]=\"rowData\"></p-tableCheckbox>\n </td>\n <td\n [style.width]=\"col['width']\"\n *ngFor=\"let col of searchGridFields\"\n [ngSwitch]=\"col.type\"\n tabindex=\"0\"\n >\n <ng-container *ngSwitchCase=\"'Boolean'\">\n <ng-container *ngIf=\"isBooleanValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getBooleanLabel(rowData, col.name, col.optionsLabel) }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Date'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate: \"L\" | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'DateTime'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Time'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedTime | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Double'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedNumber: getScale(col.scale) | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Money'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedCurrency | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Enum'\">\n <ng-container\n *ngIf=\"getLabelForValue(getFieldValue(rowData, col.name), col.options); else emptyTemplate\"\n >\n <span> {{ getLabelForValue(getFieldValue(rowData, col.name), col.options) }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <ng-container *ngIf=\"col.mask && col.mask()\">\n <ng-container *ngIf=\"(isNumber(rowData, col.name) || getFieldValue(rowData, col.name))\">\n <span>{{ getFieldValue(rowData, col.name) | sMaskFormatter: col.mask() }}</span>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!(col.mask && col.mask())\">\n <ng-container *ngIf=\"(isNumber(rowData, col.name) || getFieldValue(rowData, col.name)); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) }}</span>\n </ng-container>\n </ng-container>\n </ng-container>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [attr.data-hidden]=\"loading\">\n {{\n searchTotalRecordsLabel ||\n searchTotalRecords?.toString() + (searchTotalRecords === 1 ? recordLabel : recordsLabel)\n }}\n </span>\n </ng-template>\n </p-table>\n </div>\n </div>\n\n <p-footer>\n <s-button\n [id]=\"id + '-select-button'\"\n type=\"button\"\n [label]=\"selectLabel\"\n (onClick)=\"select()\"\n pTooltip=\"(ALT + SHIFT + S)\"\n showDelay=\"500\"\n [disabled]=\"!selected?.length\"\n ></s-button>\n <s-button\n [id]=\"id + '-cancel-button'\"\n type=\"button\"\n priority=\"link\"\n [label]=\"cancelLabel\"\n (onClick)=\"hideDialog()\"\n pTooltip=\"(ALT + SHIFT + C)\"\n showDelay=\"500\"\n ></s-button>\n </p-footer>\n</p-dialog>\n\n<ng-template #emptyTemplate>\n <span [ngClass]=\"'sds-empty-value'\">{{ emptyFieldLabel }}</span>\n</ng-template>\n",
|
|
2281
|
+
template: "<div [ngClass]=\"{ inputgroup: showSearch }\">\n <p-autoComplete\n #autocomplete\n [(ngModel)]=\"value\"\n [disabled]=\"disabled\"\n [dataKey]=\"dataKey\"\n [multiple]=\"multiple\"\n [inputId]=\"id + '-autocomplete'\"\n [forceSelection]=\"true\"\n [suggestions]=\"getLookupSuggestions()\"\n (completeMethod)=\"lazyLoadLookup($event)\"\n (onSelect)=\"onSelect.next($event)\"\n (onBlur)=\"onBlur.next($event)\"\n (onFocus)=\"onFocus.next($event)\"\n (onUnselect)=\"onUnselect.next($event)\"\n (onClear)=\"onClear.next($event)\"\n (onKeyUp)=\"onKeyUp.next($event)\"\n [field]=\"lookupDisplayField\"\n [emptyMessage]=\"lookupEmptyMessage\"\n [dropdown]=\"!showSearch\"\n [appendTo]=\"lookupAppendTo\"\n [placeholder]=\"placeholder || ' '\"\n [autoHighlight]=\"true\"\n inputStyleClass=\"mousetrap\"\n >\n </p-autoComplete>\n\n <button\n *ngIf=\"showSearch\"\n pButton\n type=\"button\"\n icon=\"fa fa-search\"\n class=\"button-addon\"\n [disabled]=\"disabled\"\n (click)=\"showDialog()\"\n ></button>\n</div>\n\n<p-dialog\n appendTo=\"body\"\n styleClass=\"s-lookup-modal\"\n [header]=\"searchTitle\"\n [(visible)]=\"dialogVisible\"\n [modal]=\"true\"\n (onHide)=\"hideDialog()\"\n [blockScroll]=\"true\"\n [focusOnShow]=\"true\"\n [draggable]=\"false\"\n [resizable]=\"false\"\n #dialog\n>\n <div *ngIf=\"dialogVisible\" class=\"s-lookup-modal-container\">\n <div *ngIf=\"searchFields && searchFields.length\" class=\"filter\"\n [@collapseContent]=\"collapsed ? {value: 'hidden', params: {transitionParams: transitionOptions }} : {value: 'visible', params: {transitionParams: transitionOptions}}\"\n (@collapseContent.done)=\"onToggleDone()\">\n <form [formGroup]=\"formGroupDialog\" novalidate autocomplete=\"off\">\n <div *ngIf=\"!collapsed\"\n [@childCollapseContent]=\"collapsed ? {value: ':leave', params: {transitionParams: transitionOptions }} : {value: ':enter', params: {transitionParams: transitionOptions}}\"\n class=\"form-content\">\n <div class=\"filter-title sds-section-title\">{{ filterTitle }}</div>\n <div class=\"form-fields\">\n <s-dynamic-form [fields]=\"searchFields\" [form]=\"formGroupDialog\"></s-dynamic-form>\n </div>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <s-button\n [id]=\"id + '-filter-button'\"\n type=\"submit\"\n [label]=\"filterLabel\"\n (onClick)=\"search()\"\n pTooltip=\"(ALT + SHIFT + F)\"\n showDelay=\"500\"\n ></s-button>\n <s-button\n [id]=\"id + '-clear-button'\"\n type=\"button\"\n [label]=\"clearLabel\"\n (onClick)=\"clear()\"\n priority=\"link\"\n pTooltip=\"(ALT + SHIFT + L)\"\n showDelay=\"500\"\n ></s-button>\n </div>\n </div>\n </div>\n </form> \n </div>\n <div *ngIf=\"searchFields && searchFields.length\" class=\"filter-toggle\">\n <div class=\"filter-toggle--start-border-mask\"></div>\n <button [id]=\"id + '-filter-toggle-button'\" type=\"button\" (click)=\"filterToggle()\">\n <span class=\"fa\" [ngClass]=\"{'fa-chevron-left': !collapsed, 'fa-chevron-right': collapsed}\"\n aria-hidden=\"true\"></span>\n </button>\n <div class=\"filter-toggle--end-border-mask\"></div>\n </div>\n <div class=\"content\" [ngClass]=\"{'empty-content': !searchTotalRecords && !loading}\">\n <s-empty-state\n [id]=\"id + '-empty-state'\"\n *ngIf=\"!searchTotalRecords && !loading\"\n [title]=\"searchEmptyTitle\"\n [description]=\"searchEmptyDescription\"\n iconClass=\"fa fa-search\"\n ></s-empty-state>\n\n <p-table\n [dataKey]=\"dataKey\"\n [value]=\"getGridData()\"\n [columns]=\"searchGridFields\"\n [lazy]=\"true\"\n [scrollable]=\"true\"\n [paginator]=\"true\"\n sortMode=\"multiple\"\n [totalRecords]=\"searchTotalRecords\"\n [rows]=\"10\"\n [selection]=\"selected\"\n (onLazyLoad)=\"lazyLoadGrid($event)\"\n *sLoadingState=\"loading\"\n [multiSortMeta]=\"multiSortMeta\"\n [attr.data-hidden]=\"!searchTotalRecords && !loading\"\n [selectionMode]=\"multiple ? 'multiple' : 'single'\"\n (selectionChange)=\"onSelectionChange($event)\"\n >\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngIf=\"multiple\" style=\"width: 50px\" />\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\" />\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngIf=\"multiple\" style=\"width: 50px\">\n <s-table-header-checkbox [useAllObject]=\"lookupRowProps ? false : true\" [rowProps]=\"lookupRowProps\"></s-table-header-checkbox>\n </th>\n <th\n [style.width]=\"col.width\"\n *ngFor=\"let col of columns\"\n [pSortableColumn]=\"col.name\"\n [pSortableColumnDisabled]=\"sortableColumnsDisabled?.includes(col.name)\"\n >\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.label }}</span>\n <p-sortIcon [field]=\"col.name\" *ngIf=\"!sortableColumnsDisabled?.includes(col.name)\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-rowIndex=\"rowIndex\">\n <tr sNavigation [pSelectableRow]=\"rowData\" [pSelectableRowIndex]=\"rowIndex\">\n <td *ngIf=\"multiple\" style=\"width: 50px\" tabindex=\"0\">\n <p-tableCheckbox [value]=\"rowData\" [pSelectableRow]=\"rowData\"></p-tableCheckbox>\n </td>\n <td\n [style.width]=\"col['width']\"\n *ngFor=\"let col of searchGridFields\"\n [ngSwitch]=\"col.type\"\n tabindex=\"0\"\n >\n <ng-container *ngSwitchCase=\"'Boolean'\">\n <ng-container *ngIf=\"isBooleanValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getBooleanLabel(rowData, col.name, col.optionsLabel) }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Date'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate: \"L\" | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'DateTime'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Time'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedTime | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Double'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedNumber: getScale(col.scale) | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Money'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedCurrency | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Number'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getNumberMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'Enum'\">\n <ng-container\n *ngIf=\"getLabelForValue(getFieldValue(rowData, col.name), col.options); else emptyTemplate\"\n >\n <span> {{ getLabelForValue(getFieldValue(rowData, col.name), col.options) }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <ng-container *ngIf=\"col.mask && col.mask()\">\n <ng-container *ngIf=\"(isNumber(rowData, col.name) || getFieldValue(rowData, col.name))\">\n <span>{{ getFieldValue(rowData, col.name) | sMaskFormatter: col.mask() }}</span>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!(col.mask && col.mask())\">\n <ng-container *ngIf=\"(isNumber(rowData, col.name) || getFieldValue(rowData, col.name)); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) }}</span>\n </ng-container>\n </ng-container>\n </ng-container>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [attr.data-hidden]=\"loading\">\n {{\n searchTotalRecordsLabel ||\n searchTotalRecords?.toString() + (searchTotalRecords === 1 ? recordLabel : recordsLabel)\n }}\n </span>\n </ng-template>\n </p-table>\n </div>\n </div>\n\n <p-footer>\n <s-button\n [id]=\"id + '-select-button'\"\n type=\"button\"\n [label]=\"selectLabel\"\n (onClick)=\"select()\"\n pTooltip=\"(ALT + SHIFT + S)\"\n showDelay=\"500\"\n [disabled]=\"!selected?.length\"\n ></s-button>\n <s-button\n [id]=\"id + '-cancel-button'\"\n type=\"button\"\n priority=\"link\"\n [label]=\"cancelLabel\"\n (onClick)=\"hideDialog()\"\n pTooltip=\"(ALT + SHIFT + C)\"\n showDelay=\"500\"\n ></s-button>\n </p-footer>\n</p-dialog>\n\n<ng-template #emptyTemplate>\n <span [ngClass]=\"'sds-empty-value'\">{{ emptyFieldLabel }}</span>\n</ng-template>\n",
|
|
2208
2282
|
providers: [
|
|
2209
2283
|
{
|
|
2210
2284
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -3635,7 +3709,7 @@ var TableColumnsComponent = /** @class */ (function () {
|
|
|
3635
3709
|
return uninformed;
|
|
3636
3710
|
}
|
|
3637
3711
|
else {
|
|
3638
|
-
var numberConfigs = __assign(__assign({}, locale.number), { scale: column.scale ? _this.getColumnScale(column.scale) : locale.number.scale });
|
|
3712
|
+
var numberConfigs = __assign(__assign({}, locale.number), { scale: column.scale ? _this.getColumnScale(column.scale) : locale.number.scale, prefix: locale.number.currencySymbol + " " });
|
|
3639
3713
|
switch (column.type) {
|
|
3640
3714
|
case EnumColumnFieldType.ENUM:
|
|
3641
3715
|
if (column.badgeConfigs && column.badgeConfigs.length) {
|
|
@@ -3643,7 +3717,7 @@ var TableColumnsComponent = /** @class */ (function () {
|
|
|
3643
3717
|
}
|
|
3644
3718
|
return _this.translate.instant(column.enumPrefix + attributeValue.toString().toLowerCase());
|
|
3645
3719
|
case EnumColumnFieldType.CURRENCY:
|
|
3646
|
-
return
|
|
3720
|
+
return applyMask(attributeValue, numberConfigs, _this.isNumber(attributeValue));
|
|
3647
3721
|
case EnumColumnFieldType.DATE:
|
|
3648
3722
|
var dateFormat = column.dateFormat ? column.dateFormat : locale.calendar.dateFormat;
|
|
3649
3723
|
return moment_(attributeValue).format(dateFormat);
|
|
@@ -3654,7 +3728,8 @@ var TableColumnsComponent = /** @class */ (function () {
|
|
|
3654
3728
|
case EnumColumnFieldType.STRING:
|
|
3655
3729
|
return attributeValue;
|
|
3656
3730
|
case EnumColumnFieldType.NUMBER:
|
|
3657
|
-
|
|
3731
|
+
numberConfigs.prefix = "";
|
|
3732
|
+
return applyMask(attributeValue, numberConfigs, _this.isNumber(attributeValue));
|
|
3658
3733
|
case EnumColumnFieldType.TOKENS:
|
|
3659
3734
|
return _this.getTokens(attributeValue);
|
|
3660
3735
|
}
|
|
@@ -3709,21 +3784,8 @@ var TableColumnsComponent = /** @class */ (function () {
|
|
|
3709
3784
|
return tooltip;
|
|
3710
3785
|
}
|
|
3711
3786
|
};
|
|
3712
|
-
TableColumnsComponent.prototype.
|
|
3713
|
-
|
|
3714
|
-
var scale = options.scale, thousandsSeparator = options.thousandsSeparator, decimalSeparator = options.decimalSeparator;
|
|
3715
|
-
var currencySymbol = useCurrencySymbol ? options.currencySymbol : "";
|
|
3716
|
-
var rawValue = Number(value ? value : 0).toFixed(scale);
|
|
3717
|
-
var onlyNumbers = rawValue.replace(/[^0-9]/g, "");
|
|
3718
|
-
var integerPart = onlyNumbers
|
|
3719
|
-
.slice(0, onlyNumbers.length - scale)
|
|
3720
|
-
.replace(/^0*/g, "")
|
|
3721
|
-
.replace(/\B(?=(\d{3})+(?!\d))/g, thousandsSeparator) || "0";
|
|
3722
|
-
var decimalPart = onlyNumbers.slice(onlyNumbers.length - scale);
|
|
3723
|
-
var newValue = scale ? integerPart + decimalSeparator + decimalPart : integerPart;
|
|
3724
|
-
var isZero = !Number(onlyNumbers);
|
|
3725
|
-
var operator = rawValue.includes("-") && !isZero ? "-" : "";
|
|
3726
|
-
return "" + operator + currencySymbol + " " + newValue;
|
|
3787
|
+
TableColumnsComponent.prototype.isNumber = function (value) {
|
|
3788
|
+
return !(new BigNumber(value).isNaN());
|
|
3727
3789
|
};
|
|
3728
3790
|
TableColumnsComponent.prototype.getTokens = function (values) {
|
|
3729
3791
|
if (!this.isArray(values))
|
|
@@ -3787,9 +3849,9 @@ var TableColumnsComponent = /** @class */ (function () {
|
|
|
3787
3849
|
], TableColumnsComponent.prototype, "locale", void 0);
|
|
3788
3850
|
TableColumnsComponent = __decorate([
|
|
3789
3851
|
Component({
|
|
3790
|
-
template: "\n<ng-template #columnsTemplate>\n <td *ngFor=\"let column of formattedColumns\" [ngStyle]=\"column.style\" (click)=\"column.onColumnClick ? column.onColumnClick(rowValue) : null\">\n\n <div *ngIf=\"column.type !== 'TOKENS' || !isArray(column.columnValue); else tokensTemplate\">\n\n <span *ngIf=\"column.type !== 'LINK'\" [pTooltip]=\"column.tooltip\" [escape]=\"false\" [ngClass]=\"column.badgeClass\">\n <ng-container *ngTemplateOutlet=\"columnValueTemplate\"></ng-container> \n </span>\n\n <a *ngIf=\"column.type === 'LINK'\" [pTooltip]=\"column.tooltip\" [escape]=\"false\" (click)=\"column.onLinkClick ? column.onLinkClick(rowValue) : null\">\n <ng-container *ngTemplateOutlet=\"columnValueTemplate\"></ng-container> \n </a>\n\n <ng-template #columnValueTemplate>\n <span *ngFor=\"let value of getSplittedString(column)\">\n <span [ngClass]=\"{ 'sds-
|
|
3852
|
+
template: "\n<ng-template #columnsTemplate>\n <td *ngFor=\"let column of formattedColumns\" [ngStyle]=\"column.style\" (click)=\"column.onColumnClick ? column.onColumnClick(rowValue) : null\">\n\n <div *ngIf=\"column.type !== 'TOKENS' || !isArray(column.columnValue); else tokensTemplate\">\n\n <span *ngIf=\"column.type !== 'LINK'\" [pTooltip]=\"column.tooltip\" [escape]=\"false\" [ngClass]=\"column.badgeClass\">\n <ng-container *ngTemplateOutlet=\"columnValueTemplate\"></ng-container> \n </span>\n\n <a *ngIf=\"column.type === 'LINK'\" [pTooltip]=\"column.tooltip\" [escape]=\"false\" (click)=\"column.onLinkClick ? column.onLinkClick(rowValue) : null\">\n <ng-container *ngTemplateOutlet=\"columnValueTemplate\"></ng-container> \n </a>\n\n <ng-template #columnValueTemplate>\n <span *ngFor=\"let value of getSplittedString(column)\">\n <span [ngClass]=\"{ 'sds-empty-value': value.isUninformed }\">{{value.value}}</span>\n <span>{{value.separator}}</span>\n </span>\n </ng-template>\n\n </div>\n\n <ng-template #tokensTemplate>\n <s-token-list\n [tokens]=\"column.columnValue\"\n [hidePointerEvents]=\"true\"\n >\n </s-token-list>\n </ng-template>\n\n </td>\n</ng-template>\n",
|
|
3791
3853
|
selector: "s-table-columns",
|
|
3792
|
-
styles: ["
|
|
3854
|
+
styles: [":host{display:none}"]
|
|
3793
3855
|
}),
|
|
3794
3856
|
__param(2, Inject("hostProjectConfigs"))
|
|
3795
3857
|
], TableColumnsComponent);
|
|
@@ -6284,43 +6346,43 @@ var StatsCardComponent = /** @class */ (function () {
|
|
|
6284
6346
|
});
|
|
6285
6347
|
StatsCardComponent.prototype.updateDisplayValue = function () {
|
|
6286
6348
|
var _this = this;
|
|
6287
|
-
var previousRawValue =
|
|
6288
|
-
var rawValue =
|
|
6289
|
-
var
|
|
6290
|
-
var
|
|
6349
|
+
var previousRawValue = new BigNumber$1(this.previousValue.replace(/\D/g, ""));
|
|
6350
|
+
var rawValue = new BigNumber$1(this.value.replace(/\D/g, ""));
|
|
6351
|
+
var eachAnimationDuration = new BigNumber$1(this.ANIMATION_DURATION_MS).dividedBy(new BigNumber$1(this.STEP_DURATION_MS));
|
|
6352
|
+
var incrementValue = rawValue.minus(previousRawValue).absoluteValue().dividedBy(eachAnimationDuration).dp(0, 7);
|
|
6353
|
+
var incremental = previousRawValue.isLessThan(rawValue);
|
|
6291
6354
|
clearInterval(this.intervalId);
|
|
6292
6355
|
this.displayValue = this.replaceNumericPositions(this.value);
|
|
6293
6356
|
var counter = previousRawValue;
|
|
6294
6357
|
this.intervalId = setInterval(function () {
|
|
6295
|
-
if (incremental && counter
|
|
6296
|
-
_this.displayValue = _this.replaceNumericPositions(_this.displayValue,
|
|
6297
|
-
counter
|
|
6358
|
+
if (incremental && counter.isLessThan(rawValue)) {
|
|
6359
|
+
_this.displayValue = _this.replaceNumericPositions(_this.displayValue, counter);
|
|
6360
|
+
counter = counter.plus(incrementValue);
|
|
6298
6361
|
}
|
|
6299
|
-
else if (incremental) {
|
|
6300
|
-
_this.displayValue = _this.
|
|
6301
|
-
|
|
6362
|
+
else if (!incremental && counter.isGreaterThan(rawValue)) {
|
|
6363
|
+
_this.displayValue = _this.replaceNumericPositions(_this.displayValue, counter);
|
|
6364
|
+
counter = counter.minus(incrementValue);
|
|
6302
6365
|
}
|
|
6303
|
-
else
|
|
6304
|
-
_this.displayValue = _this.replaceNumericPositions(_this.displayValue, String(counter));
|
|
6305
|
-
counter -= incrementValue;
|
|
6306
|
-
}
|
|
6307
|
-
else if (!incremental) {
|
|
6366
|
+
else {
|
|
6308
6367
|
_this.displayValue = _this.value;
|
|
6309
6368
|
clearInterval(_this.intervalId);
|
|
6310
6369
|
}
|
|
6311
6370
|
}, this.STEP_DURATION_MS);
|
|
6312
6371
|
};
|
|
6313
6372
|
StatsCardComponent.prototype.replaceNumericPositions = function (value, newValue) {
|
|
6314
|
-
if (newValue === void 0) { newValue = ""; }
|
|
6315
6373
|
var rawValue = value.replace(/[^\d]/g, "");
|
|
6316
|
-
var newValueString = newValue.
|
|
6374
|
+
var newValueString = newValue ? newValue.toString() : "";
|
|
6375
|
+
var formattedNewValue = newValueString
|
|
6376
|
+
.toString()
|
|
6377
|
+
.replace(/\D/g, "")
|
|
6378
|
+
.padStart(rawValue.length, "0");
|
|
6317
6379
|
var newValueIndex = 0;
|
|
6318
6380
|
return value
|
|
6319
6381
|
.split("")
|
|
6320
6382
|
.map(function (char) {
|
|
6321
6383
|
var number = Number(char);
|
|
6322
6384
|
if (number || char === "0")
|
|
6323
|
-
return
|
|
6385
|
+
return formattedNewValue[newValueIndex++];
|
|
6324
6386
|
return char;
|
|
6325
6387
|
})
|
|
6326
6388
|
.join("");
|
|
@@ -6904,5 +6966,5 @@ var AngularComponentsModule = /** @class */ (function () {
|
|
|
6904
6966
|
* Generated bundle index. Do not edit.
|
|
6905
6967
|
*/
|
|
6906
6968
|
|
|
6907
|
-
export { AngularComponentsModule, AutocompleteField, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, ChipsField, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FormField, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, ProductHeaderComponent, ProductHeaderModule, RadioButtonField, RationButtonOption, RowTogllerDirective, Section, SelectField, SelectOption, SidebarComponent, SidebarModule, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TextAreaField, TextField, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TileComponent, TileModule, TokenListComponent, TokenListModule, ValidateErrors, LocalizedCurrencyImpurePipe as ɵa,
|
|
6969
|
+
export { AngularComponentsModule, AutocompleteField, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, ChipsField, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FormField, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, ProductHeaderComponent, ProductHeaderModule, RadioButtonField, RationButtonOption, RowTogllerDirective, Section, SelectField, SelectOption, SidebarComponent, SidebarModule, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TextAreaField, TextField, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TileComponent, TileModule, TokenListComponent, TokenListModule, ValidateErrors, LocalizedCurrencyImpurePipe as ɵa, LocalizedBignumberPipe as ɵb, DecimalField as ɵba, StructureModule as ɵbb, HeaderComponent as ɵbc, FooterComponent as ɵbd, InfoSignComponent as ɵbe, NumberLocaleOptions as ɵbf, ThumbnailService as ɵbg, InfiniteScrollModule as ɵbh, InfiniteScrollDirective as ɵbi, LocalizedBignumberImpurePipe as ɵc, TokenListModule as ɵd, TableColumnsComponent as ɵe, InfoSignModule as ɵf, AutocompleteFieldComponent as ɵg, BooleanFieldComponent as ɵh, CalendarFieldComponent as ɵi, ChipsFieldComponent as ɵj, CurrencyFieldComponent as ɵk, BaseFieldComponent as ɵl, DynamicFieldComponent as ɵm, DynamicFormDirective as ɵn, FieldsetComponent as ɵo, FileUploadComponent$1 as ɵp, LookupFieldComponent as ɵq, NumberFieldComponent as ɵr, BignumberFieldComponent as ɵs, RadioButtonComponent as ɵt, RowComponent as ɵu, SectionComponent as ɵv, SelectFieldComponent as ɵw, TextAreaFieldComponent as ɵx, TextFieldComponent as ɵy };
|
|
6908
6970
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|