@wildebeest/boxlayout
Advanced tools
Comparing version 0.4.13 to 0.4.14
@@ -13,2 +13,6 @@ import { EmitterService, Emitter, ViewportService, DomService } from "@wildebeest/common"; | ||
static BLOCK_BOTTOM: string; | ||
static POSITION_TOP: string; | ||
static POSITION_RIGHT: string; | ||
static POSITION_BOTTOM: string; | ||
static POSITION_LEFT: string; | ||
protected positions: { | ||
@@ -32,2 +36,3 @@ [key: string]: AbsolutePosition; | ||
bindElement(element: any, blockName: string): Block; | ||
getPosition(positionName: string): AbsolutePosition; | ||
getBlock(blockName: string): Block; | ||
@@ -34,0 +39,0 @@ getEmitter(): Emitter; |
@@ -122,2 +122,5 @@ "use strict"; | ||
}; | ||
BoxLayout.prototype.getPosition = function (positionName) { | ||
return this.positions[positionName]; | ||
}; | ||
BoxLayout.prototype.getBlock = function (blockName) { | ||
@@ -139,5 +142,9 @@ return this.blocks[blockName]; | ||
BoxLayout.BLOCK_BOTTOM = "bottom"; | ||
BoxLayout.POSITION_TOP = "top"; | ||
BoxLayout.POSITION_RIGHT = "right"; | ||
BoxLayout.POSITION_BOTTOM = "bottom"; | ||
BoxLayout.POSITION_LEFT = "left"; | ||
BoxLayout = __decorate([ | ||
inversify_1.injectable(), | ||
__param(0, inversify_1.inject(common_1.EmitterService)), __param(1, inversify_1.inject(common_1.ViewportService)), __param(2, inversify_1.inject(HorizontalDeviderBuilder_1.HorizontalDeviderBuilder)), __param(3, inversify_1.inject(VerticalDeviderBuilder_1.VerticalDeviderBuilder)), __param(4, inversify_1.inject(common_1.DomService)), | ||
__param(0, inversify_1.inject(common_1.EmitterService)), __param(1, inversify_1.inject(common_1.ViewportService)), __param(2, inversify_1.inject('ComponentBuilder')), __param(2, inversify_1.named('horizontal-devider')), __param(3, inversify_1.inject('ComponentBuilder')), __param(3, inversify_1.named('vertical-devider')), __param(4, inversify_1.inject(common_1.DomService)), | ||
__metadata("design:paramtypes", [common_1.EmitterService, common_1.ViewportService, HorizontalDeviderBuilder_1.HorizontalDeviderBuilder, VerticalDeviderBuilder_1.VerticalDeviderBuilder, common_1.DomService]) | ||
@@ -144,0 +151,0 @@ ], BoxLayout); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var common_1 = require("@wildebeest/common"); | ||
var scroll_1 = require("@wildebeest/scroll"); | ||
var drag_1 = require("@wildebeest/drag"); | ||
@@ -14,8 +13,6 @@ var BoxLayout_1 = require("./BoxLayout"); | ||
BoxLayoutModule.prototype.getDependencies = function () { | ||
return [common_1.CommonModule, component_1.ComponentModule, scroll_1.ScrollModule, drag_1.DragModule]; | ||
return [common_1.CommonModule, component_1.ComponentModule, drag_1.DragModule]; | ||
}; | ||
BoxLayoutModule.prototype.register = function (container) { | ||
container.bind(BoxLayout_1.BoxLayout).toSelf(); | ||
container.bind(VerticalDeviderBuilder_1.VerticalDeviderBuilder).toSelf().inSingletonScope(); | ||
container.bind(HorizontalDeviderBuilder_1.HorizontalDeviderBuilder).toSelf().inSingletonScope(); | ||
container.bind('ComponentBuilder').to(VerticalDeviderBuilder_1.VerticalDeviderBuilder).inSingletonScope().whenTargetNamed('vertical-devider'); | ||
@@ -22,0 +19,0 @@ container.bind('ComponentBuilder').to(HorizontalDeviderBuilder_1.HorizontalDeviderBuilder).inSingletonScope().whenTargetNamed('horizontal-devider'); |
{ | ||
"name": "@wildebeest/boxlayout", | ||
"version": "0.4.13", | ||
"version": "0.4.14", | ||
"description": "Box Layout module for creating fullscreen admin enviroments", | ||
@@ -23,4 +23,3 @@ "main": "dist/index.js", | ||
"@wildebeest/drag": "^0.3.1", | ||
"@wildebeest/js-modules": "^0.1.2", | ||
"@wildebeest/scroll": "^0.3.5" | ||
"@wildebeest/js-modules": "^0.1.2" | ||
}, | ||
@@ -27,0 +26,0 @@ "devDependencies": { |
@@ -6,3 +6,2 @@ import { Binding } from "../binding/Binding"; | ||
import { Emitter } from "@wildebeest/common"; | ||
import { CallbackBinding } from "../binding/CallbackBinding"; | ||
@@ -9,0 +8,0 @@ export class BlockBlueprint implements Block |
@@ -1,2 +0,2 @@ | ||
import { injectable, inject } from "inversify"; | ||
import { injectable, inject, named } from "inversify"; | ||
import { EmitterService, Emitter, ViewportService, DomService } from "@wildebeest/common"; | ||
@@ -9,3 +9,2 @@ import { HorizontalDeviderBuilder } from "./HorizontalDeviderBuilder"; | ||
import { HorizontalBlock } from "./block/HorizontalBlock"; | ||
import { BlockBlueprint } from "./block/BlockBlueprint"; | ||
import { ComponentBuilder, Component } from "@wildebeest/component"; | ||
@@ -27,2 +26,7 @@ import { VerticalDeviderBuilder } from "./VerticalDeviderBuilder"; | ||
public static POSITION_TOP: string = "top"; | ||
public static POSITION_RIGHT: string = "right"; | ||
public static POSITION_BOTTOM: string = "bottom"; | ||
public static POSITION_LEFT: string = "left"; | ||
protected positions: { [key: string]: AbsolutePosition } = {}; | ||
@@ -38,3 +42,3 @@ protected blocks: { [key: string]: Block } = {}; | ||
constructor(@inject(EmitterService) emitterService: EmitterService, @inject(ViewportService) viewportService: ViewportService, @inject(HorizontalDeviderBuilder) horizontalBuilder: HorizontalDeviderBuilder, @inject(VerticalDeviderBuilder) verticalBuilder: VerticalDeviderBuilder, @inject(DomService) domService: DomService) | ||
constructor(@inject(EmitterService) emitterService: EmitterService, @inject(ViewportService) viewportService: ViewportService, @inject('ComponentBuilder') @named('horizontal-devider') horizontalBuilder: HorizontalDeviderBuilder, @inject('ComponentBuilder') @named('vertical-devider') verticalBuilder: VerticalDeviderBuilder, @inject(DomService) domService: DomService) | ||
{ | ||
@@ -135,2 +139,7 @@ this.emitterService = emitterService; | ||
public getPosition(positionName: string): AbsolutePosition | ||
{ | ||
return this.positions[positionName]; | ||
} | ||
public getBlock(blockName: string): Block | ||
@@ -137,0 +146,0 @@ { |
import { Module } from "@wildebeest/js-modules"; | ||
import { CommonModule } from "@wildebeest/common"; | ||
import { ScrollModule } from "@wildebeest/scroll"; | ||
import { DragModule } from "@wildebeest/drag"; | ||
@@ -8,3 +7,3 @@ import { Container } from "inversify"; | ||
import { HorizontalDeviderBuilder } from "./HorizontalDeviderBuilder"; | ||
import { ComponentModule } from "@wildebeest/component"; | ||
import { ComponentModule, ComponentBuilder } from "@wildebeest/component"; | ||
import { VerticalDeviderBuilder } from "./VerticalDeviderBuilder"; | ||
@@ -16,3 +15,3 @@ | ||
{ | ||
return [CommonModule, ComponentModule, ScrollModule, DragModule]; | ||
return [CommonModule, ComponentModule, DragModule]; | ||
} | ||
@@ -23,6 +22,4 @@ | ||
container.bind<BoxLayout>(BoxLayout).toSelf(); | ||
container.bind<VerticalDeviderBuilder>(VerticalDeviderBuilder).toSelf().inSingletonScope(); | ||
container.bind<HorizontalDeviderBuilder>(HorizontalDeviderBuilder).toSelf().inSingletonScope(); | ||
container.bind<VerticalDeviderBuilder>('ComponentBuilder').to(VerticalDeviderBuilder).inSingletonScope().whenTargetNamed('vertical-devider'); | ||
container.bind<HorizontalDeviderBuilder>('ComponentBuilder').to(HorizontalDeviderBuilder).inSingletonScope().whenTargetNamed('horizontal-devider'); | ||
container.bind<ComponentBuilder>('ComponentBuilder').to(VerticalDeviderBuilder).inSingletonScope().whenTargetNamed('vertical-devider'); | ||
container.bind<ComponentBuilder>('ComponentBuilder').to(HorizontalDeviderBuilder).inSingletonScope().whenTargetNamed('horizontal-devider'); | ||
} | ||
@@ -29,0 +26,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
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
128447
4
2326
- Removed@wildebeest/scroll@^0.3.5
- Removed@wildebeest/scroll@0.3.17(transitive)
- Removed@wildebeest/touch@0.3.2(transitive)