mirror of https://github.com/abpframework/abp.git
8 changed files with 18 additions and 10 deletions
@ -0,0 +1 @@ |
|||||
|
export * from './table-sort.directive'; |
||||
@ -1,11 +1,13 @@ |
|||||
import { Directive, Input, Optional, Self, SimpleChanges, OnChanges } from '@angular/core'; |
import { Directive, Input, Optional, Self, SimpleChanges, OnChanges } from '@angular/core'; |
||||
import { Table } from 'primeng/table'; |
import { Table } from 'primeng/table'; |
||||
import { SortPipe, SortOrder } from '../pipes/sort.pipe'; |
|
||||
import clone from 'just-clone'; |
import clone from 'just-clone'; |
||||
|
import { SortPipe, SortOrder } from '@abp/ng.core'; |
||||
|
|
||||
export interface TableSortOptions { |
export interface TableSortOptions { |
||||
key: string; |
key: string; |
||||
order: SortOrder; |
order: SortOrder; |
||||
} |
} |
||||
|
|
||||
@Directive({ |
@Directive({ |
||||
selector: '[abpTableSort]', |
selector: '[abpTableSort]', |
||||
providers: [SortPipe], |
providers: [SortPipe], |
||||
@ -1,6 +1,6 @@ |
|||||
import { SpectatorDirective, createDirectiveFactory } from '@ngneat/spectator/jest'; |
import { SpectatorDirective, createDirectiveFactory } from '@ngneat/spectator/jest'; |
||||
import { TableSortDirective } from '../directives/table-sort.directive'; |
|
||||
import { TableModule, Table } from 'primeng/table'; |
import { TableModule, Table } from 'primeng/table'; |
||||
|
import { TableSortDirective } from '../directives/table-sort.directive'; |
||||
|
|
||||
describe('TableSortDirective', () => { |
describe('TableSortDirective', () => { |
||||
let spectator: SpectatorDirective<TableSortDirective>; |
let spectator: SpectatorDirective<TableSortDirective>; |
||||
Loading…
Reference in new issue