pg_rails 7.0.8.pre.alpha.66 → 7.0.8.pre.alpha.67

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22e075226a1a3f478fb957532cf0a66735c0939bbc28d90ea8460efd97834b04
4
- data.tar.gz: 663f0f7daca3e65246799a307347d6da6f41a4359d44f69a2dbd4946e74cbfee
3
+ metadata.gz: b10c0027abbd150b13c0151f1c00fc808867db2507c392ae1553584ccc54c7fa
4
+ data.tar.gz: c839f6004a12b70d8c28e19719185eb9a883290ee53f1b2da159138f9fff5021
5
5
  SHA512:
6
- metadata.gz: e49655fe8d4c9ef567248726306857dafed3c77904f2ca618db39893d65000216b123501733159a417e7b90aee26f5a290de7462337f2506ad6d8526ad421c37
7
- data.tar.gz: 58be8026d80ad0e6c16c357649847e62beb4ecf1432c974d57c12d1118b0dc063c884dfb7c47afd124905ac60dfb3a8270ce3bb1b64f54c1111ede038c41d335
6
+ metadata.gz: 2046f277cc5103994b1c5f4d260fced6db73cf6ba8a46f03e9807aac59cbe535004fcbefeac65c6823ea0a71e756f1aa266870776a840fabe50b7678715b2ac1
7
+ data.tar.gz: d3efc68090305c1214135747e7fa9dabe9a8478c4dc654c24a6be14d58130e296a575400468688168c96a96c09c749cec2cbd238db7217670e58276d16d58b83
@@ -0,0 +1,11 @@
1
+ import { Controller } from '@hotwired/stimulus'
2
+
3
+ // Connects to data-controller="clear-timeout"
4
+ export default class extends Controller {
5
+ connect () {
6
+ const timeoutId = parseInt(this.element.dataset.timeoutId)
7
+ clearTimeout(timeoutId)
8
+ console.log(`clearedTimeout: ${timeoutId}`)
9
+ this.element.remove()
10
+ }
11
+ }
@@ -4,8 +4,10 @@ import NavbarController from './navbar_controller'
4
4
  import NestedController from './nested_controller'
5
5
  import PgFormController from './pg_form_controller'
6
6
  import FadeinOnloadController from './fadein_onload_controller'
7
+ import ClearTimeoutController from './clear_timeout_controller'
7
8
 
8
9
  application.register('navbar', NavbarController)
9
10
  application.register('nested', NestedController)
10
11
  application.register('pg_form', PgFormController)
11
12
  application.register('fadein_onload', FadeinOnloadController)
13
+ application.register('clear-timeout', ClearTimeoutController)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.0.8-alpha.66'
4
+ VERSION = '7.0.8-alpha.67'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.8.pre.alpha.66
4
+ version: 7.0.8.pre.alpha.67
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-11 00:00:00.000000000 Z
11
+ date: 2024-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -1054,6 +1054,7 @@ files:
1054
1054
  - pg_layout/app/javascript/config/cable_ready.js
1055
1055
  - pg_layout/app/javascript/config/index.js
1056
1056
  - pg_layout/app/javascript/controllers/application.js
1057
+ - pg_layout/app/javascript/controllers/clear_timeout_controller.js
1057
1058
  - pg_layout/app/javascript/controllers/fadein_onload_controller.js
1058
1059
  - pg_layout/app/javascript/controllers/index.js
1059
1060
  - pg_layout/app/javascript/controllers/navbar_controller.js