ng-sidebar9plus 13.0.2 → 14.0.2
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/lib_commonjs/close.directive.d.ts +1 -1
- package/lib_commonjs/sidebar-container.component.d.ts +1 -1
- package/lib_commonjs/sidebar-container.component.js +3 -8
- package/lib_commonjs/sidebar.component.d.ts +1 -1
- package/lib_commonjs/sidebar.component.js +2 -7
- package/lib_commonjs/sidebar.module.js +1 -1
- package/lib_esmodule/sidebar-container.component.js +3 -8
- package/lib_esmodule/sidebar.component.js +2 -7
- package/lib_esmodule/sidebar.module.js +1 -1
- package/package.json +13 -13
|
@@ -5,5 +5,5 @@ export declare class CloseSidebar {
|
|
|
5
5
|
constructor(_sidebar: Sidebar);
|
|
6
6
|
_onClick(): void;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<CloseSidebar, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CloseSidebar, "[closeSidebar]", never, {}, {}, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CloseSidebar, "[closeSidebar]", never, {}, {}, never, never, false>;
|
|
9
9
|
}
|
|
@@ -25,5 +25,5 @@ export declare class SidebarContainer implements AfterContentInit, OnChanges, On
|
|
|
25
25
|
private _onToggle;
|
|
26
26
|
private _markForCheck;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarContainer, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarContainer, "ng-sidebar-container", never, { "animate": "animate"; "allowSidebarBackdropControl": "allowSidebarBackdropControl"; "showBackdrop": "showBackdrop"; "contentClass": "contentClass"; "backdropClass": "backdropClass"; }, { "showBackdropChange": "showBackdropChange"; "onBackdropClicked": "onBackdropClicked"; }, never, ["ng-sidebar,[ng-sidebar]", "[ng-sidebar-content]"]>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarContainer, "ng-sidebar-container", never, { "animate": "animate"; "allowSidebarBackdropControl": "allowSidebarBackdropControl"; "showBackdrop": "showBackdrop"; "contentClass": "contentClass"; "backdropClass": "backdropClass"; }, { "showBackdropChange": "showBackdropChange"; "onBackdropClicked": "onBackdropClicked"; }, never, ["ng-sidebar,[ng-sidebar]", "[ng-sidebar-content]"], false>;
|
|
29
29
|
}
|
|
@@ -8,7 +8,7 @@ var i1 = require("@angular/common");
|
|
|
8
8
|
function SidebarContainer_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
9
9
|
var _r2 = i0.ɵɵgetCurrentView();
|
|
10
10
|
i0.ɵɵelementStart(0, "div", 2);
|
|
11
|
-
i0.ɵɵlistener("click", function SidebarContainer_div_0_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r2); var ctx_r1 = i0.ɵɵnextContext(); return ctx_r1._onBackdropClicked(); });
|
|
11
|
+
i0.ɵɵlistener("click", function SidebarContainer_div_0_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r2); var ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1._onBackdropClicked()); });
|
|
12
12
|
i0.ɵɵelementEnd();
|
|
13
13
|
} if (rf & 2) {
|
|
14
14
|
var ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -175,18 +175,13 @@ var SidebarContainer = (function () {
|
|
|
175
175
|
i0.ɵɵadvance(2);
|
|
176
176
|
i0.ɵɵclassProp("ng-sidebar__content--animate", ctx.animate);
|
|
177
177
|
i0.ɵɵproperty("ngClass", ctx.contentClass)("ngStyle", ctx._getContentStyle());
|
|
178
|
-
} },
|
|
178
|
+
} }, dependencies: [i1.NgClass, i1.NgIf, i1.NgStyle], styles: ["[_nghost-%COMP%] {\n box-sizing: border-box;\n display: block;\n position: relative;\n height: 100%;\n width: 100%;\n overflow: hidden;\n }\n\n .ng-sidebar__backdrop[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: #000;\n opacity: 0.75;\n pointer-events: auto;\n z-index: 1;\n }\n\n .ng-sidebar__content[_ngcontent-%COMP%] {\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n .ng-sidebar__content--animate[_ngcontent-%COMP%] {\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1), padding 0.3s cubic-bezier(0, 0, 0.3, 1);\n transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1), padding 0.3s cubic-bezier(0, 0, 0.3, 1);\n }"], changeDetection: 0 });
|
|
179
179
|
return SidebarContainer;
|
|
180
180
|
}());
|
|
181
181
|
exports.SidebarContainer = SidebarContainer;
|
|
182
182
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidebarContainer, [{
|
|
183
183
|
type: core_1.Component,
|
|
184
|
-
args: [{
|
|
185
|
-
selector: 'ng-sidebar-container',
|
|
186
|
-
template: "\n <div *ngIf=\"showBackdrop\"\n aria-hidden=\"true\"\n class=\"ng-sidebar__backdrop\"\n [ngClass]=\"backdropClass\"\n (click)=\"_onBackdropClicked()\"></div>\n\n <ng-content select=\"ng-sidebar,[ng-sidebar]\"></ng-content>\n\n <div class=\"ng-sidebar__content\"\n [class.ng-sidebar__content--animate]=\"animate\"\n [ngClass]=\"contentClass\"\n [ngStyle]=\"_getContentStyle()\">\n <ng-content select=\"[ng-sidebar-content]\"></ng-content>\n </div>\n ",
|
|
187
|
-
styles: ["\n :host {\n box-sizing: border-box;\n display: block;\n position: relative;\n height: 100%;\n width: 100%;\n overflow: hidden;\n }\n\n .ng-sidebar__backdrop {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: #000;\n opacity: 0.75;\n pointer-events: auto;\n z-index: 1;\n }\n\n .ng-sidebar__content {\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n .ng-sidebar__content--animate {\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1), padding 0.3s cubic-bezier(0, 0, 0.3, 1);\n transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1), padding 0.3s cubic-bezier(0, 0, 0.3, 1);\n }\n "],
|
|
188
|
-
changeDetection: core_1.ChangeDetectionStrategy.OnPush
|
|
189
|
-
}]
|
|
184
|
+
args: [{ selector: 'ng-sidebar-container', template: "\n <div *ngIf=\"showBackdrop\"\n aria-hidden=\"true\"\n class=\"ng-sidebar__backdrop\"\n [ngClass]=\"backdropClass\"\n (click)=\"_onBackdropClicked()\"></div>\n\n <ng-content select=\"ng-sidebar,[ng-sidebar]\"></ng-content>\n\n <div class=\"ng-sidebar__content\"\n [class.ng-sidebar__content--animate]=\"animate\"\n [ngClass]=\"contentClass\"\n [ngStyle]=\"_getContentStyle()\">\n <ng-content select=\"[ng-sidebar-content]\"></ng-content>\n </div>\n ", changeDetection: core_1.ChangeDetectionStrategy.OnPush, styles: ["\n :host {\n box-sizing: border-box;\n display: block;\n position: relative;\n height: 100%;\n width: 100%;\n overflow: hidden;\n }\n\n .ng-sidebar__backdrop {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: #000;\n opacity: 0.75;\n pointer-events: auto;\n z-index: 1;\n }\n\n .ng-sidebar__content {\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n .ng-sidebar__content--animate {\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1), padding 0.3s cubic-bezier(0, 0, 0.3, 1);\n transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1), padding 0.3s cubic-bezier(0, 0, 0.3, 1);\n }\n "] }]
|
|
190
185
|
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: Object, decorators: [{
|
|
191
186
|
type: core_1.Inject,
|
|
192
187
|
args: [core_1.PLATFORM_ID]
|
|
@@ -82,5 +82,5 @@ export declare class Sidebar implements AfterContentInit, OnInit, OnChanges, OnD
|
|
|
82
82
|
get _isInert(): boolean;
|
|
83
83
|
private _normalizePosition;
|
|
84
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<Sidebar, [{ optional: true; }, null, null]>;
|
|
85
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Sidebar, "ng-sidebar", never, { "opened": "opened"; "mode": "mode"; "dock": "dock"; "dockedSize": "dockedSize"; "position": "position"; "animate": "animate"; "autoCollapseHeight": "autoCollapseHeight"; "autoCollapseWidth": "autoCollapseWidth"; "autoCollapseOnInit": "autoCollapseOnInit"; "sidebarClass": "sidebarClass"; "ariaLabel": "ariaLabel"; "trapFocus": "trapFocus"; "autoFocus": "autoFocus"; "showBackdrop": "showBackdrop"; "closeOnClickBackdrop": "closeOnClickBackdrop"; "closeOnClickOutside": "closeOnClickOutside"; "keyClose": "keyClose"; "keyCode": "keyCode"; }, { "openedChange": "openedChange"; "onContentInit": "onContentInit"; "onOpenStart": "onOpenStart"; "onOpened": "onOpened"; "onCloseStart": "onCloseStart"; "onClosed": "onClosed"; "onTransitionEnd": "onTransitionEnd"; "onModeChange": "onModeChange"; "onPositionChange": "onPositionChange"; "_onRerender": "_onRerender"; }, never, ["*"]>;
|
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Sidebar, "ng-sidebar", never, { "opened": "opened"; "mode": "mode"; "dock": "dock"; "dockedSize": "dockedSize"; "position": "position"; "animate": "animate"; "autoCollapseHeight": "autoCollapseHeight"; "autoCollapseWidth": "autoCollapseWidth"; "autoCollapseOnInit": "autoCollapseOnInit"; "sidebarClass": "sidebarClass"; "ariaLabel": "ariaLabel"; "trapFocus": "trapFocus"; "autoFocus": "autoFocus"; "showBackdrop": "showBackdrop"; "closeOnClickBackdrop": "closeOnClickBackdrop"; "closeOnClickOutside": "closeOnClickOutside"; "keyClose": "keyClose"; "keyCode": "keyCode"; }, { "openedChange": "openedChange"; "onContentInit": "onContentInit"; "onOpenStart": "onOpenStart"; "onOpened": "onOpened"; "onCloseStart": "onCloseStart"; "onClosed": "onClosed"; "onTransitionEnd": "onTransitionEnd"; "onModeChange": "onModeChange"; "onPositionChange": "onPositionChange"; "_onRerender": "_onRerender"; }, never, ["*"], false>;
|
|
86
86
|
}
|
|
@@ -471,18 +471,13 @@ var Sidebar = (function () {
|
|
|
471
471
|
i0.ɵɵclassProp("ng-sidebar--docked", ctx._isDocked)("ng-sidebar--inert", ctx._isInert)("ng-sidebar--animate", ctx.animate);
|
|
472
472
|
i0.ɵɵproperty("ngClass", ctx.sidebarClass)("ngStyle", ctx._getStyle());
|
|
473
473
|
i0.ɵɵattribute("aria-hidden", !ctx.opened)("aria-label", ctx.ariaLabel);
|
|
474
|
-
} },
|
|
474
|
+
} }, dependencies: [i2.NgClass, i2.NgStyle], styles: [".ng-sidebar[_ngcontent-%COMP%] {\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n pointer-events: auto;\n position: absolute;\n touch-action: auto;\n will-change: initial;\n z-index: 2;\n }\n\n .ng-sidebar--left[_ngcontent-%COMP%] {\n bottom: 0;\n left: 0;\n top: 0;\n }\n\n .ng-sidebar--right[_ngcontent-%COMP%] {\n bottom: 0;\n right: 0;\n top: 0;\n }\n\n .ng-sidebar--top[_ngcontent-%COMP%] {\n left: 0;\n right: 0;\n top: 0;\n }\n\n .ng-sidebar--bottom[_ngcontent-%COMP%] {\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n .ng-sidebar--inert[_ngcontent-%COMP%] {\n pointer-events: none;\n touch-action: none;\n will-change: transform;\n }\n\n .ng-sidebar--animate[_ngcontent-%COMP%] {\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1);\n transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1);\n }"], changeDetection: 0 });
|
|
475
475
|
return Sidebar;
|
|
476
476
|
}());
|
|
477
477
|
exports.Sidebar = Sidebar;
|
|
478
478
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Sidebar, [{
|
|
479
479
|
type: core_1.Component,
|
|
480
|
-
args: [{
|
|
481
|
-
selector: 'ng-sidebar',
|
|
482
|
-
template: "\n <aside #sidebar\n role=\"complementary\"\n [attr.aria-hidden]=\"!opened\"\n [attr.aria-label]=\"ariaLabel\"\n class=\"ng-sidebar ng-sidebar--{{opened ? 'opened' : 'closed'}} ng-sidebar--{{position}} ng-sidebar--{{mode}}\"\n [class.ng-sidebar--docked]=\"_isDocked\"\n [class.ng-sidebar--inert]=\"_isInert\"\n [class.ng-sidebar--animate]=\"animate\"\n [ngClass]=\"sidebarClass\"\n [ngStyle]=\"_getStyle()\">\n <ng-content></ng-content>\n </aside>\n ",
|
|
483
|
-
styles: ["\n .ng-sidebar {\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n pointer-events: auto;\n position: absolute;\n touch-action: auto;\n will-change: initial;\n z-index: 2;\n }\n\n .ng-sidebar--left {\n bottom: 0;\n left: 0;\n top: 0;\n }\n\n .ng-sidebar--right {\n bottom: 0;\n right: 0;\n top: 0;\n }\n\n .ng-sidebar--top {\n left: 0;\n right: 0;\n top: 0;\n }\n\n .ng-sidebar--bottom {\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n .ng-sidebar--inert {\n pointer-events: none;\n touch-action: none;\n will-change: transform;\n }\n\n .ng-sidebar--animate {\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1);\n transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1);\n }\n "],
|
|
484
|
-
changeDetection: core_1.ChangeDetectionStrategy.OnPush
|
|
485
|
-
}]
|
|
480
|
+
args: [{ selector: 'ng-sidebar', template: "\n <aside #sidebar\n role=\"complementary\"\n [attr.aria-hidden]=\"!opened\"\n [attr.aria-label]=\"ariaLabel\"\n class=\"ng-sidebar ng-sidebar--{{opened ? 'opened' : 'closed'}} ng-sidebar--{{position}} ng-sidebar--{{mode}}\"\n [class.ng-sidebar--docked]=\"_isDocked\"\n [class.ng-sidebar--inert]=\"_isInert\"\n [class.ng-sidebar--animate]=\"animate\"\n [ngClass]=\"sidebarClass\"\n [ngStyle]=\"_getStyle()\">\n <ng-content></ng-content>\n </aside>\n ", changeDetection: core_1.ChangeDetectionStrategy.OnPush, styles: ["\n .ng-sidebar {\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n pointer-events: auto;\n position: absolute;\n touch-action: auto;\n will-change: initial;\n z-index: 2;\n }\n\n .ng-sidebar--left {\n bottom: 0;\n left: 0;\n top: 0;\n }\n\n .ng-sidebar--right {\n bottom: 0;\n right: 0;\n top: 0;\n }\n\n .ng-sidebar--top {\n left: 0;\n right: 0;\n top: 0;\n }\n\n .ng-sidebar--bottom {\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n .ng-sidebar--inert {\n pointer-events: none;\n touch-action: none;\n will-change: transform;\n }\n\n .ng-sidebar--animate {\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1);\n transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1);\n }\n "] }]
|
|
486
481
|
}], function () { return [{ type: i1.SidebarContainer, decorators: [{
|
|
487
482
|
type: core_1.Optional
|
|
488
483
|
}] }, { type: i0.ChangeDetectorRef }, { type: Object, decorators: [{
|
|
@@ -17,7 +17,7 @@ var SidebarModule = (function () {
|
|
|
17
17
|
};
|
|
18
18
|
SidebarModule.ɵfac = function SidebarModule_Factory(t) { return new (t || SidebarModule)(); };
|
|
19
19
|
SidebarModule.ɵmod = i0.ɵɵdefineNgModule({ type: SidebarModule });
|
|
20
|
-
SidebarModule.ɵinj = i0.ɵɵdefineInjector({ imports: [
|
|
20
|
+
SidebarModule.ɵinj = i0.ɵɵdefineInjector({ imports: [common_1.CommonModule] });
|
|
21
21
|
return SidebarModule;
|
|
22
22
|
}());
|
|
23
23
|
exports.SidebarModule = SidebarModule;
|
|
@@ -5,7 +5,7 @@ import * as i1 from "@angular/common";
|
|
|
5
5
|
function SidebarContainer_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
6
6
|
var _r2 = i0.ɵɵgetCurrentView();
|
|
7
7
|
i0.ɵɵelementStart(0, "div", 2);
|
|
8
|
-
i0.ɵɵlistener("click", function SidebarContainer_div_0_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r2); var ctx_r1 = i0.ɵɵnextContext(); return ctx_r1._onBackdropClicked(); });
|
|
8
|
+
i0.ɵɵlistener("click", function SidebarContainer_div_0_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r2); var ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1._onBackdropClicked()); });
|
|
9
9
|
i0.ɵɵelementEnd();
|
|
10
10
|
} if (rf & 2) {
|
|
11
11
|
var ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -172,18 +172,13 @@ var SidebarContainer = (function () {
|
|
|
172
172
|
i0.ɵɵadvance(2);
|
|
173
173
|
i0.ɵɵclassProp("ng-sidebar__content--animate", ctx.animate);
|
|
174
174
|
i0.ɵɵproperty("ngClass", ctx.contentClass)("ngStyle", ctx._getContentStyle());
|
|
175
|
-
} },
|
|
175
|
+
} }, dependencies: [i1.NgClass, i1.NgIf, i1.NgStyle], styles: ["[_nghost-%COMP%] {\n box-sizing: border-box;\n display: block;\n position: relative;\n height: 100%;\n width: 100%;\n overflow: hidden;\n }\n\n .ng-sidebar__backdrop[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: #000;\n opacity: 0.75;\n pointer-events: auto;\n z-index: 1;\n }\n\n .ng-sidebar__content[_ngcontent-%COMP%] {\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n .ng-sidebar__content--animate[_ngcontent-%COMP%] {\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1), padding 0.3s cubic-bezier(0, 0, 0.3, 1);\n transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1), padding 0.3s cubic-bezier(0, 0, 0.3, 1);\n }"], changeDetection: 0 });
|
|
176
176
|
return SidebarContainer;
|
|
177
177
|
}());
|
|
178
178
|
export { SidebarContainer };
|
|
179
179
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SidebarContainer, [{
|
|
180
180
|
type: Component,
|
|
181
|
-
args: [{
|
|
182
|
-
selector: 'ng-sidebar-container',
|
|
183
|
-
template: "\n <div *ngIf=\"showBackdrop\"\n aria-hidden=\"true\"\n class=\"ng-sidebar__backdrop\"\n [ngClass]=\"backdropClass\"\n (click)=\"_onBackdropClicked()\"></div>\n\n <ng-content select=\"ng-sidebar,[ng-sidebar]\"></ng-content>\n\n <div class=\"ng-sidebar__content\"\n [class.ng-sidebar__content--animate]=\"animate\"\n [ngClass]=\"contentClass\"\n [ngStyle]=\"_getContentStyle()\">\n <ng-content select=\"[ng-sidebar-content]\"></ng-content>\n </div>\n ",
|
|
184
|
-
styles: ["\n :host {\n box-sizing: border-box;\n display: block;\n position: relative;\n height: 100%;\n width: 100%;\n overflow: hidden;\n }\n\n .ng-sidebar__backdrop {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: #000;\n opacity: 0.75;\n pointer-events: auto;\n z-index: 1;\n }\n\n .ng-sidebar__content {\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n .ng-sidebar__content--animate {\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1), padding 0.3s cubic-bezier(0, 0, 0.3, 1);\n transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1), padding 0.3s cubic-bezier(0, 0, 0.3, 1);\n }\n "],
|
|
185
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
186
|
-
}]
|
|
181
|
+
args: [{ selector: 'ng-sidebar-container', template: "\n <div *ngIf=\"showBackdrop\"\n aria-hidden=\"true\"\n class=\"ng-sidebar__backdrop\"\n [ngClass]=\"backdropClass\"\n (click)=\"_onBackdropClicked()\"></div>\n\n <ng-content select=\"ng-sidebar,[ng-sidebar]\"></ng-content>\n\n <div class=\"ng-sidebar__content\"\n [class.ng-sidebar__content--animate]=\"animate\"\n [ngClass]=\"contentClass\"\n [ngStyle]=\"_getContentStyle()\">\n <ng-content select=\"[ng-sidebar-content]\"></ng-content>\n </div>\n ", changeDetection: ChangeDetectionStrategy.OnPush, styles: ["\n :host {\n box-sizing: border-box;\n display: block;\n position: relative;\n height: 100%;\n width: 100%;\n overflow: hidden;\n }\n\n .ng-sidebar__backdrop {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: #000;\n opacity: 0.75;\n pointer-events: auto;\n z-index: 1;\n }\n\n .ng-sidebar__content {\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n .ng-sidebar__content--animate {\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1), padding 0.3s cubic-bezier(0, 0, 0.3, 1);\n transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1), padding 0.3s cubic-bezier(0, 0, 0.3, 1);\n }\n "] }]
|
|
187
182
|
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: Object, decorators: [{
|
|
188
183
|
type: Inject,
|
|
189
184
|
args: [PLATFORM_ID]
|
|
@@ -468,18 +468,13 @@ var Sidebar = (function () {
|
|
|
468
468
|
i0.ɵɵclassProp("ng-sidebar--docked", ctx._isDocked)("ng-sidebar--inert", ctx._isInert)("ng-sidebar--animate", ctx.animate);
|
|
469
469
|
i0.ɵɵproperty("ngClass", ctx.sidebarClass)("ngStyle", ctx._getStyle());
|
|
470
470
|
i0.ɵɵattribute("aria-hidden", !ctx.opened)("aria-label", ctx.ariaLabel);
|
|
471
|
-
} },
|
|
471
|
+
} }, dependencies: [i2.NgClass, i2.NgStyle], styles: [".ng-sidebar[_ngcontent-%COMP%] {\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n pointer-events: auto;\n position: absolute;\n touch-action: auto;\n will-change: initial;\n z-index: 2;\n }\n\n .ng-sidebar--left[_ngcontent-%COMP%] {\n bottom: 0;\n left: 0;\n top: 0;\n }\n\n .ng-sidebar--right[_ngcontent-%COMP%] {\n bottom: 0;\n right: 0;\n top: 0;\n }\n\n .ng-sidebar--top[_ngcontent-%COMP%] {\n left: 0;\n right: 0;\n top: 0;\n }\n\n .ng-sidebar--bottom[_ngcontent-%COMP%] {\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n .ng-sidebar--inert[_ngcontent-%COMP%] {\n pointer-events: none;\n touch-action: none;\n will-change: transform;\n }\n\n .ng-sidebar--animate[_ngcontent-%COMP%] {\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1);\n transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1);\n }"], changeDetection: 0 });
|
|
472
472
|
return Sidebar;
|
|
473
473
|
}());
|
|
474
474
|
export { Sidebar };
|
|
475
475
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Sidebar, [{
|
|
476
476
|
type: Component,
|
|
477
|
-
args: [{
|
|
478
|
-
selector: 'ng-sidebar',
|
|
479
|
-
template: "\n <aside #sidebar\n role=\"complementary\"\n [attr.aria-hidden]=\"!opened\"\n [attr.aria-label]=\"ariaLabel\"\n class=\"ng-sidebar ng-sidebar--{{opened ? 'opened' : 'closed'}} ng-sidebar--{{position}} ng-sidebar--{{mode}}\"\n [class.ng-sidebar--docked]=\"_isDocked\"\n [class.ng-sidebar--inert]=\"_isInert\"\n [class.ng-sidebar--animate]=\"animate\"\n [ngClass]=\"sidebarClass\"\n [ngStyle]=\"_getStyle()\">\n <ng-content></ng-content>\n </aside>\n ",
|
|
480
|
-
styles: ["\n .ng-sidebar {\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n pointer-events: auto;\n position: absolute;\n touch-action: auto;\n will-change: initial;\n z-index: 2;\n }\n\n .ng-sidebar--left {\n bottom: 0;\n left: 0;\n top: 0;\n }\n\n .ng-sidebar--right {\n bottom: 0;\n right: 0;\n top: 0;\n }\n\n .ng-sidebar--top {\n left: 0;\n right: 0;\n top: 0;\n }\n\n .ng-sidebar--bottom {\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n .ng-sidebar--inert {\n pointer-events: none;\n touch-action: none;\n will-change: transform;\n }\n\n .ng-sidebar--animate {\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1);\n transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1);\n }\n "],
|
|
481
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
482
|
-
}]
|
|
477
|
+
args: [{ selector: 'ng-sidebar', template: "\n <aside #sidebar\n role=\"complementary\"\n [attr.aria-hidden]=\"!opened\"\n [attr.aria-label]=\"ariaLabel\"\n class=\"ng-sidebar ng-sidebar--{{opened ? 'opened' : 'closed'}} ng-sidebar--{{position}} ng-sidebar--{{mode}}\"\n [class.ng-sidebar--docked]=\"_isDocked\"\n [class.ng-sidebar--inert]=\"_isInert\"\n [class.ng-sidebar--animate]=\"animate\"\n [ngClass]=\"sidebarClass\"\n [ngStyle]=\"_getStyle()\">\n <ng-content></ng-content>\n </aside>\n ", changeDetection: ChangeDetectionStrategy.OnPush, styles: ["\n .ng-sidebar {\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n pointer-events: auto;\n position: absolute;\n touch-action: auto;\n will-change: initial;\n z-index: 2;\n }\n\n .ng-sidebar--left {\n bottom: 0;\n left: 0;\n top: 0;\n }\n\n .ng-sidebar--right {\n bottom: 0;\n right: 0;\n top: 0;\n }\n\n .ng-sidebar--top {\n left: 0;\n right: 0;\n top: 0;\n }\n\n .ng-sidebar--bottom {\n bottom: 0;\n left: 0;\n right: 0;\n }\n\n .ng-sidebar--inert {\n pointer-events: none;\n touch-action: none;\n will-change: transform;\n }\n\n .ng-sidebar--animate {\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1);\n transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1);\n }\n "] }]
|
|
483
478
|
}], function () { return [{ type: i1.SidebarContainer, decorators: [{
|
|
484
479
|
type: Optional
|
|
485
480
|
}] }, { type: i0.ChangeDetectorRef }, { type: Object, decorators: [{
|
|
@@ -14,7 +14,7 @@ var SidebarModule = (function () {
|
|
|
14
14
|
};
|
|
15
15
|
SidebarModule.ɵfac = function SidebarModule_Factory(t) { return new (t || SidebarModule)(); };
|
|
16
16
|
SidebarModule.ɵmod = i0.ɵɵdefineNgModule({ type: SidebarModule });
|
|
17
|
-
SidebarModule.ɵinj = i0.ɵɵdefineInjector({ imports: [
|
|
17
|
+
SidebarModule.ɵinj = i0.ɵɵdefineInjector({ imports: [CommonModule] });
|
|
18
18
|
return SidebarModule;
|
|
19
19
|
}());
|
|
20
20
|
export { SidebarModule };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-sidebar9plus",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.2",
|
|
4
4
|
"description": "Angular sidebar component 9+. Forked from https://github.com/arkon/ng-sidebar.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,21 +37,21 @@
|
|
|
37
37
|
"prepare": "npm run build"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@angular/common": ">=
|
|
41
|
-
"@angular/core": ">=
|
|
40
|
+
"@angular/common": ">=14.0.0",
|
|
41
|
+
"@angular/core": ">=14.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@angular-devkit/schematics": "^
|
|
45
|
-
"@angular/cli": "^
|
|
46
|
-
"@angular/common": "^
|
|
47
|
-
"@angular/compiler": "^
|
|
48
|
-
"@angular/compiler-cli": "^
|
|
49
|
-
"@angular/core": "^
|
|
50
|
-
"@angular/platform-browser": "^
|
|
44
|
+
"@angular-devkit/schematics": "^14.0.0",
|
|
45
|
+
"@angular/cli": "^14.0.0",
|
|
46
|
+
"@angular/common": "^14.0.0",
|
|
47
|
+
"@angular/compiler": "^14.0.0",
|
|
48
|
+
"@angular/compiler-cli": "^14.0.0",
|
|
49
|
+
"@angular/core": "^14.0.0",
|
|
50
|
+
"@angular/platform-browser": "^14.0.0",
|
|
51
51
|
"rimraf": "^3.0.2",
|
|
52
|
-
"rxjs": "^
|
|
52
|
+
"rxjs": "^7.8.1",
|
|
53
53
|
"tslint": "^5.20.1",
|
|
54
|
-
"typescript": "4.
|
|
55
|
-
"zone.js": "~0.
|
|
54
|
+
"typescript": "4.8",
|
|
55
|
+
"zone.js": "~0.12.0"
|
|
56
56
|
}
|
|
57
57
|
}
|