mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Merge pull request #198 from Alfresco/dev-imports-fix
Simplified imports
This commit is contained in:
@@ -17,16 +17,16 @@
|
|||||||
|
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { Router, RouteConfig, ROUTER_DIRECTIVES } from '@angular/router-deprecated';
|
import { Router, RouteConfig, ROUTER_DIRECTIVES } from '@angular/router-deprecated';
|
||||||
import { MDL } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
|
||||||
import { FilesComponent } from './components/files/files.component';
|
import { FilesComponent } from './components/files/files.component';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
MDL,
|
||||||
AlfrescoSettingsService,
|
AlfrescoSettingsService,
|
||||||
AlfrescoTranslationService,
|
AlfrescoTranslationService,
|
||||||
AlfrescoPipeTranslate,
|
AlfrescoPipeTranslate,
|
||||||
AlfrescoAuthenticationService
|
AlfrescoAuthenticationService
|
||||||
} from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
} from 'ng2-alfresco-core';
|
||||||
import { UploadButtonComponent } from 'ng2-alfresco-upload/dist/ng2-alfresco-upload';
|
import { UploadButtonComponent } from 'ng2-alfresco-upload';
|
||||||
import { DataTableDemoComponent } from './components/datatable/datatable-demo.component';
|
import { DataTableDemoComponent } from './components/datatable/datatable-demo.component';
|
||||||
import { SearchComponent } from './components/search/search.component';
|
import { SearchComponent } from './components/search/search.component';
|
||||||
import { SearchBarComponent } from './components/search/search-bar.component';
|
import { SearchBarComponent } from './components/search/search-bar.component';
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import {
|
|||||||
DataSorting,
|
DataSorting,
|
||||||
ObjectDataRow,
|
ObjectDataRow,
|
||||||
ObjectDataColumn
|
ObjectDataColumn
|
||||||
} from 'ng2-alfresco-datatable/dist/ng2-alfresco-datatable';
|
} from 'ng2-alfresco-datatable';
|
||||||
|
|
||||||
declare let __moduleName: string;
|
declare let __moduleName: string;
|
||||||
|
|
||||||
|
|||||||
@@ -20,15 +20,15 @@ import {
|
|||||||
DOCUMENT_LIST_DIRECTIVES,
|
DOCUMENT_LIST_DIRECTIVES,
|
||||||
DOCUMENT_LIST_PROVIDERS,
|
DOCUMENT_LIST_PROVIDERS,
|
||||||
DocumentActionsService
|
DocumentActionsService
|
||||||
} from 'ng2-alfresco-documentlist/dist/ng2-alfresco-documentlist';
|
} from 'ng2-alfresco-documentlist';
|
||||||
import {
|
import {
|
||||||
MDL,
|
MDL,
|
||||||
AlfrescoContentService
|
AlfrescoContentService,
|
||||||
} from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
CONTEXT_MENU_DIRECTIVES,
|
||||||
import { CONTEXT_MENU_DIRECTIVES } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
AlfrescoPipeTranslate
|
||||||
import { ALFRESCO_ULPOAD_COMPONENTS } from 'ng2-alfresco-upload/dist/ng2-alfresco-upload';
|
} from 'ng2-alfresco-core';
|
||||||
import { AlfrescoPipeTranslate } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
import { ALFRESCO_ULPOAD_COMPONENTS } from 'ng2-alfresco-upload';
|
||||||
import { VIEWERCOMPONENT } from 'ng2-alfresco-viewer/dist/ng2-alfresco-viewer';
|
import { VIEWERCOMPONENT } from 'ng2-alfresco-viewer';
|
||||||
|
|
||||||
declare let __moduleName: string;
|
declare let __moduleName: string;
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { AlfrescoLoginComponent } from 'ng2-alfresco-login/dist/ng2-alfresco-login';
|
import { AlfrescoLoginComponent } from 'ng2-alfresco-login';
|
||||||
|
|
||||||
declare let __moduleName: string;
|
declare let __moduleName: string;
|
||||||
|
|
||||||
|
|||||||
@@ -17,12 +17,12 @@
|
|||||||
|
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { Router } from '@angular/router-deprecated';
|
import { Router } from '@angular/router-deprecated';
|
||||||
import { ALFRESCO_SEARCH_DIRECTIVES } from 'ng2-alfresco-search/dist/ng2-alfresco-search';
|
import { ALFRESCO_SEARCH_DIRECTIVES } from 'ng2-alfresco-search';
|
||||||
import { VIEWERCOMPONENT } from 'ng2-alfresco-viewer/dist/ng2-alfresco-viewer';
|
import { VIEWERCOMPONENT } from 'ng2-alfresco-viewer';
|
||||||
import {
|
import {
|
||||||
AlfrescoAuthenticationService,
|
AlfrescoAuthenticationService,
|
||||||
AlfrescoContentService
|
AlfrescoContentService
|
||||||
} from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
} from 'ng2-alfresco-core';
|
||||||
|
|
||||||
declare let __moduleName: string;
|
declare let __moduleName: string;
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ALFRESCO_SEARCH_DIRECTIVES } from 'ng2-alfresco-search/dist/ng2-alfresco-search';
|
import { ALFRESCO_SEARCH_DIRECTIVES } from 'ng2-alfresco-search';
|
||||||
|
|
||||||
declare let __moduleName: string;
|
declare let __moduleName: string;
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import { ActivitiService } from './activiti.service';
|
|||||||
import {
|
import {
|
||||||
ALFRESCO_DATATABLE_DIRECTIVES,
|
ALFRESCO_DATATABLE_DIRECTIVES,
|
||||||
ObjectDataTableAdapter
|
ObjectDataTableAdapter
|
||||||
} from 'ng2-alfresco-datatable/dist/ng2-alfresco-datatable';
|
} from 'ng2-alfresco-datatable';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'tasks-demo',
|
selector: 'tasks-demo',
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
import { bootstrap } from '@angular/platform-browser-dynamic';
|
import { bootstrap } from '@angular/platform-browser-dynamic';
|
||||||
import { ROUTER_PROVIDERS } from '@angular/router-deprecated';
|
import { ROUTER_PROVIDERS } from '@angular/router-deprecated';
|
||||||
import { HTTP_PROVIDERS } from '@angular/http';
|
import { HTTP_PROVIDERS } from '@angular/http';
|
||||||
import { ALFRESCO_CORE_PROVIDERS } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
import { ALFRESCO_CORE_PROVIDERS } from 'ng2-alfresco-core';
|
||||||
import { UploadService } from 'ng2-alfresco-upload/dist/ng2-alfresco-upload';
|
import { UploadService } from 'ng2-alfresco-upload';
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
|
|
||||||
bootstrap(AppComponent, [
|
bootstrap(AppComponent, [
|
||||||
|
|||||||
@@ -11,13 +11,13 @@
|
|||||||
'rxjs': 'node_modules/rxjs',
|
'rxjs': 'node_modules/rxjs',
|
||||||
|
|
||||||
'ng2-translate': 'node_modules/ng2-translate',
|
'ng2-translate': 'node_modules/ng2-translate',
|
||||||
'ng2-alfresco-core': 'node_modules/ng2-alfresco-core',
|
'ng2-alfresco-core': 'node_modules/ng2-alfresco-core/dist',
|
||||||
'ng2-alfresco-datatable': 'node_modules/ng2-alfresco-datatable',
|
'ng2-alfresco-datatable': 'node_modules/ng2-alfresco-datatable/dist',
|
||||||
'ng2-alfresco-documentlist': 'node_modules/ng2-alfresco-documentlist',
|
'ng2-alfresco-documentlist': 'node_modules/ng2-alfresco-documentlist/dist',
|
||||||
'ng2-alfresco-login': 'node_modules/ng2-alfresco-login',
|
'ng2-alfresco-login': 'node_modules/ng2-alfresco-login/dist',
|
||||||
'ng2-alfresco-search': 'node_modules/ng2-alfresco-search',
|
'ng2-alfresco-search': 'node_modules/ng2-alfresco-search/dist',
|
||||||
'ng2-alfresco-upload': 'node_modules/ng2-alfresco-upload',
|
'ng2-alfresco-upload': 'node_modules/ng2-alfresco-upload/dist',
|
||||||
'ng2-alfresco-viewer': 'node_modules/ng2-alfresco-viewer'
|
'ng2-alfresco-viewer': 'node_modules/ng2-alfresco-viewer/dist'
|
||||||
};
|
};
|
||||||
// packages tells the System loader how to load when no filename and/or no extension
|
// packages tells the System loader how to load when no filename and/or no extension
|
||||||
var packages = {
|
var packages = {
|
||||||
@@ -26,13 +26,14 @@
|
|||||||
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
||||||
|
|
||||||
'ng2-translate': { defaultExtension: 'js' },
|
'ng2-translate': { defaultExtension: 'js' },
|
||||||
'ng2-alfresco-core': {defaultExtension: 'js'},
|
|
||||||
'ng2-alfresco-datatable': {defaultExtension: 'js'},
|
'ng2-alfresco-core': { main: 'index.js', defaultExtension: 'js'},
|
||||||
'ng2-alfresco-documentlist': {defaultExtension: 'js'},
|
'ng2-alfresco-datatable': { main: 'index.js', defaultExtension: 'js'},
|
||||||
'ng2-alfresco-login': {defaultExtension: 'js'},
|
'ng2-alfresco-documentlist': { main: 'index.js', defaultExtension: 'js'},
|
||||||
'ng2-alfresco-search': {defaultExtension: 'js'},
|
'ng2-alfresco-login': { main: 'index.js', defaultExtension: 'js'},
|
||||||
'ng2-alfresco-upload': {defaultExtension: 'js'},
|
'ng2-alfresco-search': { main: 'index.js', defaultExtension: 'js'},
|
||||||
'ng2-alfresco-viewer': {defaultExtension: 'js'}
|
'ng2-alfresco-upload': { main: 'index.js', defaultExtension: 'js'},
|
||||||
|
'ng2-alfresco-viewer': { main: 'index.js', defaultExtension: 'js'}
|
||||||
};
|
};
|
||||||
var ngPackageNames = [
|
var ngPackageNames = [
|
||||||
'common',
|
'common',
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
npm-debug.log
|
npm-debug.log
|
||||||
node_modules
|
node_modules
|
||||||
jspm_packages
|
|
||||||
.idea
|
.idea
|
||||||
typings
|
typings
|
||||||
coverage
|
coverage
|
||||||
@@ -11,6 +10,6 @@ src/**/*.d.ts
|
|||||||
demo/**/*.js
|
demo/**/*.js
|
||||||
demo/**/*.js.map
|
demo/**/*.js.map
|
||||||
demo/**/*.d.ts
|
demo/**/*.d.ts
|
||||||
ng2-alfresco-core.js
|
index.js
|
||||||
ng2-alfresco-core.js.map
|
index.map
|
||||||
!systemjs.config.js
|
!systemjs.config.js
|
||||||
|
|||||||
@@ -25,6 +25,8 @@
|
|||||||
"coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
|
"coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
|
||||||
"prepublish": "npm run build"
|
"prepublish": "npm run build"
|
||||||
},
|
},
|
||||||
|
"main": "./dist/index.js",
|
||||||
|
"typings": "./dist/index.d.ts",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Alfresco/dev-platform-webcomponents.git"
|
"url": "https://github.com/Alfresco/dev-platform-webcomponents.git"
|
||||||
|
|||||||
@@ -6,6 +6,6 @@ coverage/
|
|||||||
dist/
|
dist/
|
||||||
src/**/*.js
|
src/**/*.js
|
||||||
src/**/*.js.map
|
src/**/*.js.map
|
||||||
ng2-alfresco-datatable.js
|
index.js
|
||||||
ng2-alfresco-datatable.js.map
|
index.js.map
|
||||||
!systemjs.config.js
|
!systemjs.config.js
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',
|
'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',
|
||||||
'rxjs': 'node_modules/rxjs',
|
'rxjs': 'node_modules/rxjs',
|
||||||
|
|
||||||
'ng2-alfresco-datatable': 'node_modules/ng2-alfresco-datatable'
|
'ng2-alfresco-datatable': 'node_modules/ng2-alfresco-datatable/dist'
|
||||||
};
|
};
|
||||||
// packages tells the System loader how to load when no filename and/or no extension
|
// packages tells the System loader how to load when no filename and/or no extension
|
||||||
var packages = {
|
var packages = {
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
'rxjs': { defaultExtension: 'js' },
|
'rxjs': { defaultExtension: 'js' },
|
||||||
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
||||||
|
|
||||||
'ng2-alfresco-datatable': { defaultExtension: 'js' }
|
'ng2-alfresco-datatable': { main: 'index.js', defaultExtension: 'js' }
|
||||||
};
|
};
|
||||||
var ngPackageNames = [
|
var ngPackageNames = [
|
||||||
'common',
|
'common',
|
||||||
|
|||||||
@@ -28,6 +28,8 @@
|
|||||||
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
|
||||||
"prepublish": "npm run build"
|
"prepublish": "npm run build"
|
||||||
},
|
},
|
||||||
|
"main": "./dist/index.js",
|
||||||
|
"typings": "./dist/index.d.ts",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Alfresco/dev-platform-webcomponents.git"
|
"url": "https://github.com/Alfresco/dev-platform-webcomponents.git"
|
||||||
|
|||||||
@@ -11,6 +11,6 @@ src/**/*.d.ts
|
|||||||
demo/**/*.js
|
demo/**/*.js
|
||||||
demo/**/*.js.map
|
demo/**/*.js.map
|
||||||
demo/**/*.d.ts
|
demo/**/*.d.ts
|
||||||
ng2-alfresco-documentlist.js
|
index.js
|
||||||
ng2-alfresco-documentlist.js.map
|
index.js.map
|
||||||
!systemjs.config.js
|
!systemjs.config.js
|
||||||
|
|||||||
@@ -26,13 +26,13 @@ import {
|
|||||||
AlfrescoPipeTranslate,
|
AlfrescoPipeTranslate,
|
||||||
AlfrescoTranslationService,
|
AlfrescoTranslationService,
|
||||||
CONTEXT_MENU_DIRECTIVES
|
CONTEXT_MENU_DIRECTIVES
|
||||||
} from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
} from 'ng2-alfresco-core';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
DOCUMENT_LIST_DIRECTIVES,
|
DOCUMENT_LIST_DIRECTIVES,
|
||||||
DOCUMENT_LIST_PROVIDERS,
|
DOCUMENT_LIST_PROVIDERS,
|
||||||
DocumentActionsService
|
DocumentActionsService
|
||||||
} from 'ng2-alfresco-documentlist/dist/ng2-alfresco-documentlist';
|
} from 'ng2-alfresco-documentlist';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'alfresco-documentlist-demo',
|
selector: 'alfresco-documentlist-demo',
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
'rxjs': 'node_modules/rxjs',
|
'rxjs': 'node_modules/rxjs',
|
||||||
|
|
||||||
'ng2-translate': 'node_modules/ng2-translate',
|
'ng2-translate': 'node_modules/ng2-translate',
|
||||||
'ng2-alfresco-core': 'node_modules/ng2-alfresco-core',
|
'ng2-alfresco-core': 'node_modules/ng2-alfresco-core/dist',
|
||||||
'ng2-alfresco-documentlist': 'node_modules/ng2-alfresco-documentlist'
|
'ng2-alfresco-documentlist': 'node_modules/ng2-alfresco-documentlist/dist'
|
||||||
};
|
};
|
||||||
// packages tells the System loader how to load when no filename and/or no extension
|
// packages tells the System loader how to load when no filename and/or no extension
|
||||||
var packages = {
|
var packages = {
|
||||||
@@ -21,8 +21,8 @@
|
|||||||
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
||||||
|
|
||||||
'ng2-translate': { defaultExtension: 'js' },
|
'ng2-translate': { defaultExtension: 'js' },
|
||||||
'ng2-alfresco-core': { defaultExtension: 'js' },
|
'ng2-alfresco-core': { main: 'index.js', defaultExtension: 'js' },
|
||||||
'ng2-alfresco-documentlist': { defaultExtension: 'js' }
|
'ng2-alfresco-documentlist': { main: 'index.js', defaultExtension: 'js' }
|
||||||
};
|
};
|
||||||
var ngPackageNames = [
|
var ngPackageNames = [
|
||||||
'common',
|
'common',
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ var map = {
|
|||||||
'app': 'base/dist',
|
'app': 'base/dist',
|
||||||
'rxjs': 'base/node_modules/rxjs',
|
'rxjs': 'base/node_modules/rxjs',
|
||||||
'@angular': 'base/node_modules/@angular',
|
'@angular': 'base/node_modules/@angular',
|
||||||
'ng2-alfresco-core/dist': '/base/node_modules/ng2-alfresco-core/dist',
|
'ng2-alfresco-core': '/base/node_modules/ng2-alfresco-core/dist',
|
||||||
'ng2-translate' : '/base/node_modules/ng2-translate'
|
'ng2-translate' : '/base/node_modules/ng2-translate'
|
||||||
};
|
};
|
||||||
|
|
||||||
var packages = {
|
var packages = {
|
||||||
'app': { main: 'main.js', defaultExtension: 'js' },
|
'app': { main: 'main.js', defaultExtension: 'js' },
|
||||||
'rxjs': { defaultExtension: 'js' },
|
'rxjs': { defaultExtension: 'js' },
|
||||||
'ng2-alfresco-core/dist': { defaultExtension: 'js' },
|
'ng2-alfresco-core': { main: 'index.js', defaultExtension: 'js' },
|
||||||
'ng2-translate': { defaultExtension: 'js' }
|
'ng2-translate': { defaultExtension: 'js' }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,8 @@
|
|||||||
"coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
|
"coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
|
||||||
"prepublish": "npm run build"
|
"prepublish": "npm run build"
|
||||||
},
|
},
|
||||||
|
"main": "./dist/index.js",
|
||||||
|
"typings": "./dist/index.d.ts",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Alfresco/dev-platform-webcomponents.git"
|
"url": "https://github.com/Alfresco/dev-platform-webcomponents.git"
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import {
|
|||||||
AlfrescoSettingsService,
|
AlfrescoSettingsService,
|
||||||
AlfrescoAuthenticationService,
|
AlfrescoAuthenticationService,
|
||||||
AlfrescoContentService
|
AlfrescoContentService
|
||||||
} from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
} from 'ng2-alfresco-core';
|
||||||
|
|
||||||
export class AlfrescoServiceMock extends AlfrescoService {
|
export class AlfrescoServiceMock extends AlfrescoService {
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import {
|
|||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
import { DatePipe } from '@angular/common';
|
import { DatePipe } from '@angular/common';
|
||||||
import { Subject } from 'rxjs/Rx';
|
import { Subject } from 'rxjs/Rx';
|
||||||
import { CONTEXT_MENU_DIRECTIVES } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
import { CONTEXT_MENU_DIRECTIVES } from 'ng2-alfresco-core';
|
||||||
import { AlfrescoService } from './../services/alfresco.service';
|
import { AlfrescoService } from './../services/alfresco.service';
|
||||||
import { MinimalNodeEntity, NodePaging } from './../models/document-library.model';
|
import { MinimalNodeEntity, NodePaging } from './../models/document-library.model';
|
||||||
import { ContentActionModel } from './../models/content-action.model';
|
import { ContentActionModel } from './../models/content-action.model';
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import {
|
|||||||
AlfrescoSettingsService,
|
AlfrescoSettingsService,
|
||||||
AlfrescoAuthenticationService,
|
AlfrescoAuthenticationService,
|
||||||
AlfrescoContentService
|
AlfrescoContentService
|
||||||
} from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
} from 'ng2-alfresco-core';
|
||||||
|
|
||||||
declare let AlfrescoApi: any;
|
declare let AlfrescoApi: any;
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import {ContentActionHandler} from '../models/content-action.model';
|
|||||||
import {AlfrescoService} from './alfresco.service';
|
import {AlfrescoService} from './alfresco.service';
|
||||||
import {
|
import {
|
||||||
AlfrescoContentService
|
AlfrescoContentService
|
||||||
} from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
} from 'ng2-alfresco-core';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class DocumentActionsService {
|
export class DocumentActionsService {
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
npm-debug.log
|
npm-debug.log
|
||||||
node_modules
|
node_modules
|
||||||
jspm_packages
|
|
||||||
.idea
|
.idea
|
||||||
typings
|
typings
|
||||||
coverage
|
coverage
|
||||||
@@ -11,6 +10,6 @@ src/**/*.d.ts
|
|||||||
demo/**/*.js
|
demo/**/*.js
|
||||||
demo/**/*.js.map
|
demo/**/*.js.map
|
||||||
demo/**/*.d.ts
|
demo/**/*.d.ts
|
||||||
ng2-alfresco-login.js
|
index.js
|
||||||
ng2-alfresco-login.js.map
|
index.js.map
|
||||||
!systemjs.config.js
|
!systemjs.config.js
|
||||||
|
|||||||
@@ -23,13 +23,13 @@ import {
|
|||||||
ROUTER_PROVIDERS,
|
ROUTER_PROVIDERS,
|
||||||
ROUTER_DIRECTIVES
|
ROUTER_DIRECTIVES
|
||||||
} from '@angular/router-deprecated';
|
} from '@angular/router-deprecated';
|
||||||
import { AlfrescoLoginComponent } from 'ng2-alfresco-login/dist/ng2-alfresco-login';
|
import { AlfrescoLoginComponent } from 'ng2-alfresco-login';
|
||||||
import { HTTP_PROVIDERS } from '@angular/http';
|
import { HTTP_PROVIDERS } from '@angular/http';
|
||||||
import {
|
import {
|
||||||
ALFRESCO_CORE_PROVIDERS,
|
ALFRESCO_CORE_PROVIDERS,
|
||||||
AlfrescoSettingsService,
|
AlfrescoSettingsService,
|
||||||
AlfrescoAuthenticationService
|
AlfrescoAuthenticationService
|
||||||
} from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
} from 'ng2-alfresco-core';
|
||||||
|
|
||||||
|
|
||||||
@RouteConfig([
|
@RouteConfig([
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
'rxjs': 'node_modules/rxjs',
|
'rxjs': 'node_modules/rxjs',
|
||||||
|
|
||||||
'ng2-translate': 'node_modules/ng2-translate',
|
'ng2-translate': 'node_modules/ng2-translate',
|
||||||
'ng2-alfresco-core': 'node_modules/ng2-alfresco-core',
|
'ng2-alfresco-core': 'node_modules/ng2-alfresco-core/dist',
|
||||||
'ng2-alfresco-login': 'node_modules/ng2-alfresco-login'
|
'ng2-alfresco-login': 'node_modules/ng2-alfresco-login/dist'
|
||||||
};
|
};
|
||||||
// packages tells the System loader how to load when no filename and/or no extension
|
// packages tells the System loader how to load when no filename and/or no extension
|
||||||
var packages = {
|
var packages = {
|
||||||
@@ -21,8 +21,8 @@
|
|||||||
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
||||||
|
|
||||||
'ng2-translate': { defaultExtension: 'js' },
|
'ng2-translate': { defaultExtension: 'js' },
|
||||||
'ng2-alfresco-core': { defaultExtension: 'js' },
|
'ng2-alfresco-core': { main: 'index.js', defaultExtension: 'js' },
|
||||||
'ng2-alfresco-login': { defaultExtension: 'js' }
|
'ng2-alfresco-login': { main: 'index.js', defaultExtension: 'js' }
|
||||||
};
|
};
|
||||||
var ngPackageNames = [
|
var ngPackageNames = [
|
||||||
'common',
|
'common',
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ var map = {
|
|||||||
'app': 'base/dist',
|
'app': 'base/dist',
|
||||||
'rxjs': 'base/node_modules/rxjs',
|
'rxjs': 'base/node_modules/rxjs',
|
||||||
'@angular': 'base/node_modules/@angular',
|
'@angular': 'base/node_modules/@angular',
|
||||||
'ng2-alfresco-core/dist': '/base/node_modules/ng2-alfresco-core/dist',
|
'ng2-alfresco-core': '/base/node_modules/ng2-alfresco-core/dist',
|
||||||
'ng2-translate' : '/base/node_modules/ng2-translate'
|
'ng2-translate' : '/base/node_modules/ng2-translate'
|
||||||
};
|
};
|
||||||
|
|
||||||
var packages = {
|
var packages = {
|
||||||
'app': { main: 'main.js', defaultExtension: 'js' },
|
'app': { main: 'main.js', defaultExtension: 'js' },
|
||||||
'rxjs': { defaultExtension: 'js' },
|
'rxjs': { defaultExtension: 'js' },
|
||||||
'ng2-alfresco-core/dist': { defaultExtension: 'js' },
|
'ng2-alfresco-core': { main: 'index.js', defaultExtension: 'js' },
|
||||||
'ng2-translate': { defaultExtension: 'js' }
|
'ng2-translate': { defaultExtension: 'js' }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,8 @@
|
|||||||
"coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
|
"coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
|
||||||
"prepublish": "npm run build"
|
"prepublish": "npm run build"
|
||||||
},
|
},
|
||||||
|
"main": "./dist/index.js",
|
||||||
|
"typings": "./dist/index.d.ts",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Alfresco/dev-platform-webcomponents.git"
|
"url": "https://github.com/Alfresco/dev-platform-webcomponents.git"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
import { Observable } from 'rxjs/Rx';
|
import { Observable } from 'rxjs/Rx';
|
||||||
import { provide } from '@angular/core';
|
import { provide } from '@angular/core';
|
||||||
import { AlfrescoAuthenticationService } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
import { AlfrescoAuthenticationService } from 'ng2-alfresco-core';
|
||||||
|
|
||||||
export class AuthenticationMock {
|
export class AuthenticationMock {
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import {
|
|||||||
AlfrescoTranslationService,
|
AlfrescoTranslationService,
|
||||||
AlfrescoPipeTranslate,
|
AlfrescoPipeTranslate,
|
||||||
AlfrescoAuthenticationService
|
AlfrescoAuthenticationService
|
||||||
} from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
} from 'ng2-alfresco-core';
|
||||||
|
|
||||||
declare let componentHandler: any;
|
declare let componentHandler: any;
|
||||||
declare let __moduleName: string;
|
declare let __moduleName: string;
|
||||||
|
|||||||
@@ -6,6 +6,6 @@ coverage/
|
|||||||
dist/
|
dist/
|
||||||
src/**/*.js
|
src/**/*.js
|
||||||
src/**/*.js.map
|
src/**/*.js.map
|
||||||
ng2-alfresco-search.js
|
index.js
|
||||||
ng2-alfresco-search.js.map
|
index.js.map
|
||||||
!systemjs.config.js
|
!systemjs.config.js
|
||||||
|
|||||||
@@ -25,13 +25,13 @@ import {
|
|||||||
AlfrescoAuthenticationService,
|
AlfrescoAuthenticationService,
|
||||||
AlfrescoPipeTranslate,
|
AlfrescoPipeTranslate,
|
||||||
AlfrescoTranslationService
|
AlfrescoTranslationService
|
||||||
} from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
} from 'ng2-alfresco-core';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ALFRESCO_SEARCH_PROVIDERS,
|
ALFRESCO_SEARCH_PROVIDERS,
|
||||||
ALFRESCO_SEARCH_DIRECTIVES,
|
ALFRESCO_SEARCH_DIRECTIVES,
|
||||||
AlfrescoService
|
AlfrescoService
|
||||||
} from 'ng2-alfresco-search/dist/ng2-alfresco-search';
|
} from 'ng2-alfresco-search';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'alfresco-search-demo',
|
selector: 'alfresco-search-demo',
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
'rxjs': 'node_modules/rxjs',
|
'rxjs': 'node_modules/rxjs',
|
||||||
|
|
||||||
'ng2-translate': 'node_modules/ng2-translate',
|
'ng2-translate': 'node_modules/ng2-translate',
|
||||||
'ng2-alfresco-core': 'node_modules/ng2-alfresco-core',
|
'ng2-alfresco-core': 'node_modules/ng2-alfresco-core/dist',
|
||||||
'ng2-alfresco-search': 'node_modules/ng2-alfresco-search'
|
'ng2-alfresco-search': 'node_modules/ng2-alfresco-search/dist'
|
||||||
};
|
};
|
||||||
// packages tells the System loader how to load when no filename and/or no extension
|
// packages tells the System loader how to load when no filename and/or no extension
|
||||||
var packages = {
|
var packages = {
|
||||||
@@ -21,8 +21,8 @@
|
|||||||
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
||||||
|
|
||||||
'ng2-translate': { defaultExtension: 'js' },
|
'ng2-translate': { defaultExtension: 'js' },
|
||||||
'ng2-alfresco-core': { defaultExtension: 'js' },
|
'ng2-alfresco-core': { main: 'index.js', defaultExtension: 'js' },
|
||||||
'ng2-alfresco-search': { defaultExtension: 'js' }
|
'ng2-alfresco-search': { main: 'index.js', defaultExtension: 'js' }
|
||||||
};
|
};
|
||||||
var ngPackageNames = [
|
var ngPackageNames = [
|
||||||
'common',
|
'common',
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import {
|
|||||||
AlfrescoSettingsService,
|
AlfrescoSettingsService,
|
||||||
AlfrescoAuthenticationService,
|
AlfrescoAuthenticationService,
|
||||||
AlfrescoContentService
|
AlfrescoContentService
|
||||||
} from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
} from 'ng2-alfresco-core';
|
||||||
import {AlfrescoService} from './../../src/services/alfresco.service';
|
import {AlfrescoService} from './../../src/services/alfresco.service';
|
||||||
|
|
||||||
export class AlfrescoServiceMock extends AlfrescoService {
|
export class AlfrescoServiceMock extends AlfrescoService {
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ import {
|
|||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
import { AlfrescoService } from './../services/alfresco.service';
|
import { AlfrescoService } from './../services/alfresco.service';
|
||||||
|
|
||||||
import { AlfrescoPipeTranslate, AlfrescoTranslationService } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
import { AlfrescoPipeTranslate, AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||||
|
|
||||||
declare let __moduleName: string;
|
declare let __moduleName: string;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@
|
|||||||
import { Control, Validators } from '@angular/common';
|
import { Control, Validators } from '@angular/common';
|
||||||
import { Component, Input, Output, EventEmitter, AfterViewInit } from '@angular/core';
|
import { Component, Input, Output, EventEmitter, AfterViewInit } from '@angular/core';
|
||||||
|
|
||||||
import { AlfrescoPipeTranslate, AlfrescoTranslationService } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
import { AlfrescoPipeTranslate, AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||||
|
|
||||||
import { AlfrescoSearchAutocompleteComponent } from './alfresco-search-autocomplete.component';
|
import { AlfrescoSearchAutocompleteComponent } from './alfresco-search-autocomplete.component';
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import { Component, Input, Optional, OnChanges, OnInit } from '@angular/core';
|
|||||||
import { RouteParams } from '@angular/router-deprecated';
|
import { RouteParams } from '@angular/router-deprecated';
|
||||||
import { AlfrescoService } from './../services/alfresco.service';
|
import { AlfrescoService } from './../services/alfresco.service';
|
||||||
|
|
||||||
import { AlfrescoPipeTranslate, AlfrescoTranslationService } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
import { AlfrescoPipeTranslate, AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||||
|
|
||||||
declare let __moduleName: string;
|
declare let __moduleName: string;
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import {
|
|||||||
AlfrescoSettingsService,
|
AlfrescoSettingsService,
|
||||||
AlfrescoAuthenticationService,
|
AlfrescoAuthenticationService,
|
||||||
AlfrescoContentService
|
AlfrescoContentService
|
||||||
} from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
} from 'ng2-alfresco-core';
|
||||||
|
|
||||||
declare let AlfrescoApi: any;
|
declare let AlfrescoApi: any;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
npm-debug.log
|
npm-debug.log
|
||||||
node_modules
|
node_modules
|
||||||
jspm_packages
|
|
||||||
.idea
|
.idea
|
||||||
typings
|
typings
|
||||||
coverage
|
coverage
|
||||||
@@ -11,6 +10,6 @@ src/**/*.d.ts
|
|||||||
demo/**/*.js
|
demo/**/*.js
|
||||||
demo/**/*.js.map
|
demo/**/*.js.map
|
||||||
demo/**/*.d.ts
|
demo/**/*.d.ts
|
||||||
ng2-alfresco-upload.js
|
index.js
|
||||||
ng2-alfresco-upload.js.map
|
index.js.map
|
||||||
!systemjs.config.js
|
!systemjs.config.js
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ import {
|
|||||||
ALFRESCO_CORE_PROVIDERS,
|
ALFRESCO_CORE_PROVIDERS,
|
||||||
AlfrescoSettingsService,
|
AlfrescoSettingsService,
|
||||||
AlfrescoAuthenticationService
|
AlfrescoAuthenticationService
|
||||||
} from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
} from 'ng2-alfresco-core';
|
||||||
import { ALFRESCO_ULPOAD_COMPONENTS, UploadService } from 'ng2-alfresco-upload/dist/ng2-alfresco-upload';
|
import { ALFRESCO_ULPOAD_COMPONENTS, UploadService } from 'ng2-alfresco-upload';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
'rxjs': 'node_modules/rxjs',
|
'rxjs': 'node_modules/rxjs',
|
||||||
|
|
||||||
'ng2-translate': 'node_modules/ng2-translate',
|
'ng2-translate': 'node_modules/ng2-translate',
|
||||||
'ng2-alfresco-core': 'node_modules/ng2-alfresco-core',
|
'ng2-alfresco-core': 'node_modules/ng2-alfresco-core/dist',
|
||||||
'ng2-alfresco-upload': 'node_modules/ng2-alfresco-upload'
|
'ng2-alfresco-upload': 'node_modules/ng2-alfresco-upload/dist'
|
||||||
};
|
};
|
||||||
// packages tells the System loader how to load when no filename and/or no extension
|
// packages tells the System loader how to load when no filename and/or no extension
|
||||||
var packages = {
|
var packages = {
|
||||||
@@ -21,8 +21,8 @@
|
|||||||
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
||||||
|
|
||||||
'ng2-translate': { defaultExtension: 'js' },
|
'ng2-translate': { defaultExtension: 'js' },
|
||||||
'ng2-alfresco-core': { defaultExtension: 'js' },
|
'ng2-alfresco-core': { main: 'index.js', defaultExtension: 'js' },
|
||||||
'ng2-alfresco-upload': { defaultExtension: 'js' }
|
'ng2-alfresco-upload': { main: 'index.js', defaultExtension: 'js' }
|
||||||
};
|
};
|
||||||
var ngPackageNames = [
|
var ngPackageNames = [
|
||||||
'common',
|
'common',
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ var map = {
|
|||||||
'app': 'base/dist',
|
'app': 'base/dist',
|
||||||
'rxjs': 'base/node_modules/rxjs',
|
'rxjs': 'base/node_modules/rxjs',
|
||||||
'@angular': 'base/node_modules/@angular',
|
'@angular': 'base/node_modules/@angular',
|
||||||
'ng2-alfresco-core/dist': '/base/node_modules/ng2-alfresco-core/dist',
|
'ng2-alfresco-core': '/base/node_modules/ng2-alfresco-core/dist',
|
||||||
'ng2-translate' : '/base/node_modules/ng2-translate'
|
'ng2-translate' : '/base/node_modules/ng2-translate'
|
||||||
};
|
};
|
||||||
|
|
||||||
var packages = {
|
var packages = {
|
||||||
'app': { main: 'main.js', defaultExtension: 'js' },
|
'app': { main: 'main.js', defaultExtension: 'js' },
|
||||||
'rxjs': { defaultExtension: 'js' },
|
'rxjs': { defaultExtension: 'js' },
|
||||||
'ng2-alfresco-core/dist': { defaultExtension: 'js' },
|
'ng2-alfresco-core': { main: 'index.js', defaultExtension: 'js' },
|
||||||
'ng2-translate': { defaultExtension: 'js' }
|
'ng2-translate': { defaultExtension: 'js' }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,8 @@
|
|||||||
"coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
|
"coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
|
||||||
"prepublish": "npm run build"
|
"prepublish": "npm run build"
|
||||||
},
|
},
|
||||||
|
"main": "./dist/index.js",
|
||||||
|
"typings": "./dist/index.d.ts",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Alfresco/dev-platform-webcomponents.git"
|
"url": "https://github.com/Alfresco/dev-platform-webcomponents.git"
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ import {
|
|||||||
import { provide } from '@angular/core';
|
import { provide } from '@angular/core';
|
||||||
import { FileUploadingDialogComponent } from './file-uploading-dialog.component';
|
import { FileUploadingDialogComponent } from './file-uploading-dialog.component';
|
||||||
import { FileModel } from '../models/file.model';
|
import { FileModel } from '../models/file.model';
|
||||||
import { AlfrescoTranslationService } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
import { AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||||
import { TranslationMock } from '../assets/translation.service.mock';
|
import { TranslationMock } from '../assets/translation.service.mock';
|
||||||
|
|
||||||
describe('FileUploadDialog', () => {
|
describe('FileUploadDialog', () => {
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@
|
|||||||
import { Component, ChangeDetectorRef, OnInit } from '@angular/core';
|
import { Component, ChangeDetectorRef, OnInit } from '@angular/core';
|
||||||
import { FileModel } from '../models/file.model';
|
import { FileModel } from '../models/file.model';
|
||||||
import { FileUploadingListComponent } from './file-uploading-list.component';
|
import { FileUploadingListComponent } from './file-uploading-list.component';
|
||||||
import { AlfrescoTranslationService, AlfrescoPipeTranslate } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
import { AlfrescoTranslationService, AlfrescoPipeTranslate } from 'ng2-alfresco-core';
|
||||||
import { UploadService } from '../services/upload.service';
|
import { UploadService } from '../services/upload.service';
|
||||||
|
|
||||||
declare let __moduleName: string;
|
declare let __moduleName: string;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
import { Component, ElementRef, Input } from '@angular/core';
|
import { Component, ElementRef, Input } from '@angular/core';
|
||||||
import { FileModel } from '../models/file.model';
|
import { FileModel } from '../models/file.model';
|
||||||
import { AlfrescoPipeTranslate } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
import { AlfrescoPipeTranslate } from 'ng2-alfresco-core';
|
||||||
|
|
||||||
declare let __moduleName: string;
|
declare let __moduleName: string;
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import { describe, expect, it, inject, beforeEachProviders } from '@angular/core
|
|||||||
import { TestComponentBuilder } from '@angular/compiler/testing';
|
import { TestComponentBuilder } from '@angular/compiler/testing';
|
||||||
import { provide } from '@angular/core';
|
import { provide } from '@angular/core';
|
||||||
import { UploadButtonComponent } from './upload-button.component';
|
import { UploadButtonComponent } from './upload-button.component';
|
||||||
import { AlfrescoTranslationService } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
import { AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||||
import { TranslationMock } from '../assets/translation.service.mock';
|
import { TranslationMock } from '../assets/translation.service.mock';
|
||||||
import { UploadServiceMock } from '../assets/upload.service.mock';
|
import { UploadServiceMock } from '../assets/upload.service.mock';
|
||||||
import { UploadService } from '../services/upload.service';
|
import { UploadService } from '../services/upload.service';
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
import { Component, ViewChild, ElementRef, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, ViewChild, ElementRef, Input, Output, EventEmitter } from '@angular/core';
|
||||||
import { UploadService } from '../services/upload.service';
|
import { UploadService } from '../services/upload.service';
|
||||||
import { FileModel } from '../models/file.model';
|
import { FileModel } from '../models/file.model';
|
||||||
import { AlfrescoTranslationService, AlfrescoPipeTranslate } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
import { AlfrescoTranslationService, AlfrescoPipeTranslate } from 'ng2-alfresco-core';
|
||||||
import 'rxjs/Rx';
|
import 'rxjs/Rx';
|
||||||
|
|
||||||
declare let componentHandler: any;
|
declare let componentHandler: any;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
import { Component, ViewChild, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, ViewChild, Input, Output, EventEmitter } from '@angular/core';
|
||||||
import { UploadService } from '../services/upload.service';
|
import { UploadService } from '../services/upload.service';
|
||||||
import { FileDraggableDirective } from '../directives/file-draggable.directive';
|
import { FileDraggableDirective } from '../directives/file-draggable.directive';
|
||||||
import { AlfrescoTranslationService, AlfrescoPipeTranslate } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
import { AlfrescoTranslationService, AlfrescoPipeTranslate } from 'ng2-alfresco-core';
|
||||||
import { FileModel } from '../models/file.model';
|
import { FileModel } from '../models/file.model';
|
||||||
|
|
||||||
declare let __moduleName: string;
|
declare let __moduleName: string;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import { EventEmitter, Injectable } from '@angular/core';
|
|||||||
import { Response } from '@angular/http';
|
import { Response } from '@angular/http';
|
||||||
import { Observable } from 'rxjs/Observable';
|
import { Observable } from 'rxjs/Observable';
|
||||||
import { Observer } from 'rxjs/Observer';
|
import { Observer } from 'rxjs/Observer';
|
||||||
import { AlfrescoSettingsService } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
|
import { AlfrescoSettingsService } from 'ng2-alfresco-core';
|
||||||
import { FileModel } from '../models/file.model';
|
import { FileModel } from '../models/file.model';
|
||||||
|
|
||||||
declare let AlfrescoApi: any;
|
declare let AlfrescoApi: any;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { bootstrap } from '@angular/platform-browser-dynamic';
|
import { bootstrap } from '@angular/platform-browser-dynamic';
|
||||||
import { VIEWERCOMPONENT } from 'ng2-alfresco-viewer/dist/ng2-alfresco-viewer';
|
import { VIEWERCOMPONENT } from 'ng2-alfresco-viewer';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-app',
|
selector: 'my-app',
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',
|
'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',
|
||||||
'rxjs': 'node_modules/rxjs',
|
'rxjs': 'node_modules/rxjs',
|
||||||
|
|
||||||
'ng2-alfresco-viewer': 'node_modules/ng2-alfresco-viewer'
|
'ng2-alfresco-viewer': 'node_modules/ng2-alfresco-viewer/dist'
|
||||||
};
|
};
|
||||||
// packages tells the System loader how to load when no filename and/or no extension
|
// packages tells the System loader how to load when no filename and/or no extension
|
||||||
var packages = {
|
var packages = {
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
'rxjs': { defaultExtension: 'js' },
|
'rxjs': { defaultExtension: 'js' },
|
||||||
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
||||||
|
|
||||||
'ng2-alfresco-viewer': { defaultExtension: 'js' }
|
'ng2-alfresco-viewer': { main: 'index.js', defaultExtension: 'js' }
|
||||||
};
|
};
|
||||||
var ngPackageNames = [
|
var ngPackageNames = [
|
||||||
'common',
|
'common',
|
||||||
|
|||||||
@@ -29,6 +29,8 @@
|
|||||||
"coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
|
"coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report",
|
||||||
"prepublish": "npm run build"
|
"prepublish": "npm run build"
|
||||||
},
|
},
|
||||||
|
"main": "./dist/index.js",
|
||||||
|
"typings": "./dist/index.d.ts",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/alfresco/ng2-alfresco-viewer.git"
|
"url": "https://github.com/alfresco/ng2-alfresco-viewer.git"
|
||||||
|
|||||||
Reference in New Issue
Block a user