proscenium 0.15.0.beta.5-x86_64-linux → 0.15.0.beta.6-x86_64-linux

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: b32b5cbadeca029ce04a376125a924b059d388b60e90835b9a8e6d7a152a9c72
4
- data.tar.gz: ff4a5b0ca38e8b028313f1a4bfc6fc214a11f2bf3cd6a49f89125d15ba26190f
3
+ metadata.gz: 0b4d428fbf68baaf6031e7813f622929337a1c620fba5f8b27685feb024999ef
4
+ data.tar.gz: 2c1608e82bdf642496e150b5873d897f98c71469ae83a51e1704e07a4e2215cb
5
5
  SHA512:
6
- metadata.gz: 3b900744ef723e3cb4d6d7c83a242d8fd8635d72fdcd7b297df131db407def41f934641125c230bc4feeab3a8694710d6300804558812bd8374dc1e4fb93618a
7
- data.tar.gz: b24280e853b5d57051af8f681d3b4b7923902dcb45226451fa8e01663c3025dc94987c534ddc740a08936a46a6a3ac14935ebbf08fefe2c732431c08e37cffce
6
+ metadata.gz: 6a847f4fdb0c7d31a04ed4bdf9b0ce557f6d842971e4ffe599bbebc41c89e8be6261f048078d9c896c340dbedbae629152cbe00e04c94e87c56c412ecb979fcd
7
+ data.tar.gz: 3c094ab074aef75e13d35298262bd2aa84da94aa9a21f1decf08b333018cfd4d247b51ec2feab7d72a0d2db91a5f0b22e41834986735ee80b0cdc6ab7774aa02
Binary file
@@ -1,16 +1,23 @@
1
1
  export default class DataConfirm {
2
- onSubmit = event => {
3
- if (!event.target.matches('[data-turbo=true]') && 'confirm' in event.submitter.dataset) {
4
- const v = event.submitter.dataset.confirm
2
+ onSubmit = (event) => {
3
+ if (
4
+ !event.target.matches("[data-turbo=true]") &&
5
+ event.submitter &&
6
+ "confirm" in event.submitter.dataset
7
+ ) {
8
+ const v = event.submitter.dataset.confirm;
5
9
 
6
- if (v !== 'false' && !confirm(v === 'true' || v === '' ? 'Are you sure?' : v)) {
7
- event.preventDefault()
8
- event.stopPropagation()
9
- event.stopImmediatePropagation()
10
- return false
10
+ if (
11
+ v !== "false" &&
12
+ !confirm(v === "true" || v === "" ? "Are you sure?" : v)
13
+ ) {
14
+ event.preventDefault();
15
+ event.stopPropagation();
16
+ event.stopImmediatePropagation();
17
+ return false;
11
18
  }
12
19
  }
13
20
 
14
- return true
15
- }
21
+ return true;
22
+ };
16
23
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.15.0.beta.5'
4
+ VERSION = '0.15.0.beta.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proscenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0.beta.5
4
+ version: 0.15.0.beta.6
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-15 00:00:00.000000000 Z
11
+ date: 2024-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -217,11 +217,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
217
217
  version: 2.7.0
218
218
  required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - ">="
220
+ - - ">"
221
221
  - !ruby/object:Gem::Version
222
- version: '0'
222
+ version: 1.3.1
223
223
  requirements: []
224
- rubygems_version: 3.5.7
224
+ rubygems_version: 3.4.19
225
225
  signing_key:
226
226
  specification_version: 4
227
227
  summary: The engine powering your Rails frontend