@seniorsistemas/angular-components 16.12.2 → 16.12.3
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 +37 -37
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/slide-panel/index.d.ts +2 -0
- package/components/{slide-bar/slide-bar.component.d.ts → slide-panel/slide-panel.component.d.ts} +3 -3
- package/components/slide-panel/slide-panel.module.d.ts +2 -0
- package/esm2015/components/slide-panel/index.js +3 -0
- package/esm2015/components/slide-panel/slide-panel.component.js +105 -0
- package/esm2015/components/slide-panel/slide-panel.module.js +19 -0
- package/esm2015/public-api.js +2 -2
- package/esm5/components/slide-panel/index.js +3 -0
- package/esm5/components/slide-panel/slide-panel.component.js +107 -0
- package/esm5/components/slide-panel/slide-panel.module.js +22 -0
- package/esm5/public-api.js +2 -2
- package/fesm2015/seniorsistemas-angular-components.js +24 -24
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +36 -36
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
- package/components/slide-bar/index.d.ts +0 -2
- package/components/slide-bar/slide-bar.module.d.ts +0 -2
- package/esm2015/components/slide-bar/index.js +0 -3
- package/esm2015/components/slide-bar/slide-bar.component.js +0 -105
- package/esm2015/components/slide-bar/slide-bar.module.js +0 -19
- package/esm5/components/slide-bar/index.js +0 -3
- package/esm5/components/slide-bar/slide-bar.component.js +0 -107
- package/esm5/components/slide-bar/slide-bar.module.js +0 -22
|
@@ -9665,26 +9665,26 @@
|
|
|
9665
9665
|
}());
|
|
9666
9666
|
|
|
9667
9667
|
var SMALL_DEVICE_BREAKPOINT = 420;
|
|
9668
|
-
var
|
|
9669
|
-
function
|
|
9668
|
+
var SlidePanelComponent = /** @class */ (function () {
|
|
9669
|
+
function SlidePanelComponent() {
|
|
9670
9670
|
this.openIcon = "fas fa-chevron-right";
|
|
9671
9671
|
this.closeIcon = "fas fa-chevron-left";
|
|
9672
9672
|
this.cache = false;
|
|
9673
|
-
this.
|
|
9674
|
-
this.
|
|
9673
|
+
this.panelOpened = new core.EventEmitter();
|
|
9674
|
+
this.panelClosed = new core.EventEmitter();
|
|
9675
9675
|
this.slideHeight = 0;
|
|
9676
9676
|
this.isOpen = false;
|
|
9677
9677
|
this.isSlideOver = false;
|
|
9678
9678
|
this.isAnimating = false;
|
|
9679
9679
|
this.isContentAnimationDisabled = true;
|
|
9680
9680
|
}
|
|
9681
|
-
|
|
9681
|
+
SlidePanelComponent.prototype.onResize = function () {
|
|
9682
9682
|
this._checkOverBehavior();
|
|
9683
9683
|
};
|
|
9684
|
-
|
|
9684
|
+
SlidePanelComponent.prototype.ngOnInit = function () {
|
|
9685
9685
|
this._checkOverBehavior();
|
|
9686
9686
|
};
|
|
9687
|
-
|
|
9687
|
+
SlidePanelComponent.prototype.ngAfterViewChecked = function () {
|
|
9688
9688
|
var _this = this;
|
|
9689
9689
|
// to executed at a safe time prior to control returning to the browser's event loop
|
|
9690
9690
|
queueMicrotask(function () {
|
|
@@ -9692,58 +9692,58 @@
|
|
|
9692
9692
|
_this.isContentAnimationDisabled = false;
|
|
9693
9693
|
});
|
|
9694
9694
|
};
|
|
9695
|
-
|
|
9695
|
+
SlidePanelComponent.prototype.onClickButton = function () {
|
|
9696
9696
|
if (this.isAnimating) {
|
|
9697
9697
|
return;
|
|
9698
9698
|
}
|
|
9699
9699
|
this.isOpen = !this.isOpen;
|
|
9700
9700
|
if (this.isOpen) {
|
|
9701
|
-
this.
|
|
9701
|
+
this.panelOpened.emit();
|
|
9702
9702
|
}
|
|
9703
9703
|
else {
|
|
9704
|
-
this.
|
|
9704
|
+
this.panelClosed.emit();
|
|
9705
9705
|
}
|
|
9706
9706
|
};
|
|
9707
|
-
|
|
9707
|
+
SlidePanelComponent.prototype.onContentAnimationStart = function () {
|
|
9708
9708
|
this.isAnimating = true;
|
|
9709
9709
|
};
|
|
9710
|
-
|
|
9710
|
+
SlidePanelComponent.prototype.onContentAnimationDone = function () {
|
|
9711
9711
|
this.isAnimating = false;
|
|
9712
9712
|
};
|
|
9713
|
-
|
|
9713
|
+
SlidePanelComponent.prototype._checkOverBehavior = function () {
|
|
9714
9714
|
this.isSlideOver = window.innerWidth <= SMALL_DEVICE_BREAKPOINT;
|
|
9715
9715
|
};
|
|
9716
|
-
|
|
9716
|
+
SlidePanelComponent.prototype._calculateSlideHeight = function () {
|
|
9717
9717
|
this.slideHeight = this.sideContent.nativeElement.clientHeight;
|
|
9718
9718
|
};
|
|
9719
9719
|
__decorate([
|
|
9720
9720
|
core.Input()
|
|
9721
|
-
],
|
|
9721
|
+
], SlidePanelComponent.prototype, "openIcon", void 0);
|
|
9722
9722
|
__decorate([
|
|
9723
9723
|
core.Input()
|
|
9724
|
-
],
|
|
9724
|
+
], SlidePanelComponent.prototype, "closeIcon", void 0);
|
|
9725
9725
|
__decorate([
|
|
9726
9726
|
core.Input()
|
|
9727
|
-
],
|
|
9727
|
+
], SlidePanelComponent.prototype, "cache", void 0);
|
|
9728
9728
|
__decorate([
|
|
9729
9729
|
core.Output()
|
|
9730
|
-
],
|
|
9730
|
+
], SlidePanelComponent.prototype, "panelOpened", void 0);
|
|
9731
9731
|
__decorate([
|
|
9732
9732
|
core.Output()
|
|
9733
|
-
],
|
|
9733
|
+
], SlidePanelComponent.prototype, "panelClosed", void 0);
|
|
9734
9734
|
__decorate([
|
|
9735
9735
|
core.ViewChild("mainContainer")
|
|
9736
|
-
],
|
|
9736
|
+
], SlidePanelComponent.prototype, "mainContainer", void 0);
|
|
9737
9737
|
__decorate([
|
|
9738
9738
|
core.ViewChild("sideContent")
|
|
9739
|
-
],
|
|
9739
|
+
], SlidePanelComponent.prototype, "sideContent", void 0);
|
|
9740
9740
|
__decorate([
|
|
9741
9741
|
core.HostListener("window:resize")
|
|
9742
|
-
],
|
|
9743
|
-
|
|
9742
|
+
], SlidePanelComponent.prototype, "onResize", null);
|
|
9743
|
+
SlidePanelComponent = __decorate([
|
|
9744
9744
|
core.Component({
|
|
9745
|
-
selector: "s-slide-
|
|
9746
|
-
template: "<div class=\"slide-
|
|
9745
|
+
selector: "s-slide-panel",
|
|
9746
|
+
template: "<div class=\"slide-panel\">\n <div\n class=\"slide-content\"\n [ngClass]=\"{\n 'slide-content--closed': !isOpen,\n 'slide-content--over': isSlideOver\n }\">\n <div\n #mainContainer\n class=\"main-container\"\n [style.maxHeight]=\"slideHeight + 'px'\">\n <ng-container *ngIf=\"cache; then cacheTemplate else cachelessTemplate\"></ng-container>\n </div>\n <button\n class=\"button\"\n [ngClass]=\"isOpen ? closeIcon : openIcon\"\n (click)=\"onClickButton()\">\n </button>\n </div>\n <div #sideContent class=\"side-content\">\n <ng-content select=\"[side-content]\"></ng-content>\n </div>\n</div>\n\n<ng-template #cacheTemplate>\n <div\n class=\"content-container\"\n [@cacheAnimation]=\"isOpen\"\n [@.disabled]=\"isContentAnimationDisabled\"\n (@cacheAnimation.start)=\"onContentAnimationStart()\"\n (@cacheAnimation.done)=\"onContentAnimationDone()\">\n <ng-container [ngTemplateOutlet]=\"slideContent\"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #cachelessTemplate>\n <div\n *ngIf=\"isOpen\"\n class=\"content-container\"\n @cachelessAnimation\n [@.disabled]=\"isContentAnimationDisabled\"\n (@cachelessAnimation.start)=\"onContentAnimationStart()\"\n (@cachelessAnimation.done)=\"onContentAnimationDone()\">\n <ng-container [ngTemplateOutlet]=\"slideContent\"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #slideContent>\n <ng-content select=\"[slide-content]\"></ng-content>\n</ng-template>",
|
|
9747
9747
|
animations: [
|
|
9748
9748
|
animations.trigger("cachelessAnimation", [
|
|
9749
9749
|
animations.transition(":enter", [
|
|
@@ -9761,26 +9761,26 @@
|
|
|
9761
9761
|
animations.transition("* => *", animations.animate("200ms")),
|
|
9762
9762
|
]),
|
|
9763
9763
|
],
|
|
9764
|
-
styles: [".slide-
|
|
9764
|
+
styles: [".slide-panel{display:-ms-flexbox;display:flex}.slide-panel .slide-content{display:-ms-flexbox;display:flex;position:relative}.slide-panel .slide-content .main-container{background-color:#eeebf2;display:-ms-flexbox;display:flex;border:1px solid #ccc;overflow:hidden;position:relative}.slide-panel .slide-content .main-container .content-container{overflow-y:auto;overflow-x:hidden;padding:16px}.slide-panel .slide-content .button{-ms-flex-align:center;align-items:center;background-color:#eeebf2;border:1px solid #ccc;border-left:none;border-radius:0 4px 4px 0;cursor:pointer;display:-ms-flexbox;display:flex;font-size:16px;height:32px;-ms-flex-pack:center;justify-content:center;position:absolute;right:-32px;top:16px;width:32px}.slide-panel .slide-content--closed .main-container{border:none}.slide-panel .slide-content--over{position:absolute}.slide-panel .side-content{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;height:-webkit-max-content;height:max-content}"]
|
|
9765
9765
|
})
|
|
9766
|
-
],
|
|
9767
|
-
return
|
|
9766
|
+
], SlidePanelComponent);
|
|
9767
|
+
return SlidePanelComponent;
|
|
9768
9768
|
}());
|
|
9769
9769
|
|
|
9770
|
-
var
|
|
9771
|
-
function
|
|
9770
|
+
var SlidePanelModule = /** @class */ (function () {
|
|
9771
|
+
function SlidePanelModule() {
|
|
9772
9772
|
}
|
|
9773
|
-
|
|
9773
|
+
SlidePanelModule = __decorate([
|
|
9774
9774
|
core.NgModule({
|
|
9775
9775
|
imports: [
|
|
9776
9776
|
common.CommonModule,
|
|
9777
9777
|
animations$1.BrowserAnimationsModule,
|
|
9778
9778
|
],
|
|
9779
|
-
declarations: [
|
|
9780
|
-
exports: [
|
|
9779
|
+
declarations: [SlidePanelComponent],
|
|
9780
|
+
exports: [SlidePanelComponent],
|
|
9781
9781
|
})
|
|
9782
|
-
],
|
|
9783
|
-
return
|
|
9782
|
+
], SlidePanelModule);
|
|
9783
|
+
return SlidePanelModule;
|
|
9784
9784
|
}());
|
|
9785
9785
|
|
|
9786
9786
|
var StatsCardComponent = /** @class */ (function () {
|
|
@@ -12996,8 +12996,8 @@
|
|
|
12996
12996
|
exports.SelectOption = SelectOption;
|
|
12997
12997
|
exports.SidebarComponent = SidebarComponent;
|
|
12998
12998
|
exports.SidebarModule = SidebarModule;
|
|
12999
|
-
exports.
|
|
13000
|
-
exports.
|
|
12999
|
+
exports.SlidePanelComponent = SlidePanelComponent;
|
|
13000
|
+
exports.SlidePanelModule = SlidePanelModule;
|
|
13001
13001
|
exports.SplitButtonComponent = SplitButtonComponent;
|
|
13002
13002
|
exports.SplitButtonModule = SplitButtonModule;
|
|
13003
13003
|
exports.StatsCardComponent = StatsCardComponent;
|