card-mod-bar_and_box 0.15.0 → 0.15.1.1

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: 19e480ee40d8bf0986ac447c8af7f1ed04105988d0ea135c164ea166e8668cc3
4
- data.tar.gz: db52363442b89ed1f751c53fd3d4e017ce4d565858907306e84fa2d7623a2479
3
+ metadata.gz: 696c319da1df586be4b003d76c8ca62910b56ae4f584f2e9f47dea74f42d1693
4
+ data.tar.gz: 69487f2d6c1f5492ca5ef7f7d232eb39b9afcfa7523599dbb978bf32b3a44753
5
5
  SHA512:
6
- metadata.gz: 1327eec75b2547829073c1b76d9f8044ff1b45031cb91cbe6246f7d1fb2c033f95ddab328dff4d2c4857260f8e1205898b77d94d8de4994420d10ee78841ff64
7
- data.tar.gz: 397701174596444305af9841a2b909b9a2b396b8b2ab01af41447083e1b90fdad8ea7af23a9cdce5d83dbc28d3d57e0b701e80407901f0418f134ddf4ba969e3
6
+ metadata.gz: 8b5099a2338fa04c6f681a246c8b25538c3c434ff190ab7f6c83982668e5d83ec690da753caea70b379895958efcb760650fe220ec6a31c351c6ed572d4ad813
7
+ data.tar.gz: 2b2675a5a3c555c537fda3b9929ee426f85adeaf919197732c260ea1b065589d67799980d95471b0af8026cc5a8dd799876645962acb21af67302cc9f772f5be
@@ -6,17 +6,15 @@ $(window).ready ->
6
6
  cl = $(this)
7
7
  if cl.data("skip") == "on"
8
8
  cl.data "skip", null
9
+ else if openInNewTab event
10
+ window.open cardLinkPath(cl), "_tab_" + Math.floor(Math.random() * 1000)
9
11
  else if cl.closest("._card-link-modal")[0]
10
12
  cl.find("._modal-page-link").trigger "click"
11
13
  else
12
- url = decko.path cl.data("cardLinkName")
13
- if openInNewTab event
14
- window.open url, "_tab_" + Math.floor(Math.random() * 1000);
15
- else
16
- window.location = url
14
+ window.location = cardLinkPath(cl)
17
15
 
18
16
  openInNewTab = (event) -> event.metaKey
19
-
17
+ cardLinkPath = (cl) -> decko.path(cl.data("cardLinkUrl") ||cl.data("cardLinkName"))
20
18
 
21
19
  decko.slot.ready (slot)->
22
20
  # note: by using slot ready, we can make sure this event is triggered early
@@ -14,6 +14,16 @@ $bar_stripe_color: $dark !default;
14
14
  border: 3px solid $primary !important;
15
15
  }
16
16
 
17
+ .bar-accordion {
18
+ .accordion-body {
19
+ padding: 0;
20
+ .bar {
21
+ border-left: 1px solid $border-color !important;
22
+ }
23
+ }
24
+ }
25
+
26
+
17
27
  .bar {
18
28
  border-left: 3px solid $bar_stripe_color !important;
19
29
 
@@ -46,6 +56,7 @@ $bar_stripe_color: $dark !default;
46
56
  }
47
57
 
48
58
  .bar-menu {
59
+ min-width: 3em;
49
60
  width: 3em;
50
61
  display: flex;
51
62
  align-items: center;
@@ -56,6 +56,7 @@
56
56
  max-width: 100%;
57
57
  max-height: 100%;
58
58
  height: auto;
59
+ display: inline !important;
59
60
  }
60
61
  }
61
62
 
@@ -1,4 +1,4 @@
1
1
  // bar_and_box.js.coffee
2
- (function(){$(window).ready(function(){return $(document).on("click","._card-link",function(){var n;return"on"===(n=$(this)).data("skip")?n.data("skip",null):n.closest("._card-link-modal")[0]?n.find("._modal-page-link").trigger("click"):window.location=decko.path(n.data("cardLinkName"))})}),decko.slot.ready(function(n){return n.find("._card-link a, ._card-link ._card-link-clickable").on("click",function(n){var a;return(a=$(this)).hasClass("_over-card-link")||a.closest("._over-card-link")[0]?a.closest("._card-link").data("skip","on"):n.preventDefault()})})}).call(this);
2
+ (function(){var n,a;$(window).ready(function(){return $(document).on("click","._card-link",function(i){var r;return"on"===(r=$(this)).data("skip")?r.data("skip",null):a(i)?window.open(n(r),"_tab_"+Math.floor(1e3*Math.random())):r.closest("._card-link-modal")[0]?r.find("._modal-page-link").trigger("click"):window.location=n(r)})}),a=function(n){return n.metaKey},n=function(n){return decko.path(n.data("cardLinkUrl")||n.data("cardLinkName"))},decko.slot.ready(function(n){return n.find("._card-link a, ._card-link ._card-link-clickable").on("click",function(n){var a;return(a=$(this)).hasClass("_over-card-link")||a.closest("._over-card-link")[0]?a.closest("._card-link").data("skip","on"):n.preventDefault()})})}).call(this);
3
3
  // click_select.js.coffee
4
4
  (function(){$("body").on("click","._click-multiselect-editor ._select-item",function(e){return $(this).closest("._select-item").toggleClass("selected"),e.stopPropagation()}),$("body").on("click","._click-select-editor ._select-item",function(e){return $(this).closest("._click-select-editor").find(".selected").removeClass("selected"),$(this).closest("._select-item").addClass("selected"),e.stopPropagation()})}).call(this);
@@ -1,4 +1,4 @@
1
- .media{media_opts}
1
+ .media{ media_opts }
2
2
  .media-left
3
3
  = nest image_card, view: :boxed, size: size
4
4
  .media-body{ class: "media-body-#{size}" }
@@ -2,7 +2,7 @@
2
2
  .bar-menu-button.btn.dropdown-toggle{ "aria-expanded": "false",
3
3
  "aria-haspopup": "true",
4
4
  "data-bs-toggle": "dropdown" }
5
- %i.fa.fa-ellipsis-h
5
+ = icon_tag :more
6
6
  .bar-menu-list.dropdown-menu{ "aria-labelledby": ".bar-menu-button" }
7
7
  - bar_menu_items.each do |item|
8
8
  .dropdown-item
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-bar_and_box
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-01-04 00:00:00.000000000 Z
13
+ date: 2023-03-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.105.0
21
+ version: 1.105.1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.105.0
28
+ version: 1.105.1
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: card-mod-style
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.15.0
35
+ version: 0.15.1.1
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.15.0
42
+ version: 0.15.1.1
43
43
  description: ''
44
44
  email:
45
45
  - info@decko.org