css-zero 0.0.94 → 0.0.95

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: 421e49460a3f5afe3b7ba8f87faa35d1e8a44050f5b0fd8696cd1b175a415d2d
4
- data.tar.gz: a6240eac2e50923e843a354fe607d1e02f135a797fae05c5030cdb9f3c961db5
3
+ metadata.gz: 7c56f270130722e9912c5271b2700f89b19f1debe15c19a2c2394c9bba4d169c
4
+ data.tar.gz: '0803ceaa8816e61105de7e64b9c31df4063c1b7defde89fffb3162052dd1a5db'
5
5
  SHA512:
6
- metadata.gz: a86bd1229145b84313451d9997b887ae0b9c5d60bc143e73b891113d22f3521c26945a410b3a713cf9dc6ac0c109bb13bd50c12183ca28c9417ae44027b25ff8
7
- data.tar.gz: fa092a46a4ab911f999c0a115323150752a783e1914a00fe6cdbed53710f5849b4396d632fa2a8dc1a996cb91522a053f3e7a0177e560f72934f6b5550ab0945
6
+ metadata.gz: 0c2d8bf42bb152ae84264e48a190734f9d06d9cc065cb22432c1f0a9c48256d207b06859c6947f820e2c0979443af5e8b71ea0c9746dbd5c9ee08b04ee5ff63f
7
+ data.tar.gz: 0baceaccc306e73770beb3a8bfaff1f2564ef9a3e7b1688e5060654886883ba235f4fb93a2327b869177139ed86ba7203da07fb72e9195a00df07fb8cc86bb4a
@@ -1,3 +1,3 @@
1
1
  module CssZero
2
- VERSION = "0.0.94"
2
+ VERSION = "0.0.95"
3
3
  end
@@ -3,6 +3,10 @@ import { Controller } from "@hotwired/stimulus"
3
3
  export default class extends Controller {
4
4
  static targets = [ "menu" ]
5
5
 
6
+ show() {
7
+ this.menuTarget.show()
8
+ }
9
+
6
10
  showModal() {
7
11
  this.menuTarget.showModal()
8
12
  }
@@ -24,13 +24,21 @@ export default class extends Controller {
24
24
  }
25
25
 
26
26
  hide() {
27
- clearTimeout(this.#showTimer); this.menuTarget.hidePopover()
27
+ this.menuTarget.hidePopover()
28
+ }
29
+
30
+ toggle() {
31
+ this.menuTarget.togglePopover()
28
32
  }
29
33
 
30
34
  showLater() {
31
35
  this.#showTimer = setTimeout(() => this.show(), 700)
32
36
  }
33
37
 
38
+ hideClear() {
39
+ clearTimeout(this.#showTimer); this.hide();
40
+ }
41
+
34
42
  orient() {
35
43
  computePosition(this.buttonTarget, this.menuTarget, this.#options).then(({x, y}) => {
36
44
  this.menuTarget.style.insetInlineStart = `${x}px`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: css-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.94
4
+ version: 0.0.95
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lázaro Nixon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-20 00:00:00.000000000 Z
11
+ date: 2025-01-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: lazaronixon@hotmail.com