vue3-extended-multiselect 2.0.1 → 2.0.3
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.
- package/LICENSE +21 -21
- package/README.md +270 -270
- package/dist/Vue3ExtendedMultiselect.cjs.js +4163 -4163
- package/dist/Vue3ExtendedMultiselect.esm.js +4163 -4163
- package/dist/assets/images/base-arrow.svg +70 -70
- package/dist/assets/images/cancel.svg +34 -34
- package/dist/assets/images/circle-arrow.svg +7 -7
- package/dist/assets/images/double-arrow.svg +39 -39
- package/dist/assets/images/inner-arrow.svg +8 -8
- package/dist/assets/images/loader.svg +5 -5
- package/dist/assets/images/triangle-arrow.svg +72 -72
- package/dist/assets/images/triangle-circle-arrow.svg +38 -38
- package/dist/assets/images/wide-arrow.svg +72 -72
- package/dist/types/index.d.ts +43 -43
- package/package.json +61 -59
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
-
viewBox="0 0 490 490" style="enable-background:new 0 0 490 490;" xml:space="preserve">
|
|
5
|
-
<g>
|
|
6
|
-
<g>
|
|
7
|
-
<g>
|
|
8
|
-
<polygon points="0,249.888 245.004,8.139 490,249.888 490,481.861 245.004,239.71 0,481.861 "/>
|
|
9
|
-
</g>
|
|
10
|
-
</g>
|
|
11
|
-
<g>
|
|
12
|
-
</g>
|
|
13
|
-
<g>
|
|
14
|
-
</g>
|
|
15
|
-
<g>
|
|
16
|
-
</g>
|
|
17
|
-
<g>
|
|
18
|
-
</g>
|
|
19
|
-
<g>
|
|
20
|
-
</g>
|
|
21
|
-
<g>
|
|
22
|
-
</g>
|
|
23
|
-
<g>
|
|
24
|
-
</g>
|
|
25
|
-
<g>
|
|
26
|
-
</g>
|
|
27
|
-
<g>
|
|
28
|
-
</g>
|
|
29
|
-
<g>
|
|
30
|
-
</g>
|
|
31
|
-
<g>
|
|
32
|
-
</g>
|
|
33
|
-
<g>
|
|
34
|
-
</g>
|
|
35
|
-
<g>
|
|
36
|
-
</g>
|
|
37
|
-
<g>
|
|
38
|
-
</g>
|
|
39
|
-
<g>
|
|
40
|
-
</g>
|
|
41
|
-
</g>
|
|
42
|
-
<g>
|
|
43
|
-
</g>
|
|
44
|
-
<g>
|
|
45
|
-
</g>
|
|
46
|
-
<g>
|
|
47
|
-
</g>
|
|
48
|
-
<g>
|
|
49
|
-
</g>
|
|
50
|
-
<g>
|
|
51
|
-
</g>
|
|
52
|
-
<g>
|
|
53
|
-
</g>
|
|
54
|
-
<g>
|
|
55
|
-
</g>
|
|
56
|
-
<g>
|
|
57
|
-
</g>
|
|
58
|
-
<g>
|
|
59
|
-
</g>
|
|
60
|
-
<g>
|
|
61
|
-
</g>
|
|
62
|
-
<g>
|
|
63
|
-
</g>
|
|
64
|
-
<g>
|
|
65
|
-
</g>
|
|
66
|
-
<g>
|
|
67
|
-
</g>
|
|
68
|
-
<g>
|
|
69
|
-
</g>
|
|
70
|
-
<g>
|
|
71
|
-
</g>
|
|
72
|
-
</svg>
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 490 490" style="enable-background:new 0 0 490 490;" xml:space="preserve">
|
|
5
|
+
<g>
|
|
6
|
+
<g>
|
|
7
|
+
<g>
|
|
8
|
+
<polygon points="0,249.888 245.004,8.139 490,249.888 490,481.861 245.004,239.71 0,481.861 "/>
|
|
9
|
+
</g>
|
|
10
|
+
</g>
|
|
11
|
+
<g>
|
|
12
|
+
</g>
|
|
13
|
+
<g>
|
|
14
|
+
</g>
|
|
15
|
+
<g>
|
|
16
|
+
</g>
|
|
17
|
+
<g>
|
|
18
|
+
</g>
|
|
19
|
+
<g>
|
|
20
|
+
</g>
|
|
21
|
+
<g>
|
|
22
|
+
</g>
|
|
23
|
+
<g>
|
|
24
|
+
</g>
|
|
25
|
+
<g>
|
|
26
|
+
</g>
|
|
27
|
+
<g>
|
|
28
|
+
</g>
|
|
29
|
+
<g>
|
|
30
|
+
</g>
|
|
31
|
+
<g>
|
|
32
|
+
</g>
|
|
33
|
+
<g>
|
|
34
|
+
</g>
|
|
35
|
+
<g>
|
|
36
|
+
</g>
|
|
37
|
+
<g>
|
|
38
|
+
</g>
|
|
39
|
+
<g>
|
|
40
|
+
</g>
|
|
41
|
+
</g>
|
|
42
|
+
<g>
|
|
43
|
+
</g>
|
|
44
|
+
<g>
|
|
45
|
+
</g>
|
|
46
|
+
<g>
|
|
47
|
+
</g>
|
|
48
|
+
<g>
|
|
49
|
+
</g>
|
|
50
|
+
<g>
|
|
51
|
+
</g>
|
|
52
|
+
<g>
|
|
53
|
+
</g>
|
|
54
|
+
<g>
|
|
55
|
+
</g>
|
|
56
|
+
<g>
|
|
57
|
+
</g>
|
|
58
|
+
<g>
|
|
59
|
+
</g>
|
|
60
|
+
<g>
|
|
61
|
+
</g>
|
|
62
|
+
<g>
|
|
63
|
+
</g>
|
|
64
|
+
<g>
|
|
65
|
+
</g>
|
|
66
|
+
<g>
|
|
67
|
+
</g>
|
|
68
|
+
<g>
|
|
69
|
+
</g>
|
|
70
|
+
<g>
|
|
71
|
+
</g>
|
|
72
|
+
</svg>
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* General type for any kind of option
|
|
3
|
-
*/
|
|
4
|
-
type UnionOptionType = string | number | boolean | object | Array<unknown> | Function | null | undefined;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Method types provided by slot-scope
|
|
8
|
-
*/
|
|
9
|
-
type Cancel = () => void;
|
|
10
|
-
type CreateCustomOptionLabel = (option: UnionOptionType) => null | string;
|
|
11
|
-
type Increase = Cancel;
|
|
12
|
-
type DeselectBlock = (index: number) => void;
|
|
13
|
-
type OptionCreateLabel = CreateCustomOptionLabel;
|
|
14
|
-
type ToggleOptionsList = (keyboardEvent?: KeyboardEvent) => void;
|
|
15
|
-
|
|
16
|
-
interface InputIdInPayload {
|
|
17
|
-
inputId?: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface Limit extends InputIdInPayload {
|
|
21
|
-
limit: number;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface OptionsList extends InputIdInPayload {
|
|
25
|
-
options: UnionOptionType[];
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
interface PatternChanged extends InputIdInPayload {
|
|
29
|
-
pattern: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface SingleOption extends InputIdInPayload {
|
|
33
|
-
option: UnionOptionType;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Event types
|
|
38
|
-
*/
|
|
39
|
-
type CleanEvent = UnionOptionType[] | OptionsList;
|
|
40
|
-
type CloseEvent = CleanEvent;
|
|
41
|
-
type IncreaseEvent = number | Limit;
|
|
42
|
-
type OptionCreatedEvent = UnionOptionType | SingleOption;
|
|
43
|
-
type PatternChangedEvent = string | PatternChanged;
|
|
1
|
+
/**
|
|
2
|
+
* General type for any kind of option
|
|
3
|
+
*/
|
|
4
|
+
type UnionOptionType = string | number | boolean | object | Array<unknown> | Function | null | undefined;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Method types provided by slot-scope
|
|
8
|
+
*/
|
|
9
|
+
type Cancel = () => void;
|
|
10
|
+
type CreateCustomOptionLabel = (option: UnionOptionType) => null | string;
|
|
11
|
+
type Increase = Cancel;
|
|
12
|
+
type DeselectBlock = (index: number) => void;
|
|
13
|
+
type OptionCreateLabel = CreateCustomOptionLabel;
|
|
14
|
+
type ToggleOptionsList = (keyboardEvent?: KeyboardEvent) => void;
|
|
15
|
+
|
|
16
|
+
interface InputIdInPayload {
|
|
17
|
+
inputId?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface Limit extends InputIdInPayload {
|
|
21
|
+
limit: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface OptionsList extends InputIdInPayload {
|
|
25
|
+
options: UnionOptionType[];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface PatternChanged extends InputIdInPayload {
|
|
29
|
+
pattern: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface SingleOption extends InputIdInPayload {
|
|
33
|
+
option: UnionOptionType;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Event types
|
|
38
|
+
*/
|
|
39
|
+
type CleanEvent = UnionOptionType[] | OptionsList;
|
|
40
|
+
type CloseEvent = CleanEvent;
|
|
41
|
+
type IncreaseEvent = number | Limit;
|
|
42
|
+
type OptionCreatedEvent = UnionOptionType | SingleOption;
|
|
43
|
+
type PatternChangedEvent = string | PatternChanged;
|
|
44
44
|
type SelectEvent = OptionCreatedEvent;
|
|
45
45
|
|
|
46
46
|
export type { Cancel, CleanEvent, CloseEvent, CreateCustomOptionLabel, DeselectBlock, Increase, IncreaseEvent, OptionCreateLabel, OptionCreatedEvent, PatternChangedEvent, SelectEvent, ToggleOptionsList, UnionOptionType };
|
package/package.json
CHANGED
|
@@ -1,60 +1,62 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vue3-extended-multiselect",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "Extended multiselect component for applications based on Vue 3 framework",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"multiselect",
|
|
7
|
-
"select",
|
|
8
|
-
"extended",
|
|
9
|
-
"vue",
|
|
10
|
-
"vue3"
|
|
11
|
-
],
|
|
12
|
-
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
],
|
|
15
|
-
"unpkg": "dist/VueExtendedMultiselect.esm.js",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
39
|
-
"@vue
|
|
40
|
-
"@vue/cli-plugin-
|
|
41
|
-
"@vue/cli-plugin-
|
|
42
|
-
"@vue/cli-
|
|
43
|
-
"@vue/
|
|
44
|
-
"@vue/
|
|
45
|
-
"@vue/
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"babel-
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"rollup
|
|
56
|
-
"rollup-plugin-
|
|
57
|
-
"rollup-plugin-
|
|
58
|
-
"
|
|
59
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "vue3-extended-multiselect",
|
|
3
|
+
"version": "2.0.3",
|
|
4
|
+
"description": "Extended multiselect component for applications based on Vue 3 framework",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"multiselect",
|
|
7
|
+
"select",
|
|
8
|
+
"extended",
|
|
9
|
+
"vue",
|
|
10
|
+
"vue3"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"unpkg": "dist/VueExtendedMultiselect.esm.js",
|
|
16
|
+
"main": "dist/Vue3ExtendedMultiselect.cjs.js",
|
|
17
|
+
"module": "dist/Vue3ExtendedMultiselect.esm.js",
|
|
18
|
+
"typings": "typings/vue3-extended-multiselect.d.ts",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/danyaridiger/vue3-extended-multiselect.git"
|
|
22
|
+
},
|
|
23
|
+
"author": "Ridiger Daniil Dmitrievich <extendedmultiselect@yandex.ru>",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"scripts": {
|
|
26
|
+
"start": "vue-cli-service serve",
|
|
27
|
+
"test:unit": "vue-cli-service test:unit",
|
|
28
|
+
"lint": "vue-cli-service lint",
|
|
29
|
+
"build": "rollup -c"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"core-js": "^3.35.0",
|
|
33
|
+
"extended-click-outside": "^1.1.1",
|
|
34
|
+
"vue": "^3.4.13"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@babel/plugin-transform-runtime": "^7.23.7",
|
|
38
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
39
|
+
"@testing-library/vue": "^8.0.1",
|
|
40
|
+
"@vue/cli-plugin-babel": "~5.0.8",
|
|
41
|
+
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
42
|
+
"@vue/cli-plugin-unit-jest": "~5.0.8",
|
|
43
|
+
"@vue/cli-plugin-vuex": "~5.0.8",
|
|
44
|
+
"@vue/cli-service": "~5.0.8",
|
|
45
|
+
"@vue/compiler-sfc": "^3.4.13",
|
|
46
|
+
"@vue/test-utils": "^2.4.3",
|
|
47
|
+
"@vue/vue3-jest": "^29.2.6",
|
|
48
|
+
"babel-eslint": "^10.1.0",
|
|
49
|
+
"babel-jest": "^29.7.0",
|
|
50
|
+
"babel-plugin-transform-import-meta": "^2.2.1",
|
|
51
|
+
"eslint": "^8.56.0",
|
|
52
|
+
"eslint-plugin-vue": "^9.20.1",
|
|
53
|
+
"postcss": "^8.4.33",
|
|
54
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
55
|
+
"rollup": "^4.9.5",
|
|
56
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
57
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
58
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
59
|
+
"rollup-plugin-vue": "^6.0.0",
|
|
60
|
+
"typescript": "~5.3.3"
|
|
61
|
+
}
|
|
60
62
|
}
|