atome 0.5.6.7.6 → 0.5.6.7.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 +4 -4
- data/exe/atome +1 -1
- data/lib/atome/version.rb +1 -1
- data/lib/molecules/intuition/utillities.rb +16 -16
- data/vendor/assets/application/examples/list.rb +8 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6e4329c59786afac35818482577e658b217d9513b80c5a2c8c8e2dd1e5731b2
|
4
|
+
data.tar.gz: 351eca79586662976c1a72b856bc8159922dda7d67129c05f415751ef89cdd4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbe2eb923e190cca3e63f2da3809894224beb32283c3ba193ab9ab8f8a63bf3d6dd2cae3a765b41656937a42fe689a712b897d81e6b540c44bc071f60ca8eddc
|
7
|
+
data.tar.gz: ae513d0471b64bd53d26147da53040ee991b2367e071b50effbc999f93a6784192987b324e7e3214c86a4d285dda0927278c5597ab88d38d94d5c5caa3a388b2
|
data/exe/atome
CHANGED
@@ -599,7 +599,7 @@ if ARGV.include?('update')
|
|
599
599
|
if Dir.exist?("#{destination}/application") && !Dir.exist?("#{destination}/vendor")
|
600
600
|
# first we delete everything but application
|
601
601
|
|
602
|
-
files_to_treat = %w[server src-tauri src-wasm Guardfile Rakefile src/css src/js/atome src/js/molecules src/js/third_parties
|
602
|
+
files_to_treat = %w[server src-tauri src-wasm Guardfile Rakefile src/css src/js/atome src/js/molecules src/js/third_parties
|
603
603
|
src/favicon.ico src/index_wasm.html src/index_opal.html src/index_server.html src/index_server_wasm.html]
|
604
604
|
files_to_treat.each do |item|
|
605
605
|
item_path = File.join(destination, item)
|
data/lib/atome/version.rb
CHANGED
@@ -35,16 +35,11 @@ module Molecule
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def list(params)
|
38
|
+
styles_found = params.delete(:styles)
|
39
|
+
element = params.delete(:element)
|
40
|
+
listing = params.delete(:listing)
|
38
41
|
|
39
|
-
|
40
|
-
listing = params[:listing]
|
41
|
-
styles_found=params.delete(:styles)
|
42
|
-
element=params.delete(:element)
|
43
|
-
listing=params.delete(:listing)
|
44
|
-
# lets create the listing container
|
45
|
-
list = box({ attach: id , color: {alpha: 0}}.merge(params))
|
46
|
-
|
47
|
-
styles_found = styles_found ||= {
|
42
|
+
styles_found ||= {
|
48
43
|
width: 99,
|
49
44
|
height: 33,
|
50
45
|
margin: 6,
|
@@ -52,19 +47,24 @@ module Molecule
|
|
52
47
|
left: 0,
|
53
48
|
color: :yellowgreen
|
54
49
|
}
|
55
|
-
element
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
50
|
+
element ||= { width: 33,
|
51
|
+
height: 33,
|
52
|
+
left: :center,
|
53
|
+
top: :center,
|
54
|
+
color: :orange,
|
55
|
+
type: :text }
|
56
|
+
unless params[:width]
|
57
|
+
params[:width] = styles_found[:width]
|
58
|
+
end
|
62
59
|
unless element[:width]
|
63
60
|
element[:width] = styles_found[width]
|
64
61
|
end
|
65
62
|
margin = styles_found[:margin]
|
66
63
|
height_found = styles_found[:height]
|
67
64
|
renderer_found = renderers
|
65
|
+
# lets create the listing container
|
66
|
+
list = box({ attach: id, color: { alpha: 0 } }.merge(params))
|
67
|
+
# now the listing
|
68
68
|
listing.each_with_index do |data, index|
|
69
69
|
# let's create the container
|
70
70
|
new_atome = { renderers: renderer_found, attach: list.id }.merge(styles_found).merge({ type: :shape })
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
|
3
4
|
styles = {
|
4
5
|
width: 199,
|
5
6
|
height: 33,
|
@@ -15,7 +16,6 @@ element = { width: 33,
|
|
15
16
|
left: :center,
|
16
17
|
top: :center,
|
17
18
|
color: :black,
|
18
|
-
center: { x: 0, y: 0 },
|
19
19
|
type: :text }
|
20
20
|
|
21
21
|
listing = [
|
@@ -25,13 +25,13 @@ listing = [
|
|
25
25
|
{ data: :ho }
|
26
26
|
]
|
27
27
|
|
28
|
-
A.list({
|
28
|
+
list_1 = A.list({
|
29
29
|
styles: styles,
|
30
30
|
element: element,
|
31
31
|
listing: listing
|
32
32
|
})
|
33
33
|
|
34
|
-
|
34
|
+
# test2
|
35
35
|
|
36
36
|
styles = {
|
37
37
|
width: 199,
|
@@ -45,7 +45,9 @@ styles = {
|
|
45
45
|
element = { width: 25,
|
46
46
|
height: 25,
|
47
47
|
smooth: '100%',
|
48
|
-
center: { x: 0, y: 0 },
|
48
|
+
center: { x: 0, y: 0, dynamic: true },
|
49
|
+
# left: 10,
|
50
|
+
# top: :center,
|
49
51
|
color: :orange,
|
50
52
|
type: :shape }
|
51
53
|
|
@@ -65,5 +67,5 @@ list_2 = A.list({ left: 300,
|
|
65
67
|
listing: listing
|
66
68
|
})
|
67
69
|
wait 1 do
|
68
|
-
list_2.left(
|
69
|
-
end
|
70
|
+
list_2.left(list_1.width)
|
71
|
+
end
|