@seniorsistemas/angular-components 17.2.14 → 17.2.15
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 +90 -31
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/slide-panel/slide-panel.component.d.ts +15 -5
- package/components/slide-panel/slide-panel.service.d.ts +7 -0
- package/esm2015/components/slide-panel/slide-panel.component.js +45 -11
- package/esm2015/components/slide-panel/slide-panel.module.js +3 -1
- package/esm2015/components/slide-panel/slide-panel.service.js +27 -0
- package/esm2015/seniorsistemas-angular-components.js +24 -23
- package/esm5/components/slide-panel/slide-panel.component.js +46 -10
- package/esm5/components/slide-panel/slide-panel.module.js +3 -1
- package/esm5/components/slide-panel/slide-panel.service.js +28 -0
- package/esm5/seniorsistemas-angular-components.js +24 -23
- package/fesm2015/seniorsistemas-angular-components.js +66 -11
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +68 -10
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.d.ts +23 -22
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -11953,34 +11953,74 @@
|
|
|
11953
11953
|
return SidebarModule;
|
|
11954
11954
|
}());
|
|
11955
11955
|
|
|
11956
|
+
var SlidePanelService = /** @class */ (function () {
|
|
11957
|
+
function SlidePanelService() {
|
|
11958
|
+
this.modalCloseMap = new Map();
|
|
11959
|
+
}
|
|
11960
|
+
SlidePanelService.prototype.createSlidePanel = function (id) {
|
|
11961
|
+
var panelSubject = new rxjs.Subject();
|
|
11962
|
+
this.modalCloseMap.set(id, panelSubject);
|
|
11963
|
+
return panelSubject.asObservable();
|
|
11964
|
+
};
|
|
11965
|
+
SlidePanelService.prototype.getModalCloseObservable = function (id) {
|
|
11966
|
+
return this.modalCloseMap.get(id).asObservable();
|
|
11967
|
+
};
|
|
11968
|
+
SlidePanelService.prototype.closeModal = function (id) {
|
|
11969
|
+
var subject = this.modalCloseMap.get(id);
|
|
11970
|
+
if (subject) {
|
|
11971
|
+
subject.next();
|
|
11972
|
+
}
|
|
11973
|
+
};
|
|
11974
|
+
SlidePanelService = __decorate([
|
|
11975
|
+
core.Injectable()
|
|
11976
|
+
], SlidePanelService);
|
|
11977
|
+
return SlidePanelService;
|
|
11978
|
+
}());
|
|
11979
|
+
|
|
11956
11980
|
var SMALL_DEVICE_BREAKPOINT = 420;
|
|
11957
11981
|
var SlidePanelComponent = /** @class */ (function () {
|
|
11958
|
-
function SlidePanelComponent() {
|
|
11982
|
+
function SlidePanelComponent(slidePanelService) {
|
|
11983
|
+
this.slidePanelService = slidePanelService;
|
|
11984
|
+
this.id = "slide-panel-" + ++SlidePanelComponent_1.nextId;
|
|
11959
11985
|
this.openIcon = "fas fa-chevron-right";
|
|
11960
11986
|
this.closeIcon = "fas fa-chevron-left";
|
|
11961
11987
|
this.cache = false;
|
|
11962
11988
|
this.panelOpened = new core.EventEmitter();
|
|
11963
11989
|
this.panelClosed = new core.EventEmitter();
|
|
11964
|
-
this.slideHeight = 0;
|
|
11965
11990
|
this.isOpen = false;
|
|
11966
11991
|
this.isSlideOver = false;
|
|
11967
11992
|
this.isAnimating = false;
|
|
11968
11993
|
this.isContentAnimationDisabled = true;
|
|
11994
|
+
this.slideHeight = 0;
|
|
11995
|
+
this.sideContentWidth = 0;
|
|
11996
|
+
this._unsubscribe$ = new rxjs.Subject();
|
|
11969
11997
|
}
|
|
11998
|
+
SlidePanelComponent_1 = SlidePanelComponent;
|
|
11970
11999
|
SlidePanelComponent.prototype.onResize = function () {
|
|
11971
12000
|
this._checkOverBehavior();
|
|
11972
12001
|
};
|
|
11973
12002
|
SlidePanelComponent.prototype.ngOnInit = function () {
|
|
12003
|
+
var _this = this;
|
|
11974
12004
|
this._checkOverBehavior();
|
|
12005
|
+
this.slidePanelService.createSlidePanel(this.id)
|
|
12006
|
+
.pipe(operators.takeUntil(this._unsubscribe$))
|
|
12007
|
+
.subscribe(function () {
|
|
12008
|
+
_this.isOpen = false;
|
|
12009
|
+
});
|
|
11975
12010
|
};
|
|
11976
12011
|
SlidePanelComponent.prototype.ngAfterViewChecked = function () {
|
|
11977
12012
|
var _this = this;
|
|
11978
12013
|
// to executed at a safe time prior to control returning to the browser's event loop
|
|
11979
12014
|
queueMicrotask(function () {
|
|
11980
12015
|
_this._calculateSlideHeight();
|
|
12016
|
+
_this._calculateSideContentWidth();
|
|
11981
12017
|
_this.isContentAnimationDisabled = false;
|
|
11982
12018
|
});
|
|
11983
12019
|
};
|
|
12020
|
+
SlidePanelComponent.prototype.ngOnDestroy = function () {
|
|
12021
|
+
this._unsubscribe$.next();
|
|
12022
|
+
this._unsubscribe$.complete();
|
|
12023
|
+
};
|
|
11984
12024
|
SlidePanelComponent.prototype.onClickButton = function () {
|
|
11985
12025
|
if (this.isAnimating) {
|
|
11986
12026
|
return;
|
|
@@ -11998,13 +12038,27 @@
|
|
|
11998
12038
|
};
|
|
11999
12039
|
SlidePanelComponent.prototype.onContentAnimationDone = function () {
|
|
12000
12040
|
this.isAnimating = false;
|
|
12041
|
+
this._calculateSideContentWidth();
|
|
12001
12042
|
};
|
|
12002
12043
|
SlidePanelComponent.prototype._checkOverBehavior = function () {
|
|
12003
12044
|
this.isSlideOver = window.innerWidth <= SMALL_DEVICE_BREAKPOINT;
|
|
12004
12045
|
};
|
|
12005
12046
|
SlidePanelComponent.prototype._calculateSlideHeight = function () {
|
|
12006
|
-
this.slideHeight = this.
|
|
12047
|
+
this.slideHeight = this._sideContentRef.nativeElement.clientHeight;
|
|
12007
12048
|
};
|
|
12049
|
+
SlidePanelComponent.prototype._calculateSideContentWidth = function () {
|
|
12050
|
+
var slidePanelWidth = this._slidePanelRef.nativeElement.getBoundingClientRect().width;
|
|
12051
|
+
var slideContentWidth = this._slideContentRef.nativeElement.getBoundingClientRect().width;
|
|
12052
|
+
this.sideContentWidth = slidePanelWidth - slideContentWidth;
|
|
12053
|
+
};
|
|
12054
|
+
var SlidePanelComponent_1;
|
|
12055
|
+
SlidePanelComponent.nextId = 0;
|
|
12056
|
+
SlidePanelComponent.ctorParameters = function () { return [
|
|
12057
|
+
{ type: SlidePanelService }
|
|
12058
|
+
]; };
|
|
12059
|
+
__decorate([
|
|
12060
|
+
core.Input()
|
|
12061
|
+
], SlidePanelComponent.prototype, "id", void 0);
|
|
12008
12062
|
__decorate([
|
|
12009
12063
|
core.Input()
|
|
12010
12064
|
], SlidePanelComponent.prototype, "openIcon", void 0);
|
|
@@ -12021,18 +12075,21 @@
|
|
|
12021
12075
|
core.Output()
|
|
12022
12076
|
], SlidePanelComponent.prototype, "panelClosed", void 0);
|
|
12023
12077
|
__decorate([
|
|
12024
|
-
core.ViewChild("
|
|
12025
|
-
], SlidePanelComponent.prototype, "
|
|
12078
|
+
core.ViewChild("slidePanel")
|
|
12079
|
+
], SlidePanelComponent.prototype, "_slidePanelRef", void 0);
|
|
12080
|
+
__decorate([
|
|
12081
|
+
core.ViewChild("slideContent")
|
|
12082
|
+
], SlidePanelComponent.prototype, "_slideContentRef", void 0);
|
|
12026
12083
|
__decorate([
|
|
12027
12084
|
core.ViewChild("sideContent")
|
|
12028
|
-
], SlidePanelComponent.prototype, "
|
|
12085
|
+
], SlidePanelComponent.prototype, "_sideContentRef", void 0);
|
|
12029
12086
|
__decorate([
|
|
12030
12087
|
core.HostListener("window:resize")
|
|
12031
12088
|
], SlidePanelComponent.prototype, "onResize", null);
|
|
12032
|
-
SlidePanelComponent = __decorate([
|
|
12089
|
+
SlidePanelComponent = SlidePanelComponent_1 = __decorate([
|
|
12033
12090
|
core.Component({
|
|
12034
12091
|
selector: "s-slide-panel",
|
|
12035
|
-
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
|
|
12092
|
+
template: "<div #slidePanel class=\"slide-panel\">\n <div\n #slideContent\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 \n #sideContent\n class=\"side-content\"\n [ngStyle]=\"{ 'width.px': sideContentWidth }\">\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]=\"slideContentTemplate\"></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]=\"slideContentTemplate\"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #slideContentTemplate>\n <ng-content select=\"[slide-content]\"></ng-content>\n</ng-template>",
|
|
12036
12093
|
animations: [
|
|
12037
12094
|
animations.trigger("cachelessAnimation", [
|
|
12038
12095
|
animations.transition(":enter", [
|
|
@@ -12050,7 +12107,7 @@
|
|
|
12050
12107
|
animations.transition("* => *", animations.animate("200ms")),
|
|
12051
12108
|
]),
|
|
12052
12109
|
],
|
|
12053
|
-
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
|
|
12110
|
+
styles: [".slide-panel{display:-ms-flexbox;display:flex;width:100%}.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-family:\"Font Awesome 5 Pro\";font-size:16px;height:32px;-ms-flex-pack:center;justify-content:center;position:absolute;right:-32px;top:16px;width:32px;z-index:99}.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;height:-webkit-max-content;height:max-content;overflow:auto;transition:width .1s linear}"]
|
|
12054
12111
|
})
|
|
12055
12112
|
], SlidePanelComponent);
|
|
12056
12113
|
return SlidePanelComponent;
|
|
@@ -12064,6 +12121,7 @@
|
|
|
12064
12121
|
imports: [common.CommonModule],
|
|
12065
12122
|
declarations: [SlidePanelComponent],
|
|
12066
12123
|
exports: [SlidePanelComponent],
|
|
12124
|
+
providers: [SlidePanelService],
|
|
12067
12125
|
})
|
|
12068
12126
|
], SlidePanelModule);
|
|
12069
12127
|
return SlidePanelModule;
|
|
@@ -16215,29 +16273,30 @@
|
|
|
16215
16273
|
exports.ɵbq = ThumbnailService;
|
|
16216
16274
|
exports.ɵbr = BorderButtonModule;
|
|
16217
16275
|
exports.ɵbs = BorderButtonComponent;
|
|
16218
|
-
exports.ɵbt =
|
|
16219
|
-
exports.ɵbu =
|
|
16220
|
-
exports.ɵbv =
|
|
16221
|
-
exports.ɵbw =
|
|
16222
|
-
exports.ɵbx =
|
|
16223
|
-
exports.ɵby =
|
|
16224
|
-
exports.ɵbz =
|
|
16276
|
+
exports.ɵbt = SlidePanelService;
|
|
16277
|
+
exports.ɵbu = TimelineItemModule;
|
|
16278
|
+
exports.ɵbv = TimelineIconItemComponent;
|
|
16279
|
+
exports.ɵbw = HorizontalTimelineModule;
|
|
16280
|
+
exports.ɵbx = HorizontalTimelineComponent;
|
|
16281
|
+
exports.ɵby = VerticalTimelineModule;
|
|
16282
|
+
exports.ɵbz = VerticalTimelineComponent;
|
|
16225
16283
|
exports.ɵc = CountryPhonePickerService;
|
|
16226
|
-
exports.ɵca =
|
|
16227
|
-
exports.ɵcb =
|
|
16228
|
-
exports.ɵcc =
|
|
16229
|
-
exports.ɵcd =
|
|
16230
|
-
exports.ɵce =
|
|
16231
|
-
exports.ɵcf =
|
|
16232
|
-
exports.ɵcg =
|
|
16233
|
-
exports.ɵch =
|
|
16234
|
-
exports.ɵci =
|
|
16235
|
-
exports.ɵcj =
|
|
16236
|
-
exports.ɵck =
|
|
16237
|
-
exports.ɵcl =
|
|
16238
|
-
exports.ɵcm =
|
|
16239
|
-
exports.ɵcn =
|
|
16240
|
-
exports.ɵco =
|
|
16284
|
+
exports.ɵca = RangeLineComponent;
|
|
16285
|
+
exports.ɵcb = CollapseOptionComponent;
|
|
16286
|
+
exports.ɵcc = CollapsedItemsComponent;
|
|
16287
|
+
exports.ɵcd = VerticalItemsComponent;
|
|
16288
|
+
exports.ɵce = InfiniteScrollModule;
|
|
16289
|
+
exports.ɵcf = InfiniteScrollDirective;
|
|
16290
|
+
exports.ɵcg = CustomTranslationsModule;
|
|
16291
|
+
exports.ɵch = CodeEditorComponent;
|
|
16292
|
+
exports.ɵci = CoreFacade;
|
|
16293
|
+
exports.ɵcj = CodeMirror6Core;
|
|
16294
|
+
exports.ɵck = TieredMenuEventService;
|
|
16295
|
+
exports.ɵcl = TieredMenuService;
|
|
16296
|
+
exports.ɵcm = TieredMenuComponent;
|
|
16297
|
+
exports.ɵcn = TieredMenuNestedComponent;
|
|
16298
|
+
exports.ɵco = TieredMenuItemComponent;
|
|
16299
|
+
exports.ɵcp = TieredMenuDividerComponent;
|
|
16241
16300
|
exports.ɵd = LocalizedCurrencyImpurePipe;
|
|
16242
16301
|
exports.ɵe = LocalizedBignumberPipe;
|
|
16243
16302
|
exports.ɵf = LocalizedBignumberImpurePipe;
|