ngx-row-accordion
Advanced tools
Comparing version 1.0.3 to 2.0.0
@@ -282,3 +282,3 @@ (function (global, factory) { | ||
template: "<div fxFill fxLayout=\"row\">\n <div class=\"ngx-row-accordion\">\n <div fxLayout=\"row\" class=\"ngx-row-accordion\">\n <div class=\"title\" (click)=\"toggle()\">\n {{ title }}\n </div>\n\n <div class=\"body\" *ngIf=\"displayBody$ | async\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n\n <router-outlet></router-outlet>\n</div>\n", | ||
styles: [".ngx-row-accordion{display:inline-block;height:100%}.ngx-row-accordion .title{padding:16px;-webkit-writing-mode:vertical-rl;-ms-writing-mode:tb-rl;writing-mode:vertical-rl;text-orientation:sideways;background-color:#d8d8d8;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ngx-row-accordion .body{padding:16px;background-color:#f3f3f3;overflow:auto}"], | ||
styles: [""], | ||
},] }, | ||
@@ -346,2 +346,2 @@ ]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXJvdy1hY2NvcmRpb24udW1kLmpzLm1hcCIsInNvdXJjZXMiOltudWxsLCJuZzovL25neC1yb3ctYWNjb3JkaW9uL2xpYi9uZ3gtcm93LWFjY29yZGlvbi5zZXJ2aWNlLnRzIiwibmc6Ly9uZ3gtcm93LWFjY29yZGlvbi9saWIvbmd4LXJvdy1hY2NvcmRpb24uY29tcG9uZW50LnRzIiwibmc6Ly9uZ3gtcm93LWFjY29yZGlvbi9saWIvbmd4LXJvdy1hY2NvcmRpb24ubW9kdWxlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKlxyXG5Db3B5cmlnaHQgKGMpIE1pY3Jvc29mdCBDb3Jwb3JhdGlvbi4gQWxsIHJpZ2h0cyByZXNlcnZl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SAwLCB0KSBvcCA9IFswLCB0LnZhbHVlXTtcclxuICAgICAgICAgICAgc3dpdGNoIChvcFswXSkge1xyXG4gICAgICAgICAgICAgICAgY2FzZSAwOiBjYXNlIDE6IHQgPSBvcDsgYnJlYWs7XHJcbiAgICAgICAgICAgICAgICBjYXNlIDQ6IF8ubGFiZWwrKzsgcmV0dXJuIHsgdmFsdWU6IG9wWzFdLCBkb25lOiBmYWxzZSB9O1xyXG4gICAgICAgICAgICAgICAgY2FzZSA1OiBfLmxhYmVsKys7IHkgPSBvcFsxXTsgb3AgPSBbMF07IGNvbnRpbnVlO1xyXG4gICAgICAgICAgICAgICAgY2FzZSA3OiBvcCA9IF8ub3BzLnBvcCgpOyBfLnRyeXMucG9wKCk7IGNvbnRpbnVlO1xyXG4gICAgICAgICAgICAgICAgZGVmYXVsdDpcclxuICAgICAgICAgICAgICAgICAgICBpZiAoISh0ID0gXy50cnlzLCB0ID0gdC5sZW5ndGggPiAwICYmIHRbdC5sZW5ndGggLSAxXSkgJiYgKG9wWzBdID09PSA2IHx8IG9wWzBdID09PSAyKSkgeyBfID0gMDsgY29udGludWU7IH1cclxuICAgICAgICAgICAgICAgICAgICBpZiAob3BbMF0gPT09IDMgJiYgKCF0IHx8IChvcFsxXSA+IHRbMF0gJiYgb3BbMV0gPCB0WzNdKSkpIHsgXy5sYWJlbCA9IG9wWzFdOyBicmVhazsgfVxyXG4gICAgICAgICAgICAgICAgICAgIGlmIChvcFswXSA9PT0gNiAmJiBfLmxhYmVsIDwgdFsxXSkgeyBfLmxhYmVsID0gdFsxXTsgdCA9IG9wOyBicmVhazsgfVxyXG4gICAgICAgICAgICAgICAgICAgIGlmICh0ICYmIF8ubGFiZWwgPCB0WzJdKSB7IF8ubGFiZWwgPSB0WzJdOyBfLm9wcy5wdXNoKG9wKTsgYnJlYWs7IH1cclxuICAgICAgICAgICAgICAgICAgICBpZiAodFsyXSkgXy5vcHMucG9wKCk7XHJcbiAgICAgICAgICAgICAgICAgICAgXy50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ENBQUMsUUFBUSxFQUFFLENBQUM7Z0JBRTNCLElBQUksQ0FBQyxzQkFBc0IsQ0FBQyx3QkFBd0IsQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7YUFDL0Q7Ozs7UUFFRCx5Q0FBTTs7O1lBQU47Z0JBQ0UsSUFBSSxDQUFDLHNCQUFzQixDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQUM7YUFDN0M7O29CQWxERk8sWUFBUyxTQUFDO3dCQUNULFFBQVEsRUFBRSxtQkFBbUI7d0JBQzdCLFFBQVEsRUFBRSxvWUFlWDt3QkFDQyxNQUFNLEVBQUUsQ0FBQyxFQUFFLENBQUM7cUJBQ2I7Ozs7O3dCQXhCUSxzQkFBc0I7Ozs7NEJBMEI1QkMsUUFBSzs0QkFFTEEsUUFBSzs7dUNBN0JSOzs7Ozs7O0FDQUE7Ozs7OztRQWdCUyw2QkFBTzs7O1lBQWQ7Z0JBQ0UsT0FBTztvQkFDTCxRQUFRLEVBQUUscUJBQXFCO29CQUMvQixTQUFTLEVBQUUsQ0FBQyxzQkFBc0IsQ0FBQztpQkFDcEMsQ0FBQzthQUNIOztvQkFYRkMsV0FBUSxTQUFDO3dCQUNSLE9BQU8sRUFBRSxDQUFDQyxtQkFBWSxFQUFFQywyQkFBZ0IsRUFBRUMsbUJBQVksQ0FBQzt3QkFDdkQsWUFBWSxFQUFFLENBQUMsd0JBQXdCLENBQUM7d0JBQ3hDLE9BQU8sRUFBRSxDQUFDLHdCQUF3QixDQUFDO3FCQUNwQzs7b0NBZEQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7In0= |
@@ -1,2 +0,2 @@ | ||
!function(o,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("uuid"),require("@angular/flex-layout"),require("@angular/common"),require("@angular/router")):"function"==typeof define&&define.amd?define("ngx-row-accordion",["exports","@angular/core","rxjs","rxjs/operators","uuid","@angular/flex-layout","@angular/common","@angular/router"],r):r(o["ngx-row-accordion"]={},o.ng.core,o.rxjs,o.rxjs.operators,null,o.ng["flex-layout"],o.ng.common,o.ng.router)}(this,function(o,r,t,e,n,i,a,u){"use strict";var f=Object.assign||function(o){for(var r,t=1,e=arguments.length;t<e;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(o[n]=r[n]);return o};function y(o,r){var t={};for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&r.indexOf(e)<0&&(t[e]=o[e]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(e=Object.getOwnPropertySymbols(o);n<e.length;n++)r.indexOf(e[n])<0&&(t[e[n]]=o[e[n]])}return t}function c(o,r){var t="function"==typeof Symbol&&o[Symbol.iterator];if(!t)return o;var e,n,i=t.call(o),a=[];try{for(;(void 0===r||0<r--)&&!(e=i.next()).done;)a.push(e.value)}catch(u){n={error:u}}finally{try{e&&!e.done&&(t=i["return"])&&t.call(i)}finally{if(n)throw n.error}}return a}var p=function(){function o(){this.groups$=new t.BehaviorSubject({}),this.componentToGroup=new Map}return o.prototype.addComponentToGroup=function(o,r){var t=this.groups$.getValue()[r];if(t||(t={map:{},array:[]}),t.map[o])throw new Error("A row-accordion should be registered only once");var e={map:f({},t.map,(n={},n[o]={folded:!1},n)),array:function(){for(var o=[],r=0;r<arguments.length;r++)o=o.concat(c(arguments[r]));return o}(t.array,[o])};this.componentToGroup.set(o,r);var n,i,a=e.array.length-1,u=f({},this.groups$.getValue(),((i={})[r]=e,i));0<a&&(u=m(u,r,e.array[a-1],{folded:!0}));this.groups$.next(u)},o.prototype.removeComponentFromGroup=function(r){var o=this.groups$.getValue(),t=this.componentToGroup.get(r);if(t){var e,n,i=this.groups$.getValue()[t],a=i.map,u=r,c=(a[u],y(a,["symbol"==typeof u?u:u+""])),p=i.array.filter(function(o){return o!==r}),s=t,l=(o[s],y(o,["symbol"==typeof s?s:s+""]));if(0===p.length)e=l;else{var d=i.array.findIndex(function(o){return o===r}),g=i.array[d-1];e=m(f({},l,((n={})[t]={map:c,array:p},n)),t,g,{folded:!1})}this.groups$.next(e)}},o.prototype.getState=function(r){var t=this.componentToGroup.get(r);return this.groups$.pipe(e.map(function(o){return o[t]}),e.filter(function(o){return!!o}),e.map(function(o){return o.map[r]}),e.filter(function(o){return!!o}),e.distinctUntilChanged(),e.delay(0))},o.prototype.updateState=function(o,r){var t=this.componentToGroup.get(o);this._getState(o)&&this.groups$.next(m(this.groups$.getValue(),t,o,r))},o.prototype.toggle=function(o){this.componentToGroup.get(o);var r=this._getState(o);if(r){var t=r.folded;this.updateState(o,{folded:!t})}},o.prototype._getState=function(o){var r=this.componentToGroup.get(o),t=this.groups$.getValue()[r];if(t)return t.map[o]},o.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],o.ngInjectableDef=r.defineInjectable({factory:function(){return new o},token:o,providedIn:"root"}),o}();function m(o,r,t,e){return f({},o,((n={})[r]=f({},o[r],{map:f({},o[r].map,(i={},i[t]=f({},o[r].map[t],e),i))}),n));var n,i}var s=function(){function o(o){this.ngxRowAccordionService=o,this.id=n.v4(),this.onDestroy$=new t.Subject}return o.prototype.ngOnInit=function(){if(!this.group)throw new Error("[ngx-row-accordion] you should always pass a group when creating a row-accordion");this.ngxRowAccordionService.addComponentToGroup(this.id,this.group),this.displayBody$=this.ngxRowAccordionService.getState(this.id).pipe(e.map(function(o){return!o.folded}))},o.prototype.ngOnDestroy=function(){this.onDestroy$.complete(),this.ngxRowAccordionService.removeComponentFromGroup(this.id)},o.prototype.toggle=function(){this.ngxRowAccordionService.toggle(this.id)},o.decorators=[{type:r.Component,args:[{selector:"ngx-row-accordion",template:'<div fxFill fxLayout="row">\n <div class="ngx-row-accordion">\n <div fxLayout="row" class="ngx-row-accordion">\n <div class="title" (click)="toggle()">\n {{ title }}\n </div>\n\n <div class="body" *ngIf="displayBody$ | async">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n\n <router-outlet></router-outlet>\n</div>\n',styles:[".ngx-row-accordion{display:inline-block;height:100%}.ngx-row-accordion .title{padding:16px;-webkit-writing-mode:vertical-rl;-ms-writing-mode:tb-rl;writing-mode:vertical-rl;text-orientation:sideways;background-color:#d8d8d8;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ngx-row-accordion .body{padding:16px;background-color:#f3f3f3;overflow:auto}"]}]}],o.ctorParameters=function(){return[{type:p}]},o.propDecorators={title:[{type:r.Input}],group:[{type:r.Input}]},o}(),l=function(){function o(){}return o.forRoot=function(){return{ngModule:o,providers:[p]}},o.decorators=[{type:r.NgModule,args:[{imports:[a.CommonModule,i.FlexLayoutModule,u.RouterModule],declarations:[s],exports:[s]}]}],o}();o.NgxRowAccordionService=p,o.NgxRowAccordionComponent=s,o.NgxRowAccordionModule=l,Object.defineProperty(o,"__esModule",{value:!0})}); | ||
!function(o,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("uuid"),require("@angular/flex-layout"),require("@angular/common"),require("@angular/router")):"function"==typeof define&&define.amd?define("ngx-row-accordion",["exports","@angular/core","rxjs","rxjs/operators","uuid","@angular/flex-layout","@angular/common","@angular/router"],t):t(o["ngx-row-accordion"]={},o.ng.core,o.rxjs,o.rxjs.operators,null,o.ng["flex-layout"],o.ng.common,o.ng.router)}(this,function(o,t,r,e,n,i,a,u){"use strict";var g=Object.assign||function(o){for(var t,r=1,e=arguments.length;r<e;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o};function y(o,t){var r={};for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&t.indexOf(e)<0&&(r[e]=o[e]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(e=Object.getOwnPropertySymbols(o);n<e.length;n++)t.indexOf(e[n])<0&&(r[e[n]]=o[e[n]])}return r}function c(o,t){var r="function"==typeof Symbol&&o[Symbol.iterator];if(!r)return o;var e,n,i=r.call(o),a=[];try{for(;(void 0===t||0<t--)&&!(e=i.next()).done;)a.push(e.value)}catch(u){n={error:u}}finally{try{e&&!e.done&&(r=i["return"])&&r.call(i)}finally{if(n)throw n.error}}return a}var p=function(){function o(){this.groups$=new r.BehaviorSubject({}),this.componentToGroup=new Map}return o.prototype.addComponentToGroup=function(o,t){var r=this.groups$.getValue()[t];if(r||(r={map:{},array:[]}),r.map[o])throw new Error("A row-accordion should be registered only once");var e={map:g({},r.map,(n={},n[o]={folded:!1},n)),array:function(){for(var o=[],t=0;t<arguments.length;t++)o=o.concat(c(arguments[t]));return o}(r.array,[o])};this.componentToGroup.set(o,t);var n,i,a=e.array.length-1,u=g({},this.groups$.getValue(),((i={})[t]=e,i));0<a&&(u=h(u,t,e.array[a-1],{folded:!0}));this.groups$.next(u)},o.prototype.removeComponentFromGroup=function(t){var o=this.groups$.getValue(),r=this.componentToGroup.get(t);if(r){var e,n,i=this.groups$.getValue()[r],a=i.map,u=t,c=(a[u],y(a,["symbol"==typeof u?u:u+""])),p=i.array.filter(function(o){return o!==t}),s=r,l=(o[s],y(o,["symbol"==typeof s?s:s+""]));if(0===p.length)e=l;else{var d=i.array.findIndex(function(o){return o===t}),f=i.array[d-1];e=h(g({},l,((n={})[r]={map:c,array:p},n)),r,f,{folded:!1})}this.groups$.next(e)}},o.prototype.getState=function(t){var r=this.componentToGroup.get(t);return this.groups$.pipe(e.map(function(o){return o[r]}),e.filter(function(o){return!!o}),e.map(function(o){return o.map[t]}),e.filter(function(o){return!!o}),e.distinctUntilChanged(),e.delay(0))},o.prototype.updateState=function(o,t){var r=this.componentToGroup.get(o);this._getState(o)&&this.groups$.next(h(this.groups$.getValue(),r,o,t))},o.prototype.toggle=function(o){this.componentToGroup.get(o);var t=this._getState(o);if(t){var r=t.folded;this.updateState(o,{folded:!r})}},o.prototype._getState=function(o){var t=this.componentToGroup.get(o),r=this.groups$.getValue()[t];if(r)return r.map[o]},o.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],o.ngInjectableDef=t.defineInjectable({factory:function(){return new o},token:o,providedIn:"root"}),o}();function h(o,t,r,e){return g({},o,((n={})[t]=g({},o[t],{map:g({},o[t].map,(i={},i[r]=g({},o[t].map[r],e),i))}),n));var n,i}var s=function(){function o(o){this.ngxRowAccordionService=o,this.id=n.v4(),this.onDestroy$=new r.Subject}return o.prototype.ngOnInit=function(){if(!this.group)throw new Error("[ngx-row-accordion] you should always pass a group when creating a row-accordion");this.ngxRowAccordionService.addComponentToGroup(this.id,this.group),this.displayBody$=this.ngxRowAccordionService.getState(this.id).pipe(e.map(function(o){return!o.folded}))},o.prototype.ngOnDestroy=function(){this.onDestroy$.complete(),this.ngxRowAccordionService.removeComponentFromGroup(this.id)},o.prototype.toggle=function(){this.ngxRowAccordionService.toggle(this.id)},o.decorators=[{type:t.Component,args:[{selector:"ngx-row-accordion",template:'<div fxFill fxLayout="row">\n <div class="ngx-row-accordion">\n <div fxLayout="row" class="ngx-row-accordion">\n <div class="title" (click)="toggle()">\n {{ title }}\n </div>\n\n <div class="body" *ngIf="displayBody$ | async">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n\n <router-outlet></router-outlet>\n</div>\n',styles:[""]}]}],o.ctorParameters=function(){return[{type:p}]},o.propDecorators={title:[{type:t.Input}],group:[{type:t.Input}]},o}(),l=function(){function o(){}return o.forRoot=function(){return{ngModule:o,providers:[p]}},o.decorators=[{type:t.NgModule,args:[{imports:[a.CommonModule,i.FlexLayoutModule,u.RouterModule],declarations:[s],exports:[s]}]}],o}();o.NgxRowAccordionService=p,o.NgxRowAccordionComponent=s,o.NgxRowAccordionModule=l,Object.defineProperty(o,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ngx-row-accordion.umd.min.js.map |
@@ -62,3 +62,3 @@ /** | ||
`, | ||
styles: [`.ngx-row-accordion{display:inline-block;height:100%}.ngx-row-accordion .title{padding:16px;-webkit-writing-mode:vertical-rl;-ms-writing-mode:tb-rl;writing-mode:vertical-rl;text-orientation:sideways;background-color:#d8d8d8;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ngx-row-accordion .body{padding:16px;background-color:#f3f3f3;overflow:auto}`], | ||
styles: [``], | ||
},] }, | ||
@@ -89,2 +89,2 @@ ]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXJvdy1hY2NvcmRpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LXJvdy1hY2NvcmRpb24vIiwic291cmNlcyI6WyJsaWIvbmd4LXJvdy1hY2NvcmRpb24uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUNwRSxPQUFPLEVBQUUsc0JBQXNCLEVBQWtCLE1BQU0sNkJBQTZCLENBQUM7QUFDckYsT0FBTyxFQUF5QixHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM1RCxPQUFPLEVBQVMsT0FBTyxFQUFjLE1BQU0sTUFBTSxDQUFDO0FBQ2xELE9BQU8sRUFBRSxFQUFFLElBQUksSUFBSSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBc0JsQyxNQUFNOzs7O0lBVUosWUFBb0Isc0JBQThDO1FBQTlDLDJCQUFzQixHQUF0QixzQkFBc0IsQ0FBd0I7a0JBSDdDLElBQUksRUFBRTswQkFDUyxJQUFJLE9BQU8sRUFBRTtLQUVxQjs7OztJQUV0RSxRQUFRO1FBQ04sRUFBRSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztZQUNoQixNQUFNLElBQUksS0FBSyxDQUFDLGtGQUFrRixDQUFDLENBQUM7U0FDckc7UUFFRCxJQUFJLENBQUMsc0JB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vZ2dsZSgpIHtcbiAgICB0aGlzLm5neFJvd0FjY29yZGlvblNlcnZpY2UudG9nZ2xlKHRoaXMuaWQpO1xuICB9XG59XG4iXX0= |
@@ -52,3 +52,3 @@ /** | ||
template: "<div fxFill fxLayout=\"row\">\n <div class=\"ngx-row-accordion\">\n <div fxLayout=\"row\" class=\"ngx-row-accordion\">\n <div class=\"title\" (click)=\"toggle()\">\n {{ title }}\n </div>\n\n <div class=\"body\" *ngIf=\"displayBody$ | async\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n\n <router-outlet></router-outlet>\n</div>\n", | ||
styles: [".ngx-row-accordion{display:inline-block;height:100%}.ngx-row-accordion .title{padding:16px;-webkit-writing-mode:vertical-rl;-ms-writing-mode:tb-rl;writing-mode:vertical-rl;text-orientation:sideways;background-color:#d8d8d8;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ngx-row-accordion .body{padding:16px;background-color:#f3f3f3;overflow:auto}"], | ||
styles: [""], | ||
},] }, | ||
@@ -82,2 +82,2 @@ ]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXJvdy1hY2NvcmRpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LXJvdy1hY2NvcmRpb24vIiwic291cmNlcyI6WyJsaWIvbmd4LXJvdy1hY2NvcmRpb24uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUNwRSxPQUFPLEVBQUUsc0JBQXNCLEVBQWtCLE1BQU0sNkJBQTZCLENBQUM7QUFDckYsT0FBTyxFQUF5QixHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM1RCxPQUFPLEVBQVMsT0FBTyxFQUFjLE1BQU0sTUFBTSxDQUFDO0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FcnJvcignW25neC1yb3ctYWNjb3JkaW9uXSB5b3Ugc2hvdWxkIGFsd2F5cyBwYXNzIGEgZ3JvdXAgd2hlbiBjcmVhdGluZyBhIHJvdy1hY2NvcmRpb24nKTtcbiAgICB9XG5cbiAgICB0aGlzLm5neFJvd0FjY29yZGlvblNlcnZpY2UuYWRkQ29tcG9uZW50VG9Hcm91cCh0aGlzLmlkLCB0aGlzLmdyb3VwKTtcblxuICAgIHRoaXMuZGlzcGxheUJvZHkkID0gdGhpcy5uZ3hSb3dBY2NvcmRpb25TZXJ2aWNlLmdldFN0YXRlKHRoaXMuaWQpLnBpcGUobWFwKHggPT4gIXguZm9sZGVkKSk7XG4gIH1cblxuICBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICB0aGlzLm9uRGVzdHJveSQuY29tcGxldGUoKTtcblxuICAgIHRoaXMubmd4Um93QWNjb3JkaW9uU2VydmljZS5yZW1vdmVDb21wb25lbnRGcm9tR3JvdXAodGhpcy5pZCk7XG4gIH1cblxuICB0b2dnbGUoKSB7XG4gICAgdGhpcy5uZ3hSb3dBY2NvcmRpb25TZXJ2aWNlLnRvZ2dsZSh0aGlzLmlkKTtcbiAgfVxufVxuIl19 |
@@ -201,3 +201,3 @@ import { __rest } from 'tslib'; | ||
`, | ||
styles: [`.ngx-row-accordion{display:inline-block;height:100%}.ngx-row-accordion .title{padding:16px;-webkit-writing-mode:vertical-rl;-ms-writing-mode:tb-rl;writing-mode:vertical-rl;text-orientation:sideways;background-color:#d8d8d8;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ngx-row-accordion .body{padding:16px;background-color:#f3f3f3;overflow:auto}`], | ||
styles: [``], | ||
},] }, | ||
@@ -249,2 +249,2 @@ ]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXJvdy1hY2NvcmRpb24uanMubWFwIiwic291cmNlcyI6WyJuZzovL25neC1yb3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ozs7Ozs7OyJ9 |
@@ -221,3 +221,3 @@ import { __assign, __spread, __rest } from 'tslib'; | ||
template: "<div fxFill fxLayout=\"row\">\n <div class=\"ngx-row-accordion\">\n <div fxLayout=\"row\" class=\"ngx-row-accordion\">\n <div class=\"title\" (click)=\"toggle()\">\n {{ title }}\n </div>\n\n <div class=\"body\" *ngIf=\"displayBody$ | async\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n\n <router-outlet></router-outlet>\n</div>\n", | ||
styles: [".ngx-row-accordion{display:inline-block;height:100%}.ngx-row-accordion .title{padding:16px;-webkit-writing-mode:vertical-rl;-ms-writing-mode:tb-rl;writing-mode:vertical-rl;text-orientation:sideways;background-color:#d8d8d8;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ngx-row-accordion .body{padding:16px;background-color:#f3f3f3;overflow:auto}"], | ||
styles: [""], | ||
},] }, | ||
@@ -277,2 +277,2 @@ ]; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXJvdy1hY2NvcmRpb24uanMubWFwIiwic291cmNlcyI6WyJuZzovL25neC1yb3ctYWNjb3JkaW9uL2xpYi9uZ3gtcm93LWFjY29yZGlvbi5zZXJ2aWNlLnRzIiwibmc6Ly9uZ3gtcm93LWFjY29yZGlvbi9saWIvbmd4LXJvdy1hY2NvcmRpb24uY29tcG9uZW50LnRzIiwibmc6Ly9uZ3gtcm93LWFjY29yZGlvbi9saWIvbmd4LXJvdy1hY2NvcmRpb24ubW9kdWxlLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IEJlaGF2aW9yU3ViamVjdCwgT2JzZXJ2YWJsZSwgU3ViamVjdCB9IGZyb20gJ3J4anMnO1xuaW1wb3J0IHsgZmlsdGVyLCBtYXBUbywgbWFwLCBkaXN0aW5jdFVud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face"},"NgxRowAccordionService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":23,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"addComponentToGroup":[{"__symbolic":"method"}],"removeComponentFromGroup":[{"__symbolic":"method"}],"getState":[{"__symbolic":"method"}],"updateState":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"_getState":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"NgxRowAccordionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"ngx-row-accordion","template":"<div fxFill fxLayout=\"row\">\n <div class=\"ngx-row-accordion\">\n <div fxLayout=\"row\" class=\"ngx-row-accordion\">\n <div class=\"title\" (click)=\"toggle()\">\n {{ title }}\n </div>\n\n <div class=\"body\" *ngIf=\"displayBody$ | async\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n\n <router-outlet></router-outlet>\n</div>\n","styles":[".ngx-row-accordion{display:inline-block;height:100%}.ngx-row-accordion .title{padding:16px;-webkit-writing-mode:vertical-rl;-ms-writing-mode:tb-rl;writing-mode:vertical-rl;text-orientation:sideways;background-color:#d8d8d8;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ngx-row-accordion .body{padding:16px;background-color:#f3f3f3;overflow:auto}"]}]}],"members":{"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"group":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgxRowAccordionService"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}]}},"NgxRowAccordionModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":12},{"__symbolic":"reference","module":"@angular/flex-layout","name":"FlexLayoutModule","line":11,"character":26},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":11,"character":44}],"declarations":[{"__symbolic":"reference","name":"NgxRowAccordionComponent"}],"exports":[{"__symbolic":"reference","name":"NgxRowAccordionComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"NgxRowAccordionModule"},"providers":[{"__symbolic":"reference","name":"NgxRowAccordionService"}]}}}}},"origins":{"AccordionState":"./lib/ngx-row-accordion.service","NgxRowAccordionService":"./lib/ngx-row-accordion.service","NgxRowAccordionComponent":"./lib/ngx-row-accordion.component","NgxRowAccordionModule":"./lib/ngx-row-accordion.module"},"importAs":"ngx-row-accordion"} | ||
{"__symbolic":"module","version":4,"metadata":{"AccordionState":{"__symbolic":"interface"},"NgxRowAccordionService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":23,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"addComponentToGroup":[{"__symbolic":"method"}],"removeComponentFromGroup":[{"__symbolic":"method"}],"getState":[{"__symbolic":"method"}],"updateState":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"_getState":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"NgxRowAccordionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"ngx-row-accordion","template":"<div fxFill fxLayout=\"row\">\n <div class=\"ngx-row-accordion\">\n <div fxLayout=\"row\" class=\"ngx-row-accordion\">\n <div class=\"title\" (click)=\"toggle()\">\n {{ title }}\n </div>\n\n <div class=\"body\" *ngIf=\"displayBody$ | async\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n\n <router-outlet></router-outlet>\n</div>\n","styles":[""]}]}],"members":{"title":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":3}}]}],"group":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NgxRowAccordionService"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}]}},"NgxRowAccordionModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":12},{"__symbolic":"reference","module":"@angular/flex-layout","name":"FlexLayoutModule","line":11,"character":26},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":11,"character":44}],"declarations":[{"__symbolic":"reference","name":"NgxRowAccordionComponent"}],"exports":[{"__symbolic":"reference","name":"NgxRowAccordionComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"NgxRowAccordionModule"},"providers":[{"__symbolic":"reference","name":"NgxRowAccordionService"}]}}}}},"origins":{"AccordionState":"./lib/ngx-row-accordion.service","NgxRowAccordionService":"./lib/ngx-row-accordion.service","NgxRowAccordionComponent":"./lib/ngx-row-accordion.component","NgxRowAccordionModule":"./lib/ngx-row-accordion.module"},"importAs":"ngx-row-accordion"} |
{ | ||
"name": "ngx-row-accordion", | ||
"version": "1.0.3", | ||
"version": "2.0.0", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/maxime1992/ngx-row-accordion.git" | ||
}, | ||
"peerDependencies": { | ||
@@ -8,0 +12,0 @@ "@angular/common": "^6.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
0
252745
1541