@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __metadata, __assign, __extends, __read, __values } from 'tslib';
|
|
2
|
-
import { Pipe, NgModule, Injectable, ComponentFactoryResolver, ApplicationRef, Injector, EventEmitter, ChangeDetectorRef, Input, ViewChild, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, forwardRef, ElementRef, TemplateRef, Directive, HostListener, ContentChildren, QueryList, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
2
|
+
import { Pipe, NgModule, Injectable, ComponentFactoryResolver, ApplicationRef, Injector, EventEmitter, ChangeDetectorRef, Input, ViewChild, HostBinding, Output, Component, ViewEncapsulation, ChangeDetectionStrategy, forwardRef, ElementRef, TemplateRef, Directive, HostListener, ContentChildren, QueryList, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
3
3
|
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
4
4
|
export { TranslateModule } from '@ngx-translate/core';
|
|
5
5
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
@@ -527,6 +527,13 @@ var ButtonComponent = /** @class */ (function (_super) {
|
|
|
527
527
|
_this.isMaterialIcon = false;
|
|
528
528
|
return _this;
|
|
529
529
|
}
|
|
530
|
+
Object.defineProperty(ButtonComponent.prototype, "pointerEvents", {
|
|
531
|
+
get: function () {
|
|
532
|
+
return this.disabled ? 'none' : 'auto';
|
|
533
|
+
},
|
|
534
|
+
enumerable: true,
|
|
535
|
+
configurable: true
|
|
536
|
+
});
|
|
530
537
|
ButtonComponent.prototype.ngOnInit = function () {
|
|
531
538
|
this.updateData();
|
|
532
539
|
};
|
|
@@ -663,6 +670,11 @@ var ButtonComponent = /** @class */ (function (_super) {
|
|
|
663
670
|
ViewChild(Menu, { static: false }),
|
|
664
671
|
__metadata("design:type", Menu)
|
|
665
672
|
], ButtonComponent.prototype, "_menu", void 0);
|
|
673
|
+
__decorate([
|
|
674
|
+
HostBinding('style.pointer-events'),
|
|
675
|
+
__metadata("design:type", String),
|
|
676
|
+
__metadata("design:paramtypes", [])
|
|
677
|
+
], ButtonComponent.prototype, "pointerEvents", null);
|
|
666
678
|
__decorate([
|
|
667
679
|
Output(),
|
|
668
680
|
__metadata("design:type", EventEmitter)
|
|
@@ -3511,7 +3523,7 @@ var ContentToggleComponent = /** @class */ (function () {
|
|
|
3511
3523
|
this.cdr = cdr;
|
|
3512
3524
|
this.isOpen = true;
|
|
3513
3525
|
this.icon = null;
|
|
3514
|
-
this.
|
|
3526
|
+
this.manualArrow = true;
|
|
3515
3527
|
this.toggle = new EventEmitter();
|
|
3516
3528
|
}
|
|
3517
3529
|
ContentToggleComponent.prototype.toggleOpen = function () {
|
|
@@ -3537,7 +3549,7 @@ var ContentToggleComponent = /** @class */ (function () {
|
|
|
3537
3549
|
__decorate([
|
|
3538
3550
|
Input(),
|
|
3539
3551
|
__metadata("design:type", Boolean)
|
|
3540
|
-
], ContentToggleComponent.prototype, "
|
|
3552
|
+
], ContentToggleComponent.prototype, "manualArrow", void 0);
|
|
3541
3553
|
__decorate([
|
|
3542
3554
|
Output(),
|
|
3543
3555
|
__metadata("design:type", EventEmitter)
|
|
@@ -3545,7 +3557,7 @@ var ContentToggleComponent = /** @class */ (function () {
|
|
|
3545
3557
|
ContentToggleComponent = __decorate([
|
|
3546
3558
|
Component({
|
|
3547
3559
|
selector: 'in-content-toggle',
|
|
3548
|
-
template: "<div class=\"block\" (click)=\"toggleOpen()\" tabIndex=\"1\">\n <span
|
|
3560
|
+
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",
|
|
3549
3561
|
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}"]
|
|
3550
3562
|
}),
|
|
3551
3563
|
__metadata("design:paramtypes", [ChangeDetectorRef])
|