css-zero 0.0.88 → 0.0.89

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: 6f20c3843535ad4d32cab0c21e7811348fb80b10912bbcbe473529087025c992
4
- data.tar.gz: 313245a13b9bcbb3be95d251aa9e9abed429193dba4e34973a49d58b45fd8c20
3
+ metadata.gz: 446ea1574ed6c57c78aa0e0527a18f0bc35b82d4fc49414a4baaa17891c796be
4
+ data.tar.gz: 83d6dfd23f2d33251e5eea2adef2023e2046b4e0df546f81175140bc5661a783
5
5
  SHA512:
6
- metadata.gz: b2feb534627b74ef9179992852b27f92c051d27215dd715d0c4bccd5292a1b1c3a13374e365fc834d9ad8b038fa8545a5a2532aa8aae9a3ebfef7322ea014576
7
- data.tar.gz: 621c3f0c6988b6336afe125eab72198d97a1d7911b2174e190b51cdcf5de763a400074857f877447f7e28d15f8ab7a6906c9e799ffa684ab5033ba6b2b762101
6
+ metadata.gz: a1a1368e3330606c44a7c73b52e4c4b0cf6dad249974bafbd985c9a0713ddce1d78a4dd60196885b2a9e78d849dda3ad06686d17b04a26166cb1e753fdad60d6
7
+ data.tar.gz: 85e68dee76bfe6fd90103a204c453e292a35b0c4c7c2996511d6d4bb90c60a29f806d3f6a0e102afc10d0522c7f0c6355dddc79808d2d5548c65b629dddac5cb
@@ -1,3 +1,3 @@
1
1
  module CssZero
2
- VERSION = "0.0.88"
2
+ VERSION = "0.0.89"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  import { Controller } from "@hotwired/stimulus"
2
2
  import { get } from "https://esm.sh/@rails/request.js@0.0.11?standalone"
3
- import TomSelect from "https://esm.sh/tom-select@2.4.1?standalone"
3
+ import TomSelect from "https://esm.sh/tom-select@2.4.1/base?standalone"
4
4
 
5
5
  export default class extends Controller {
6
6
  static values = { url: String, optionCreate: { type: String, default: "Add" }, noResults: { type: String, default: "No results found" } }
@@ -1,50 +1,12 @@
1
1
  import { Controller } from "@hotwired/stimulus"
2
- import Inputmask from "https://esm.sh/inputmask@5.0.9?standalone"
2
+ import { MaskInput } from "https://esm.sh/maska@3.0.4?standalone"
3
3
 
4
4
  export default class extends Controller {
5
- static values = {
6
- mask: String,
7
- alias: String,
8
- groupSeparator: { type: String, default: "" },
9
- radixPoint: { type: String, default: "." },
10
- digits: { type: String, default: "*" },
11
- digitsOptional: { type: Boolean, default: true },
12
- inputFormat: { type: String, default: "mm/dd/yyyy HH:MM" },
13
- outputFormat: { type: String, default: "yyyy-mm-dd HH:MM" }
14
- }
15
-
16
5
  connect() {
17
- if (this.hasMaskValue) {
18
- Inputmask({ mask: this.maskValue }).mask(this.element)
19
- } else if (this.aliasValue == "numeric") {
20
- Inputmask(this.#numericOptions).mask(this.element)
21
- } else if (this.aliasValue == "datetime") {
22
- Inputmask(this.#datetimeOptions).mask(this.element)
23
- }
6
+ this.mask = new MaskInput(this.element)
24
7
  }
25
8
 
26
9
  disconnect() {
27
- Inputmask.remove(this.element)
28
- }
29
-
30
- get #numericOptions() {
31
- return {
32
- alias: "numeric",
33
- unmaskAsNumber: true,
34
- removeMaskOnSubmit: true,
35
- groupSeparator: this.groupSeparatorValue,
36
- radixPoint: this.radixPointValue,
37
- digits: this.digitsValue,
38
- digitsOptional: this.digitsOptionalValue
39
- }
40
- }
41
-
42
- get #datetimeOptions() {
43
- return {
44
- alias: "datetime",
45
- removeMaskOnSubmit: true,
46
- inputFormat: this.inputFormatValue,
47
- outputFormat: this.outputFormatValue
48
- }
10
+ this.mask.destroy()
49
11
  }
50
12
  }
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.88
4
+ version: 0.0.89
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-13 00:00:00.000000000 Z
11
+ date: 2025-01-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: lazaronixon@hotmail.com