glimmer-dsl-web 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/README.md +475 -219
- data/VERSION +1 -1
- data/glimmer-dsl-web.gemspec +12 -5
- data/lib/glimmer/data_binding/element_binding.rb +3 -3
- data/lib/glimmer/dsl/web/bind_expression.rb +36 -0
- data/lib/glimmer/dsl/web/data_binding_expression.rb +30 -0
- data/lib/glimmer/dsl/web/dsl.rb +7 -0
- data/lib/glimmer/dsl/web/element_expression.rb +3 -21
- data/lib/glimmer/dsl/web/general_element_expression.rb +29 -0
- data/lib/glimmer/dsl/web/p_expression.rb +12 -0
- data/lib/glimmer/dsl/web/select_expression.rb +12 -0
- data/lib/glimmer/dsl/web/shine_data_binding_expression.rb +42 -0
- data/lib/glimmer/web/element_proxy.rb +31 -156
- data/lib/glimmer/web/event_proxy.rb +59 -0
- data/lib/glimmer/web/listener_proxy.rb +36 -14
- data/lib/glimmer-dsl-web/samples/hello/hello_button.rb +4 -69
- data/lib/glimmer-dsl-web/samples/hello/hello_data_binding.rb +166 -0
- data/lib/glimmer-dsl-web/samples/hello/hello_form.rb +102 -0
- data/lib/glimmer-dsl-web.rb +1 -7
- metadata +11 -23
- data/lib/glimmer/data_binding/observable_element.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d0e231339d0d3cd0a330fce53e852109df1b4b7b306194cff98e8e2eecbbd39
|
4
|
+
data.tar.gz: 384766d64c13a9724402021ea1ce47fae393bf66ccb4c56011a6e14e4c3fdefd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d127d5d4b7eed73f60940b8c669593fcace051c6eccd6a5e80bc9d759aedecec922ba2b701341b9fc043781d7d2e4d0e371cc967dd782f4c3ed228d7b68c748
|
7
|
+
data.tar.gz: 9bb14fe78d3d4d6b7709429132c7b00bedb12d1183adcead609f88545b199174e7dda788241e41db63732551650064d77ec8794d3360c9c08c4c3719397a02a7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.0.6
|
4
|
+
|
5
|
+
- Support attribute unidirectional/bidirectional data-binding
|
6
|
+
- Support `select` element (it was blocked by a built-in Ruby method)
|
7
|
+
- Handle case of `:parent` selector being invalid, defaulting to `body`.
|
8
|
+
- Remove pure-struct gem dependency as the latest Opal fixed the implementation of Struct
|
9
|
+
- New Hello, Data-Binding! Sample: `require 'glimmer-dsl-web/samples/hello/hello_data_binding'`
|
10
|
+
|
11
|
+
## 0.0.5
|
12
|
+
|
13
|
+
- Support `p` element as it was overriden by Ruby's `p` method.
|
14
|
+
- Update listener syntax to be the original HTML event name (e.g. `onclick`) without being underscored to keep the transition to the Glimmer GUI DSL simple (e.g. `onclick` not `on_click`)
|
15
|
+
- Wrap listener `event` argument with `Glimmer::Web::Event` object, which proxies calls to JS event when needed
|
16
|
+
- Rename Hello Button! Sample to Hello, Form! Sample: `require 'glimmer-dsl-web/samples/hello/hello_form'`
|
17
|
+
- Update Hello, Form! Sample to display browser native validation errors and have automatic focus support on the name field
|
18
|
+
- Event listeners do not call `prevent_default` by default anymore, leaving it to the consumer of the library to decide
|
19
|
+
- New Hello, Button! Sample (replacing older one): `require 'glimmer-dsl-web/samples/hello/hello_button'`
|
20
|
+
|
3
21
|
## 0.0.4
|
4
22
|
|
5
23
|
- Support nesting attributes/properties under element (e.g. `input { value 'something'; dir 'rtl' }`)
|