css-zero 0.0.54 → 0.0.55
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/css_zero/version.rb +1 -1
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/accordion.css +2 -2
- data/lib/generators/css_zero/add/templates/app/assets/stylesheets/zdatepicker.css +4 -2
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/autosave_controller.js +2 -2
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/combobox_controller.js +8 -4
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/datepicker_controller.js +8 -17
- data/lib/generators/css_zero/add/templates/app/javascript/controllers/inputmask_controller.js +8 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17f6ec5f98d948bcf736e90b9227945332d6aa2824e0cdd724410cddcc5517eb
|
4
|
+
data.tar.gz: 64970cb50034a169941ce79442c15fb921c8f32b95562b98dd74b9ded15cf08b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd30ee50be1fbd90e53f83227b688d3e27092ca6a093cfcf07d9d5c102a8a310e1c225ff119b0d683041ef6948c7b734e19d05876c3031f44b1f4c0b8d3aee3a
|
7
|
+
data.tar.gz: 4fcdc76132b119c96fcf9e613eb709083cf4da4aa2bf20c7eaab44984887743855c4ff1b73f59bd77fb8697da60a893dfacf728b271933a6b2ea79aacdf979b1
|
data/lib/css_zero/version.rb
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
details {
|
3
3
|
border-block-end-width: var(--border);
|
4
4
|
interpolate-size: allow-keywords;
|
5
|
+
overflow: hidden;
|
5
6
|
|
6
7
|
&::details-content {
|
7
8
|
block-size: 0;
|
8
|
-
overflow-y: clip;
|
9
9
|
transition-behavior: allow-discrete;
|
10
10
|
transition-duration: var(--time-150);
|
11
|
-
transition-property: content-visibility
|
11
|
+
transition-property: content-visibility block-size;
|
12
12
|
}
|
13
13
|
|
14
14
|
&[open]::details-content {
|
@@ -8,7 +8,7 @@
|
|
8
8
|
border-radius: var(--rounded-md);
|
9
9
|
box-shadow: var(--shadow-md);
|
10
10
|
font-size: var(--text-sm);
|
11
|
-
inline-size:
|
11
|
+
inline-size: 285px;
|
12
12
|
padding: var(--size-3);
|
13
13
|
|
14
14
|
:is(.dayContainer, .flatpickr-days) {
|
@@ -122,7 +122,8 @@
|
|
122
122
|
color: var(--color-text);
|
123
123
|
display: inline-flex;
|
124
124
|
height: var(--size-9);
|
125
|
-
|
125
|
+
margin-block-start: 1px;
|
126
|
+
max-width: var(--size-9);
|
126
127
|
|
127
128
|
&:is(.inRange) {
|
128
129
|
border-radius: 0;
|
@@ -130,6 +131,7 @@
|
|
130
131
|
|
131
132
|
&:is(.today, .inRange, :hover, :focus) {
|
132
133
|
background: var(--color-secondary);
|
134
|
+
color: var(--color-text);
|
133
135
|
}
|
134
136
|
|
135
137
|
&:is(
|
data/lib/generators/css_zero/add/templates/app/javascript/controllers/autosave_controller.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Controller } from "@hotwired/stimulus"
|
2
|
-
import { FetchRequest } from "
|
2
|
+
import { FetchRequest } from "https://cdn.skypack.dev/@rails/request.js@0.0.11"
|
3
3
|
|
4
4
|
const AUTOSAVE_INTERVAL = 3000
|
5
5
|
|
@@ -61,4 +61,4 @@ async function submitForm(form) {
|
|
61
61
|
})
|
62
62
|
|
63
63
|
return await request.perform()
|
64
|
-
}
|
64
|
+
}
|
data/lib/generators/css_zero/add/templates/app/javascript/controllers/combobox_controller.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Controller } from "@hotwired/stimulus"
|
2
|
-
import { get } from "
|
3
|
-
import TomSelect from "tom-select"
|
2
|
+
import { get } from "https://cdn.skypack.dev/@rails/request.js@0.0.11"
|
3
|
+
import TomSelect from "https://cdn.skypack.dev/tom-select@2.3.1"
|
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" } }
|
@@ -28,11 +28,11 @@ export default class extends Controller {
|
|
28
28
|
}
|
29
29
|
|
30
30
|
get #inputSettings() {
|
31
|
-
return { render: this.#render, load: this
|
31
|
+
return { render: this.#render, load: this.#loadSetting, persist: false, createOnBlur: true, create: true }
|
32
32
|
}
|
33
33
|
|
34
34
|
get #selectSettings() {
|
35
|
-
return { render: this.#render, load: this
|
35
|
+
return { render: this.#render, load: this.#loadSetting }
|
36
36
|
}
|
37
37
|
|
38
38
|
get #render() {
|
@@ -45,4 +45,8 @@ export default class extends Controller {
|
|
45
45
|
}
|
46
46
|
}
|
47
47
|
}
|
48
|
+
|
49
|
+
get #loadSetting() {
|
50
|
+
return this.hasUrlValue && this.load
|
51
|
+
}
|
48
52
|
}
|
data/lib/generators/css_zero/add/templates/app/javascript/controllers/datepicker_controller.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Controller } from "@hotwired/stimulus"
|
2
|
-
import flatpickr from "flatpickr"
|
2
|
+
import flatpickr from "https://cdn.skypack.dev/flatpickr@4.6.13"
|
3
3
|
|
4
4
|
export default class extends Controller {
|
5
5
|
static targets = [ "details" ]
|
@@ -30,23 +30,14 @@ export default class extends Controller {
|
|
30
30
|
}
|
31
31
|
|
32
32
|
get #dateTimeOptions() {
|
33
|
-
return {
|
34
|
-
altInput: true,
|
35
|
-
altFormat: this.dateTimeFormatValue,
|
36
|
-
dateFormat: "Y-m-d H:i",
|
37
|
-
disable: this.disableValue,
|
38
|
-
mode: this.modeValue,
|
39
|
-
enableTime: true
|
40
|
-
}
|
33
|
+
return { ...this.#baseOptions, altFormat: this.dateTimeFormatValue, dateFormat: "Y-m-d H:i", enableTime: true }
|
41
34
|
}
|
42
35
|
|
43
36
|
get #basicOptions() {
|
44
|
-
return {
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
mode: this.modeValue
|
50
|
-
}
|
37
|
+
return { ...this.#baseOptions, altFormat: this.dateFormatValue, dateFormat: "Y-m-d" }
|
38
|
+
}
|
39
|
+
|
40
|
+
get #baseOptions() {
|
41
|
+
return { altInput: true, disable: this.disableValue, mode: this.modeValue }
|
51
42
|
}
|
52
|
-
}
|
43
|
+
}
|
data/lib/generators/css_zero/add/templates/app/javascript/controllers/inputmask_controller.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Controller } from "@hotwired/stimulus"
|
2
|
-
import Inputmask from "inputmask"
|
2
|
+
import Inputmask from "https://cdn.skypack.dev/inputmask@5.0.9"
|
3
3
|
|
4
4
|
export default class extends Controller {
|
5
5
|
static values = {
|
@@ -15,14 +15,18 @@ export default class extends Controller {
|
|
15
15
|
|
16
16
|
connect() {
|
17
17
|
if (this.hasMaskValue) {
|
18
|
-
Inputmask
|
18
|
+
Inputmask({ mask: this.maskValue }).mask(this.element)
|
19
19
|
} else if (this.aliasValue == "numeric") {
|
20
|
-
Inputmask
|
20
|
+
Inputmask(this.#numericOptions).mask(this.element)
|
21
21
|
} else if (this.aliasValue == "datetime") {
|
22
|
-
Inputmask
|
22
|
+
Inputmask(this.#datetimeOptions).mask(this.element)
|
23
23
|
}
|
24
24
|
}
|
25
25
|
|
26
|
+
disconnect() {
|
27
|
+
Inputmask.remove(this.element)
|
28
|
+
}
|
29
|
+
|
26
30
|
get #numericOptions() {
|
27
31
|
return {
|
28
32
|
alias: "numeric",
|
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.
|
4
|
+
version: 0.0.55
|
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: 2024-10-
|
11
|
+
date: 2024-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: lazaronixon@hotmail.com
|