@seniorsistemas/angular-components 17.4.3 → 17.5.0
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 +238 -146
- 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/card/card.component.d.ts +19 -0
- package/components/card/card.module.d.ts +2 -0
- package/components/card/index.d.ts +3 -0
- package/components/card/models/card-template-types.d.ts +5 -0
- package/components/dynamic-form/components/lookup/lookup.component.d.ts +9 -3
- package/components/dynamic-form/configurations/fields/lookup-field.d.ts +12 -0
- package/components/index.d.ts +1 -0
- package/esm2015/components/card/card.component.js +58 -0
- package/esm2015/components/card/card.module.js +16 -0
- package/esm2015/components/card/index.js +4 -0
- package/esm2015/components/card/models/card-template-types.js +7 -0
- package/esm2015/components/dynamic-form/components/fields/lookup/lookup-field.component.js +2 -2
- package/esm2015/components/dynamic-form/components/lookup/lookup.component.js +41 -33
- package/esm2015/components/dynamic-form/configurations/fields/lookup-field.js +4 -1
- package/esm2015/components/index.js +2 -1
- package/esm2015/locale/fallback.js +3 -1
- package/esm2015/seniorsistemas-angular-components.js +53 -53
- package/esm5/components/card/card.component.js +60 -0
- package/esm5/components/card/card.module.js +19 -0
- package/esm5/components/card/index.js +4 -0
- package/esm5/components/card/models/card-template-types.js +7 -0
- package/esm5/components/dynamic-form/components/fields/lookup/lookup-field.component.js +2 -2
- package/esm5/components/dynamic-form/components/lookup/lookup.component.js +42 -32
- package/esm5/components/dynamic-form/configurations/fields/lookup-field.js +4 -1
- package/esm5/components/index.js +2 -1
- package/esm5/locale/fallback.js +3 -1
- package/esm5/seniorsistemas-angular-components.js +53 -53
- package/fesm2015/seniorsistemas-angular-components.js +173 -90
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +186 -96
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.d.ts +52 -52
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -1972,6 +1972,112 @@
|
|
|
1972
1972
|
return CalendarMaskModule;
|
|
1973
1973
|
}());
|
|
1974
1974
|
|
|
1975
|
+
var TemplateDirective = /** @class */ (function () {
|
|
1976
|
+
function TemplateDirective(template) {
|
|
1977
|
+
this.template = template;
|
|
1978
|
+
}
|
|
1979
|
+
TemplateDirective.ctorParameters = function () { return [
|
|
1980
|
+
{ type: core.TemplateRef }
|
|
1981
|
+
]; };
|
|
1982
|
+
__decorate([
|
|
1983
|
+
core.Input("sTemplate")
|
|
1984
|
+
], TemplateDirective.prototype, "type", void 0);
|
|
1985
|
+
TemplateDirective = __decorate([
|
|
1986
|
+
core.Directive({
|
|
1987
|
+
selector: "[sTemplate]",
|
|
1988
|
+
})
|
|
1989
|
+
], TemplateDirective);
|
|
1990
|
+
return TemplateDirective;
|
|
1991
|
+
}());
|
|
1992
|
+
|
|
1993
|
+
|
|
1994
|
+
(function (CardTemplateTypes) {
|
|
1995
|
+
CardTemplateTypes["Header"] = "header";
|
|
1996
|
+
CardTemplateTypes["Body"] = "body";
|
|
1997
|
+
CardTemplateTypes["Footer"] = "footer";
|
|
1998
|
+
})(exports.CardTemplateTypes || (exports.CardTemplateTypes = {}));
|
|
1999
|
+
|
|
2000
|
+
var CardComponent = /** @class */ (function () {
|
|
2001
|
+
function CardComponent() {
|
|
2002
|
+
this.fullWidth = false;
|
|
2003
|
+
this.showBanner = false;
|
|
2004
|
+
this.hasCustomTemplates = false;
|
|
2005
|
+
}
|
|
2006
|
+
CardComponent.prototype.ngAfterContentInit = function () {
|
|
2007
|
+
this._getTemplates();
|
|
2008
|
+
this._testLoadImage();
|
|
2009
|
+
};
|
|
2010
|
+
CardComponent.prototype._getHeaderTemplate = function () {
|
|
2011
|
+
return this._getCustomTemplate(exports.CardTemplateTypes.Header);
|
|
2012
|
+
};
|
|
2013
|
+
CardComponent.prototype._getBodyTemplate = function () {
|
|
2014
|
+
return this._getCustomTemplate(exports.CardTemplateTypes.Body);
|
|
2015
|
+
};
|
|
2016
|
+
CardComponent.prototype._getFooterTemplate = function () {
|
|
2017
|
+
return this._getCustomTemplate(exports.CardTemplateTypes.Footer);
|
|
2018
|
+
};
|
|
2019
|
+
CardComponent.prototype._getCustomTemplate = function (type) {
|
|
2020
|
+
var _a;
|
|
2021
|
+
return (_a = this.templates.find(function (template) { return template.type === type; })) === null || _a === void 0 ? void 0 : _a.template;
|
|
2022
|
+
};
|
|
2023
|
+
CardComponent.prototype._getTemplates = function () {
|
|
2024
|
+
this.headerTemplate = this._getHeaderTemplate();
|
|
2025
|
+
this.bodyTemplate = this._getBodyTemplate();
|
|
2026
|
+
this.footerTemplate = this._getFooterTemplate();
|
|
2027
|
+
this.hasCustomTemplates = !!(this.headerTemplate || this.bodyTemplate || this.footerTemplate);
|
|
2028
|
+
};
|
|
2029
|
+
CardComponent.prototype._testLoadImage = function () {
|
|
2030
|
+
var _this = this;
|
|
2031
|
+
var img = new Image();
|
|
2032
|
+
img.src = this.bannerImage;
|
|
2033
|
+
img.onload = function () { return (_this.showBanner = true); };
|
|
2034
|
+
img.onerror = function () { return (_this.showBanner = false); };
|
|
2035
|
+
};
|
|
2036
|
+
__decorate([
|
|
2037
|
+
core.Input()
|
|
2038
|
+
], CardComponent.prototype, "bannerImage", void 0);
|
|
2039
|
+
__decorate([
|
|
2040
|
+
core.Input()
|
|
2041
|
+
], CardComponent.prototype, "fullWidth", void 0);
|
|
2042
|
+
__decorate([
|
|
2043
|
+
core.ContentChildren(TemplateDirective)
|
|
2044
|
+
], CardComponent.prototype, "templates", void 0);
|
|
2045
|
+
CardComponent = __decorate([
|
|
2046
|
+
core.Component({
|
|
2047
|
+
selector: "s-card",
|
|
2048
|
+
template: "<div class=\"card\" [ngClass]=\"{ 'card--full-width': fullWidth }\">\n <div\n *ngIf=\"showBanner\"\n class=\"banner\"\n [ngStyle]=\"{'background-image': 'url(' + bannerImage + ')'}\">\n </div>\n\n <ng-container *ngIf=\"hasCustomTemplates; then customTemplates; else contentTemplate\"> </ng-container>\n\n <ng-template #customTemplates>\n <div *ngIf=\"headerTemplate\" class=\"header\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </div>\n <div *ngIf=\"bodyTemplate\" class=\"body\">\n <ng-container *ngTemplateOutlet=\"bodyTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </ng-template>\n\n <ng-template #contentTemplate>\n <div class=\"body\">\n <ng-content></ng-content>\n </div>\n </ng-template>\n</div>\n",
|
|
2049
|
+
styles: [".card{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;background-color:#fff;border-radius:4px;box-shadow:0 1px 5px 0 #00000040;overflow:hidden}.card--full-width{width:100%}.card .banner{background-repeat:no-repeat;background-size:cover;height:150px;width:100%}.card .header{padding:16px 12px}.card .body,.card .footer{padding:16px}.card .body+.footer,.card .header+.body{border-top:1px solid #c1c1cc}"]
|
|
2050
|
+
})
|
|
2051
|
+
], CardComponent);
|
|
2052
|
+
return CardComponent;
|
|
2053
|
+
}());
|
|
2054
|
+
|
|
2055
|
+
var TemplateModule = /** @class */ (function () {
|
|
2056
|
+
function TemplateModule() {
|
|
2057
|
+
}
|
|
2058
|
+
TemplateModule = __decorate([
|
|
2059
|
+
core.NgModule({
|
|
2060
|
+
imports: [common.CommonModule],
|
|
2061
|
+
declarations: [TemplateDirective],
|
|
2062
|
+
exports: [TemplateDirective],
|
|
2063
|
+
})
|
|
2064
|
+
], TemplateModule);
|
|
2065
|
+
return TemplateModule;
|
|
2066
|
+
}());
|
|
2067
|
+
|
|
2068
|
+
var CardModule = /** @class */ (function () {
|
|
2069
|
+
function CardModule() {
|
|
2070
|
+
}
|
|
2071
|
+
CardModule = __decorate([
|
|
2072
|
+
core.NgModule({
|
|
2073
|
+
imports: [common.CommonModule],
|
|
2074
|
+
declarations: [CardComponent],
|
|
2075
|
+
exports: [CardComponent, TemplateModule],
|
|
2076
|
+
})
|
|
2077
|
+
], CardModule);
|
|
2078
|
+
return CardModule;
|
|
2079
|
+
}());
|
|
2080
|
+
|
|
1975
2081
|
|
|
1976
2082
|
(function (Languages) {
|
|
1977
2083
|
Languages["TaxCalculation"] = "TaxCalculation";
|
|
@@ -4193,6 +4299,38 @@
|
|
|
4193
4299
|
return CountryPhonePickerModule;
|
|
4194
4300
|
}());
|
|
4195
4301
|
|
|
4302
|
+
var CalendarLocaleOptions = /** @class */ (function () {
|
|
4303
|
+
function CalendarLocaleOptions(config) {
|
|
4304
|
+
var _this = this;
|
|
4305
|
+
if (config === void 0) { config = {}; }
|
|
4306
|
+
this.hourFormat = "24";
|
|
4307
|
+
this.dateFormat = "dd/mm/yy";
|
|
4308
|
+
this.firstDayOfWeek = 0;
|
|
4309
|
+
this.today = "Hoje";
|
|
4310
|
+
this.clear = "Limpar";
|
|
4311
|
+
this.dayNames = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"];
|
|
4312
|
+
this.dayNamesShort = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"];
|
|
4313
|
+
this.dayNamesMin = ["D", "S", "T", "Q", "Q", "S", "S"];
|
|
4314
|
+
this.monthNamesShort = ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"];
|
|
4315
|
+
this.monthNames = [
|
|
4316
|
+
"Janeiro",
|
|
4317
|
+
"Fevereiro",
|
|
4318
|
+
"Março",
|
|
4319
|
+
"Abril",
|
|
4320
|
+
"Maio",
|
|
4321
|
+
"Junho",
|
|
4322
|
+
"Julho",
|
|
4323
|
+
"Agosto",
|
|
4324
|
+
"Setembro",
|
|
4325
|
+
"Outubro",
|
|
4326
|
+
"Novembro",
|
|
4327
|
+
"Dezembro",
|
|
4328
|
+
];
|
|
4329
|
+
Object.keys(config).forEach(function (key) { return (_this[key] = config[key] || _this[key]); });
|
|
4330
|
+
}
|
|
4331
|
+
return CalendarLocaleOptions;
|
|
4332
|
+
}());
|
|
4333
|
+
|
|
4196
4334
|
|
|
4197
4335
|
(function (FieldType) {
|
|
4198
4336
|
FieldType["Autocomplete"] = "Autocomplete";
|
|
@@ -4274,38 +4412,6 @@
|
|
|
4274
4412
|
return AutocompleteField;
|
|
4275
4413
|
}(Field));
|
|
4276
4414
|
|
|
4277
|
-
var CalendarLocaleOptions = /** @class */ (function () {
|
|
4278
|
-
function CalendarLocaleOptions(config) {
|
|
4279
|
-
var _this = this;
|
|
4280
|
-
if (config === void 0) { config = {}; }
|
|
4281
|
-
this.hourFormat = "24";
|
|
4282
|
-
this.dateFormat = "dd/mm/yy";
|
|
4283
|
-
this.firstDayOfWeek = 0;
|
|
4284
|
-
this.today = "Hoje";
|
|
4285
|
-
this.clear = "Limpar";
|
|
4286
|
-
this.dayNames = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"];
|
|
4287
|
-
this.dayNamesShort = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"];
|
|
4288
|
-
this.dayNamesMin = ["D", "S", "T", "Q", "Q", "S", "S"];
|
|
4289
|
-
this.monthNamesShort = ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"];
|
|
4290
|
-
this.monthNames = [
|
|
4291
|
-
"Janeiro",
|
|
4292
|
-
"Fevereiro",
|
|
4293
|
-
"Março",
|
|
4294
|
-
"Abril",
|
|
4295
|
-
"Maio",
|
|
4296
|
-
"Junho",
|
|
4297
|
-
"Julho",
|
|
4298
|
-
"Agosto",
|
|
4299
|
-
"Setembro",
|
|
4300
|
-
"Outubro",
|
|
4301
|
-
"Novembro",
|
|
4302
|
-
"Dezembro",
|
|
4303
|
-
];
|
|
4304
|
-
Object.keys(config).forEach(function (key) { return (_this[key] = config[key] || _this[key]); });
|
|
4305
|
-
}
|
|
4306
|
-
return CalendarLocaleOptions;
|
|
4307
|
-
}());
|
|
4308
|
-
|
|
4309
4415
|
var NumberLocaleOptions = /** @class */ (function () {
|
|
4310
4416
|
function NumberLocaleOptions(config) {
|
|
4311
4417
|
if (config === void 0) { config = {}; }
|
|
@@ -5004,6 +5110,9 @@
|
|
|
5004
5110
|
_this.multiple = false;
|
|
5005
5111
|
_this.showSearch = true;
|
|
5006
5112
|
_this.autocompleteForceSelection = true;
|
|
5113
|
+
_this.showAddOption = false;
|
|
5114
|
+
_this.showEditOption = false;
|
|
5115
|
+
_this.showRemoveOption = false;
|
|
5007
5116
|
_this.onSelect = function (event) { };
|
|
5008
5117
|
_this.onUnselect = function (event) { };
|
|
5009
5118
|
Object.assign(_this, config);
|
|
@@ -5261,6 +5370,9 @@
|
|
|
5261
5370
|
this.showSearch = true;
|
|
5262
5371
|
this.lookupAppendTo = "body";
|
|
5263
5372
|
this.searchFields = [];
|
|
5373
|
+
this.showAddOption = false;
|
|
5374
|
+
this.showEditOption = false;
|
|
5375
|
+
this.showRemoveOption = false;
|
|
5264
5376
|
this.onLookupRequest = new core.EventEmitter();
|
|
5265
5377
|
this.onSearchRequest = new core.EventEmitter();
|
|
5266
5378
|
this.onFocus = new core.EventEmitter();
|
|
@@ -5269,6 +5381,9 @@
|
|
|
5269
5381
|
this.onSelect = new core.EventEmitter();
|
|
5270
5382
|
this.onUnselect = new core.EventEmitter();
|
|
5271
5383
|
this.onClear = new core.EventEmitter();
|
|
5384
|
+
this.onAdd = new core.EventEmitter();
|
|
5385
|
+
this.onEdit = new core.EventEmitter();
|
|
5386
|
+
this.onRemove = new core.EventEmitter();
|
|
5272
5387
|
this.dialogVisible = false;
|
|
5273
5388
|
this.collapsed = false;
|
|
5274
5389
|
this.selected = [];
|
|
@@ -5282,7 +5397,9 @@
|
|
|
5282
5397
|
if (!this.searchGridFields) {
|
|
5283
5398
|
this.searchGridFields = this.searchFields.map(function (item) { return new FormField(__assign({}, item)); });
|
|
5284
5399
|
}
|
|
5285
|
-
this.searchFields = this.searchFields.map(function (value) {
|
|
5400
|
+
this.searchFields = this.searchFields.map(function (value) {
|
|
5401
|
+
return new FormField(__assign(__assign({}, value), { size: { sm: 12, md: 12, lg: 12, xl: 12 } }));
|
|
5402
|
+
});
|
|
5286
5403
|
this.searchGridFields = this.searchGridFields.map(function (gridField) {
|
|
5287
5404
|
gridField["width"] = _this.getColWidth(gridField.label);
|
|
5288
5405
|
var calendarOptions = new CalendarLocaleOptions(__assign({}, gridField.calendarLocaleOptions));
|
|
@@ -5317,12 +5434,11 @@
|
|
|
5317
5434
|
var recordsLabel = this.recordsLabel
|
|
5318
5435
|
? this.searchTotalRecords + " " + this.recordsLabel
|
|
5319
5436
|
: this.translateService.instant("platform.angular_components.total_records", { count: this.searchTotalRecords });
|
|
5320
|
-
return this.searchTotalRecords === 1
|
|
5321
|
-
? recordLabel
|
|
5322
|
-
: recordsLabel;
|
|
5437
|
+
return this.searchTotalRecords === 1 ? recordLabel : recordsLabel;
|
|
5323
5438
|
};
|
|
5324
5439
|
LookupComponent.prototype._convertToMomentHourFormat = function (hourFormat, format) {
|
|
5325
|
-
if (format === "dd/mm/yy") {
|
|
5440
|
+
if (format === "dd/mm/yy") {
|
|
5441
|
+
// valor padrão para o format.
|
|
5326
5442
|
return "LTS";
|
|
5327
5443
|
}
|
|
5328
5444
|
if (hourFormat === "12") {
|
|
@@ -5392,14 +5508,11 @@
|
|
|
5392
5508
|
this.defaultFilter
|
|
5393
5509
|
.filter(function (_a) {
|
|
5394
5510
|
var field = _a.field;
|
|
5395
|
-
return _this.formGroupDialog.contains(field) &&
|
|
5396
|
-
!_this.formGroupDialog.get([field]).dirty;
|
|
5511
|
+
return _this.formGroupDialog.contains(field) && !_this.formGroupDialog.get([field]).dirty;
|
|
5397
5512
|
})
|
|
5398
5513
|
.forEach(function (_a) {
|
|
5399
5514
|
var value = _a.value, field = _a.field;
|
|
5400
|
-
_this.formGroupDialog
|
|
5401
|
-
.get([field])
|
|
5402
|
-
.patchValue(value instanceof Function ? value() : value);
|
|
5515
|
+
_this.formGroupDialog.get([field]).patchValue(value instanceof Function ? value() : value);
|
|
5403
5516
|
});
|
|
5404
5517
|
};
|
|
5405
5518
|
LookupComponent.prototype.showDialog = function () {
|
|
@@ -5499,7 +5612,7 @@
|
|
|
5499
5612
|
return this.emptyFieldLabel;
|
|
5500
5613
|
};
|
|
5501
5614
|
LookupComponent.prototype.isNumber = function (obj, path) {
|
|
5502
|
-
return !
|
|
5615
|
+
return !new BigNumber__default(this.getFieldValue(obj, path)).isNaN();
|
|
5503
5616
|
};
|
|
5504
5617
|
LookupComponent.prototype.setHotkeys = function () {
|
|
5505
5618
|
var _this = this;
|
|
@@ -5591,31 +5704,19 @@
|
|
|
5591
5704
|
};
|
|
5592
5705
|
LookupComponent.prototype._subscribeEvents = function () {
|
|
5593
5706
|
var _this = this;
|
|
5594
|
-
this.onSearchRequest
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
this.
|
|
5598
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
5599
|
-
.subscribe(function () { return _this.onChange(_this.value); });
|
|
5600
|
-
this.onUnselect
|
|
5601
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
5602
|
-
.subscribe(function () { return _this.onChange(_this.value); });
|
|
5603
|
-
this.onClear
|
|
5604
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
5605
|
-
.subscribe(function () {
|
|
5707
|
+
this.onSearchRequest.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () { return (_this.loading = true); });
|
|
5708
|
+
this.onSelect.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () { return _this.onChange(_this.value); });
|
|
5709
|
+
this.onUnselect.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () { return _this.onChange(_this.value); });
|
|
5710
|
+
this.onClear.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () {
|
|
5606
5711
|
if (_this.multiple) {
|
|
5607
5712
|
return;
|
|
5608
5713
|
}
|
|
5609
5714
|
_this.onChange(null);
|
|
5610
5715
|
});
|
|
5611
|
-
this.onFocus
|
|
5612
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
5613
|
-
.subscribe(function () {
|
|
5716
|
+
this.onFocus.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () {
|
|
5614
5717
|
_this.onTouched();
|
|
5615
5718
|
});
|
|
5616
|
-
this.onBlur
|
|
5617
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
5618
|
-
.subscribe(function (event) {
|
|
5719
|
+
this.onBlur.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
|
|
5619
5720
|
var target = event.target;
|
|
5620
5721
|
var currentValue = _this.value && _this.value[_this.lookupDisplayField];
|
|
5621
5722
|
var value = target.value;
|
|
@@ -5701,6 +5802,15 @@
|
|
|
5701
5802
|
__decorate([
|
|
5702
5803
|
core.Input()
|
|
5703
5804
|
], LookupComponent.prototype, "defaultFilter", void 0);
|
|
5805
|
+
__decorate([
|
|
5806
|
+
core.Input()
|
|
5807
|
+
], LookupComponent.prototype, "showAddOption", void 0);
|
|
5808
|
+
__decorate([
|
|
5809
|
+
core.Input()
|
|
5810
|
+
], LookupComponent.prototype, "showEditOption", void 0);
|
|
5811
|
+
__decorate([
|
|
5812
|
+
core.Input()
|
|
5813
|
+
], LookupComponent.prototype, "showRemoveOption", void 0);
|
|
5704
5814
|
__decorate([
|
|
5705
5815
|
core.Output()
|
|
5706
5816
|
], LookupComponent.prototype, "onLookupRequest", void 0);
|
|
@@ -5725,6 +5835,15 @@
|
|
|
5725
5835
|
__decorate([
|
|
5726
5836
|
core.Output()
|
|
5727
5837
|
], LookupComponent.prototype, "onClear", void 0);
|
|
5838
|
+
__decorate([
|
|
5839
|
+
core.Output()
|
|
5840
|
+
], LookupComponent.prototype, "onAdd", void 0);
|
|
5841
|
+
__decorate([
|
|
5842
|
+
core.Output()
|
|
5843
|
+
], LookupComponent.prototype, "onEdit", void 0);
|
|
5844
|
+
__decorate([
|
|
5845
|
+
core.Output()
|
|
5846
|
+
], LookupComponent.prototype, "onRemove", void 0);
|
|
5728
5847
|
__decorate([
|
|
5729
5848
|
core.ViewChild(table.Table, { static: false })
|
|
5730
5849
|
], LookupComponent.prototype, "table", void 0);
|
|
@@ -5771,7 +5890,7 @@
|
|
|
5771
5890
|
core.Injectable(),
|
|
5772
5891
|
core.Component({
|
|
5773
5892
|
selector: "s-lookup",
|
|
5774
|
-
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]=\"autocompleteForceSelection\"\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 <ng-template let-item pTemplate=\"selectedItem\">\n <span\n class=\"ui-autocomplete-token-label ng-tns-c65-43 ng-star-inserted\"\n [sTooltip]=\"lookupDisplayFieldTooltip ? item[lookupDisplayField] : null\"\n tooltipPosition=\"top\">\n {{item[lookupDisplayField]}}\n </span>\n </ng-template>\n </p-autoComplete>\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<p-dialog\n appendTo=\"body\"\n styleClass=\"s-lookup-modal\"\n [header]=\"searchTitle || 'platform.angular_components.advanced_search' | translate\"\n [(visible)]=\"dialogVisible\"\n [modal]=\"true\"\n (onHide)=\"hideDialog()\"\n [blockScroll]=\"true\"\n [focusOnShow]=\"true\"\n [draggable]=\"false\"\n [resizable]=\"false\"\n #dialog>\n <div\n *ngIf=\"dialogVisible\"\n class=\"s-lookup-modal-container\">\n <div\n *ngIf=\"searchFields && searchFields.length\"\n class=\"filter\"\n [@collapseContent]=\"collapsed \n ? { value: 'hidden', params: { transitionParams: transitionOptions } }\n : { value: 'visible', params: { transitionParams: transitionOptions } }\"\n (@collapseContent.done)=\"onToggleDone()\">\n <form\n [formGroup]=\"formGroupDialog\"\n novalidate\n autocomplete=\"off\">\n <div\n *ngIf=\"!collapsed\"\n class=\"form-content\"\n [@childCollapseContent]=\"collapsed\n ? { value: ':leave', params: { transitionParams: transitionOptions } }\n : { value: ':enter', params: { transitionParams: transitionOptions } }\">\n <div class=\"filter-title sds-section-title\">\n {{ filterTitle || \"platform.angular_components.filters\" | translate }}\n </div>\n <div class=\"form-fields\">\n <s-dynamic-form\n [fields]=\"searchFields\"\n [form]=\"formGroupDialog\">\n </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 || 'platform.angular_components.filter' | translate\"\n (onClick)=\"search()\"\n sTooltip=\"(ALT + SHIFT + F)\"\n tooltipPosition=\"top\"\n showDelay=\"500\">\n </s-button>\n <s-button\n [id]=\"id + '-clear-button'\"\n type=\"button\"\n [label]=\"clearLabel || 'platform.angular_components.clear' | translate\"\n (onClick)=\"clear()\"\n priority=\"link\"\n sTooltip=\"(ALT + SHIFT + L)\"\n tooltipPosition=\"top\"\n showDelay=\"500\">\n </s-button>\n </div>\n </div>\n </div>\n </form>\n </div>\n <div\n *ngIf=\"searchFields && searchFields.length\"\n class=\"filter-toggle\">\n <div class=\"filter-toggle--start-border-mask\"></div>\n <button\n [id]=\"id + '-filter-toggle-button'\"\n type=\"button\"\n (click)=\"filterToggle()\">\n <span\n class=\"fa\"\n [ngClass]=\"{'fa-chevron-left': !collapsed, 'fa-chevron-right': collapsed}\"\n aria-hidden=\"true\">\n </span>\n </button>\n <div class=\"filter-toggle--end-border-mask\"></div>\n </div>\n <div\n class=\"content\"\n [ngClass]=\"{'empty-content': !searchTotalRecords && !loading}\">\n <s-empty-state\n [id]=\"id + '-empty-state'\"\n *ngIf=\"!searchTotalRecords && !loading\"\n [title]=\"searchEmptyTitle || 'platform.angular_components.no_records_found' | translate\"\n [description]=\"searchEmptyDescription\"\n iconClass=\"fa fa-search\">\n </s-empty-state>\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 <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col\n *ngIf=\"multiple\"\n style=\"width: 50px\" />\n <col\n *ngFor=\"let col of columns\"\n [style.width]=\"col.width\" />\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th\n *ngIf=\"multiple\"\n style=\"width: 50px\">\n <s-table-header-checkbox\n [useAllObject]=\"lookupRowProps ? false : true\"\n [rowProps]=\"lookupRowProps\">\n </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 <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.label }}</span>\n <p-sortIcon\n [field]=\"col.name\"\n *ngIf=\"!sortableColumnsDisabled?.includes(col.name)\">\n </p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template\n pTemplate=\"body\"\n let-rowData\n let-columns\n let-rowIndex=\"rowIndex\">\n <tr\n sNavigation\n [pSelectableRow]=\"rowData\"\n [pSelectableRowIndex]=\"rowIndex\"\n sDoubleClick (onDoubleClick)=\"onTableRowDoubleClick(rowData)\">\n <td\n *ngIf=\"multiple\"\n style=\"width: 50px\"\n tabindex=\"0\">\n <p-tableCheckbox\n [value]=\"rowData\"\n [pSelectableRow]=\"rowData\">\n </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 <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 <ng-container *ngSwitchCase=\"'Date'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate: col.calendarLocaleOptions?.dateFormat || \"L\" | async }}</span>\n </ng-container>\n </ng-container>\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 <ng-container *ngSwitchCase=\"'LocalDateTime'\">\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 <ng-container *ngSwitchCase=\"'Time'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedTime: col.calendarLocaleOptions?.dateFormat || \"LTS\" | async }}</span>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Integer'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getIntegerMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Double'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getDoubleMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Money'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getMoneyMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\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 <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 <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 {{ printRecordTotalizer() }}\n </span>\n </ng-template>\n </p-table>\n </div>\n </div>\n <p-footer>\n <s-button\n [id]=\"id + '-select-button'\"\n type=\"button\"\n [label]=\"selectLabel || 'platform.angular_components.select' | translate\"\n (onClick)=\"select()\"\n sTooltip=\"(ALT + SHIFT + S)\"\n tooltipPosition=\"top\"\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 || 'platform.angular_components.cancel' | translate\"\n (onClick)=\"hideDialog()\"\n sTooltip=\"(ALT + SHIFT + C)\"\n tooltipPosition=\"top\"\n showDelay=\"500\">\n </s-button>\n </p-footer>\n</p-dialog>\n<ng-template #emptyTemplate>\n <span [ngClass]=\"'sds-empty-value'\">\n {{ emptyFieldLabel || 'platform.angular_components.not_informed' | translate }}\n </span>\n</ng-template>\n",
|
|
5893
|
+
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]=\"autocompleteForceSelection\"\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 <ng-template let-item pTemplate=\"selectedItem\">\n <span\n class=\"ui-autocomplete-token-label ng-tns-c65-43 ng-star-inserted\"\n [sTooltip]=\"lookupDisplayFieldTooltip ? item[lookupDisplayField] : null\"\n tooltipPosition=\"top\">\n {{item[lookupDisplayField]}}\n </span>\n </ng-template>\n </p-autoComplete>\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<p-dialog\n appendTo=\"body\"\n styleClass=\"s-lookup-modal\"\n [header]=\"searchTitle || 'platform.angular_components.advanced_search' | translate\"\n [(visible)]=\"dialogVisible\"\n [modal]=\"true\"\n (onHide)=\"hideDialog()\"\n [blockScroll]=\"true\"\n [focusOnShow]=\"true\"\n [draggable]=\"false\"\n [resizable]=\"false\"\n #dialog>\n <div\n *ngIf=\"dialogVisible\"\n class=\"s-lookup-modal-container\">\n <div\n *ngIf=\"searchFields && searchFields.length\"\n class=\"filter\"\n [@collapseContent]=\"collapsed \n ? { value: 'hidden', params: { transitionParams: transitionOptions } }\n : { value: 'visible', params: { transitionParams: transitionOptions } }\"\n (@collapseContent.done)=\"onToggleDone()\">\n <form\n [formGroup]=\"formGroupDialog\"\n novalidate\n autocomplete=\"off\">\n <div\n *ngIf=\"!collapsed\"\n class=\"form-content\"\n [@childCollapseContent]=\"collapsed\n ? { value: ':leave', params: { transitionParams: transitionOptions } }\n : { value: ':enter', params: { transitionParams: transitionOptions } }\">\n <div class=\"filter-title sds-section-title\">\n {{ filterTitle || \"platform.angular_components.filters\" | translate }}\n </div>\n <div class=\"form-fields\">\n <s-dynamic-form\n [fields]=\"searchFields\"\n [form]=\"formGroupDialog\">\n </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 || 'platform.angular_components.filter' | translate\"\n (onClick)=\"search()\"\n sTooltip=\"(ALT + SHIFT + F)\"\n tooltipPosition=\"top\"\n showDelay=\"500\">\n </s-button>\n <s-button\n [id]=\"id + '-clear-button'\"\n type=\"button\"\n [label]=\"clearLabel || 'platform.angular_components.clear' | translate\"\n (onClick)=\"clear()\"\n priority=\"link\"\n sTooltip=\"(ALT + SHIFT + L)\"\n tooltipPosition=\"top\"\n showDelay=\"500\">\n </s-button>\n </div>\n </div>\n </div>\n </form>\n </div>\n <div\n *ngIf=\"searchFields && searchFields.length\"\n class=\"filter-toggle\">\n <div class=\"filter-toggle--start-border-mask\"></div>\n <button\n [id]=\"id + '-filter-toggle-button'\"\n type=\"button\"\n (click)=\"filterToggle()\">\n <span\n class=\"fa\"\n [ngClass]=\"{'fa-chevron-left': !collapsed, 'fa-chevron-right': collapsed}\"\n aria-hidden=\"true\">\n </span>\n </button>\n <div class=\"filter-toggle--end-border-mask\"></div>\n </div>\n <div\n class=\"content\"\n [ngClass]=\"{'empty-content': !searchTotalRecords && !loading}\">\n <s-empty-state\n [id]=\"id + '-empty-state'\"\n *ngIf=\"!searchTotalRecords && !loading\"\n [title]=\"searchEmptyTitle || 'platform.angular_components.no_records_found' | translate\"\n [description]=\"searchEmptyDescription\"\n iconClass=\"fa fa-search\">\n </s-empty-state>\n\n <div>\n <s-button\n *ngIf=\"showAddOption\"\n priority=\"default\"\n [label]=\"'platform.angular_components.add' | translate\"\n (onClick)=\"onAdd.emit()\">\n </s-button>\n <s-button\n *ngIf=\"showEditOption\"\n priority=\"default\"\n [label]=\"'platform.angular_components.edit' | translate\"\n [disabled]=\"selected.length !== 1\"\n (onClick)=\"onEdit.emit(this.selected[0])\">\n </s-button>\n <s-button\n *ngIf=\"showRemoveOption\"\n priority=\"default\"\n [label]=\"'platform.angular_components.remove' | translate\"\n [disabled]=\"!selected.length\"\n (onClick)=\"onRemove.emit(this.selected)\">\n </s-button>\n </div>\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 <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col\n *ngIf=\"multiple\"\n style=\"width: 50px\" />\n <col\n *ngFor=\"let col of columns\"\n [style.width]=\"col.width\" />\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th\n *ngIf=\"multiple\"\n style=\"width: 50px\">\n <s-table-header-checkbox\n [useAllObject]=\"lookupRowProps ? false : true\"\n [rowProps]=\"lookupRowProps\">\n </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 <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.label }}</span>\n <p-sortIcon\n [field]=\"col.name\"\n *ngIf=\"!sortableColumnsDisabled?.includes(col.name)\">\n </p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template\n pTemplate=\"body\"\n let-rowData\n let-columns\n let-rowIndex=\"rowIndex\">\n <tr\n sNavigation\n [pSelectableRow]=\"rowData\"\n [pSelectableRowIndex]=\"rowIndex\"\n sDoubleClick (onDoubleClick)=\"onTableRowDoubleClick(rowData)\">\n <td\n *ngIf=\"multiple\"\n style=\"width: 50px\"\n tabindex=\"0\">\n <p-tableCheckbox\n [value]=\"rowData\"\n [pSelectableRow]=\"rowData\">\n </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 <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 <ng-container *ngSwitchCase=\"'Date'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate: col.calendarLocaleOptions?.dateFormat || \"L\" | async }}</span>\n </ng-container>\n </ng-container>\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 <ng-container *ngSwitchCase=\"'LocalDateTime'\">\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 <ng-container *ngSwitchCase=\"'Time'\">\n <ng-container *ngIf=\"getFieldValue(rowData, col.name); else emptyTemplate\">\n <span>{{ getFieldValue(rowData, col.name) | localizedTime: col.calendarLocaleOptions?.dateFormat || \"LTS\" | async }}</span>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Integer'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getIntegerMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Double'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getDoubleMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Money'\">\n <ng-container *ngIf=\"isNumber(rowData, col.name); else emptyTemplate\">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getMoneyMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\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 <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 <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 {{ printRecordTotalizer() }}\n </span>\n </ng-template>\n </p-table>\n </div>\n </div>\n <p-footer>\n <s-button\n [id]=\"id + '-select-button'\"\n type=\"button\"\n [label]=\"selectLabel || 'platform.angular_components.select' | translate\"\n (onClick)=\"select()\"\n sTooltip=\"(ALT + SHIFT + S)\"\n tooltipPosition=\"top\"\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 || 'platform.angular_components.cancel' | translate\"\n (onClick)=\"hideDialog()\"\n sTooltip=\"(ALT + SHIFT + C)\"\n tooltipPosition=\"top\"\n showDelay=\"500\">\n </s-button>\n </p-footer>\n</p-dialog>\n<ng-template #emptyTemplate>\n <span [ngClass]=\"'sds-empty-value'\">\n {{ emptyFieldLabel || 'platform.angular_components.not_informed' | translate }}\n </span>\n</ng-template>\n",
|
|
5775
5894
|
providers: [
|
|
5776
5895
|
{
|
|
5777
5896
|
provide: forms.NG_VALUE_ACCESSOR,
|
|
@@ -9297,7 +9416,7 @@
|
|
|
9297
9416
|
], LookupFieldComponent.prototype, "formControl", void 0);
|
|
9298
9417
|
LookupFieldComponent = __decorate([
|
|
9299
9418
|
core.Component({
|
|
9300
|
-
template: "<div
|
|
9419
|
+
template: "<div [sTooltip]=\"field.tooltip\" tooltipPosition=\"top\" [showDelay]=\"500\">\n <s-lookup\n [id]=\"field.id || field.name\"\n [multiple]=\"field.multiple\"\n [formControl]=\"formControl\"\n [lookupSuggestions]=\"field.lookupSuggestions\"\n [dataKey]=\"field.dataKey\"\n [placeholder]=\"field.placeholder\"\n [showSearch]=\"field.showSearch\"\n [searchFields]=\"field.searchFields\"\n [searchGridFields]=\"field.searchGridFields\"\n [searchGridData]=\"field.gridData\"\n (onLookupRequest)=\"field.onLookupRequest($event)\"\n (onSearchRequest)=\"field.onSearchRequest($event)\"\n [lookupDisplayField]=\"field.lookupDisplayField\"\n [searchTotalRecords]=\"field.searchTotalRecords\"\n [searchTotalRecordsLabel]=\"field.searchTotalRecordsLabel\"\n [searchTitle]=\"field.searchTitle\"\n [selectLabel]=\"field.selectLabel\"\n [searchEmptyTitle]=\"field.searchEmptyTitle\"\n [filterLabel]=\"field.filterLabel\"\n [filterTitle]=\"field.filterTitle\"\n [clearLabel]=\"field.clearLabel\"\n [cancelLabel]=\"field.cancelLabel\"\n [emptyFieldLabel]=\"field.emptyFieldLabel\"\n (onSelect)=\"field.onSelect($event)\"\n (onUnselect)=\"field.onUnselect($event)\"\n (onClear)=\"field.onClear ? field.onClear($event) : null\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\"\n [lookupAppendTo]=\"field.appendTo\"\n [lookupEmptyMessage]=\"field.emptyMessage\"\n [recordLabel]=\"field.recordLabel\"\n [recordsLabel]=\"field.recordsLabel\"\n [defaultFilter]=\"field.defaultFilter\"\n [autocompleteForceSelection]=\"field.autocompleteForceSelection\"\n [showAddOption]=\"field.showAddOption\"\n [showEditOption]=\"field.showEditOption\"\n [showRemoveOption]=\"field.showRemoveOption\"\n (onAdd)=\"field.onAdd()\"\n (onEdit)=\"field.onEdit($event)\"\n (onRemove)=\"field.onRemove($event)\"\n >\n </s-lookup>\n</div>\n"
|
|
9301
9420
|
})
|
|
9302
9421
|
], LookupFieldComponent);
|
|
9303
9422
|
return LookupFieldComponent;
|
|
@@ -13247,37 +13366,6 @@
|
|
|
13247
13366
|
return GlobalSearchModule;
|
|
13248
13367
|
}());
|
|
13249
13368
|
|
|
13250
|
-
var TemplateDirective = /** @class */ (function () {
|
|
13251
|
-
function TemplateDirective(template) {
|
|
13252
|
-
this.template = template;
|
|
13253
|
-
}
|
|
13254
|
-
TemplateDirective.ctorParameters = function () { return [
|
|
13255
|
-
{ type: core.TemplateRef }
|
|
13256
|
-
]; };
|
|
13257
|
-
__decorate([
|
|
13258
|
-
core.Input("sTemplate")
|
|
13259
|
-
], TemplateDirective.prototype, "type", void 0);
|
|
13260
|
-
TemplateDirective = __decorate([
|
|
13261
|
-
core.Directive({
|
|
13262
|
-
selector: "[sTemplate]",
|
|
13263
|
-
})
|
|
13264
|
-
], TemplateDirective);
|
|
13265
|
-
return TemplateDirective;
|
|
13266
|
-
}());
|
|
13267
|
-
|
|
13268
|
-
var TemplateModule = /** @class */ (function () {
|
|
13269
|
-
function TemplateModule() {
|
|
13270
|
-
}
|
|
13271
|
-
TemplateModule = __decorate([
|
|
13272
|
-
core.NgModule({
|
|
13273
|
-
imports: [common.CommonModule],
|
|
13274
|
-
declarations: [TemplateDirective],
|
|
13275
|
-
exports: [TemplateDirective],
|
|
13276
|
-
})
|
|
13277
|
-
], TemplateModule);
|
|
13278
|
-
return TemplateModule;
|
|
13279
|
-
}());
|
|
13280
|
-
|
|
13281
13369
|
var IAInsightCardComponent = /** @class */ (function () {
|
|
13282
13370
|
function IAInsightCardComponent(clipboard, messageService, translateService) {
|
|
13283
13371
|
this.clipboard = clipboard;
|
|
@@ -17118,6 +17206,8 @@
|
|
|
17118
17206
|
"platform.angular_components.date_format": "dd/mm/yy",
|
|
17119
17207
|
"platform.angular_components.ia_text_generator": "Gerador de texto por IA",
|
|
17120
17208
|
"platform.angular_components.attach_files": "Anexar arquivos",
|
|
17209
|
+
"platform.angular_components.add": "Adicionar",
|
|
17210
|
+
"platform.angular_components.edit": "Editar",
|
|
17121
17211
|
"platform.angular_components.remove": "Remover",
|
|
17122
17212
|
"platform.angular_components.file_attached_successfully": "Arquivo anexado com sucesso",
|
|
17123
17213
|
"platform.angular_components.loading_file": "Carregando arquivo",
|
|
@@ -17386,6 +17476,8 @@
|
|
|
17386
17476
|
exports.CalendarLocaleOptions = CalendarLocaleOptions;
|
|
17387
17477
|
exports.CalendarMaskDirective = CalendarMaskDirective;
|
|
17388
17478
|
exports.CalendarMaskModule = CalendarMaskModule;
|
|
17479
|
+
exports.CardComponent = CardComponent;
|
|
17480
|
+
exports.CardModule = CardModule;
|
|
17389
17481
|
exports.ChipsField = ChipsField;
|
|
17390
17482
|
exports.CodeEditorModule = CodeEditorModule;
|
|
17391
17483
|
exports.CollapseLinkComponent = CollapseLinkComponent;
|
|
@@ -17524,35 +17616,35 @@
|
|
|
17524
17616
|
exports.fallback = fallback;
|
|
17525
17617
|
exports.ɵa = TooltipComponent;
|
|
17526
17618
|
exports.ɵb = TooltipDirective;
|
|
17527
|
-
exports.ɵba =
|
|
17528
|
-
exports.ɵbb =
|
|
17529
|
-
exports.ɵbc =
|
|
17530
|
-
exports.ɵbd =
|
|
17531
|
-
exports.ɵbe =
|
|
17532
|
-
exports.ɵbf =
|
|
17533
|
-
exports.ɵbg =
|
|
17534
|
-
exports.ɵbh =
|
|
17535
|
-
exports.ɵbi =
|
|
17536
|
-
exports.ɵbj =
|
|
17537
|
-
exports.ɵbk =
|
|
17538
|
-
exports.ɵbl =
|
|
17539
|
-
exports.ɵbm =
|
|
17540
|
-
exports.ɵbn =
|
|
17541
|
-
exports.ɵbo =
|
|
17542
|
-
exports.ɵbp =
|
|
17543
|
-
exports.ɵbq =
|
|
17544
|
-
exports.ɵbr =
|
|
17545
|
-
exports.ɵbs =
|
|
17546
|
-
exports.ɵbt =
|
|
17547
|
-
exports.ɵbu =
|
|
17548
|
-
exports.ɵ
|
|
17549
|
-
exports.ɵ
|
|
17550
|
-
exports.ɵby =
|
|
17551
|
-
exports.ɵbz =
|
|
17552
|
-
exports.ɵc =
|
|
17553
|
-
exports.ɵca =
|
|
17554
|
-
exports.ɵcb =
|
|
17555
|
-
exports.ɵcc =
|
|
17619
|
+
exports.ɵba = BignumberFieldComponent;
|
|
17620
|
+
exports.ɵbb = BooleanFieldComponent;
|
|
17621
|
+
exports.ɵbc = BooleanSwitchFieldComponent;
|
|
17622
|
+
exports.ɵbd = CalendarFieldComponent;
|
|
17623
|
+
exports.ɵbe = ChipsFieldComponent;
|
|
17624
|
+
exports.ɵbf = CountryPhonePickerFieldComponent;
|
|
17625
|
+
exports.ɵbg = CurrencyFieldComponent;
|
|
17626
|
+
exports.ɵbh = DynamicFieldComponent;
|
|
17627
|
+
exports.ɵbi = DynamicFormDirective;
|
|
17628
|
+
exports.ɵbj = FieldsetComponent;
|
|
17629
|
+
exports.ɵbk = FileUploadComponent$1;
|
|
17630
|
+
exports.ɵbl = LookupFieldComponent;
|
|
17631
|
+
exports.ɵbm = NumberFieldComponent;
|
|
17632
|
+
exports.ɵbn = PasswordFieldComponent;
|
|
17633
|
+
exports.ɵbo = RadioButtonComponent;
|
|
17634
|
+
exports.ɵbp = RowComponent;
|
|
17635
|
+
exports.ɵbq = SectionComponent;
|
|
17636
|
+
exports.ɵbr = SelectFieldComponent;
|
|
17637
|
+
exports.ɵbs = SliderFieldComponent;
|
|
17638
|
+
exports.ɵbt = TextAreaFieldComponent;
|
|
17639
|
+
exports.ɵbu = TextAreaIAFieldComponent;
|
|
17640
|
+
exports.ɵbv = IAssistService;
|
|
17641
|
+
exports.ɵbw = TextFieldComponent;
|
|
17642
|
+
exports.ɵby = DecimalField;
|
|
17643
|
+
exports.ɵbz = SideTableComponent;
|
|
17644
|
+
exports.ɵc = TemplateDirective;
|
|
17645
|
+
exports.ɵca = ThumbnailService;
|
|
17646
|
+
exports.ɵcb = InfiniteScrollModule;
|
|
17647
|
+
exports.ɵcc = InfiniteScrollDirective;
|
|
17556
17648
|
exports.ɵcd = IAInsightSidebarComponent;
|
|
17557
17649
|
exports.ɵce = IAInsightCardComponent;
|
|
17558
17650
|
exports.ɵcf = IAInsightCardLoaderComponent;
|
|
@@ -17576,7 +17668,7 @@
|
|
|
17576
17668
|
exports.ɵcx = TieredMenuDividerComponent;
|
|
17577
17669
|
exports.ɵcy = TimelineItemModule;
|
|
17578
17670
|
exports.ɵcz = TimelineIconItemComponent;
|
|
17579
|
-
exports.ɵd =
|
|
17671
|
+
exports.ɵd = TemplateModule;
|
|
17580
17672
|
exports.ɵda = HorizontalTimelineModule;
|
|
17581
17673
|
exports.ɵdb = HorizontalTimelineComponent;
|
|
17582
17674
|
exports.ɵdc = VerticalTimelineModule;
|
|
@@ -17585,28 +17677,28 @@
|
|
|
17585
17677
|
exports.ɵdf = CollapseOptionComponent;
|
|
17586
17678
|
exports.ɵdg = CollapsedItemsComponent;
|
|
17587
17679
|
exports.ɵdh = VerticalItemsComponent;
|
|
17588
|
-
exports.ɵe =
|
|
17589
|
-
exports.ɵf =
|
|
17590
|
-
exports.ɵg =
|
|
17591
|
-
exports.ɵh =
|
|
17592
|
-
exports.ɵi =
|
|
17593
|
-
exports.ɵj =
|
|
17594
|
-
exports.ɵk =
|
|
17595
|
-
exports.ɵl =
|
|
17596
|
-
exports.ɵm =
|
|
17597
|
-
exports.ɵn =
|
|
17598
|
-
exports.ɵo =
|
|
17599
|
-
exports.ɵp =
|
|
17600
|
-
exports.ɵq =
|
|
17601
|
-
exports.ɵr =
|
|
17602
|
-
exports.ɵs =
|
|
17603
|
-
exports.ɵt =
|
|
17604
|
-
exports.ɵu =
|
|
17605
|
-
exports.ɵv =
|
|
17606
|
-
exports.ɵw =
|
|
17607
|
-
exports.ɵx =
|
|
17608
|
-
exports.ɵy =
|
|
17609
|
-
exports.ɵz =
|
|
17680
|
+
exports.ɵe = CustomTranslationsModule;
|
|
17681
|
+
exports.ɵf = CodeEditorComponent;
|
|
17682
|
+
exports.ɵg = CoreFacade;
|
|
17683
|
+
exports.ɵh = CodeMirror6Core;
|
|
17684
|
+
exports.ɵi = CountryPhonePickerService;
|
|
17685
|
+
exports.ɵj = LocalizedCurrencyImpurePipe;
|
|
17686
|
+
exports.ɵk = LocalizedBignumberPipe;
|
|
17687
|
+
exports.ɵl = LocalizedBignumberImpurePipe;
|
|
17688
|
+
exports.ɵm = EmptyStateGoBackComponent;
|
|
17689
|
+
exports.ɵn = IAssistIconComponent;
|
|
17690
|
+
exports.ɵo = SeniorIconComponent;
|
|
17691
|
+
exports.ɵp = DotsIndicatorComponent;
|
|
17692
|
+
exports.ɵq = LoadingIndicatorComponent;
|
|
17693
|
+
exports.ɵr = ProgressBarDeterminateComponent;
|
|
17694
|
+
exports.ɵs = ProgressBarIndeterminateComponent;
|
|
17695
|
+
exports.ɵt = FileUploadService;
|
|
17696
|
+
exports.ɵu = FileItemComponent;
|
|
17697
|
+
exports.ɵv = LocaleService;
|
|
17698
|
+
exports.ɵw = InfoSignComponent;
|
|
17699
|
+
exports.ɵx = TableColumnsComponent;
|
|
17700
|
+
exports.ɵy = TablePagingComponent;
|
|
17701
|
+
exports.ɵz = AutocompleteFieldComponent;
|
|
17610
17702
|
|
|
17611
17703
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
17612
17704
|
|