coveragebook_components 0.9.0 → 0.9.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: 2c126a158589bb94cdda7e4e58f8c6fa2ed6ce62dcea3cf95c456f2a122f6de7
4
- data.tar.gz: e26eafa9eebf2ba48cfc173b94969aa0c17cc26e56c59dcea784e52c7930090c
3
+ metadata.gz: 201cc10a1c0aa8649d80c72ff1e37f7b73eb77785451cab30fc4b3f0bb666900
4
+ data.tar.gz: e67c3da496a5b3a55feaf4750cda66f20ca825fb92aa8e94d47c313be7236fbd
5
5
  SHA512:
6
- metadata.gz: f70d9ebd5f2be4a303cb41c10c92a0b12b6b3fa7fe7922892953bf5d4898d3d4c95338701d2a86adf653ae6d9cb8e206df8323899cc16cf1ee39255e54d9d888
7
- data.tar.gz: 5d3db88dfbdd0927c2293fb49c89234123cbe65a74a2cc0f3864590a8e9a3bf120c2a04c5b9691aa9bb11eadcabc6c5e4f06a584af92c1031657673477e94029
6
+ metadata.gz: 1acd500aded11cd641e5478b788e2c8911cf2aea0e19b5d418eb3d6bc469d8f5876a09ad90a691e204892cc947b2b02aefda51809eb66ca5a6771d2d424fb559
7
+ data.tar.gz: 4f2bafaf1a89da669543de3feab4e240c0a76d710d575a9322daf6257f9a78be61b3623ac5b9cf988c857eb75b0428e600efe5d77f04887cfc06af397000a5e4
@@ -3548,9 +3548,10 @@ select{
3548
3548
  width: -moz-fit-content;
3549
3549
  width: fit-content;
3550
3550
  border-radius: 44px;
3551
- opacity: 0;
3552
3551
  }
3553
- [data-coco][data-component="app-button-group"].button-group-ready{
3552
+ [data-coco][data-component="app-button-group"][data-collapsible="true"]{
3553
+ opacity: 0}
3554
+ [data-coco][data-component="app-button-group"][data-collapsible="true"].button-group-ready{
3554
3555
  opacity: 1}
3555
3556
  [data-coco][data-component="app-button-group"] .button-group-buttons{
3556
3557
  display: flex;
@@ -14044,7 +14044,7 @@
14044
14044
  var package_default = {
14045
14045
  name: "coveragebook-components",
14046
14046
  type: "module",
14047
- version: "0.9.0",
14047
+ version: "0.9.1",
14048
14048
  main: "index.js",
14049
14049
  repository: "git@github.com:coveragebook/coco.git",
14050
14050
  author: "Mark Perkins <mark@coveragebook.com>",
@@ -25109,13 +25109,15 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el);
25109
25109
  return this.$root.parentElement;
25110
25110
  },
25111
25111
  init() {
25112
- this.$nextTick(() => {
25113
- if (!this.collapsible)
25114
- return;
25112
+ if (this.collapsible) {
25113
+ this.$nextTick(() => {
25114
+ this.onResize();
25115
+ this.createSingletonTooltip();
25116
+ this.ready = true;
25117
+ });
25118
+ } else {
25115
25119
  this.ready = true;
25116
- this.onResize();
25117
- this.createSingletonTooltip();
25118
- });
25120
+ }
25119
25121
  this.$watch("collapsed", (value) => {
25120
25122
  this.buttons.forEach((button) => {
25121
25123
  button.isCollapsed = value;
@@ -2,10 +2,13 @@
2
2
  [data-coco][data-component="app-button-group"] {
3
3
  width: fit-content;
4
4
  border-radius: 44px;
5
- @apply opacity-0;
6
5
 
7
- &.button-group-ready {
8
- @apply opacity-100;
6
+ &[data-collapsible="true"] {
7
+ @apply opacity-0;
8
+
9
+ &.button-group-ready {
10
+ @apply opacity-100;
11
+ }
9
12
  }
10
13
 
11
14
  .button-group-buttons {
@@ -29,13 +29,15 @@ export default CocoComponent("appButtonGroup", () => {
29
29
  },
30
30
 
31
31
  init() {
32
- this.$nextTick(() => {
33
- if (!this.collapsible) return;
32
+ if (this.collapsible) {
33
+ this.$nextTick(() => {
34
+ this.onResize();
35
+ this.createSingletonTooltip();
36
+ this.ready = true;
37
+ });
38
+ } else {
34
39
  this.ready = true;
35
-
36
- this.onResize();
37
- this.createSingletonTooltip();
38
- });
40
+ }
39
41
 
40
42
  this.$watch("collapsed", (value) => {
41
43
  this.buttons.forEach((button) => {
data/lib/coco.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Coco
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
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.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Perkins