keystone_ui 0.105.0 → 0.106.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f4c062cbbb2c775b3126a0539dcfc9ed3725e57b427d42a0edbdcf562e6ef70
4
- data.tar.gz: 2e09404f37c080fb4722735324b7e118d371aa2aa2ff33d00659ddc496320227
3
+ metadata.gz: cfb077126af852866bf6e1574bb34c82663b439336f3d74caf69ff10a7502498
4
+ data.tar.gz: 246f71aab3805d94747e1ca7e212f74bcf5f24c1e8b31e0edd9b6472497bb509
5
5
  SHA512:
6
- metadata.gz: 4a473e0f397789dd9361242b29d8c4a3fdf99fce948dd6924866e65f297b748fa2d5496103c0ba41e104cf3438e3e3e571c5ac1e48df645dc83495a263695b84
7
- data.tar.gz: 8c6540d2184e373bc794be672a1970b9a737759d5b17d976e0ab2856bf5c5daef733f11ca39423ece6576802cfe285e5f7439f31a397bec6ace443a21b8e3bea
6
+ metadata.gz: 317b165856f48ac0df3a55f67e21f22ee5fb14b0a22ddefee880978e01173119a71efcaa7c7a9528afa801a1533b2e644b94c1ae2338ddd39a22d5137ebe3856
7
+ data.tar.gz: 7621203b169d49357d10ab93ae66e0dc905a824c1e19e9ca409c1dfdfd13a6c7a824a697b5d3324a87cfb00e0d456b1de6551b9d15f62a67a22599f11479f18c
@@ -7,6 +7,7 @@ export default class extends Controller {
7
7
  connect() {
8
8
  this.secondsLeft = Math.max(this.secondsValue - this.elapsedValue, 0)
9
9
  this.endReached = !this.requireEndValue
10
+ this.buttonTarget.setAttribute("aria-describedby", this.statusTarget.id)
10
11
  if (this.secondsLeft > 0) this.timer = setInterval(() => this.tick(), 1000)
11
12
  this.attachEndReport()
12
13
  if (this.requireEndValue) this.watchEnd()
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KeystoneUi
4
- VERSION = "0.105.0"
4
+ VERSION = "0.106.0"
5
5
  end
@@ -821,7 +821,8 @@ two exceptions: `ui_page`'s `padding:` treats any value other than `:none` as
821
821
  its `summary` slot with the header, and the rest of the block is the body.
822
822
  - `ui_reading_hold(seconds: 0, elapsed: 0, require_end: false, waiting:, end_waiting:, ready:, field_prefix: "reading")`
823
823
  takes a block yielding the component. Fill its `action` slot with the
824
- button, given `**hold.button_options`, and the rest of the block is the
824
+ button, given `**hold.button_options` or, for a `ui_button`,
825
+ `data: { reading_hold_target: "button" }`, and the rest of the block is the
825
826
  content. The button's form sends `<field_prefix>[end_reached]` and
826
827
  `<field_prefix>[end_in_view_on_load]`, and the app checks the time and the
827
828
  end again on its server.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keystone_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.105.0
4
+ version: 0.106.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Schneider