satis 2.2.0 → 2.3.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.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/app/assets/config/satis_manifest.js +0 -1
- data/app/components/satis/dropdown/component_controller.js +10 -14
- data/lib/satis/version.rb +1 -1
- metadata +2 -6
- data/app/assets/fontawesome/brands.js +0 -6
- data/app/assets/fontawesome/fontawesome.js +0 -6
- data/app/assets/fontawesome/regular.js +0 -6
- data/app/assets/fontawesome/solid.js +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7f45a02909e964bdabe71e07a24befe60acff498e89e92c3ed053e87809cf6b
|
4
|
+
data.tar.gz: 68ef0cb6049da0bf0888fb15ee66c330cb8b0c227f48d350baf56f69ff726ae7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c0f3259673f67d0c7fa473f28c2b3c717dc94d297a0541e4c8964638e2ddf468693a8e69171c590f39ed512d8461d8f201819f896e19392bad47d16029173cf
|
7
|
+
data.tar.gz: bed89434515a53c1c853d04bc9ead18aa6fc53be3b73d270e00110978cf8717da1dea8b9ebdf05079ef5d64455dfb3a6e442300643d1772ecb50bec106a859e2
|
data/README.md
CHANGED
@@ -5,11 +5,15 @@ We use:
|
|
5
5
|
|
6
6
|
- [TailwindCSS](https://tailwindcss.com)
|
7
7
|
- [TailwindUI](https://tailwindui.com)
|
8
|
-
- [FontAwesome
|
8
|
+
- [FontAwesome 7](https://fontawesome.com/v7.0/)
|
9
9
|
- [ViewComponent](https://viewcomponent.org)
|
10
10
|
- [HotWired](https://hotwired.dev)
|
11
11
|
- [BEM](https://cssguidelin.es/#bem-like-naming)
|
12
12
|
|
13
|
+
## Upgrade
|
14
|
+
|
15
|
+
* From 2.3.0 onwards, we will no longer ship Fontawesome free. It conflicts with Fontawesome Pro. You can add easily add the javascript files, you can download them from here: https://fontawesome.com/download. Use the files from the `js` folder.
|
16
|
+
|
13
17
|
## Installation
|
14
18
|
|
15
19
|
Your main app needs to have at least the following config/postcss.config.js:
|
@@ -20,14 +20,14 @@ export default class DropdownComponentController extends ApplicationController {
|
|
20
20
|
]
|
21
21
|
|
22
22
|
static values = {
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
23
|
+
chainTo: String,
|
24
|
+
freeText: Boolean,
|
25
|
+
needsExactMatch: Boolean,
|
26
|
+
pageSize: Number,
|
27
|
+
url: String,
|
28
|
+
urlParams: Object,
|
29
|
+
isMultiple: Boolean,
|
30
|
+
minSearchQueryLength: Number
|
31
31
|
}
|
32
32
|
|
33
33
|
connect() {
|
@@ -618,12 +618,8 @@ export default class DropdownComponentController extends ApplicationController {
|
|
618
618
|
let matches = []
|
619
619
|
this.itemTargets.forEach((item) => {
|
620
620
|
const text = item.getAttribute("data-satis-dropdown-item-text")
|
621
|
-
|
622
|
-
|
623
|
-
matched = searchValue.localeCompare(text, undefined, { sensitivity: "base" }) === 0
|
624
|
-
} else {
|
625
|
-
matched = searchValue.split(" ").every((term) => { return text?.toLowerCase().includes(term.toLowerCase()) })
|
626
|
-
}
|
621
|
+
const matched = this.needsExactMatchValue
|
622
|
+
? searchValue.localeCompare(text, undefined, { sensitivity: "base" }) === 0 : text?.toLowerCase().includes(searchValue.toLowerCase())
|
627
623
|
|
628
624
|
const isHidden = item.classList.contains("hidden")
|
629
625
|
if (!isHidden) {
|
data/lib/satis/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: satis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom de Grunt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: browser
|
@@ -196,10 +196,6 @@ files:
|
|
196
196
|
- Rakefile
|
197
197
|
- TODO.md
|
198
198
|
- app/assets/config/satis_manifest.js
|
199
|
-
- app/assets/fontawesome/brands.js
|
200
|
-
- app/assets/fontawesome/fontawesome.js
|
201
|
-
- app/assets/fontawesome/regular.js
|
202
|
-
- app/assets/fontawesome/solid.js
|
203
199
|
- app/assets/images/satis/.keep
|
204
200
|
- app/assets/images/satis/flags/1x1/ac.svg
|
205
201
|
- app/assets/images/satis/flags/1x1/ad.svg
|