selectic 1.3.9 → 3.0.1
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/README.md +4 -5
- package/dist/selectic.common.js +653 -591
- package/dist/selectic.esm.js +611 -550
- package/doc/domProperties.md +3 -1
- package/package.json +45 -41
- package/src/ExtendedList.tsx +14 -13
- package/src/Filter.tsx +18 -19
- package/src/List.tsx +13 -13
- package/src/MainInput.tsx +26 -27
- package/src/Store.tsx +396 -289
- package/src/css/selectic.css +7 -0
- package/src/index.tsx +194 -135
- package/test/Selectic/Selectic_props.spec.js +29 -10
- package/test/Store/Store_creation.spec.js +395 -438
- package/test/Store/Store_props.spec.js +119 -159
- package/test/Store/Store_state.spec.js +9 -13
- package/test/Store/changeGroups.spec.js +4 -6
- package/test/Store/changeTexts.spec.js +28 -30
- package/test/Store/clearCache.spec.js +24 -8
- package/test/Store/commit.spec.js +222 -98
- package/test/Store/getItem.spec.js +30 -38
- package/test/Store/getItems.spec.js +33 -43
- package/test/Store/selectItem.spec.js +4 -4
- package/test/Store/toggleSelectAll.spec.js +50 -52
- package/test/tools.js +4 -2
- package/tsconfig.json +5 -0
- package/types/ExtendedList.d.ts +6 -6
- package/types/Filter.d.ts +5 -5
- package/types/List.d.ts +33 -9
- package/types/MainInput.d.ts +5 -5
- package/types/Store.d.ts +166 -41
- package/types/index.d.ts +41 -21
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Selectic
|
|
2
2
|
|
|
3
|
-
> VueJS
|
|
3
|
+
> VueJS 3.X + Typescript + JSX + Select
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
## Introduction
|
|
@@ -55,7 +55,7 @@ There are very few dependencies and code stays very small (~90kB).
|
|
|
55
55
|
* List of items (either string array or object array).
|
|
56
56
|
* Can load dynamically list from a server and the list can be paginate (with a
|
|
57
57
|
cache system to avoid reloading previous requests).
|
|
58
|
-
* Slots: options may be added from Vue template (by writing explicit `<option>` or `<optgroup>`) in a reactive way.
|
|
58
|
+
* Slots: options may be added from Vue template (by writing explicit `<option>` or `<optgroup>`) in a reactive way _(currently disabled in 3.0.0)_.
|
|
59
59
|
* Multi-sources: Possibility to combine options from different sources (static, dynamic or slots) or to use the other as fallback (if the list is empty).
|
|
60
60
|
* Supports basic Select properties like `multiple`, `disabled`, `title`
|
|
61
61
|
* Supports group element (equivalent of optGroup), even for dynamic list.
|
|
@@ -64,7 +64,7 @@ There are very few dependencies and code stays very small (~90kB).
|
|
|
64
64
|
* Possibility to search for any string in options.
|
|
65
65
|
* Scroll bar always indicates the size of the list (even for dynamic list),
|
|
66
66
|
next pages to fetch are already computed the size of the list.
|
|
67
|
-
* Performance
|
|
67
|
+
* Performance optimization for list containing large number of items.
|
|
68
68
|
* Emits `input`, `change`, `open`, and `close` events.
|
|
69
69
|
* Supports a reverse selection system (for very long list where only some
|
|
70
70
|
elements are not selected).
|
|
@@ -73,7 +73,7 @@ There are very few dependencies and code stays very small (~90kB).
|
|
|
73
73
|
* Options to auto-disable the component when there is no options or only one
|
|
74
74
|
mandatory option.
|
|
75
75
|
* Handle selection overflow either by displaying a tag "+x more" either by adding several lines and show all selected options.
|
|
76
|
-
* Possibility to open the component
|
|
76
|
+
* Possibility to open the component programmatically.
|
|
77
77
|
* CSS styles can be easily changed to fit your theme.
|
|
78
78
|
* Strong typing: all Typescript types are provided.
|
|
79
79
|
|
|
@@ -94,4 +94,3 @@ Run unitary tests:
|
|
|
94
94
|
```console
|
|
95
95
|
$ npm run test
|
|
96
96
|
```
|
|
97
|
-
|