@acorex/components 5.7.0 → 5.8.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/esm2020/lib/alert/alert.component.mjs +2 -8
- package/esm2020/lib/base/mixin/button-mixin.class.mjs +2 -2
- package/esm2020/lib/base/mixin/color-look-mixing.class.mjs +2 -2
- package/fesm2015/acorex-components.mjs +3 -9
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +3 -9
- package/fesm2020/acorex-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -322,7 +322,7 @@ function _ButtonComponentMixin(Base) {
|
|
|
322
322
|
'ax-state-disabled': this["disabled"],
|
|
323
323
|
'ax-state-selected': this.selected
|
|
324
324
|
};
|
|
325
|
-
cssClasses[`ax-${this['color'] || 'default'}${this['look'] ? '-' + this['look'] : '-
|
|
325
|
+
cssClasses[`ax-${this['color'] || 'default'}${this['look'] ? '-' + this['look'] : '-default'}`] = true;
|
|
326
326
|
return cssClasses;
|
|
327
327
|
}
|
|
328
328
|
};
|
|
@@ -362,7 +362,7 @@ function _ColorLookComponentMixin(Base) {
|
|
|
362
362
|
constructor(...args) {
|
|
363
363
|
super(...args);
|
|
364
364
|
this.colorChange = new EventEmitter();
|
|
365
|
-
this._color = '
|
|
365
|
+
this._color = 'primary';
|
|
366
366
|
this.lookChange = new EventEmitter();
|
|
367
367
|
this._look = null;
|
|
368
368
|
}
|
|
@@ -2573,16 +2573,10 @@ class AXAlertComponent extends AXBaseAlertMixin {
|
|
|
2573
2573
|
if (this.visible == undefined) {
|
|
2574
2574
|
this.visible = true;
|
|
2575
2575
|
}
|
|
2576
|
-
if (this._getHostElement().querySelector('ax-header')) {
|
|
2577
|
-
this._getHostElement().querySelector('.ax-alert-body').classList.add('ax-bg-black/[0.06]');
|
|
2578
|
-
}
|
|
2579
|
-
// this._buttons.changes.subscribe(c=>{
|
|
2580
|
-
// ;
|
|
2581
|
-
// })
|
|
2582
2576
|
setTimeout(() => {
|
|
2583
2577
|
this._buttons.forEach(c => {
|
|
2584
2578
|
c.color = this.color;
|
|
2585
|
-
c.look = this.look;
|
|
2579
|
+
c.look = this.look === 'outline' ? 'blank' : this.look;
|
|
2586
2580
|
});
|
|
2587
2581
|
this._cdr.markForCheck();
|
|
2588
2582
|
}, 100);
|