matestack-ui-core 0.6.0 → 0.7.0
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.
Potentially problematic release.
This version of matestack-ui-core might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +18 -12
- data/app/concepts/{absolute/view → matestack/ui/core/absolute}/absolute.haml +0 -0
- data/app/concepts/{absolute/cell → matestack/ui/core/absolute}/absolute.rb +2 -2
- data/app/concepts/matestack/ui/core/action/action.haml +3 -0
- data/app/concepts/{action/js → matestack/ui/core/action}/action.js +3 -3
- data/app/concepts/{action/cell → matestack/ui/core/action}/action.rb +2 -2
- data/app/concepts/{app/view → matestack/ui/core/app}/app.haml +1 -1
- data/app/concepts/{app/js → matestack/ui/core/app}/app.js +1 -1
- data/app/concepts/{app/cell → matestack/ui/core/app}/app.rb +28 -5
- data/app/concepts/{app/js → matestack/ui/core/app}/store.js +1 -1
- data/app/concepts/{async/view → matestack/ui/core/async}/async.haml +0 -0
- data/app/concepts/{async/js → matestack/ui/core/async}/async.js +3 -3
- data/app/concepts/matestack/ui/core/async/async.rb +10 -0
- data/app/concepts/{br/view → matestack/ui/core/br}/br.haml +2 -2
- data/app/concepts/matestack/ui/core/br/br.rb +5 -0
- data/app/concepts/{button/view → matestack/ui/core/button}/button.haml +0 -0
- data/app/concepts/matestack/ui/core/button/button.rb +5 -0
- data/app/concepts/matestack/ui/core/component/anonym-dynamic-component.js +10 -0
- data/app/concepts/{component/view → matestack/ui/core/component}/children.haml +0 -0
- data/app/concepts/{component/js → matestack/ui/core/component}/component.js +1 -1
- data/app/concepts/{component/view → matestack/ui/core/component}/dynamic.haml +0 -0
- data/app/concepts/{component/cell → matestack/ui/core/component}/dynamic.rb +51 -13
- data/app/concepts/{component/view → matestack/ui/core/component}/dynamic_without_rerender.haml +0 -0
- data/app/concepts/{component/view → matestack/ui/core/component}/response.haml +0 -0
- data/app/concepts/{component/view → matestack/ui/core/component}/response_dynamic.haml +0 -0
- data/app/concepts/{component/view → matestack/ui/core/component}/response_dynamic_without_rerender.haml +0 -0
- data/app/concepts/{component/view → matestack/ui/core/component}/static.haml +0 -0
- data/app/concepts/{component/cell → matestack/ui/core/component}/static.rb +3 -3
- data/app/concepts/{div/view → matestack/ui/core/div}/div.haml +0 -0
- data/app/concepts/matestack/ui/core/div/div.rb +6 -0
- data/app/concepts/{footer/view → matestack/ui/core/footer}/footer.haml +0 -0
- data/app/concepts/matestack/ui/core/footer/footer.rb +5 -0
- data/app/concepts/{form/view → matestack/ui/core/form}/form.haml +0 -0
- data/app/concepts/{form/js → matestack/ui/core/form}/form.js +3 -3
- data/app/concepts/{form/cell → matestack/ui/core/form}/form.rb +2 -2
- data/app/concepts/{form/view → matestack/ui/core/form/inline}/inline.haml +0 -0
- data/app/concepts/matestack/ui/core/form/inline/inline.rb +9 -0
- data/app/concepts/{form/view → matestack/ui/core/form/input}/input.haml +0 -0
- data/app/concepts/{form/cell → matestack/ui/core/form/input}/input.rb +2 -2
- data/app/concepts/{form/view → matestack/ui/core/form/select}/select.haml +0 -0
- data/app/concepts/{form/cell → matestack/ui/core/form/select}/select.rb +2 -2
- data/app/concepts/{form/view → matestack/ui/core/form/submit}/submit.haml +0 -0
- data/app/concepts/matestack/ui/core/form/submit/submit.rb +9 -0
- data/app/concepts/{header/view → matestack/ui/core/header}/header.haml +0 -0
- data/app/concepts/matestack/ui/core/header/header.rb +5 -0
- data/app/concepts/{heading/view → matestack/ui/core/heading}/heading.haml +0 -0
- data/app/concepts/matestack/ui/core/heading/heading.rb +5 -0
- data/app/concepts/matestack/ui/core/hr/hr.haml +1 -0
- data/app/concepts/matestack/ui/core/hr/hr.rb +5 -0
- data/app/concepts/{html/view → matestack/ui/core/html}/html.haml +0 -0
- data/app/concepts/matestack/ui/core/html/html.js +10 -0
- data/app/concepts/{html/cell → matestack/ui/core/html}/html.rb +2 -2
- data/app/concepts/{icon/view → matestack/ui/core/icon}/icon.haml +0 -0
- data/app/concepts/matestack/ui/core/icon/icon.rb +5 -0
- data/app/concepts/{img/view → matestack/ui/core/img}/img.haml +0 -0
- data/app/concepts/matestack/ui/core/img/img.rb +5 -0
- data/app/concepts/{input/view → matestack/ui/core/input}/input.haml +0 -0
- data/app/concepts/matestack/ui/core/input/input.rb +5 -0
- data/app/concepts/matestack/ui/core/js/core.js +27 -0
- data/app/concepts/{core → matestack/ui/core}/js/event-hub.js +0 -0
- data/app/concepts/{label/view → matestack/ui/core/label}/label.haml +0 -0
- data/app/concepts/matestack/ui/core/label/label.rb +5 -0
- data/app/concepts/{li/view → matestack/ui/core/li}/li.haml +0 -0
- data/app/concepts/matestack/ui/core/li/li.rb +5 -0
- data/app/concepts/{link/view → matestack/ui/core/link}/link.haml +0 -0
- data/app/concepts/{link/cell → matestack/ui/core/link}/link.rb +2 -2
- data/app/concepts/{main/view → matestack/ui/core/main}/main.haml +0 -0
- data/app/concepts/matestack/ui/core/main/main.rb +5 -0
- data/app/concepts/{nav/view → matestack/ui/core/nav}/nav.haml +0 -0
- data/app/concepts/matestack/ui/core/nav/nav.rb +5 -0
- data/app/concepts/matestack/ui/core/ol/ol.haml +3 -0
- data/app/concepts/matestack/ui/core/ol/ol.rb +5 -0
- data/app/concepts/{onclick/view → matestack/ui/core/onclick}/onclick.haml +0 -0
- data/app/concepts/{onclick/js → matestack/ui/core/onclick}/onclick.js +3 -3
- data/app/concepts/matestack/ui/core/onclick/onclick.rb +6 -0
- data/app/concepts/{page/view → matestack/ui/core/page}/content.haml +0 -0
- data/app/concepts/{page/js → matestack/ui/core/page}/content.js +2 -2
- data/app/concepts/matestack/ui/core/page/content.rb +5 -0
- data/app/concepts/{page/view → matestack/ui/core/page}/page.haml +0 -0
- data/app/concepts/{page/cell → matestack/ui/core/page}/page.rb +28 -6
- data/app/concepts/{pg/view/pg.haml → matestack/ui/core/paragraph/paragraph.haml} +0 -0
- data/app/concepts/matestack/ui/core/paragraph/paragraph.rb +5 -0
- data/app/concepts/{partial/view → matestack/ui/core/partial}/partial.haml +0 -0
- data/app/concepts/matestack/ui/core/partial/partial.rb +5 -0
- data/app/concepts/matestack/ui/core/pg/pg.haml +8 -0
- data/app/concepts/matestack/ui/core/pg/pg.rb +5 -0
- data/app/concepts/matestack/ui/core/plain/plain.rb +10 -0
- data/app/concepts/matestack/ui/core/progress/progress.haml +3 -0
- data/app/concepts/matestack/ui/core/progress/progress.rb +14 -0
- data/app/concepts/{section/view → matestack/ui/core/section}/section.haml +0 -0
- data/app/concepts/matestack/ui/core/section/section.rb +5 -0
- data/app/concepts/{slot/view → matestack/ui/core/slot}/slot.haml +0 -0
- data/app/concepts/matestack/ui/core/slot/slot.rb +5 -0
- data/app/concepts/{span/view → matestack/ui/core/span}/span.haml +0 -0
- data/app/concepts/matestack/ui/core/span/span.rb +5 -0
- data/app/concepts/matestack/ui/core/table/table.haml +3 -0
- data/app/concepts/matestack/ui/core/table/table.rb +5 -0
- data/app/concepts/matestack/ui/core/td/td.haml +8 -0
- data/app/concepts/matestack/ui/core/td/td.rb +5 -0
- data/app/concepts/matestack/ui/core/th/th.haml +8 -0
- data/app/concepts/matestack/ui/core/th/th.rb +5 -0
- data/app/concepts/matestack/ui/core/time/time.haml +3 -0
- data/app/concepts/matestack/ui/core/time/time.rb +11 -0
- data/app/concepts/matestack/ui/core/tr/tr.haml +3 -0
- data/app/concepts/matestack/ui/core/tr/tr.rb +5 -0
- data/app/concepts/{transition/view → matestack/ui/core/transition}/transition.haml +0 -0
- data/app/concepts/{transition/js → matestack/ui/core/transition}/transition.js +2 -2
- data/app/concepts/{transition/cell → matestack/ui/core/transition}/transition.rb +2 -2
- data/app/concepts/{ul/view → matestack/ui/core/ul}/ul.haml +0 -0
- data/app/concepts/matestack/ui/core/ul/ul.rb +5 -0
- data/app/concepts/{view → matestack/ui/core}/view/view.haml +0 -0
- data/app/concepts/{view/js → matestack/ui/core/view}/view.js +3 -3
- data/app/concepts/matestack/ui/core/view/view.rb +7 -0
- data/app/lib/matestack/ui/app.rb +1 -0
- data/app/{concepts/app/utils → lib/matestack/ui/core}/app_node.rb +1 -1
- data/app/{concepts/component/utils → lib/matestack/ui/core}/component_node.rb +1 -1
- data/app/{concepts/page/utils → lib/matestack/ui/core}/page_node.rb +1 -1
- data/app/{concepts/shared/utils → lib/matestack/ui/core}/to_cell.rb +26 -25
- data/app/lib/matestack/ui/dynamic_component.rb +1 -0
- data/app/lib/matestack/ui/page.rb +1 -0
- data/app/lib/matestack/ui/static_component.rb +1 -0
- data/lib/matestack/ui/core/version.rb +1 -1
- data/vendor/assets/javascripts/matestack-ui-core.js +117 -117
- data/vendor/assets/javascripts/matestack-ui-core.js.map +1 -1
- metadata +125 -120
- data/app/assets/config/basemate_ui_core_manifest.js +0 -2
- data/app/assets/javascripts/basemate/ui/core/application.js +0 -15
- data/app/assets/stylesheets/basemate/ui/core/application.css +0 -15
- data/app/concepts/action/view/action.haml +0 -3
- data/app/concepts/async/cell/async.rb +0 -10
- data/app/concepts/br/cell/br.rb +0 -5
- data/app/concepts/button/cell/button.rb +0 -5
- data/app/concepts/component/js/anonym-dynamic-component.js +0 -10
- data/app/concepts/core/js/core.js +0 -27
- data/app/concepts/div/cell/div.rb +0 -6
- data/app/concepts/footer/cell/footer.rb +0 -5
- data/app/concepts/form/cell/inline.rb +0 -9
- data/app/concepts/form/cell/submit.rb +0 -9
- data/app/concepts/header/cell/header.rb +0 -5
- data/app/concepts/heading/cell/heading.rb +0 -5
- data/app/concepts/html/js/html.js +0 -10
- data/app/concepts/icon/cell/icon.rb +0 -5
- data/app/concepts/img/cell/img.rb +0 -5
- data/app/concepts/input/cell/input.rb +0 -5
- data/app/concepts/label/cell/label.rb +0 -5
- data/app/concepts/li/cell/li.rb +0 -5
- data/app/concepts/main/cell/main.rb +0 -5
- data/app/concepts/nav/cell/nav.rb +0 -5
- data/app/concepts/ol/cell/ol.rb +0 -5
- data/app/concepts/ol/view/ol.haml +0 -3
- data/app/concepts/onclick/cell/onclick.rb +0 -6
- data/app/concepts/page/cell/content.rb +0 -5
- data/app/concepts/partial/cell/partial.rb +0 -5
- data/app/concepts/pg/cell/pg.rb +0 -5
- data/app/concepts/plain/cell/plain.rb +0 -10
- data/app/concepts/progress/cell/progress.rb +0 -5
- data/app/concepts/progress/view/progress.haml +0 -3
- data/app/concepts/section/cell/section.rb +0 -5
- data/app/concepts/slot/cell/slot.rb +0 -10
- data/app/concepts/span/cell/span.rb +0 -5
- data/app/concepts/table/cell/table.rb +0 -5
- data/app/concepts/table/view/table.haml +0 -3
- data/app/concepts/td/cell/td.rb +0 -5
- data/app/concepts/td/view/td.haml +0 -8
- data/app/concepts/th/cell/th.rb +0 -5
- data/app/concepts/th/view/th.haml +0 -8
- data/app/concepts/tr/cell/tr.rb +0 -5
- data/app/concepts/tr/view/tr.haml +0 -3
- data/app/concepts/ul/cell/ul.rb +0 -5
- data/app/concepts/view/cell/view.rb +0 -7
- data/app/controllers/basemate/ui/core/application_controller.rb +0 -9
- data/app/controllers/basemate/ui/core/docs_controller.rb +0 -17
data/app/concepts/{component/view → matestack/ui/core/component}/dynamic_without_rerender.haml
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,12 +1,12 @@
|
|
1
|
-
module Component
|
2
|
-
class Static < Component::
|
1
|
+
module Matestack::Ui::Core::Component
|
2
|
+
class Static < Matestack::Ui::Core::Component::Dynamic
|
3
3
|
|
4
4
|
def initialize(model=nil, options={})
|
5
5
|
super
|
6
6
|
if options[:dynamic]
|
7
7
|
@static = false
|
8
8
|
@rerender = true
|
9
|
-
@component_class = "anonym-dynamic-component
|
9
|
+
@component_class = "anonym-dynamic-component"
|
10
10
|
else
|
11
11
|
@static = true
|
12
12
|
end
|
File without changes
|
File without changes
|
File without changes
|
@@ -2,9 +2,9 @@ import Vue from 'vue/dist/vue.esm'
|
|
2
2
|
import Vuex from 'vuex'
|
3
3
|
import axios from 'axios'
|
4
4
|
|
5
|
-
import matestackEventHub from '
|
5
|
+
import matestackEventHub from 'js/event-hub'
|
6
6
|
|
7
|
-
import componentMixin from 'component/
|
7
|
+
import componentMixin from 'component/component'
|
8
8
|
|
9
9
|
const componentDef = {
|
10
10
|
mixins: [componentMixin],
|
@@ -131,6 +131,6 @@ const componentDef = {
|
|
131
131
|
}
|
132
132
|
}
|
133
133
|
|
134
|
-
let component = Vue.component('form
|
134
|
+
let component = Vue.component('matestack-ui-core-form', componentDef)
|
135
135
|
|
136
136
|
export default componentDef
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
%hr{@tag_attributes}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import Vue from 'vue/dist/vue.esm'
|
2
|
+
|
3
|
+
import app from 'app/app'
|
4
|
+
import async from 'async/async'
|
5
|
+
import pageContent from 'page/content'
|
6
|
+
import store from 'app/store'
|
7
|
+
import component from 'component/component'
|
8
|
+
import anonymDynamicComponent from 'component/anonym-dynamic-component'
|
9
|
+
import html from 'html/html'
|
10
|
+
import transition from 'transition/transition'
|
11
|
+
import action from 'action/action'
|
12
|
+
import form from 'form/form'
|
13
|
+
import view from 'view/view'
|
14
|
+
import onclick from 'onclick/onclick'
|
15
|
+
|
16
|
+
let matestackUiApp = undefined
|
17
|
+
|
18
|
+
document.addEventListener('DOMContentLoaded', () => {
|
19
|
+
|
20
|
+
matestackUiApp = new Vue({
|
21
|
+
el: "#matestack_ui",
|
22
|
+
store: store
|
23
|
+
})
|
24
|
+
|
25
|
+
})
|
26
|
+
|
27
|
+
export default Vue
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import Vue from 'vue/dist/vue.esm'
|
2
2
|
|
3
|
-
import matestackEventHub from '
|
3
|
+
import matestackEventHub from 'js/event-hub'
|
4
4
|
|
5
|
-
import componentMixin from 'component/
|
5
|
+
import componentMixin from 'component/component'
|
6
6
|
|
7
7
|
const componentDef = {
|
8
8
|
mixins: [componentMixin],
|
@@ -16,6 +16,6 @@ const componentDef = {
|
|
16
16
|
}
|
17
17
|
}
|
18
18
|
|
19
|
-
let component = Vue.component('onclick
|
19
|
+
let component = Vue.component('matestack-ui-core-onclick', componentDef)
|
20
20
|
|
21
21
|
export default componentDef
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import Vue from 'vue/dist/vue.esm'
|
2
2
|
import Vuex from 'vuex'
|
3
|
-
import componentMixin from 'component/
|
3
|
+
import componentMixin from 'component/component'
|
4
4
|
|
5
5
|
const componentDef = {
|
6
6
|
mixins: [componentMixin],
|
@@ -12,6 +12,6 @@ const componentDef = {
|
|
12
12
|
})
|
13
13
|
}
|
14
14
|
|
15
|
-
let component = Vue.component('page-content
|
15
|
+
let component = Vue.component('matestack-ui-core-page-content', componentDef)
|
16
16
|
|
17
17
|
export default componentDef
|
File without changes
|
@@ -1,13 +1,35 @@
|
|
1
|
-
module Page
|
1
|
+
module Matestack::Ui::Core::Page
|
2
2
|
class Page < Trailblazer::Cell
|
3
3
|
|
4
4
|
include ActionView::Helpers::TranslationHelper
|
5
5
|
include ::Cell::Haml
|
6
|
-
include
|
7
|
-
include ::
|
6
|
+
include Matestack::Ui::Core::ApplicationHelper
|
7
|
+
include Matestack::Ui::Core::ToCell
|
8
8
|
|
9
9
|
view_paths << "#{Matestack::Ui::Core::Engine.root}/app/concepts"
|
10
10
|
|
11
|
+
extend ViewName::Flat
|
12
|
+
|
13
|
+
def self.prefixes
|
14
|
+
_prefixes = super
|
15
|
+
modified_prefixes = _prefixes.map do |prefix|
|
16
|
+
prefix_parts = prefix.split("/")
|
17
|
+
|
18
|
+
if prefix_parts.last.include?(self.name.split("::")[-1].downcase)
|
19
|
+
prefix_parts[0..-2].join("/")
|
20
|
+
else
|
21
|
+
prefix
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
|
26
|
+
return modified_prefixes + _prefixes
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.views_dir
|
30
|
+
return ""
|
31
|
+
end
|
32
|
+
|
11
33
|
def initialize(model=nil, options={})
|
12
34
|
super
|
13
35
|
generate_page_name
|
@@ -26,7 +48,7 @@ module Page::Cell
|
|
26
48
|
end
|
27
49
|
|
28
50
|
def components(&block)
|
29
|
-
@nodes = ::
|
51
|
+
@nodes = Matestack::Ui::Core::PageNode.build(self, nil, &block)
|
30
52
|
end
|
31
53
|
|
32
54
|
def nodes_to_cell
|
@@ -37,12 +59,12 @@ module Page::Cell
|
|
37
59
|
|
38
60
|
def partial(&block)
|
39
61
|
return block
|
40
|
-
# ::
|
62
|
+
# Matestack::Ui::Core::PageNode.build(self, included, &block)
|
41
63
|
end
|
42
64
|
|
43
65
|
def slot(&block)
|
44
66
|
# return block
|
45
|
-
::
|
67
|
+
Matestack::Ui::Core::PageNode.build(self, nil, &block)
|
46
68
|
end
|
47
69
|
|
48
70
|
|
File without changes
|