io-ng-util
Advanced tools
Comparing version 6.0.4 to 6.1.0
@@ -6,7 +6,7 @@ import { Title } from '@angular/platform-browser'; | ||
setTitle(title: string): void; | ||
getDate(dt: string): any; | ||
newid(): string; | ||
guid(): any; | ||
getCookie(name: string): string; | ||
flattenObject(ob: any): any; | ||
getDate: (dt: string) => any; | ||
newId: () => string; | ||
guid: () => string; | ||
getCookie: (name: string) => string | undefined; | ||
flattenObject: (ob: any) => any; | ||
} |
@@ -8,60 +8,64 @@ "use strict"; | ||
function DTS(titleService) { | ||
var _this = this; | ||
this.titleService = titleService; | ||
} | ||
DTS.prototype.setTitle = function (title) { | ||
this.titleService.setTitle(title); | ||
}; | ||
DTS.prototype.getDate = function (dt) { | ||
var dat = new Date(parseInt(dt, 0)); | ||
return dat; | ||
}; | ||
DTS.prototype.newid = function () { | ||
return ('00000' + (Math.random() * Math.pow(36, 5) << 0).toString(36)).slice(-5).toUpperCase(); | ||
}; | ||
DTS.prototype.guid = function () { | ||
function _p8(s) { | ||
var p = (Math.random().toString(16) + '000000000').substr(2, 8); | ||
return s ? '-' + p.substr(0, 4) + '-' + p.substr(4, 4) : p; | ||
} | ||
var t = _p8(false) + _p8(true) + _p8(true) + _p8(false); | ||
return t.toLowerCase(); | ||
}; | ||
DTS.prototype.getCookie = function (name) { | ||
var nameEQ = name + '='; | ||
var ca = document.cookie.split(';'); | ||
for (var _i = 0, ca_1 = ca; _i < ca_1.length; _i++) { | ||
var c = ca_1[_i]; | ||
while (c.charAt(0) === ' ') { | ||
c = c.substring(1, c.length); | ||
this.getDate = function (dt) { | ||
var dat = new Date(parseInt(dt, 0)); | ||
return dat; | ||
}; | ||
this.newId = function () { | ||
var N = 7; | ||
return Array(N + 1).join((Math.random().toString(36) + "00000000000000000").slice(2, 18)).slice(0, N); | ||
}; | ||
this.guid = function () { | ||
var _p8 = function (s) { | ||
var p = (Math.random().toString(16) + "000000000").substr(2, 8); | ||
return s | ||
? "-" + p.substr(0, 4) + "-" + p.substr(4, 4) | ||
: p; | ||
}; | ||
var t = _p8(false) + _p8(true) + _p8(true) + _p8(false); | ||
return t.toLowerCase(); | ||
}; | ||
this.getCookie = function (name) { | ||
var nameEQ = name + "="; | ||
var ca = document.cookie.split(';'); | ||
for (var _i = 0, ca_1 = ca; _i < ca_1.length; _i++) { | ||
var c = ca_1[_i]; | ||
while (c.charAt(0) === ' ') { | ||
c = c.substring(1, c.length); | ||
} | ||
if (c.indexOf(nameEQ) === 0) { | ||
var co = c.substring(nameEQ.length, c.length); | ||
if (co === undefined || co === 'undefined') { | ||
return undefined; | ||
} | ||
return co; | ||
} | ||
} | ||
if (c.indexOf(nameEQ) === 0) { | ||
var co = c.substring(nameEQ.length, c.length); | ||
if (co === undefined || co === 'undefined') { | ||
return null; | ||
return undefined; | ||
}; | ||
this.flattenObject = function (ob) { | ||
var toReturn = {}; | ||
for (var i in ob) { | ||
if (!ob.hasOwnProperty(i)) { | ||
continue; | ||
} | ||
return co; | ||
} | ||
} | ||
return null; | ||
}; | ||
DTS.prototype.flattenObject = function (ob) { | ||
var toReturn = {}; | ||
for (var i in ob) { | ||
if (!ob.hasOwnProperty(i)) { | ||
continue; | ||
} | ||
if ((typeof ob[i]) === 'object') { | ||
var flatObject = this.flattenObject(ob[i]); | ||
for (var x in flatObject) { | ||
if (!flatObject.hasOwnProperty(x)) { | ||
continue; | ||
if ((typeof ob[i]) === 'object') { | ||
var flatObject = _this.flattenObject(ob[i]); | ||
for (var x in flatObject) { | ||
if (!flatObject.hasOwnProperty(x)) { | ||
continue; | ||
} | ||
toReturn[x] = flatObject[x]; | ||
} | ||
toReturn[x] = flatObject[x]; | ||
} | ||
else { | ||
toReturn[i] = ob[i]; | ||
} | ||
} | ||
else { | ||
toReturn[i] = ob[i]; | ||
} | ||
} | ||
return toReturn; | ||
return toReturn; | ||
}; | ||
} | ||
DTS.prototype.setTitle = function (title) { | ||
this.titleService.setTitle(title); | ||
}; | ||
@@ -68,0 +72,0 @@ DTS.decorators = [ |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"DTS":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"Title"}]}],"setTitle":[{"__symbolic":"method"}],"getDate":[{"__symbolic":"method"}],"newid":[{"__symbolic":"method"}],"guid":[{"__symbolic":"method"}],"getCookie":[{"__symbolic":"method"}],"flattenObject":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"DTS":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"Title","line":12,"character":30}]}],"setTitle":[{"__symbolic":"method"}]}}}}] |
export interface IUser { | ||
email: string; | ||
name: string; | ||
token: string; | ||
email: string | undefined; | ||
name: string | undefined; | ||
token: string | undefined; | ||
loggedIn: boolean; | ||
allowed: boolean; | ||
roles: any; | ||
[index: string]: any; | ||
} | ||
@@ -13,8 +14,8 @@ export declare class Env { | ||
constructor(); | ||
getField(field: any): any; | ||
setField(field: string, value: any): void; | ||
removeField(field: string, value: any): void; | ||
setUser(obj: any): void; | ||
getUser(): any; | ||
revokeUser(): void; | ||
getField: (field: any) => any; | ||
setField: (field: string, value: any) => void; | ||
removeField: (field: string, value: any) => void; | ||
setUser: (obj: any) => void; | ||
getUser: () => any; | ||
revokeUser: () => void; | ||
} |
@@ -6,2 +6,35 @@ 'use strict'; | ||
function Env() { | ||
var _this = this; | ||
this.getField = function (field) { | ||
return _this.config[field]; | ||
}; | ||
this.setField = function (field, value) { | ||
_this.config[field].push(value); | ||
}; | ||
this.removeField = function (field, value) { | ||
var idx = _this.config[field].indexOf(value); | ||
_this.config[field].splice(idx, 1); | ||
}; | ||
this.setUser = function (obj) { | ||
for (var prop in obj) { | ||
if (!obj.hasOwnProperty(prop)) { | ||
continue; | ||
} | ||
_this.user[prop] = obj[prop]; | ||
} | ||
console.info('$env (setUser show email) => ', _this.user.email); | ||
}; | ||
this.getUser = function () { | ||
return _this.user; | ||
}; | ||
this.revokeUser = function () { | ||
_this.user = { | ||
allowed: false, | ||
email: undefined, | ||
loggedIn: false, | ||
name: undefined, | ||
roles: {}, | ||
token: undefined, | ||
}; | ||
}; | ||
this.config = { | ||
@@ -19,34 +52,2 @@ bodyClass: [''], | ||
} | ||
Env.prototype.getField = function (field) { | ||
return this.config[field]; | ||
}; | ||
Env.prototype.setField = function (field, value) { | ||
this.config[field].push(value); | ||
}; | ||
Env.prototype.removeField = function (field, value) { | ||
var idx = this.config[field].indexOf(value); | ||
this.config[field].splice(idx, 1); | ||
}; | ||
Env.prototype.setUser = function (obj) { | ||
for (var prop in obj) { | ||
if (!obj.hasOwnProperty(prop)) { | ||
continue; | ||
} | ||
this.user[prop] = obj[prop]; | ||
} | ||
console.info('$env (setUser show email) => ', this.user.email); | ||
}; | ||
Env.prototype.getUser = function () { | ||
return this.user; | ||
}; | ||
Env.prototype.revokeUser = function () { | ||
this.user = { | ||
allowed: false, | ||
email: null, | ||
loggedIn: false, | ||
name: null, | ||
roles: {}, | ||
token: null, | ||
}; | ||
}; | ||
Env.decorators = [ | ||
@@ -53,0 +54,0 @@ { type: core_1.Injectable }, |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"IUser":{"__symbolic":"interface"},"Env":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"getField":[{"__symbolic":"method"}],"setField":[{"__symbolic":"method"}],"removeField":[{"__symbolic":"method"}],"setUser":[{"__symbolic":"method"}],"getUser":[{"__symbolic":"method"}],"revokeUser":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"IUser":{"__symbolic":"interface"},"Env":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":14,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}}}}] |
@@ -13,8 +13,10 @@ import 'rxjs/add/operator/catch'; | ||
constructor(http: Http, jsonp: Jsonp, env: Env); | ||
httpGet(url: string): Observable<any[]>; | ||
httpPost(url: string, body: any, flatten?: boolean): Observable<any[]>; | ||
jsonpGet(url: string): Observable<any[]>; | ||
handleError(err: any): any; | ||
makeHeaders(multiPart?: boolean): RequestOptions; | ||
private extractData(res); | ||
httpGet: (url: string) => Observable<any[]>; | ||
httpPost: (url: string, body: any, flatten?: boolean | undefined) => Observable<any[]>; | ||
jsonpGet: (url: string) => Observable<any[]>; | ||
handleError: (err: any) => any; | ||
makeHeaders: (multiPart?: boolean | undefined) => RequestOptions; | ||
private extractData; | ||
private cleanObject; | ||
private flattenObject; | ||
} |
@@ -12,79 +12,116 @@ 'use strict'; | ||
function HttpService(http, jsonp, env) { | ||
var _this = this; | ||
this.http = http; | ||
this.jsonp = jsonp; | ||
this.env = env; | ||
} | ||
HttpService.prototype.httpGet = function (url) { | ||
return this.http.get(url, this.makeHeaders()) | ||
.map(this.extractData) | ||
.catch(this.handleError); | ||
}; | ||
HttpService.prototype.httpPost = function (url, body, flatten) { | ||
var formData; | ||
var data = !flatten | ||
? cleanObject(body) | ||
: flattenObject(body); | ||
var multiPart = false; | ||
if (data.files) { | ||
formData = new FormData(); | ||
for (var _i = 0, _a = data.files; _i < _a.length; _i++) { | ||
var file = _a[_i]; | ||
formData.append('file', file, file.name); | ||
this.httpGet = function (url) { | ||
return _this.http.get(url, _this.makeHeaders()) | ||
.map(_this.extractData) | ||
.catch(_this.handleError); | ||
}; | ||
this.httpPost = function (url, body, flatten) { | ||
var formData; | ||
var data = !flatten | ||
? _this.cleanObject(body) | ||
: _this.flattenObject(body); | ||
var multiPart = false; | ||
if (data.files) { | ||
formData = new FormData(); | ||
for (var _i = 0, _a = data.files; _i < _a.length; _i++) { | ||
var file = _a[_i]; | ||
formData.append('file', file, file.name); | ||
} | ||
delete data.files; | ||
formData.append('body', JSON.stringify(data)); | ||
multiPart = true; | ||
} | ||
delete data.files; | ||
formData.append('body', JSON.stringify(data)); | ||
multiPart = true; | ||
} | ||
else { | ||
formData = JSON.stringify(data); | ||
} | ||
return this.http.post(url, formData, this.makeHeaders(multiPart)) | ||
.map(this.extractData) | ||
.catch(this.handleError); | ||
}; | ||
HttpService.prototype.jsonpGet = function (url) { | ||
return this.jsonp.get(url, this.makeHeaders()) | ||
.map(this.extractData) | ||
.catch(this.handleError); | ||
}; | ||
HttpService.prototype.handleError = function (err) { | ||
var msg = ''; | ||
if (err._body !== undefined || err._body !== null) { | ||
var body = err._body; | ||
try { | ||
body = JSON.parse(body); | ||
else { | ||
formData = JSON.stringify(data); | ||
} | ||
catch (e) { | ||
return _this.http.post(url, formData, _this.makeHeaders(multiPart)) | ||
.map(_this.extractData) | ||
.catch(_this.handleError); | ||
}; | ||
this.jsonpGet = function (url) { | ||
return _this.jsonp.get(url, _this.makeHeaders()) | ||
.map(_this.extractData) | ||
.catch(_this.handleError); | ||
}; | ||
this.handleError = function (err) { | ||
var msg = ''; | ||
if (err._body !== undefined || err._body !== null) { | ||
var body = err._body; | ||
try { | ||
body = JSON.parse(body); | ||
} | ||
catch (e) { | ||
} | ||
if (body.message) { | ||
msg += body.message; | ||
} | ||
else { | ||
msg += body; | ||
} | ||
} | ||
if (body.message) { | ||
msg += body.message; | ||
} | ||
else { | ||
msg += body; | ||
msg += err.status + " " + err.statusText; | ||
} | ||
} | ||
else { | ||
msg += err.status + ' ' + err.statusText; | ||
} | ||
msg += ' - Url : ' + err.url; | ||
msg += ' - On ' + Date(); | ||
console.info('$http.service (received observer error) => ' + msg); | ||
return Observable_1.Observable.throw(msg); | ||
}; | ||
HttpService.prototype.makeHeaders = function (multiPart) { | ||
var h = {}; | ||
if (!multiPart) { | ||
h = { | ||
'Content-Type': 'application/json', | ||
}; | ||
} | ||
if (this.env.user.token) { | ||
h.Authorization = "Bearer " + this.env.user.token; | ||
} | ||
this.headers = new http_1.Headers(h); | ||
return new http_1.RequestOptions({ headers: this.headers }); | ||
}; | ||
HttpService.prototype.extractData = function (res) { | ||
return res.json() || [{}]; | ||
}; | ||
msg += " - Url : " + err.url; | ||
msg += " - On " + Date(); | ||
console.info("$http.service (received observer error) => " + msg); | ||
return Observable_1.Observable.throw(msg); | ||
}; | ||
this.makeHeaders = function (multiPart) { | ||
var h = {}; | ||
if (!multiPart) { | ||
h = { | ||
'Content-Type': 'application/json', | ||
}; | ||
} | ||
if (_this.env.user.token) { | ||
h.Authorization = "Bearer " + _this.env.user.token; | ||
} | ||
h['X-Request-Id'] = | ||
_this.headers = new http_1.Headers(h); | ||
return new http_1.RequestOptions({ headers: _this.headers }); | ||
}; | ||
this.extractData = function (res) { | ||
return res.json() || [{}]; | ||
}; | ||
this.cleanObject = function (ob) { | ||
Object.keys(ob).forEach(function (key) { | ||
if (Array.isArray(ob[key]) && ob[key].length === 0) { | ||
delete ob[key]; | ||
} | ||
else if (ob[key] && typeof ob[key] === 'object') { | ||
_this.cleanObject(ob[key]); | ||
} | ||
else if (ob[key] === null) { | ||
delete ob[key]; | ||
} | ||
}); | ||
return ob; | ||
}; | ||
this.flattenObject = function (ob) { | ||
var toReturn = {}; | ||
for (var i in ob) { | ||
if (!ob.hasOwnProperty(i)) { | ||
continue; | ||
} | ||
if ((typeof ob[i]) === 'object') { | ||
var flatObject = _this.flattenObject(ob[i]); | ||
for (var x in flatObject) { | ||
if (!flatObject.hasOwnProperty(x)) { | ||
continue; | ||
} | ||
toReturn[x] = flatObject[x]; | ||
} | ||
} | ||
else { | ||
toReturn[i] = ob[i]; | ||
} | ||
} | ||
return toReturn; | ||
}; | ||
} | ||
HttpService.decorators = [ | ||
@@ -101,36 +138,1 @@ { type: core_1.Injectable }, | ||
exports.HttpService = HttpService; | ||
function cleanObject(ob) { | ||
Object.keys(ob).forEach(function (key) { | ||
if (Array.isArray(ob[key]) && ob[key].length === 0) { | ||
delete ob[key]; | ||
} | ||
else if (ob[key] && typeof ob[key] === 'object') { | ||
cleanObject(ob[key]); | ||
} | ||
else if (ob[key] == null) { | ||
delete ob[key]; | ||
} | ||
}); | ||
return ob; | ||
} | ||
function flattenObject(ob) { | ||
var toReturn = {}; | ||
for (var i in ob) { | ||
if (!ob.hasOwnProperty(i)) { | ||
continue; | ||
} | ||
if ((typeof ob[i]) === 'object') { | ||
var flatObject = flattenObject(ob[i]); | ||
for (var x in flatObject) { | ||
if (!flatObject.hasOwnProperty(x)) { | ||
continue; | ||
} | ||
toReturn[x] = flatObject[x]; | ||
} | ||
} | ||
else { | ||
toReturn[i] = ob[i]; | ||
} | ||
} | ||
return toReturn; | ||
} |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"HttpService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"},{"__symbolic":"reference","module":"@angular/http","name":"Jsonp"},{"__symbolic":"reference","module":"./env","name":"Env"}]}],"httpGet":[{"__symbolic":"method"}],"httpPost":[{"__symbolic":"method"}],"jsonpGet":[{"__symbolic":"method"}],"handleError":[{"__symbolic":"method"}],"makeHeaders":[{"__symbolic":"method"}],"extractData":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"HttpService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http","line":16,"character":22},{"__symbolic":"reference","module":"@angular/http","name":"Jsonp","line":17,"character":23},{"__symbolic":"reference","module":"./env","name":"Env","line":18,"character":21}]}]}}}}] |
@@ -1,6 +0,4 @@ | ||
import { Location } from '@angular/common'; | ||
import { HttpService } from '../common/http.service'; | ||
export declare class ContactComponent { | ||
private httpService; | ||
private location; | ||
url: string; | ||
@@ -10,3 +8,3 @@ closed: boolean; | ||
private oldTime; | ||
constructor(httpService: HttpService, location: Location); | ||
constructor(httpService: HttpService); | ||
openContact(): void; | ||
@@ -13,0 +11,0 @@ closeContact(): void; |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var core_1 = require("@angular/core"); | ||
var common_1 = require("@angular/common"); | ||
var contact_pug_1 = require("./contact.pug"); | ||
var http_service_1 = require("../common/http.service"); | ||
var ContactComponent = (function () { | ||
function ContactComponent(httpService, location) { | ||
function ContactComponent(httpService) { | ||
this.httpService = httpService; | ||
this.location = location; | ||
this.closed = true; | ||
@@ -47,3 +45,2 @@ this.content = ''; | ||
{ type: http_service_1.HttpService, }, | ||
{ type: common_1.Location, }, | ||
]; }; | ||
@@ -50,0 +47,0 @@ ContactComponent.propDecorators = { |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"ContactComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"io-contact-module","styles":["\n .DIV_1.closed {\nheight:4px;\n}\n\n.DIV_1.closed .P_5, .DIV_1.closed .DIV_7{\ndisplay:none\n}\n\n.DIV_1.closed .DIV_4{\nheight:4px;\ndisplay:block;\n}\n\n.DIV_1.closed .A_2 {\nheight:18px;\npadding-top:2px;\n}\n\n.DIV_1 {\nbackground:#008571 none repeat scroll 0 0 / auto padding-box border-box;\nborder:0 none #fff;\nborder-radius:5px 5px 0 0;\nbottom:0;\nbox-shadow:rgba(0,0,0,0.6) 0 0 7px 0;\ncolor:#fff;\ncolumn-rule-color:#fff;\nheight:175px;\nleft:100px;\noutline:#fff none 0;\nperspective-origin:150px 87.5px;\nposition:fixed;\nright:100%;\ntransform:matrix(1,0,0,1,0,0);\ntransform-origin:150px 87.5px;\nwidth:300px;\nz-index:2147483647;\n-webkit-transition: height 0.5s ease-in-out;\n-moz-transition: height 0.5s ease-in-out;\n-ms-transition: height 0.5s ease-in-out;\n-o-transition: height 0.5s ease-in-out;\n}\n\n.A_2{\nbackground: #008571 none repeat scroll 0 0 / auto padding-box border-box;\nborder: 0 none #fff;\nborder-radius: 5px 5px 0 0;\nbottom: 173px;\nbox-shadow: rgba(0,0,0,0.6) 0 0 7px 0;\ncolor: #fff;\nposition: absolute;\nright: 20px;\ntext-align: center;\ntext-decoration: none;\ntop: -18px;\ntransform-origin: 20px 10px;\ntransition: color .3s ease 0;\nwidth: 40px;\n}\n\n.A_2:before{\nbackground: #008571 none repeat scroll 0 0 / auto padding-box border-box;\ncontent: \"\";\nheight: 8px;\nleft: -4px;\nposition: absolute;\nright: -4px;\ntop: 20px;\ntransform-origin: 24px 4px;\n}\n\n.closed .SPAN_3 {\n background: rgba(0,0,0,0) url(/public/images/widget_icons_dark.png) no-repeat scroll 0 0 / auto padding-box border-box;\n}\n\n.SPAN_3{\nbackground: rgba(0,0,0,0) url(/public/images/widget_icons_dark.png) no-repeat scroll -32px 0 / auto padding-box border-box;\ndisplay: inline-block;\nheight: 16px;\nwidth: 16px;\n}\n\n.DIV_4 {\nbackground:#008571 none repeat scroll 0 0 / auto padding-box border-box;\nborder:0 none #fff;\nborder-radius:5px 5px 0 0;\ncolor:#fff;\ncolumn-rule-color:#fff;\ncursor:pointer;\ndisplay:none;\nheight:4px;\noutline:#fff none 0;\nperspective-origin:50% 50%;\ntransform-origin:50% 50%;\nwidth:auto;\n}\n\n.P_5{\nborder:0 none #fff;\ncolor:#fff;\ncolumn-rule-color:#fff;\ncursor:pointer;\nheight:20px;\nmargin:0;\nmin-height:17px;\noutline:#fff none 0;\noverflow-wrap:break-word;\npadding:12px;\nperspective-origin:150px 37.5px;\ntext-align:center;\ntransform-origin:150px 37.5px;\nwidth:276px;\nword-break:break-word;\nword-wrap:break-word;\n}\n\n.SPAN_6{\nborder:0 none #fff;\ncolor:#fff;\ncolumn-rule-color:#fff;\ncursor:pointer;\noutline:#fff none 0;\noverflow-wrap:break-word;\ntext-align:center;\nword-break:break-word;\nword-wrap:break-word;\n}\n\n.DIV_7{\nborder:0 none #fff;\ncolor:#fff;\ncolumn-rule-color:#fff;\nheight:100px;\noutline:#fff none 0;\nperspective-origin:150px 50px;\ntransform-origin:150px 50px;\nwidth:300px;\n}\n\n.DIV_9{\noverflow:auto;\npadding:0 11px 0 12px;\n}\n\n.DIV_10{\nbackground: #1a9f8b none repeat scroll 0 0 / auto padding-box border-box;\nborder-bottom: 0 none #fff;\nborder-left: 0 none #fff;\nborder-right: 0 none #fff;\nborder-top: 1px solid #33b8a4;\nbox-sizing: border-box;\nmax-height: 80px;\nmargin: 0 -12px;\npadding:5px;\noverflow-y: scroll;\n}\n\n.DIV_11{\nborder-bottom: 0 none #fff;\nborder-left: 0 none #fff;\nborder-right: 0 none #fff;\nborder-top: 1px solid #006c58;\n}\n\n.DIV_12{\nfloat:right;\npadding:12px 12px 12px 0;\n}\n\n.BUTTON_13{\nbackground:#00c764 none repeat scroll 0 0 / auto padding-box border-box;\nborder:0 none #fff;\nborder-radius:3px 3px 3px 3px;\nbox-shadow:rgba(0,0,0,0.14902) 0 2px 3px 0;\ncolor:#fff;\ncolumn-rule-color:#fff;\ncursor:pointer;\nheight:30px;\nmin-height:0;\noutline:#fff none 0;\npadding:7px 10px;\nperspective-origin:39.7031px 15px;\ntransform-origin:39.7031px 15px;\ntransition:all .2s ease-in-out 0;\nvertical-align:top;\nwidth:79.4062px;\n}\n\n.SPAN_14{\nbackground: rgba(0,0,0,0) url(/public/images/widget_icons_dark.png) no-repeat scroll -64px 0 / auto padding-box border-box;\ncursor: pointer;\ndisplay: inline-block;\nheight: 16px;\nmargin: 0 0 0 8px;\nvertical-align: top;\nwidth: 16px;\n}\n "],"template":{"__symbolic":"reference","module":"./contact.pug","name":"tmpl"}}]}],"members":{"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../common/http.service","name":"HttpService"},{"__symbolic":"reference","module":"@angular/common","name":"Location"}]}],"openContact":[{"__symbolic":"method"}],"closeContact":[{"__symbolic":"method"}],"getNews":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"ContactComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"io-contact-module","styles":["\n .DIV_1.closed {\nheight:4px;\n}\n\n.DIV_1.closed .P_5, .DIV_1.closed .DIV_7{\ndisplay:none\n}\n\n.DIV_1.closed .DIV_4{\nheight:4px;\ndisplay:block;\n}\n\n.DIV_1.closed .A_2 {\nheight:18px;\npadding-top:2px;\n}\n\n.DIV_1 {\nbackground:#008571 none repeat scroll 0 0 / auto padding-box border-box;\nborder:0 none #fff;\nborder-radius:5px 5px 0 0;\nbottom:0;\nbox-shadow:rgba(0,0,0,0.6) 0 0 7px 0;\ncolor:#fff;\ncolumn-rule-color:#fff;\nheight:175px;\nleft:100px;\noutline:#fff none 0;\nperspective-origin:150px 87.5px;\nposition:fixed;\nright:100%;\ntransform:matrix(1,0,0,1,0,0);\ntransform-origin:150px 87.5px;\nwidth:300px;\nz-index:2147483647;\n-webkit-transition: height 0.5s ease-in-out;\n-moz-transition: height 0.5s ease-in-out;\n-ms-transition: height 0.5s ease-in-out;\n-o-transition: height 0.5s ease-in-out;\n}\n\n.A_2{\nbackground: #008571 none repeat scroll 0 0 / auto padding-box border-box;\nborder: 0 none #fff;\nborder-radius: 5px 5px 0 0;\nbottom: 173px;\nbox-shadow: rgba(0,0,0,0.6) 0 0 7px 0;\ncolor: #fff;\nposition: absolute;\nright: 20px;\ntext-align: center;\ntext-decoration: none;\ntop: -18px;\ntransform-origin: 20px 10px;\ntransition: color .3s ease 0;\nwidth: 40px;\n}\n\n.A_2:before{\nbackground: #008571 none repeat scroll 0 0 / auto padding-box border-box;\ncontent: \"\";\nheight: 8px;\nleft: -4px;\nposition: absolute;\nright: -4px;\ntop: 20px;\ntransform-origin: 24px 4px;\n}\n\n.closed .SPAN_3 {\n background: rgba(0,0,0,0) url(/public/images/widget_icons_dark.png) no-repeat scroll 0 0 / auto padding-box border-box;\n}\n\n.SPAN_3{\nbackground: rgba(0,0,0,0) url(/public/images/widget_icons_dark.png) no-repeat scroll -32px 0 / auto padding-box border-box;\ndisplay: inline-block;\nheight: 16px;\nwidth: 16px;\n}\n\n.DIV_4 {\nbackground:#008571 none repeat scroll 0 0 / auto padding-box border-box;\nborder:0 none #fff;\nborder-radius:5px 5px 0 0;\ncolor:#fff;\ncolumn-rule-color:#fff;\ncursor:pointer;\ndisplay:none;\nheight:4px;\noutline:#fff none 0;\nperspective-origin:50% 50%;\ntransform-origin:50% 50%;\nwidth:auto;\n}\n\n.P_5{\nborder:0 none #fff;\ncolor:#fff;\ncolumn-rule-color:#fff;\ncursor:pointer;\nheight:20px;\nmargin:0;\nmin-height:17px;\noutline:#fff none 0;\noverflow-wrap:break-word;\npadding:12px;\nperspective-origin:150px 37.5px;\ntext-align:center;\ntransform-origin:150px 37.5px;\nwidth:276px;\nword-break:break-word;\nword-wrap:break-word;\n}\n\n.SPAN_6{\nborder:0 none #fff;\ncolor:#fff;\ncolumn-rule-color:#fff;\ncursor:pointer;\noutline:#fff none 0;\noverflow-wrap:break-word;\ntext-align:center;\nword-break:break-word;\nword-wrap:break-word;\n}\n\n.DIV_7{\nborder:0 none #fff;\ncolor:#fff;\ncolumn-rule-color:#fff;\nheight:100px;\noutline:#fff none 0;\nperspective-origin:150px 50px;\ntransform-origin:150px 50px;\nwidth:300px;\n}\n\n.DIV_9{\noverflow:auto;\npadding:0 11px 0 12px;\n}\n\n.DIV_10{\nbackground: #1a9f8b none repeat scroll 0 0 / auto padding-box border-box;\nborder-bottom: 0 none #fff;\nborder-left: 0 none #fff;\nborder-right: 0 none #fff;\nborder-top: 1px solid #33b8a4;\nbox-sizing: border-box;\nmax-height: 80px;\nmargin: 0 -12px;\npadding:5px;\noverflow-y: scroll;\n}\n\n.DIV_11{\nborder-bottom: 0 none #fff;\nborder-left: 0 none #fff;\nborder-right: 0 none #fff;\nborder-top: 1px solid #006c58;\n}\n\n.DIV_12{\nfloat:right;\npadding:12px 12px 12px 0;\n}\n\n.BUTTON_13{\nbackground:#00c764 none repeat scroll 0 0 / auto padding-box border-box;\nborder:0 none #fff;\nborder-radius:3px 3px 3px 3px;\nbox-shadow:rgba(0,0,0,0.14902) 0 2px 3px 0;\ncolor:#fff;\ncolumn-rule-color:#fff;\ncursor:pointer;\nheight:30px;\nmin-height:0;\noutline:#fff none 0;\npadding:7px 10px;\nperspective-origin:39.7031px 15px;\ntransform-origin:39.7031px 15px;\ntransition:all .2s ease-in-out 0;\nvertical-align:top;\nwidth:79.4062px;\n}\n\n.SPAN_14{\nbackground: rgba(0,0,0,0) url(/public/images/widget_icons_dark.png) no-repeat scroll -64px 0 / auto padding-box border-box;\ncursor: pointer;\ndisplay: inline-block;\nheight: 16px;\nmargin: 0 0 0 8px;\nvertical-align: top;\nwidth: 16px;\n}\n "],"template":{"__symbolic":"reference","module":"./contact.pug","name":"tmpl","line":206,"character":14}}]}],"members":{"url":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":210,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../common/http.service","name":"HttpService","line":217,"character":29}]}],"openContact":[{"__symbolic":"method"}],"closeContact":[{"__symbolic":"method"}],"getNews":[{"__symbolic":"method"}]}}}}] |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"ContactModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./contact.component","name":"ContactComponent"}],"exports":[{"__symbolic":"reference","module":"./contact.component","name":"ContactComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"providers":[]}]}]}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"ContactModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./contact.component","name":"ContactComponent","line":8,"character":8}],"exports":[{"__symbolic":"reference","module":"./contact.component","name":"ContactComponent","line":11,"character":8}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":14,"character":8}],"providers":[]}]}]}}}] |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"Directives":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./ibm-back-to-top.directive","name":"IBMBackToTopDirective"},{"__symbolic":"reference","module":"./ibm.sticky.header.directive","name":"IBMStickyHeaderDirective"}],"exports":[{"__symbolic":"reference","module":"./ibm-back-to-top.directive","name":"IBMBackToTopDirective"},{"__symbolic":"reference","module":"./ibm.sticky.header.directive","name":"IBMStickyHeaderDirective"}]}]}]}},"exports":[{"from":"./layout.module","export":["LayoutModule"]}]}] | ||
[{"__symbolic":"module","version":4,"metadata":{"Directives":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":7,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./ibm-back-to-top.directive","name":"IBMBackToTopDirective","line":9,"character":8},{"__symbolic":"reference","module":"./ibm.sticky.header.directive","name":"IBMStickyHeaderDirective","line":10,"character":8}],"exports":[{"__symbolic":"reference","module":"./ibm-back-to-top.directive","name":"IBMBackToTopDirective","line":13,"character":8},{"__symbolic":"reference","module":"./ibm.sticky.header.directive","name":"IBMStickyHeaderDirective","line":14,"character":8}]}]}]}},"exports":[{"from":"./layout.module","export":["LayoutModule"]}]}] |
@@ -20,6 +20,9 @@ "use strict"; | ||
this.buttonAppendTo.insertAdjacentHTML('beforeend', scroller); | ||
document.getElementById('backtotop').addEventListener('click', function (evt) { | ||
evt.preventDefault(); | ||
self.TopscrollTo(); | ||
}); | ||
var el = document.getElementById('backtotop'); | ||
if (el) { | ||
el.addEventListener('click', function (evt) { | ||
evt.preventDefault(); | ||
self.TopscrollTo(); | ||
}); | ||
} | ||
self.TopscrollTo(); | ||
@@ -38,3 +41,6 @@ }; | ||
if (window.scrollY > this.windowHeight && !this.isActive) { | ||
document.getElementById('backtotop').setAttribute('tabindex', '0'); | ||
var el = document.getElementById('backtotop'); | ||
if (el) { | ||
el.setAttribute('tabindex', '0'); | ||
} | ||
document.getElementsByClassName('ibm-btt-auto')[0].classList.add('ibm-active'); | ||
@@ -44,3 +50,6 @@ this.isActive = true; | ||
else if (window.scrollY < this.windowHeight && this.isActive) { | ||
document.getElementById('backtotop').setAttribute('tabindex', '-1'); | ||
var el = document.getElementById('backtotop'); | ||
if (el) { | ||
el.setAttribute('tabindex', '-1'); | ||
} | ||
document.getElementsByClassName('ibm-btt-auto')[0].classList.remove('ibm-active'); | ||
@@ -47,0 +56,0 @@ this.isActive = false; |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"IBMBackToTopDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ioIBMBackToTop]"}]}],"members":{"onWindowScroll":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener"},"arguments":["window:scroll",[]]}]}],"ngOnInit":[{"__symbolic":"method"}],"TopscrollTo":[{"__symbolic":"method"}],"toggleBackToTop":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"IBMBackToTopDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"[ioIBMBackToTop]"}]}],"members":{"onWindowScroll":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":13,"character":5},"arguments":["window:scroll",[]]}]}],"ngOnInit":[{"__symbolic":"method"}],"TopscrollTo":[{"__symbolic":"method"}],"toggleBackToTop":[{"__symbolic":"method"}]}}}}] |
@@ -16,3 +16,3 @@ 'use strict'; | ||
var _this = this; | ||
this.renderer.listenGlobal('window', 'scroll', function (evt) { | ||
this.renderer.listenGlobal('window', 'scroll', function () { | ||
_this.handler(); | ||
@@ -19,0 +19,0 @@ }); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"IBMStickyHeaderDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ioIBMStickyHeader]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"},{"__symbolic":"reference","module":"../common/env","name":"Env"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer"}]}],"ngOnInit":[{"__symbolic":"method"}],"handler":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"IBMStickyHeaderDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"[ioIBMStickyHeader]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":15,"character":28},{"__symbolic":"reference","module":"../common/env","name":"Env","line":16,"character":21},{"__symbolic":"reference","module":"@angular/core","name":"Renderer","line":17,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"handler":[{"__symbolic":"method"}]}}}}] |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var core_1 = require("@angular/core"); | ||
var core_2 = require("@angular/core"); | ||
var LayoutMarginDirective = (function () { | ||
@@ -16,3 +15,3 @@ function LayoutMarginDirective() { | ||
LayoutMarginDirective.decorators = [ | ||
{ type: core_2.Directive, args: [{ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[ioLayoutMargin]', | ||
@@ -23,4 +22,4 @@ },] }, | ||
LayoutMarginDirective.propDecorators = { | ||
"ioLayoutMargi": [{ type: core_2.Input },], | ||
"style": [{ type: core_2.HostBinding, args: ['style.margin',] },], | ||
"ioLayoutMargi": [{ type: core_1.Input },], | ||
"style": [{ type: core_1.HostBinding, args: ['style.margin',] },], | ||
}; | ||
@@ -42,3 +41,3 @@ return LayoutMarginDirective; | ||
LayoutDirective.decorators = [ | ||
{ type: core_2.Directive, args: [{ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[ioLayout]', | ||
@@ -49,5 +48,5 @@ },] }, | ||
LayoutDirective.propDecorators = { | ||
"ioLayout": [{ type: core_2.Input },], | ||
"display": [{ type: core_2.HostBinding, args: ['style.display',] },], | ||
"direction": [{ type: core_2.HostBinding, args: ['style.flex-direction',] },], | ||
"ioLayout": [{ type: core_1.Input },], | ||
"display": [{ type: core_1.HostBinding, args: ['style.display',] },], | ||
"direction": [{ type: core_1.HostBinding, args: ['style.flex-direction',] },], | ||
}; | ||
@@ -77,3 +76,3 @@ return LayoutDirective; | ||
FlexDirective.decorators = [ | ||
{ type: core_2.Directive, args: [{ | ||
{ type: core_1.Directive, args: [{ | ||
selector: '[ioFlex]', | ||
@@ -84,7 +83,7 @@ },] }, | ||
FlexDirective.propDecorators = { | ||
"ioShrink": [{ type: core_2.Input },], | ||
"ioGrow": [{ type: core_2.Input },], | ||
"ioFlex": [{ type: core_2.Input },], | ||
"style": [{ type: core_2.HostBinding, args: ['style.flex',] },], | ||
"maxWidth": [{ type: core_2.HostBinding, args: ['style.max-width',] },], | ||
"ioShrink": [{ type: core_1.Input },], | ||
"ioGrow": [{ type: core_1.Input },], | ||
"ioFlex": [{ type: core_1.Input },], | ||
"style": [{ type: core_1.HostBinding, args: ['style.flex',] },], | ||
"maxWidth": [{ type: core_1.HostBinding, args: ['style.max-width',] },], | ||
}; | ||
@@ -91,0 +90,0 @@ return FlexDirective; |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"LayoutMarginDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ioLayoutMargin]"}]}],"members":{"ioLayoutMargi":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"style":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.margin"]}]}]}},"LayoutDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ioLayout]"}]}],"members":{"ioLayout":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"display":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.display"]}]}],"direction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.flex-direction"]}]}]}},"FlexDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"[ioFlex]"}]}],"members":{"ioShrink":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ioGrow":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"ioFlex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"style":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.flex"]}]}],"maxWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding"},"arguments":["style.max-width"]}]}]}},"LayoutModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","name":"FlexDirective"},{"__symbolic":"reference","name":"LayoutDirective"},{"__symbolic":"reference","name":"LayoutMarginDirective"}],"exports":[{"__symbolic":"reference","name":"LayoutDirective"},{"__symbolic":"reference","name":"LayoutMarginDirective"},{"__symbolic":"reference","name":"FlexDirective"}],"imports":[],"providers":[{"multi":true,"provide":{"__symbolic":"reference","name":"FlexDirective"},"useValue":{"__symbolic":"reference","name":"FlexDirective"}},{"multi":true,"provide":{"__symbolic":"reference","name":"LayoutDirective"},"useValue":{"__symbolic":"reference","name":"LayoutDirective"}},{"multi":true,"provide":{"__symbolic":"reference","name":"LayoutMarginDirective"},"useValue":{"__symbolic":"reference","name":"LayoutMarginDirective"}}]}]}]}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"LayoutMarginDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"[ioLayoutMargin]"}]}],"members":{"ioLayoutMargi":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":11,"character":5}}]}],"style":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":13,"character":5},"arguments":["style.margin"]}]}]}},"LayoutDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":20,"character":1},"arguments":[{"selector":"[ioLayout]"}]}],"members":{"ioLayout":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":5}}]}],"display":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":28,"character":5},"arguments":["style.display"]}]}],"direction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":29,"character":5},"arguments":["style.flex-direction"]}]}]}},"FlexDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":36,"character":1},"arguments":[{"selector":"[ioFlex]"}]}],"members":{"ioShrink":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":42,"character":5}}]}],"ioGrow":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":43,"character":5}}]}],"ioFlex":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":5}}]}],"style":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":46,"character":5},"arguments":["style.flex"]}]}],"maxWidth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":51,"character":5},"arguments":["style.max-width"]}]}]}},"LayoutModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":57,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"FlexDirective"},{"__symbolic":"reference","name":"LayoutDirective"},{"__symbolic":"reference","name":"LayoutMarginDirective"}],"exports":[{"__symbolic":"reference","name":"LayoutDirective"},{"__symbolic":"reference","name":"LayoutMarginDirective"},{"__symbolic":"reference","name":"FlexDirective"}],"imports":[],"providers":[{"multi":true,"provide":{"__symbolic":"reference","name":"FlexDirective"},"useValue":{"__symbolic":"reference","name":"FlexDirective"}},{"multi":true,"provide":{"__symbolic":"reference","name":"LayoutDirective"},"useValue":{"__symbolic":"reference","name":"LayoutDirective"}},{"multi":true,"provide":{"__symbolic":"reference","name":"LayoutMarginDirective"},"useValue":{"__symbolic":"reference","name":"LayoutMarginDirective"}}]}]}]}}}] |
{ | ||
"name": "io-ng-util", | ||
"version": "6.0.4", | ||
"version": "6.1.0", | ||
"description": "Angular Base Utilities", | ||
@@ -11,3 +11,4 @@ "main": "index.js", | ||
"scripts": { | ||
"build-npm": "rm -r ./lib && node_modules/.bin/ngc -p ./tsconfig-build.json" | ||
"build-npm": "rm -r -f ./lib && node_modules/.bin/ngc -p ./tsconfig-build.json", | ||
"tslint": "tslint -p ./tsconfig.json -c tslint.json './src/**/*.ts' --exclude './**/*.pug.ts' --force" | ||
}, | ||
@@ -19,20 +20,20 @@ "keywords": [ | ||
"dependencies": { | ||
"@angular/common": "^5.0.2", | ||
"@angular/core": "^5.0.2", | ||
"@angular/http": "^5.0.2", | ||
"@angular/platform-browser": "^5.0.2", | ||
"@angular/platform-server": "^5.0.2" | ||
"@angular/common": "^5.1.0", | ||
"@angular/core": "^5.1.0", | ||
"@angular/http": "^5.1.0", | ||
"@angular/platform-browser": "^5.1.0", | ||
"@angular/platform-server": "^5.1.0", | ||
"rxjs": "^5.5.5" | ||
}, | ||
"devDependencies": { | ||
"@angular/compiler": "^5.0.2", | ||
"@angular/compiler-cli": "^5.0.2", | ||
"@angular/compiler": "^5.1.0", | ||
"@angular/compiler-cli": "^5.1.0", | ||
"@ngrx/core": "^1.2.0", | ||
"@types/core-js": "^0.9.43", | ||
"@types/node": "^8.0.53", | ||
"@types/node": "^8.0.57", | ||
"codelyzer": "^4.0.1", | ||
"eslint": "^4.11.0", | ||
"rxjs": "^5.5.2", | ||
"eslint": "^4.13.0", | ||
"tslint": "^5.8.0", | ||
"tslint-eslint-rules": "^4.1.1", | ||
"typescript": "^2.4.2", | ||
"typescript": "^2.5.3", | ||
"zone.js": "^0.8.18" | ||
@@ -39,0 +40,0 @@ }, |
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
47173
11
790
6
+ Addedrxjs@^5.5.5
Updated@angular/common@^5.1.0
Updated@angular/core@^5.1.0
Updated@angular/http@^5.1.0