Move 'pagination' from 'core' to 'datatable'

This commit is contained in:
Denys Vuika 2016-07-14 14:50:47 +01:00
parent 4c01dd4d34
commit e5355bd603
16 changed files with 75 additions and 27 deletions

View File

@ -25,10 +25,9 @@ import {
MDL, MDL,
AlfrescoContentService, AlfrescoContentService,
CONTEXT_MENU_DIRECTIVES, CONTEXT_MENU_DIRECTIVES,
AlfrescoPipeTranslate/*, AlfrescoPipeTranslate
PaginationComponent*/
} from 'ng2-alfresco-core'; } from 'ng2-alfresco-core';
import { PaginationComponent } from 'ng2-alfresco-core'; import { PaginationComponent } from 'ng2-alfresco-datatable';
import { ALFRESCO_ULPOAD_COMPONENTS } from 'ng2-alfresco-upload'; import { ALFRESCO_ULPOAD_COMPONENTS } from 'ng2-alfresco-upload';
import { VIEWERCOMPONENT } from 'ng2-alfresco-viewer'; import { VIEWERCOMPONENT } from 'ng2-alfresco-viewer';

View File

@ -17,4 +17,3 @@
export * from './context-menu/index'; export * from './context-menu/index';
export * from './material/index'; export * from './material/index';
export * from './pagination/index';

View File

@ -15,18 +15,5 @@
* limitations under the License. * limitations under the License.
*/ */
import { DataTableComponent } from './src/components/datatable.component'; export * from './src/data/index';
import { NoContentTemplateComponent } from './src/components/no-content-template.component'; export * from './src/components/index';
// components
export * from './src/components/datatable.component';
export * from './src/components/no-content-template.component';
// data
export * from './src/data/datatable-adapter';
export * from './src/data/object-datatable-adapter';
export const ALFRESCO_DATATABLE_DIRECTIVES: [any] = [
DataTableComponent,
NoContentTemplateComponent
];

View File

@ -26,12 +26,10 @@ import { DataTableComponent } from './datatable.component';
import { import {
DataRow, DataRow,
DataColumn, DataColumn,
DataSorting DataSorting,
} from './../data/datatable-adapter';
import {
ObjectDataTableAdapter, ObjectDataTableAdapter,
ObjectDataColumn ObjectDataColumn
} from './../data/object-datatable-adapter'; } from './../../data/index';
describe('DataTable', () => { describe('DataTable', () => {

View File

@ -36,9 +36,9 @@ import {
DataRow, DataRow,
DataColumn, DataColumn,
DataSorting, DataSorting,
DataRowEvent DataRowEvent,
} from './../data/datatable-adapter'; ObjectDataTableAdapter
import { ObjectDataTableAdapter } from '../data/object-datatable-adapter'; } from '../../data/index';
declare var componentHandler; declare var componentHandler;
declare let __moduleName: string; declare let __moduleName: string;

View File

@ -0,0 +1,27 @@
/*!
* @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 { DataTableComponent } from './datatable.component';
import { NoContentTemplateComponent } from './no-content-template.component';
export * from './datatable.component';
export * from './no-content-template.component';
export const ALFRESCO_DATATABLE_DIRECTIVES: [any] = [
DataTableComponent,
NoContentTemplateComponent
];

View File

@ -0,0 +1,19 @@
/*!
* @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.
*/
export * from './datatable/index';
export * from './pagination/index';

View File

@ -17,7 +17,7 @@
import { Component, Input } from '@angular/core'; import { Component, Input } from '@angular/core';
import { MATERIAL_DESIGN_DIRECTIVES } from './../material/index'; import { MATERIAL_DESIGN_DIRECTIVES } from 'ng2-alfresco-core';
import { PaginationProvider } from './pagination-provider'; import { PaginationProvider } from './pagination-provider';
declare let __moduleName: string; declare let __moduleName: string;

View File

@ -0,0 +1,19 @@
/*!
* @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.
*/
export * from './datatable-adapter';
export * from './object-datatable-adapter';