@igo2/common 1.14.1 → 1.14.2
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/esm2020/lib/badge-icon/badge-icon.directive.mjs +20 -4
- package/esm2020/lib/entity/entity-table/entity-table.component.mjs +2 -2
- package/fesm2015/igo2-common.mjs +20 -4
- package/fesm2015/igo2-common.mjs.map +1 -1
- package/fesm2020/igo2-common.mjs +20 -4
- package/fesm2020/igo2-common.mjs.map +1 -1
- package/lib/badge-icon/badge-icon.directive.d.ts +5 -1
- package/package.json +3 -3
package/fesm2020/igo2-common.mjs
CHANGED
|
@@ -2983,7 +2983,7 @@ class EntityTableComponent {
|
|
|
2983
2983
|
}
|
|
2984
2984
|
}
|
|
2985
2985
|
else if (column.type === 'date') {
|
|
2986
|
-
if (column.visible) {
|
|
2986
|
+
if (column.visible !== false) {
|
|
2987
2987
|
if (item[key]) {
|
|
2988
2988
|
let date = moment(item[key]);
|
|
2989
2989
|
item[key] = date.utc().format('YYYY-MM-DD');
|
|
@@ -4251,6 +4251,14 @@ class IgoBadgeIconDirective {
|
|
|
4251
4251
|
this.inheritColor = value;
|
|
4252
4252
|
this.updateColor();
|
|
4253
4253
|
}
|
|
4254
|
+
set igoMatBadgeColor(value) {
|
|
4255
|
+
this.color = value;
|
|
4256
|
+
this.updateColor();
|
|
4257
|
+
}
|
|
4258
|
+
set igoMatBadgeBackgroundColor(value) {
|
|
4259
|
+
this.backgroundColor = value;
|
|
4260
|
+
this.updateColor();
|
|
4261
|
+
}
|
|
4254
4262
|
get badge() {
|
|
4255
4263
|
return this.el.nativeElement.querySelector('.mat-badge-content');
|
|
4256
4264
|
}
|
|
@@ -4274,7 +4282,11 @@ class IgoBadgeIconDirective {
|
|
|
4274
4282
|
if (!this.badge) {
|
|
4275
4283
|
return;
|
|
4276
4284
|
}
|
|
4277
|
-
if (this.
|
|
4285
|
+
if (this.color || this.backgroundColor) {
|
|
4286
|
+
this.badge.style.color = this.color ? this.color : '';
|
|
4287
|
+
this.badge.style.background = this.backgroundColor ? this.backgroundColor : '';
|
|
4288
|
+
}
|
|
4289
|
+
else if (this.inheritColor) {
|
|
4278
4290
|
if (this.inverseColor) {
|
|
4279
4291
|
this.badge.style.color = 'currentColor';
|
|
4280
4292
|
this.badge.style.background = 'none';
|
|
@@ -4284,7 +4296,7 @@ class IgoBadgeIconDirective {
|
|
|
4284
4296
|
this.badge.style.background = 'currentColor';
|
|
4285
4297
|
}
|
|
4286
4298
|
}
|
|
4287
|
-
else {
|
|
4299
|
+
else if (!this.inheritColor) {
|
|
4288
4300
|
if (this.inverseColor) {
|
|
4289
4301
|
this.badge.style.color = window
|
|
4290
4302
|
.getComputedStyle(this.badge, null)
|
|
@@ -4319,7 +4331,7 @@ class IgoBadgeIconDirective {
|
|
|
4319
4331
|
}
|
|
4320
4332
|
}
|
|
4321
4333
|
IgoBadgeIconDirective.ɵfac = function IgoBadgeIconDirective_Factory(t) { return new (t || IgoBadgeIconDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i3$2.MatIconRegistry)); };
|
|
4322
|
-
IgoBadgeIconDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: IgoBadgeIconDirective, selectors: [["", "igoMatBadgeIcon", ""]], inputs: { igoMatBadgeIcon: "igoMatBadgeIcon", matBadgeHidden: "matBadgeHidden", matBadgeDisabled: "matBadgeDisabled", igoMatBadgeInverseColor: "igoMatBadgeInverseColor", igoMatBadgeInheritColor: "igoMatBadgeInheritColor" } });
|
|
4334
|
+
IgoBadgeIconDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: IgoBadgeIconDirective, selectors: [["", "igoMatBadgeIcon", ""]], inputs: { igoMatBadgeIcon: "igoMatBadgeIcon", matBadgeHidden: "matBadgeHidden", matBadgeDisabled: "matBadgeDisabled", igoMatBadgeInverseColor: "igoMatBadgeInverseColor", igoMatBadgeInheritColor: "igoMatBadgeInheritColor", igoMatBadgeColor: "igoMatBadgeColor", igoMatBadgeBackgroundColor: "igoMatBadgeBackgroundColor" } });
|
|
4323
4335
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoBadgeIconDirective, [{
|
|
4324
4336
|
type: Directive,
|
|
4325
4337
|
args: [{
|
|
@@ -4335,6 +4347,10 @@ IgoBadgeIconDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: IgoBa
|
|
|
4335
4347
|
type: Input
|
|
4336
4348
|
}], igoMatBadgeInheritColor: [{
|
|
4337
4349
|
type: Input
|
|
4350
|
+
}], igoMatBadgeColor: [{
|
|
4351
|
+
type: Input
|
|
4352
|
+
}], igoMatBadgeBackgroundColor: [{
|
|
4353
|
+
type: Input
|
|
4338
4354
|
}] }); })();
|
|
4339
4355
|
|
|
4340
4356
|
class IgoMatBadgeIconModule {
|