task-lists-element

Drag and drop task list items.

MIT License

Downloads
365
Stars
137
Committers
13

Bot releases are visible (Hide)

task-lists-element - v2.0.5 Latest Release

Published by KyFaSt over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/github/task-lists-element/compare/v2.0.4...v2.0.5

task-lists-element - v2.0.4

Published by lgarron almost 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/github/task-lists-element/compare/v2.0.3...v2.0.4

task-lists-element - v2.0.3

Published by dgreif about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/github/task-lists-element/compare/v2.0.2...v2.0.3

task-lists-element -

Published by koddsson about 3 years ago

This release brings you a bug fix for list item position calculations.

https://github.com/github/task-lists-element/compare/v2.0.1...v2.0.2

task-lists-element -

Published by koddsson about 3 years ago

This release brings changes to build and test tools and a bug fix when computing a task list item index.

Thanks to @chanakyabhardwajj for their contributions to this release 🙌🏻

https://github.com/github/task-lists-element/compare/v2.0.0...v2.0.1

task-lists-element -

Published by koddsson over 3 years ago

task-lists-element - v1.0.8

Published by muan over 4 years ago

  • TypeScript cnversion, remove Flow type defs.
task-lists-element -

Published by koddsson over 4 years ago

Add type to HTMLElementTagNameMap in typescript declaration file (#14)

https://github.com/github/task-lists-element/compare/v1.0.6...v1.0.7

task-lists-element -

Published by keithamus about 5 years ago

  • types(ts): add window declaration 6aec7a2
  • Bump eslint-utils from 1.3.1 to 1.4.2 759c096

https://github.com/github/task-lists-element/compare/v1.0.4...v1.0.5

task-lists-element -

Published by koddsson about 5 years ago

  • Merge pull request #9 from github/publish-to-gpr-as-well 37e6894
  • Merge branch 'master' into publish-to-gpr-as-well 2dec9ce
  • publish to GPR as a postpublish step 82a890f

https://github.com/github/task-lists-element/compare/v1.0.3...v1.0.4

task-lists-element - 1.0.4

Published by koddsson about 5 years ago

<task-lists> element

Drag and drop task list items.

Installation

$ npm install --save @github/task-lists-element

Usage

import '@github/task-lists-element'
<task-lists sortable>
  <ul class="contains-task-list">
    <li class="task-list-item">
      <input type="checkbox" class="task-list-item-checkbox">
      Hubot
    </li>
    <li class="task-list-item">
      <input type="checkbox" class="task-list-item-checkbox">
      Bender
    </li>
  </ul>

  <ul class="contains-task-list">
    <li class="task-list-item">
      <input type="checkbox" class="task-list-item-checkbox">
      BB-8
    </li>
    <li class="task-list-item">
      <input type="checkbox" class="task-list-item-checkbox">
      WALL-E
    </li>
  </ul>
</task-lists>

Events

const list = document.querySelector('task-lists')

list.addEventListener('task-lists-check', function(event) {
  const {position, checked} = event.detail
  console.log(position, checked)
})

list.addEventListener('task-lists-move', function(event) {
  const {src, dst} = event.detail
  console.log(src, dst)
})

Browser support

Browsers without native custom element support require a polyfill.

  • Chrome
  • Firefox
  • Safari
  • Microsoft Edge

Development

npm install
npm test

License

Distributed under the MIT license. See LICENSE for details.

task-lists-element -

Published by koddsson about 5 years ago

  • Merge pull request #10 from github/dependabot/npm_and_yarn/lodash-4.17.15 5463dca
  • Bump lodash from 4.17.11 to 4.17.15 1f7132a

https://github.com/github/task-lists-element/compare/v1.0.2...v1.0.3

task-lists-element -

Published by koddsson over 5 years ago

  • Merge pull request #7 from github/update-deps 483dac9
  • fix shadowed variable 883f124
  • annotate event handler event variable with Event type d4d69dd
  • update dependencies a09029d
  • run npm update 2db3623
  • Merge pull request #6 from github/onedoto e47bb59

https://github.com/github/task-lists-element/compare/v1.0.0...v1.0.1

task-lists-element - v1.0.0

Published by muan over 5 years ago

Stable release.

  • In range dependency upgrades
task-lists-element - v0.4.0

Published by muan over 5 years ago

  • Event name update
    • task-lists:check -> task-lists-check
    • task-lists:move -> task-lists-move
task-lists-element - 0.3.0

Published by mislav over 5 years ago

  • Drop IE 11 support

  • Stop transforming custom element classes