glimmer-dsl-web 0.0.10 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +865 -45
- data/VERSION +1 -1
- data/glimmer-dsl-web.gemspec +11 -5
- data/lib/glimmer/dsl/web/component_expression.rb +2 -1
- data/lib/glimmer/dsl/web/dsl.rb +24 -0
- data/lib/glimmer/dsl/web/formatting_element_expression.rb +19 -0
- data/lib/glimmer/dsl/web/observe_expression.rb +42 -0
- data/lib/glimmer/helpers/glimmer_helper.rb +5 -7
- data/lib/glimmer/web/component.rb +22 -0
- data/lib/glimmer/web/element_proxy.rb +10 -14
- data/lib/glimmer/web/event_proxy.rb +7 -4
- data/lib/glimmer/web/formatting_element_proxy.rb +56 -0
- data/lib/glimmer/web/listener_proxy.rb +12 -11
- data/lib/glimmer-dsl-web/samples/hello/hello_observer.rb +90 -0
- data/lib/glimmer-dsl-web/samples/hello/hello_paragraph.rb +67 -0
- data/lib/glimmer-dsl-web/samples/regular/button_counter.rb +36 -0
- metadata +21 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaaa7092a643511c072a409a2b771b34db6b2aa0859adc5b200e5aba0869590e
|
4
|
+
data.tar.gz: 15ba8d9639037fa17104cb997a449f42e79703ae9ec4992f21b8a7551d3b09f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5732c5dca9591d17917fd6dfbd1425eed080f6aa345f6b9fb6bbbd8f3d487ce83428063b9ef974cabab8c2fdd7e6d8799b67e4442c462e6c174a4a81448900c6
|
7
|
+
data.tar.gz: 34afe2b80aeb727dad38572f81f46f7d442ef2998cb97b94ae92d332364f3ff2da0669203ced36a0484304fbbcbdfb1c7cb30a8b74b49ce42abb329ce333b7de
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.0.12
|
4
|
+
|
5
|
+
- Treat HTML text formatting elements differently (e.g. `b`, `i`, `strong`, `em`, `sub`, `sup`, `del`, `ins`, `small`, `mark`) by not appending to their parent content, yet having them generate a String with `to_s` that can be embedded in a `String` that is the text content of another normal element like `p` or `div`.
|
6
|
+
- Treat `span` as a special text formatting element if included inside a `p` and as a normal element outside a `p`.
|
7
|
+
- Hello, Paragraph! Sample: `require 'glimmer-dsl-web/samples/hello/hello_paragraph'`
|
8
|
+
|
9
|
+
## 0.0.11
|
10
|
+
|
11
|
+
- Support element custom event listener: `on_remove`
|
12
|
+
- Support `observe` keyword to observe Model attributes in Views with a convenient DSL keyword.
|
13
|
+
- Clean observers declared with `observe` keyword inside a component when `component.markup_root.remove` is called (or equivalent `component.remove` is called).
|
14
|
+
- Update `glimmer_component` to render its content immediately without waiting for `Document.ready?` as that is not necessary given its container is added to the DOM immediately
|
15
|
+
- Upgrade jquery-opal to 0.5.0 (latest version)
|
16
|
+
- Hello, Observer! Sample: `require 'glimmer-dsl-web/samples/hello/hello_observer'`
|
17
|
+
- Button Counter Sample: `require 'glimmer-dsl-web/samples/regular/button_counter'`
|
18
|
+
|
3
19
|
## 0.0.10
|
4
20
|
|
5
21
|
- Glimmer Component Rails Helper (add `include GlimmerHelper` to `ApplicationHelper` or another Rails helper) and use `<%= glimmer_component("path/to/component", *args) %>` in Views
|