[ADF-1968] [IE11] The login page is not loading and import fix (#2679)

* fix viewer script
export insights and diagram
remove requires svg
fix new data adapter path
dist working with diagrams commented out
change use of minimatch
fix unused import
remove unused component
fix test
new import moment es6 and throw rxjs
fix import analytics test
fix imports rxjs
new pacakging

* fix after rebase

* fix test upload services

* exclude temporarily button event test

* restore commented demo shell files

* fix process spy
This commit is contained in:
Eugenio Romano
2017-11-22 10:33:56 +00:00
committed by GitHub
parent 39737b3df6
commit f629f48d16
316 changed files with 1548 additions and 1678 deletions

View File

@@ -0,0 +1,43 @@
/*!
* @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 { TemplateRef } from '@angular/core';
import { DataColumn } from './data-column.model';
// Simple implementation of the DataColumn interface.
export class ObjectDataColumn implements DataColumn {
key: string;
type: string; // text|image
format: string;
sortable: boolean;
title: string;
srTitle: string;
cssClass: string;
template?: TemplateRef<any>;
constructor(obj: any) {
this.key = obj.key;
this.type = obj.type || 'text';
this.format = obj.format;
this.sortable = obj.sortable;
this.title = obj.title;
this.srTitle = obj.srTitle;
this.cssClass = obj.cssClass;
this.template = obj.template;
}
}

View File

@@ -15,9 +15,24 @@
* limitations under the License.
*/
export { DataTableAdapter } from './datatable-adapter';
export { ObjectDataColumn, ObjectDataRow, ObjectDataTableAdapter } from './object-datatable-adapter';
export { DataRow } from './data-row.model';
export { DataRowEvent } from './data-row-event.model';
export { DataColumn } from './data-column.model';
export { DataSorting } from './data-sorting.model';
import { ObjectUtils } from '../../utils';
import { DataRow } from './data-row.model';
// Simple implementation of the DataRow interface.
export class ObjectDataRow implements DataRow {
constructor(private obj: any, public isSelected: boolean = false) {
if (!obj) {
throw new Error('Object source not found');
}
}
getValue(key: string): any {
return ObjectUtils.getValue(this.obj, key);
}
hasValue(key: string): boolean {
return this.getValue(key) !== undefined;
}
}

View File

@@ -18,7 +18,9 @@
import { DataColumn } from './data-column.model';
import { DataRow } from './data-row.model';
import { DataSorting } from './data-sorting.model';
import { ObjectDataColumn, ObjectDataRow, ObjectDataTableAdapter } from './object-datatable-adapter';
import { ObjectDataTableAdapter } from './object-datatable-adapter';
import { ObjectDataRow } from './object-datarow.model';
import { ObjectDataColumn } from './object-datacolumn.model';
describe('ObjectDataTableAdapter', () => {

View File

@@ -16,34 +16,15 @@
*/
import { DatePipe } from '@angular/common';
import { TemplateRef } from '@angular/core';
import { TimeAgoPipe } from '../../pipes';
import { ObjectUtils } from '../../utils';
import { DataColumn } from './data-column.model';
import { DataRow } from './data-row.model';
import { ObjectDataRow } from './object-datarow.model';
import { ObjectDataColumn } from './object-datacolumn.model';
import { DataSorting } from './data-sorting.model';
import { DataTableAdapter } from './datatable-adapter';
// Simple implementation of the DataRow interface.
export class ObjectDataRow implements DataRow {
constructor(private obj: any, public isSelected: boolean = false) {
if (!obj) {
throw new Error('Object source not found');
}
}
getValue(key: string): any {
return ObjectUtils.getValue(this.obj, key);
}
hasValue(key: string): boolean {
return this.getValue(key) !== undefined;
}
}
// Simple implementation of the DataTableAdapter interface.
export class ObjectDataTableAdapter implements DataTableAdapter {
@@ -196,27 +177,3 @@ export class ObjectDataTableAdapter implements DataTableAdapter {
this.setSorting(sorting);
}
}
// Simple implementation of the DataColumn interface.
export class ObjectDataColumn implements DataColumn {
key: string;
type: string; // text|image
format: string;
sortable: boolean;
title: string;
srTitle: string;
cssClass: string;
template?: TemplateRef<any>;
constructor(obj: any) {
this.key = obj.key;
this.type = obj.type || 'text';
this.format = obj.format;
this.sortable = obj.sortable;
this.title = obj.title;
this.srTitle = obj.srTitle;
this.cssClass = obj.cssClass;
this.template = obj.template;
}
}