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 +4 -4
- data/app/assets/build/coco/app.js +2 -2
- data/app/components/coco/app/elements/alert/alert.html.erb +2 -2
- data/app/components/coco/app/elements/alert/alert.js +1 -1
- data/app/components/coco/app/elements/alert/alert.rb +1 -0
- data/app/components/coco/app/elements/system_banner/system_banner.rb +1 -0
- data/lib/coco.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c3ad96d602a3b4104c189f2f56a4ef72ebf716bfce5c815e7d0f0dd6b08cca9
|
4
|
+
data.tar.gz: 06c0f900d4e8f6f8d4ecf2d99c6fe8af4989715dc2d35b2bc88d267581d7ca58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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],
|
@@ -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]
|
data/lib/coco.rb
CHANGED