#46 fix errors

This commit is contained in:
Mario Romano 2016-05-06 01:47:39 +01:00
parent e5b54f40b8
commit 1ea845b58e
11 changed files with 47 additions and 57 deletions

View File

@ -23,7 +23,7 @@ import {
DocumentActionsService
} from 'ng2-alfresco-documentlist/ng2-alfresco-documentlist';
import {MDL} from 'ng2-alfresco-core/material';
import {ALFRESCO_ULPOAD_COMPONENT, ALFRESCO_ULPOAD_PROVAIDERS} from 'ng2-alfresco-upload/ng2-alfresco-upload';
import {ALFRESCO_ULPOAD_COMPONENT} from 'ng2-alfresco-upload/ng2-alfresco-upload';
declare let __moduleName:string;
@ -32,7 +32,7 @@ declare let __moduleName:string;
selector: 'files-component',
templateUrl: './files.component.html',
directives: [DOCUMENT_LIST_DIRECTIVES, MDL, ALFRESCO_ULPOAD_COMPONENT],
providers: [DOCUMENT_LIST_PROVIDERS, ALFRESCO_ULPOAD_PROVAIDERS]
providers: [DOCUMENT_LIST_PROVIDERS]
})
export class FilesComponent {
breadcrumb: boolean = false;

View File

@ -15,7 +15,6 @@
* limitations under the License.
*/
import { UploadDragAreaComponent } from './src/components/upload-drag-area.component';
import { UploadService } from './src/services/upload.service';
import { FileSelectDirective } from './src/directives/file-select.directive';
import { FileDraggableDirective } from './src/directives/file-draggable.directive';
import { UploadButtonComponent } from './src/components/upload-button.component';
@ -27,8 +26,6 @@ export * from './src/directives/file-draggable.directive';
declare var _default: {
component: (typeof UploadDragAreaComponent | typeof UploadButtonComponent)[];
directives: (typeof FileSelectDirective | typeof FileDraggableDirective)[];
providers: typeof UploadService[];
};
export default _default;
export declare const ALFRESCO_ULPOAD_COMPONENT: [any];
export declare const ALFRESCO_ULPOAD_PROVAIDERS: [any];

View File

@ -14,14 +14,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
System.register(['./src/components/upload-drag-area.component', './src/services/upload.service', './src/directives/file-select.directive', './src/directives/file-draggable.directive', './src/components/upload-button.component'], function(exports_1, context_1) {
System.register(['./src/components/upload-drag-area.component', './src/directives/file-select.directive', './src/directives/file-draggable.directive', './src/components/upload-button.component', './src/services/upload.service'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var upload_drag_area_component_1, upload_service_1, file_select_directive_1, file_draggable_directive_1, upload_button_component_1;
var ALFRESCO_ULPOAD_COMPONENT, ALFRESCO_ULPOAD_PROVAIDERS;
var upload_drag_area_component_1, file_select_directive_1, file_draggable_directive_1, upload_button_component_1;
var ALFRESCO_ULPOAD_COMPONENT;
var exportedNames_1 = {
'ALFRESCO_ULPOAD_COMPONENT': true,
'ALFRESCO_ULPOAD_PROVAIDERS': true
'ALFRESCO_ULPOAD_COMPONENT': true
};
function exportStar_1(m) {
var exports = {};
@ -36,10 +35,6 @@ System.register(['./src/components/upload-drag-area.component', './src/services/
upload_drag_area_component_1 = upload_drag_area_component_1_1;
exportStar_1(upload_drag_area_component_1_1);
},
function (upload_service_1_1) {
upload_service_1 = upload_service_1_1;
exportStar_1(upload_service_1_1);
},
function (file_select_directive_1_1) {
file_select_directive_1 = file_select_directive_1_1;
exportStar_1(file_select_directive_1_1);
@ -51,12 +46,14 @@ System.register(['./src/components/upload-drag-area.component', './src/services/
function (upload_button_component_1_1) {
upload_button_component_1 = upload_button_component_1_1;
exportStar_1(upload_button_component_1_1);
},
function (upload_service_1_1) {
exportStar_1(upload_service_1_1);
}],
execute: function() {
exports_1("default",{
component: [upload_drag_area_component_1.UploadDragAreaComponent, upload_button_component_1.UploadButtonComponent],
directives: [file_select_directive_1.FileSelectDirective, file_draggable_directive_1.FileDraggableDirective],
providers: [upload_service_1.UploadService]
directives: [file_select_directive_1.FileSelectDirective, file_draggable_directive_1.FileDraggableDirective]
});
exports_1("ALFRESCO_ULPOAD_COMPONENT", ALFRESCO_ULPOAD_COMPONENT = [
upload_drag_area_component_1.UploadDragAreaComponent,
@ -64,9 +61,6 @@ System.register(['./src/components/upload-drag-area.component', './src/services/
file_select_directive_1.FileSelectDirective,
file_draggable_directive_1.FileDraggableDirective
]);
exports_1("ALFRESCO_ULPOAD_PROVAIDERS", ALFRESCO_ULPOAD_PROVAIDERS = [
upload_service_1.UploadService
]);
}
}
});

View File

@ -1 +1 @@
{"version":3,"file":"ng2-alfresco-upload.js","sourceRoot":"","sources":["ng2-alfresco-upload.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;QAoBU,yBAAyB,EAOzB,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAbvC,oBAAe;gBACX,SAAS,EAAE,CAAC,oDAAuB,EAAE,+CAAqB,CAAC;gBAC3D,UAAU,EAAE,CAAC,2CAAmB,EAAE,iDAAsB,CAAC;gBACzD,SAAS,EAAE,CAAC,8BAAa,CAAC;aAC7B,EAAA;YAEY,uCAAA,yBAAyB,GAAU;gBAC5C,oDAAuB;gBACvB,+CAAqB;gBACrB,2CAAmB;gBACnB,iDAAsB;aACzB,CAAA,CAAC;YAEW,wCAAA,0BAA0B,GAAU;gBAC7C,8BAAa;aAChB,CAAA,CAAC"}
{"version":3,"file":"ng2-alfresco-upload.js","sourceRoot":"","sources":["ng2-alfresco-upload.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;QAkBU,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YALtC,oBAAe;gBACX,SAAS,EAAE,CAAC,oDAAuB,EAAE,+CAAqB,CAAC;gBAC3D,UAAU,EAAE,CAAC,2CAAmB,EAAE,iDAAsB,CAAC;aAC5D,EAAA;YAEY,uCAAA,yBAAyB,GAAU;gBAC5C,oDAAuB;gBACvB,+CAAqB;gBACrB,2CAAmB;gBACnB,iDAAsB;aACzB,CAAA,CAAC"}

View File

@ -16,7 +16,6 @@
*/
import {UploadDragAreaComponent} from './src/components/upload-drag-area.component';
import {UploadService} from './src/services/upload.service';
import {FileSelectDirective} from './src/directives/file-select.directive';
import {FileDraggableDirective} from './src/directives/file-draggable.directive';
import {UploadButtonComponent} from './src/components/upload-button.component';
@ -29,8 +28,7 @@ export * from './src/directives/file-draggable.directive';
export default {
component: [UploadDragAreaComponent, UploadButtonComponent],
directives: [FileSelectDirective, FileDraggableDirective],
providers: [UploadService]
directives: [FileSelectDirective, FileDraggableDirective]
}
export const ALFRESCO_ULPOAD_COMPONENT: [any] = [
@ -39,7 +37,3 @@ export const ALFRESCO_ULPOAD_COMPONENT: [any] = [
FileSelectDirective,
FileDraggableDirective
];
export const ALFRESCO_ULPOAD_PROVAIDERS: [any] = [
UploadService
];

View File

@ -1,5 +1,22 @@
/**
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { FileModel } from '../models/file.model';
export declare class UploadService {
private options;
private _url;
private _method;
private _authTokenPrefix;
@ -8,7 +25,7 @@ export declare class UploadService {
private _formFields;
private _withCredentials;
_queue: FileModel[];
constructor();
constructor(options: any);
addToQueue(files: any[]): FileModel[];
private _uploadFilesInTheQueue();
uploadFile(uploadingFileModel: any): void;

View File

@ -14,37 +14,33 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
System.register(['angular2/core', '../models/file.model'], function(exports_1, context_1) {
System.register(['../models/file.model'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1, file_model_1;
var file_model_1;
var UploadService;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
},
function (file_model_1_1) {
file_model_1 = file_model_1_1;
}],
execute: function() {
UploadService = (function () {
function UploadService() {
function UploadService(options) {
this.options = options;
this._method = 'POST';
this._authTokenPrefix = 'Basic';
this._authToken = undefined;
this._fieldName = 'file';
this._formFields = {};
this._queue = [];
console.log('UploadService constructor');
this._withCredentials = options.withCredentials != null ? options.withCredentials : this._withCredentials;
this._url = options.url != null ? options.url : this._url;
this._authTokenPrefix = options.authTokenPrefix != null ? options.authTokenPrefix : this._authTokenPrefix;
this._authToken = options.authToken != null ? options.authToken : this._authToken;
this._fieldName = options.fieldName != null ? options.fieldName : this._fieldName;
this._formFields = options.formFields != null ? options.formFields : this._formFields;
}
UploadService.prototype.addToQueue = function (files) {
var latestFilesAdded = [];
@ -113,10 +109,6 @@ System.register(['angular2/core', '../models/file.model'], function(exports_1, c
UploadService.prototype._isFile = function (file) {
return file !== null && (file instanceof Blob || (file.name && file.size));
};
UploadService = __decorate([
core_1.Injectable(),
__metadata('design:paramtypes', [])
], UploadService);
return UploadService;
}());
exports_1("UploadService", UploadService);

View File

@ -1 +1 @@
{"version":3,"file":"upload.service.js","sourceRoot":"","sources":["upload.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;YAQH;gBAWI;oBATQ,YAAO,GAAU,MAAM,CAAC;oBACxB,qBAAgB,GAAU,OAAO,CAAC;oBAClC,eAAU,GAAU,SAAS,CAAC;oBAC9B,eAAU,GAAU,MAAM,CAAC;oBAC3B,gBAAW,GAAU,EAAE,CAAC;oBAGhC,WAAM,GAAe,EAAE,CAAC;gBAEV,CAAC;gBAaf,kCAAU,GAAV,UAAW,KAAW;o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C,CAAC,CAAC;gBAC/E,CAAC;gBACL,oBAAC;YAAD,CAAC,AAvGD,IAuGC;YAvGD,yCAuGC,CAAA"}

View File

@ -16,11 +16,9 @@
*/
import {Injectable} from 'angular2/core';
import {FileModel} from '../models/file.model';
@Injectable()
export class UploadService {
private _url:string;
private _method:string = 'POST';
@ -32,8 +30,6 @@ export class UploadService {
_queue:FileModel[] = [];
constructor(){}
constructor(private options:any) {
console.log('UploadService constructor');