satis 2.1.43 → 2.1.45

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a8a26c42fe9f267d151e3df316582602288d2b525a366586ac238d024f5d5b7
4
- data.tar.gz: 9db7df21c303ad3cc24f01e1da4d76d468e757f726cf728fe259eb442a1dfb73
3
+ metadata.gz: c9887c635607425b3eb1f3c82cfd62cd14f0b8c965d9e25f5d404c6f09bd913f
4
+ data.tar.gz: 332aac305272d7a73f214f228da9323d4caa37a6974f09f1893bf08f508ebce6
5
5
  SHA512:
6
- metadata.gz: b3a8ae824428cd8b6e89d81bbfef48f5d7ddce0c8219aaaf5ec81b9e97d95aae3755bde5df03ef9a56a5ba34bcc078e93a5938e4a32f2d723b7a83cc6d8eaef5
7
- data.tar.gz: 6d7084d9b9767ea52795fc2e0b028ef38d940bc981bf4bdc0a0c7770e526597e55adafdbd52873ab8e3370573f5bd481c23b02b2532a601d74648fe8c02e72ae
6
+ metadata.gz: c98f0419f5ba08fd90dedec2a70d7c9d99bfd1adb21f0e74c265daec0a04f5f3b772382d9c3514d407fc8a83e424c8f29190fbdd70575731d0806cbc4ee3dc7b
7
+ data.tar.gz: 439725849621f51105fe085bc2625cf57f7d21ad8ef580b19c7d101c6f7423c400db3c35538e8714d060b77dec7ad5d7552d1bf65998086594af4144f2cfcb3e
@@ -12,7 +12,7 @@ export default class TabsComponentController extends ApplicationController {
12
12
 
13
13
  let firstErrorIndex
14
14
  this.tabTargets.forEach((tab, index) => {
15
- let hasErrors = this.contentTargets[index].querySelectorAll(".is-invalid")
15
+ let hasErrors = this.contentTargets[index].querySelectorAll(".is-invalid,.invalid-feedback")
16
16
  if (hasErrors.length > 0) {
17
17
  if (!firstErrorIndex) {
18
18
  firstErrorIndex = index
@@ -30,12 +30,16 @@ export default class extends ApplicationController {
30
30
 
31
31
  connect() {
32
32
  this.boundUpdate = this.update.bind(this)
33
- this.inputTarget.addEventListener("change", this.boundUpdate)
33
+ this.inputTargets.forEach((input) => {
34
+ input.addEventListener("change", this.boundUpdate)
35
+ })
34
36
  this.update()
35
37
  }
36
38
 
37
39
  disconnect() {
38
- this.inputTarget.removeEventListener("change", this.boundUpdate)
40
+ this.inputTargets.forEach((input) => {
41
+ input.removeEventListener("change", this.boundUpdate)
42
+ })
39
43
  }
40
44
 
41
45
  update(event) {
@@ -83,7 +87,9 @@ export default class extends ApplicationController {
83
87
  }
84
88
 
85
89
  get currentValue() {
86
- if (this.inputTarget.type == "checkbox") {
90
+ if (this.inputTargets.length >= 1 && this.inputTargets[0].type == "radio") {
91
+ return this.inputTargets.find((input) => input.checked)?.value
92
+ } else if (this.inputTarget.type == "checkbox") {
87
93
  return this.inputTarget.checked ? "true" : "false"
88
94
  } else if (this.inputTarget.tagName == "SELECT" && this.data.get("attr")) {
89
95
  let option = this.inputTarget.options[this.inputTarget.selectedIndex]
data/lib/satis/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Satis
2
- VERSION = "2.1.43"
2
+ VERSION = "2.1.45"
3
3
  end
data/yarn.lock CHANGED
@@ -385,11 +385,6 @@ jiti@^1.19.1:
385
385
  resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.21.0.tgz#7c97f8fe045724e136a397f7340475244156105d"
386
386
  integrity sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==
387
387
 
388
- leaflet@^1.9.4:
389
- version "1.9.4"
390
- resolved "https://registry.yarnpkg.com/leaflet/-/leaflet-1.9.4.tgz#23fae724e282fa25745aff82ca4d394748db7d8d"
391
- integrity sha512-nxS1ynzJOmOlHp+iL3FyWqK89GtNL8U8rvlMOsQdTTssxZwCXh8N2NB3GDQOL+YR3XnWyZAxwQixURb+FA74PA==
392
-
393
388
  lilconfig@^2.1.0:
394
389
  version "2.1.0"
395
390
  resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52"
@@ -662,8 +657,16 @@ source-map@^0.6.1:
662
657
  resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
663
658
  integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
664
659
 
665
- "string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0:
666
- name string-width-cjs
660
+ "string-width-cjs@npm:string-width@^4.2.0":
661
+ version "4.2.3"
662
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
663
+ integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
664
+ dependencies:
665
+ emoji-regex "^8.0.0"
666
+ is-fullwidth-code-point "^3.0.0"
667
+ strip-ansi "^6.0.1"
668
+
669
+ string-width@^4.1.0:
667
670
  version "4.2.3"
668
671
  resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
669
672
  integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -681,8 +684,14 @@ string-width@^5.0.1, string-width@^5.1.2:
681
684
  emoji-regex "^9.2.2"
682
685
  strip-ansi "^7.0.1"
683
686
 
684
- "strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
685
- name strip-ansi-cjs
687
+ "strip-ansi-cjs@npm:strip-ansi@^6.0.1":
688
+ version "6.0.1"
689
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
690
+ integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
691
+ dependencies:
692
+ ansi-regex "^5.0.1"
693
+
694
+ strip-ansi@^6.0.0, strip-ansi@^6.0.1:
686
695
  version "6.0.1"
687
696
  resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
688
697
  integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -775,11 +784,6 @@ to-regex-range@^5.0.1:
775
784
  dependencies:
776
785
  is-number "^7.0.0"
777
786
 
778
- trix@^2.0.10:
779
- version "2.0.10"
780
- resolved "https://registry.yarnpkg.com/trix/-/trix-2.0.10.tgz#43f1ff7a94c42f708bd2bad3a2783147c0583698"
781
- integrity sha512-a24w8rNVL+g9nDDdiDZwQVQ9AEWiXAmk9r0ZbwimczJi/xlaM+m0d6upAi0vysDNu0HsiYDFS1/VrR7HbX0Aig==
782
-
783
787
  ts-interface-checker@^0.1.9:
784
788
  version "0.1.13"
785
789
  resolved "https://registry.yarnpkg.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz#784fd3d679722bc103b1b4b8030bcddb5db2a699"
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.1.43
4
+ version: 2.1.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom de Grunt
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-21 00:00:00.000000000 Z
11
+ date: 2025-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: browser
@@ -965,7 +965,7 @@ homepage: https://github.com/entdec/satis
965
965
  licenses:
966
966
  - MIT
967
967
  metadata: {}
968
- post_install_message:
968
+ post_install_message:
969
969
  rdoc_options: []
970
970
  require_paths:
971
971
  - lib
@@ -981,7 +981,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
981
981
  version: '0'
982
982
  requirements: []
983
983
  rubygems_version: 3.4.10
984
- signing_key:
984
+ signing_key:
985
985
  specification_version: 4
986
986
  summary: Satis allow you to focus on features, let us do the UI/UX. It'll give you
987
987
  satisfaction.