matestack-ui-core 1.0.0.rc.1 → 1.3.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.
- checksums.yaml +4 -4
- data/README.md +784 -18
- data/app/concepts/matestack/ui/core/abbr/abbr.haml +1 -1
- data/app/concepts/matestack/ui/core/abbr/abbr.rb +0 -8
- data/app/concepts/matestack/ui/core/action/action.haml +1 -1
- data/app/concepts/matestack/ui/core/actionview/dynamic.haml +4 -4
- data/app/concepts/matestack/ui/core/address/address.haml +2 -2
- data/app/concepts/matestack/ui/core/app/store.js +5 -1
- data/app/concepts/matestack/ui/core/area/area.haml +1 -1
- data/app/concepts/matestack/ui/core/area/area.rb +2 -16
- data/app/concepts/matestack/ui/core/article/article.haml +3 -3
- data/app/concepts/matestack/ui/core/article/article.rb +1 -1
- data/app/concepts/matestack/ui/core/aside/aside.haml +1 -1
- data/app/concepts/matestack/ui/core/aside/aside.rb +0 -1
- data/app/concepts/matestack/ui/core/async/async.js +6 -28
- data/app/concepts/matestack/ui/core/async/async.rb +11 -11
- data/app/concepts/matestack/ui/core/async/children_wrapper.haml +1 -1
- data/app/concepts/matestack/ui/core/b/b.haml +3 -3
- data/app/concepts/matestack/ui/core/b/b.rb +1 -1
- data/app/concepts/matestack/ui/core/bdi/bdi.haml +3 -3
- data/app/concepts/matestack/ui/core/bdi/bdi.rb +1 -0
- data/app/concepts/matestack/ui/core/bdo/bdo.haml +3 -3
- data/app/concepts/matestack/ui/core/bdo/bdo.rb +2 -7
- data/app/concepts/matestack/ui/core/blockquote/blockquote.haml +3 -3
- data/app/concepts/matestack/ui/core/blockquote/blockquote.rb +2 -7
- data/app/concepts/matestack/ui/core/br/br.haml +4 -4
- data/app/concepts/matestack/ui/core/br/br.rb +1 -1
- data/app/concepts/matestack/ui/core/button/button.haml +3 -3
- data/app/concepts/matestack/ui/core/button/button.rb +3 -7
- data/app/concepts/matestack/ui/core/cable/cable.haml +4 -0
- data/app/concepts/matestack/ui/core/cable/cable.js +100 -0
- data/app/concepts/matestack/ui/core/cable/cable.rb +28 -0
- data/app/concepts/matestack/ui/core/cable/children_wrapper.haml +2 -0
- data/app/concepts/matestack/ui/core/caption/caption.haml +3 -3
- data/app/concepts/matestack/ui/core/caption/caption.rb +1 -1
- data/app/concepts/matestack/ui/core/cite/cite.haml +3 -3
- data/app/concepts/matestack/ui/core/cite/cite.rb +1 -1
- data/app/concepts/matestack/ui/core/code/code.haml +3 -3
- data/app/concepts/matestack/ui/core/code/code.rb +1 -1
- data/app/concepts/matestack/ui/core/collection/content/content.js +2 -2
- data/app/concepts/matestack/ui/core/collection/content/content.rb +4 -6
- data/app/concepts/matestack/ui/core/collection/content/next/next.haml +1 -1
- data/app/concepts/matestack/ui/core/collection/content/page/link/link.haml +1 -1
- data/app/concepts/matestack/ui/core/collection/content/page/link/link.rb +1 -1
- data/app/concepts/matestack/ui/core/collection/content/previous/previous.haml +1 -1
- data/app/concepts/matestack/ui/core/collection/filter/filter.rb +1 -1
- data/app/concepts/matestack/ui/core/collection/filter/input/input.rb +11 -8
- data/app/concepts/matestack/ui/core/collection/filter/reset/reset.haml +1 -1
- data/app/concepts/matestack/ui/core/collection/filter/select/select.haml +6 -6
- data/app/concepts/matestack/ui/core/collection/filter/select/select.rb +10 -9
- data/app/concepts/matestack/ui/core/collection/filter/submit/submit.haml +1 -1
- data/app/concepts/matestack/ui/core/collection/order/order.rb +1 -1
- data/app/concepts/matestack/ui/core/collection/order/toggle/indicator/indicator.rb +5 -2
- data/app/concepts/matestack/ui/core/collection/order/toggle/toggle.haml +1 -1
- data/app/concepts/matestack/ui/core/collection/order/toggle/toggle.rb +0 -1
- data/app/concepts/matestack/ui/core/component/base.rb +10 -4
- data/app/concepts/matestack/ui/core/component/component.js +18 -1
- data/app/concepts/matestack/ui/core/component/dynamic.rb +2 -1
- data/app/concepts/matestack/ui/core/data/data.haml +3 -3
- data/app/concepts/matestack/ui/core/data/data.rb +2 -5
- data/app/concepts/matestack/ui/core/datalist/datalist.haml +2 -2
- data/app/concepts/matestack/ui/core/datalist/datalist.rb +1 -2
- data/app/concepts/matestack/ui/core/dd/dd.haml +3 -3
- data/app/concepts/matestack/ui/core/dd/dd.rb +1 -1
- data/app/concepts/matestack/ui/core/del/del.haml +3 -3
- data/app/concepts/matestack/ui/core/del/del.rb +2 -0
- data/app/concepts/matestack/ui/core/details/details.haml +1 -1
- data/app/concepts/matestack/ui/core/details/details.rb +1 -1
- data/app/concepts/matestack/ui/core/dfn/dfn.haml +3 -3
- data/app/concepts/matestack/ui/core/dfn/dfn.rb +1 -1
- data/app/concepts/matestack/ui/core/dialog/dialog.haml +3 -3
- data/app/concepts/matestack/ui/core/dialog/dialog.rb +2 -5
- data/app/concepts/matestack/ui/core/div/div.haml +1 -1
- data/app/concepts/matestack/ui/core/div/div.rb +0 -1
- data/app/concepts/matestack/ui/core/dl/dl.haml +3 -3
- data/app/concepts/matestack/ui/core/dl/dl.rb +2 -2
- data/app/concepts/matestack/ui/core/dt/dt.haml +3 -3
- data/app/concepts/matestack/ui/core/dt/dt.rb +1 -1
- data/app/concepts/matestack/ui/core/em/em.haml +3 -3
- data/app/concepts/matestack/ui/core/em/em.rb +1 -1
- data/app/concepts/matestack/ui/core/fieldset/fieldset.haml +4 -4
- data/app/concepts/matestack/ui/core/fieldset/fieldset.rb +3 -6
- data/app/concepts/matestack/ui/core/figure/figure.haml +1 -1
- data/app/concepts/matestack/ui/core/figure/figure.rb +0 -1
- data/app/concepts/matestack/ui/core/footer/footer.haml +1 -1
- data/app/concepts/matestack/ui/core/footer/footer.rb +0 -1
- data/app/concepts/matestack/ui/core/form/checkbox/base.rb +120 -0
- data/app/concepts/matestack/ui/core/form/checkbox/checkbox.js +15 -0
- data/app/concepts/matestack/ui/core/form/checkbox/checkbox.rb +7 -70
- data/app/concepts/matestack/ui/core/form/checkbox/mixin.js +80 -0
- data/app/concepts/matestack/ui/core/form/form.haml +1 -1
- data/app/concepts/matestack/ui/core/form/form.js +15 -46
- data/app/concepts/matestack/ui/core/form/form.rb +34 -28
- data/app/concepts/matestack/ui/core/form/input/base.rb +75 -0
- data/app/concepts/matestack/ui/core/form/input/input.js +15 -0
- data/app/concepts/matestack/ui/core/form/input/input.rb +8 -52
- data/app/concepts/matestack/ui/core/form/input/mixin.js +55 -0
- data/app/concepts/matestack/ui/core/form/radio/base.rb +90 -0
- data/app/concepts/matestack/ui/core/form/radio/mixin.js +62 -0
- data/app/concepts/matestack/ui/core/form/radio/radio.js +15 -0
- data/app/concepts/matestack/ui/core/form/radio/radio.rb +7 -62
- data/app/concepts/matestack/ui/core/form/select/base.rb +98 -0
- data/app/concepts/matestack/ui/core/form/select/mixin.js +58 -0
- data/app/concepts/matestack/ui/core/form/select/select.js +15 -0
- data/app/concepts/matestack/ui/core/form/select/select.rb +11 -80
- data/app/concepts/matestack/ui/core/form/submit/base.rb +12 -0
- data/app/concepts/matestack/ui/core/form/submit/submit.js +19 -0
- data/app/concepts/matestack/ui/core/form/submit/submit.rb +9 -6
- data/app/concepts/matestack/ui/core/form/textarea/base.rb +49 -0
- data/app/concepts/matestack/ui/core/form/textarea/mixin.js +41 -0
- data/app/concepts/matestack/ui/core/form/textarea/textarea.js +15 -0
- data/app/concepts/matestack/ui/core/form/textarea/textarea.rb +10 -21
- data/app/concepts/matestack/ui/core/header/header.haml +1 -1
- data/app/concepts/matestack/ui/core/header/header.rb +0 -1
- data/app/concepts/matestack/ui/core/heading/heading.haml +4 -49
- data/app/concepts/matestack/ui/core/heading/heading.rb +1 -3
- data/app/concepts/matestack/ui/core/hr/hr.haml +1 -1
- data/app/concepts/matestack/ui/core/hr/hr.rb +0 -1
- data/app/concepts/matestack/ui/core/icon/icon.haml +3 -3
- data/app/concepts/matestack/ui/core/icon/icon.rb +1 -1
- data/app/concepts/matestack/ui/core/iframe/iframe.haml +3 -3
- data/app/concepts/matestack/ui/core/iframe/iframe.rb +3 -10
- data/app/concepts/matestack/ui/core/img/img.haml +1 -1
- data/app/concepts/matestack/ui/core/img/img.rb +8 -8
- data/app/concepts/matestack/ui/core/input/input.rb +0 -4
- data/app/concepts/matestack/ui/core/ins/ins.haml +3 -3
- data/app/concepts/matestack/ui/core/ins/ins.rb +2 -6
- data/app/concepts/matestack/ui/core/isolated/children_wrapper.haml +1 -1
- data/app/concepts/matestack/ui/core/isolated/isolated.rb +1 -1
- data/app/concepts/matestack/ui/core/js/core.js +12 -0
- data/app/concepts/matestack/ui/core/kbd/kbd.haml +3 -3
- data/app/concepts/matestack/ui/core/kbd/kbd.rb +1 -0
- data/app/concepts/matestack/ui/core/label/label.haml +3 -3
- data/app/concepts/matestack/ui/core/label/label.rb +2 -6
- data/app/concepts/matestack/ui/core/legend/legend.haml +3 -3
- data/app/concepts/matestack/ui/core/legend/legend.rb +1 -1
- data/app/concepts/matestack/ui/core/li/li.haml +3 -3
- data/app/concepts/matestack/ui/core/li/li.rb +2 -1
- data/app/concepts/matestack/ui/core/link/link.haml +3 -3
- data/app/concepts/matestack/ui/core/link/link.rb +10 -14
- data/app/concepts/matestack/ui/core/main/main.haml +1 -1
- data/app/concepts/matestack/ui/core/main/main.rb +0 -1
- data/app/concepts/matestack/ui/core/map/map.haml +1 -1
- data/app/concepts/matestack/ui/core/map/map.rb +1 -7
- data/app/concepts/matestack/ui/core/mark/mark.haml +3 -3
- data/app/concepts/matestack/ui/core/mark/mark.rb +1 -0
- data/app/concepts/matestack/ui/core/meter/meter.haml +1 -1
- data/app/concepts/matestack/ui/core/meter/meter.rb +1 -10
- data/app/concepts/matestack/ui/core/nav/nav.haml +1 -1
- data/app/concepts/matestack/ui/core/nav/nav.rb +0 -1
- data/app/concepts/matestack/ui/core/noscript/noscript.haml +3 -3
- data/app/concepts/matestack/ui/core/noscript/noscript.rb +1 -1
- data/app/concepts/matestack/ui/core/object/object.haml +1 -1
- data/app/concepts/matestack/ui/core/object/object.rb +1 -11
- data/app/concepts/matestack/ui/core/ol/ol.haml +1 -1
- data/app/concepts/matestack/ui/core/ol/ol.rb +1 -1
- data/app/concepts/matestack/ui/core/onclick/onclick.haml +1 -1
- data/app/concepts/matestack/ui/core/optgroup/optgroup.haml +1 -1
- data/app/concepts/matestack/ui/core/optgroup/optgroup.rb +1 -6
- data/app/concepts/matestack/ui/core/option/option.haml +3 -3
- data/app/concepts/matestack/ui/core/option/option.rb +2 -8
- data/app/concepts/matestack/ui/core/output/output.haml +3 -3
- data/app/concepts/matestack/ui/core/output/output.rb +2 -7
- data/app/concepts/matestack/ui/core/page/content/content.rb +0 -1
- data/app/concepts/matestack/ui/core/page/page.haml +1 -1
- data/app/concepts/matestack/ui/core/paragraph/paragraph.haml +3 -3
- data/app/concepts/matestack/ui/core/paragraph/paragraph.rb +1 -1
- data/app/concepts/matestack/ui/core/param/param.haml +1 -1
- data/app/concepts/matestack/ui/core/param/param.rb +1 -6
- data/app/concepts/matestack/ui/core/partial/partial.rb +0 -1
- data/app/concepts/matestack/ui/core/picture/picture.haml +1 -1
- data/app/concepts/matestack/ui/core/pre/pre.haml +3 -3
- data/app/concepts/matestack/ui/core/pre/pre.rb +1 -1
- data/app/concepts/matestack/ui/core/progress/progress.haml +1 -1
- data/app/concepts/matestack/ui/core/progress/progress.rb +1 -10
- data/app/concepts/matestack/ui/core/q/q.haml +3 -3
- data/app/concepts/matestack/ui/core/q/q.rb +2 -7
- data/app/concepts/matestack/ui/core/rp/rp.haml +3 -3
- data/app/concepts/matestack/ui/core/rp/rp.rb +1 -1
- data/app/concepts/matestack/ui/core/rt/rt.haml +3 -3
- data/app/concepts/matestack/ui/core/rt/rt.rb +1 -1
- data/app/concepts/matestack/ui/core/ruby/ruby.haml +3 -3
- data/app/concepts/matestack/ui/core/ruby/ruby.rb +1 -1
- data/app/concepts/matestack/ui/core/s/s.haml +3 -3
- data/app/concepts/matestack/ui/core/s/s.rb +1 -1
- data/app/concepts/matestack/ui/core/samp/samp.haml +3 -3
- data/app/concepts/matestack/ui/core/samp/samp.rb +1 -0
- data/app/concepts/matestack/ui/core/section/section.haml +1 -1
- data/app/concepts/matestack/ui/core/section/section.rb +0 -1
- data/app/concepts/matestack/ui/core/{form/submit/submit.haml → select/select.haml} +1 -1
- data/app/concepts/matestack/ui/core/select/select.rb +7 -0
- data/app/concepts/matestack/ui/core/slot/slot.rb +0 -1
- data/app/concepts/matestack/ui/core/small/small.haml +3 -3
- data/app/concepts/matestack/ui/core/small/small.rb +1 -1
- data/app/concepts/matestack/ui/core/span/span.haml +3 -3
- data/app/concepts/matestack/ui/core/span/span.rb +1 -1
- data/app/concepts/matestack/ui/core/strong/strong.haml +3 -3
- data/app/concepts/matestack/ui/core/strong/strong.rb +1 -1
- data/app/concepts/matestack/ui/core/sub/sub.haml +3 -3
- data/app/concepts/matestack/ui/core/sub/sub.rb +1 -1
- data/app/concepts/matestack/ui/core/summary/summary.haml +3 -3
- data/app/concepts/matestack/ui/core/summary/summary.rb +1 -1
- data/app/concepts/matestack/ui/core/sup/sup.haml +3 -3
- data/app/concepts/matestack/ui/core/sup/sup.rb +1 -1
- data/app/concepts/matestack/ui/core/table/table.haml +1 -1
- data/app/concepts/matestack/ui/core/table/table.rb +0 -1
- data/app/concepts/matestack/ui/core/tbody/tbody.haml +1 -1
- data/app/concepts/matestack/ui/core/tbody/tbody.rb +0 -1
- data/app/concepts/matestack/ui/core/td/td.haml +3 -3
- data/app/concepts/matestack/ui/core/td/td.rb +2 -1
- data/app/concepts/matestack/ui/core/template/template.haml +1 -1
- data/app/concepts/matestack/ui/core/textarea/textarea.haml +4 -1
- data/app/concepts/matestack/ui/core/tfoot/tfoot.haml +1 -1
- data/app/concepts/matestack/ui/core/tfoot/tfoot.rb +0 -1
- data/app/concepts/matestack/ui/core/th/th.haml +3 -3
- data/app/concepts/matestack/ui/core/th/th.rb +2 -1
- data/app/concepts/matestack/ui/core/thead/thead.haml +1 -1
- data/app/concepts/matestack/ui/core/thead/thead.rb +0 -1
- data/app/concepts/matestack/ui/core/time/time.haml +1 -1
- data/app/concepts/matestack/ui/core/time/time.rb +1 -7
- data/app/concepts/matestack/ui/core/toggle/toggle.haml +1 -1
- data/app/concepts/matestack/ui/core/toggle/toggle.rb +4 -5
- data/app/concepts/matestack/ui/core/tr/tr.haml +1 -1
- data/app/concepts/matestack/ui/core/tr/tr.rb +0 -1
- data/app/concepts/matestack/ui/core/transition/transition.haml +3 -3
- data/app/concepts/matestack/ui/core/transition/transition.rb +13 -7
- data/app/concepts/matestack/ui/core/u/u.haml +3 -3
- data/app/concepts/matestack/ui/core/u/u.rb +1 -1
- data/app/concepts/matestack/ui/core/ul/ul.haml +1 -1
- data/app/concepts/matestack/ui/core/ul/ul.rb +0 -1
- data/app/concepts/matestack/ui/core/unescaped/unescaped.rb +2 -0
- data/app/concepts/matestack/ui/core/var/var.haml +3 -3
- data/app/concepts/matestack/ui/core/var/var.rb +1 -0
- data/app/concepts/matestack/ui/core/video/video.haml +2 -2
- data/app/concepts/matestack/ui/core/video/video.rb +3 -13
- data/app/concepts/matestack/ui/core/wbr/wbr.haml +5 -1
- data/app/concepts/matestack/ui/core/wbr/wbr.rb +1 -0
- data/app/concepts/matestack/ui/core/youtube/youtube.haml +1 -1
- data/app/concepts/matestack/ui/core/youtube/youtube.rb +18 -16
- data/app/helpers/matestack/ui/core/application_helper.rb +6 -2
- data/app/javascript/matestack-ui-core/index.js +12 -2
- data/app/lib/matestack/ui/core/has_view_context.rb +4 -2
- data/app/lib/matestack/ui/core/html_attributes.rb +1 -1
- data/app/lib/matestack/ui/core/properties.rb +95 -22
- data/app/lib/matestack/ui/core/rendering/main_renderer.rb +11 -7
- data/lib/matestack/ui/core/components.rb +6 -2
- data/lib/matestack/ui/core/version.rb +1 -1
- data/vendor/assets/javascripts/dist/matestack-ui-core.js +773 -99
- data/vendor/assets/javascripts/dist/matestack-ui-core.js.map +1 -1
- data/vendor/assets/javascripts/dist/matestack-ui-core.min.js +1 -1
- 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 +1 -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
- metadata +29 -8
- data/app/concepts/matestack/ui/core/collection/filter/input/input.haml +0 -2
- data/app/concepts/matestack/ui/core/component/rerender.rb +0 -8
- data/app/concepts/matestack/ui/core/form/select/select.haml +0 -9
@@ -394,7 +394,11 @@ const store = new vuex__WEBPACK_IMPORTED_MODULE_1__["default"].Store({
|
|
394
394
|
return getScrollParent(node.parentNode)
|
395
395
|
}
|
396
396
|
}
|
397
|
-
getScrollParent(document.getElementsByClassName("matestack-page-root")[0])
|
397
|
+
var scrollParent = getScrollParent(document.getElementsByClassName("matestack-page-root")[0])
|
398
|
+
if(scrollParent){
|
399
|
+
scrollParent.scrollTop = 0;
|
400
|
+
}
|
401
|
+
// getScrollParent(document.getElementsByClassName("matestack-page-root")[0]).scrollTop = 0
|
398
402
|
}
|
399
403
|
},
|
400
404
|
actions: {
|
@@ -548,19 +552,9 @@ const componentDef = {
|
|
548
552
|
},
|
549
553
|
created: function () {
|
550
554
|
const self = this
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
show_events.forEach(show_event => _js_event_hub__WEBPACK_IMPORTED_MODULE_3__["default"].$on(show_event.trim(), self.show));
|
555
|
-
}
|
556
|
-
if(this.componentConfig["hide_on"] != undefined){
|
557
|
-
var hide_events = this.componentConfig["hide_on"].split(",")
|
558
|
-
hide_events.forEach(hide_event => _js_event_hub__WEBPACK_IMPORTED_MODULE_3__["default"].$on(hide_event.trim(), self.hide));
|
559
|
-
}
|
560
|
-
if(this.componentConfig["rerender_on"] != undefined){
|
561
|
-
var rerender_events = this.componentConfig["rerender_on"].split(",")
|
562
|
-
rerender_events.forEach(rerender_event => _js_event_hub__WEBPACK_IMPORTED_MODULE_3__["default"].$on(rerender_event.trim(), self.rerender));
|
563
|
-
}
|
555
|
+
self.registerEvents(this.componentConfig['show_on'], self.show)
|
556
|
+
self.registerEvents(this.componentConfig['hide_on'], self.hide)
|
557
|
+
self.registerEvents(this.componentConfig['rerender_on'], self.rerender)
|
564
558
|
if(this.componentConfig["show_on"] != undefined){
|
565
559
|
this.showing = false
|
566
560
|
}
|
@@ -578,21 +572,9 @@ const componentDef = {
|
|
578
572
|
beforeDestroy: function() {
|
579
573
|
const self = this
|
580
574
|
clearTimeout(self.hideAfterTimeout)
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
if(this.componentConfig["show_on"] != undefined){
|
585
|
-
var shown_events = this.componentConfig["show_on"].split(",")
|
586
|
-
shown_events.forEach(show_event => _js_event_hub__WEBPACK_IMPORTED_MODULE_3__["default"].$off(show_event.trim(), self.show));
|
587
|
-
}
|
588
|
-
if(this.componentConfig["hide_on"] != undefined){
|
589
|
-
var hiden_events = this.componentConfig["hide_on"].split(",")
|
590
|
-
hiden_events.forEach(hide_event => _js_event_hub__WEBPACK_IMPORTED_MODULE_3__["default"].$off(hide_event.trim(), self.hide));
|
591
|
-
}
|
592
|
-
if(this.componentConfig["rerender_on"] != undefined){
|
593
|
-
var rerender_events = this.componentConfig["rerender_on"].split(",")
|
594
|
-
rerender_events.forEach(rerender_event => _js_event_hub__WEBPACK_IMPORTED_MODULE_3__["default"].$off(rerender_event.trim(), self.rerender));
|
595
|
-
}
|
575
|
+
self.removeEvents(this.componentConfig["show_on"], self.show)
|
576
|
+
self.removeEvents(this.componentConfig["hide_on"], self.hide)
|
577
|
+
self.removeEvents(this.componentConfig["rerender_on"], self.rerender)
|
596
578
|
},
|
597
579
|
components: {
|
598
580
|
VRuntimeTemplate: v_runtime_template__WEBPACK_IMPORTED_MODULE_2__["default"]
|
@@ -604,6 +586,123 @@ let component = vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__["default"].compone
|
|
604
586
|
/* harmony default export */ __webpack_exports__["default"] = (componentDef);
|
605
587
|
|
606
588
|
|
589
|
+
/***/ }),
|
590
|
+
|
591
|
+
/***/ "../app/concepts/matestack/ui/core/cable/cable.js":
|
592
|
+
/*!********************************************************!*\
|
593
|
+
!*** ../app/concepts/matestack/ui/core/cable/cable.js ***!
|
594
|
+
\********************************************************/
|
595
|
+
/*! exports provided: default */
|
596
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
597
|
+
|
598
|
+
"use strict";
|
599
|
+
__webpack_require__.r(__webpack_exports__);
|
600
|
+
/* harmony import */ var vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue/dist/vue.esm */ "../node_modules/vue/dist/vue.esm.js");
|
601
|
+
/* harmony import */ var v_runtime_template__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! v-runtime-template */ "../node_modules/v-runtime-template/dist/v-runtime-template.es.js");
|
602
|
+
/* harmony import */ var _js_event_hub__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../js/event-hub */ "../app/concepts/matestack/ui/core/js/event-hub.js");
|
603
|
+
/* harmony import */ var _component_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../component/component */ "../app/concepts/matestack/ui/core/component/component.js");
|
604
|
+
|
605
|
+
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
const componentDef = {
|
610
|
+
mixins: [_component_component__WEBPACK_IMPORTED_MODULE_3__["default"]],
|
611
|
+
props: {
|
612
|
+
initialTemplate: String,
|
613
|
+
},
|
614
|
+
data: function(){
|
615
|
+
return {
|
616
|
+
cableTemplate: null,
|
617
|
+
cableTemplateDomElement: null,
|
618
|
+
loading: false,
|
619
|
+
event: {
|
620
|
+
data: {}
|
621
|
+
}
|
622
|
+
}
|
623
|
+
},
|
624
|
+
methods: {
|
625
|
+
append: function(payload){
|
626
|
+
var html = this.formatPayload(payload)
|
627
|
+
this.cableTemplateDomElement.insertAdjacentHTML(
|
628
|
+
'beforeend',
|
629
|
+
html.join('')
|
630
|
+
)
|
631
|
+
this.updateCableTemplate()
|
632
|
+
},
|
633
|
+
prepend: function(payload){
|
634
|
+
var html = this.formatPayload(payload)
|
635
|
+
this.cableTemplateDomElement.insertAdjacentHTML(
|
636
|
+
'afterbegin',
|
637
|
+
html.join('')
|
638
|
+
)
|
639
|
+
this.updateCableTemplate()
|
640
|
+
},
|
641
|
+
delete: function(payload){
|
642
|
+
var ids = this.formatPayload(payload)
|
643
|
+
ids.forEach(id =>
|
644
|
+
this.cableTemplateDomElement.querySelector('#' + id).remove()
|
645
|
+
)
|
646
|
+
this.updateCableTemplate()
|
647
|
+
},
|
648
|
+
update: function(payload){
|
649
|
+
const self = this
|
650
|
+
var html = this.formatPayload(payload)
|
651
|
+
html.forEach(function(elem){
|
652
|
+
var dom_elem = document.createElement('div')
|
653
|
+
dom_elem.innerHTML = elem
|
654
|
+
var id = dom_elem.firstChild.id
|
655
|
+
var old_elem = self.cableTemplateDomElement.querySelector('#' + id)
|
656
|
+
old_elem.parentNode.replaceChild(dom_elem.firstChild, old_elem)
|
657
|
+
})
|
658
|
+
this.updateCableTemplate()
|
659
|
+
},
|
660
|
+
replace: function(payload){
|
661
|
+
var html = this.formatPayload(payload)
|
662
|
+
this.cableTemplateDomElement.innerHTML = html.join('')
|
663
|
+
this.updateCableTemplate()
|
664
|
+
},
|
665
|
+
updateCableTemplate: function(){
|
666
|
+
this.cableTemplate = this.cableTemplateDomElement.outerHTML
|
667
|
+
},
|
668
|
+
formatPayload: function(payload){
|
669
|
+
if(!Array.isArray(payload.data)){
|
670
|
+
return [payload.data]
|
671
|
+
}
|
672
|
+
return payload.data
|
673
|
+
},
|
674
|
+
},
|
675
|
+
mounted: function() {
|
676
|
+
const self = this
|
677
|
+
var dom_elem = document.createElement('div')
|
678
|
+
dom_elem.innerHTML = this.initialTemplate
|
679
|
+
this.cableTemplateDomElement = dom_elem.querySelector("#" + this.componentConfig["id"])
|
680
|
+
this.cableTemplate = this.cableTemplateDomElement.outerHTML
|
681
|
+
this.registerEvents(this.componentConfig['append_on'], self.append)
|
682
|
+
this.registerEvents(this.componentConfig['prepend_on'], self.prepend)
|
683
|
+
this.registerEvents(this.componentConfig['delete_on'], self.delete)
|
684
|
+
this.registerEvents(this.componentConfig['update_on'], self.update)
|
685
|
+
this.registerEvents(this.componentConfig['replace_on'], self.replace)
|
686
|
+
},
|
687
|
+
beforeDestroy: function() {
|
688
|
+
const self = this
|
689
|
+
this.cableTemplate = null
|
690
|
+
this.removeEvents(this.componentConfig['append_on'], self.append)
|
691
|
+
this.removeEvents(this.componentConfig['prepend_on'], self.prepend)
|
692
|
+
this.removeEvents(this.componentConfig['delete_on'], self.delete)
|
693
|
+
this.removeEvents(this.componentConfig['update_on'], self.update)
|
694
|
+
this.removeEvents(this.componentConfig['replace_on'], self.replace)
|
695
|
+
},
|
696
|
+
components: {
|
697
|
+
VRuntimeTemplate: v_runtime_template__WEBPACK_IMPORTED_MODULE_1__["default"]
|
698
|
+
}
|
699
|
+
}
|
700
|
+
|
701
|
+
let component = vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__["default"].component('matestack-ui-core-cable', componentDef)
|
702
|
+
|
703
|
+
/* harmony default export */ __webpack_exports__["default"] = (componentDef);
|
704
|
+
|
705
|
+
|
607
706
|
/***/ }),
|
608
707
|
|
609
708
|
/***/ "../app/concepts/matestack/ui/core/collection/content/content.js":
|
@@ -619,15 +718,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
619
718
|
/* harmony import */ var _js_event_hub__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../js/event-hub */ "../app/concepts/matestack/ui/core/js/event-hub.js");
|
620
719
|
/* harmony import */ var _js_helpers_query_params_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../js/helpers/query-params-helper */ "../app/concepts/matestack/ui/core/js/helpers/query-params-helper.js");
|
621
720
|
/* harmony import */ var _component_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../component/component */ "../app/concepts/matestack/ui/core/component/component.js");
|
622
|
-
/* harmony import */ var _async_async__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../async/async */ "../app/concepts/matestack/ui/core/async/async.js");
|
623
|
-
|
624
721
|
|
625
722
|
|
626
723
|
|
627
724
|
|
725
|
+
// import asyncMixin from '../../async/async'
|
628
726
|
|
629
727
|
const componentDef = {
|
630
|
-
mixins: [_component_component__WEBPACK_IMPORTED_MODULE_3__["default"]
|
728
|
+
mixins: [_component_component__WEBPACK_IMPORTED_MODULE_3__["default"]],
|
631
729
|
data: function(){
|
632
730
|
return {
|
633
731
|
currentLimit: null,
|
@@ -894,13 +992,155 @@ let component = vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__["default"].compone
|
|
894
992
|
|
895
993
|
"use strict";
|
896
994
|
__webpack_require__.r(__webpack_exports__);
|
995
|
+
/* harmony import */ var _js_event_hub__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../js/event-hub */ "../app/concepts/matestack/ui/core/js/event-hub.js");
|
996
|
+
|
997
|
+
|
897
998
|
const componentMixin = {
|
898
|
-
props: ['componentConfig', 'params']
|
999
|
+
props: ['componentConfig', 'params'],
|
1000
|
+
methods: {
|
1001
|
+
registerEvents: function(events, callback){
|
1002
|
+
if(events != undefined){
|
1003
|
+
var event_names = events.split(",")
|
1004
|
+
event_names.forEach(event_name => _js_event_hub__WEBPACK_IMPORTED_MODULE_0__["default"].$on(event_name.trim(), callback));
|
1005
|
+
}
|
1006
|
+
},
|
1007
|
+
removeEvents: function(events, callback){
|
1008
|
+
if(events != undefined){
|
1009
|
+
var event_names = events.split(",")
|
1010
|
+
event_names.forEach(event_name => _js_event_hub__WEBPACK_IMPORTED_MODULE_0__["default"].$off(event_name.trim(), callback));
|
1011
|
+
}
|
1012
|
+
}
|
1013
|
+
}
|
1014
|
+
|
899
1015
|
}
|
900
1016
|
|
901
1017
|
/* harmony default export */ __webpack_exports__["default"] = (componentMixin);
|
902
1018
|
|
903
1019
|
|
1020
|
+
/***/ }),
|
1021
|
+
|
1022
|
+
/***/ "../app/concepts/matestack/ui/core/form/checkbox/checkbox.js":
|
1023
|
+
/*!*******************************************************************!*\
|
1024
|
+
!*** ../app/concepts/matestack/ui/core/form/checkbox/checkbox.js ***!
|
1025
|
+
\*******************************************************************/
|
1026
|
+
/*! exports provided: default */
|
1027
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1028
|
+
|
1029
|
+
"use strict";
|
1030
|
+
__webpack_require__.r(__webpack_exports__);
|
1031
|
+
/* harmony import */ var vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue/dist/vue.esm */ "../node_modules/vue/dist/vue.esm.js");
|
1032
|
+
/* harmony import */ var _mixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mixin */ "../app/concepts/matestack/ui/core/form/checkbox/mixin.js");
|
1033
|
+
/* harmony import */ var _component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../component/component */ "../app/concepts/matestack/ui/core/component/component.js");
|
1034
|
+
|
1035
|
+
|
1036
|
+
|
1037
|
+
|
1038
|
+
|
1039
|
+
const componentDef = {
|
1040
|
+
mixins: [_component_component__WEBPACK_IMPORTED_MODULE_2__["default"], _mixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
|
1041
|
+
data() {
|
1042
|
+
return {};
|
1043
|
+
}
|
1044
|
+
}
|
1045
|
+
|
1046
|
+
let component = vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__["default"].component("matestack-ui-core-form-checkbox", componentDef);
|
1047
|
+
|
1048
|
+
/* harmony default export */ __webpack_exports__["default"] = (componentDef);
|
1049
|
+
|
1050
|
+
|
1051
|
+
/***/ }),
|
1052
|
+
|
1053
|
+
/***/ "../app/concepts/matestack/ui/core/form/checkbox/mixin.js":
|
1054
|
+
/*!****************************************************************!*\
|
1055
|
+
!*** ../app/concepts/matestack/ui/core/form/checkbox/mixin.js ***!
|
1056
|
+
\****************************************************************/
|
1057
|
+
/*! exports provided: default */
|
1058
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1059
|
+
|
1060
|
+
"use strict";
|
1061
|
+
__webpack_require__.r(__webpack_exports__);
|
1062
|
+
const formCheckboxMixin = {
|
1063
|
+
methods: {
|
1064
|
+
initialize: function(){
|
1065
|
+
const self = this
|
1066
|
+
let data = {};
|
1067
|
+
|
1068
|
+
for (let key in self.$refs) {
|
1069
|
+
let initValue = self.$refs[key]["attributes"]["init-value"];
|
1070
|
+
let valueType = self.$refs[key]["attributes"]["value-type"];
|
1071
|
+
|
1072
|
+
if (key.startsWith("select.")) {
|
1073
|
+
if (key.startsWith("select.multiple.")) {
|
1074
|
+
if (initValue) {
|
1075
|
+
data[key.replace("select.multiple.", "")] = JSON.parse(initValue["value"]);
|
1076
|
+
Object.assign(self.$parent.data, data);
|
1077
|
+
self.afterInitialize(JSON.parse(initValue["value"]))
|
1078
|
+
} else {
|
1079
|
+
data[key.replace("select.multiple.", "")] = [];
|
1080
|
+
Object.assign(self.$parent.data, data);
|
1081
|
+
self.afterInitialize([])
|
1082
|
+
}
|
1083
|
+
} else {
|
1084
|
+
if (initValue) {
|
1085
|
+
if (valueType && valueType["value"] == "Integer") {
|
1086
|
+
data[key.replace("select.", "")] = parseInt(initValue["value"]);
|
1087
|
+
Object.assign(self.$parent.data, data);
|
1088
|
+
self.afterInitialize(parseInt(initValue["value"]))
|
1089
|
+
} else {
|
1090
|
+
|
1091
|
+
data[key.replace("select.", "")] = initValue["value"];
|
1092
|
+
Object.assign(self.$parent.data, data);
|
1093
|
+
self.afterInitialize(initValue["value"])
|
1094
|
+
}
|
1095
|
+
} else {
|
1096
|
+
data[key.replace("select.", "")] = null;
|
1097
|
+
Object.assign(self.$parent.data, data);
|
1098
|
+
self.afterInitialize(null)
|
1099
|
+
}
|
1100
|
+
}
|
1101
|
+
} else {
|
1102
|
+
if (initValue) {
|
1103
|
+
if(initValue["value"] === "true"){
|
1104
|
+
data[key.replace("input.", "")] = true;
|
1105
|
+
Object.assign(self.$parent.data, data);
|
1106
|
+
self.afterInitialize(true)
|
1107
|
+
}
|
1108
|
+
if(initValue["value"] === "false"){
|
1109
|
+
data[key.replace("input.", "")] = false;
|
1110
|
+
Object.assign(self.$parent.data, data);
|
1111
|
+
self.afterInitialize(false)
|
1112
|
+
}
|
1113
|
+
} else {
|
1114
|
+
data[key.replace("input.", "")] = null;
|
1115
|
+
Object.assign(self.$parent.data, data);
|
1116
|
+
self.afterInitialize(null)
|
1117
|
+
}
|
1118
|
+
}
|
1119
|
+
}
|
1120
|
+
|
1121
|
+
//without the timeout it's somehow not working
|
1122
|
+
setTimeout(function () {
|
1123
|
+
self.$forceUpdate()
|
1124
|
+
}, 1);
|
1125
|
+
},
|
1126
|
+
inputChanged: function (key) {
|
1127
|
+
this.$parent.resetErrors(key);
|
1128
|
+
this.$forceUpdate();
|
1129
|
+
},
|
1130
|
+
afterInitialize: function(value){
|
1131
|
+
// can be used in the main component for further initialization steps
|
1132
|
+
},
|
1133
|
+
setValue: function (value){
|
1134
|
+
this.$parent.data[this.componentConfig["key"]] = value
|
1135
|
+
this.$forceUpdate();
|
1136
|
+
}
|
1137
|
+
}
|
1138
|
+
|
1139
|
+
}
|
1140
|
+
|
1141
|
+
/* harmony default export */ __webpack_exports__["default"] = (formCheckboxMixin);
|
1142
|
+
|
1143
|
+
|
904
1144
|
/***/ }),
|
905
1145
|
|
906
1146
|
/***/ "../app/concepts/matestack/ui/core/form/form.js":
|
@@ -938,9 +1178,6 @@ const componentDef = {
|
|
938
1178
|
initDataKey: function (key, initValue) {
|
939
1179
|
this.data[key] = initValue;
|
940
1180
|
},
|
941
|
-
inputChanged: function (key) {
|
942
|
-
this.resetErrors(key);
|
943
|
-
},
|
944
1181
|
updateFormValue: function (key, value) {
|
945
1182
|
this.data[key] = value;
|
946
1183
|
},
|
@@ -964,11 +1201,11 @@ const componentDef = {
|
|
964
1201
|
flat[i] = newVal;
|
965
1202
|
} else if (flat[i] instanceof File){
|
966
1203
|
flat[i] = newVal;
|
967
|
-
this.$refs["input
|
1204
|
+
this.$refs["input-component-for-"+i].value = newVal
|
968
1205
|
} else if (flat[i] instanceof Array) {
|
969
1206
|
if(flat[i][0] instanceof File){
|
970
1207
|
flat[i] = newVal
|
971
|
-
this.$refs["input
|
1208
|
+
this.$refs["input-component-for-"+i].value = newVal
|
972
1209
|
}
|
973
1210
|
} else if (typeof flat[i] === "object" && !(flat[i] instanceof Array)) {
|
974
1211
|
setProps(flat[i], newVal);
|
@@ -977,54 +1214,26 @@ const componentDef = {
|
|
977
1214
|
}
|
978
1215
|
}
|
979
1216
|
},
|
980
|
-
filesAdded: function (key) {
|
981
|
-
const dataTransfer = event.dataTransfer || event.target;
|
982
|
-
const files = dataTransfer.files;
|
983
|
-
if (event.target.attributes.multiple) {
|
984
|
-
this.data[key] = [];
|
985
|
-
for (let index in files) {
|
986
|
-
if (files[index] instanceof File) {
|
987
|
-
this.data[key].push(files[index]);
|
988
|
-
}
|
989
|
-
}
|
990
|
-
} else {
|
991
|
-
this.data[key] = files[0];
|
992
|
-
}
|
993
|
-
},
|
994
1217
|
initValues: function () {
|
995
1218
|
let self = this;
|
996
1219
|
let data = {};
|
997
1220
|
for (let key in self.$refs) {
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
if (key.startsWith("input.")) {
|
1002
|
-
if (initValue) {
|
1003
|
-
data[key.replace("input.", "")] = initValue["value"];
|
1004
|
-
} else {
|
1005
|
-
data[key.replace("input.", "")] = null;
|
1006
|
-
}
|
1221
|
+
if (key.startsWith("input-component")) {
|
1222
|
+
self.$refs[key].initialize()
|
1007
1223
|
}
|
1008
|
-
if (key.startsWith("
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
data[key.replace("select.", "")] = initValue["value"];
|
1020
|
-
}
|
1021
|
-
} else {
|
1022
|
-
data[key.replace("select.", "")] = null;
|
1023
|
-
}
|
1024
|
-
}
|
1224
|
+
if (key.startsWith("textarea-component")) {
|
1225
|
+
self.$refs[key].initialize()
|
1226
|
+
}
|
1227
|
+
if (key.startsWith("select-component")) {
|
1228
|
+
self.$refs[key].initialize()
|
1229
|
+
}
|
1230
|
+
if (key.startsWith("radio-component")) {
|
1231
|
+
self.$refs[key].initialize()
|
1232
|
+
}
|
1233
|
+
if (key.startsWith("checkbox-component")) {
|
1234
|
+
self.$refs[key].initialize()
|
1025
1235
|
}
|
1026
1236
|
}
|
1027
|
-
self.data = data;
|
1028
1237
|
},
|
1029
1238
|
shouldResetFormOnSuccessfulSubmit() {
|
1030
1239
|
const self = this;
|
@@ -1226,6 +1435,432 @@ let component = vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__["default"].compone
|
|
1226
1435
|
/* harmony default export */ __webpack_exports__["default"] = (componentDef);
|
1227
1436
|
|
1228
1437
|
|
1438
|
+
/***/ }),
|
1439
|
+
|
1440
|
+
/***/ "../app/concepts/matestack/ui/core/form/input/input.js":
|
1441
|
+
/*!*************************************************************!*\
|
1442
|
+
!*** ../app/concepts/matestack/ui/core/form/input/input.js ***!
|
1443
|
+
\*************************************************************/
|
1444
|
+
/*! exports provided: default */
|
1445
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1446
|
+
|
1447
|
+
"use strict";
|
1448
|
+
__webpack_require__.r(__webpack_exports__);
|
1449
|
+
/* harmony import */ var vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue/dist/vue.esm */ "../node_modules/vue/dist/vue.esm.js");
|
1450
|
+
/* harmony import */ var _mixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mixin */ "../app/concepts/matestack/ui/core/form/input/mixin.js");
|
1451
|
+
/* harmony import */ var _component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../component/component */ "../app/concepts/matestack/ui/core/component/component.js");
|
1452
|
+
|
1453
|
+
|
1454
|
+
|
1455
|
+
|
1456
|
+
|
1457
|
+
const componentDef = {
|
1458
|
+
mixins: [_component_component__WEBPACK_IMPORTED_MODULE_2__["default"], _mixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
|
1459
|
+
data() {
|
1460
|
+
return {};
|
1461
|
+
}
|
1462
|
+
}
|
1463
|
+
|
1464
|
+
let component = vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__["default"].component("matestack-ui-core-form-input", componentDef);
|
1465
|
+
|
1466
|
+
/* harmony default export */ __webpack_exports__["default"] = (componentDef);
|
1467
|
+
|
1468
|
+
|
1469
|
+
/***/ }),
|
1470
|
+
|
1471
|
+
/***/ "../app/concepts/matestack/ui/core/form/input/mixin.js":
|
1472
|
+
/*!*************************************************************!*\
|
1473
|
+
!*** ../app/concepts/matestack/ui/core/form/input/mixin.js ***!
|
1474
|
+
\*************************************************************/
|
1475
|
+
/*! exports provided: default */
|
1476
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1477
|
+
|
1478
|
+
"use strict";
|
1479
|
+
__webpack_require__.r(__webpack_exports__);
|
1480
|
+
const formInputMixin = {
|
1481
|
+
methods: {
|
1482
|
+
initialize: function(){
|
1483
|
+
const self = this
|
1484
|
+
let data = {};
|
1485
|
+
|
1486
|
+
for (let key in this.$refs) {
|
1487
|
+
let initValue = this.$refs[key]["attributes"]["init-value"];
|
1488
|
+
|
1489
|
+
if (initValue) {
|
1490
|
+
data[key.replace("input.", "")] = initValue["value"];
|
1491
|
+
Object.assign(self.$parent.data, data);
|
1492
|
+
self.afterInitialize(initValue["value"])
|
1493
|
+
} else {
|
1494
|
+
data[key.replace("input.", "")] = null;
|
1495
|
+
Object.assign(self.$parent.data, data);
|
1496
|
+
self.afterInitialize(null)
|
1497
|
+
}
|
1498
|
+
}
|
1499
|
+
|
1500
|
+
//without the timeout it's somehow not working
|
1501
|
+
setTimeout(function () {
|
1502
|
+
self.$forceUpdate()
|
1503
|
+
}, 1);
|
1504
|
+
},
|
1505
|
+
filesAdded: function (key) {
|
1506
|
+
const dataTransfer = event.dataTransfer || event.target;
|
1507
|
+
const files = dataTransfer.files;
|
1508
|
+
if (event.target.attributes.multiple) {
|
1509
|
+
this.$parent.data[key] = [];
|
1510
|
+
for (let index in files) {
|
1511
|
+
if (files[index] instanceof File) {
|
1512
|
+
this.$parent.data[key].push(files[index]);
|
1513
|
+
}
|
1514
|
+
}
|
1515
|
+
} else {
|
1516
|
+
this.$parent.data[key] = files[0];
|
1517
|
+
}
|
1518
|
+
},
|
1519
|
+
inputChanged: function (key) {
|
1520
|
+
this.$parent.resetErrors(key);
|
1521
|
+
this.$forceUpdate();
|
1522
|
+
},
|
1523
|
+
afterInitialize: function(value){
|
1524
|
+
// can be used in the main component for further initialization steps
|
1525
|
+
},
|
1526
|
+
setValue: function (value){
|
1527
|
+
this.$parent.data[this.componentConfig["key"]] = value
|
1528
|
+
this.$forceUpdate();
|
1529
|
+
}
|
1530
|
+
}
|
1531
|
+
|
1532
|
+
}
|
1533
|
+
|
1534
|
+
/* harmony default export */ __webpack_exports__["default"] = (formInputMixin);
|
1535
|
+
|
1536
|
+
|
1537
|
+
/***/ }),
|
1538
|
+
|
1539
|
+
/***/ "../app/concepts/matestack/ui/core/form/radio/mixin.js":
|
1540
|
+
/*!*************************************************************!*\
|
1541
|
+
!*** ../app/concepts/matestack/ui/core/form/radio/mixin.js ***!
|
1542
|
+
\*************************************************************/
|
1543
|
+
/*! exports provided: default */
|
1544
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1545
|
+
|
1546
|
+
"use strict";
|
1547
|
+
__webpack_require__.r(__webpack_exports__);
|
1548
|
+
const formRadioMixin = {
|
1549
|
+
methods: {
|
1550
|
+
initialize: function(){
|
1551
|
+
const self = this
|
1552
|
+
let data = {};
|
1553
|
+
|
1554
|
+
for (let key in self.$refs) {
|
1555
|
+
let initValue = self.$refs[key]["attributes"]["init-value"];
|
1556
|
+
let valueType = self.$refs[key]["attributes"]["value-type"];
|
1557
|
+
|
1558
|
+
if (key.startsWith("select.")) {
|
1559
|
+
if (key.startsWith("select.multiple.")) {
|
1560
|
+
if (initValue) {
|
1561
|
+
data[key.replace("select.multiple.", "")] = JSON.parse(initValue["value"]);
|
1562
|
+
Object.assign(self.$parent.data, data);
|
1563
|
+
self.afterInitialize(JSON.parse(initValue["value"]))
|
1564
|
+
} else {
|
1565
|
+
data[key.replace("select.multiple.", "")] = [];
|
1566
|
+
Object.assign(self.$parent.data, data);
|
1567
|
+
self.afterInitialize([])
|
1568
|
+
}
|
1569
|
+
} else {
|
1570
|
+
if (initValue) {
|
1571
|
+
if (valueType && valueType["value"] == "Integer") {
|
1572
|
+
data[key.replace("select.", "")] = parseInt(initValue["value"]);
|
1573
|
+
Object.assign(self.$parent.data, data);
|
1574
|
+
self.afterInitialize(parseInt(initValue["value"]))
|
1575
|
+
} else {
|
1576
|
+
data[key.replace("select.", "")] = initValue["value"];
|
1577
|
+
Object.assign(self.$parent.data, data);
|
1578
|
+
self.afterInitialize(initValue["value"])
|
1579
|
+
}
|
1580
|
+
} else {
|
1581
|
+
data[key.replace("select.", "")] = null;
|
1582
|
+
Object.assign(self.$parent.data, data);
|
1583
|
+
self.afterInitialize(null)
|
1584
|
+
}
|
1585
|
+
}
|
1586
|
+
}
|
1587
|
+
}
|
1588
|
+
|
1589
|
+
//without the timeout it's somehow not working
|
1590
|
+
setTimeout(function () {
|
1591
|
+
self.$forceUpdate();
|
1592
|
+
}, 1);
|
1593
|
+
},
|
1594
|
+
inputChanged: function (key) {
|
1595
|
+
this.$parent.resetErrors(key);
|
1596
|
+
this.$forceUpdate();
|
1597
|
+
},
|
1598
|
+
afterInitialize: function(value){
|
1599
|
+
// can be used in the main component for further initialization steps
|
1600
|
+
},
|
1601
|
+
setValue: function (value){
|
1602
|
+
this.$parent.data[this.componentConfig["key"]] = value
|
1603
|
+
this.$forceUpdate();
|
1604
|
+
}
|
1605
|
+
}
|
1606
|
+
|
1607
|
+
}
|
1608
|
+
|
1609
|
+
/* harmony default export */ __webpack_exports__["default"] = (formRadioMixin);
|
1610
|
+
|
1611
|
+
|
1612
|
+
/***/ }),
|
1613
|
+
|
1614
|
+
/***/ "../app/concepts/matestack/ui/core/form/radio/radio.js":
|
1615
|
+
/*!*************************************************************!*\
|
1616
|
+
!*** ../app/concepts/matestack/ui/core/form/radio/radio.js ***!
|
1617
|
+
\*************************************************************/
|
1618
|
+
/*! exports provided: default */
|
1619
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1620
|
+
|
1621
|
+
"use strict";
|
1622
|
+
__webpack_require__.r(__webpack_exports__);
|
1623
|
+
/* harmony import */ var vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue/dist/vue.esm */ "../node_modules/vue/dist/vue.esm.js");
|
1624
|
+
/* harmony import */ var _mixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mixin */ "../app/concepts/matestack/ui/core/form/radio/mixin.js");
|
1625
|
+
/* harmony import */ var _component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../component/component */ "../app/concepts/matestack/ui/core/component/component.js");
|
1626
|
+
|
1627
|
+
|
1628
|
+
|
1629
|
+
|
1630
|
+
|
1631
|
+
const componentDef = {
|
1632
|
+
mixins: [_component_component__WEBPACK_IMPORTED_MODULE_2__["default"], _mixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
|
1633
|
+
data() {
|
1634
|
+
return {};
|
1635
|
+
}
|
1636
|
+
}
|
1637
|
+
|
1638
|
+
let component = vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__["default"].component("matestack-ui-core-form-radio", componentDef);
|
1639
|
+
|
1640
|
+
/* harmony default export */ __webpack_exports__["default"] = (componentDef);
|
1641
|
+
|
1642
|
+
|
1643
|
+
/***/ }),
|
1644
|
+
|
1645
|
+
/***/ "../app/concepts/matestack/ui/core/form/select/mixin.js":
|
1646
|
+
/*!**************************************************************!*\
|
1647
|
+
!*** ../app/concepts/matestack/ui/core/form/select/mixin.js ***!
|
1648
|
+
\**************************************************************/
|
1649
|
+
/*! exports provided: default */
|
1650
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1651
|
+
|
1652
|
+
"use strict";
|
1653
|
+
__webpack_require__.r(__webpack_exports__);
|
1654
|
+
const formSelectMixin = {
|
1655
|
+
methods: {
|
1656
|
+
initialize: function(){
|
1657
|
+
const self = this
|
1658
|
+
let data = {};
|
1659
|
+
|
1660
|
+
for (let key in self.$refs) {
|
1661
|
+
let initValue = self.$refs[key]["attributes"]["init-value"];
|
1662
|
+
let valueType = self.$refs[key]["attributes"]["value-type"];
|
1663
|
+
|
1664
|
+
if (key.startsWith("select.")) {
|
1665
|
+
if (key.startsWith("select.multiple.")) {
|
1666
|
+
if (initValue) {
|
1667
|
+
data[key.replace("select.multiple.", "")] = JSON.parse(initValue["value"]);
|
1668
|
+
self.afterInitialize(JSON.parse(initValue["value"]))
|
1669
|
+
} else {
|
1670
|
+
data[key.replace("select.multiple.", "")] = [];
|
1671
|
+
self.afterInitialize([])
|
1672
|
+
}
|
1673
|
+
} else {
|
1674
|
+
if (initValue) {
|
1675
|
+
if (valueType && valueType["value"] == "Integer") {
|
1676
|
+
data[key.replace("select.", "")] = parseInt(initValue["value"]);
|
1677
|
+
self.afterInitialize(parseInt(initValue["value"]))
|
1678
|
+
} else {
|
1679
|
+
data[key.replace("select.", "")] = initValue["value"];
|
1680
|
+
self.afterInitialize(initValue["value"])
|
1681
|
+
}
|
1682
|
+
} else {
|
1683
|
+
data[key.replace("select.", "")] = null;
|
1684
|
+
self.afterInitialize(null)
|
1685
|
+
}
|
1686
|
+
}
|
1687
|
+
}
|
1688
|
+
}
|
1689
|
+
|
1690
|
+
//without the timeout it's somehow not working
|
1691
|
+
setTimeout(function () {
|
1692
|
+
Object.assign(self.$parent.data, data);
|
1693
|
+
self.$forceUpdate()
|
1694
|
+
}, 1);
|
1695
|
+
},
|
1696
|
+
inputChanged: function (key) {
|
1697
|
+
this.$parent.resetErrors(key);
|
1698
|
+
this.$forceUpdate();
|
1699
|
+
},
|
1700
|
+
afterInitialize: function(value){
|
1701
|
+
// can be used in the main component for further initialization steps
|
1702
|
+
},
|
1703
|
+
setValue: function (value){
|
1704
|
+
this.$parent.data[this.componentConfig["key"]] = value
|
1705
|
+
this.$forceUpdate();
|
1706
|
+
}
|
1707
|
+
}
|
1708
|
+
|
1709
|
+
}
|
1710
|
+
|
1711
|
+
/* harmony default export */ __webpack_exports__["default"] = (formSelectMixin);
|
1712
|
+
|
1713
|
+
|
1714
|
+
/***/ }),
|
1715
|
+
|
1716
|
+
/***/ "../app/concepts/matestack/ui/core/form/select/select.js":
|
1717
|
+
/*!***************************************************************!*\
|
1718
|
+
!*** ../app/concepts/matestack/ui/core/form/select/select.js ***!
|
1719
|
+
\***************************************************************/
|
1720
|
+
/*! exports provided: default */
|
1721
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1722
|
+
|
1723
|
+
"use strict";
|
1724
|
+
__webpack_require__.r(__webpack_exports__);
|
1725
|
+
/* harmony import */ var vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue/dist/vue.esm */ "../node_modules/vue/dist/vue.esm.js");
|
1726
|
+
/* harmony import */ var _mixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mixin */ "../app/concepts/matestack/ui/core/form/select/mixin.js");
|
1727
|
+
/* harmony import */ var _component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../component/component */ "../app/concepts/matestack/ui/core/component/component.js");
|
1728
|
+
|
1729
|
+
|
1730
|
+
|
1731
|
+
|
1732
|
+
|
1733
|
+
const componentDef = {
|
1734
|
+
mixins: [_component_component__WEBPACK_IMPORTED_MODULE_2__["default"], _mixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
|
1735
|
+
data() {
|
1736
|
+
return {};
|
1737
|
+
}
|
1738
|
+
}
|
1739
|
+
|
1740
|
+
let component = vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__["default"].component("matestack-ui-core-form-select", componentDef);
|
1741
|
+
|
1742
|
+
/* harmony default export */ __webpack_exports__["default"] = (componentDef);
|
1743
|
+
|
1744
|
+
|
1745
|
+
/***/ }),
|
1746
|
+
|
1747
|
+
/***/ "../app/concepts/matestack/ui/core/form/submit/submit.js":
|
1748
|
+
/*!***************************************************************!*\
|
1749
|
+
!*** ../app/concepts/matestack/ui/core/form/submit/submit.js ***!
|
1750
|
+
\***************************************************************/
|
1751
|
+
/*! exports provided: default */
|
1752
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1753
|
+
|
1754
|
+
"use strict";
|
1755
|
+
__webpack_require__.r(__webpack_exports__);
|
1756
|
+
/* harmony import */ var vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue/dist/vue.esm */ "../node_modules/vue/dist/vue.esm.js");
|
1757
|
+
/* harmony import */ var _component_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../component/component */ "../app/concepts/matestack/ui/core/component/component.js");
|
1758
|
+
|
1759
|
+
|
1760
|
+
|
1761
|
+
|
1762
|
+
const componentDef = {
|
1763
|
+
mixins: [_component_component__WEBPACK_IMPORTED_MODULE_1__["default"]],
|
1764
|
+
data() {
|
1765
|
+
return {};
|
1766
|
+
},
|
1767
|
+
methods: {
|
1768
|
+
loading: function(){
|
1769
|
+
return this.$parent.loading;
|
1770
|
+
}
|
1771
|
+
}
|
1772
|
+
}
|
1773
|
+
|
1774
|
+
let component = vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__["default"].component("matestack-ui-core-form-submit", componentDef);
|
1775
|
+
|
1776
|
+
/* harmony default export */ __webpack_exports__["default"] = (componentDef);
|
1777
|
+
|
1778
|
+
|
1779
|
+
/***/ }),
|
1780
|
+
|
1781
|
+
/***/ "../app/concepts/matestack/ui/core/form/textarea/mixin.js":
|
1782
|
+
/*!****************************************************************!*\
|
1783
|
+
!*** ../app/concepts/matestack/ui/core/form/textarea/mixin.js ***!
|
1784
|
+
\****************************************************************/
|
1785
|
+
/*! exports provided: default */
|
1786
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1787
|
+
|
1788
|
+
"use strict";
|
1789
|
+
__webpack_require__.r(__webpack_exports__);
|
1790
|
+
const formTextareaMixin = {
|
1791
|
+
methods: {
|
1792
|
+
initialize: function(){
|
1793
|
+
const self = this
|
1794
|
+
let data = {};
|
1795
|
+
|
1796
|
+
for (let key in this.$refs) {
|
1797
|
+
let initValue = this.$refs[key]["attributes"]["init-value"];
|
1798
|
+
|
1799
|
+
if (initValue) {
|
1800
|
+
data[key.replace("input.", "")] = initValue["value"];
|
1801
|
+
Object.assign(self.$parent.data, data);
|
1802
|
+
self.afterInitialize(initValue["value"])
|
1803
|
+
} else {
|
1804
|
+
data[key.replace("input.", "")] = null;
|
1805
|
+
Object.assign(self.$parent.data, data);
|
1806
|
+
self.afterInitialize(null)
|
1807
|
+
}
|
1808
|
+
}
|
1809
|
+
|
1810
|
+
//without the timeout it's somehow not working
|
1811
|
+
setTimeout(function () {
|
1812
|
+
self.$forceUpdate()
|
1813
|
+
}, 1);
|
1814
|
+
},
|
1815
|
+
inputChanged: function (key) {
|
1816
|
+
this.$parent.resetErrors(key);
|
1817
|
+
this.$forceUpdate();
|
1818
|
+
},
|
1819
|
+
afterInitialize: function(value){
|
1820
|
+
// can be used in the main component for further initialization steps
|
1821
|
+
},
|
1822
|
+
setValue: function (value){
|
1823
|
+
this.$parent.data[this.componentConfig["key"]] = value
|
1824
|
+
this.$forceUpdate();
|
1825
|
+
}
|
1826
|
+
}
|
1827
|
+
|
1828
|
+
}
|
1829
|
+
|
1830
|
+
/* harmony default export */ __webpack_exports__["default"] = (formTextareaMixin);
|
1831
|
+
|
1832
|
+
|
1833
|
+
/***/ }),
|
1834
|
+
|
1835
|
+
/***/ "../app/concepts/matestack/ui/core/form/textarea/textarea.js":
|
1836
|
+
/*!*******************************************************************!*\
|
1837
|
+
!*** ../app/concepts/matestack/ui/core/form/textarea/textarea.js ***!
|
1838
|
+
\*******************************************************************/
|
1839
|
+
/*! exports provided: default */
|
1840
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1841
|
+
|
1842
|
+
"use strict";
|
1843
|
+
__webpack_require__.r(__webpack_exports__);
|
1844
|
+
/* harmony import */ var vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue/dist/vue.esm */ "../node_modules/vue/dist/vue.esm.js");
|
1845
|
+
/* harmony import */ var _mixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./mixin */ "../app/concepts/matestack/ui/core/form/textarea/mixin.js");
|
1846
|
+
/* harmony import */ var _component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../component/component */ "../app/concepts/matestack/ui/core/component/component.js");
|
1847
|
+
|
1848
|
+
|
1849
|
+
|
1850
|
+
|
1851
|
+
|
1852
|
+
const componentDef = {
|
1853
|
+
mixins: [_component_component__WEBPACK_IMPORTED_MODULE_2__["default"], _mixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
|
1854
|
+
data() {
|
1855
|
+
return {};
|
1856
|
+
}
|
1857
|
+
}
|
1858
|
+
|
1859
|
+
let component = vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__["default"].component("matestack-ui-core-form-textarea", componentDef);
|
1860
|
+
|
1861
|
+
/* harmony default export */ __webpack_exports__["default"] = (componentDef);
|
1862
|
+
|
1863
|
+
|
1229
1864
|
/***/ }),
|
1230
1865
|
|
1231
1866
|
/***/ "../app/concepts/matestack/ui/core/isolated/isolated.js":
|
@@ -1367,19 +2002,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
1367
2002
|
/* harmony import */ var vue_turbolinks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-turbolinks */ "../node_modules/vue-turbolinks/index.js");
|
1368
2003
|
/* harmony import */ var _app_app__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../app/app */ "../app/concepts/matestack/ui/core/app/app.js");
|
1369
2004
|
/* harmony import */ var _async_async__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../async/async */ "../app/concepts/matestack/ui/core/async/async.js");
|
1370
|
-
/* harmony import */ var
|
1371
|
-
/* harmony import */ var
|
1372
|
-
/* harmony import */ var
|
1373
|
-
/* harmony import */ var
|
1374
|
-
/* harmony import */ var
|
1375
|
-
/* harmony import */ var
|
1376
|
-
/* harmony import */ var
|
1377
|
-
/* harmony import */ var
|
1378
|
-
/* harmony import */ var
|
1379
|
-
/* harmony import */ var
|
1380
|
-
/* harmony import */ var
|
1381
|
-
/* harmony import */ var
|
1382
|
-
/* harmony import */ var
|
2005
|
+
/* harmony import */ var _cable_cable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../cable/cable */ "../app/concepts/matestack/ui/core/cable/cable.js");
|
2006
|
+
/* harmony import */ var _page_content_content__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../page/content/content */ "../app/concepts/matestack/ui/core/page/content/content.js");
|
2007
|
+
/* harmony import */ var _toggle_toggle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../toggle/toggle */ "../app/concepts/matestack/ui/core/toggle/toggle.js");
|
2008
|
+
/* harmony import */ var _app_store__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../app/store */ "../app/concepts/matestack/ui/core/app/store.js");
|
2009
|
+
/* harmony import */ var _component_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../component/component */ "../app/concepts/matestack/ui/core/component/component.js");
|
2010
|
+
/* harmony import */ var _component_anonym_dynamic_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../component/anonym-dynamic-component */ "../app/concepts/matestack/ui/core/component/anonym-dynamic-component.js");
|
2011
|
+
/* harmony import */ var _transition_transition__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../transition/transition */ "../app/concepts/matestack/ui/core/transition/transition.js");
|
2012
|
+
/* harmony import */ var _action_action__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../action/action */ "../app/concepts/matestack/ui/core/action/action.js");
|
2013
|
+
/* harmony import */ var _form_form__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../form/form */ "../app/concepts/matestack/ui/core/form/form.js");
|
2014
|
+
/* harmony import */ var _form_input_input__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../form/input/input */ "../app/concepts/matestack/ui/core/form/input/input.js");
|
2015
|
+
/* harmony import */ var _form_input_mixin__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../form/input/mixin */ "../app/concepts/matestack/ui/core/form/input/mixin.js");
|
2016
|
+
/* harmony import */ var _form_select_select__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../form/select/select */ "../app/concepts/matestack/ui/core/form/select/select.js");
|
2017
|
+
/* harmony import */ var _form_select_mixin__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../form/select/mixin */ "../app/concepts/matestack/ui/core/form/select/mixin.js");
|
2018
|
+
/* harmony import */ var _form_radio_radio__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../form/radio/radio */ "../app/concepts/matestack/ui/core/form/radio/radio.js");
|
2019
|
+
/* harmony import */ var _form_radio_mixin__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../form/radio/mixin */ "../app/concepts/matestack/ui/core/form/radio/mixin.js");
|
2020
|
+
/* harmony import */ var _form_checkbox_checkbox__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../form/checkbox/checkbox */ "../app/concepts/matestack/ui/core/form/checkbox/checkbox.js");
|
2021
|
+
/* harmony import */ var _form_checkbox_mixin__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../form/checkbox/mixin */ "../app/concepts/matestack/ui/core/form/checkbox/mixin.js");
|
2022
|
+
/* harmony import */ var _form_textarea_textarea__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../form/textarea/textarea */ "../app/concepts/matestack/ui/core/form/textarea/textarea.js");
|
2023
|
+
/* harmony import */ var _form_textarea_mixin__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../form/textarea/mixin */ "../app/concepts/matestack/ui/core/form/textarea/mixin.js");
|
2024
|
+
/* harmony import */ var _form_submit_submit__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../form/submit/submit */ "../app/concepts/matestack/ui/core/form/submit/submit.js");
|
2025
|
+
/* harmony import */ var _onclick_onclick__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../onclick/onclick */ "../app/concepts/matestack/ui/core/onclick/onclick.js");
|
2026
|
+
/* harmony import */ var _collection_content_content__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../collection/content/content */ "../app/concepts/matestack/ui/core/collection/content/content.js");
|
2027
|
+
/* harmony import */ var _collection_filter_filter__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../collection/filter/filter */ "../app/concepts/matestack/ui/core/collection/filter/filter.js");
|
2028
|
+
/* harmony import */ var _collection_order_order__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../collection/order/order */ "../app/concepts/matestack/ui/core/collection/order/order.js");
|
2029
|
+
/* harmony import */ var _isolated_isolated__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../isolated/isolated */ "../app/concepts/matestack/ui/core/isolated/isolated.js");
|
1383
2030
|
|
1384
2031
|
|
1385
2032
|
|
@@ -1392,6 +2039,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
1392
2039
|
|
1393
2040
|
|
1394
2041
|
|
2042
|
+
|
2043
|
+
|
2044
|
+
|
2045
|
+
|
2046
|
+
|
2047
|
+
|
2048
|
+
|
2049
|
+
|
2050
|
+
|
2051
|
+
|
2052
|
+
|
2053
|
+
|
1395
2054
|
|
1396
2055
|
|
1397
2056
|
|
@@ -1412,7 +2071,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
1412
2071
|
matestackUiApp = new vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__["default"]({
|
1413
2072
|
el: "#matestack-ui",
|
1414
2073
|
mixins: [vue_turbolinks__WEBPACK_IMPORTED_MODULE_1__["turbolinksAdapterMixin"]],
|
1415
|
-
store:
|
2074
|
+
store: _app_store__WEBPACK_IMPORTED_MODULE_7__["default"]
|
1416
2075
|
})
|
1417
2076
|
})
|
1418
2077
|
|
@@ -1422,14 +2081,14 @@ document.addEventListener('turbolinks:load', () => {
|
|
1422
2081
|
// otherwise the matestack page will jump back to the latest pageTemplate
|
1423
2082
|
// fetched during the last matestack transition as the turbolinks powered
|
1424
2083
|
// page transition does not write the matestack store pageTemplate state variable
|
1425
|
-
|
2084
|
+
_app_store__WEBPACK_IMPORTED_MODULE_7__["default"].commit('resetPageTemplate')
|
1426
2085
|
// we need to destroy the vue app instance
|
1427
2086
|
matestackUiApp.$destroy();
|
1428
2087
|
// and recreate it right afterwards in order to work when used with turbolinks
|
1429
2088
|
matestackUiApp = new vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__["default"]({
|
1430
2089
|
el: "#matestack-ui",
|
1431
2090
|
mixins: [vue_turbolinks__WEBPACK_IMPORTED_MODULE_1__["turbolinksAdapterMixin"]],
|
1432
|
-
store:
|
2091
|
+
store: _app_store__WEBPACK_IMPORTED_MODULE_7__["default"]
|
1433
2092
|
})
|
1434
2093
|
})
|
1435
2094
|
|
@@ -1763,9 +2422,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
1763
2422
|
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_2__);
|
1764
2423
|
/* harmony import */ var _app_concepts_matestack_ui_core_js_event_hub__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../app/concepts/matestack/ui/core/js/event-hub */ "../app/concepts/matestack/ui/core/js/event-hub.js");
|
1765
2424
|
/* harmony import */ var _app_concepts_matestack_ui_core_component_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app/concepts/matestack/ui/core/component/component */ "../app/concepts/matestack/ui/core/component/component.js");
|
1766
|
-
/* harmony import */ var
|
1767
|
-
/* harmony import */ var
|
1768
|
-
/* harmony import */ var
|
2425
|
+
/* harmony import */ var _app_concepts_matestack_ui_core_form_input_mixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../app/concepts/matestack/ui/core/form/input/mixin */ "../app/concepts/matestack/ui/core/form/input/mixin.js");
|
2426
|
+
/* harmony import */ var _app_concepts_matestack_ui_core_form_select_mixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../app/concepts/matestack/ui/core/form/select/mixin */ "../app/concepts/matestack/ui/core/form/select/mixin.js");
|
2427
|
+
/* harmony import */ var _app_concepts_matestack_ui_core_form_radio_mixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../app/concepts/matestack/ui/core/form/radio/mixin */ "../app/concepts/matestack/ui/core/form/radio/mixin.js");
|
2428
|
+
/* harmony import */ var _app_concepts_matestack_ui_core_form_checkbox_mixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../app/concepts/matestack/ui/core/form/checkbox/mixin */ "../app/concepts/matestack/ui/core/form/checkbox/mixin.js");
|
2429
|
+
/* harmony import */ var _app_concepts_matestack_ui_core_form_textarea_mixin__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../app/concepts/matestack/ui/core/form/textarea/mixin */ "../app/concepts/matestack/ui/core/form/textarea/mixin.js");
|
2430
|
+
/* harmony import */ var _app_concepts_matestack_ui_core_js_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../app/concepts/matestack/ui/core/js/core */ "../app/concepts/matestack/ui/core/js/core.js");
|
2431
|
+
/* harmony import */ var _styles_index_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./styles/index.scss */ "../app/javascript/matestack-ui-core/styles/index.scss");
|
2432
|
+
/* harmony import */ var _styles_index_scss__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_styles_index_scss__WEBPACK_IMPORTED_MODULE_11__);
|
1769
2433
|
|
1770
2434
|
|
1771
2435
|
// Import from app/concepts/matestack/ui/core:
|
@@ -1774,12 +2438,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
1774
2438
|
|
1775
2439
|
|
1776
2440
|
|
2441
|
+
|
2442
|
+
|
2443
|
+
|
2444
|
+
|
2445
|
+
|
1777
2446
|
var MatestackUiCore = {
|
1778
2447
|
Vue: vue_dist_vue_esm__WEBPACK_IMPORTED_MODULE_0__["default"],
|
1779
2448
|
Vuex: vuex__WEBPACK_IMPORTED_MODULE_1__["default"],
|
1780
2449
|
axios: axios__WEBPACK_IMPORTED_MODULE_2___default.a,
|
1781
2450
|
matestackEventHub: _app_concepts_matestack_ui_core_js_event_hub__WEBPACK_IMPORTED_MODULE_3__["default"],
|
1782
|
-
componentMixin: _app_concepts_matestack_ui_core_component_component__WEBPACK_IMPORTED_MODULE_4__["default"]
|
2451
|
+
componentMixin: _app_concepts_matestack_ui_core_component_component__WEBPACK_IMPORTED_MODULE_4__["default"],
|
2452
|
+
formInputMixin: _app_concepts_matestack_ui_core_form_input_mixin__WEBPACK_IMPORTED_MODULE_5__["default"],
|
2453
|
+
formSelectMixin: _app_concepts_matestack_ui_core_form_select_mixin__WEBPACK_IMPORTED_MODULE_6__["default"],
|
2454
|
+
formCheckboxMixin: _app_concepts_matestack_ui_core_form_checkbox_mixin__WEBPACK_IMPORTED_MODULE_8__["default"],
|
2455
|
+
formTextareaMixin: _app_concepts_matestack_ui_core_form_textarea_mixin__WEBPACK_IMPORTED_MODULE_9__["default"],
|
2456
|
+
formRadioMixin: _app_concepts_matestack_ui_core_form_radio_mixin__WEBPACK_IMPORTED_MODULE_7__["default"]
|
1783
2457
|
};
|
1784
2458
|
window.MatestackUiCore = MatestackUiCore;
|
1785
2459
|
/* harmony default export */ __webpack_exports__["default"] = (MatestackUiCore);
|