css-zero 0.0.87 → 0.0.89

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: 9168f8d1372487bab5e744a8c000ec2cc3d4c9ed5feed65a9d781042f120e249
4
- data.tar.gz: bc5fb02ebbc7525025b1a5a4ab69b9a2ad41941d5233e2df018d710fce3fd352
3
+ metadata.gz: 446ea1574ed6c57c78aa0e0527a18f0bc35b82d4fc49414a4baaa17891c796be
4
+ data.tar.gz: 83d6dfd23f2d33251e5eea2adef2023e2046b4e0df546f81175140bc5661a783
5
5
  SHA512:
6
- metadata.gz: 3d26011763529941789b1b12e10b4e3e40988ab554fc6b9683df16bdf943caa4a0e2404c3303ac436b786ddaca139c52843f0bacb6aa16fa9ddc8d8ba1bd490a
7
- data.tar.gz: ce390f1eb3dc6af677044d60182926afad29c302cb2f2180ad2172bb31743edaaac166857e7f72a3f6be9b313918fc29424c67f5789e44e6c0c08152435c89f7
6
+ metadata.gz: a1a1368e3330606c44a7c73b52e4c4b0cf6dad249974bafbd985c9a0713ddce1d78a4dd60196885b2a9e78d849dda3ad06686d17b04a26166cb1e753fdad60d6
7
+ data.tar.gz: 85e68dee76bfe6fd90103a204c453e292a35b0c4c7c2996511d6d4bb90c60a29f806d3f6a0e102afc10d0522c7f0c6355dddc79808d2d5548c65b629dddac5cb
@@ -1,3 +1,3 @@
1
1
  module CssZero
2
- VERSION = "0.0.87"
2
+ VERSION = "0.0.89"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  import { Controller } from "@hotwired/stimulus"
2
- import { FetchRequest } from "https://cdn.jsdelivr.net/npm/@rails/request.js@0.0.11/+esm"
2
+ import { FetchRequest } from "https://esm.sh/@rails/request.js@0.0.11?standalone"
3
3
 
4
4
  const AUTOSAVE_INTERVAL = 3000
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { Controller } from "@hotwired/stimulus"
2
- import { Chart, registerables } from "https://cdn.jsdelivr.net/npm/chart.js@4.4.7/+esm"
2
+ import { Chart, registerables } from "https://esm.sh/chart.js@4.4.7?standalone"
3
3
 
4
4
  Chart.register(...registerables)
5
5
 
@@ -1,6 +1,6 @@
1
1
  import { Controller } from "@hotwired/stimulus"
2
- import { get } from "https://cdn.jsdelivr.net/npm/@rails/request.js@0.0.11/+esm"
3
- import TomSelect from "https://cdn.jsdelivr.net/npm/tom-select@2.4.1/+esm"
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/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,6 +1,6 @@
1
1
  import { Controller } from "@hotwired/stimulus"
2
- import debounce from "https://cdn.jsdelivr.net/npm/lodash.debounce@4.0.8/+esm"
3
- import Combobox from "https://cdn.jsdelivr.net/npm/@github/combobox-nav@3.0.1/+esm"
2
+ import debounce from "https://esm.sh/lodash.debounce@4.0.8?standalone"
3
+ import Combobox from "https://esm.sh/@github/combobox-nav@3.0.1?standalone"
4
4
 
5
5
  export default class extends Controller {
6
6
  static targets = [ "input", "list" ]
@@ -1,5 +1,5 @@
1
1
  import { Controller } from "@hotwired/stimulus"
2
- import debounce from "https://cdn.jsdelivr.net/npm/lodash.debounce@4.0.8/+esm"
2
+ import debounce from "https://esm.sh/lodash.debounce@4.0.8?standalone"
3
3
 
4
4
  export default class extends Controller {
5
5
  static targets = [ "input", "copyIcon", "successIcon" ]
@@ -1,5 +1,5 @@
1
1
  import { Controller } from "@hotwired/stimulus"
2
- import flatpickr from "https://cdn.jsdelivr.net/npm/flatpickr@4.6.13/+esm"
2
+ import flatpickr from "https://esm.sh/flatpickr@4.6.13?standalone"
3
3
 
4
4
  export default class extends Controller {
5
5
  static targets = [ "details" ]
@@ -1,50 +1,12 @@
1
1
  import { Controller } from "@hotwired/stimulus"
2
- import Inputmask from "https://cdn.jsdelivr.net/npm/inputmask@5.0.9/+esm"
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
  }
@@ -1,5 +1,5 @@
1
1
  import { Controller } from "@hotwired/stimulus"
2
- import { computePosition, flip, shift, offset, autoUpdate } from "https://cdn.jsdelivr.net/npm/@floating-ui/dom@1.6.13/+esm"
2
+ import { computePosition, flip, shift, offset, autoUpdate } from "https://esm.sh/@floating-ui/dom@1.6.13?standalone"
3
3
 
4
4
  export default class extends Controller {
5
5
  static targets = [ "button", "menu" ]
@@ -1,6 +1,6 @@
1
1
  import { Controller } from "@hotwired/stimulus"
2
- import { put } from "https://cdn.jsdelivr.net/npm/@rails/request.js@0.0.11/+esm"
3
- import Sortable from "https://cdn.jsdelivr.net/npm/sortablejs@1.15.6/+esm"
2
+ import { put } from "https://esm.sh/@rails/request.js@0.0.11?standalone"
3
+ import Sortable from "https://esm.sh/sortablejs@1.15.6?standalone"
4
4
 
5
5
  export default class extends Controller {
6
6
  static values = { url: String, group: String, handle: String }
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.87
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