mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Merge branch 'master' of https://github.com/Alfresco/app-dev-framework
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
<div>
|
<div class="search-results-container">
|
||||||
<h1>Search results</h1>
|
<h1>Search results</h1>
|
||||||
<alfresco-search></alfresco-search>
|
<alfresco-search (preview)="onFileClicked($event)"></alfresco-search>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<alfresco-viewer [(showViewer)]="previewActive" [urlFile]="previewContentUrl" [fileName]="previewName" [mimeType]="previewMimeType" [overlayMode]="true">
|
||||||
|
<div class="mdl-spinner mdl-js-spinner is-active"></div>
|
||||||
|
</alfresco-viewer>
|
||||||
|
@@ -16,7 +16,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
import { AlfrescoContentService } from 'ng2-alfresco-core';
|
||||||
import { ALFRESCO_SEARCH_DIRECTIVES } from 'ng2-alfresco-search';
|
import { ALFRESCO_SEARCH_DIRECTIVES } from 'ng2-alfresco-search';
|
||||||
|
import { VIEWERCOMPONENT } from 'ng2-alfresco-viewer';
|
||||||
|
|
||||||
declare let __moduleName: string;
|
declare let __moduleName: string;
|
||||||
|
|
||||||
@@ -25,17 +27,34 @@ declare let __moduleName: string;
|
|||||||
selector: 'search-component',
|
selector: 'search-component',
|
||||||
templateUrl: './search.component.html',
|
templateUrl: './search.component.html',
|
||||||
styles: [`
|
styles: [`
|
||||||
:host div {
|
:host div.search-results-container {
|
||||||
padding: 0 20px;
|
padding: 0 20px 20px 20px;
|
||||||
}
|
}
|
||||||
:host h1 {
|
:host h1 {
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
}
|
}
|
||||||
|
:host tbody tr {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
`],
|
`],
|
||||||
directives: [ ALFRESCO_SEARCH_DIRECTIVES ]
|
directives: [ ALFRESCO_SEARCH_DIRECTIVES, VIEWERCOMPONENT ]
|
||||||
})
|
})
|
||||||
export class SearchComponent {
|
export class SearchComponent {
|
||||||
constructor() {
|
|
||||||
console.log('SearchComponent constructor');
|
previewContentUrl: string;
|
||||||
|
previewName: string;
|
||||||
|
previewMimeType: string;
|
||||||
|
previewActive: boolean = false;
|
||||||
|
|
||||||
|
constructor(public contentService: AlfrescoContentService) {
|
||||||
|
}
|
||||||
|
|
||||||
|
onFileClicked(event) {
|
||||||
|
if (event.value.entry.isFile) {
|
||||||
|
this.previewName = event.value.entry.name;
|
||||||
|
this.previewMimeType = event.value.entry.content.mimeType;
|
||||||
|
this.previewContentUrl = this.contentService.getContentUrl(event.value);
|
||||||
|
this.previewActive = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -52,46 +52,46 @@
|
|||||||
"alfresco"
|
"alfresco"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.2",
|
"@angular/common": "2.0.0-rc.3",
|
||||||
"@angular/compiler": "2.0.0-rc.2",
|
"@angular/compiler": "2.0.0-rc.3",
|
||||||
"@angular/core": "2.0.0-rc.2",
|
"@angular/core": "2.0.0-rc.3",
|
||||||
"@angular/http": "2.0.0-rc.2",
|
"@angular/forms": "0.1.1",
|
||||||
"@angular/platform-browser": "2.0.0-rc.2",
|
"@angular/http": "2.0.0-rc.3",
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
|
"@angular/platform-browser": "2.0.0-rc.3",
|
||||||
"@angular/router": "2.0.0-rc.2",
|
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||||
|
"@angular/router": "3.0.0-alpha.7",
|
||||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||||
"@angular/upgrade": "2.0.0-rc.2",
|
"@angular/upgrade": "2.0.0-rc.3",
|
||||||
"systemjs": "0.19.27",
|
"systemjs": "0.19.27",
|
||||||
"core-js": "^2.4.0",
|
"core-js": "2.4.0",
|
||||||
"reflect-metadata": "^0.1.3",
|
"reflect-metadata": "0.1.3",
|
||||||
"rxjs": "5.0.0-beta.6",
|
"rxjs": "5.0.0-beta.6",
|
||||||
"zone.js": "^0.6.12",
|
"zone.js": "0.6.12",
|
||||||
"angular2-in-memory-web-api": "0.0.12",
|
|
||||||
|
|
||||||
"material-design-icons": "^2.2.3",
|
"rimraf": "2.5.2",
|
||||||
"material-design-lite": "^1.1.3",
|
"material-design-icons": "2.2.3",
|
||||||
|
"material-design-lite": "1.1.3",
|
||||||
"ng2-translate": "2.2.0",
|
"ng2-translate": "2.2.0",
|
||||||
"pdfjs-dist": "^1.5.258",
|
"pdfjs-dist": "1.5.258",
|
||||||
|
"flag-icon-css": "2.3.0",
|
||||||
|
|
||||||
"alfresco-js-api": "^0.1.0",
|
"alfresco-js-api": "0.1.0",
|
||||||
"ng2-alfresco-core": "^0.1.0",
|
"ng2-alfresco-core": "0.1.36",
|
||||||
"ng2-alfresco-datatable": "^0.1.0",
|
"ng2-alfresco-datatable": "0.1.12",
|
||||||
"ng2-alfresco-documentlist": "^0.1.0",
|
"ng2-alfresco-documentlist": "0.1.34",
|
||||||
"ng2-alfresco-login": "^0.1.0",
|
"ng2-alfresco-login": "0.1.29",
|
||||||
"ng2-alfresco-search": "^0.1.9",
|
"ng2-alfresco-search": "0.1.21",
|
||||||
"ng2-alfresco-upload": "^0.1.0",
|
"ng2-alfresco-upload": "0.1.49",
|
||||||
"ng2-alfresco-viewer": "^0.1.13",
|
"ng2-alfresco-viewer": "0.1.32"
|
||||||
"rimraf": "^2.5.2"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browser-sync": "^2.10.0",
|
"browser-sync": "2.10.0",
|
||||||
"concurrently": "^2.0.0",
|
"concurrently": "2.0.0",
|
||||||
"connect-history-api-fallback": "^1.2.0",
|
"connect-history-api-fallback": "1.2.0",
|
||||||
"flag-icon-css": "^2.3.0",
|
"license-check": "1.1.5",
|
||||||
"license-check": "^1.0.4",
|
"tslint": "3.8.1",
|
||||||
"tslint": "^3.8.1",
|
"typescript": "1.8.10",
|
||||||
"typescript": "^1.8.10",
|
"typings": "1.0.4"
|
||||||
"typings": "^1.0.4"
|
|
||||||
},
|
},
|
||||||
"license-check-config": {
|
"license-check-config": {
|
||||||
"src": [
|
"src": [
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-core",
|
"name": "ng2-alfresco-core",
|
||||||
"description": "Alfresco Angular 2 Components core",
|
"description": "Alfresco Angular 2 Components core",
|
||||||
"version": "0.1.35",
|
"version": "0.1.36",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
@@ -55,42 +55,46 @@
|
|||||||
"alfresco"
|
"alfresco"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.2",
|
"@angular/common": "2.0.0-rc.3",
|
||||||
"@angular/compiler": "2.0.0-rc.2",
|
"@angular/compiler": "2.0.0-rc.3",
|
||||||
"@angular/core": "2.0.0-rc.2",
|
"@angular/core": "2.0.0-rc.3",
|
||||||
"@angular/http": "2.0.0-rc.2",
|
"@angular/forms": "0.1.1",
|
||||||
"@angular/platform-browser": "2.0.0-rc.2",
|
"@angular/http": "2.0.0-rc.3",
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
|
"@angular/platform-browser": "2.0.0-rc.3",
|
||||||
"@angular/router": "2.0.0-rc.2",
|
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||||
|
"@angular/router": "3.0.0-alpha.7",
|
||||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||||
"@angular/upgrade": "2.0.0-rc.2",
|
"@angular/upgrade": "2.0.0-rc.3",
|
||||||
"angular2-in-memory-web-api": "0.0.12",
|
|
||||||
"core-js": "^2.4.0",
|
|
||||||
"ng2-translate": "2.2.0",
|
|
||||||
"reflect-metadata": "^0.1.3",
|
|
||||||
"rimraf": "^2.5.2",
|
|
||||||
"rxjs": "5.0.0-beta.6",
|
|
||||||
"systemjs": "0.19.27",
|
"systemjs": "0.19.27",
|
||||||
"zone.js": "^0.6.12"
|
"core-js": "2.4.0",
|
||||||
|
"reflect-metadata": "0.1.3",
|
||||||
|
"rxjs": "5.0.0-beta.6",
|
||||||
|
"zone.js": "0.6.12",
|
||||||
|
"ng2-translate": "2.2.2",
|
||||||
|
"rimraf": "2.5.2"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"material-design-icons": "^2.2.3",
|
||||||
|
"material-design-lite": "^1.1.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cpx": "^1.3.1",
|
"cpx": "1.3.1",
|
||||||
"coveralls": "^2.11.9",
|
"coveralls": "^2.11.9",
|
||||||
"http-server": "0.8.5",
|
"http-server": "0.8.5",
|
||||||
"jasmine-ajax": "^3.2.0",
|
"jasmine-ajax": "3.2.0",
|
||||||
"jasmine-core": "2.4.1",
|
"jasmine-core": "2.4.1",
|
||||||
"karma": "~0.13.22",
|
"karma": "0.13.22",
|
||||||
"karma-chrome-launcher": "~1.0.1",
|
"karma-chrome-launcher": "1.0.1",
|
||||||
"karma-coverage": "^1.0.0",
|
"karma-coverage": "1.0.0",
|
||||||
"karma-jasmine": "~1.0.2",
|
"karma-jasmine": "1.0.2",
|
||||||
"karma-mocha-reporter": "^2.0.3",
|
"karma-mocha-reporter": "2.0.3",
|
||||||
"karma-jasmine-html-reporter": "^0.2.0",
|
"karma-jasmine-html-reporter": "0.2.0",
|
||||||
"license-check": "^1.0.4",
|
"license-check": "1.1.5",
|
||||||
"remap-istanbul": "^0.6.3",
|
"remap-istanbul": "0.6.3",
|
||||||
"traceur": "^0.0.91",
|
"traceur": "0.0.91",
|
||||||
"tslint": "^3.8.1",
|
"tslint": "3.8.1",
|
||||||
"typescript": "^1.8.10",
|
"typescript": "1.8.10",
|
||||||
"typings": "^1.0.4"
|
"typings": "1.0.4"
|
||||||
},
|
},
|
||||||
"license-check-config": {
|
"license-check-config": {
|
||||||
"src": [
|
"src": [
|
||||||
|
@@ -16,17 +16,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Injectable, Optional } from '@angular/core';
|
import { Injectable, Optional } from '@angular/core';
|
||||||
import { Http } from '@angular/http';
|
|
||||||
import { MissingTranslationHandler, TranslateService } from 'ng2-translate/ng2-translate';
|
import { MissingTranslationHandler, TranslateService } from 'ng2-translate/ng2-translate';
|
||||||
import { AlfrescoTranslationLoader } from './AlfrescoTranslationLoader.service';
|
import { AlfrescoTranslationLoader } from './AlfrescoTranslationLoader.service';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AlfrescoTranslationService extends TranslateService {
|
export class AlfrescoTranslationService extends TranslateService {
|
||||||
userLang: string = 'en' ;
|
userLang: string = 'en' ;
|
||||||
currentLoader: AlfrescoTranslationLoader;
|
|
||||||
|
|
||||||
constructor(http: Http, currentLoader: AlfrescoTranslationLoader, @Optional() missingTranslationHandler: MissingTranslationHandler) {
|
constructor(public currentLoader: AlfrescoTranslationLoader, @Optional() missingTranslationHandler: MissingTranslationHandler) {
|
||||||
super(http, currentLoader, missingTranslationHandler);
|
super(currentLoader, missingTranslationHandler);
|
||||||
this.userLang = navigator.language.split('-')[0]; // use navigator lang if available
|
this.userLang = navigator.language.split('-')[0]; // use navigator lang if available
|
||||||
this.userLang = /(fr|en)/gi.test(this.userLang) ? this.userLang : 'en';
|
this.userLang = /(fr|en)/gi.test(this.userLang) ? this.userLang : 'en';
|
||||||
this.setDefaultLang(this.userLang);
|
this.setDefaultLang(this.userLang);
|
||||||
|
@@ -23,34 +23,35 @@
|
|||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.2",
|
"@angular/common": "2.0.0-rc.3",
|
||||||
"@angular/compiler": "2.0.0-rc.2",
|
"@angular/compiler": "2.0.0-rc.3",
|
||||||
"@angular/core": "2.0.0-rc.2",
|
"@angular/core": "2.0.0-rc.3",
|
||||||
"@angular/http": "2.0.0-rc.2",
|
"@angular/forms": "0.1.1",
|
||||||
"@angular/platform-browser": "2.0.0-rc.2",
|
"@angular/http": "2.0.0-rc.3",
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
|
"@angular/platform-browser": "2.0.0-rc.3",
|
||||||
"@angular/router": "2.0.0-rc.2",
|
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||||
|
"@angular/router": "3.0.0-alpha.7",
|
||||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||||
"@angular/upgrade": "2.0.0-rc.2",
|
"@angular/upgrade": "2.0.0-rc.3",
|
||||||
"systemjs": "0.19.27",
|
"systemjs": "0.19.27",
|
||||||
"core-js": "^2.4.0",
|
"core-js": "2.4.0",
|
||||||
"reflect-metadata": "^0.1.3",
|
"reflect-metadata": "0.1.3",
|
||||||
"rxjs": "5.0.0-beta.6",
|
"rxjs": "5.0.0-beta.6",
|
||||||
"zone.js": "^0.6.12",
|
"zone.js": "0.6.12",
|
||||||
"angular2-in-memory-web-api": "0.0.12",
|
|
||||||
"rimraf": "^2.5.2",
|
|
||||||
|
|
||||||
"material-design-icons": "^2.2.3",
|
"rimraf": "2.5.2",
|
||||||
"material-design-lite": "^1.1.3",
|
"material-design-icons": "2.2.3",
|
||||||
"ng2-alfresco-datatable": "^0.1.0"
|
"material-design-lite": "1.1.3",
|
||||||
|
|
||||||
|
"ng2-alfresco-datatable": "0.1.12"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browser-sync": "^2.10.0",
|
"browser-sync": "2.10.0",
|
||||||
"concurrently": "^2.0.0",
|
"concurrently": "2.0.0",
|
||||||
"tslint": "^3.8.1",
|
"tslint": "3.8.1",
|
||||||
"typescript": "^1.8.10",
|
"typescript": "1.8.10",
|
||||||
"typings": "^1.0.4",
|
"typings": "1.0.4",
|
||||||
"wsrv": "^0.1.0"
|
"wsrv": "0.1.3"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"angular2",
|
"angular2",
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-datatable",
|
"name": "ng2-alfresco-datatable",
|
||||||
"description": "Alfresco Angular2 DataTable Component",
|
"description": "Alfresco Angular2 DataTable Component",
|
||||||
"version": "0.1.11",
|
"version": "0.1.12",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
@@ -51,45 +51,45 @@
|
|||||||
"alfresco"
|
"alfresco"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.2",
|
"@angular/common": "2.0.0-rc.3",
|
||||||
"@angular/compiler": "2.0.0-rc.2",
|
"@angular/compiler": "2.0.0-rc.3",
|
||||||
"@angular/core": "2.0.0-rc.2",
|
"@angular/core": "2.0.0-rc.3",
|
||||||
"@angular/http": "2.0.0-rc.2",
|
"@angular/forms": "0.1.1",
|
||||||
"@angular/platform-browser": "2.0.0-rc.2",
|
"@angular/http": "2.0.0-rc.3",
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
|
"@angular/platform-browser": "2.0.0-rc.3",
|
||||||
"@angular/router": "2.0.0-rc.2",
|
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||||
|
"@angular/router": "3.0.0-alpha.7",
|
||||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||||
"@angular/upgrade": "2.0.0-rc.2",
|
"@angular/upgrade": "2.0.0-rc.3",
|
||||||
"systemjs": "0.19.27",
|
"systemjs": "0.19.27",
|
||||||
"core-js": "^2.4.0",
|
"core-js": "2.4.0",
|
||||||
"reflect-metadata": "^0.1.3",
|
"reflect-metadata": "0.1.3",
|
||||||
"rxjs": "5.0.0-beta.6",
|
"rxjs": "5.0.0-beta.6",
|
||||||
"zone.js": "^0.6.12",
|
"zone.js": "0.6.12",
|
||||||
"angular2-in-memory-web-api": "0.0.12",
|
"rimraf": "2.5.2"
|
||||||
"rimraf": "^2.5.2"
|
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"material-design-icons": "^2.2.3",
|
"material-design-icons": "^2.2.3",
|
||||||
"material-design-lite": "^1.1.3"
|
"material-design-lite": "^1.1.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"concurrently": "^2.1.0",
|
"concurrently": "2.1.0",
|
||||||
"coveralls": "^2.11.9",
|
"coveralls": "2.11.9",
|
||||||
"cpx": "^1.3.1",
|
"cpx": "1.3.1",
|
||||||
"jasmine-core": "2.4.1",
|
"jasmine-core": "2.4.1",
|
||||||
"karma": "~0.13.22",
|
"karma": "0.13.22",
|
||||||
"karma-chrome-launcher": "~1.0.1",
|
"karma-chrome-launcher": "1.0.1",
|
||||||
"karma-coverage": "^1.0.0",
|
"karma-coverage": "1.0.0",
|
||||||
"karma-jasmine": "~1.0.2",
|
"karma-jasmine": "1.0.2",
|
||||||
"karma-jasmine-html-reporter": "^0.2.0",
|
"karma-jasmine-html-reporter": "0.2.0",
|
||||||
"karma-mocha-reporter": "^2.0.3",
|
"karma-mocha-reporter": "2.0.3",
|
||||||
"license-check": "^1.0.4",
|
"license-check": "1.1.5",
|
||||||
"remap-istanbul": "^0.6.3",
|
"remap-istanbul": "0.6.3",
|
||||||
"traceur": "^0.0.91",
|
"traceur": "0.0.91",
|
||||||
"tslint": "^3.8.1",
|
"tslint": "3.8.1",
|
||||||
"typescript": "^1.8.10",
|
"typescript": "1.8.10",
|
||||||
"typings": "^1.0.4",
|
"typings": "1.0.4",
|
||||||
"wsrv": "^0.1.0"
|
"wsrv": "0.1.3"
|
||||||
},
|
},
|
||||||
"license-check-config": {
|
"license-check-config": {
|
||||||
"src": [
|
"src": [
|
||||||
|
@@ -18,35 +18,38 @@
|
|||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.2",
|
"@angular/common": "2.0.0-rc.3",
|
||||||
"@angular/compiler": "2.0.0-rc.2",
|
"@angular/compiler": "2.0.0-rc.3",
|
||||||
"@angular/core": "2.0.0-rc.2",
|
"@angular/core": "2.0.0-rc.3",
|
||||||
"@angular/http": "2.0.0-rc.2",
|
"@angular/forms": "0.1.1",
|
||||||
"@angular/platform-browser": "2.0.0-rc.2",
|
"@angular/http": "2.0.0-rc.3",
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
|
"@angular/platform-browser": "2.0.0-rc.3",
|
||||||
"@angular/router": "2.0.0-rc.2",
|
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||||
|
"@angular/router": "3.0.0-alpha.7",
|
||||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||||
"@angular/upgrade": "2.0.0-rc.2",
|
"@angular/upgrade": "2.0.0-rc.3",
|
||||||
"systemjs": "0.19.27",
|
"systemjs": "0.19.27",
|
||||||
"core-js": "^2.4.0",
|
"core-js": "2.4.0",
|
||||||
"reflect-metadata": "^0.1.3",
|
"reflect-metadata": "0.1.3",
|
||||||
"rxjs": "5.0.0-beta.6",
|
"rxjs": "5.0.0-beta.6",
|
||||||
"zone.js": "^0.6.12",
|
"zone.js": "0.6.12",
|
||||||
"angular2-in-memory-web-api": "0.0.12",
|
|
||||||
"material-design-icons": "^2.2.3",
|
"rimraf": "2.5.2",
|
||||||
"material-design-lite": "^1.1.3",
|
"material-design-icons": "2.2.3",
|
||||||
"ng2-alfresco-documentlist": "^0.1.16",
|
"material-design-lite": "1.1.3",
|
||||||
"alfresco-js-api": "^0.1.0",
|
"ng2-translate": "2.2.2",
|
||||||
"ng2-translate": "2.2.0",
|
|
||||||
"rimraf": "^2.5.2"
|
"alfresco-js-api": "0.1.0",
|
||||||
|
"ng2-alfresco-core": "0.1.36",
|
||||||
|
"ng2-alfresco-documentlist": "0.1.34"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browser-sync": "^2.10.0",
|
"browser-sync": "2.10.0",
|
||||||
"connect-history-api-fallback": "^1.2.0",
|
"connect-history-api-fallback": "1.2.0",
|
||||||
"concurrently": "^2.0.0",
|
"concurrently": "2.0.0",
|
||||||
"tslint": "^3.8.1",
|
"tslint": "3.8.1",
|
||||||
"typescript": "^1.8.10",
|
"typescript": "1.8.10",
|
||||||
"typings": "^1.0.4"
|
"typings": "1.0.4"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"angular2",
|
"angular2",
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-documentlist",
|
"name": "ng2-alfresco-documentlist",
|
||||||
"description": "Alfresco Angular2 Document List Component",
|
"description": "Alfresco Angular2 Document List Component",
|
||||||
"version": "0.1.33",
|
"version": "0.1.34",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
@@ -57,44 +57,48 @@
|
|||||||
"alfresco"
|
"alfresco"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.2",
|
"@angular/common": "2.0.0-rc.3",
|
||||||
"@angular/compiler": "2.0.0-rc.2",
|
"@angular/compiler": "2.0.0-rc.3",
|
||||||
"@angular/core": "2.0.0-rc.2",
|
"@angular/core": "2.0.0-rc.3",
|
||||||
"@angular/http": "2.0.0-rc.2",
|
"@angular/forms": "0.1.1",
|
||||||
"@angular/platform-browser": "2.0.0-rc.2",
|
"@angular/http": "2.0.0-rc.3",
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
|
"@angular/platform-browser": "2.0.0-rc.3",
|
||||||
"@angular/router": "2.0.0-rc.2",
|
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||||
|
"@angular/router": "3.0.0-alpha.7",
|
||||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||||
"@angular/upgrade": "2.0.0-rc.2",
|
"@angular/upgrade": "2.0.0-rc.3",
|
||||||
"systemjs": "0.19.27",
|
"systemjs": "0.19.27",
|
||||||
"core-js": "^2.4.0",
|
"core-js": "2.4.0",
|
||||||
"reflect-metadata": "^0.1.3",
|
"reflect-metadata": "0.1.3",
|
||||||
"rxjs": "5.0.0-beta.6",
|
"rxjs": "5.0.0-beta.6",
|
||||||
"zone.js": "^0.6.12",
|
"zone.js": "0.6.12",
|
||||||
"angular2-in-memory-web-api": "0.0.12",
|
"rimraf": "2.5.2",
|
||||||
"ng2-alfresco-core": "^0.1.0",
|
"ng2-translate": "2.2.2",
|
||||||
"alfresco-js-api": "^0.1.0",
|
"ng2-alfresco-core": "0.1.35",
|
||||||
"ng2-translate": "2.2.0",
|
"alfresco-js-api": "0.1.0"
|
||||||
"rimraf": "^2.5.2"
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"material-design-icons": "^2.2.3",
|
||||||
|
"material-design-lite": "^1.1.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"concurrently": "^2.1.0",
|
"concurrently": "2.1.0",
|
||||||
"coveralls": "^2.11.9",
|
"coveralls": "2.11.9",
|
||||||
"cpx": "^1.3.1",
|
"cpx": "1.3.1",
|
||||||
"http-server": "0.8.5",
|
"http-server": "0.8.5",
|
||||||
"jasmine-core": "2.4.1",
|
"jasmine-core": "2.4.1",
|
||||||
"karma": "~0.13.22",
|
"karma": "0.13.22",
|
||||||
"karma-chrome-launcher": "~1.0.1",
|
"karma-chrome-launcher": "1.0.1",
|
||||||
"karma-coverage": "^1.0.0",
|
"karma-coverage": "1.0.0",
|
||||||
"karma-jasmine": "~1.0.2",
|
"karma-jasmine": "1.0.2",
|
||||||
"karma-mocha-reporter": "^2.0.3",
|
"karma-mocha-reporter": "2.0.3",
|
||||||
"karma-jasmine-html-reporter": "^0.2.0",
|
"karma-jasmine-html-reporter": "0.2.0",
|
||||||
"license-check": "^1.0.4",
|
"license-check": "1.1.5",
|
||||||
"remap-istanbul": "^0.6.3",
|
"remap-istanbul": "0.6.3",
|
||||||
"traceur": "^0.0.91",
|
"traceur": "0.0.91",
|
||||||
"tslint": "^3.8.1",
|
"tslint": "3.8.1",
|
||||||
"typescript": "^1.8.10",
|
"typescript": "1.8.10",
|
||||||
"typings": "^1.0.4"
|
"typings": "1.0.4"
|
||||||
},
|
},
|
||||||
"license-check-config": {
|
"license-check-config": {
|
||||||
"src": [
|
"src": [
|
||||||
|
@@ -46,29 +46,30 @@
|
|||||||
"alfresco"
|
"alfresco"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.2",
|
"@angular/common": "2.0.0-rc.3",
|
||||||
"@angular/compiler": "2.0.0-rc.2",
|
"@angular/compiler": "2.0.0-rc.3",
|
||||||
"@angular/core": "2.0.0-rc.2",
|
"@angular/core": "2.0.0-rc.3",
|
||||||
"@angular/http": "2.0.0-rc.2",
|
"@angular/forms": "0.1.1",
|
||||||
"@angular/platform-browser": "2.0.0-rc.2",
|
"@angular/http": "2.0.0-rc.3",
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
|
"@angular/platform-browser": "2.0.0-rc.3",
|
||||||
"@angular/router": "2.0.0-rc.2",
|
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||||
|
"@angular/router": "3.0.0-alpha.7",
|
||||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||||
"@angular/upgrade": "2.0.0-rc.2",
|
"@angular/upgrade": "2.0.0-rc.3",
|
||||||
"systemjs": "0.19.27",
|
"systemjs": "0.19.27",
|
||||||
"core-js": "^2.4.0",
|
"core-js": "2.4.0",
|
||||||
"reflect-metadata": "^0.1.3",
|
"reflect-metadata": "0.1.3",
|
||||||
"rxjs": "5.0.0-beta.6",
|
"rxjs": "5.0.0-beta.6",
|
||||||
"zone.js": "^0.6.12",
|
"zone.js": "0.6.12",
|
||||||
"angular2-in-memory-web-api": "0.0.12",
|
|
||||||
|
|
||||||
"material-design-icons": "^2.2.3",
|
"rimraf": "2.5.2",
|
||||||
"material-design-lite": "^1.1.3",
|
"material-design-icons": "2.2.3",
|
||||||
"alfresco-js-api": "^0.1.0",
|
"material-design-lite": "1.1.3",
|
||||||
"ng2-alfresco-core": "^0.1.0",
|
"ng2-translate": "2.2.2",
|
||||||
"ng2-alfresco-login": "^0.1.0",
|
|
||||||
"ng2-translate": "2.2.0",
|
"alfresco-js-api": "0.1.0",
|
||||||
"rimraf": "^2.5.2"
|
"ng2-alfresco-core": "0.1.36",
|
||||||
|
"ng2-alfresco-login": "0.1.29"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browser-sync": "^2.10.0",
|
"browser-sync": "^2.10.0",
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-login",
|
"name": "ng2-alfresco-login",
|
||||||
"description": "Alfresco Angular2 Login Component",
|
"description": "Alfresco Angular2 Login Component",
|
||||||
"version": "0.1.27",
|
"version": "0.1.29",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
@@ -65,46 +65,46 @@
|
|||||||
"alfresco"
|
"alfresco"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.2",
|
"@angular/common": "2.0.0-rc.3",
|
||||||
"@angular/compiler": "2.0.0-rc.2",
|
"@angular/compiler": "2.0.0-rc.3",
|
||||||
"@angular/core": "2.0.0-rc.2",
|
"@angular/core": "2.0.0-rc.3",
|
||||||
"@angular/http": "2.0.0-rc.2",
|
"@angular/forms": "0.1.1",
|
||||||
"@angular/platform-browser": "2.0.0-rc.2",
|
"@angular/http": "2.0.0-rc.3",
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
|
"@angular/platform-browser": "2.0.0-rc.3",
|
||||||
"@angular/router": "2.0.0-rc.2",
|
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||||
|
"@angular/router": "3.0.0-alpha.7",
|
||||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||||
"@angular/upgrade": "2.0.0-rc.2",
|
"@angular/upgrade": "2.0.0-rc.3",
|
||||||
"systemjs": "0.19.27",
|
"systemjs": "0.19.27",
|
||||||
"core-js": "^2.4.0",
|
"core-js": "2.4.0",
|
||||||
"reflect-metadata": "^0.1.3",
|
"reflect-metadata": "0.1.3",
|
||||||
"rxjs": "5.0.0-beta.6",
|
"rxjs": "5.0.0-beta.6",
|
||||||
"zone.js": "^0.6.12",
|
"zone.js": "0.6.12",
|
||||||
"angular2-in-memory-web-api": "0.0.12",
|
"rimraf": "2.5.2",
|
||||||
"ng2-alfresco-core": "^0.1.0",
|
"ng2-translate": "2.2.2",
|
||||||
"alfresco-js-api": "^0.1.0",
|
"ng2-alfresco-core": "0.1.35",
|
||||||
"ng2-translate": "2.2.0",
|
"alfresco-js-api": "0.1.0"
|
||||||
"rimraf": "^2.5.2"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"concurrently": "^2.1.0",
|
"concurrently": "2.1.0",
|
||||||
"coveralls": "^2.11.9",
|
"coveralls": "2.11.9",
|
||||||
"cpx": "^1.3.1",
|
"cpx": "1.3.1",
|
||||||
"http-server": "0.8.5",
|
"http-server": "0.8.5",
|
||||||
"jasmine-core": "2.4.1",
|
"jasmine-core": "2.4.1",
|
||||||
"karma": "~0.13.22",
|
"karma": "0.13.22",
|
||||||
"karma-chrome-launcher": "~1.0.1",
|
"karma-chrome-launcher": "1.0.1",
|
||||||
"karma-coverage": "^1.0.0",
|
"karma-coverage": "1.0.0",
|
||||||
"karma-jasmine": "~1.0.2",
|
"karma-jasmine": "1.0.2",
|
||||||
"karma-mocha-reporter": "^2.0.3",
|
"karma-mocha-reporter": "2.0.3",
|
||||||
"karma-jasmine-html-reporter": "^0.2.0",
|
"karma-jasmine-html-reporter": "0.2.0",
|
||||||
"license-check": "^1.0.4",
|
"license-check": "1.1.5",
|
||||||
"remap-istanbul": "^0.6.3",
|
"remap-istanbul": "0.6.3",
|
||||||
"traceur": "^0.0.91",
|
"traceur": "0.0.91",
|
||||||
"tslint": "^3.8.1",
|
"tslint": "3.8.1",
|
||||||
"typescript": "^1.8.10",
|
"typescript": "1.8.10",
|
||||||
"typings": "^1.0.4",
|
"typings": "1.0.4",
|
||||||
"xo": "^0.14.0",
|
"xo": "0.14.0",
|
||||||
"yargs": "^4.7.0"
|
"yargs": "4.7.0"
|
||||||
},
|
},
|
||||||
"license-check-config": {
|
"license-check-config": {
|
||||||
"src": [
|
"src": [
|
||||||
|
@@ -89,6 +89,24 @@ describe('AlfrescoLogin', () => {
|
|||||||
expect(element.querySelector('input[type="text"]').value).toEqual('');
|
expect(element.querySelector('input[type="text"]').value).toEqual('');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should render validation min-length error when the username is just 1 character', () => {
|
||||||
|
let compiled = componentFixture.debugElement.nativeElement;
|
||||||
|
let usernameInput = compiled.querySelector('#username');
|
||||||
|
|
||||||
|
componentFixture.detectChanges();
|
||||||
|
|
||||||
|
usernameInput.value = '1';
|
||||||
|
usernameInput.dispatchEvent(new Event('input'));
|
||||||
|
|
||||||
|
componentFixture.detectChanges();
|
||||||
|
|
||||||
|
expect(component.formError).toBeDefined();
|
||||||
|
expect(component.formError.username).toBeDefined();
|
||||||
|
expect(component.formError.username).toEqual('LOGIN.MESSAGES.USERNAME-MIN');
|
||||||
|
expect(compiled.querySelector('#username-error')).toBeDefined();
|
||||||
|
expect(compiled.querySelector('#username-error').innerText).toEqual('LOGIN.MESSAGES.USERNAME-MIN');
|
||||||
|
});
|
||||||
|
|
||||||
it('should render validation min-length error when the username is lower than 4 characters', () => {
|
it('should render validation min-length error when the username is lower than 4 characters', () => {
|
||||||
let compiled = componentFixture.debugElement.nativeElement;
|
let compiled = componentFixture.debugElement.nativeElement;
|
||||||
let usernameInput = compiled.querySelector('#username');
|
let usernameInput = compiled.querySelector('#username');
|
||||||
@@ -100,10 +118,6 @@ describe('AlfrescoLogin', () => {
|
|||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
|
|
||||||
component.onValueChanged(null);
|
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
|
||||||
|
|
||||||
expect(component.formError).toBeDefined();
|
expect(component.formError).toBeDefined();
|
||||||
expect(component.formError.username).toBeDefined();
|
expect(component.formError.username).toBeDefined();
|
||||||
expect(component.formError.username).toEqual('LOGIN.MESSAGES.USERNAME-MIN');
|
expect(component.formError.username).toEqual('LOGIN.MESSAGES.USERNAME-MIN');
|
||||||
@@ -111,21 +125,18 @@ describe('AlfrescoLogin', () => {
|
|||||||
expect(compiled.querySelector('#username-error').innerText).toEqual('LOGIN.MESSAGES.USERNAME-MIN');
|
expect(compiled.querySelector('#username-error').innerText).toEqual('LOGIN.MESSAGES.USERNAME-MIN');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should render validation required error when the username is empty', () => {
|
it('should render validation required error when the username is empty and dirty', () => {
|
||||||
let compiled = componentFixture.debugElement.nativeElement;
|
let compiled = componentFixture.debugElement.nativeElement;
|
||||||
let usernameInput = compiled.querySelector('#username');
|
let usernameInput = compiled.querySelector('#username');
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
|
|
||||||
usernameInput.value = '';
|
usernameInput.value = '';
|
||||||
|
component.form.controls.username.markAsDirty();
|
||||||
usernameInput.dispatchEvent(new Event('input'));
|
usernameInput.dispatchEvent(new Event('input'));
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
|
|
||||||
component.onValueChanged(null);
|
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
|
||||||
|
|
||||||
expect(component.formError).toBeDefined();
|
expect(component.formError).toBeDefined();
|
||||||
expect(component.formError.username).toBeDefined();
|
expect(component.formError.username).toBeDefined();
|
||||||
expect(component.formError.username).toEqual('LOGIN.MESSAGES.USERNAME-REQUIRED');
|
expect(component.formError.username).toEqual('LOGIN.MESSAGES.USERNAME-REQUIRED');
|
||||||
@@ -133,21 +144,18 @@ describe('AlfrescoLogin', () => {
|
|||||||
expect(compiled.querySelector('#username-error').innerText).toEqual('LOGIN.MESSAGES.USERNAME-REQUIRED');
|
expect(compiled.querySelector('#username-error').innerText).toEqual('LOGIN.MESSAGES.USERNAME-REQUIRED');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should render validation required error when the password is empty', () => {
|
it('should render validation required error when the password is empty and dirty', () => {
|
||||||
let compiled = componentFixture.debugElement.nativeElement;
|
let compiled = componentFixture.debugElement.nativeElement;
|
||||||
let passwordInput = compiled.querySelector('#password');
|
let passwordInput = compiled.querySelector('#password');
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
|
|
||||||
passwordInput.value = '';
|
passwordInput.value = '';
|
||||||
|
component.form.controls.password.markAsDirty();
|
||||||
passwordInput.dispatchEvent(new Event('input'));
|
passwordInput.dispatchEvent(new Event('input'));
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
|
|
||||||
component.onValueChanged(null);
|
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
|
||||||
|
|
||||||
expect(component.formError).toBeDefined();
|
expect(component.formError).toBeDefined();
|
||||||
expect(component.formError.password).toBeDefined();
|
expect(component.formError.password).toBeDefined();
|
||||||
expect(component.formError.password).toEqual('LOGIN.MESSAGES.PASSWORD-REQUIRED');
|
expect(component.formError.password).toEqual('LOGIN.MESSAGES.PASSWORD-REQUIRED');
|
||||||
@@ -164,15 +172,15 @@ describe('AlfrescoLogin', () => {
|
|||||||
|
|
||||||
usernameInput.value = 'fake-username';
|
usernameInput.value = 'fake-username';
|
||||||
passwordInput.value = 'fake-password';
|
passwordInput.value = 'fake-password';
|
||||||
|
|
||||||
|
component.form.controls.username.markAsDirty();
|
||||||
|
component.form.controls.password.markAsDirty();
|
||||||
|
|
||||||
usernameInput.dispatchEvent(new Event('input'));
|
usernameInput.dispatchEvent(new Event('input'));
|
||||||
passwordInput.dispatchEvent(new Event('input'));
|
passwordInput.dispatchEvent(new Event('input'));
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
|
|
||||||
component.onValueChanged(null);
|
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
|
||||||
|
|
||||||
expect(component.formError).toBeDefined();
|
expect(component.formError).toBeDefined();
|
||||||
expect(component.formError.username).toEqual('');
|
expect(component.formError.username).toEqual('');
|
||||||
expect(component.formError.password).toEqual('');
|
expect(component.formError.password).toEqual('');
|
||||||
@@ -189,15 +197,15 @@ describe('AlfrescoLogin', () => {
|
|||||||
|
|
||||||
usernameInput.value = 'fake-change-username';
|
usernameInput.value = 'fake-change-username';
|
||||||
passwordInput.value = 'fake-change-password';
|
passwordInput.value = 'fake-change-password';
|
||||||
|
|
||||||
|
component.form.controls.username.markAsDirty();
|
||||||
|
component.form.controls.password.markAsDirty();
|
||||||
|
|
||||||
usernameInput.dispatchEvent(new Event('input'));
|
usernameInput.dispatchEvent(new Event('input'));
|
||||||
passwordInput.dispatchEvent(new Event('input'));
|
passwordInput.dispatchEvent(new Event('input'));
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
|
|
||||||
component.onValueChanged(null);
|
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
|
||||||
|
|
||||||
expect(compiled.querySelector('input[type="text"]').value).toEqual('fake-change-username');
|
expect(compiled.querySelector('input[type="text"]').value).toEqual('fake-change-username');
|
||||||
expect(compiled.querySelector('input[type="password"]').value).toEqual('fake-change-password');
|
expect(compiled.querySelector('input[type="password"]').value).toEqual('fake-change-password');
|
||||||
});
|
});
|
||||||
@@ -214,12 +222,12 @@ describe('AlfrescoLogin', () => {
|
|||||||
|
|
||||||
usernameInput.value = 'fake-username';
|
usernameInput.value = 'fake-username';
|
||||||
passwordInput.value = 'fake-password';
|
passwordInput.value = 'fake-password';
|
||||||
|
|
||||||
usernameInput.dispatchEvent(new Event('input'));
|
usernameInput.dispatchEvent(new Event('input'));
|
||||||
passwordInput.dispatchEvent(new Event('input'));
|
passwordInput.dispatchEvent(new Event('input'));
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
|
|
||||||
component.onValueChanged(null);
|
|
||||||
compiled.querySelector('button').click();
|
compiled.querySelector('button').click();
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
@@ -240,12 +248,12 @@ describe('AlfrescoLogin', () => {
|
|||||||
|
|
||||||
usernameInput.value = 'fake-wrong-username';
|
usernameInput.value = 'fake-wrong-username';
|
||||||
passwordInput.value = 'fake-password';
|
passwordInput.value = 'fake-password';
|
||||||
|
|
||||||
usernameInput.dispatchEvent(new Event('input'));
|
usernameInput.dispatchEvent(new Event('input'));
|
||||||
passwordInput.dispatchEvent(new Event('input'));
|
passwordInput.dispatchEvent(new Event('input'));
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
|
|
||||||
component.onValueChanged(null);
|
|
||||||
compiled.querySelector('button').click();
|
compiled.querySelector('button').click();
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
@@ -268,12 +276,12 @@ describe('AlfrescoLogin', () => {
|
|||||||
|
|
||||||
usernameInput.value = 'fake-username';
|
usernameInput.value = 'fake-username';
|
||||||
passwordInput.value = 'fake-wrong-password';
|
passwordInput.value = 'fake-wrong-password';
|
||||||
|
|
||||||
usernameInput.dispatchEvent(new Event('input'));
|
usernameInput.dispatchEvent(new Event('input'));
|
||||||
passwordInput.dispatchEvent(new Event('input'));
|
passwordInput.dispatchEvent(new Event('input'));
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
|
|
||||||
component.onValueChanged(null);
|
|
||||||
compiled.querySelector('button').click();
|
compiled.querySelector('button').click();
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
@@ -296,12 +304,12 @@ describe('AlfrescoLogin', () => {
|
|||||||
|
|
||||||
usernameInput.value = 'fake-wrong-username';
|
usernameInput.value = 'fake-wrong-username';
|
||||||
passwordInput.value = 'fake-wrong-password';
|
passwordInput.value = 'fake-wrong-password';
|
||||||
|
|
||||||
usernameInput.dispatchEvent(new Event('input'));
|
usernameInput.dispatchEvent(new Event('input'));
|
||||||
passwordInput.dispatchEvent(new Event('input'));
|
passwordInput.dispatchEvent(new Event('input'));
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
|
|
||||||
component.onValueChanged(null);
|
|
||||||
compiled.querySelector('button').click();
|
compiled.querySelector('button').click();
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
@@ -326,12 +334,12 @@ describe('AlfrescoLogin', () => {
|
|||||||
|
|
||||||
usernameInput.value = 'fake-username';
|
usernameInput.value = 'fake-username';
|
||||||
passwordInput.value = 'fake-password';
|
passwordInput.value = 'fake-password';
|
||||||
|
|
||||||
usernameInput.dispatchEvent(new Event('input'));
|
usernameInput.dispatchEvent(new Event('input'));
|
||||||
passwordInput.dispatchEvent(new Event('input'));
|
passwordInput.dispatchEvent(new Event('input'));
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
|
|
||||||
component.onValueChanged(null);
|
|
||||||
compiled.querySelector('button').click();
|
compiled.querySelector('button').click();
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
@@ -357,12 +365,12 @@ describe('AlfrescoLogin', () => {
|
|||||||
|
|
||||||
usernameInput.value = 'fake-username';
|
usernameInput.value = 'fake-username';
|
||||||
passwordInput.value = 'fake-wrong-password';
|
passwordInput.value = 'fake-wrong-password';
|
||||||
|
|
||||||
usernameInput.dispatchEvent(new Event('input'));
|
usernameInput.dispatchEvent(new Event('input'));
|
||||||
passwordInput.dispatchEvent(new Event('input'));
|
passwordInput.dispatchEvent(new Event('input'));
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
|
|
||||||
component.onValueChanged(null);
|
|
||||||
compiled.querySelector('button').click();
|
compiled.querySelector('button').click();
|
||||||
|
|
||||||
componentFixture.detectChanges();
|
componentFixture.detectChanges();
|
||||||
|
@@ -131,7 +131,7 @@ export class AlfrescoLoginComponent {
|
|||||||
for (let field in this.formError) {
|
for (let field in this.formError) {
|
||||||
if (field) {
|
if (field) {
|
||||||
this.formError[field] = '';
|
this.formError[field] = '';
|
||||||
let hasError = (this.form.controls[field].errors && !this.form.controls[field].pristine) ||
|
let hasError = (this.form.controls[field].errors && data[field] !== '') ||
|
||||||
(this.form.controls[field].dirty && !this.form.controls[field].valid);
|
(this.form.controls[field].dirty && !this.form.controls[field].valid);
|
||||||
if (hasError) {
|
if (hasError) {
|
||||||
for (let key in this.form.controls[field].errors) {
|
for (let key in this.form.controls[field].errors) {
|
||||||
|
@@ -46,37 +46,38 @@
|
|||||||
"alfresco"
|
"alfresco"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.2",
|
"@angular/common": "2.0.0-rc.3",
|
||||||
"@angular/compiler": "2.0.0-rc.2",
|
"@angular/compiler": "2.0.0-rc.3",
|
||||||
"@angular/core": "2.0.0-rc.2",
|
"@angular/core": "2.0.0-rc.3",
|
||||||
"@angular/http": "2.0.0-rc.2",
|
"@angular/forms": "0.1.1",
|
||||||
"@angular/platform-browser": "2.0.0-rc.2",
|
"@angular/http": "2.0.0-rc.3",
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
|
"@angular/platform-browser": "2.0.0-rc.3",
|
||||||
"@angular/router": "2.0.0-rc.2",
|
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||||
|
"@angular/router": "3.0.0-alpha.7",
|
||||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||||
"@angular/upgrade": "2.0.0-rc.2",
|
"@angular/upgrade": "2.0.0-rc.3",
|
||||||
"systemjs": "0.19.27",
|
"systemjs": "0.19.27",
|
||||||
"core-js": "^2.4.0",
|
"core-js": "2.4.0",
|
||||||
"reflect-metadata": "^0.1.3",
|
"reflect-metadata": "0.1.3",
|
||||||
"rxjs": "5.0.0-beta.6",
|
"rxjs": "5.0.0-beta.6",
|
||||||
"zone.js": "^0.6.12",
|
"zone.js": "0.6.12",
|
||||||
"angular2-in-memory-web-api": "0.0.12",
|
|
||||||
|
|
||||||
"material-design-icons": "^2.2.3",
|
"rimraf": "2.5.2",
|
||||||
"material-design-lite": "^1.1.3",
|
"ng2-translate": "2.2.2",
|
||||||
"ng2-translate": "2.2.0",
|
"material-design-icons": "2.2.3",
|
||||||
"alfresco-js-api": "^0.1.0",
|
"material-design-lite": "1.1.3",
|
||||||
"ng2-alfresco-core": "^0.1.0",
|
|
||||||
"ng2-alfresco-search": "^0.1.12",
|
"alfresco-js-api": "0.1.0",
|
||||||
"rimraf": "^2.5.2"
|
"ng2-alfresco-core": "0.1.36",
|
||||||
|
"ng2-alfresco-search": "0.1.21"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browser-sync": "^2.10.0",
|
"browser-sync": "2.10.0",
|
||||||
"connect-history-api-fallback": "^1.2.0",
|
"connect-history-api-fallback": "1.2.0",
|
||||||
"concurrently": "^2.0.0",
|
"concurrently": "2.0.0",
|
||||||
"tslint": "^3.8.1",
|
"tslint": "3.8.1",
|
||||||
"typescript": "^1.8.10",
|
"typescript": "1.8.10",
|
||||||
"typings": "^1.0.4"
|
"typings": "1.0.4"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://devproducts.alfresco.me:4873/"
|
"registry": "http://devproducts.alfresco.me:4873/"
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-search",
|
"name": "ng2-alfresco-search",
|
||||||
"description": "Alfresco Angular2 Search Component",
|
"description": "Alfresco Angular2 Search Component",
|
||||||
"version": "0.1.20",
|
"version": "0.1.21",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
@@ -44,6 +44,10 @@
|
|||||||
{
|
{
|
||||||
"name": "Will Abson",
|
"name": "Will Abson",
|
||||||
"email": "will.abson@alfresco.com"
|
"email": "will.abson@alfresco.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Denys Vuika",
|
||||||
|
"email": "denys.vuika@alfresco.com"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -53,45 +57,49 @@
|
|||||||
"alfresco"
|
"alfresco"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.2",
|
"@angular/common": "2.0.0-rc.3",
|
||||||
"@angular/compiler": "2.0.0-rc.2",
|
"@angular/compiler": "2.0.0-rc.3",
|
||||||
"@angular/core": "2.0.0-rc.2",
|
"@angular/core": "2.0.0-rc.3",
|
||||||
"@angular/http": "2.0.0-rc.2",
|
"@angular/forms": "0.1.1",
|
||||||
"@angular/platform-browser": "2.0.0-rc.2",
|
"@angular/http": "2.0.0-rc.3",
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
|
"@angular/platform-browser": "2.0.0-rc.3",
|
||||||
"@angular/router": "2.0.0-rc.2",
|
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||||
|
"@angular/router": "3.0.0-alpha.7",
|
||||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||||
"@angular/upgrade": "2.0.0-rc.2",
|
"@angular/upgrade": "2.0.0-rc.3",
|
||||||
"systemjs": "0.19.27",
|
"systemjs": "0.19.27",
|
||||||
"core-js": "^2.4.0",
|
"core-js": "2.4.0",
|
||||||
"reflect-metadata": "^0.1.3",
|
"reflect-metadata": "0.1.3",
|
||||||
"rxjs": "5.0.0-beta.6",
|
"rxjs": "5.0.0-beta.6",
|
||||||
"zone.js": "^0.6.12",
|
"zone.js": "0.6.12",
|
||||||
"angular2-in-memory-web-api": "0.0.12",
|
"rimraf": "2.5.2",
|
||||||
"alfresco-js-api": "^0.1.0",
|
"ng2-translate": "2.2.2",
|
||||||
"ng2-alfresco-core": "^0.1.25",
|
"material-design-lite": "1.1.3",
|
||||||
"ng2-translate": "2.2.0",
|
"alfresco-js-api": "0.1.0",
|
||||||
"rimraf": "^2.5.2",
|
"ng2-alfresco-core": "0.1.35"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"material-design-icons": "^2.2.3",
|
||||||
"material-design-lite": "^1.1.3"
|
"material-design-lite": "^1.1.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"concurrently": "^2.1.0",
|
"concurrently": "2.1.0",
|
||||||
"coveralls": "^2.11.9",
|
"coveralls": "2.11.9",
|
||||||
"cpx": "^1.3.1",
|
"cpx": "1.3.1",
|
||||||
"http-server": "0.8.5",
|
"http-server": "0.8.5",
|
||||||
"jasmine-core": "2.4.1",
|
"jasmine-core": "2.4.1",
|
||||||
"karma": "~0.13.22",
|
"karma": "0.13.22",
|
||||||
"karma-chrome-launcher": "~1.0.1",
|
"karma-chrome-launcher": "1.0.1",
|
||||||
"karma-coverage": "^1.0.0",
|
"karma-coverage": "1.0.0",
|
||||||
"karma-jasmine": "~1.0.2",
|
"karma-jasmine": "1.0.2",
|
||||||
"karma-mocha-reporter": "^2.0.3",
|
"karma-mocha-reporter": "2.0.3",
|
||||||
"karma-jasmine-html-reporter": "^0.2.0",
|
"karma-jasmine-html-reporter": "0.2.0",
|
||||||
"license-check": "^1.0.4",
|
"license-check": "1.1.5",
|
||||||
"remap-istanbul": "^0.6.3",
|
"remap-istanbul": "0.6.3",
|
||||||
"traceur": "^0.0.91",
|
"traceur": "0.0.91",
|
||||||
"tslint": "^3.8.1",
|
"tslint": "3.8.1",
|
||||||
"typescript": "^1.8.10",
|
"typescript": "1.8.10",
|
||||||
"typings": "^1.0.4"
|
"typings": "1.0.4"
|
||||||
},
|
},
|
||||||
"license-check-config": {
|
"license-check-config": {
|
||||||
"src": [
|
"src": [
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<tr *ngFor="let result of results; let idx = index">
|
<tr *ngFor="let result of results; let idx = index" (click)="onItemClick(result, $event)">
|
||||||
<td><img src="{{getMimeTypeIcon(result)}}" /></td>
|
<td><img src="{{getMimeTypeIcon(result)}}" /></td>
|
||||||
<td attr.data-automation-id=file_{{result.entry.name}} >{{result.entry.name}}</td>
|
<td attr.data-automation-id=file_{{result.entry.name}} >{{result.entry.name}}</td>
|
||||||
<td attr.data-automation-id=file_{{result.entry.name}}_{{result.entry.modifiedByUser.displayName}}>
|
<td attr.data-automation-id=file_{{result.entry.name}}_{{result.entry.modifiedByUser.displayName}}>
|
||||||
|
@@ -109,4 +109,35 @@ describe('AlfrescoSearchComponent', () => {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('search result actions', () => {
|
||||||
|
|
||||||
|
it('should emit preview when file item clicked',
|
||||||
|
inject([TestComponentBuilder], (tcb: TestComponentBuilder) => {
|
||||||
|
return tcb
|
||||||
|
.overrideProviders(AlfrescoSearchComponent, [
|
||||||
|
{ provide: AlfrescoSearchService, useClass: SearchServiceMock }
|
||||||
|
])
|
||||||
|
.createAsync(AlfrescoSearchComponent)
|
||||||
|
.then((fixture) => {
|
||||||
|
let componentInstance = fixture.componentInstance;
|
||||||
|
componentInstance.results = [{
|
||||||
|
entry: {
|
||||||
|
id: '123',
|
||||||
|
name: 'MyDoc',
|
||||||
|
content: {
|
||||||
|
mimetype: 'text/plain'
|
||||||
|
},
|
||||||
|
isFile: true
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
fixture.detectChanges(componentInstance.results[0]);
|
||||||
|
componentInstance.preview.subscribe(e => {
|
||||||
|
expect(e.value).toBe(componentInstance.results[0]);
|
||||||
|
});
|
||||||
|
componentInstance.onItemClick();
|
||||||
|
|
||||||
|
});
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, Input, Optional, OnChanges, OnInit } from '@angular/core';
|
import { Component, EventEmitter, Input, Output, Optional, OnChanges, OnInit } from '@angular/core';
|
||||||
import { RouteParams } from '@angular/router-deprecated';
|
import { RouteParams } from '@angular/router-deprecated';
|
||||||
import { AlfrescoSearchService } from './../services/alfresco-search.service';
|
import { AlfrescoSearchService } from './../services/alfresco-search.service';
|
||||||
import { AlfrescoThumbnailService } from './../services/alfresco-thumbnail.service';
|
import { AlfrescoThumbnailService } from './../services/alfresco-thumbnail.service';
|
||||||
@@ -38,6 +38,9 @@ export class AlfrescoSearchComponent implements OnChanges, OnInit {
|
|||||||
@Input()
|
@Input()
|
||||||
searchTerm: string = '';
|
searchTerm: string = '';
|
||||||
|
|
||||||
|
@Output()
|
||||||
|
preview: EventEmitter<any> = new EventEmitter();
|
||||||
|
|
||||||
results: any;
|
results: any;
|
||||||
|
|
||||||
errorMessage;
|
errorMessage;
|
||||||
@@ -100,4 +103,17 @@ export class AlfrescoSearchComponent implements OnChanges, OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onItemClick(node, event?: Event): void {
|
||||||
|
if (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
if (node && node.entry) {
|
||||||
|
if (node.entry.isFile) {
|
||||||
|
this.preview.emit({
|
||||||
|
value: node
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -59,7 +59,6 @@ export class AlfrescoSearchService {
|
|||||||
public getLiveSearchResults(term: string): Observable<any> {
|
public getLiveSearchResults(term: string): Observable<any> {
|
||||||
return Observable.fromPromise(this.getSearchNodesPromise(term))
|
return Observable.fromPromise(this.getSearchNodesPromise(term))
|
||||||
.map(res => <any> res)
|
.map(res => <any> res)
|
||||||
.do(data => console.log('Search data', data)) // eyeball results in the console
|
|
||||||
.catch(this.handleError);
|
.catch(this.handleError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -46,37 +46,38 @@
|
|||||||
"alfresco"
|
"alfresco"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.2",
|
"@angular/common": "2.0.0-rc.3",
|
||||||
"@angular/compiler": "2.0.0-rc.2",
|
"@angular/compiler": "2.0.0-rc.3",
|
||||||
"@angular/core": "2.0.0-rc.2",
|
"@angular/core": "2.0.0-rc.3",
|
||||||
"@angular/http": "2.0.0-rc.2",
|
"@angular/forms": "0.1.1",
|
||||||
"@angular/platform-browser": "2.0.0-rc.2",
|
"@angular/http": "2.0.0-rc.3",
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
|
"@angular/platform-browser": "2.0.0-rc.3",
|
||||||
"@angular/router": "2.0.0-rc.2",
|
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||||
|
"@angular/router": "3.0.0-alpha.7",
|
||||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||||
"@angular/upgrade": "2.0.0-rc.2",
|
"@angular/upgrade": "2.0.0-rc.3",
|
||||||
"systemjs": "0.19.27",
|
"systemjs": "0.19.27",
|
||||||
"core-js": "^2.4.0",
|
"core-js": "2.4.0",
|
||||||
"reflect-metadata": "^0.1.3",
|
"reflect-metadata": "0.1.3",
|
||||||
"rxjs": "5.0.0-beta.6",
|
"rxjs": "5.0.0-beta.6",
|
||||||
"zone.js": "^0.6.12",
|
"zone.js": "0.6.12",
|
||||||
"angular2-in-memory-web-api": "0.0.12",
|
|
||||||
|
|
||||||
"material-design-icons": "^2.2.3",
|
"rimraf": "2.5.2",
|
||||||
"material-design-lite": "^1.1.3",
|
"ng2-translate": "2.2.2",
|
||||||
"alfresco-js-api": "^0.1.0",
|
"material-design-icons": "2.2.3",
|
||||||
"ng2-alfresco-core": "^0.1.0",
|
"material-design-lite": "1.1.3",
|
||||||
"ng2-translate": "2.2.0",
|
|
||||||
"ng2-alfresco-upload": "^0.1.0",
|
"alfresco-js-api": "0.1.0",
|
||||||
"rimraf": "^2.5.2"
|
"ng2-alfresco-core": "0.1.36",
|
||||||
|
"ng2-alfresco-upload": "0.1.49"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browser-sync": "^2.10.0",
|
"browser-sync": "2.10.0",
|
||||||
"connect-history-api-fallback": "^1.2.0",
|
"connect-history-api-fallback": "1.2.0",
|
||||||
"concurrently": "^2.0.0",
|
"concurrently": "2.0.0",
|
||||||
"tslint": "^3.8.1",
|
"tslint": "3.8.1",
|
||||||
"typescript": "^1.8.10",
|
"typescript": "1.8.10",
|
||||||
"typings": "^1.0.4"
|
"typings": "1.0.4"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://devproducts.alfresco.me:4873/"
|
"registry": "http://devproducts.alfresco.me:4873/"
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-upload",
|
"name": "ng2-alfresco-upload",
|
||||||
"description": "Alfresco Angular2 Upload Component",
|
"description": "Alfresco Angular2 Upload Component",
|
||||||
"version": "0.1.48",
|
"version": "0.1.49",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
@@ -60,46 +60,50 @@
|
|||||||
"alfresco"
|
"alfresco"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.2",
|
"@angular/common": "2.0.0-rc.3",
|
||||||
"@angular/compiler": "2.0.0-rc.2",
|
"@angular/compiler": "2.0.0-rc.3",
|
||||||
"@angular/core": "2.0.0-rc.2",
|
"@angular/core": "2.0.0-rc.3",
|
||||||
"@angular/http": "2.0.0-rc.2",
|
"@angular/forms": "0.1.1",
|
||||||
"@angular/platform-browser": "2.0.0-rc.2",
|
"@angular/http": "2.0.0-rc.3",
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
|
"@angular/platform-browser": "2.0.0-rc.3",
|
||||||
"@angular/router": "2.0.0-rc.2",
|
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||||
|
"@angular/router": "3.0.0-alpha.7",
|
||||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||||
"@angular/upgrade": "2.0.0-rc.2",
|
"@angular/upgrade": "2.0.0-rc.3",
|
||||||
"systemjs": "0.19.27",
|
"systemjs": "0.19.27",
|
||||||
"core-js": "^2.4.0",
|
"core-js": "2.4.0",
|
||||||
"reflect-metadata": "^0.1.3",
|
"reflect-metadata": "0.1.3",
|
||||||
"rxjs": "5.0.0-beta.6",
|
"rxjs": "5.0.0-beta.6",
|
||||||
"zone.js": "^0.6.12",
|
"zone.js": "0.6.12",
|
||||||
"angular2-in-memory-web-api": "0.0.12",
|
"rimraf": "2.5.2",
|
||||||
"alfresco-js-api": "^0.1.0",
|
"ng2-translate": "2.2.2",
|
||||||
"ng2-alfresco-core": "^0.1.0",
|
"alfresco-js-api": "0.1.0",
|
||||||
"ng2-translate": "2.2.0",
|
"ng2-alfresco-core": "0.1.35"
|
||||||
"rimraf": "^2.5.2"
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"material-design-icons": "^2.2.3",
|
||||||
|
"material-design-lite": "^1.1.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"concurrently": "^2.1.0",
|
"concurrently": "2.1.0",
|
||||||
"coveralls": "^2.11.9",
|
"coveralls": "2.11.9",
|
||||||
"cpx": "^1.3.1",
|
"cpx": "1.3.1",
|
||||||
"http-server": "0.8.5",
|
"http-server": "0.8.5",
|
||||||
"jasmine-ajax": "^3.2.0",
|
"jasmine-ajax": "3.2.0",
|
||||||
"jasmine-core": "2.4.1",
|
"jasmine-core": "2.4.1",
|
||||||
"karma": "~0.13.22",
|
"karma": "0.13.22",
|
||||||
"karma-chrome-launcher": "~1.0.1",
|
"karma-chrome-launcher": "1.0.1",
|
||||||
"karma-coverage": "^1.0.0",
|
"karma-coverage": "1.0.0",
|
||||||
"karma-jasmine": "~1.0.2",
|
"karma-jasmine": "1.0.2",
|
||||||
"karma-jasmine-ajax": "^0.1.13",
|
"karma-jasmine-ajax": "0.1.13",
|
||||||
"karma-jasmine-html-reporter": "^0.2.0",
|
"karma-jasmine-html-reporter": "0.2.0",
|
||||||
"karma-mocha-reporter": "^2.0.3",
|
"karma-mocha-reporter": "2.0.3",
|
||||||
"license-check": "^1.0.4",
|
"license-check": "1.1.5",
|
||||||
"remap-istanbul": "^0.6.3",
|
"remap-istanbul": "0.6.3",
|
||||||
"traceur": "^0.0.91",
|
"traceur": "0.0.91",
|
||||||
"tslint": "^3.8.1",
|
"tslint": "3.8.1",
|
||||||
"typescript": "^1.8.10",
|
"typescript": "1.8.10",
|
||||||
"typings": "^1.0.4"
|
"typings": "1.0.4"
|
||||||
},
|
},
|
||||||
"license-check-config": {
|
"license-check-config": {
|
||||||
"src": [
|
"src": [
|
||||||
|
@@ -18,33 +18,36 @@
|
|||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.2",
|
"@angular/common": "2.0.0-rc.3",
|
||||||
"@angular/compiler": "2.0.0-rc.2",
|
"@angular/compiler": "2.0.0-rc.3",
|
||||||
"@angular/core": "2.0.0-rc.2",
|
"@angular/core": "2.0.0-rc.3",
|
||||||
"@angular/http": "2.0.0-rc.2",
|
"@angular/forms": "0.1.1",
|
||||||
"@angular/platform-browser": "2.0.0-rc.2",
|
"@angular/http": "2.0.0-rc.3",
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
|
"@angular/platform-browser": "2.0.0-rc.3",
|
||||||
"@angular/router": "2.0.0-rc.2",
|
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||||
|
"@angular/router": "3.0.0-alpha.7",
|
||||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||||
"@angular/upgrade": "2.0.0-rc.2",
|
"@angular/upgrade": "2.0.0-rc.3",
|
||||||
"systemjs": "0.19.27",
|
"systemjs": "0.19.27",
|
||||||
"core-js": "^2.4.0",
|
"core-js": "2.4.0",
|
||||||
"reflect-metadata": "^0.1.3",
|
"reflect-metadata": "0.1.3",
|
||||||
"rxjs": "5.0.0-beta.6",
|
"rxjs": "5.0.0-beta.6",
|
||||||
"zone.js": "^0.6.12",
|
"zone.js": "0.6.12",
|
||||||
"angular2-in-memory-web-api": "0.0.12",
|
|
||||||
"ng2-alfresco-viewer": "file:../",
|
"rimraf": "2.5.2",
|
||||||
"material-design-icons": "^2.2.3",
|
"material-design-icons": "2.2.3",
|
||||||
"material-design-lite": "^1.1.3",
|
"material-design-lite": "1.1.3",
|
||||||
"rimraf": "^2.5.2"
|
"pdfjs-dist": "1.5.258",
|
||||||
|
|
||||||
|
"ng2-alfresco-viewer": "0.1.32"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browser-sync": "^2.10.0",
|
"browser-sync": "2.10.0",
|
||||||
"connect-history-api-fallback": "^1.2.0",
|
"connect-history-api-fallback": "1.2.0",
|
||||||
"concurrently": "^2.0.0",
|
"concurrently": "2.0.0",
|
||||||
"tslint": "^3.8.1",
|
"tslint": "3.8.1",
|
||||||
"typescript": "^1.8.10",
|
"typescript": "1.8.10",
|
||||||
"typings": "^1.0.4"
|
"typings": "1.0.4"
|
||||||
},
|
},
|
||||||
"contributors": [
|
"contributors": [
|
||||||
{
|
{
|
||||||
@@ -58,6 +61,7 @@
|
|||||||
],
|
],
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"angular2",
|
"angular2",
|
||||||
"typescript"
|
"typescript",
|
||||||
|
"alfresco"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-viewer",
|
"name": "ng2-alfresco-viewer",
|
||||||
"description": "Alfresco documents viewer",
|
"description": "Alfresco documents viewer",
|
||||||
"version": "0.1.31",
|
"version": "0.1.32",
|
||||||
"author": "Eugenio Romano",
|
"author": "Eugenio Romano",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
@@ -54,44 +54,48 @@
|
|||||||
"alfresco"
|
"alfresco"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.2",
|
"@angular/common": "2.0.0-rc.3",
|
||||||
"@angular/compiler": "2.0.0-rc.2",
|
"@angular/compiler": "2.0.0-rc.3",
|
||||||
"@angular/core": "2.0.0-rc.2",
|
"@angular/core": "2.0.0-rc.3",
|
||||||
"@angular/http": "2.0.0-rc.2",
|
"@angular/forms": "0.1.1",
|
||||||
"@angular/platform-browser": "2.0.0-rc.2",
|
"@angular/http": "2.0.0-rc.3",
|
||||||
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
|
"@angular/platform-browser": "2.0.0-rc.3",
|
||||||
"@angular/router": "2.0.0-rc.2",
|
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||||
|
"@angular/router": "3.0.0-alpha.7",
|
||||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||||
"@angular/upgrade": "2.0.0-rc.2",
|
"@angular/upgrade": "2.0.0-rc.3",
|
||||||
"systemjs": "0.19.27",
|
"systemjs": "0.19.27",
|
||||||
"core-js": "^2.4.0",
|
"core-js": "2.4.0",
|
||||||
"reflect-metadata": "^0.1.3",
|
"reflect-metadata": "0.1.3",
|
||||||
"rxjs": "5.0.0-beta.6",
|
"rxjs": "5.0.0-beta.6",
|
||||||
"zone.js": "^0.6.12",
|
"zone.js": "0.6.12",
|
||||||
"angular2-in-memory-web-api": "0.0.12",
|
"rimraf": "2.5.2",
|
||||||
"pdfjs-dist": "^1.5.258",
|
"pdfjs-dist": "1.5.258"
|
||||||
"rimraf": "^2.5.2"
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"material-design-icons": "^2.2.3",
|
||||||
|
"material-design-lite": "^1.1.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"concurrently": "^2.1.0",
|
"concurrently": "2.1.0",
|
||||||
"coveralls": "^2.11.9",
|
"coveralls": "2.11.9",
|
||||||
"cpx": "^1.3.1",
|
"cpx": "1.3.1",
|
||||||
"http-server": "0.8.5",
|
"http-server": "0.8.5",
|
||||||
"jasmine-ajax": "^3.2.0",
|
"jasmine-ajax": "3.2.0",
|
||||||
"jasmine-core": "2.4.1",
|
"jasmine-core": "2.4.1",
|
||||||
"karma": "~0.13.22",
|
"karma": "0.13.22",
|
||||||
"karma-chrome-launcher": "~1.0.1",
|
"karma-chrome-launcher": "1.0.1",
|
||||||
"karma-coverage": "^1.0.0",
|
"karma-coverage": "1.0.0",
|
||||||
"karma-jasmine": "~1.0.2",
|
"karma-jasmine": "1.0.2",
|
||||||
"karma-jasmine-ajax": "^0.1.13",
|
"karma-jasmine-ajax": "0.1.13",
|
||||||
"karma-jasmine-html-reporter": "^0.2.0",
|
"karma-jasmine-html-reporter": "0.2.0",
|
||||||
"karma-mocha-reporter": "^2.0.3",
|
"karma-mocha-reporter": "2.0.3",
|
||||||
"license-check": "^1.0.4",
|
"license-check": "1.1.5",
|
||||||
"remap-istanbul": "^0.6.3",
|
"remap-istanbul": "0.6.3",
|
||||||
"traceur": "^0.0.91",
|
"traceur": "0.0.91",
|
||||||
"tslint": "^3.8.1",
|
"tslint": "3.8.1",
|
||||||
"typescript": "^1.8.10",
|
"typescript": "1.8.10",
|
||||||
"typings": "^1.0.4"
|
"typings": "1.0.4"
|
||||||
},
|
},
|
||||||
"license-check-config": {
|
"license-check-config": {
|
||||||
"src": [
|
"src": [
|
||||||
|
Reference in New Issue
Block a user