angular-split
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -11,31 +11,31 @@ "use strict"; | ||
}; | ||
var core_1 = require('@angular/core'); | ||
var common_1 = require('@angular/common'); | ||
var split_component_1 = require('./split.component'); | ||
var splitArea_directive_1 = require('./splitArea.directive'); | ||
var splitGutter_directive_1 = require('./splitGutter.directive'); | ||
var core_1 = require("@angular/core"); | ||
var common_1 = require("@angular/common"); | ||
var split_component_1 = require("./split.component"); | ||
var splitArea_directive_1 = require("./splitArea.directive"); | ||
var splitGutter_directive_1 = require("./splitGutter.directive"); | ||
var AngularSplitModule = (function () { | ||
function AngularSplitModule() { | ||
} | ||
AngularSplitModule = __decorate([ | ||
core_1.NgModule({ | ||
imports: [ | ||
common_1.CommonModule | ||
], | ||
declarations: [ | ||
split_component_1.SplitComponent, | ||
splitArea_directive_1.SplitAreaDirective, | ||
splitGutter_directive_1.SplitGutterDirective | ||
], | ||
exports: [ | ||
split_component_1.SplitComponent, | ||
splitArea_directive_1.SplitAreaDirective, | ||
splitGutter_directive_1.SplitGutterDirective | ||
] | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], AngularSplitModule); | ||
return AngularSplitModule; | ||
}()); | ||
AngularSplitModule = __decorate([ | ||
core_1.NgModule({ | ||
imports: [ | ||
common_1.CommonModule | ||
], | ||
declarations: [ | ||
split_component_1.SplitComponent, | ||
splitArea_directive_1.SplitAreaDirective, | ||
splitGutter_directive_1.SplitGutterDirective | ||
], | ||
exports: [ | ||
split_component_1.SplitComponent, | ||
splitArea_directive_1.SplitAreaDirective, | ||
splitGutter_directive_1.SplitGutterDirective | ||
] | ||
}), | ||
__metadata("design:paramtypes", []) | ||
], AngularSplitModule); | ||
exports.AngularSplitModule = AngularSplitModule; | ||
//# sourceMappingURL=angularSplit.module.js.map |
"use strict"; | ||
var angularSplit_module_1 = require('./angularSplit.module'); | ||
var angularSplit_module_1 = require("./angularSplit.module"); | ||
exports.AngularSplitModule = angularSplit_module_1.AngularSplitModule; | ||
var split_component_1 = require('./split.component'); | ||
var split_component_1 = require("./split.component"); | ||
exports.SplitComponent = split_component_1.SplitComponent; | ||
var splitArea_directive_1 = require('./splitArea.directive'); | ||
var splitArea_directive_1 = require("./splitArea.directive"); | ||
exports.SplitAreaDirective = splitArea_directive_1.SplitAreaDirective; | ||
var splitGutter_directive_1 = require('./splitGutter.directive'); | ||
var splitGutter_directive_1 = require("./splitGutter.directive"); | ||
exports.SplitGutterDirective = splitGutter_directive_1.SplitGutterDirective; | ||
//# sourceMappingURL=index.js.map |
@@ -11,3 +11,3 @@ "use strict"; | ||
}; | ||
var core_1 = require('@angular/core'); | ||
var core_1 = require("@angular/core"); | ||
var SplitComponent = (function () { | ||
@@ -219,58 +219,63 @@ function SplitComponent(cdRef, elementRef, renderer) { | ||
}; | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', String) | ||
], SplitComponent.prototype, "direction", void 0); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Number) | ||
], SplitComponent.prototype, "width", void 0); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Number) | ||
], SplitComponent.prototype, "height", void 0); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Number) | ||
], SplitComponent.prototype, "gutterSize", void 0); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Boolean) | ||
], SplitComponent.prototype, "disabled", void 0); | ||
__decorate([ | ||
core_1.Output(), | ||
__metadata('design:type', Object) | ||
], SplitComponent.prototype, "dragStart", void 0); | ||
__decorate([ | ||
core_1.Output(), | ||
__metadata('design:type', Object) | ||
], SplitComponent.prototype, "dragProgress", void 0); | ||
__decorate([ | ||
core_1.Output(), | ||
__metadata('design:type', Object) | ||
], SplitComponent.prototype, "dragEnd", void 0); | ||
__decorate([ | ||
core_1.HostBinding('style.flex-direction'), | ||
__metadata('design:type', Object) | ||
], SplitComponent.prototype, "styleFlexDirection", null); | ||
__decorate([ | ||
core_1.HostBinding('style.width'), | ||
__metadata('design:type', Object) | ||
], SplitComponent.prototype, "styleWidth", null); | ||
__decorate([ | ||
core_1.HostBinding('style.height'), | ||
__metadata('design:type', Object) | ||
], SplitComponent.prototype, "styleHeight", null); | ||
SplitComponent = __decorate([ | ||
core_1.Component({ | ||
selector: 'split', | ||
changeDetection: core_1.ChangeDetectionStrategy.OnPush, | ||
styles: ["\n :host {\n display: flex;\n flex-wrap: nowrap;\n justify-content: flex-start;\n }\n\n split-gutter {\n flex-grow: 0;\n flex-shrink: 0;\n flex-basis: 10px;\n height: 100%;\n background-color: #eeeeee;\n background-position: 50%;\n background-repeat: no-repeat;\n }\n "], | ||
template: "\n <ng-content></ng-content>\n <template ngFor let-area [ngForOf]=\"areas\" let-index=\"index\" let-last=\"last\">\n <split-gutter *ngIf=\"last === false\" \n [order]=\"index*2+1\"\n [direction]=\"direction\"\n [size]=\"_gutterSize\"\n [disabled]=\"_disabled\"\n (mousedown)=\"startDragging($event, index*2+1)\"\n (touchstart)=\"startDragging($event, index*2+1)\"></split-gutter>\n </template>", | ||
}), | ||
__metadata('design:paramtypes', [core_1.ChangeDetectorRef, core_1.ElementRef, core_1.Renderer]) | ||
], SplitComponent); | ||
return SplitComponent; | ||
}()); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata("design:type", String) | ||
], SplitComponent.prototype, "direction", void 0); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata("design:type", Number) | ||
], SplitComponent.prototype, "width", void 0); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata("design:type", Number) | ||
], SplitComponent.prototype, "height", void 0); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata("design:type", Number) | ||
], SplitComponent.prototype, "gutterSize", void 0); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata("design:type", Boolean) | ||
], SplitComponent.prototype, "disabled", void 0); | ||
__decorate([ | ||
core_1.Output(), | ||
__metadata("design:type", Object) | ||
], SplitComponent.prototype, "dragStart", void 0); | ||
__decorate([ | ||
core_1.Output(), | ||
__metadata("design:type", Object) | ||
], SplitComponent.prototype, "dragProgress", void 0); | ||
__decorate([ | ||
core_1.Output(), | ||
__metadata("design:type", Object) | ||
], SplitComponent.prototype, "dragEnd", void 0); | ||
__decorate([ | ||
core_1.HostBinding('style.flex-direction'), | ||
__metadata("design:type", Object), | ||
__metadata("design:paramtypes", []) | ||
], SplitComponent.prototype, "styleFlexDirection", null); | ||
__decorate([ | ||
core_1.HostBinding('style.width'), | ||
__metadata("design:type", Object), | ||
__metadata("design:paramtypes", []) | ||
], SplitComponent.prototype, "styleWidth", null); | ||
__decorate([ | ||
core_1.HostBinding('style.height'), | ||
__metadata("design:type", Object), | ||
__metadata("design:paramtypes", []) | ||
], SplitComponent.prototype, "styleHeight", null); | ||
SplitComponent = __decorate([ | ||
core_1.Component({ | ||
selector: 'split', | ||
changeDetection: core_1.ChangeDetectionStrategy.OnPush, | ||
styles: ["\n :host {\n display: flex;\n flex-wrap: nowrap;\n justify-content: flex-start;\n }\n\n split-gutter {\n flex-grow: 0;\n flex-shrink: 0;\n flex-basis: 10px;\n height: 100%;\n background-color: #eeeeee;\n background-position: 50%;\n background-repeat: no-repeat;\n }\n "], | ||
template: "\n <ng-content></ng-content>\n <template ngFor let-area [ngForOf]=\"areas\" let-index=\"index\" let-last=\"last\">\n <split-gutter *ngIf=\"last === false\" \n [order]=\"index*2+1\"\n [direction]=\"direction\"\n [size]=\"_gutterSize\"\n [disabled]=\"_disabled\"\n (mousedown)=\"startDragging($event, index*2+1)\"\n (touchstart)=\"startDragging($event, index*2+1)\"></split-gutter>\n </template>", | ||
}), | ||
__metadata("design:paramtypes", [core_1.ChangeDetectorRef, | ||
core_1.ElementRef, | ||
core_1.Renderer]) | ||
], SplitComponent); | ||
exports.SplitComponent = SplitComponent; | ||
//# sourceMappingURL=split.component.js.map |
@@ -11,4 +11,4 @@ "use strict"; | ||
}; | ||
var core_1 = require('@angular/core'); | ||
var split_component_1 = require('./split.component'); | ||
var core_1 = require("@angular/core"); | ||
var split_component_1 = require("./split.component"); | ||
var SplitAreaDirective = (function () { | ||
@@ -69,33 +69,35 @@ function SplitAreaDirective(elementRef, renderer, split) { | ||
}; | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Number), | ||
__metadata('design:paramtypes', [Number]) | ||
], SplitAreaDirective.prototype, "order", null); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Object), | ||
__metadata('design:paramtypes', [Object]) | ||
], SplitAreaDirective.prototype, "size", null); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Number), | ||
__metadata('design:paramtypes', [Number]) | ||
], SplitAreaDirective.prototype, "minSizePixel", null); | ||
SplitAreaDirective = __decorate([ | ||
core_1.Directive({ | ||
selector: 'split-area', | ||
host: { | ||
'[style.flex-grow]': '"0"', | ||
'[style.flex-shrink]': '"0"', | ||
'[style.overflow-x]': '"hidden"', | ||
'[style.overflow-y]': '"auto"', | ||
'[style.height]': '"100%"' | ||
} | ||
}), | ||
__metadata('design:paramtypes', [core_1.ElementRef, core_1.Renderer, split_component_1.SplitComponent]) | ||
], SplitAreaDirective); | ||
return SplitAreaDirective; | ||
}()); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata("design:type", Number), | ||
__metadata("design:paramtypes", [Number]) | ||
], SplitAreaDirective.prototype, "order", null); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata("design:type", Object), | ||
__metadata("design:paramtypes", [Object]) | ||
], SplitAreaDirective.prototype, "size", null); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata("design:type", Number), | ||
__metadata("design:paramtypes", [Number]) | ||
], SplitAreaDirective.prototype, "minSizePixel", null); | ||
SplitAreaDirective = __decorate([ | ||
core_1.Directive({ | ||
selector: 'split-area', | ||
host: { | ||
'[style.flex-grow]': '"0"', | ||
'[style.flex-shrink]': '"0"', | ||
'[style.overflow-x]': '"hidden"', | ||
'[style.overflow-y]': '"auto"', | ||
'[style.height]': '"100%"' | ||
} | ||
}), | ||
__metadata("design:paramtypes", [core_1.ElementRef, | ||
core_1.Renderer, | ||
split_component_1.SplitComponent]) | ||
], SplitAreaDirective); | ||
exports.SplitAreaDirective = SplitAreaDirective; | ||
//# sourceMappingURL=splitArea.directive.js.map |
@@ -11,3 +11,3 @@ "use strict"; | ||
}; | ||
var core_1 = require('@angular/core'); | ||
var core_1 = require("@angular/core"); | ||
var SplitGutterDirective = (function () { | ||
@@ -77,31 +77,32 @@ function SplitGutterDirective(elementRef, renderer) { | ||
}; | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Number), | ||
__metadata('design:paramtypes', [Number]) | ||
], SplitGutterDirective.prototype, "order", null); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', String), | ||
__metadata('design:paramtypes', [String]) | ||
], SplitGutterDirective.prototype, "direction", null); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Object), | ||
__metadata('design:paramtypes', [Object]) | ||
], SplitGutterDirective.prototype, "size", null); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata('design:type', Boolean), | ||
__metadata('design:paramtypes', [Boolean]) | ||
], SplitGutterDirective.prototype, "disabled", null); | ||
SplitGutterDirective = __decorate([ | ||
core_1.Directive({ | ||
selector: 'split-gutter' | ||
}), | ||
__metadata('design:paramtypes', [core_1.ElementRef, core_1.Renderer]) | ||
], SplitGutterDirective); | ||
return SplitGutterDirective; | ||
}()); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata("design:type", Number), | ||
__metadata("design:paramtypes", [Number]) | ||
], SplitGutterDirective.prototype, "order", null); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata("design:type", String), | ||
__metadata("design:paramtypes", [String]) | ||
], SplitGutterDirective.prototype, "direction", null); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata("design:type", Object), | ||
__metadata("design:paramtypes", [Object]) | ||
], SplitGutterDirective.prototype, "size", null); | ||
__decorate([ | ||
core_1.Input(), | ||
__metadata("design:type", Boolean), | ||
__metadata("design:paramtypes", [Boolean]) | ||
], SplitGutterDirective.prototype, "disabled", null); | ||
SplitGutterDirective = __decorate([ | ||
core_1.Directive({ | ||
selector: 'split-gutter' | ||
}), | ||
__metadata("design:paramtypes", [core_1.ElementRef, | ||
core_1.Renderer]) | ||
], SplitGutterDirective); | ||
exports.SplitGutterDirective = SplitGutterDirective; | ||
//# sourceMappingURL=splitGutter.directive.js.map |
{ | ||
"name": "angular-split", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "Angular (2+) UI library to split views.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -12,2 +12,3 @@ { | ||
"noEmitOnError": true, | ||
"declaration": true, | ||
"outDir": "dist", | ||
@@ -14,0 +15,0 @@ "rootDir": "src", |
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
Sorry, the diff of this file is not supported yet
61214
26
1109