@inspark/inspark-components 1.0.37 → 1.0.39
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/full/bundles/inspark-inspark-components.umd.js +15 -3
- package/full/bundles/inspark-inspark-components.umd.js.map +1 -1
- package/full/bundles/inspark-inspark-components.umd.min.js +1 -1
- package/full/bundles/inspark-inspark-components.umd.min.js.map +1 -1
- package/full/components/button/button.component.d.ts +1 -0
- package/full/components/content-toggle/content-toggle.component.d.ts +1 -1
- package/full/esm2015/components/button/button.component.js +10 -2
- package/full/esm2015/components/content-toggle/content-toggle.component.js +4 -4
- package/full/esm5/components/button/button.component.js +14 -2
- package/full/esm5/components/content-toggle/content-toggle.component.js +4 -4
- package/full/fesm2015/inspark-inspark-components.js +12 -4
- package/full/fesm2015/inspark-inspark-components.js.map +1 -1
- package/full/fesm5/inspark-inspark-components.js +16 -4
- package/full/fesm5/inspark-inspark-components.js.map +1 -1
- package/full/inspark-inspark-components.metadata.json +1 -1
- package/full/package.json +1 -1
- package/interface/package.json +1 -1
- package/package.json +1 -1
|
@@ -721,6 +721,13 @@
|
|
|
721
721
|
_this.isMaterialIcon = false;
|
|
722
722
|
return _this;
|
|
723
723
|
}
|
|
724
|
+
Object.defineProperty(ButtonComponent.prototype, "pointerEvents", {
|
|
725
|
+
get: function () {
|
|
726
|
+
return this.disabled ? 'none' : 'auto';
|
|
727
|
+
},
|
|
728
|
+
enumerable: true,
|
|
729
|
+
configurable: true
|
|
730
|
+
});
|
|
724
731
|
ButtonComponent.prototype.ngOnInit = function () {
|
|
725
732
|
this.updateData();
|
|
726
733
|
};
|
|
@@ -857,6 +864,11 @@
|
|
|
857
864
|
core.ViewChild(primeng.Menu, { static: false }),
|
|
858
865
|
__metadata("design:type", primeng.Menu)
|
|
859
866
|
], ButtonComponent.prototype, "_menu", void 0);
|
|
867
|
+
__decorate([
|
|
868
|
+
core.HostBinding('style.pointer-events'),
|
|
869
|
+
__metadata("design:type", String),
|
|
870
|
+
__metadata("design:paramtypes", [])
|
|
871
|
+
], ButtonComponent.prototype, "pointerEvents", null);
|
|
860
872
|
__decorate([
|
|
861
873
|
core.Output(),
|
|
862
874
|
__metadata("design:type", core.EventEmitter)
|
|
@@ -3705,7 +3717,7 @@
|
|
|
3705
3717
|
this.cdr = cdr;
|
|
3706
3718
|
this.isOpen = true;
|
|
3707
3719
|
this.icon = null;
|
|
3708
|
-
this.
|
|
3720
|
+
this.manualArrow = true;
|
|
3709
3721
|
this.toggle = new core.EventEmitter();
|
|
3710
3722
|
}
|
|
3711
3723
|
ContentToggleComponent.prototype.toggleOpen = function () {
|
|
@@ -3731,7 +3743,7 @@
|
|
|
3731
3743
|
__decorate([
|
|
3732
3744
|
core.Input(),
|
|
3733
3745
|
__metadata("design:type", Boolean)
|
|
3734
|
-
], ContentToggleComponent.prototype, "
|
|
3746
|
+
], ContentToggleComponent.prototype, "manualArrow", void 0);
|
|
3735
3747
|
__decorate([
|
|
3736
3748
|
core.Output(),
|
|
3737
3749
|
__metadata("design:type", core.EventEmitter)
|
|
@@ -3739,7 +3751,7 @@
|
|
|
3739
3751
|
ContentToggleComponent = __decorate([
|
|
3740
3752
|
core.Component({
|
|
3741
3753
|
selector: 'in-content-toggle',
|
|
3742
|
-
template: "<div class=\"block\" (click)=\"toggleOpen()\" tabIndex=\"1\">\n <span
|
|
3754
|
+
template: "<div class=\"block\" (click)=\"toggleOpen()\" tabIndex=\"1\">\n <span [ngClass]=\"{arrow: true, close: !isOpen}\">\n <in-svg *ngIf=\"manualArrow\" [src]=\"'arrow-down.svg'\" width=\"48px\" height=\"48px\"></in-svg>\n <ng-content select=\"[arrow]\"></ng-content>\n </span>\n <span class=\"label\">\n <in-svg *ngIf=\"icon\" class=\"label-icon\" [src]=\"icon\"></in-svg>\n {{label}}\n </span>\n <span class=\"counter\">\n <ng-content select=\"[header]\"></ng-content>\n </span>\n</div>\n<div class=\"container\" *ngIf=\"isOpen\">\n <ng-content select=\"[body]\"></ng-content>\n</div>\n",
|
|
3743
3755
|
styles: ["@charset \"UTF-8\";.block{font-size:12px;text-transform:uppercase;cursor:pointer;display:flex;white-space:nowrap}.block:hover{background:var(--colorBgLevel2)}.block>span{display:inline-block;margin-right:4px}.block .label{margin-right:8px;display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis}.block .counter{display:flex;align-items:center;padding-right:8px}.block .arrow{margin-right:0}.block .arrow.close{transform:rotate(-90deg)}.label-icon{margin-right:4px;width:16px;height:16px}"]
|
|
3744
3756
|
}),
|
|
3745
3757
|
__metadata("design:paramtypes", [core.ChangeDetectorRef])
|