matestack-ui-core 1.5.0 → 3.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +18 -6
- data/README.md +48 -548
- data/Rakefile +0 -2
- data/lib/matestack/ui/component.rb +1 -0
- data/lib/matestack/ui/core/base.rb +131 -0
- data/lib/matestack/ui/core/component.rb +8 -0
- data/lib/matestack/ui/core/context.rb +17 -0
- data/lib/matestack/ui/core/helper.rb +91 -0
- data/lib/matestack/ui/core/layout.rb +25 -0
- data/lib/matestack/ui/core/page.rb +13 -0
- data/lib/matestack/ui/core/properties.rb +105 -0
- data/lib/matestack/ui/core/slots.rb +15 -0
- data/lib/matestack/ui/core/tag_helper.rb +101 -0
- data/lib/matestack/ui/core/version.rb +1 -1
- data/lib/matestack/ui/core.rb +16 -11
- data/lib/matestack/ui/layout.rb +1 -0
- data/lib/matestack/ui/page.rb +1 -0
- metadata +18 -408
- data/app/concepts/matestack/ui/core/abbr/abbr.haml +0 -5
- data/app/concepts/matestack/ui/core/abbr/abbr.rb +0 -5
- data/app/concepts/matestack/ui/core/action/action.haml +0 -3
- data/app/concepts/matestack/ui/core/action/action.js +0 -152
- data/app/concepts/matestack/ui/core/action/action.rb +0 -80
- data/app/concepts/matestack/ui/core/actionview/dynamic.haml +0 -6
- data/app/concepts/matestack/ui/core/actionview/dynamic.rb +0 -28
- data/app/concepts/matestack/ui/core/actionview/static.haml +0 -1
- data/app/concepts/matestack/ui/core/actionview/static.rb +0 -28
- data/app/concepts/matestack/ui/core/address/address.haml +0 -5
- data/app/concepts/matestack/ui/core/address/address.rb +0 -5
- data/app/concepts/matestack/ui/core/app/app.haml +0 -3
- data/app/concepts/matestack/ui/core/app/app.js +0 -41
- data/app/concepts/matestack/ui/core/app/app.rb +0 -51
- data/app/concepts/matestack/ui/core/app/location.js +0 -9
- data/app/concepts/matestack/ui/core/app/store.js +0 -103
- data/app/concepts/matestack/ui/core/area/area.haml +0 -1
- data/app/concepts/matestack/ui/core/area/area.rb +0 -6
- data/app/concepts/matestack/ui/core/article/article.haml +0 -5
- data/app/concepts/matestack/ui/core/article/article.rb +0 -5
- data/app/concepts/matestack/ui/core/aside/aside.haml +0 -3
- data/app/concepts/matestack/ui/core/aside/aside.rb +0 -4
- data/app/concepts/matestack/ui/core/async/async.haml +0 -6
- data/app/concepts/matestack/ui/core/async/async.js +0 -110
- data/app/concepts/matestack/ui/core/async/async.rb +0 -37
- data/app/concepts/matestack/ui/core/async/children_wrapper.haml +0 -2
- data/app/concepts/matestack/ui/core/b/b.haml +0 -5
- data/app/concepts/matestack/ui/core/b/b.rb +0 -5
- data/app/concepts/matestack/ui/core/bdi/bdi.haml +0 -5
- data/app/concepts/matestack/ui/core/bdi/bdi.rb +0 -5
- data/app/concepts/matestack/ui/core/bdo/bdo.haml +0 -5
- data/app/concepts/matestack/ui/core/bdo/bdo.rb +0 -6
- data/app/concepts/matestack/ui/core/blockquote/blockquote.haml +0 -5
- data/app/concepts/matestack/ui/core/blockquote/blockquote.rb +0 -6
- data/app/concepts/matestack/ui/core/br/br.haml +0 -5
- data/app/concepts/matestack/ui/core/br/br.rb +0 -5
- data/app/concepts/matestack/ui/core/button/button.haml +0 -5
- data/app/concepts/matestack/ui/core/button/button.rb +0 -7
- data/app/concepts/matestack/ui/core/cable/cable.haml +0 -4
- data/app/concepts/matestack/ui/core/cable/cable.js +0 -100
- data/app/concepts/matestack/ui/core/cable/cable.rb +0 -28
- data/app/concepts/matestack/ui/core/cable/children_wrapper.haml +0 -2
- data/app/concepts/matestack/ui/core/caption/caption.haml +0 -5
- data/app/concepts/matestack/ui/core/caption/caption.rb +0 -5
- data/app/concepts/matestack/ui/core/cite/cite.haml +0 -5
- data/app/concepts/matestack/ui/core/cite/cite.rb +0 -5
- data/app/concepts/matestack/ui/core/code/code.haml +0 -5
- data/app/concepts/matestack/ui/core/code/code.rb +0 -5
- data/app/concepts/matestack/ui/core/collection/content/content.js +0 -98
- data/app/concepts/matestack/ui/core/collection/content/content.rb +0 -16
- data/app/concepts/matestack/ui/core/collection/content/next/next.haml +0 -3
- data/app/concepts/matestack/ui/core/collection/content/next/next.rb +0 -5
- data/app/concepts/matestack/ui/core/collection/content/page/link/link.haml +0 -3
- data/app/concepts/matestack/ui/core/collection/content/page/link/link.rb +0 -7
- data/app/concepts/matestack/ui/core/collection/content/previous/previous.haml +0 -3
- data/app/concepts/matestack/ui/core/collection/content/previous/previous.rb +0 -5
- data/app/concepts/matestack/ui/core/collection/filter/filter.js +0 -48
- data/app/concepts/matestack/ui/core/collection/filter/filter.rb +0 -16
- data/app/concepts/matestack/ui/core/collection/filter/input/input.rb +0 -28
- data/app/concepts/matestack/ui/core/collection/filter/reset/reset.haml +0 -3
- data/app/concepts/matestack/ui/core/collection/filter/reset/reset.rb +0 -5
- data/app/concepts/matestack/ui/core/collection/filter/select/select.haml +0 -10
- data/app/concepts/matestack/ui/core/collection/filter/select/select.rb +0 -30
- data/app/concepts/matestack/ui/core/collection/filter/submit/submit.haml +0 -3
- data/app/concepts/matestack/ui/core/collection/filter/submit/submit.rb +0 -5
- data/app/concepts/matestack/ui/core/collection/helper.rb +0 -127
- data/app/concepts/matestack/ui/core/collection/order/order.js +0 -56
- data/app/concepts/matestack/ui/core/collection/order/order.rb +0 -16
- data/app/concepts/matestack/ui/core/collection/order/toggle/indicator/indicator.rb +0 -17
- data/app/concepts/matestack/ui/core/collection/order/toggle/toggle.haml +0 -3
- data/app/concepts/matestack/ui/core/collection/order/toggle/toggle.rb +0 -4
- data/app/concepts/matestack/ui/core/component/anonym-dynamic-component.js +0 -10
- data/app/concepts/matestack/ui/core/component/base.rb +0 -430
- data/app/concepts/matestack/ui/core/component/children.haml +0 -2
- data/app/concepts/matestack/ui/core/component/component.js +0 -22
- data/app/concepts/matestack/ui/core/component/dynamic.haml +0 -6
- data/app/concepts/matestack/ui/core/component/dynamic.rb +0 -47
- data/app/concepts/matestack/ui/core/component/dynamic_without_rerender.haml +0 -2
- data/app/concepts/matestack/ui/core/component/static.rb +0 -7
- data/app/concepts/matestack/ui/core/data/data.haml +0 -5
- data/app/concepts/matestack/ui/core/data/data.rb +0 -6
- data/app/concepts/matestack/ui/core/datalist/datalist.haml +0 -3
- data/app/concepts/matestack/ui/core/datalist/datalist.rb +0 -4
- data/app/concepts/matestack/ui/core/dd/dd.haml +0 -5
- data/app/concepts/matestack/ui/core/dd/dd.rb +0 -5
- data/app/concepts/matestack/ui/core/del/del.haml +0 -5
- data/app/concepts/matestack/ui/core/del/del.rb +0 -6
- data/app/concepts/matestack/ui/core/details/details.haml +0 -3
- data/app/concepts/matestack/ui/core/details/details.rb +0 -5
- data/app/concepts/matestack/ui/core/dfn/dfn.haml +0 -5
- data/app/concepts/matestack/ui/core/dfn/dfn.rb +0 -6
- data/app/concepts/matestack/ui/core/dialog/dialog.haml +0 -5
- data/app/concepts/matestack/ui/core/dialog/dialog.rb +0 -6
- data/app/concepts/matestack/ui/core/div/div.haml +0 -3
- data/app/concepts/matestack/ui/core/div/div.rb +0 -4
- data/app/concepts/matestack/ui/core/dl/dl.haml +0 -5
- data/app/concepts/matestack/ui/core/dl/dl.rb +0 -5
- data/app/concepts/matestack/ui/core/dt/dt.haml +0 -5
- data/app/concepts/matestack/ui/core/dt/dt.rb +0 -5
- data/app/concepts/matestack/ui/core/em/em.haml +0 -5
- data/app/concepts/matestack/ui/core/em/em.rb +0 -5
- data/app/concepts/matestack/ui/core/fieldset/fieldset.haml +0 -5
- data/app/concepts/matestack/ui/core/fieldset/fieldset.rb +0 -6
- data/app/concepts/matestack/ui/core/figure/figure.haml +0 -3
- data/app/concepts/matestack/ui/core/figure/figure.rb +0 -4
- data/app/concepts/matestack/ui/core/footer/footer.haml +0 -3
- data/app/concepts/matestack/ui/core/footer/footer.rb +0 -4
- data/app/concepts/matestack/ui/core/form/checkbox/base.rb +0 -120
- data/app/concepts/matestack/ui/core/form/checkbox/checkbox.js +0 -15
- data/app/concepts/matestack/ui/core/form/checkbox/checkbox.rb +0 -16
- data/app/concepts/matestack/ui/core/form/checkbox/mixin.js +0 -80
- data/app/concepts/matestack/ui/core/form/form.haml +0 -2
- data/app/concepts/matestack/ui/core/form/form.js +0 -275
- data/app/concepts/matestack/ui/core/form/form.rb +0 -104
- data/app/concepts/matestack/ui/core/form/has_errors.rb +0 -54
- data/app/concepts/matestack/ui/core/form/has_input_html_attributes.rb +0 -13
- data/app/concepts/matestack/ui/core/form/input/base.rb +0 -75
- data/app/concepts/matestack/ui/core/form/input/input.js +0 -15
- data/app/concepts/matestack/ui/core/form/input/input.rb +0 -17
- data/app/concepts/matestack/ui/core/form/input/mixin.js +0 -55
- data/app/concepts/matestack/ui/core/form/radio/base.rb +0 -90
- data/app/concepts/matestack/ui/core/form/radio/mixin.js +0 -62
- data/app/concepts/matestack/ui/core/form/radio/radio.js +0 -15
- data/app/concepts/matestack/ui/core/form/radio/radio.rb +0 -16
- data/app/concepts/matestack/ui/core/form/select/base.rb +0 -98
- data/app/concepts/matestack/ui/core/form/select/mixin.js +0 -58
- data/app/concepts/matestack/ui/core/form/select/select.js +0 -15
- data/app/concepts/matestack/ui/core/form/select/select.rb +0 -19
- data/app/concepts/matestack/ui/core/form/submit/base.rb +0 -12
- data/app/concepts/matestack/ui/core/form/submit/submit.js +0 -19
- data/app/concepts/matestack/ui/core/form/submit/submit.rb +0 -15
- data/app/concepts/matestack/ui/core/form/textarea/base.rb +0 -49
- data/app/concepts/matestack/ui/core/form/textarea/mixin.js +0 -41
- data/app/concepts/matestack/ui/core/form/textarea/textarea.js +0 -15
- data/app/concepts/matestack/ui/core/form/textarea/textarea.rb +0 -17
- data/app/concepts/matestack/ui/core/form/utils.rb +0 -47
- data/app/concepts/matestack/ui/core/header/header.haml +0 -3
- data/app/concepts/matestack/ui/core/header/header.rb +0 -4
- data/app/concepts/matestack/ui/core/heading/heading.haml +0 -5
- data/app/concepts/matestack/ui/core/heading/heading.rb +0 -5
- data/app/concepts/matestack/ui/core/hr/hr.haml +0 -1
- data/app/concepts/matestack/ui/core/hr/hr.rb +0 -4
- data/app/concepts/matestack/ui/core/icon/icon.haml +0 -5
- data/app/concepts/matestack/ui/core/icon/icon.rb +0 -5
- data/app/concepts/matestack/ui/core/iframe/iframe.haml +0 -5
- data/app/concepts/matestack/ui/core/iframe/iframe.rb +0 -7
- data/app/concepts/matestack/ui/core/img/img.haml +0 -1
- data/app/concepts/matestack/ui/core/img/img.rb +0 -15
- data/app/concepts/matestack/ui/core/input/input.haml +0 -1
- data/app/concepts/matestack/ui/core/input/input.rb +0 -9
- data/app/concepts/matestack/ui/core/ins/ins.haml +0 -5
- data/app/concepts/matestack/ui/core/ins/ins.rb +0 -6
- data/app/concepts/matestack/ui/core/isolated/children_wrapper.haml +0 -2
- data/app/concepts/matestack/ui/core/isolated/isolated.haml +0 -10
- data/app/concepts/matestack/ui/core/isolated/isolated.js +0 -108
- data/app/concepts/matestack/ui/core/isolated/isolated.rb +0 -59
- data/app/concepts/matestack/ui/core/js/core.js +0 -66
- data/app/concepts/matestack/ui/core/js/event-hub.js +0 -5
- data/app/concepts/matestack/ui/core/js/helpers/query-params-helper.js +0 -56
- data/app/concepts/matestack/ui/core/kbd/kbd.haml +0 -5
- data/app/concepts/matestack/ui/core/kbd/kbd.rb +0 -5
- data/app/concepts/matestack/ui/core/label/label.haml +0 -5
- data/app/concepts/matestack/ui/core/label/label.rb +0 -6
- data/app/concepts/matestack/ui/core/legend/legend.haml +0 -5
- data/app/concepts/matestack/ui/core/legend/legend.rb +0 -5
- data/app/concepts/matestack/ui/core/li/li.haml +0 -5
- data/app/concepts/matestack/ui/core/li/li.rb +0 -6
- data/app/concepts/matestack/ui/core/link/link.haml +0 -5
- data/app/concepts/matestack/ui/core/link/link.rb +0 -23
- data/app/concepts/matestack/ui/core/main/main.haml +0 -3
- data/app/concepts/matestack/ui/core/main/main.rb +0 -4
- data/app/concepts/matestack/ui/core/map/map.haml +0 -3
- data/app/concepts/matestack/ui/core/map/map.rb +0 -5
- data/app/concepts/matestack/ui/core/mark/mark.haml +0 -5
- data/app/concepts/matestack/ui/core/mark/mark.rb +0 -5
- data/app/concepts/matestack/ui/core/meter/meter.haml +0 -4
- data/app/concepts/matestack/ui/core/meter/meter.rb +0 -5
- data/app/concepts/matestack/ui/core/nav/nav.haml +0 -3
- data/app/concepts/matestack/ui/core/nav/nav.rb +0 -4
- data/app/concepts/matestack/ui/core/noscript/noscript.haml +0 -5
- data/app/concepts/matestack/ui/core/noscript/noscript.rb +0 -5
- data/app/concepts/matestack/ui/core/object/object.haml +0 -1
- data/app/concepts/matestack/ui/core/object/object.rb +0 -5
- data/app/concepts/matestack/ui/core/ol/ol.haml +0 -3
- data/app/concepts/matestack/ui/core/ol/ol.rb +0 -5
- data/app/concepts/matestack/ui/core/onclick/onclick.haml +0 -2
- data/app/concepts/matestack/ui/core/onclick/onclick.js +0 -20
- data/app/concepts/matestack/ui/core/onclick/onclick.rb +0 -6
- data/app/concepts/matestack/ui/core/optgroup/optgroup.haml +0 -3
- data/app/concepts/matestack/ui/core/optgroup/optgroup.rb +0 -5
- data/app/concepts/matestack/ui/core/option/option.haml +0 -5
- data/app/concepts/matestack/ui/core/option/option.rb +0 -6
- data/app/concepts/matestack/ui/core/output/output.haml +0 -5
- data/app/concepts/matestack/ui/core/output/output.rb +0 -6
- data/app/concepts/matestack/ui/core/page/content/content.js +0 -23
- data/app/concepts/matestack/ui/core/page/content/content.rb +0 -28
- data/app/concepts/matestack/ui/core/page/page.haml +0 -3
- data/app/concepts/matestack/ui/core/page/page.rb +0 -30
- data/app/concepts/matestack/ui/core/paragraph/paragraph.haml +0 -5
- data/app/concepts/matestack/ui/core/paragraph/paragraph.rb +0 -5
- data/app/concepts/matestack/ui/core/param/param.haml +0 -1
- data/app/concepts/matestack/ui/core/param/param.rb +0 -5
- data/app/concepts/matestack/ui/core/partial/partial.haml +0 -2
- data/app/concepts/matestack/ui/core/partial/partial.rb +0 -4
- data/app/concepts/matestack/ui/core/picture/picture.haml +0 -3
- data/app/concepts/matestack/ui/core/picture/picture.rb +0 -4
- data/app/concepts/matestack/ui/core/plain/plain.rb +0 -9
- data/app/concepts/matestack/ui/core/pre/pre.haml +0 -5
- data/app/concepts/matestack/ui/core/pre/pre.rb +0 -5
- data/app/concepts/matestack/ui/core/progress/progress.haml +0 -3
- data/app/concepts/matestack/ui/core/progress/progress.rb +0 -5
- data/app/concepts/matestack/ui/core/q/q.haml +0 -5
- data/app/concepts/matestack/ui/core/q/q.rb +0 -6
- data/app/concepts/matestack/ui/core/rp/rp.haml +0 -5
- data/app/concepts/matestack/ui/core/rp/rp.rb +0 -5
- data/app/concepts/matestack/ui/core/rt/rt.haml +0 -5
- data/app/concepts/matestack/ui/core/rt/rt.rb +0 -5
- data/app/concepts/matestack/ui/core/ruby/ruby.haml +0 -5
- data/app/concepts/matestack/ui/core/ruby/ruby.rb +0 -5
- data/app/concepts/matestack/ui/core/s/s.haml +0 -5
- data/app/concepts/matestack/ui/core/s/s.rb +0 -6
- data/app/concepts/matestack/ui/core/samp/samp.haml +0 -5
- data/app/concepts/matestack/ui/core/samp/samp.rb +0 -5
- data/app/concepts/matestack/ui/core/section/section.haml +0 -3
- data/app/concepts/matestack/ui/core/section/section.rb +0 -4
- data/app/concepts/matestack/ui/core/select/select.haml +0 -3
- data/app/concepts/matestack/ui/core/select/select.rb +0 -7
- data/app/concepts/matestack/ui/core/slot/slot.haml +0 -2
- data/app/concepts/matestack/ui/core/slot/slot.rb +0 -4
- data/app/concepts/matestack/ui/core/small/small.haml +0 -5
- data/app/concepts/matestack/ui/core/small/small.rb +0 -5
- data/app/concepts/matestack/ui/core/span/span.haml +0 -5
- data/app/concepts/matestack/ui/core/span/span.rb +0 -5
- data/app/concepts/matestack/ui/core/strong/strong.haml +0 -5
- data/app/concepts/matestack/ui/core/strong/strong.rb +0 -5
- data/app/concepts/matestack/ui/core/sub/sub.haml +0 -5
- data/app/concepts/matestack/ui/core/sub/sub.rb +0 -5
- data/app/concepts/matestack/ui/core/summary/summary.haml +0 -5
- data/app/concepts/matestack/ui/core/summary/summary.rb +0 -5
- data/app/concepts/matestack/ui/core/sup/sup.haml +0 -5
- data/app/concepts/matestack/ui/core/sup/sup.rb +0 -5
- data/app/concepts/matestack/ui/core/table/table.haml +0 -3
- data/app/concepts/matestack/ui/core/table/table.rb +0 -4
- data/app/concepts/matestack/ui/core/tbody/tbody.haml +0 -3
- data/app/concepts/matestack/ui/core/tbody/tbody.rb +0 -4
- data/app/concepts/matestack/ui/core/td/td.haml +0 -5
- data/app/concepts/matestack/ui/core/td/td.rb +0 -6
- data/app/concepts/matestack/ui/core/template/template.haml +0 -3
- data/app/concepts/matestack/ui/core/template/template.rb +0 -4
- data/app/concepts/matestack/ui/core/textarea/textarea.haml +0 -5
- data/app/concepts/matestack/ui/core/textarea/textarea.rb +0 -10
- data/app/concepts/matestack/ui/core/tfoot/tfoot.haml +0 -3
- data/app/concepts/matestack/ui/core/tfoot/tfoot.rb +0 -4
- data/app/concepts/matestack/ui/core/th/th.haml +0 -5
- data/app/concepts/matestack/ui/core/th/th.rb +0 -6
- data/app/concepts/matestack/ui/core/thead/thead.haml +0 -3
- data/app/concepts/matestack/ui/core/thead/thead.rb +0 -4
- data/app/concepts/matestack/ui/core/time/time.haml +0 -3
- data/app/concepts/matestack/ui/core/time/time.rb +0 -5
- data/app/concepts/matestack/ui/core/toggle/toggle.haml +0 -2
- data/app/concepts/matestack/ui/core/toggle/toggle.js +0 -71
- data/app/concepts/matestack/ui/core/toggle/toggle.rb +0 -13
- data/app/concepts/matestack/ui/core/tr/tr.haml +0 -3
- data/app/concepts/matestack/ui/core/tr/tr.rb +0 -4
- data/app/concepts/matestack/ui/core/transition/transition.haml +0 -5
- data/app/concepts/matestack/ui/core/transition/transition.js +0 -42
- data/app/concepts/matestack/ui/core/transition/transition.rb +0 -38
- data/app/concepts/matestack/ui/core/u/u.haml +0 -5
- data/app/concepts/matestack/ui/core/u/u.rb +0 -6
- data/app/concepts/matestack/ui/core/ul/ul.haml +0 -3
- data/app/concepts/matestack/ui/core/ul/ul.rb +0 -4
- data/app/concepts/matestack/ui/core/unescaped/unescaped.rb +0 -9
- data/app/concepts/matestack/ui/core/var/var.haml +0 -5
- data/app/concepts/matestack/ui/core/var/var.rb +0 -5
- data/app/concepts/matestack/ui/core/video/video.haml +0 -3
- data/app/concepts/matestack/ui/core/video/video.rb +0 -13
- data/app/concepts/matestack/ui/core/view/view.haml +0 -1
- data/app/concepts/matestack/ui/core/view/view.rb +0 -30
- data/app/concepts/matestack/ui/core/wbr/wbr.haml +0 -5
- data/app/concepts/matestack/ui/core/wbr/wbr.rb +0 -5
- data/app/concepts/matestack/ui/core/youtube/youtube.haml +0 -1
- data/app/concepts/matestack/ui/core/youtube/youtube.rb +0 -28
- data/app/helpers/matestack/ui/core/application_helper.rb +0 -111
- data/app/javascript/matestack-ui-core/index.js +0 -32
- data/app/javascript/matestack-ui-core/styles/index.scss +0 -5
- data/app/javascript/packs/matestack-ui-core.js +0 -8
- data/app/lib/matestack/ui/app.rb +0 -1
- data/app/lib/matestack/ui/component.rb +0 -1
- data/app/lib/matestack/ui/core/has_view_context.rb +0 -16
- data/app/lib/matestack/ui/core/html_attributes.rb +0 -43
- data/app/lib/matestack/ui/core/properties.rb +0 -161
- data/app/lib/matestack/ui/core/rendering/default_renderer_class_determiner.rb +0 -33
- data/app/lib/matestack/ui/core/rendering/main_renderer.rb +0 -203
- data/app/lib/matestack/ui/dynamic_actionview_component.rb +0 -1
- data/app/lib/matestack/ui/dynamic_component.rb +0 -1
- data/app/lib/matestack/ui/isolated_component.rb +0 -1
- data/app/lib/matestack/ui/page.rb +0 -1
- data/app/lib/matestack/ui/static_actionview_component.rb +0 -1
- data/app/lib/matestack/ui/static_component.rb +0 -1
- data/app/lib/matestack/ui/vue_js_component.rb +0 -1
- data/config/routes.rb +0 -2
- data/lib/generators/matestack/app/USAGE +0 -21
- data/lib/generators/matestack/app/app_generator.rb +0 -25
- data/lib/generators/matestack/app/templates/app/controllers/%file_name%_controller.rb.tt +0 -5
- data/lib/generators/matestack/app/templates/app/matestack/apps/%file_name%.rb.tt +0 -28
- data/lib/generators/matestack/component/USAGE +0 -20
- data/lib/generators/matestack/component/component_generator.rb +0 -29
- data/lib/generators/matestack/component/templates/app/matestack/components/%namespace%/%file_name%.haml.tt +0 -5
- data/lib/generators/matestack/component/templates/app/matestack/components/%namespace%/%file_name%.js.tt +0 -17
- data/lib/generators/matestack/component/templates/app/matestack/components/%namespace%/%file_name%.rb.tt +0 -11
- data/lib/generators/matestack/component/templates/app/matestack/components/%namespace%/%file_name%.scss.tt +0 -1
- data/lib/generators/matestack/core/component/USAGE +0 -16
- data/lib/generators/matestack/core/component/component_generator.rb +0 -23
- data/lib/generators/matestack/core/component/templates/app/concepts/matestack/ui/core/%file_name%/%file_name%.haml.tt +0 -5
- data/lib/generators/matestack/core/component/templates/app/concepts/matestack/ui/core/%file_name%/%file_name%.rb.tt +0 -4
- data/lib/generators/matestack/core/component/templates/docs/components/%file_name%.md.tt +0 -45
- data/lib/generators/matestack/core/component/templates/spec/usage/components/%file_name%_spec.rb +0 -31
- data/lib/generators/matestack/page/USAGE +0 -28
- data/lib/generators/matestack/page/page_generator.rb +0 -54
- data/lib/generators/matestack/page/templates/app/matestack/pages/%app_name%/%namespace%/%file_name%.rb.tt +0 -29
- data/lib/matestack/ui/core/cell.rb +0 -31
- data/lib/matestack/ui/core/component/registry.rb +0 -47
- data/lib/matestack/ui/core/components.rb +0 -271
- data/lib/matestack/ui/core/dsl.rb +0 -6
- data/lib/matestack/ui/core/engine.rb +0 -35
- data/lib/tasks/matestack/ui/core_tasks.rake +0 -4
- data/vendor/assets/javascripts/dist/manifest.json +0 -18
- data/vendor/assets/javascripts/dist/manifest.json.br +0 -0
- data/vendor/assets/javascripts/dist/manifest.json.gz +0 -0
- data/vendor/assets/javascripts/dist/matestack-ui-core.css +0 -3
- data/vendor/assets/javascripts/dist/matestack-ui-core.css.map +0 -1
- data/vendor/assets/javascripts/dist/matestack-ui-core.js +0 -17734
- data/vendor/assets/javascripts/dist/matestack-ui-core.js.map +0 -1
- data/vendor/assets/javascripts/dist/matestack-ui-core.min.css +0 -0
- data/vendor/assets/javascripts/dist/matestack-ui-core.min.js +0 -3
- data/vendor/assets/javascripts/dist/matestack-ui-core.min.js.LICENSE.txt +0 -11
- data/vendor/assets/javascripts/dist/matestack-ui-core.min.js.br +0 -0
- data/vendor/assets/javascripts/dist/matestack-ui-core.min.js.gz +0 -0
- data/vendor/assets/javascripts/dist/matestack-ui-core.min.js.map +0 -1
- data/vendor/assets/javascripts/dist/matestack-ui-core.min.js.map.br +0 -0
- data/vendor/assets/javascripts/dist/matestack-ui-core.min.js.map.gz +0 -0
- data/vendor/assets/javascripts/matestack-ui-core.js.erb +0 -2
- data/vendor/assets/stylesheets/dist +0 -1
- data/vendor/assets/stylesheets/matestack-ui-core.css.erb +0 -2
@@ -1,10 +0,0 @@
|
|
1
|
-
module Matestack::Ui::Core::Textarea
|
2
|
-
class Textarea < Matestack::Ui::Core::Component::Static
|
3
|
-
|
4
|
-
html_attributes :autofocus, :cols, :dirname, :disabled, :form, :maxlength,
|
5
|
-
:name, :placeholder, :readonly, :required, :rows, :wrap
|
6
|
-
|
7
|
-
optional :text
|
8
|
-
|
9
|
-
end
|
10
|
-
end
|
@@ -1,71 +0,0 @@
|
|
1
|
-
import Vue from 'vue/dist/vue.esm'
|
2
|
-
import matestackEventHub from '../js/event-hub'
|
3
|
-
import componentMixin from '../component/component'
|
4
|
-
|
5
|
-
const componentDef = {
|
6
|
-
mixins: [componentMixin],
|
7
|
-
data: function(){
|
8
|
-
return {
|
9
|
-
showing: true,
|
10
|
-
hide_after_timeout: null,
|
11
|
-
event: {
|
12
|
-
data: {}
|
13
|
-
}
|
14
|
-
}
|
15
|
-
},
|
16
|
-
methods: {
|
17
|
-
show: function(event_data){
|
18
|
-
const self = this
|
19
|
-
if (this.showing === true){
|
20
|
-
return
|
21
|
-
}
|
22
|
-
this.showing = true
|
23
|
-
this.event.data = event_data
|
24
|
-
if(this.componentConfig["hide_after"] != undefined){
|
25
|
-
self.hide_after_timeout = setTimeout(function () {
|
26
|
-
self.hide()
|
27
|
-
}, parseInt(this.componentConfig["hide_after"]));
|
28
|
-
}
|
29
|
-
},
|
30
|
-
hide: function(){
|
31
|
-
this.showing = false
|
32
|
-
this.event.data = {}
|
33
|
-
}
|
34
|
-
},
|
35
|
-
created: function () {
|
36
|
-
const self = this
|
37
|
-
if(this.componentConfig["show_on"] != undefined){
|
38
|
-
this.showing = false
|
39
|
-
var show_events = this.componentConfig["show_on"].split(",")
|
40
|
-
show_events.forEach(show_event => matestackEventHub.$on(show_event.trim(), self.show));
|
41
|
-
}
|
42
|
-
if(this.componentConfig["hide_on"] != undefined){
|
43
|
-
var hide_events = this.componentConfig["hide_on"].split(",")
|
44
|
-
hide_events.forEach(hide_event => matestackEventHub.$on(hide_event.trim(), self.hide));
|
45
|
-
}
|
46
|
-
if(this.componentConfig["show_on"] != undefined){
|
47
|
-
this.showing = false
|
48
|
-
}
|
49
|
-
if(this.componentConfig["init_show"] == true){
|
50
|
-
this.showing = true
|
51
|
-
}
|
52
|
-
},
|
53
|
-
beforeDestroy: function() {
|
54
|
-
const self = this
|
55
|
-
clearTimeout(self.hide_after_timeout)
|
56
|
-
matestackEventHub.$off(this.componentConfig["show_on"], self.show);
|
57
|
-
matestackEventHub.$off(this.componentConfig["hide_on"], self.hide);
|
58
|
-
if(this.componentConfig["show_on"] != undefined){
|
59
|
-
var shown_events = this.componentConfig["show_on"].split(",")
|
60
|
-
shown_events.forEach(show_event => matestackEventHub.$off(show_event.trim(), self.show));
|
61
|
-
}
|
62
|
-
if(this.componentConfig["hide_on"] != undefined){
|
63
|
-
var hiden_events = this.componentConfig["hide_on"].split(",")
|
64
|
-
hiden_events.forEach(hide_event => matestackEventHub.$off(hide_event.trim(), self.hide));
|
65
|
-
}
|
66
|
-
},
|
67
|
-
}
|
68
|
-
|
69
|
-
let component = Vue.component('matestack-ui-core-toggle', componentDef)
|
70
|
-
|
71
|
-
export default componentDef
|
@@ -1,13 +0,0 @@
|
|
1
|
-
module Matestack::Ui::Core::Toggle
|
2
|
-
class Toggle < Matestack::Ui::Core::Component::Dynamic
|
3
|
-
vue_js_component_name "matestack-ui-core-toggle"
|
4
|
-
|
5
|
-
def toggle_attributes
|
6
|
-
html_attributes.merge({
|
7
|
-
"v-if": "showing",
|
8
|
-
class: "matestack-toggle-component-root #{options[:class]}".strip
|
9
|
-
})
|
10
|
-
end
|
11
|
-
|
12
|
-
end
|
13
|
-
end
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import Vue from 'vue/dist/vue.esm'
|
2
|
-
import Vuex from 'vuex'
|
3
|
-
import componentMixin from '../component/component'
|
4
|
-
import matestackEventHub from '../js/event-hub'
|
5
|
-
|
6
|
-
const componentDef = {
|
7
|
-
mixins: [componentMixin],
|
8
|
-
data: function(){
|
9
|
-
return {}
|
10
|
-
},
|
11
|
-
computed: Vuex.mapState({
|
12
|
-
isActive (state) {
|
13
|
-
return (this.componentConfig["link_path"].split("?")[0]) === state.currentPathName
|
14
|
-
},
|
15
|
-
isChildActive (state) {
|
16
|
-
return ((this.componentConfig["link_path"].split("?")[0]) !== state.currentPathName) && (state.currentPathName.indexOf(this.componentConfig["link_path"].split("?")[0]) !== -1)
|
17
|
-
}
|
18
|
-
}),
|
19
|
-
methods: {
|
20
|
-
navigateTo: function(url){
|
21
|
-
const self = this
|
22
|
-
matestackEventHub.$emit("page_loading_triggered", url);
|
23
|
-
this.$store.commit('setPageLoading', true);
|
24
|
-
if (self.componentConfig["delay"] != undefined) {
|
25
|
-
setTimeout(function () {
|
26
|
-
self.performNavigation(url)
|
27
|
-
}, parseInt(self.componentConfig["delay"]));
|
28
|
-
} else {
|
29
|
-
this.performNavigation(url)
|
30
|
-
}
|
31
|
-
},
|
32
|
-
performNavigation: function(url){
|
33
|
-
this.$store.dispatch('navigateTo', {url: url, backwards: false}).then((response) => {
|
34
|
-
// self.asyncTemplate = response;
|
35
|
-
})
|
36
|
-
}
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
let component = Vue.component('matestack-ui-core-transition', componentDef)
|
41
|
-
|
42
|
-
export default componentDef
|
@@ -1,38 +0,0 @@
|
|
1
|
-
module Matestack::Ui::Core::Transition
|
2
|
-
class Transition < Matestack::Ui::Core::Component::Dynamic
|
3
|
-
vue_js_component_name "matestack-ui-core-transition"
|
4
|
-
|
5
|
-
requires :path
|
6
|
-
optional :text, params: { as: :transition_params }
|
7
|
-
|
8
|
-
def setup
|
9
|
-
@component_config[:link_path] = link_path
|
10
|
-
end
|
11
|
-
|
12
|
-
def transition_attributes
|
13
|
-
html_attributes.merge(
|
14
|
-
"href": link_path,
|
15
|
-
"@click.prevent": navigate_to(link_path),
|
16
|
-
"v-bind:class": "{ active: isActive, 'active-child': isChildActive }"
|
17
|
-
)
|
18
|
-
end
|
19
|
-
|
20
|
-
def link_path
|
21
|
-
if path.is_a?(Symbol)
|
22
|
-
return resolve_path
|
23
|
-
end
|
24
|
-
if path.is_a?(String)
|
25
|
-
return path
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
def resolve_path
|
30
|
-
begin
|
31
|
-
return ::Rails.application.routes.url_helpers.send(path, transition_params)
|
32
|
-
rescue => e
|
33
|
-
raise "path '#{path}' not found, using params: #{transition_params}"
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
end
|
38
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
module Matestack::Ui::Core::Video
|
2
|
-
class Video < Matestack::Ui::Core::Component::Static
|
3
|
-
html_attributes :autoplay, :controls, :height, :loop, :muted, :poster, :preload, :src, :width
|
4
|
-
|
5
|
-
requires :path, :type
|
6
|
-
|
7
|
-
def setup
|
8
|
-
@source = ActionController::Base.helpers.asset_path(path)
|
9
|
-
@type = "video/#{type}"
|
10
|
-
end
|
11
|
-
|
12
|
-
end
|
13
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
= include_partial
|
@@ -1,30 +0,0 @@
|
|
1
|
-
require "cell/partial"
|
2
|
-
|
3
|
-
module Matestack::Ui::Core::View
|
4
|
-
class View < Matestack::Ui::Core::Component::Static
|
5
|
-
include Cell::ViewModel::Partial
|
6
|
-
view_paths << "#{::Rails.root}/app/views"
|
7
|
-
|
8
|
-
# Only one option should be set at a time. If view is set partial will be ignored.
|
9
|
-
optional view: { as: :view_path } # Specify a view path to render
|
10
|
-
optional partial: { as: :partial_path } # Specifiy a partial to render
|
11
|
-
|
12
|
-
def include_partial
|
13
|
-
controller = @view_context.present? ? @view_context.controller : options[:matestack_context][:controller]
|
14
|
-
if view_path
|
15
|
-
controller.render_to_string view_path, layout: false, locals: locals
|
16
|
-
elsif partial_path
|
17
|
-
controller.render_to_string partial: partial_path, layout: false, locals: locals
|
18
|
-
else
|
19
|
-
raise 'view or partial param missing for RailsView Component'
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
private
|
24
|
-
|
25
|
-
def locals
|
26
|
-
options.except(:matestack_context, :partial, :view, :partial_path, :view_path, :included_config, :context)
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
30
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
%iframe{ youtube_attributes }
|
@@ -1,28 +0,0 @@
|
|
1
|
-
module Matestack::Ui::Core::Youtube
|
2
|
-
class Youtube < Matestack::Ui::Core::Component::Static
|
3
|
-
html_attributes :allow, :allowfullscreen, :allowpaymentrequest, :height, :name,
|
4
|
-
:referrerpolicy, :sandbox, :src, :srcdoc, :width
|
5
|
-
|
6
|
-
requires :youtube_id
|
7
|
-
optional :privacy_mode, :no_controls, :start_at
|
8
|
-
|
9
|
-
def setup
|
10
|
-
url = privacy_mode ? 'https://www.youtube-nocookie.com/embed/' : 'https://www.youtube.com/embed/'
|
11
|
-
@uri = URI("#{url}#{youtube_id}")
|
12
|
-
@uri.query = {
|
13
|
-
controls: (no_controls ? 0 : 1),
|
14
|
-
start: start_at
|
15
|
-
}.to_query
|
16
|
-
end
|
17
|
-
|
18
|
-
def youtube_attributes
|
19
|
-
html_attributes.merge(
|
20
|
-
src: @uri.to_s,
|
21
|
-
allow: 'accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture',
|
22
|
-
allowfullscreen: '',
|
23
|
-
frameborder: 0,
|
24
|
-
)
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
28
|
-
end
|
@@ -1,111 +0,0 @@
|
|
1
|
-
module Matestack
|
2
|
-
module Ui
|
3
|
-
module Core
|
4
|
-
# We're called ApplicationHelper but all we do so far is rendering.
|
5
|
-
module ApplicationHelper
|
6
|
-
|
7
|
-
# Allow the definition of a controller wide get_matestack_app_class
|
8
|
-
#
|
9
|
-
# class SomeController < ActionController::Base
|
10
|
-
# matestack_app MyAppClass
|
11
|
-
# #...
|
12
|
-
# end
|
13
|
-
#
|
14
|
-
def self.included(base)
|
15
|
-
base.extend(ClassMethods)
|
16
|
-
end
|
17
|
-
|
18
|
-
module ClassMethods
|
19
|
-
def matestack_app _class
|
20
|
-
@matestack_app_class = _class
|
21
|
-
end
|
22
|
-
|
23
|
-
def get_matestack_app_class
|
24
|
-
if defined?(@matestack_app_class)
|
25
|
-
@matestack_app_class
|
26
|
-
else
|
27
|
-
nil
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
32
|
-
|
33
|
-
# Matestack allows you to use `render` to render matestack pages.
|
34
|
-
#
|
35
|
-
# render Pages::Member::Bookings::Index
|
36
|
-
# render matestack: Pages::Member::Bookings::Index
|
37
|
-
#
|
38
|
-
def render(*args)
|
39
|
-
if (matestack_class = args.first).is_a?(Class) && (matestack_class < Matestack::Ui::Page)
|
40
|
-
options_hash = args[1].is_a?(Hash) ? args[1] : {}
|
41
|
-
Rendering::MainRenderer.render(self, matestack_class, options_hash)
|
42
|
-
elsif (options = args.first).is_a?(Hash) &&
|
43
|
-
(matestack_arg = options[:matestack]) &&
|
44
|
-
matestack_arg.is_a?(Class) &&
|
45
|
-
(matestack_arg < Matestack::Ui::Page)
|
46
|
-
Rendering::MainRenderer.render(self, matestack_arg, options)
|
47
|
-
else
|
48
|
-
if params[:component_class].present? && !((options = args.first).is_a?(Hash) && options[:html].present?)
|
49
|
-
Rendering::MainRenderer.render(self, Matestack::Ui::Page, {})
|
50
|
-
else
|
51
|
-
super
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
# TODO: maybe/Axe remove this?
|
57
|
-
# Matestack allows implicit rendering. The matestack page class name is inferred from the
|
58
|
-
# controller path and action name.
|
59
|
-
#
|
60
|
-
# class Clients::BookingsController < ApplicationController
|
61
|
-
# def index
|
62
|
-
# @bookings = Booking.all
|
63
|
-
# # looks for Pages::Clients::Bookings::Index
|
64
|
-
# end
|
65
|
-
#
|
66
|
-
# def show
|
67
|
-
# @booking = Booking.find params[:id]
|
68
|
-
# # looks for Pages::Clients::Bookings::Show
|
69
|
-
# end
|
70
|
-
# end
|
71
|
-
#
|
72
|
-
# In this example, `clients/bookings#index` will render `Pages::Clients::Bookings::Index`,
|
73
|
-
# `clients/bookings#show` will render `Pages::Clients::Bookings::Show`.
|
74
|
-
#
|
75
|
-
# Custom action names translate also into page names.
|
76
|
-
#
|
77
|
-
# class Clients::BookingsController < ApplicationController
|
78
|
-
# def step1
|
79
|
-
# # looks for Pages::Clients::Bookings::Step1
|
80
|
-
# end
|
81
|
-
# end
|
82
|
-
#
|
83
|
-
# In this example, the `clients/bookings#step1` action will render
|
84
|
-
# `Pages::Clients::Bookings::Step1`.
|
85
|
-
#
|
86
|
-
def default_render(*args)
|
87
|
-
matestack_page_class =
|
88
|
-
Rendering::DefaultRendererClassDeterminer.determine_class(controller_path, action_name)
|
89
|
-
if matestack_page_class
|
90
|
-
render matestack_page_class
|
91
|
-
else
|
92
|
-
super
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
# Kept around for compatibility. Probably worth removing.
|
97
|
-
def responder_for(*args)
|
98
|
-
render(*args)
|
99
|
-
end
|
100
|
-
|
101
|
-
def matestack_component(component, options = {}, &block)
|
102
|
-
controller = (self.class <= ActionController::Base) ? self : @_controller
|
103
|
-
context = (options[:matestack_context] ||= {}).merge(controller: controller)
|
104
|
-
Matestack::Ui::Core::Component::Base
|
105
|
-
.new(options.merge(context: context, matestack_context: context))
|
106
|
-
.send(component, options.merge(context: context, matestack_context: context), &block).to_s
|
107
|
-
end
|
108
|
-
end
|
109
|
-
end
|
110
|
-
end
|
111
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import Vue from 'vue/dist/vue.esm'
|
2
|
-
import Vuex from 'vuex'
|
3
|
-
import axios from 'axios'
|
4
|
-
|
5
|
-
// Import from app/concepts/matestack/ui/core:
|
6
|
-
import matestackEventHub from '../../../app/concepts/matestack/ui/core/js/event-hub'
|
7
|
-
import componentMixin from '../../../app/concepts/matestack/ui/core/component/component'
|
8
|
-
import formInputMixin from '../../../app/concepts/matestack/ui/core/form/input/mixin'
|
9
|
-
import formSelectMixin from '../../../app/concepts/matestack/ui/core/form/select/mixin'
|
10
|
-
import formRadioMixin from '../../../app/concepts/matestack/ui/core/form/radio/mixin'
|
11
|
-
import formCheckboxMixin from '../../../app/concepts/matestack/ui/core/form/checkbox/mixin'
|
12
|
-
import formTextareaMixin from '../../../app/concepts/matestack/ui/core/form/textarea/mixin'
|
13
|
-
import matestackUiCore from '../../../app/concepts/matestack/ui/core/js/core'
|
14
|
-
|
15
|
-
import styles from './styles/index.scss'
|
16
|
-
|
17
|
-
const MatestackUiCore = {
|
18
|
-
Vue,
|
19
|
-
Vuex,
|
20
|
-
axios,
|
21
|
-
matestackEventHub,
|
22
|
-
componentMixin,
|
23
|
-
formInputMixin,
|
24
|
-
formSelectMixin,
|
25
|
-
formCheckboxMixin,
|
26
|
-
formTextareaMixin,
|
27
|
-
formRadioMixin
|
28
|
-
}
|
29
|
-
|
30
|
-
window.MatestackUiCore = MatestackUiCore
|
31
|
-
|
32
|
-
export default MatestackUiCore
|
@@ -1,8 +0,0 @@
|
|
1
|
-
// // Add polyfills for the asset pipeline
|
2
|
-
// // https://github.com/matestack/matestack-ui-core/issues/238#issuecomment-583905838
|
3
|
-
//
|
4
|
-
// import 'core-js/stable'
|
5
|
-
// import 'regenerator-runtime/runtime'
|
6
|
-
|
7
|
-
import '../matestack-ui-core/index'
|
8
|
-
export default MatestackUiCore
|
data/app/lib/matestack/ui/app.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Matestack::Ui::App = Matestack::Ui::Core::App::App
|
@@ -1 +0,0 @@
|
|
1
|
-
Matestack::Ui::Component = Matestack::Ui::Core::Component::Static
|
@@ -1,16 +0,0 @@
|
|
1
|
-
module Matestack::Ui::Core::HasViewContext
|
2
|
-
def initialize(*args)
|
3
|
-
super
|
4
|
-
@view_context = @options.dig(:context, :view_context)
|
5
|
-
unless @view_context
|
6
|
-
@view_context = @options.dig(:matestack_context, :controller)&.view_context
|
7
|
-
end
|
8
|
-
end
|
9
|
-
def method_missing(*args, &block)
|
10
|
-
if @view_context.respond_to? args.first
|
11
|
-
@view_context.send(*args, &block)
|
12
|
-
else
|
13
|
-
raise NameError, "NameError: undefined method or local variable `#{args.first}' for #{self.class.name}"
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|