coveragebook_components 0.8.6 → 0.8.7

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: c2355b0d5f6f2de3e816d804188e4b799a35f96b4a68f071b7049bf1766d6ddd
4
- data.tar.gz: c0386b7d1915074c91ac5bc4d1c4527277fb6313fa11d00a973e27783ad11cd0
3
+ metadata.gz: 5c3ad96d602a3b4104c189f2f56a4ef72ebf716bfce5c815e7d0f0dd6b08cca9
4
+ data.tar.gz: 06c0f900d4e8f6f8d4ecf2d99c6fe8af4989715dc2d35b2bc88d267581d7ca58
5
5
  SHA512:
6
- metadata.gz: 598fd2d0f022230a26d9159c06a630f80a1be1ac8ba33a19fe2e0e2bdc2356046954b7940d2a98c23acd865b38945d4a3f3bccb86c33f4032dcd23b3e5d1cee8
7
- data.tar.gz: b8a33f8a2779d06e8b6befa1e82590daa2570246e0fee02bec50b63936248dc77ea5a0b46ce53eb61413413e65b582ebdbac55744b9a878a4228509f0d087bae
6
+ metadata.gz: '083df20dea9d53f4fc9f2680f42e3d01732748e8a9d0cb624ca365258c6840ad6c987d0774a1507cb1f39d73192fc393ac76a9d51b7c94e2e10e18821ed87dbd'
7
+ data.tar.gz: '09111d51fa399f5a9d7afb02a2ce19d4161b078969b76f495a85dd1670a1627095049913b49be4f62678d02902d6b44e769431d97cf6c14a153a8668b8e6b5e7'
@@ -14044,7 +14044,7 @@
14044
14044
  var package_default = {
14045
14045
  name: "coveragebook-components",
14046
14046
  type: "module",
14047
- version: "0.8.6",
14047
+ version: "0.8.7",
14048
14048
  main: "index.js",
14049
14049
  repository: "git@github.com:coveragebook/coco.git",
14050
14050
  author: "Mark Perkins <mark@coveragebook.com>",
@@ -25057,7 +25057,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
25057
25057
  }
25058
25058
  },
25059
25059
  root: {
25060
- "x-options": '["dismissable", "singleLine"]',
25060
+ "x-options": '["dismissable", "singleLine", "dismissAfterAction"]',
25061
25061
  ":class": "{'force-multi-line': forceMultiLine}"
25062
25062
  }
25063
25063
  };
@@ -40,7 +40,7 @@
40
40
  <% if action? %>
41
41
  <div class="alert-action"
42
42
  x-ref="action"
43
- @click="dismiss"
43
+ @click="if ($options.dismissAfterAction) dismiss()"
44
44
  data-role="action">
45
45
  <%= coco_button(
46
46
  *@action_data[:args],
@@ -54,7 +54,7 @@
54
54
  <% if secondary_action? %>
55
55
  <div class="alert-action"
56
56
  x-ref="secondaryAction"
57
- @click="dismiss"
57
+ @click="if ($options.dismissAfterAction) dismiss()"
58
58
  data-role="secondary-action">
59
59
  <%= coco_button(
60
60
  *@secondary_action_data[:args],
@@ -42,7 +42,7 @@ export default CocoComponent("appAlert", () => {
42
42
  },
43
43
 
44
44
  root: {
45
- "x-options": '["dismissable", "singleLine"]',
45
+ "x-options": '["dismissable", "singleLine", "dismissAfterAction"]',
46
46
  ":class": "{'force-multi-line': forceMultiLine}",
47
47
  },
48
48
  };
@@ -19,6 +19,7 @@ module Coco
19
19
  }.freeze
20
20
 
21
21
  accepts_option :dismissable, from: [true, false], default: false
22
+ accepts_option :dismiss_after_action, from: [true, false], default: true
22
23
  accepts_option :banner, from: [true, false], default: false
23
24
  accepts_option :theme, from: THEMES, default: "info"
24
25
  accepts_option :single_line, from: [true, false]
@@ -16,6 +16,7 @@ module Coco
16
16
  cloak: false,
17
17
  single_line: true,
18
18
  dismissable: dismissable?,
19
+ dismiss_after_action: false,
19
20
  condensed: true
20
21
  )
21
22
  end
data/lib/coco.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Coco
2
- VERSION = "0.8.6"
2
+ VERSION = "0.8.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coveragebook_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Perkins