glimmer-dsl-web 0.0.7 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/README.md +715 -86
- data/VERSION +1 -1
- data/glimmer-dsl-web.gemspec +12 -6
- data/lib/glimmer/dsl/web/component_expression.rb +30 -0
- data/lib/glimmer/dsl/web/content_data_binding_expression.rb +41 -0
- data/lib/glimmer/dsl/web/dsl.rb +4 -9
- data/lib/glimmer/dsl/web/element_expression.rb +3 -3
- data/lib/glimmer/web/component.rb +317 -0
- data/lib/glimmer/web/element_proxy.rb +78 -5
- data/lib/glimmer/web/listener_proxy.rb +0 -1
- data/lib/glimmer-dsl-web/samples/hello/hello_component.rb +223 -0
- data/lib/glimmer-dsl-web/samples/hello/hello_content_data_binding.rb +141 -0
- data/lib/glimmer-dsl-web.rb +6 -2
- metadata +51 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb52a7e2713efb045e669024219a7100ec1e883d36ad0a617f8afc4c9955ef80
|
4
|
+
data.tar.gz: 2f2ea6499404327420613adee09d4a13a55395b90b911e60314d8f7388adf291
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b9a182d977bd3d30c440736840e8c0fd5855f6a63d2a09d030bb97f08068cd3e81aa0f298361d2321a5ff500de4c0009b43bec6c70142d7cead27a90d656cdf
|
7
|
+
data.tar.gz: ab3a23dd8a7d2d7d78d6110e56780099c660fcd11f5f935a3067b16ea578dff20b13ebf2e984a15f6c8f276dcee2f0d4d5e7c559df856c9836c30b9e8292ef30
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.0.9
|
4
|
+
|
5
|
+
- Component support (View component classes simply `include Glimmer::Web::Component`)
|
6
|
+
- Improve README.md setup instructions, documenting how to enable Browser Opal Debugging in Ruby using Opal Source Maps
|
7
|
+
- Allow passing element `:parent` selector through `render` method as first argument (`render(selector)`) for a potentially more readable second way of doing the same thing
|
8
|
+
- Fix Hello, Content Data-Binding! as it forgot to include Glimmer to top-level main object and forgot to wait for Document.ready?
|
9
|
+
- New Hello, Component! Sample: `require 'glimmer-dsl-web/samples/hello/hello_component'`
|
10
|
+
|
11
|
+
## 0.0.8
|
12
|
+
|
13
|
+
- Validate that element keywords belong to the valid list of HTML element tag names to prevent rendering fake elements the keyword does not match a real HTML element tag
|
14
|
+
- Support inner_html/outer_html properties (it seems they did not convert to innerHTML/outerHTML correctly because of the all caps HTML)
|
15
|
+
- Support element properties via original JS names (e.g. innerHTML) to prevent logic from breaking if some do not convert correctly from underscored versions
|
16
|
+
- Package dependencies properly in the gem to avoid instructing users to add in Rails Gemfile manually
|
17
|
+
- Content Data-Binding support to regenerate element content based on changes to an observed model attribute.
|
18
|
+
Content Data-Binding Example:
|
19
|
+
content(*data_binding_options) { |data_binding_value|
|
20
|
+
li {
|
21
|
+
data_binding_value
|
22
|
+
}
|
23
|
+
}
|
24
|
+
- Ensuring removing data-binding model listeners when calling `element#remove` in addition to already removing standard HTML event listeners
|
25
|
+
- New Hello, Content Data-Binding! Sample: `require 'glimmer-dsl-web/samples/hello/hello_content_data_binding'`
|
26
|
+
|
3
27
|
## 0.0.7
|
4
28
|
|
5
29
|
- Support input[type=number] value data-binding as a Ruby Numeric object (Integer or Float)
|