vue3-extended-multiselect 1.10.2 → 2.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 (50) hide show
  1. package/.browserslistrc +2 -2
  2. package/.eslintrc.js +35 -34
  3. package/.github/workflows/publish.yml +41 -41
  4. package/CHANGELOG.md +411 -389
  5. package/LICENSE +21 -21
  6. package/README.md +270 -270
  7. package/babel.config.js +9 -9
  8. package/index.js +2 -2
  9. package/jest.config.js +62 -62
  10. package/package.json +56 -46
  11. package/rollup.config.mjs +74 -0
  12. package/src/assets/{base-arrow.svg → images/base-arrow.svg} +70 -70
  13. package/src/assets/{cancel.svg → images/cancel.svg} +34 -34
  14. package/src/assets/{circle-arrow.svg → images/circle-arrow.svg} +7 -7
  15. package/src/assets/{double-arrow.svg → images/double-arrow.svg} +39 -39
  16. package/src/assets/{inner-arrow.svg → images/inner-arrow.svg} +8 -8
  17. package/src/assets/{loader.svg → images/loader.svg} +5 -5
  18. package/src/assets/{triangle-arrow.svg → images/triangle-arrow.svg} +72 -72
  19. package/src/assets/{triangle-circle-arrow.svg → images/triangle-circle-arrow.svg} +38 -38
  20. package/src/assets/{wide-arrow.svg → images/wide-arrow.svg} +72 -72
  21. package/src/components/ExtendedMultiselectCancel.vue +165 -165
  22. package/src/components/ExtendedMultiselectInput.vue +741 -741
  23. package/src/components/ExtendedMultiselectLoader.vue +182 -182
  24. package/src/components/ExtendedMultiselectMultiple.vue +399 -399
  25. package/src/components/ExtendedMultiselectOptions.vue +1190 -1190
  26. package/src/components/ExtendedMultiselectToggle.vue +271 -271
  27. package/src/components/Vue3ExtendedMultiselect.vue +2475 -1949
  28. package/src/composition/cancel.js +39 -39
  29. package/src/composition/click-outside.js +8 -8
  30. package/src/composition/debounce.js +8 -8
  31. package/src/composition/emitter.js +8 -8
  32. package/src/composition/image-path.js +16 -16
  33. package/src/composition/labels.js +41 -41
  34. package/src/composition/preselected-options.js +67 -67
  35. package/src/composition/search-value.js +33 -33
  36. package/src/composition/sizes.js +44 -44
  37. package/src/composition/toggle.js +31 -31
  38. package/src/sets/sets.js +99 -99
  39. package/src/styles/animations.css +18 -18
  40. package/src/styles/main.css +460 -460
  41. package/src/styles/variables.css +51 -51
  42. package/src/tools/Debounce.js +25 -25
  43. package/src/tools/LocalEmitter.js +31 -31
  44. package/src/tools/instance.js +2 -2
  45. package/tests/unit/events.spec.js +149 -149
  46. package/tests/unit/props.spec.js +1154 -1155
  47. package/tests/unit/tools.spec.js +55 -53
  48. package/tests/utils/mount.js +37 -37
  49. package/tests/utils/utils.js +24 -24
  50. package/typings/vue3-extended-multiselect.d.ts +43 -43
package/.browserslistrc CHANGED
@@ -1,3 +1,3 @@
1
- > 1%
2
- last 2 versions
1
+ > 1%
2
+ last 2 versions
3
3
  not dead
package/.eslintrc.js CHANGED
@@ -1,35 +1,36 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- node: true,
5
- },
6
- extends: [
7
- "plugin:vue/vue3-essential",
8
- "eslint:recommended"
9
- ],
10
- parserOptions: {
11
- parser: "babel-eslint",
12
- sourceType: "module",
13
- ecmaVersion: "13",
14
- ecmaFeatures: {
15
- modules: true
16
- },
17
- },
18
- rules: {
19
- "no-console": "off",
20
- "no-debugger": "off",
21
- "no-unused-vars": "off",
22
- "no-undef": "off"
23
- },
24
- overrides: [
25
- {
26
- files: [
27
- "**/__tests__/*.{j,t}s?(x)",
28
- "**/tests/unit/**/*.spec.{j,t}s?(x)"
29
- ],
30
- env: {
31
- jest: true,
32
- }
33
- }
34
- ]
1
+ module.exports = {
2
+ root: true,
3
+ requireConfigFile: false,
4
+ env: {
5
+ node: true,
6
+ },
7
+ extends: [
8
+ "plugin:vue/vue3-essential",
9
+ "eslint:recommended"
10
+ ],
11
+ parserOptions: {
12
+ parser: "babel-eslint",
13
+ sourceType: "module",
14
+ ecmaVersion: "13",
15
+ ecmaFeatures: {
16
+ modules: true
17
+ },
18
+ },
19
+ rules: {
20
+ "no-console": "off",
21
+ "no-debugger": "off",
22
+ "no-unused-vars": "off",
23
+ "no-undef": "off"
24
+ },
25
+ overrides: [
26
+ {
27
+ files: [
28
+ "**/__tests__/*.{j,t}s?(x)",
29
+ "**/tests/unit/**/*.spec.{j,t}s?(x)"
30
+ ],
31
+ env: {
32
+ jest: true,
33
+ }
34
+ }
35
+ ]
35
36
  }
@@ -1,41 +1,41 @@
1
- # This workflow will run tests using node and then publish a package to GitHub Packages when changes were pushed
2
- # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
-
4
- name: publish
5
-
6
- on:
7
- push:
8
- branches:
9
- - master
10
-
11
- jobs:
12
- tests-checkout:
13
- runs-on: ubuntu-latest
14
- steps:
15
- - name: checkout
16
- uses: actions/checkout@v3
17
- - name: node
18
- uses: actions/setup-node@v3
19
- with:
20
- node-version: 16
21
- registry-url: https://registry.npmjs.org/
22
- - name: install
23
- run: npm install
24
- - name: tests
25
- run: npm run test:unit
26
-
27
- publish-npm:
28
- needs: tests-checkout
29
- runs-on: ubuntu-latest
30
- steps:
31
- - name: checkout
32
- uses: actions/checkout@v3
33
- - name: node
34
- uses: actions/setup-node@v3
35
- with:
36
- node-version: 16
37
- registry-url: https://registry.npmjs.org/
38
- - name: publish
39
- run: npm publish --access public
40
- env:
41
- NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
1
+ # This workflow will run tests using node and then publish a package to GitHub Packages when changes were pushed
2
+ # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+ name: publish
5
+
6
+ on:
7
+ push:
8
+ branches:
9
+ - master
10
+
11
+ jobs:
12
+ tests-checkout:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: checkout
16
+ uses: actions/checkout@v3
17
+ - name: node
18
+ uses: actions/setup-node@v3
19
+ with:
20
+ node-version: 16
21
+ registry-url: https://registry.npmjs.org/
22
+ - name: install
23
+ run: npm install
24
+ - name: tests
25
+ run: npm run test:unit
26
+
27
+ publish-npm:
28
+ needs: tests-checkout
29
+ runs-on: ubuntu-latest
30
+ steps:
31
+ - name: checkout
32
+ uses: actions/checkout@v3
33
+ - name: node
34
+ uses: actions/setup-node@v3
35
+ with:
36
+ node-version: 16
37
+ registry-url: https://registry.npmjs.org/
38
+ - name: publish
39
+ run: npm publish --access public
40
+ env:
41
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}