ember-sortable 2.4.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.md +2 -2
  2. package/.github/workflows/github_ci.yml +15 -13
  3. package/CHANGELOG.md +203 -108
  4. package/MIGRATION_GUIDE_MODIFIERS.md +20 -13
  5. package/MIGRATION_GUIDE_V2.md +20 -8
  6. package/README.md +74 -151
  7. package/V2_MIGRATION_RFC.md +188 -222
  8. package/addon/modifiers/sortable-group.js +38 -40
  9. package/addon/modifiers/sortable-handle.js +16 -18
  10. package/addon/modifiers/sortable-item.js +101 -74
  11. package/addon/services/ember-sortable.js +3 -6
  12. package/addon/system/scroll-parent.js +1 -1
  13. package/addon/utils/coordinate.js +1 -1
  14. package/addon/utils/css-calculation.js +2 -2
  15. package/addon/utils/defaults.js +4 -3
  16. package/addon/utils/keyboard.js +3 -12
  17. package/addon-test-support/helpers/drag.js +3 -11
  18. package/addon-test-support/helpers/index.js +1 -4
  19. package/addon-test-support/helpers/reorder.js +4 -6
  20. package/addon-test-support/utils/keyboard.js +3 -12
  21. package/addon-test-support/utils/offset.js +6 -6
  22. package/config/environment.js +2 -2
  23. package/index.js +0 -20
  24. package/package.json +31 -17
  25. package/addon/components/sortable-group.js +0 -741
  26. package/addon/components/sortable-handle.js +0 -30
  27. package/addon/components/sortable-item.js +0 -770
  28. package/addon/styles/components/sortable-group.css +0 -9
  29. package/addon/templates/components/sortable-group.hbs +0 -16
  30. package/addon/templates/components/sortable-handle.hbs +0 -1
  31. package/addon/templates/components/sortable-item.hbs +0 -2
  32. package/addon/utils/transitionend.js +0 -22
  33. package/app/components/sortable-group.js +0 -3
  34. package/app/components/sortable-handle.js +0 -4
  35. package/app/components/sortable-item.js +0 -3
  36. package/vendor/polyfills/closest.js +0 -21
@@ -1,8 +1,7 @@
1
1
  ---
2
2
  name: Bug report
3
3
  about: Create a report to help us improve
4
- labels:
5
-
4
+ labels:
6
5
  ---
7
6
 
8
7
  **Describe the bug**
@@ -10,6 +9,7 @@ A clear and concise description of what the bug is.
10
9
 
11
10
  **To Reproduce**
12
11
  Steps to reproduce the behavior:
12
+
13
13
  1. Go to '...'
14
14
  2. Click on '....'
15
15
  3. Scroll down to '....'
@@ -6,9 +6,9 @@ name: build
6
6
  on:
7
7
  workflow_dispatch:
8
8
  push:
9
- branches: [ master ]
9
+ branches: [master]
10
10
  pull_request:
11
- branches: [ master ]
11
+ branches: [master]
12
12
 
13
13
  jobs:
14
14
  main-test:
@@ -16,10 +16,11 @@ jobs:
16
16
  runs-on: ubuntu-latest
17
17
  steps:
18
18
  - uses: actions/checkout@v2
19
- - name: Use Node.js 10
20
- uses: actions/setup-node@v1
19
+ - name: Use Node.js 12
20
+ uses: actions/setup-node@v2
21
21
  with:
22
- node-version: 10
22
+ node-version: 12
23
+ cache: yarn
23
24
  - name: Install Dependencies
24
25
  run: yarn install --frozen-lockfile
25
26
  - name: Running tests
@@ -32,15 +33,15 @@ jobs:
32
33
 
33
34
  strategy:
34
35
  fail-fast: false
35
- max-parallel: 1
36
36
  matrix:
37
- scenario: [ember-lts-3.8, ember-lts-3.12, ember-lts-3.16, ember-lts-3.20]
37
+ scenario: [ember-lts-3.20, ember-lts-3.24, ember-lts-3.28]
38
38
  steps:
39
39
  - uses: actions/checkout@v2
40
- - name: Use Node.js 10
41
- uses: actions/setup-node@v1
40
+ - name: Use Node.js 12
41
+ uses: actions/setup-node@v2
42
42
  with:
43
- node-version: 10
43
+ node-version: 12
44
+ cache: yarn
44
45
  - name: Install Dependencies
45
46
  run: yarn install --frozen-lockfile
46
47
  - name: Running test
@@ -58,10 +59,11 @@ jobs:
58
59
  scenario: [ember-beta, ember-release, ember-canary]
59
60
  steps:
60
61
  - uses: actions/checkout@v2
61
- - name: Use Node.js 10
62
- uses: actions/setup-node@v1
62
+ - name: Use Node.js 12
63
+ uses: actions/setup-node@v2
63
64
  with:
64
- node-version: 10
65
+ node-version: 12
66
+ cache: yarn
65
67
  - name: Install Dependencies
66
68
  run: yarn install --frozen-lockfile
67
69
  - name: Running test