Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sortable): module #1295

Merged
merged 22 commits into from
Jan 6, 2017
Merged

Conversation

Le0Michine
Copy link
Contributor

@Le0Michine Le0Michine commented Dec 5, 2016

This PR contains implementation of d&d sortable list, at the moment it supports:

  • ngModel
  • drag&drop between different instances of the component
  • styles for container, items, active item
  • items list could be either string[] or object[] (fieldName should be provided in that case)
  • animation of item insertion/removing

Unfortunately I haven't found any information about contribution rules, if it is necessary to create some demo etc. please notify me

@codecov-io
Copy link

codecov-io commented Dec 5, 2016

Current coverage is 85.43% (diff: 100%)

Merging #1295 into development will increase coverage by 0.74%

@@           development      #1295   diff @@
=============================================
  Files               76         80     +4   
  Lines             2142       2252   +110   
  Methods             20         21     +1   
  Messages             0          0          
  Branches           285        293     +8   
=============================================
+ Hits              1814       1924   +110   
  Misses             230        230          
  Partials            98         98          

Powered by Codecov. Last update 6788f17...cae3a62

@valorkin valorkin changed the title Added sortable-list module feat(sortable-list): module Dec 6, 2016
@valorkin
Copy link
Member

valorkin commented Dec 6, 2016

Awesome!
Can you please rename to simply sortable?

Copy link
Member

@valorkin valorkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!
Please apply mentioned changes, tests and doc

@@ -20,7 +21,7 @@ import { ComponentsHelper } from './utils/components-helper.service';
@NgModule({
exports: [
AccordionModule, AlertModule, ButtonsModule, CarouselModule, CollapseModule, DatepickerModule, DropdownModule,
ModalModule, PaginationModule, ProgressbarModule, RatingModule, TabsModule, TimepickerModule, TooltipModule,
ModalModule, PaginationModule, ProgressbarModule, RatingModule, SortableListModule, TabsModule, TimepickerModule, TooltipModule,

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@@ -0,0 +1 @@
export * from './sortable-list.module';

This comment was marked as off-topic.

/* tslint:disable */
@Component({
selector: 'ng2-sortable-list',
templateUrl: './sortable-list.component.html',

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@Le0Michine
Copy link
Contributor Author

Le0Michine commented Dec 7, 2016

@valorkin, I have added docs and tests
but there is a problem with build and I don't think that it is because of my commit, could you take a look?

@Le0Michine Le0Michine changed the title feat(sortable-list): module feat(sortable): module Dec 7, 2016
@Le0Michine
Copy link
Contributor Author

Le0Michine commented Dec 8, 2016

@valorkin I fixed tests with pagination module (set _page = 1 by default, it was undefined by default in tests and noPrevious() method returned false because of it), so now it seems there is no blocker from CI side.
Fix in last commit 92ea666, unfortunately it has wrong comment

@valorkin
Copy link
Member

valorkin commented Dec 8, 2016

This is huge!!! Let me get to this
@SergeyKuryatnick check this out

@Le0Michine
Copy link
Contributor Author

@valorkin ping, just to remind :)

@valorkin
Copy link
Member

hey, I remember it! ;)
check new structure of src folder and how it is now published
https://unpkg.com/ng2-bootstrap@1.1.16-4/

almost ready to more not core bootstrap modules

@valorkin
Copy link
Member

This is huge!

@valorkin
Copy link
Member

I am actually ready to merge...
;)
drop me a note in https://ngx-slack.herokuapp.com/
and we will go through it

@valorkin valorkin merged commit fab3df5 into valor-software:development Jan 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants