mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
Move 'pagination' to the core, barrel files for core
This commit is contained in:
parent
6826f796fe
commit
380652df83
@ -92,10 +92,10 @@
|
||||
</content-action>
|
||||
</content-actions>
|
||||
</alfresco-document-list>
|
||||
<alfresco-document-list-pagination
|
||||
<alfresco-pagination
|
||||
[provider]="documentList.data"
|
||||
[supportedPageSizes]="[5, 10, 15, 20]">
|
||||
</alfresco-document-list-pagination>
|
||||
</alfresco-pagination>
|
||||
</alfresco-upload-drag-area>
|
||||
</div>
|
||||
|
||||
|
@ -25,8 +25,10 @@ import {
|
||||
MDL,
|
||||
AlfrescoContentService,
|
||||
CONTEXT_MENU_DIRECTIVES,
|
||||
AlfrescoPipeTranslate
|
||||
AlfrescoPipeTranslate/*,
|
||||
PaginationComponent*/
|
||||
} from 'ng2-alfresco-core';
|
||||
import { PaginationComponent } from 'ng2-alfresco-core';
|
||||
import { ALFRESCO_ULPOAD_COMPONENTS } from 'ng2-alfresco-upload';
|
||||
import { VIEWERCOMPONENT } from 'ng2-alfresco-viewer';
|
||||
|
||||
@ -42,7 +44,8 @@ declare let __moduleName: string;
|
||||
MDL,
|
||||
ALFRESCO_ULPOAD_COMPONENTS,
|
||||
VIEWERCOMPONENT,
|
||||
CONTEXT_MENU_DIRECTIVES
|
||||
CONTEXT_MENU_DIRECTIVES,
|
||||
PaginationComponent
|
||||
],
|
||||
providers: [DOCUMENT_LIST_PROVIDERS],
|
||||
pipes: [AlfrescoPipeTranslate]
|
||||
|
@ -15,37 +15,20 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { AlfrescoSettingsService } from './src/services/AlfrescoSettingsService.service';
|
||||
import { AlfrescoTranslationLoader } from './src/services/AlfrescoTranslationLoader.service';
|
||||
import { AlfrescoTranslationService } from './src/services/AlfrescoTranslationService.service';
|
||||
import { AlfrescoPipeTranslate } from './src/services/AlfrescoPipeTranslate.service';
|
||||
import { AlfrescoAuthenticationService } from './src/services/AlfrescoAuthenticationService.service';
|
||||
import { AlfrescoContentService } from './src/services/AlfrescoContentService.service';
|
||||
import { ContextMenuService } from './src/services/context-menu.service';
|
||||
import { ContextMenuHolderComponent } from './src/components/context-menu-holder.component';
|
||||
import { ContextMenuDirective } from './src/components/context-menu.directive';
|
||||
import { MDL } from './src/material/MaterialDesignLiteUpgradeElement';
|
||||
import { AlfrescoMdlButtonDirective } from './src/material/mdl-button.directive';
|
||||
import { AlfrescoMdlMenuDirective } from './src/material/mdl-menu.directive';
|
||||
import {
|
||||
AlfrescoSettingsService,
|
||||
AlfrescoTranslationLoader,
|
||||
AlfrescoTranslationService,
|
||||
AlfrescoPipeTranslate,
|
||||
AlfrescoAuthenticationService,
|
||||
AlfrescoContentService
|
||||
} from './src/services/index';
|
||||
|
||||
export * from './src/services/AlfrescoSettingsService.service';
|
||||
export * from './src/services/AlfrescoTranslationLoader.service';
|
||||
export * from './src/services/AlfrescoTranslationService.service';
|
||||
export * from './src/services/AlfrescoPipeTranslate.service';
|
||||
export * from './src/services/AlfrescoAuthenticationService.service';
|
||||
export * from './src/services/AlfrescoContentService.service';
|
||||
import { ContextMenuService } from './src/components/context-menu/context-menu.service';
|
||||
|
||||
// Material Design Lite integration
|
||||
export * from './src/material/MaterialDesignLiteUpgradeElement';
|
||||
export * from './src/material/mdl-button.directive';
|
||||
export * from './src/material/mdl-menu.directive';
|
||||
|
||||
export * from './src/services/context-menu.service';
|
||||
export * from './src/components/context-menu-holder.component';
|
||||
export * from './src/components/context-menu.directive';
|
||||
|
||||
export * from './src/data/pagination-provider';
|
||||
export * from './src/utils/object-utils';
|
||||
export * from './src/services/index';
|
||||
export * from './src/components/index';
|
||||
export * from './src/utils/index';
|
||||
|
||||
export const ALFRESCO_CORE_PROVIDERS: [any] = [
|
||||
AlfrescoAuthenticationService,
|
||||
@ -57,17 +40,3 @@ export const ALFRESCO_CORE_PROVIDERS: [any] = [
|
||||
ContextMenuService
|
||||
];
|
||||
|
||||
export const CONTEXT_MENU_PROVIDERS: [any] = [
|
||||
ContextMenuService
|
||||
];
|
||||
|
||||
export const CONTEXT_MENU_DIRECTIVES: [any] = [
|
||||
ContextMenuHolderComponent,
|
||||
ContextMenuDirective
|
||||
];
|
||||
|
||||
export const MATERIAL_DESIGN_DIRECTIVES: [any] = [
|
||||
MDL,
|
||||
AlfrescoMdlButtonDirective,
|
||||
AlfrescoMdlMenuDirective
|
||||
];
|
||||
|
@ -6,13 +6,14 @@
|
||||
"scripts": {
|
||||
"clean": "rimraf dist node_modules typings",
|
||||
"typings": "typings install",
|
||||
"build": "npm run tslint && typings install && rimraf dist && tsc && license-check",
|
||||
"build": "npm run tslint && typings install && rimraf dist && tsc && npm run copy-static && license-check",
|
||||
"build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task",
|
||||
"watch-task": "concurrently \"npm run tsc:w\" \"license-check\"",
|
||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
||||
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
||||
"tslint-root": "tslint -c tslint.json *.ts",
|
||||
"licensecheck": "license-check",
|
||||
"copy-static": "cpx \"./src/**/*.{html,css}\" ./dist/src",
|
||||
"tsc": "tsc",
|
||||
"tsc:w": "tsc -w",
|
||||
"pretest": "npm run build",
|
||||
|
@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
import { describe, it, beforeEach } from '@angular/core/testing';
|
||||
import { ContextMenuService } from './../services/context-menu.service';
|
||||
import { ContextMenuService } from './context-menu.service';
|
||||
import { ContextMenuHolderComponent } from './context-menu-holder.component';
|
||||
|
||||
describe('ContextMenuHolderComponent', () => {
|
@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
import { Component, HostListener } from '@angular/core';
|
||||
import { ContextMenuService } from './../services/context-menu.service';
|
||||
import { ContextMenuService } from './context-menu.service';
|
||||
|
||||
@Component({
|
||||
selector:'context-menu-holder',
|
@ -17,7 +17,7 @@
|
||||
|
||||
import { describe, it, beforeEach } from '@angular/core/testing';
|
||||
import { ContextMenuDirective } from './context-menu.directive';
|
||||
import { ContextMenuService } from './../services/context-menu.service';
|
||||
import { ContextMenuService } from './context-menu.service';
|
||||
|
||||
describe('ContextMenuDirective', () => {
|
||||
|
@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
import { Directive, Input, HostListener } from '@angular/core';
|
||||
import { ContextMenuService } from './../services/context-menu.service';
|
||||
import { ContextMenuService } from './context-menu.service';
|
||||
|
||||
@Directive({
|
||||
selector:'[context-menu]'
|
@ -0,0 +1,33 @@
|
||||
/*!
|
||||
* @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 { ContextMenuService } from './context-menu.service';
|
||||
import { ContextMenuHolderComponent } from './context-menu-holder.component';
|
||||
import { ContextMenuDirective } from './context-menu.directive';
|
||||
|
||||
export * from './context-menu.service';
|
||||
export * from './context-menu-holder.component';
|
||||
export * from './context-menu.directive';
|
||||
|
||||
export const CONTEXT_MENU_PROVIDERS: [any] = [
|
||||
ContextMenuService
|
||||
];
|
||||
|
||||
export const CONTEXT_MENU_DIRECTIVES: [any] = [
|
||||
ContextMenuHolderComponent,
|
||||
ContextMenuDirective
|
||||
];
|
20
ng2-components/ng2-alfresco-core/src/components/index.ts
Normal file
20
ng2-components/ng2-alfresco-core/src/components/index.ts
Normal file
@ -0,0 +1,20 @@
|
||||
/*!
|
||||
* @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 './context-menu/index';
|
||||
export * from './material/index';
|
||||
export * from './pagination/index';
|
@ -0,0 +1,30 @@
|
||||
/*!
|
||||
* @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 { MDL } from './MaterialDesignLiteUpgradeElement';
|
||||
import { AlfrescoMdlButtonDirective } from './mdl-button.directive';
|
||||
import { AlfrescoMdlMenuDirective } from './mdl-menu.directive';
|
||||
|
||||
export * from './MaterialDesignLiteUpgradeElement';
|
||||
export * from './mdl-button.directive';
|
||||
export * from './mdl-menu.directive';
|
||||
|
||||
export const MATERIAL_DESIGN_DIRECTIVES: [any] = [
|
||||
MDL,
|
||||
AlfrescoMdlButtonDirective,
|
||||
AlfrescoMdlMenuDirective
|
||||
];
|
@ -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 './pagination-provider';
|
||||
export * from './pagination.component';
|
@ -16,21 +16,20 @@
|
||||
*/
|
||||
|
||||
import { Component, Input } from '@angular/core';
|
||||
import {
|
||||
MATERIAL_DESIGN_DIRECTIVES,
|
||||
PaginationProvider
|
||||
} from 'ng2-alfresco-core';
|
||||
|
||||
import { MATERIAL_DESIGN_DIRECTIVES } from './../material/index';
|
||||
import { PaginationProvider } from './pagination-provider';
|
||||
|
||||
declare let __moduleName: string;
|
||||
|
||||
@Component({
|
||||
moduleId: __moduleName,
|
||||
selector: 'alfresco-document-list-pagination',
|
||||
selector: 'alfresco-pagination',
|
||||
templateUrl: './pagination.component.html',
|
||||
styleUrls: ['./pagination.component.css'],
|
||||
directives: [MATERIAL_DESIGN_DIRECTIVES]
|
||||
})
|
||||
export class DocumentListPagination {
|
||||
export class PaginationComponent {
|
||||
|
||||
DEFAULT_PAGE_SIZE: number = 20;
|
||||
|
23
ng2-components/ng2-alfresco-core/src/services/index.ts
Normal file
23
ng2-components/ng2-alfresco-core/src/services/index.ts
Normal file
@ -0,0 +1,23 @@
|
||||
/*!
|
||||
* @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 './AlfrescoSettingsService.service';
|
||||
export * from './AlfrescoTranslationLoader.service';
|
||||
export * from './AlfrescoTranslationService.service';
|
||||
export * from './AlfrescoPipeTranslate.service';
|
||||
export * from './AlfrescoAuthenticationService.service';
|
||||
export * from './AlfrescoContentService.service';
|
18
ng2-components/ng2-alfresco-core/src/utils/index.ts
Normal file
18
ng2-components/ng2-alfresco-core/src/utils/index.ts
Normal file
@ -0,0 +1,18 @@
|
||||
/*!
|
||||
* @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 './object-utils';
|
@ -22,7 +22,6 @@ import { ContentAction } from './src/components/content-action';
|
||||
import { ContentActionList } from './src/components/content-action-list';
|
||||
import { EmptyFolderContent } from './src/components/empty-folder-content';
|
||||
import { DocumentListBreadcrumb } from './src/components/breadcrumb/breadcrumb.component';
|
||||
import { DocumentListPagination } from './src/components/pagination/pagination.component';
|
||||
|
||||
import { FolderActionsService } from './src/services/folder-actions.service';
|
||||
import { DocumentActionsService } from './src/services/document-actions.service';
|
||||
@ -36,7 +35,6 @@ export * from './src/components/content-action';
|
||||
export * from './src/components/content-action-list';
|
||||
export * from './src/components/empty-folder-content';
|
||||
export * from './src/components/breadcrumb/breadcrumb.component';
|
||||
export * from './src/components/pagination/pagination.component';
|
||||
|
||||
// services
|
||||
export * from './src/services/folder-actions.service';
|
||||
@ -50,8 +48,7 @@ export const DOCUMENT_LIST_DIRECTIVES: [any] = [
|
||||
ContentAction,
|
||||
ContentActionList,
|
||||
EmptyFolderContent,
|
||||
DocumentListBreadcrumb,
|
||||
DocumentListPagination
|
||||
DocumentListBreadcrumb
|
||||
];
|
||||
|
||||
export const DOCUMENT_LIST_PROVIDERS: [any] = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user