@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __extends, __spread, __assign, __awaiter, __generator, __param, __values, __rest, __read } from 'tslib';
|
|
2
|
-
import { EventEmitter, Input, Output, Component, ContentChildren, ViewChild, HostListener, forwardRef, NgModule, ɵɵdefineInjectable, Injectable, ElementRef, ApplicationRef, ComponentFactoryResolver, Injector, Directive, HostBinding, Renderer2, InjectionToken, Inject, Pipe, ViewEncapsulation,
|
|
2
|
+
import { EventEmitter, Input, Output, Component, ContentChildren, ViewChild, HostListener, forwardRef, NgModule, ɵɵdefineInjectable, Injectable, ElementRef, ApplicationRef, ComponentFactoryResolver, Injector, Directive, HostBinding, Renderer2, TemplateRef, InjectionToken, Inject, Pipe, ViewEncapsulation, ViewContainerRef, ChangeDetectorRef, Optional, ContentChild } from '@angular/core';
|
|
3
3
|
import { trigger, transition, style as style$7, animate, state, group, query, animateChild } from '@angular/animations';
|
|
4
4
|
import { Subject, ReplaySubject, of, from, throwError, forkJoin } from 'rxjs';
|
|
5
5
|
import { takeUntil, filter, take, tap, map, switchMap, catchError, delay, debounceTime, repeat, first, finalize } from 'rxjs/operators';
|
|
@@ -1825,6 +1825,112 @@ var CalendarMaskModule = /** @class */ (function () {
|
|
|
1825
1825
|
return CalendarMaskModule;
|
|
1826
1826
|
}());
|
|
1827
1827
|
|
|
1828
|
+
var TemplateDirective = /** @class */ (function () {
|
|
1829
|
+
function TemplateDirective(template) {
|
|
1830
|
+
this.template = template;
|
|
1831
|
+
}
|
|
1832
|
+
TemplateDirective.ctorParameters = function () { return [
|
|
1833
|
+
{ type: TemplateRef }
|
|
1834
|
+
]; };
|
|
1835
|
+
__decorate([
|
|
1836
|
+
Input("sTemplate")
|
|
1837
|
+
], TemplateDirective.prototype, "type", void 0);
|
|
1838
|
+
TemplateDirective = __decorate([
|
|
1839
|
+
Directive({
|
|
1840
|
+
selector: "[sTemplate]",
|
|
1841
|
+
})
|
|
1842
|
+
], TemplateDirective);
|
|
1843
|
+
return TemplateDirective;
|
|
1844
|
+
}());
|
|
1845
|
+
|
|
1846
|
+
var CardTemplateTypes;
|
|
1847
|
+
(function (CardTemplateTypes) {
|
|
1848
|
+
CardTemplateTypes["Header"] = "header";
|
|
1849
|
+
CardTemplateTypes["Body"] = "body";
|
|
1850
|
+
CardTemplateTypes["Footer"] = "footer";
|
|
1851
|
+
})(CardTemplateTypes || (CardTemplateTypes = {}));
|
|
1852
|
+
|
|
1853
|
+
var CardComponent = /** @class */ (function () {
|
|
1854
|
+
function CardComponent() {
|
|
1855
|
+
this.fullWidth = false;
|
|
1856
|
+
this.showBanner = false;
|
|
1857
|
+
this.hasCustomTemplates = false;
|
|
1858
|
+
}
|
|
1859
|
+
CardComponent.prototype.ngAfterContentInit = function () {
|
|
1860
|
+
this._getTemplates();
|
|
1861
|
+
this._testLoadImage();
|
|
1862
|
+
};
|
|
1863
|
+
CardComponent.prototype._getHeaderTemplate = function () {
|
|
1864
|
+
return this._getCustomTemplate(CardTemplateTypes.Header);
|
|
1865
|
+
};
|
|
1866
|
+
CardComponent.prototype._getBodyTemplate = function () {
|
|
1867
|
+
return this._getCustomTemplate(CardTemplateTypes.Body);
|
|
1868
|
+
};
|
|
1869
|
+
CardComponent.prototype._getFooterTemplate = function () {
|
|
1870
|
+
return this._getCustomTemplate(CardTemplateTypes.Footer);
|
|
1871
|
+
};
|
|
1872
|
+
CardComponent.prototype._getCustomTemplate = function (type) {
|
|
1873
|
+
var _a;
|
|
1874
|
+
return (_a = this.templates.find(function (template) { return template.type === type; })) === null || _a === void 0 ? void 0 : _a.template;
|
|
1875
|
+
};
|
|
1876
|
+
CardComponent.prototype._getTemplates = function () {
|
|
1877
|
+
this.headerTemplate = this._getHeaderTemplate();
|
|
1878
|
+
this.bodyTemplate = this._getBodyTemplate();
|
|
1879
|
+
this.footerTemplate = this._getFooterTemplate();
|
|
1880
|
+
this.hasCustomTemplates = !!(this.headerTemplate || this.bodyTemplate || this.footerTemplate);
|
|
1881
|
+
};
|
|
1882
|
+
CardComponent.prototype._testLoadImage = function () {
|
|
1883
|
+
var _this = this;
|
|
1884
|
+
var img = new Image();
|
|
1885
|
+
img.src = this.bannerImage;
|
|
1886
|
+
img.onload = function () { return (_this.showBanner = true); };
|
|
1887
|
+
img.onerror = function () { return (_this.showBanner = false); };
|
|
1888
|
+
};
|
|
1889
|
+
__decorate([
|
|
1890
|
+
Input()
|
|
1891
|
+
], CardComponent.prototype, "bannerImage", void 0);
|
|
1892
|
+
__decorate([
|
|
1893
|
+
Input()
|
|
1894
|
+
], CardComponent.prototype, "fullWidth", void 0);
|
|
1895
|
+
__decorate([
|
|
1896
|
+
ContentChildren(TemplateDirective)
|
|
1897
|
+
], CardComponent.prototype, "templates", void 0);
|
|
1898
|
+
CardComponent = __decorate([
|
|
1899
|
+
Component({
|
|
1900
|
+
selector: "s-card",
|
|
1901
|
+
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",
|
|
1902
|
+
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}"]
|
|
1903
|
+
})
|
|
1904
|
+
], CardComponent);
|
|
1905
|
+
return CardComponent;
|
|
1906
|
+
}());
|
|
1907
|
+
|
|
1908
|
+
var TemplateModule = /** @class */ (function () {
|
|
1909
|
+
function TemplateModule() {
|
|
1910
|
+
}
|
|
1911
|
+
TemplateModule = __decorate([
|
|
1912
|
+
NgModule({
|
|
1913
|
+
imports: [CommonModule],
|
|
1914
|
+
declarations: [TemplateDirective],
|
|
1915
|
+
exports: [TemplateDirective],
|
|
1916
|
+
})
|
|
1917
|
+
], TemplateModule);
|
|
1918
|
+
return TemplateModule;
|
|
1919
|
+
}());
|
|
1920
|
+
|
|
1921
|
+
var CardModule = /** @class */ (function () {
|
|
1922
|
+
function CardModule() {
|
|
1923
|
+
}
|
|
1924
|
+
CardModule = __decorate([
|
|
1925
|
+
NgModule({
|
|
1926
|
+
imports: [CommonModule],
|
|
1927
|
+
declarations: [CardComponent],
|
|
1928
|
+
exports: [CardComponent, TemplateModule],
|
|
1929
|
+
})
|
|
1930
|
+
], CardModule);
|
|
1931
|
+
return CardModule;
|
|
1932
|
+
}());
|
|
1933
|
+
|
|
1828
1934
|
var Languages;
|
|
1829
1935
|
(function (Languages) {
|
|
1830
1936
|
Languages["TaxCalculation"] = "TaxCalculation";
|
|
@@ -4046,6 +4152,38 @@ var CountryPhonePickerModule = /** @class */ (function () {
|
|
|
4046
4152
|
return CountryPhonePickerModule;
|
|
4047
4153
|
}());
|
|
4048
4154
|
|
|
4155
|
+
var CalendarLocaleOptions = /** @class */ (function () {
|
|
4156
|
+
function CalendarLocaleOptions(config) {
|
|
4157
|
+
var _this = this;
|
|
4158
|
+
if (config === void 0) { config = {}; }
|
|
4159
|
+
this.hourFormat = "24";
|
|
4160
|
+
this.dateFormat = "dd/mm/yy";
|
|
4161
|
+
this.firstDayOfWeek = 0;
|
|
4162
|
+
this.today = "Hoje";
|
|
4163
|
+
this.clear = "Limpar";
|
|
4164
|
+
this.dayNames = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"];
|
|
4165
|
+
this.dayNamesShort = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"];
|
|
4166
|
+
this.dayNamesMin = ["D", "S", "T", "Q", "Q", "S", "S"];
|
|
4167
|
+
this.monthNamesShort = ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"];
|
|
4168
|
+
this.monthNames = [
|
|
4169
|
+
"Janeiro",
|
|
4170
|
+
"Fevereiro",
|
|
4171
|
+
"Março",
|
|
4172
|
+
"Abril",
|
|
4173
|
+
"Maio",
|
|
4174
|
+
"Junho",
|
|
4175
|
+
"Julho",
|
|
4176
|
+
"Agosto",
|
|
4177
|
+
"Setembro",
|
|
4178
|
+
"Outubro",
|
|
4179
|
+
"Novembro",
|
|
4180
|
+
"Dezembro",
|
|
4181
|
+
];
|
|
4182
|
+
Object.keys(config).forEach(function (key) { return (_this[key] = config[key] || _this[key]); });
|
|
4183
|
+
}
|
|
4184
|
+
return CalendarLocaleOptions;
|
|
4185
|
+
}());
|
|
4186
|
+
|
|
4049
4187
|
var FieldType;
|
|
4050
4188
|
(function (FieldType) {
|
|
4051
4189
|
FieldType["Autocomplete"] = "Autocomplete";
|
|
@@ -4127,38 +4265,6 @@ var AutocompleteField = /** @class */ (function (_super) {
|
|
|
4127
4265
|
return AutocompleteField;
|
|
4128
4266
|
}(Field));
|
|
4129
4267
|
|
|
4130
|
-
var CalendarLocaleOptions = /** @class */ (function () {
|
|
4131
|
-
function CalendarLocaleOptions(config) {
|
|
4132
|
-
var _this = this;
|
|
4133
|
-
if (config === void 0) { config = {}; }
|
|
4134
|
-
this.hourFormat = "24";
|
|
4135
|
-
this.dateFormat = "dd/mm/yy";
|
|
4136
|
-
this.firstDayOfWeek = 0;
|
|
4137
|
-
this.today = "Hoje";
|
|
4138
|
-
this.clear = "Limpar";
|
|
4139
|
-
this.dayNames = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"];
|
|
4140
|
-
this.dayNamesShort = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"];
|
|
4141
|
-
this.dayNamesMin = ["D", "S", "T", "Q", "Q", "S", "S"];
|
|
4142
|
-
this.monthNamesShort = ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"];
|
|
4143
|
-
this.monthNames = [
|
|
4144
|
-
"Janeiro",
|
|
4145
|
-
"Fevereiro",
|
|
4146
|
-
"Março",
|
|
4147
|
-
"Abril",
|
|
4148
|
-
"Maio",
|
|
4149
|
-
"Junho",
|
|
4150
|
-
"Julho",
|
|
4151
|
-
"Agosto",
|
|
4152
|
-
"Setembro",
|
|
4153
|
-
"Outubro",
|
|
4154
|
-
"Novembro",
|
|
4155
|
-
"Dezembro",
|
|
4156
|
-
];
|
|
4157
|
-
Object.keys(config).forEach(function (key) { return (_this[key] = config[key] || _this[key]); });
|
|
4158
|
-
}
|
|
4159
|
-
return CalendarLocaleOptions;
|
|
4160
|
-
}());
|
|
4161
|
-
|
|
4162
4268
|
var NumberLocaleOptions = /** @class */ (function () {
|
|
4163
4269
|
function NumberLocaleOptions(config) {
|
|
4164
4270
|
if (config === void 0) { config = {}; }
|
|
@@ -4857,6 +4963,9 @@ var LookupField = /** @class */ (function (_super) {
|
|
|
4857
4963
|
_this.multiple = false;
|
|
4858
4964
|
_this.showSearch = true;
|
|
4859
4965
|
_this.autocompleteForceSelection = true;
|
|
4966
|
+
_this.showAddOption = false;
|
|
4967
|
+
_this.showEditOption = false;
|
|
4968
|
+
_this.showRemoveOption = false;
|
|
4860
4969
|
_this.onSelect = function (event) { };
|
|
4861
4970
|
_this.onUnselect = function (event) { };
|
|
4862
4971
|
Object.assign(_this, config);
|
|
@@ -5114,6 +5223,9 @@ var LookupComponent = /** @class */ (function () {
|
|
|
5114
5223
|
this.showSearch = true;
|
|
5115
5224
|
this.lookupAppendTo = "body";
|
|
5116
5225
|
this.searchFields = [];
|
|
5226
|
+
this.showAddOption = false;
|
|
5227
|
+
this.showEditOption = false;
|
|
5228
|
+
this.showRemoveOption = false;
|
|
5117
5229
|
this.onLookupRequest = new EventEmitter();
|
|
5118
5230
|
this.onSearchRequest = new EventEmitter();
|
|
5119
5231
|
this.onFocus = new EventEmitter();
|
|
@@ -5122,6 +5234,9 @@ var LookupComponent = /** @class */ (function () {
|
|
|
5122
5234
|
this.onSelect = new EventEmitter();
|
|
5123
5235
|
this.onUnselect = new EventEmitter();
|
|
5124
5236
|
this.onClear = new EventEmitter();
|
|
5237
|
+
this.onAdd = new EventEmitter();
|
|
5238
|
+
this.onEdit = new EventEmitter();
|
|
5239
|
+
this.onRemove = new EventEmitter();
|
|
5125
5240
|
this.dialogVisible = false;
|
|
5126
5241
|
this.collapsed = false;
|
|
5127
5242
|
this.selected = [];
|
|
@@ -5135,7 +5250,9 @@ var LookupComponent = /** @class */ (function () {
|
|
|
5135
5250
|
if (!this.searchGridFields) {
|
|
5136
5251
|
this.searchGridFields = this.searchFields.map(function (item) { return new FormField(__assign({}, item)); });
|
|
5137
5252
|
}
|
|
5138
|
-
this.searchFields = this.searchFields.map(function (value) {
|
|
5253
|
+
this.searchFields = this.searchFields.map(function (value) {
|
|
5254
|
+
return new FormField(__assign(__assign({}, value), { size: { sm: 12, md: 12, lg: 12, xl: 12 } }));
|
|
5255
|
+
});
|
|
5139
5256
|
this.searchGridFields = this.searchGridFields.map(function (gridField) {
|
|
5140
5257
|
gridField["width"] = _this.getColWidth(gridField.label);
|
|
5141
5258
|
var calendarOptions = new CalendarLocaleOptions(__assign({}, gridField.calendarLocaleOptions));
|
|
@@ -5170,12 +5287,11 @@ var LookupComponent = /** @class */ (function () {
|
|
|
5170
5287
|
var recordsLabel = this.recordsLabel
|
|
5171
5288
|
? this.searchTotalRecords + " " + this.recordsLabel
|
|
5172
5289
|
: this.translateService.instant("platform.angular_components.total_records", { count: this.searchTotalRecords });
|
|
5173
|
-
return this.searchTotalRecords === 1
|
|
5174
|
-
? recordLabel
|
|
5175
|
-
: recordsLabel;
|
|
5290
|
+
return this.searchTotalRecords === 1 ? recordLabel : recordsLabel;
|
|
5176
5291
|
};
|
|
5177
5292
|
LookupComponent.prototype._convertToMomentHourFormat = function (hourFormat, format) {
|
|
5178
|
-
if (format === "dd/mm/yy") {
|
|
5293
|
+
if (format === "dd/mm/yy") {
|
|
5294
|
+
// valor padrão para o format.
|
|
5179
5295
|
return "LTS";
|
|
5180
5296
|
}
|
|
5181
5297
|
if (hourFormat === "12") {
|
|
@@ -5245,14 +5361,11 @@ var LookupComponent = /** @class */ (function () {
|
|
|
5245
5361
|
this.defaultFilter
|
|
5246
5362
|
.filter(function (_a) {
|
|
5247
5363
|
var field = _a.field;
|
|
5248
|
-
return _this.formGroupDialog.contains(field) &&
|
|
5249
|
-
!_this.formGroupDialog.get([field]).dirty;
|
|
5364
|
+
return _this.formGroupDialog.contains(field) && !_this.formGroupDialog.get([field]).dirty;
|
|
5250
5365
|
})
|
|
5251
5366
|
.forEach(function (_a) {
|
|
5252
5367
|
var value = _a.value, field = _a.field;
|
|
5253
|
-
_this.formGroupDialog
|
|
5254
|
-
.get([field])
|
|
5255
|
-
.patchValue(value instanceof Function ? value() : value);
|
|
5368
|
+
_this.formGroupDialog.get([field]).patchValue(value instanceof Function ? value() : value);
|
|
5256
5369
|
});
|
|
5257
5370
|
};
|
|
5258
5371
|
LookupComponent.prototype.showDialog = function () {
|
|
@@ -5352,7 +5465,7 @@ var LookupComponent = /** @class */ (function () {
|
|
|
5352
5465
|
return this.emptyFieldLabel;
|
|
5353
5466
|
};
|
|
5354
5467
|
LookupComponent.prototype.isNumber = function (obj, path) {
|
|
5355
|
-
return !
|
|
5468
|
+
return !new BigNumber(this.getFieldValue(obj, path)).isNaN();
|
|
5356
5469
|
};
|
|
5357
5470
|
LookupComponent.prototype.setHotkeys = function () {
|
|
5358
5471
|
var _this = this;
|
|
@@ -5444,31 +5557,19 @@ var LookupComponent = /** @class */ (function () {
|
|
|
5444
5557
|
};
|
|
5445
5558
|
LookupComponent.prototype._subscribeEvents = function () {
|
|
5446
5559
|
var _this = this;
|
|
5447
|
-
this.onSearchRequest
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
this.
|
|
5451
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
5452
|
-
.subscribe(function () { return _this.onChange(_this.value); });
|
|
5453
|
-
this.onUnselect
|
|
5454
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
5455
|
-
.subscribe(function () { return _this.onChange(_this.value); });
|
|
5456
|
-
this.onClear
|
|
5457
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
5458
|
-
.subscribe(function () {
|
|
5560
|
+
this.onSearchRequest.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () { return (_this.loading = true); });
|
|
5561
|
+
this.onSelect.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () { return _this.onChange(_this.value); });
|
|
5562
|
+
this.onUnselect.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () { return _this.onChange(_this.value); });
|
|
5563
|
+
this.onClear.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () {
|
|
5459
5564
|
if (_this.multiple) {
|
|
5460
5565
|
return;
|
|
5461
5566
|
}
|
|
5462
5567
|
_this.onChange(null);
|
|
5463
5568
|
});
|
|
5464
|
-
this.onFocus
|
|
5465
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
5466
|
-
.subscribe(function () {
|
|
5569
|
+
this.onFocus.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function () {
|
|
5467
5570
|
_this.onTouched();
|
|
5468
5571
|
});
|
|
5469
|
-
this.onBlur
|
|
5470
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
5471
|
-
.subscribe(function (event) {
|
|
5572
|
+
this.onBlur.pipe(takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
|
|
5472
5573
|
var target = event.target;
|
|
5473
5574
|
var currentValue = _this.value && _this.value[_this.lookupDisplayField];
|
|
5474
5575
|
var value = target.value;
|
|
@@ -5554,6 +5655,15 @@ var LookupComponent = /** @class */ (function () {
|
|
|
5554
5655
|
__decorate([
|
|
5555
5656
|
Input()
|
|
5556
5657
|
], LookupComponent.prototype, "defaultFilter", void 0);
|
|
5658
|
+
__decorate([
|
|
5659
|
+
Input()
|
|
5660
|
+
], LookupComponent.prototype, "showAddOption", void 0);
|
|
5661
|
+
__decorate([
|
|
5662
|
+
Input()
|
|
5663
|
+
], LookupComponent.prototype, "showEditOption", void 0);
|
|
5664
|
+
__decorate([
|
|
5665
|
+
Input()
|
|
5666
|
+
], LookupComponent.prototype, "showRemoveOption", void 0);
|
|
5557
5667
|
__decorate([
|
|
5558
5668
|
Output()
|
|
5559
5669
|
], LookupComponent.prototype, "onLookupRequest", void 0);
|
|
@@ -5578,6 +5688,15 @@ var LookupComponent = /** @class */ (function () {
|
|
|
5578
5688
|
__decorate([
|
|
5579
5689
|
Output()
|
|
5580
5690
|
], LookupComponent.prototype, "onClear", void 0);
|
|
5691
|
+
__decorate([
|
|
5692
|
+
Output()
|
|
5693
|
+
], LookupComponent.prototype, "onAdd", void 0);
|
|
5694
|
+
__decorate([
|
|
5695
|
+
Output()
|
|
5696
|
+
], LookupComponent.prototype, "onEdit", void 0);
|
|
5697
|
+
__decorate([
|
|
5698
|
+
Output()
|
|
5699
|
+
], LookupComponent.prototype, "onRemove", void 0);
|
|
5581
5700
|
__decorate([
|
|
5582
5701
|
ViewChild(Table, { static: false })
|
|
5583
5702
|
], LookupComponent.prototype, "table", void 0);
|
|
@@ -5624,7 +5743,7 @@ var LookupComponent = /** @class */ (function () {
|
|
|
5624
5743
|
Injectable(),
|
|
5625
5744
|
Component({
|
|
5626
5745
|
selector: "s-lookup",
|
|
5627
|
-
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",
|
|
5746
|
+
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",
|
|
5628
5747
|
providers: [
|
|
5629
5748
|
{
|
|
5630
5749
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -9150,7 +9269,7 @@ var LookupFieldComponent = /** @class */ (function () {
|
|
|
9150
9269
|
], LookupFieldComponent.prototype, "formControl", void 0);
|
|
9151
9270
|
LookupFieldComponent = __decorate([
|
|
9152
9271
|
Component({
|
|
9153
|
-
template: "<div
|
|
9272
|
+
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"
|
|
9154
9273
|
})
|
|
9155
9274
|
], LookupFieldComponent);
|
|
9156
9275
|
return LookupFieldComponent;
|
|
@@ -13100,37 +13219,6 @@ var GlobalSearchModule = /** @class */ (function () {
|
|
|
13100
13219
|
return GlobalSearchModule;
|
|
13101
13220
|
}());
|
|
13102
13221
|
|
|
13103
|
-
var TemplateDirective = /** @class */ (function () {
|
|
13104
|
-
function TemplateDirective(template) {
|
|
13105
|
-
this.template = template;
|
|
13106
|
-
}
|
|
13107
|
-
TemplateDirective.ctorParameters = function () { return [
|
|
13108
|
-
{ type: TemplateRef }
|
|
13109
|
-
]; };
|
|
13110
|
-
__decorate([
|
|
13111
|
-
Input("sTemplate")
|
|
13112
|
-
], TemplateDirective.prototype, "type", void 0);
|
|
13113
|
-
TemplateDirective = __decorate([
|
|
13114
|
-
Directive({
|
|
13115
|
-
selector: "[sTemplate]",
|
|
13116
|
-
})
|
|
13117
|
-
], TemplateDirective);
|
|
13118
|
-
return TemplateDirective;
|
|
13119
|
-
}());
|
|
13120
|
-
|
|
13121
|
-
var TemplateModule = /** @class */ (function () {
|
|
13122
|
-
function TemplateModule() {
|
|
13123
|
-
}
|
|
13124
|
-
TemplateModule = __decorate([
|
|
13125
|
-
NgModule({
|
|
13126
|
-
imports: [CommonModule],
|
|
13127
|
-
declarations: [TemplateDirective],
|
|
13128
|
-
exports: [TemplateDirective],
|
|
13129
|
-
})
|
|
13130
|
-
], TemplateModule);
|
|
13131
|
-
return TemplateModule;
|
|
13132
|
-
}());
|
|
13133
|
-
|
|
13134
13222
|
var IAInsightCardComponent = /** @class */ (function () {
|
|
13135
13223
|
function IAInsightCardComponent(clipboard, messageService, translateService) {
|
|
13136
13224
|
this.clipboard = clipboard;
|
|
@@ -16971,6 +17059,8 @@ var fallback = {
|
|
|
16971
17059
|
"platform.angular_components.date_format": "dd/mm/yy",
|
|
16972
17060
|
"platform.angular_components.ia_text_generator": "Gerador de texto por IA",
|
|
16973
17061
|
"platform.angular_components.attach_files": "Anexar arquivos",
|
|
17062
|
+
"platform.angular_components.add": "Adicionar",
|
|
17063
|
+
"platform.angular_components.edit": "Editar",
|
|
16974
17064
|
"platform.angular_components.remove": "Remover",
|
|
16975
17065
|
"platform.angular_components.file_attached_successfully": "Arquivo anexado com sucesso",
|
|
16976
17066
|
"platform.angular_components.loading_file": "Carregando arquivo",
|
|
@@ -17221,5 +17311,5 @@ var fallback = {
|
|
|
17221
17311
|
* Generated bundle index. Do not edit.
|
|
17222
17312
|
*/
|
|
17223
17313
|
|
|
17224
|
-
export { AccordionComponent, AccordionModule, AccordionPanelComponent, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, KanbanComponent, KanbanModule, KanbanTemplateTypes, Languages, 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, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb,
|
|
17314
|
+
export { AccordionComponent, AccordionModule, AccordionPanelComponent, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, KanbanComponent, KanbanModule, KanbanTemplateTypes, Languages, 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, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, BignumberFieldComponent as ɵba, BooleanFieldComponent as ɵbb, BooleanSwitchFieldComponent as ɵbc, CalendarFieldComponent as ɵbd, ChipsFieldComponent as ɵbe, CountryPhonePickerFieldComponent as ɵbf, CurrencyFieldComponent as ɵbg, DynamicFieldComponent as ɵbh, DynamicFormDirective as ɵbi, FieldsetComponent as ɵbj, FileUploadComponent$1 as ɵbk, LookupFieldComponent as ɵbl, NumberFieldComponent as ɵbm, PasswordFieldComponent as ɵbn, RadioButtonComponent as ɵbo, RowComponent as ɵbp, SectionComponent as ɵbq, SelectFieldComponent as ɵbr, SliderFieldComponent as ɵbs, TextAreaFieldComponent as ɵbt, TextAreaIAFieldComponent as ɵbu, IAssistService as ɵbv, TextFieldComponent as ɵbw, DecimalField as ɵby, SideTableComponent as ɵbz, TemplateDirective as ɵc, ThumbnailService as ɵca, InfiniteScrollModule as ɵcb, InfiniteScrollDirective as ɵcc, IAInsightSidebarComponent as ɵcd, IAInsightCardComponent as ɵce, IAInsightCardLoaderComponent as ɵcf, StructureModule as ɵcg, HeaderComponent as ɵch, FooterComponent as ɵci, KanbanEventService as ɵcj, KanbanItemComponent as ɵck, KanbanColumnComponent as ɵcl, KanbanItemDraggingComponent as ɵcm, NumberLocaleOptions as ɵcn, BorderButtonModule as ɵco, BorderButtonComponent as ɵcp, SelectButtonItemComponent as ɵcq, SlidePanelService as ɵcr, TieredMenuEventService as ɵcs, TieredMenuService as ɵct, TieredMenuComponent as ɵcu, TieredMenuNestedComponent as ɵcv, TieredMenuItemComponent as ɵcw, TieredMenuDividerComponent as ɵcx, TimelineItemModule as ɵcy, TimelineIconItemComponent as ɵcz, TemplateModule as ɵd, HorizontalTimelineModule as ɵda, HorizontalTimelineComponent as ɵdb, VerticalTimelineModule as ɵdc, VerticalTimelineComponent as ɵdd, RangeLineComponent as ɵde, CollapseOptionComponent as ɵdf, CollapsedItemsComponent as ɵdg, VerticalItemsComponent as ɵdh, CustomTranslationsModule as ɵe, CodeEditorComponent as ɵf, CoreFacade as ɵg, CodeMirror6Core as ɵh, CountryPhonePickerService as ɵi, LocalizedCurrencyImpurePipe as ɵj, LocalizedBignumberPipe as ɵk, LocalizedBignumberImpurePipe as ɵl, EmptyStateGoBackComponent as ɵm, IAssistIconComponent as ɵn, SeniorIconComponent as ɵo, DotsIndicatorComponent as ɵp, LoadingIndicatorComponent as ɵq, ProgressBarDeterminateComponent as ɵr, ProgressBarIndeterminateComponent as ɵs, FileUploadService as ɵt, FileItemComponent as ɵu, LocaleService as ɵv, InfoSignComponent as ɵw, TableColumnsComponent as ɵx, TablePagingComponent as ɵy, AutocompleteFieldComponent as ɵz };
|
|
17225
17315
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|