myg 2.8.1 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -0
- data/app/views/mozaic/myg/_textarea.html.erb +12 -0
- data/lib/generators/templates/install/javascripts/index.js.erb +0 -1
- data/lib/generators/templates/install/javascripts/modal.js +1 -1
- data/lib/generators/templates/install/stylesheets/_myg.sass +0 -3
- data/lib/myg/railtie.rb +1 -0
- data/lib/myg/version.rb +1 -1
- metadata +3 -3
- data/lib/generators/templates/install/javascripts/icon.js +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb17af5bbbc1e1b865e000c8099c716ff992b651250b4403957ebe3e9a83c679
|
4
|
+
data.tar.gz: c99b18a42e3a793a0328835da730745fdc1d1c388a2a6b7026d3415bc4714ed3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4070d42c085a9ff1cf201decc487a099ad8a6c476be0842f68a108405d413260a87f1fe7639372a37ec6c26104747eaa4a56b817d8db368f79de290fe869549
|
7
|
+
data.tar.gz: 4f1721cdff5ee79322889ddc7937985be3a5aa325061fd798aacf8351f752835d6555d69a76bbddb0e365b0140ef41a32ee22f130b7ebd56400878b68432ce87
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -85,6 +85,7 @@ These are the components currently supported by Myg on Rails:
|
|
85
85
|
* [`slider`](components/myg/slider.md)
|
86
86
|
* [`switch`](components/myg/switch.md)
|
87
87
|
* [`tabs`](components/myg/tabs.md)
|
88
|
+
* [`textarea`](components/myg/textarea.md)
|
88
89
|
* [`titlebar`](components/myg/titlebar.md)
|
89
90
|
* [`toast`](components/myg/toast.md)
|
90
91
|
* [`toolbar`](components/myg/toolbar.md)
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% class_name = options.delete :class_name %>
|
2
|
+
<% attribute = options.delete :attribute %>
|
3
|
+
<% identifier = options.delete :identifier %>
|
4
|
+
<% name = class_name ? "#{class_name.to_s.downcase}[#{attribute}]" : "#{attribute}" %>
|
5
|
+
<% id = [class_name, identifier, attribute].map { |s| s.to_s.downcase }.join('_').tr('[', '_').tr(']', '_') %>
|
6
|
+
<% html = {
|
7
|
+
class: ['myg-textarea', options[:class]].join(' '),
|
8
|
+
name: name,
|
9
|
+
id: id
|
10
|
+
} %>
|
11
|
+
|
12
|
+
<%= content_tag 'textarea', options.merge(html) do %><%= block %><% end %>
|
@@ -5,5 +5,5 @@ import MygModal from 'myg-modal';
|
|
5
5
|
document.addEventListener( event, init );
|
6
6
|
})
|
7
7
|
function init() {
|
8
|
-
const mygModals = MygModal.initAll( document.querySelectorAll('.
|
8
|
+
const mygModals = MygModal.initAll( document.querySelectorAll('.modalist'), {} );
|
9
9
|
}
|
@@ -20,9 +20,6 @@
|
|
20
20
|
// @import "myg-form-field/form-field"
|
21
21
|
// @import "myg-grid/grid"
|
22
22
|
// @import "myg-hint/hint"
|
23
|
-
// @import "myg-icon/fonts/myg/myg"
|
24
|
-
// @import "myg-icon/fonts/myg-o/myg-o"
|
25
|
-
// @import "myg-icon/fonts/google/google"
|
26
23
|
// @import "myg-input/input"
|
27
24
|
// @import "myg-label/label"
|
28
25
|
// @import "myg-layout/layout"
|
data/lib/myg/railtie.rb
CHANGED
@@ -17,6 +17,7 @@ module Myg
|
|
17
17
|
config.define_component 'myg/slider', discrete: false, disabled: false, value: 0, min: 0, max: 50, label: 'Select value'
|
18
18
|
config.define_component 'myg/switch'
|
19
19
|
config.define_component 'myg/tabs', async: false
|
20
|
+
config.define_component 'myg/textarea'
|
20
21
|
config.define_component 'myg/titlebar', close: true
|
21
22
|
config.define_component 'myg/toast'
|
22
23
|
config.define_component 'myg/toolbar'
|
data/lib/myg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Hübotter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -117,6 +117,7 @@ files:
|
|
117
117
|
- app/views/mozaic/myg/_slider.html.erb
|
118
118
|
- app/views/mozaic/myg/_switch.html.erb
|
119
119
|
- app/views/mozaic/myg/_tabs.html.erb
|
120
|
+
- app/views/mozaic/myg/_textarea.html.erb
|
120
121
|
- app/views/mozaic/myg/_titlebar.html.erb
|
121
122
|
- app/views/mozaic/myg/_toast.html.erb
|
122
123
|
- app/views/mozaic/myg/_toolbar.html.erb
|
@@ -133,7 +134,6 @@ files:
|
|
133
134
|
- lib/generators/templates/install/javascripts/dropdown.js
|
134
135
|
- lib/generators/templates/install/javascripts/footer.js
|
135
136
|
- lib/generators/templates/install/javascripts/form-field.js
|
136
|
-
- lib/generators/templates/install/javascripts/icon.js
|
137
137
|
- lib/generators/templates/install/javascripts/index.js.erb
|
138
138
|
- lib/generators/templates/install/javascripts/input.js
|
139
139
|
- lib/generators/templates/install/javascripts/menu.js
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import MygIcon from 'myg-icon';
|
2
|
-
|
3
|
-
['turbolinks:load', 'modalist:render', 'myg-tabs:render'].forEach( (event) => {
|
4
|
-
document.removeEventListener( event, init );
|
5
|
-
document.addEventListener( event, init );
|
6
|
-
})
|
7
|
-
function init() {
|
8
|
-
const mygIcons = MygIcon.initAll( document.querySelectorAll('.myg-icon'), {} );
|
9
|
-
}
|