bard-attachment_field 0.5.6 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81087a83b5826f9f496ec7e3de2a8e06ddf4f4020042ab09fab2f9266ddc9034
4
- data.tar.gz: ced1aae9518fbec16dd3f588217cad02e3eee964d135d0706917b85a46624d33
3
+ metadata.gz: '012936d871893ab9a4a5e630e81937115a339a28913a50dc017b30d628eb08ff'
4
+ data.tar.gz: 0da30b3c4a8c3dd7e6002cb244d633a17807feac33c0e18d10843d32ebcf11b4
5
5
  SHA512:
6
- metadata.gz: 03c6a1bd3681a43146ada1ab6afb6e9482ab59a847fb87b242457aeae8e95fbe99c4995f3f3a0fbe7f8e0ed3e6a9b8775e6ccf0a988b1c1972ea247b836410a6
7
- data.tar.gz: 0d2a288ef42ee0476cda23547b0319c59dc0cacb0d5002fd7d2af3dc3466e1f8f33476a935f8bcd0bf4e518524f481a26a994818d53723422d032a35b023e747
6
+ metadata.gz: a1f5949622f30d7a89d362398f623c37893b689764d87618250377f5010ee359a4274d3f501046929ef9d6304956c67a3cce2dea0ab51a5c1a9da0de78b07fca
7
+ data.tar.gz: 793c2bab2fe0530a31bec1a9d9a5a3c65e15df8003133f2d3950549ab2906c0a48cb0b6325f2558bd66d83c753c63125a16b2301991a2e464753bd641b702631
@@ -4939,8 +4939,13 @@ var e2 = class extends HTMLElement {
4939
4939
  stroke: var(--indeterminate-color);
4940
4940
  }
4941
4941
 
4942
- :host([error]) .progress-ring {
4942
+ /* The X of the error glyph; revealed by [error]. */
4943
+ .error-mark {
4944
+ display: none;
4945
+ fill: none;
4943
4946
  stroke: var(--error-color);
4947
+ stroke-width: var(--circular-thickness);
4948
+ stroke-linecap: round;
4944
4949
  }
4945
4950
 
4946
4951
  .label {
@@ -4973,7 +4978,13 @@ var e2 = class extends HTMLElement {
4973
4978
  0% { transform: rotate(-90deg); }
4974
4979
  100% { transform: rotate(270deg); }
4975
4980
  }
4976
- `)), n2)], this.shadowRoot.innerHTML = "circular" === r4 ? '\n <div class="circular">\n <svg class="ring" viewBox="0 0 100 100">\n <circle class="track" cx="50" cy="50" r="40"></circle>\n <circle class="progress-ring" cx="50" cy="50" r="40" pathLength="100"></circle>\n </svg>\n <span class="label"><slot></slot></span>\n </div>\n' : '\n <div class="bar"></div>\n <div class="text"><slot></slot></div>\n');
4981
+
4982
+ /* Error (circular): static full ring + X. Last so it beats the indeterminate rules. */
4983
+ :host([error]) .track { stroke: var(--error-color); }
4984
+ :host([error]) .progress-ring { display: none; }
4985
+ :host([error]) .ring { animation: none; }
4986
+ :host([error]) .error-mark { display: block; }
4987
+ `)), n2)], this.shadowRoot.innerHTML = "circular" === r4 ? '\n <div class="circular">\n <svg class="ring" viewBox="0 0 100 100">\n <circle class="track" cx="50" cy="50" r="40"></circle>\n <circle class="progress-ring" cx="50" cy="50" r="40" pathLength="100"></circle>\n <path class="error-mark" d="M37 37 L63 63 M63 37 L37 63"></path>\n </svg>\n <span class="label"><slot></slot></span>\n </div>\n' : '\n <div class="bar"></div>\n <div class="text"><slot></slot></div>\n');
4977
4988
  }
4978
4989
  };
4979
4990
  customElements.get("progress-bar") || customElements.define("progress-bar", e2);
Binary file
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@botandrose/file-drop": "^0.1.1",
37
- "@botandrose/progress-bar": "^0.4.1",
37
+ "@botandrose/progress-bar": "^0.5.0",
38
38
  "@rails/activestorage": "^8.1.0",
39
39
  "@rails/request.js": "0.0.13",
40
40
  "@stencil/core": "^4.43.2",
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bard
4
4
  module AttachmentField
5
- VERSION = "0.5.6"
5
+ VERSION = "0.5.7"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard-attachment_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-06-07 00:00:00.000000000 Z
11
+ date: 2026-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage