Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-boosted

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-boosted - npm Package Compare versions

Comparing version 0.0.2 to 1.0.0-alpha

index.d.ts

50

index.js
/*!
* --------------------------------------------------------------------------
* Ng-boosted - index.ts
* copyright 2017 Orange SA
* Licensed under MIT (https://github.com/Orange-OpenSource/ng-boosted/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var common_1 = require("@angular/common");
var router_1 = require("@angular/router");
var ng_bootstrap_1 = require("@ng-bootstrap/ng-bootstrap");
var scroll_top_component_1 = require("./scroll-top/scroll-top.component");
var o_navbar_component_1 = require("./o-navbar/o-navbar.component");
var scroll_top_component_2 = require("./scroll-top/scroll-top.component");
exports.ScrollTopComponent = scroll_top_component_2.ScrollTopComponent;
var o_navbar_component_2 = require("./o-navbar/o-navbar.component");
exports.ONavbarComponent = o_navbar_component_2.ONavbarComponent;
exports.ONavLink = o_navbar_component_2.ONavLink;
var NG_BOOSTED_DECLARATIONS = [scroll_top_component_1.ScrollTopComponent, o_navbar_component_1.ONavbarComponent, o_navbar_component_1.ONavLink];
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { ScrollTopComponent } from './scroll-top/scroll-top.component';
import { ONavbarComponent, ONavLink, ONavMenu } from './o-navbar/o-navbar.component';
import { OSwitchComponent } from './o-switch/o-switch.component';
import { OCarouselContainerComponent } from './o-carousel/o-carousel-container.component';
import { OCarouselComponent } from './o-carousel/o-carousel.component';
export { ScrollTopComponent } from './scroll-top/scroll-top.component';
export { ONavbarComponent, ONavLink } from './o-navbar/o-navbar.component';
export { OSwitchComponent } from './o-switch/o-switch.component';
export { OCarouselContainerComponent } from './o-carousel/o-carousel-container.component';
export { OCarouselComponent } from './o-carousel/o-carousel.component';
var NG_BOOSTED_DECLARATIONS = [
ScrollTopComponent,
ONavbarComponent,
ONavLink,
ONavMenu,
OSwitchComponent,
OCarouselContainerComponent,
OCarouselComponent
];
var NgBoostedModule = (function () {

@@ -27,4 +43,4 @@ function NgBoostedModule() {

NgBoostedModule = __decorate([
core_1.NgModule({
imports: [common_1.CommonModule, router_1.RouterModule, ng_bootstrap_1.NgbModule],
NgModule({
imports: [CommonModule, RouterModule, NgbModule],
declarations: NG_BOOSTED_DECLARATIONS,

@@ -34,3 +50,3 @@ exports: NG_BOOSTED_DECLARATIONS

], NgBoostedModule);
exports.NgBoostedModule = NgBoostedModule;
export { NgBoostedModule };
//# sourceMappingURL=index.js.map
/*!
* --------------------------------------------------------------------------
* Ng-boosted - o-navbar.component.ts
* copyright 2017 Orange SA
* Licensed under MIT (https://github.com/Orange-OpenSource/ng-boosted/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var TEST_PATTERN = /xs|sm|md|lg|xl/;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { Component, Input, ContentChildren, HostBinding } from '@angular/core';
var TEST_PATTERN = /xs|sm|md|lg|xl|xxl/;
var ONavLink = (function () {
function ONavLink() {
this.NavLinkClass = 'nav-item';
}

@@ -17,13 +23,40 @@ return ONavLink;

__decorate([
core_1.Input(),
__metadata("design:type", String)
Input()
], ONavLink.prototype, "route", void 0);
__decorate([
Input()
], ONavLink.prototype, "title", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", String)
], ONavLink.prototype, "route", void 0);
HostBinding('class')
], ONavLink.prototype, "NavLinkClass", void 0);
ONavLink = __decorate([
core_1.Directive({ selector: 'o-nav-link' })
Component({
selector: 'li[o-nav-link]',
template: "\n <a [routerLink]=\"route\" class=\"nav-link\" routerLinkActive=\"active\"\n [attr.title]=\"title === 'undefined' ? null : title\"><ng-content></ng-content></a>\n "
})
], ONavLink);
exports.ONavLink = ONavLink;
export { ONavLink };
var ONavMenu = (function () {
function ONavMenu() {
this.NavLinkClass = 'nav-item dropdown';
}
return ONavMenu;
}());
__decorate([
Input()
], ONavMenu.prototype, "menuTitle", void 0);
__decorate([
Input()
], ONavMenu.prototype, "title", void 0);
__decorate([
HostBinding('class')
], ONavMenu.prototype, "NavLinkClass", void 0);
ONavMenu = __decorate([
Component({
selector: 'li[o-nav-menu]',
styles: ["\n a:hover {\n cursor: pointer;\n }\n "],
template: "\n <a class=\"nav-link dropdown-toggle\" ngbDropdownToggle [attr.title]=\"title === 'undefined' ? null : title\">{{menuTitle}}</a>\n <ng-content class=\"dropdown-menu\"></ng-content>\n "
})
], ONavMenu);
export { ONavMenu };
var ONavbarComponent = (function () {

@@ -37,20 +70,23 @@ function ONavbarComponent() {

__decorate([
core_1.Input(),
__metadata("design:type", String)
Input()
], ONavbarComponent.prototype, "homeRoute", void 0);
__decorate([
core_1.Input(),
__metadata("design:type", String)
Input()
], ONavbarComponent.prototype, "breakpoint", void 0);
__decorate([
core_1.ContentChildren(ONavLink),
__metadata("design:type", core_1.QueryList)
Input()
], ONavbarComponent.prototype, "brandPath", void 0);
__decorate([
Input()
], ONavbarComponent.prototype, "brandLabel", void 0);
__decorate([
ContentChildren(ONavLink)
], ONavbarComponent.prototype, "items", void 0);
ONavbarComponent = __decorate([
core_1.Component({
Component({
selector: 'o-navbar',
template: "\n <nav [class]=\"'navbar navbar-inverse ' + (pattern.test(breakpoint) ? 'navbar-toggleable-'+breakpoint : 'navbar-toggleable-sm')\" role=\"navigation\">\n <div class=\"container\">\n <a class=\"navbar-brand logo\" [routerLink]=\"homeRoute\">\n <img src=\"/assets/img/orange-logo.jpg\" alt=\"Back to homepage\" title=\"Back to homepage\">\n </a>\n <button class=\"navbar-toggler\" type=\"button\" (click)=\"isCollapsed = !isCollapsed\"\n [attr.aria-expanded]=\"!isCollapsed\" aria-controls=\"collapseExample\">\n <span class=\"sr-only\">toggle navigation</span>\n <span class=\"icon-menu\"></span>\n </button>\n <div class=\"navbar-collapse collapse\" id=\"collapsingNavbarHead\" [ngbCollapse]=\"isCollapsed\">\n <ul class=\"navbar-nav\">\n <li class=\"nav-item\" routerLinkActive=\"active\" *ngFor=\"let item of items\">\n <a class=\"nav-link\" [routerLink]=\"item.route\">{{item.title}}</a>\n </li>\n </ul>\n </div>\n </div>\n </nav>\n "
template: "\n <nav [class]=\"'navbar navbar-inverse ' + (pattern.test(breakpoint) ? 'navbar-toggleable-'+breakpoint : 'navbar-toggleable-sm')\" role=\"navigation\">\n <div class=\"container\">\n <a class=\"navbar-brand logo\" [routerLink]=\"homeRoute\">\n <img [attr.src]=\"brandPath\" [attr.alt]=\"brandLabel\" [attr.title]=\"brandLabel\">\n </a>\n <button class=\"navbar-toggler\" type=\"button\" (click)=\"isCollapsed = !isCollapsed\"\n [attr.aria-expanded]=\"!isCollapsed\" aria-controls=\"collapseExample\">\n <span class=\"sr-only\">toggle navigation</span>\n <span class=\"icon-menu\"></span>\n </button>\n <div class=\"navbar-collapse collapse\" id=\"collapsingNavbarHead\" [ngbCollapse]=\"isCollapsed\">\n <ul class=\"navbar-nav\">\n <ng-content></ng-content>\n </ul>\n </div>\n </div>\n </nav>\n "
})
], ONavbarComponent);
exports.ONavbarComponent = ONavbarComponent;
export { ONavbarComponent };
//# sourceMappingURL=o-navbar.component.js.map
{
"name": "ng-boosted",
"version": "0.0.2",
"version": "1.0.0-alpha",
"description": "Orange Boosted with Angular",

@@ -20,7 +20,6 @@ "keywords": [

"main": "index.js",
"peerDependencies": {
"@angular/core": "^2.0.0",
"@angular/common": "^2.0.0",
"@angular/forms": "^2.0.0"
"typings": "index.d.ts",
"dependencies": {
"swiper": "^3.4.1"
}
}
}
/*!
* --------------------------------------------------------------------------
* Ng-boosted - scroll-top.component.ts
* copyright 2017 Orange SA
* Licensed under MIT (https://github.com/Orange-OpenSource/ng-boosted/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { Component, Input, HostListener } from '@angular/core';
var ScrollTopComponent = (function () {

@@ -25,13 +30,9 @@ function ScrollTopComponent() {

__decorate([
core_1.Input(),
__metadata("design:type", String)
Input()
], ScrollTopComponent.prototype, "label", void 0);
__decorate([
core_1.HostListener('window:scroll', []),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
HostListener('window:scroll', [])
], ScrollTopComponent.prototype, "onWindowScroll", null);
ScrollTopComponent = __decorate([
core_1.Component({
Component({
selector: 'scroll-top',

@@ -42,3 +43,3 @@ styles: ['a { display: inline;}'],

], ScrollTopComponent);
exports.ScrollTopComponent = ScrollTopComponent;
export { ScrollTopComponent };
//# sourceMappingURL=scroll-top.component.js.map

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc