@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, __awaiter, __param, __rest } 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';
|
|
@@ -1748,6 +1748,103 @@ CalendarMaskModule = __decorate([
|
|
|
1748
1748
|
})
|
|
1749
1749
|
], CalendarMaskModule);
|
|
1750
1750
|
|
|
1751
|
+
let TemplateDirective = class TemplateDirective {
|
|
1752
|
+
constructor(template) {
|
|
1753
|
+
this.template = template;
|
|
1754
|
+
}
|
|
1755
|
+
};
|
|
1756
|
+
TemplateDirective.ctorParameters = () => [
|
|
1757
|
+
{ type: TemplateRef }
|
|
1758
|
+
];
|
|
1759
|
+
__decorate([
|
|
1760
|
+
Input("sTemplate")
|
|
1761
|
+
], TemplateDirective.prototype, "type", void 0);
|
|
1762
|
+
TemplateDirective = __decorate([
|
|
1763
|
+
Directive({
|
|
1764
|
+
selector: "[sTemplate]",
|
|
1765
|
+
})
|
|
1766
|
+
], TemplateDirective);
|
|
1767
|
+
|
|
1768
|
+
var CardTemplateTypes;
|
|
1769
|
+
(function (CardTemplateTypes) {
|
|
1770
|
+
CardTemplateTypes["Header"] = "header";
|
|
1771
|
+
CardTemplateTypes["Body"] = "body";
|
|
1772
|
+
CardTemplateTypes["Footer"] = "footer";
|
|
1773
|
+
})(CardTemplateTypes || (CardTemplateTypes = {}));
|
|
1774
|
+
|
|
1775
|
+
let CardComponent = class CardComponent {
|
|
1776
|
+
constructor() {
|
|
1777
|
+
this.fullWidth = false;
|
|
1778
|
+
this.showBanner = false;
|
|
1779
|
+
this.hasCustomTemplates = false;
|
|
1780
|
+
}
|
|
1781
|
+
ngAfterContentInit() {
|
|
1782
|
+
this._getTemplates();
|
|
1783
|
+
this._testLoadImage();
|
|
1784
|
+
}
|
|
1785
|
+
_getHeaderTemplate() {
|
|
1786
|
+
return this._getCustomTemplate(CardTemplateTypes.Header);
|
|
1787
|
+
}
|
|
1788
|
+
_getBodyTemplate() {
|
|
1789
|
+
return this._getCustomTemplate(CardTemplateTypes.Body);
|
|
1790
|
+
}
|
|
1791
|
+
_getFooterTemplate() {
|
|
1792
|
+
return this._getCustomTemplate(CardTemplateTypes.Footer);
|
|
1793
|
+
}
|
|
1794
|
+
_getCustomTemplate(type) {
|
|
1795
|
+
var _a;
|
|
1796
|
+
return (_a = this.templates.find((template) => template.type === type)) === null || _a === void 0 ? void 0 : _a.template;
|
|
1797
|
+
}
|
|
1798
|
+
_getTemplates() {
|
|
1799
|
+
this.headerTemplate = this._getHeaderTemplate();
|
|
1800
|
+
this.bodyTemplate = this._getBodyTemplate();
|
|
1801
|
+
this.footerTemplate = this._getFooterTemplate();
|
|
1802
|
+
this.hasCustomTemplates = !!(this.headerTemplate || this.bodyTemplate || this.footerTemplate);
|
|
1803
|
+
}
|
|
1804
|
+
_testLoadImage() {
|
|
1805
|
+
const img = new Image();
|
|
1806
|
+
img.src = this.bannerImage;
|
|
1807
|
+
img.onload = () => (this.showBanner = true);
|
|
1808
|
+
img.onerror = () => (this.showBanner = false);
|
|
1809
|
+
}
|
|
1810
|
+
};
|
|
1811
|
+
__decorate([
|
|
1812
|
+
Input()
|
|
1813
|
+
], CardComponent.prototype, "bannerImage", void 0);
|
|
1814
|
+
__decorate([
|
|
1815
|
+
Input()
|
|
1816
|
+
], CardComponent.prototype, "fullWidth", void 0);
|
|
1817
|
+
__decorate([
|
|
1818
|
+
ContentChildren(TemplateDirective)
|
|
1819
|
+
], CardComponent.prototype, "templates", void 0);
|
|
1820
|
+
CardComponent = __decorate([
|
|
1821
|
+
Component({
|
|
1822
|
+
selector: "s-card",
|
|
1823
|
+
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",
|
|
1824
|
+
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}"]
|
|
1825
|
+
})
|
|
1826
|
+
], CardComponent);
|
|
1827
|
+
|
|
1828
|
+
let TemplateModule = class TemplateModule {
|
|
1829
|
+
};
|
|
1830
|
+
TemplateModule = __decorate([
|
|
1831
|
+
NgModule({
|
|
1832
|
+
imports: [CommonModule],
|
|
1833
|
+
declarations: [TemplateDirective],
|
|
1834
|
+
exports: [TemplateDirective],
|
|
1835
|
+
})
|
|
1836
|
+
], TemplateModule);
|
|
1837
|
+
|
|
1838
|
+
let CardModule = class CardModule {
|
|
1839
|
+
};
|
|
1840
|
+
CardModule = __decorate([
|
|
1841
|
+
NgModule({
|
|
1842
|
+
imports: [CommonModule],
|
|
1843
|
+
declarations: [CardComponent],
|
|
1844
|
+
exports: [CardComponent, TemplateModule],
|
|
1845
|
+
})
|
|
1846
|
+
], CardModule);
|
|
1847
|
+
|
|
1751
1848
|
var Languages;
|
|
1752
1849
|
(function (Languages) {
|
|
1753
1850
|
Languages["TaxCalculation"] = "TaxCalculation";
|
|
@@ -3823,6 +3920,35 @@ CountryPhonePickerModule = __decorate([
|
|
|
3823
3920
|
})
|
|
3824
3921
|
], CountryPhonePickerModule);
|
|
3825
3922
|
|
|
3923
|
+
class CalendarLocaleOptions {
|
|
3924
|
+
constructor(config = {}) {
|
|
3925
|
+
this.hourFormat = "24";
|
|
3926
|
+
this.dateFormat = "dd/mm/yy";
|
|
3927
|
+
this.firstDayOfWeek = 0;
|
|
3928
|
+
this.today = "Hoje";
|
|
3929
|
+
this.clear = "Limpar";
|
|
3930
|
+
this.dayNames = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"];
|
|
3931
|
+
this.dayNamesShort = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"];
|
|
3932
|
+
this.dayNamesMin = ["D", "S", "T", "Q", "Q", "S", "S"];
|
|
3933
|
+
this.monthNamesShort = ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"];
|
|
3934
|
+
this.monthNames = [
|
|
3935
|
+
"Janeiro",
|
|
3936
|
+
"Fevereiro",
|
|
3937
|
+
"Março",
|
|
3938
|
+
"Abril",
|
|
3939
|
+
"Maio",
|
|
3940
|
+
"Junho",
|
|
3941
|
+
"Julho",
|
|
3942
|
+
"Agosto",
|
|
3943
|
+
"Setembro",
|
|
3944
|
+
"Outubro",
|
|
3945
|
+
"Novembro",
|
|
3946
|
+
"Dezembro",
|
|
3947
|
+
];
|
|
3948
|
+
Object.keys(config).forEach(key => (this[key] = config[key] || this[key]));
|
|
3949
|
+
}
|
|
3950
|
+
}
|
|
3951
|
+
|
|
3826
3952
|
var FieldType;
|
|
3827
3953
|
(function (FieldType) {
|
|
3828
3954
|
FieldType["Autocomplete"] = "Autocomplete";
|
|
@@ -3897,35 +4023,6 @@ class AutocompleteField extends Field {
|
|
|
3897
4023
|
}
|
|
3898
4024
|
}
|
|
3899
4025
|
|
|
3900
|
-
class CalendarLocaleOptions {
|
|
3901
|
-
constructor(config = {}) {
|
|
3902
|
-
this.hourFormat = "24";
|
|
3903
|
-
this.dateFormat = "dd/mm/yy";
|
|
3904
|
-
this.firstDayOfWeek = 0;
|
|
3905
|
-
this.today = "Hoje";
|
|
3906
|
-
this.clear = "Limpar";
|
|
3907
|
-
this.dayNames = ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"];
|
|
3908
|
-
this.dayNamesShort = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"];
|
|
3909
|
-
this.dayNamesMin = ["D", "S", "T", "Q", "Q", "S", "S"];
|
|
3910
|
-
this.monthNamesShort = ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"];
|
|
3911
|
-
this.monthNames = [
|
|
3912
|
-
"Janeiro",
|
|
3913
|
-
"Fevereiro",
|
|
3914
|
-
"Março",
|
|
3915
|
-
"Abril",
|
|
3916
|
-
"Maio",
|
|
3917
|
-
"Junho",
|
|
3918
|
-
"Julho",
|
|
3919
|
-
"Agosto",
|
|
3920
|
-
"Setembro",
|
|
3921
|
-
"Outubro",
|
|
3922
|
-
"Novembro",
|
|
3923
|
-
"Dezembro",
|
|
3924
|
-
];
|
|
3925
|
-
Object.keys(config).forEach(key => (this[key] = config[key] || this[key]));
|
|
3926
|
-
}
|
|
3927
|
-
}
|
|
3928
|
-
|
|
3929
4026
|
class NumberLocaleOptions {
|
|
3930
4027
|
constructor(config = {}) {
|
|
3931
4028
|
this.thousandsSeparator = ".";
|
|
@@ -4543,6 +4640,9 @@ class LookupField extends Field {
|
|
|
4543
4640
|
this.multiple = false;
|
|
4544
4641
|
this.showSearch = true;
|
|
4545
4642
|
this.autocompleteForceSelection = true;
|
|
4643
|
+
this.showAddOption = false;
|
|
4644
|
+
this.showEditOption = false;
|
|
4645
|
+
this.showRemoveOption = false;
|
|
4546
4646
|
this.onSelect = (event) => { };
|
|
4547
4647
|
this.onUnselect = (event) => { };
|
|
4548
4648
|
Object.assign(this, config);
|
|
@@ -4758,6 +4858,9 @@ let LookupComponent = LookupComponent_1 = class LookupComponent {
|
|
|
4758
4858
|
this.showSearch = true;
|
|
4759
4859
|
this.lookupAppendTo = "body";
|
|
4760
4860
|
this.searchFields = [];
|
|
4861
|
+
this.showAddOption = false;
|
|
4862
|
+
this.showEditOption = false;
|
|
4863
|
+
this.showRemoveOption = false;
|
|
4761
4864
|
this.onLookupRequest = new EventEmitter();
|
|
4762
4865
|
this.onSearchRequest = new EventEmitter();
|
|
4763
4866
|
this.onFocus = new EventEmitter();
|
|
@@ -4766,6 +4869,9 @@ let LookupComponent = LookupComponent_1 = class LookupComponent {
|
|
|
4766
4869
|
this.onSelect = new EventEmitter();
|
|
4767
4870
|
this.onUnselect = new EventEmitter();
|
|
4768
4871
|
this.onClear = new EventEmitter();
|
|
4872
|
+
this.onAdd = new EventEmitter();
|
|
4873
|
+
this.onEdit = new EventEmitter();
|
|
4874
|
+
this.onRemove = new EventEmitter();
|
|
4769
4875
|
this.dialogVisible = false;
|
|
4770
4876
|
this.collapsed = false;
|
|
4771
4877
|
this.selected = [];
|
|
@@ -4775,7 +4881,7 @@ let LookupComponent = LookupComponent_1 = class LookupComponent {
|
|
|
4775
4881
|
}
|
|
4776
4882
|
ngOnInit() {
|
|
4777
4883
|
if (!this.searchGridFields) {
|
|
4778
|
-
this.searchGridFields = this.searchFields.map(item => new FormField(Object.assign({}, item)));
|
|
4884
|
+
this.searchGridFields = this.searchFields.map((item) => new FormField(Object.assign({}, item)));
|
|
4779
4885
|
}
|
|
4780
4886
|
this.searchFields = this.searchFields.map((value) => new FormField(Object.assign(Object.assign({}, value), { size: { sm: 12, md: 12, lg: 12, xl: 12 } })));
|
|
4781
4887
|
this.searchGridFields = this.searchGridFields.map((gridField) => {
|
|
@@ -4812,12 +4918,11 @@ let LookupComponent = LookupComponent_1 = class LookupComponent {
|
|
|
4812
4918
|
const recordsLabel = this.recordsLabel
|
|
4813
4919
|
? `${this.searchTotalRecords} ${this.recordsLabel}`
|
|
4814
4920
|
: this.translateService.instant("platform.angular_components.total_records", { count: this.searchTotalRecords });
|
|
4815
|
-
return this.searchTotalRecords === 1
|
|
4816
|
-
? recordLabel
|
|
4817
|
-
: recordsLabel;
|
|
4921
|
+
return this.searchTotalRecords === 1 ? recordLabel : recordsLabel;
|
|
4818
4922
|
}
|
|
4819
4923
|
_convertToMomentHourFormat(hourFormat, format) {
|
|
4820
|
-
if (format === "dd/mm/yy") {
|
|
4924
|
+
if (format === "dd/mm/yy") {
|
|
4925
|
+
// valor padrão para o format.
|
|
4821
4926
|
return "LTS";
|
|
4822
4927
|
}
|
|
4823
4928
|
if (hourFormat === "12") {
|
|
@@ -4884,12 +4989,9 @@ let LookupComponent = LookupComponent_1 = class LookupComponent {
|
|
|
4884
4989
|
if (!this.defaultFilter)
|
|
4885
4990
|
return;
|
|
4886
4991
|
this.defaultFilter
|
|
4887
|
-
.filter(({ field }) => this.formGroupDialog.contains(field) &&
|
|
4888
|
-
!this.formGroupDialog.get([field]).dirty)
|
|
4992
|
+
.filter(({ field }) => this.formGroupDialog.contains(field) && !this.formGroupDialog.get([field]).dirty)
|
|
4889
4993
|
.forEach(({ value, field }) => {
|
|
4890
|
-
this.formGroupDialog
|
|
4891
|
-
.get([field])
|
|
4892
|
-
.patchValue(value instanceof Function ? value() : value);
|
|
4994
|
+
this.formGroupDialog.get([field]).patchValue(value instanceof Function ? value() : value);
|
|
4893
4995
|
});
|
|
4894
4996
|
}
|
|
4895
4997
|
showDialog() {
|
|
@@ -4968,7 +5070,7 @@ let LookupComponent = LookupComponent_1 = class LookupComponent {
|
|
|
4968
5070
|
getLabelForValue(value, options) {
|
|
4969
5071
|
if (!options)
|
|
4970
5072
|
return value;
|
|
4971
|
-
const option = options.find(opt => opt.value === value);
|
|
5073
|
+
const option = options.find((opt) => opt.value === value);
|
|
4972
5074
|
return option ? option.label : value;
|
|
4973
5075
|
}
|
|
4974
5076
|
isBooleanValue(obj, path) {
|
|
@@ -4988,7 +5090,7 @@ let LookupComponent = LookupComponent_1 = class LookupComponent {
|
|
|
4988
5090
|
return this.emptyFieldLabel;
|
|
4989
5091
|
}
|
|
4990
5092
|
isNumber(obj, path) {
|
|
4991
|
-
return !
|
|
5093
|
+
return !new BigNumber(this.getFieldValue(obj, path)).isNaN();
|
|
4992
5094
|
}
|
|
4993
5095
|
setHotkeys() {
|
|
4994
5096
|
const clearHotkey = this.newHotkey("alt+shift+l", this.clear.bind(this));
|
|
@@ -5078,31 +5180,19 @@ let LookupComponent = LookupComponent_1 = class LookupComponent {
|
|
|
5078
5180
|
}
|
|
5079
5181
|
}
|
|
5080
5182
|
_subscribeEvents() {
|
|
5081
|
-
this.onSearchRequest
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
this.
|
|
5085
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
5086
|
-
.subscribe(() => this.onChange(this.value));
|
|
5087
|
-
this.onUnselect
|
|
5088
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
5089
|
-
.subscribe(() => this.onChange(this.value));
|
|
5090
|
-
this.onClear
|
|
5091
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
5092
|
-
.subscribe(() => {
|
|
5183
|
+
this.onSearchRequest.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => (this.loading = true));
|
|
5184
|
+
this.onSelect.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => this.onChange(this.value));
|
|
5185
|
+
this.onUnselect.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => this.onChange(this.value));
|
|
5186
|
+
this.onClear.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => {
|
|
5093
5187
|
if (this.multiple) {
|
|
5094
5188
|
return;
|
|
5095
5189
|
}
|
|
5096
5190
|
this.onChange(null);
|
|
5097
5191
|
});
|
|
5098
|
-
this.onFocus
|
|
5099
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
5100
|
-
.subscribe(() => {
|
|
5192
|
+
this.onFocus.pipe(takeUntil(this.ngUnsubscribe)).subscribe(() => {
|
|
5101
5193
|
this.onTouched();
|
|
5102
5194
|
});
|
|
5103
|
-
this.onBlur
|
|
5104
|
-
.pipe(takeUntil(this.ngUnsubscribe))
|
|
5105
|
-
.subscribe((event) => {
|
|
5195
|
+
this.onBlur.pipe(takeUntil(this.ngUnsubscribe)).subscribe((event) => {
|
|
5106
5196
|
const target = event.target;
|
|
5107
5197
|
const currentValue = this.value && this.value[this.lookupDisplayField];
|
|
5108
5198
|
const { value } = target;
|
|
@@ -5188,6 +5278,15 @@ __decorate([
|
|
|
5188
5278
|
__decorate([
|
|
5189
5279
|
Input()
|
|
5190
5280
|
], LookupComponent.prototype, "defaultFilter", void 0);
|
|
5281
|
+
__decorate([
|
|
5282
|
+
Input()
|
|
5283
|
+
], LookupComponent.prototype, "showAddOption", void 0);
|
|
5284
|
+
__decorate([
|
|
5285
|
+
Input()
|
|
5286
|
+
], LookupComponent.prototype, "showEditOption", void 0);
|
|
5287
|
+
__decorate([
|
|
5288
|
+
Input()
|
|
5289
|
+
], LookupComponent.prototype, "showRemoveOption", void 0);
|
|
5191
5290
|
__decorate([
|
|
5192
5291
|
Output()
|
|
5193
5292
|
], LookupComponent.prototype, "onLookupRequest", void 0);
|
|
@@ -5212,6 +5311,15 @@ __decorate([
|
|
|
5212
5311
|
__decorate([
|
|
5213
5312
|
Output()
|
|
5214
5313
|
], LookupComponent.prototype, "onClear", void 0);
|
|
5314
|
+
__decorate([
|
|
5315
|
+
Output()
|
|
5316
|
+
], LookupComponent.prototype, "onAdd", void 0);
|
|
5317
|
+
__decorate([
|
|
5318
|
+
Output()
|
|
5319
|
+
], LookupComponent.prototype, "onEdit", void 0);
|
|
5320
|
+
__decorate([
|
|
5321
|
+
Output()
|
|
5322
|
+
], LookupComponent.prototype, "onRemove", void 0);
|
|
5215
5323
|
__decorate([
|
|
5216
5324
|
ViewChild(Table, { static: false })
|
|
5217
5325
|
], LookupComponent.prototype, "table", void 0);
|
|
@@ -5258,7 +5366,7 @@ LookupComponent = LookupComponent_1 = __decorate([
|
|
|
5258
5366
|
Injectable(),
|
|
5259
5367
|
Component({
|
|
5260
5368
|
selector: "s-lookup",
|
|
5261
|
-
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",
|
|
5369
|
+
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",
|
|
5262
5370
|
providers: [
|
|
5263
5371
|
{
|
|
5264
5372
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -8543,7 +8651,7 @@ __decorate([
|
|
|
8543
8651
|
], LookupFieldComponent.prototype, "formControl", void 0);
|
|
8544
8652
|
LookupFieldComponent = __decorate([
|
|
8545
8653
|
Component({
|
|
8546
|
-
template: "<div
|
|
8654
|
+
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"
|
|
8547
8655
|
})
|
|
8548
8656
|
], LookupFieldComponent);
|
|
8549
8657
|
|
|
@@ -12262,33 +12370,6 @@ GlobalSearchModule = __decorate([
|
|
|
12262
12370
|
})
|
|
12263
12371
|
], GlobalSearchModule);
|
|
12264
12372
|
|
|
12265
|
-
let TemplateDirective = class TemplateDirective {
|
|
12266
|
-
constructor(template) {
|
|
12267
|
-
this.template = template;
|
|
12268
|
-
}
|
|
12269
|
-
};
|
|
12270
|
-
TemplateDirective.ctorParameters = () => [
|
|
12271
|
-
{ type: TemplateRef }
|
|
12272
|
-
];
|
|
12273
|
-
__decorate([
|
|
12274
|
-
Input("sTemplate")
|
|
12275
|
-
], TemplateDirective.prototype, "type", void 0);
|
|
12276
|
-
TemplateDirective = __decorate([
|
|
12277
|
-
Directive({
|
|
12278
|
-
selector: "[sTemplate]",
|
|
12279
|
-
})
|
|
12280
|
-
], TemplateDirective);
|
|
12281
|
-
|
|
12282
|
-
let TemplateModule = class TemplateModule {
|
|
12283
|
-
};
|
|
12284
|
-
TemplateModule = __decorate([
|
|
12285
|
-
NgModule({
|
|
12286
|
-
imports: [CommonModule],
|
|
12287
|
-
declarations: [TemplateDirective],
|
|
12288
|
-
exports: [TemplateDirective],
|
|
12289
|
-
})
|
|
12290
|
-
], TemplateModule);
|
|
12291
|
-
|
|
12292
12373
|
let IAInsightCardComponent = class IAInsightCardComponent {
|
|
12293
12374
|
constructor(clipboard, messageService, translateService) {
|
|
12294
12375
|
this.clipboard = clipboard;
|
|
@@ -15915,6 +15996,8 @@ const fallback = {
|
|
|
15915
15996
|
"platform.angular_components.date_format": "dd/mm/yy",
|
|
15916
15997
|
"platform.angular_components.ia_text_generator": "Gerador de texto por IA",
|
|
15917
15998
|
"platform.angular_components.attach_files": "Anexar arquivos",
|
|
15999
|
+
"platform.angular_components.add": "Adicionar",
|
|
16000
|
+
"platform.angular_components.edit": "Editar",
|
|
15918
16001
|
"platform.angular_components.remove": "Remover",
|
|
15919
16002
|
"platform.angular_components.file_attached_successfully": "Arquivo anexado com sucesso",
|
|
15920
16003
|
"platform.angular_components.loading_file": "Carregando arquivo",
|
|
@@ -16165,5 +16248,5 @@ const fallback = {
|
|
|
16165
16248
|
* Generated bundle index. Do not edit.
|
|
16166
16249
|
*/
|
|
16167
16250
|
|
|
16168
|
-
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,
|
|
16251
|
+
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 };
|
|
16169
16252
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|