@seniorsistemas/angular-components 17.4.4 → 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 +160 -83
- 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/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/index.js +2 -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/index.js +2 -1
- package/esm5/seniorsistemas-angular-components.js +53 -53
- package/fesm2015/seniorsistemas-angular-components.js +99 -29
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +108 -33
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.d.ts +52 -52
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -1972,6 +1972,112 @@
|
|
|
1972
1972
|
return CalendarMaskModule;
|
|
1973
1973
|
}());
|
|
1974
1974
|
|
|
1975
|
+
var TemplateDirective = /** @class */ (function () {
|
|
1976
|
+
function TemplateDirective(template) {
|
|
1977
|
+
this.template = template;
|
|
1978
|
+
}
|
|
1979
|
+
TemplateDirective.ctorParameters = function () { return [
|
|
1980
|
+
{ type: core.TemplateRef }
|
|
1981
|
+
]; };
|
|
1982
|
+
__decorate([
|
|
1983
|
+
core.Input("sTemplate")
|
|
1984
|
+
], TemplateDirective.prototype, "type", void 0);
|
|
1985
|
+
TemplateDirective = __decorate([
|
|
1986
|
+
core.Directive({
|
|
1987
|
+
selector: "[sTemplate]",
|
|
1988
|
+
})
|
|
1989
|
+
], TemplateDirective);
|
|
1990
|
+
return TemplateDirective;
|
|
1991
|
+
}());
|
|
1992
|
+
|
|
1993
|
+
|
|
1994
|
+
(function (CardTemplateTypes) {
|
|
1995
|
+
CardTemplateTypes["Header"] = "header";
|
|
1996
|
+
CardTemplateTypes["Body"] = "body";
|
|
1997
|
+
CardTemplateTypes["Footer"] = "footer";
|
|
1998
|
+
})(exports.CardTemplateTypes || (exports.CardTemplateTypes = {}));
|
|
1999
|
+
|
|
2000
|
+
var CardComponent = /** @class */ (function () {
|
|
2001
|
+
function CardComponent() {
|
|
2002
|
+
this.fullWidth = false;
|
|
2003
|
+
this.showBanner = false;
|
|
2004
|
+
this.hasCustomTemplates = false;
|
|
2005
|
+
}
|
|
2006
|
+
CardComponent.prototype.ngAfterContentInit = function () {
|
|
2007
|
+
this._getTemplates();
|
|
2008
|
+
this._testLoadImage();
|
|
2009
|
+
};
|
|
2010
|
+
CardComponent.prototype._getHeaderTemplate = function () {
|
|
2011
|
+
return this._getCustomTemplate(exports.CardTemplateTypes.Header);
|
|
2012
|
+
};
|
|
2013
|
+
CardComponent.prototype._getBodyTemplate = function () {
|
|
2014
|
+
return this._getCustomTemplate(exports.CardTemplateTypes.Body);
|
|
2015
|
+
};
|
|
2016
|
+
CardComponent.prototype._getFooterTemplate = function () {
|
|
2017
|
+
return this._getCustomTemplate(exports.CardTemplateTypes.Footer);
|
|
2018
|
+
};
|
|
2019
|
+
CardComponent.prototype._getCustomTemplate = function (type) {
|
|
2020
|
+
var _a;
|
|
2021
|
+
return (_a = this.templates.find(function (template) { return template.type === type; })) === null || _a === void 0 ? void 0 : _a.template;
|
|
2022
|
+
};
|
|
2023
|
+
CardComponent.prototype._getTemplates = function () {
|
|
2024
|
+
this.headerTemplate = this._getHeaderTemplate();
|
|
2025
|
+
this.bodyTemplate = this._getBodyTemplate();
|
|
2026
|
+
this.footerTemplate = this._getFooterTemplate();
|
|
2027
|
+
this.hasCustomTemplates = !!(this.headerTemplate || this.bodyTemplate || this.footerTemplate);
|
|
2028
|
+
};
|
|
2029
|
+
CardComponent.prototype._testLoadImage = function () {
|
|
2030
|
+
var _this = this;
|
|
2031
|
+
var img = new Image();
|
|
2032
|
+
img.src = this.bannerImage;
|
|
2033
|
+
img.onload = function () { return (_this.showBanner = true); };
|
|
2034
|
+
img.onerror = function () { return (_this.showBanner = false); };
|
|
2035
|
+
};
|
|
2036
|
+
__decorate([
|
|
2037
|
+
core.Input()
|
|
2038
|
+
], CardComponent.prototype, "bannerImage", void 0);
|
|
2039
|
+
__decorate([
|
|
2040
|
+
core.Input()
|
|
2041
|
+
], CardComponent.prototype, "fullWidth", void 0);
|
|
2042
|
+
__decorate([
|
|
2043
|
+
core.ContentChildren(TemplateDirective)
|
|
2044
|
+
], CardComponent.prototype, "templates", void 0);
|
|
2045
|
+
CardComponent = __decorate([
|
|
2046
|
+
core.Component({
|
|
2047
|
+
selector: "s-card",
|
|
2048
|
+
template: "<div class=\"card\" [ngClass]=\"{ 'card--full-width': fullWidth }\">\n <div\n *ngIf=\"showBanner\"\n class=\"banner\"\n [ngStyle]=\"{'background-image': 'url(' + bannerImage + ')'}\">\n </div>\n\n <ng-container *ngIf=\"hasCustomTemplates; then customTemplates; else contentTemplate\"> </ng-container>\n\n <ng-template #customTemplates>\n <div *ngIf=\"headerTemplate\" class=\"header\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </div>\n <div *ngIf=\"bodyTemplate\" class=\"body\">\n <ng-container *ngTemplateOutlet=\"bodyTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </ng-template>\n\n <ng-template #contentTemplate>\n <div class=\"body\">\n <ng-content></ng-content>\n </div>\n </ng-template>\n</div>\n",
|
|
2049
|
+
styles: [".card{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;background-color:#fff;border-radius:4px;box-shadow:0 1px 5px 0 #00000040;overflow:hidden}.card--full-width{width:100%}.card .banner{background-repeat:no-repeat;background-size:cover;height:150px;width:100%}.card .header{padding:16px 12px}.card .body,.card .footer{padding:16px}.card .body+.footer,.card .header+.body{border-top:1px solid #c1c1cc}"]
|
|
2050
|
+
})
|
|
2051
|
+
], CardComponent);
|
|
2052
|
+
return CardComponent;
|
|
2053
|
+
}());
|
|
2054
|
+
|
|
2055
|
+
var TemplateModule = /** @class */ (function () {
|
|
2056
|
+
function TemplateModule() {
|
|
2057
|
+
}
|
|
2058
|
+
TemplateModule = __decorate([
|
|
2059
|
+
core.NgModule({
|
|
2060
|
+
imports: [common.CommonModule],
|
|
2061
|
+
declarations: [TemplateDirective],
|
|
2062
|
+
exports: [TemplateDirective],
|
|
2063
|
+
})
|
|
2064
|
+
], TemplateModule);
|
|
2065
|
+
return TemplateModule;
|
|
2066
|
+
}());
|
|
2067
|
+
|
|
2068
|
+
var CardModule = /** @class */ (function () {
|
|
2069
|
+
function CardModule() {
|
|
2070
|
+
}
|
|
2071
|
+
CardModule = __decorate([
|
|
2072
|
+
core.NgModule({
|
|
2073
|
+
imports: [common.CommonModule],
|
|
2074
|
+
declarations: [CardComponent],
|
|
2075
|
+
exports: [CardComponent, TemplateModule],
|
|
2076
|
+
})
|
|
2077
|
+
], CardModule);
|
|
2078
|
+
return CardModule;
|
|
2079
|
+
}());
|
|
2080
|
+
|
|
1975
2081
|
|
|
1976
2082
|
(function (Languages) {
|
|
1977
2083
|
Languages["TaxCalculation"] = "TaxCalculation";
|
|
@@ -13260,37 +13366,6 @@
|
|
|
13260
13366
|
return GlobalSearchModule;
|
|
13261
13367
|
}());
|
|
13262
13368
|
|
|
13263
|
-
var TemplateDirective = /** @class */ (function () {
|
|
13264
|
-
function TemplateDirective(template) {
|
|
13265
|
-
this.template = template;
|
|
13266
|
-
}
|
|
13267
|
-
TemplateDirective.ctorParameters = function () { return [
|
|
13268
|
-
{ type: core.TemplateRef }
|
|
13269
|
-
]; };
|
|
13270
|
-
__decorate([
|
|
13271
|
-
core.Input("sTemplate")
|
|
13272
|
-
], TemplateDirective.prototype, "type", void 0);
|
|
13273
|
-
TemplateDirective = __decorate([
|
|
13274
|
-
core.Directive({
|
|
13275
|
-
selector: "[sTemplate]",
|
|
13276
|
-
})
|
|
13277
|
-
], TemplateDirective);
|
|
13278
|
-
return TemplateDirective;
|
|
13279
|
-
}());
|
|
13280
|
-
|
|
13281
|
-
var TemplateModule = /** @class */ (function () {
|
|
13282
|
-
function TemplateModule() {
|
|
13283
|
-
}
|
|
13284
|
-
TemplateModule = __decorate([
|
|
13285
|
-
core.NgModule({
|
|
13286
|
-
imports: [common.CommonModule],
|
|
13287
|
-
declarations: [TemplateDirective],
|
|
13288
|
-
exports: [TemplateDirective],
|
|
13289
|
-
})
|
|
13290
|
-
], TemplateModule);
|
|
13291
|
-
return TemplateModule;
|
|
13292
|
-
}());
|
|
13293
|
-
|
|
13294
13369
|
var IAInsightCardComponent = /** @class */ (function () {
|
|
13295
13370
|
function IAInsightCardComponent(clipboard, messageService, translateService) {
|
|
13296
13371
|
this.clipboard = clipboard;
|
|
@@ -17401,6 +17476,8 @@
|
|
|
17401
17476
|
exports.CalendarLocaleOptions = CalendarLocaleOptions;
|
|
17402
17477
|
exports.CalendarMaskDirective = CalendarMaskDirective;
|
|
17403
17478
|
exports.CalendarMaskModule = CalendarMaskModule;
|
|
17479
|
+
exports.CardComponent = CardComponent;
|
|
17480
|
+
exports.CardModule = CardModule;
|
|
17404
17481
|
exports.ChipsField = ChipsField;
|
|
17405
17482
|
exports.CodeEditorModule = CodeEditorModule;
|
|
17406
17483
|
exports.CollapseLinkComponent = CollapseLinkComponent;
|
|
@@ -17539,35 +17616,35 @@
|
|
|
17539
17616
|
exports.fallback = fallback;
|
|
17540
17617
|
exports.ɵa = TooltipComponent;
|
|
17541
17618
|
exports.ɵb = TooltipDirective;
|
|
17542
|
-
exports.ɵba =
|
|
17543
|
-
exports.ɵbb =
|
|
17544
|
-
exports.ɵbc =
|
|
17545
|
-
exports.ɵbd =
|
|
17546
|
-
exports.ɵbe =
|
|
17547
|
-
exports.ɵbf =
|
|
17548
|
-
exports.ɵbg =
|
|
17549
|
-
exports.ɵbh =
|
|
17550
|
-
exports.ɵbi =
|
|
17551
|
-
exports.ɵbj =
|
|
17552
|
-
exports.ɵbk =
|
|
17553
|
-
exports.ɵbl =
|
|
17554
|
-
exports.ɵbm =
|
|
17555
|
-
exports.ɵbn =
|
|
17556
|
-
exports.ɵbo =
|
|
17557
|
-
exports.ɵbp =
|
|
17558
|
-
exports.ɵbq =
|
|
17559
|
-
exports.ɵbr =
|
|
17560
|
-
exports.ɵbs =
|
|
17561
|
-
exports.ɵbt =
|
|
17562
|
-
exports.ɵbu =
|
|
17563
|
-
exports.ɵ
|
|
17564
|
-
exports.ɵ
|
|
17565
|
-
exports.ɵby =
|
|
17566
|
-
exports.ɵbz =
|
|
17567
|
-
exports.ɵc =
|
|
17568
|
-
exports.ɵca =
|
|
17569
|
-
exports.ɵcb =
|
|
17570
|
-
exports.ɵcc =
|
|
17619
|
+
exports.ɵba = BignumberFieldComponent;
|
|
17620
|
+
exports.ɵbb = BooleanFieldComponent;
|
|
17621
|
+
exports.ɵbc = BooleanSwitchFieldComponent;
|
|
17622
|
+
exports.ɵbd = CalendarFieldComponent;
|
|
17623
|
+
exports.ɵbe = ChipsFieldComponent;
|
|
17624
|
+
exports.ɵbf = CountryPhonePickerFieldComponent;
|
|
17625
|
+
exports.ɵbg = CurrencyFieldComponent;
|
|
17626
|
+
exports.ɵbh = DynamicFieldComponent;
|
|
17627
|
+
exports.ɵbi = DynamicFormDirective;
|
|
17628
|
+
exports.ɵbj = FieldsetComponent;
|
|
17629
|
+
exports.ɵbk = FileUploadComponent$1;
|
|
17630
|
+
exports.ɵbl = LookupFieldComponent;
|
|
17631
|
+
exports.ɵbm = NumberFieldComponent;
|
|
17632
|
+
exports.ɵbn = PasswordFieldComponent;
|
|
17633
|
+
exports.ɵbo = RadioButtonComponent;
|
|
17634
|
+
exports.ɵbp = RowComponent;
|
|
17635
|
+
exports.ɵbq = SectionComponent;
|
|
17636
|
+
exports.ɵbr = SelectFieldComponent;
|
|
17637
|
+
exports.ɵbs = SliderFieldComponent;
|
|
17638
|
+
exports.ɵbt = TextAreaFieldComponent;
|
|
17639
|
+
exports.ɵbu = TextAreaIAFieldComponent;
|
|
17640
|
+
exports.ɵbv = IAssistService;
|
|
17641
|
+
exports.ɵbw = TextFieldComponent;
|
|
17642
|
+
exports.ɵby = DecimalField;
|
|
17643
|
+
exports.ɵbz = SideTableComponent;
|
|
17644
|
+
exports.ɵc = TemplateDirective;
|
|
17645
|
+
exports.ɵca = ThumbnailService;
|
|
17646
|
+
exports.ɵcb = InfiniteScrollModule;
|
|
17647
|
+
exports.ɵcc = InfiniteScrollDirective;
|
|
17571
17648
|
exports.ɵcd = IAInsightSidebarComponent;
|
|
17572
17649
|
exports.ɵce = IAInsightCardComponent;
|
|
17573
17650
|
exports.ɵcf = IAInsightCardLoaderComponent;
|
|
@@ -17591,7 +17668,7 @@
|
|
|
17591
17668
|
exports.ɵcx = TieredMenuDividerComponent;
|
|
17592
17669
|
exports.ɵcy = TimelineItemModule;
|
|
17593
17670
|
exports.ɵcz = TimelineIconItemComponent;
|
|
17594
|
-
exports.ɵd =
|
|
17671
|
+
exports.ɵd = TemplateModule;
|
|
17595
17672
|
exports.ɵda = HorizontalTimelineModule;
|
|
17596
17673
|
exports.ɵdb = HorizontalTimelineComponent;
|
|
17597
17674
|
exports.ɵdc = VerticalTimelineModule;
|
|
@@ -17600,28 +17677,28 @@
|
|
|
17600
17677
|
exports.ɵdf = CollapseOptionComponent;
|
|
17601
17678
|
exports.ɵdg = CollapsedItemsComponent;
|
|
17602
17679
|
exports.ɵdh = VerticalItemsComponent;
|
|
17603
|
-
exports.ɵe =
|
|
17604
|
-
exports.ɵf =
|
|
17605
|
-
exports.ɵg =
|
|
17606
|
-
exports.ɵh =
|
|
17607
|
-
exports.ɵi =
|
|
17608
|
-
exports.ɵj =
|
|
17609
|
-
exports.ɵk =
|
|
17610
|
-
exports.ɵl =
|
|
17611
|
-
exports.ɵm =
|
|
17612
|
-
exports.ɵn =
|
|
17613
|
-
exports.ɵo =
|
|
17614
|
-
exports.ɵp =
|
|
17615
|
-
exports.ɵq =
|
|
17616
|
-
exports.ɵr =
|
|
17617
|
-
exports.ɵs =
|
|
17618
|
-
exports.ɵt =
|
|
17619
|
-
exports.ɵu =
|
|
17620
|
-
exports.ɵv =
|
|
17621
|
-
exports.ɵw =
|
|
17622
|
-
exports.ɵx =
|
|
17623
|
-
exports.ɵy =
|
|
17624
|
-
exports.ɵz =
|
|
17680
|
+
exports.ɵe = CustomTranslationsModule;
|
|
17681
|
+
exports.ɵf = CodeEditorComponent;
|
|
17682
|
+
exports.ɵg = CoreFacade;
|
|
17683
|
+
exports.ɵh = CodeMirror6Core;
|
|
17684
|
+
exports.ɵi = CountryPhonePickerService;
|
|
17685
|
+
exports.ɵj = LocalizedCurrencyImpurePipe;
|
|
17686
|
+
exports.ɵk = LocalizedBignumberPipe;
|
|
17687
|
+
exports.ɵl = LocalizedBignumberImpurePipe;
|
|
17688
|
+
exports.ɵm = EmptyStateGoBackComponent;
|
|
17689
|
+
exports.ɵn = IAssistIconComponent;
|
|
17690
|
+
exports.ɵo = SeniorIconComponent;
|
|
17691
|
+
exports.ɵp = DotsIndicatorComponent;
|
|
17692
|
+
exports.ɵq = LoadingIndicatorComponent;
|
|
17693
|
+
exports.ɵr = ProgressBarDeterminateComponent;
|
|
17694
|
+
exports.ɵs = ProgressBarIndeterminateComponent;
|
|
17695
|
+
exports.ɵt = FileUploadService;
|
|
17696
|
+
exports.ɵu = FileItemComponent;
|
|
17697
|
+
exports.ɵv = LocaleService;
|
|
17698
|
+
exports.ɵw = InfoSignComponent;
|
|
17699
|
+
exports.ɵx = TableColumnsComponent;
|
|
17700
|
+
exports.ɵy = TablePagingComponent;
|
|
17701
|
+
exports.ɵz = AutocompleteFieldComponent;
|
|
17625
17702
|
|
|
17626
17703
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
17627
17704
|
|