matestack-ui-bootstrap 3.1.1 → 3.2.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dist/matestack-ui-bootstrap.esm.js +1 -0
- data/dist/stylesheets/matestack-ui-bootstrap.css +97 -0
- data/lib/matestack/ui/bootstrap/components/modal.rb +1 -0
- data/lib/matestack/ui/bootstrap/components/offcanvas.js +70 -0
- data/lib/matestack/ui/bootstrap/components/offcanvas.rb +61 -0
- data/lib/matestack/ui/bootstrap/index.js +2 -0
- data/lib/matestack/ui/bootstrap/registry.rb +2 -2
- data/lib/matestack/ui/bootstrap/stylesheets/matestack-ui-bootstrap.scss +0 -1
- data/lib/matestack/ui/bootstrap/version.rb +1 -1
- data/lib/matestack/ui/bootstrap.rb +1 -0
- metadata +10 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b44821eb43b0bf21493363641af10753431528e992b10707281523a09fbaac9
|
4
|
+
data.tar.gz: d42c9bdb4d38d318a333b2d4adf90484a13590e69941463029c37bc7ecd82700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c948fe46c7d5e0e0ceb019d780c87bf10ab447676dc31622fa292810ddae653996b1080055507a248bf6d496085a98ebcedd6e18a90e5a231dcb9dd14ad9e3f2
|
7
|
+
data.tar.gz: 9aaafed27e549ad740c06560ac978da4d8e6dc978f2ab796a3a700381880be54f3d24cf9ee49a66954743ca6cef24a50e07892c694f2c715b8281dd72b583af5
|
@@ -0,0 +1 @@
|
|
1
|
+
import*as o from"bootstrap";import n from"matestack-ui-vuejs";const t={mixins:[n.componentMixin],template:n.componentHelpers.inlineTemplate,data:()=>({alertInstance:void 0}),methods:{close:function(){this.alertInstance.close()},dispose:function(){this.alertInstance.dispose()}},mounted:function(){var n=this.getElement();this.alertInstance=new o.Alert(n)},created:function(){const o=this;null!=o.props.close_on&&o.props.close_on.split(",").forEach((t=>n.eventHub.$on(t.trim(),o.close)));null!=o.props.dispose_on&&o.props.dispose_on.split(",").forEach((t=>n.eventHub.$on(t.trim(),o.dispose)))},beforeUnmount:function(){const o=this;null!=o.props.close_on&&o.props.close_on.split(",").forEach((t=>n.eventHub.$off(t.trim(),o.close)));null!=o.props.dispose_on&&o.props.dispose_on.split(",").forEach((t=>n.eventHub.$off(t.trim(),o.dispose)))}},e={mixins:[n.componentMixin],template:n.componentHelpers.inlineTemplate,data:()=>({carouselInstance:void 0}),methods:{cycle:function(){this.carouselInstance.cycle()},pause:function(){this.carouselInstance.pause()},prev:function(){this.carouselInstance.prev()},next:function(){this.carouselInstance.next()}},mounted:function(){const n=this;var t=n.getElement();n.carouselInstance=new o.Carousel(t,{interval:n.props.interval||5e3})},created:function(){const o=this;null!=o.props.cycle_on&&o.props.cycle_on.split(",").forEach((t=>n.eventHub.$on(t.trim(),o.cycle)));null!=o.props.pause_on&&o.props.pause_on.split(",").forEach((t=>n.eventHub.$on(t.trim(),o.pause)));null!=o.props.prev_on&&o.props.prev_on.split(",").forEach((t=>n.eventHub.$on(t.trim(),o.prev)));null!=o.props.next_on&&o.props.next_on.split(",").forEach((t=>n.eventHub.$on(t.trim(),o.next)))},beforeUnmount:function(){const o=this;null!=o.props.cycle_on&&o.props.cycle_on.split(",").forEach((t=>n.eventHub.$off(t.trim(),o.cycle)));null!=o.props.pause_on&&o.props.pause_on.split(",").forEach((t=>n.eventHub.$off(t.trim(),o.pause)));null!=o.props.prev_on&&o.props.prev_on.split(",").forEach((t=>n.eventHub.$off(t.trim(),o.prev)));null!=o.props.next_on&&o.props.next_on.split(",").forEach((t=>n.eventHub.$off(t.trim(),o.next)))}},s={mixins:[n.componentMixin],template:n.componentHelpers.inlineTemplate,data:()=>({collapseInstance:void 0}),methods:{toggle:function(){this.collapseInstance.toggle()},show:function(){this.collapseInstance.show()},hide:function(){this.collapseInstance.hide()},dispose:function(){this.collapseInstance.hide(),this.collapseInstance.dispose()}},mounted:function(){const n=this.getElement();this.collapseInstance=new o.Collapse(n,{toggle:!1})},created:function(){const o=this;null!=o.props.toggle_on&&o.props.toggle_on.split(",").forEach((t=>n.eventHub.$on(t.trim(),o.toggle)));null!=o.props.show_on&&o.props.show_on.split(",").forEach((t=>n.eventHub.$on(t.trim(),o.show)));null!=o.props.hide_on&&o.props.hide_on.split(",").forEach((t=>n.eventHub.$on(t.trim(),o.hide)));null!=o.props.dispose_on&&o.props.dispose_on.split(",").forEach((t=>n.eventHub.$on(t.trim(),o.dispose)))},beforeUnmount:function(){const o=this;null!=o.props.toggle_on&&o.props.toggle_on.split(",").forEach((t=>n.eventHub.$off(t.trim(),o.show)));null!=o.props.show_on&&o.props.show_on.split(",").forEach((t=>n.eventHub.$off(t.trim(),o.show)));null!=o.props.hide_on&&o.props.hide_on.split(",").forEach((t=>n.eventHub.$off(t.trim(),o.hide)));null!=o.props.dispose_on&&o.props.dispose_on.split(",").forEach((t=>n.eventHub.$off(t.trim(),o.dispose)))}},i={mixins:[n.componentMixin],template:n.componentHelpers.inlineTemplate,data:()=>({dropdownInstance:void 0}),mounted(){}},p={mixins:[n.componentMixin],template:n.componentHelpers.inlineTemplate,data:()=>({modalInstance:void 0}),methods:{toggle:function(){this.modalInstance.toggle()},show:function(){this.modalInstance.show()},hide:function(){this.modalInstance.hide()},handleUpdate:function(){this.modalInstance.handleUpdate()},dispose:function(){this.modalInstance.dispose()}},mounted:function(){const n=this.getElement();this.modalInstance=new o.Modal(n)},created:function(){const o=this;var t=n.eventHub;null!=o.props.toggle_on&&o.props.toggle_on.split(",").forEach((n=>t.$on(n.trim(),o.toggle)));null!=o.props.show_on&&o.props.show_on.split(",").forEach((n=>t.$on(n.trim(),o.show)));null!=o.props.hide_on&&o.props.hide_on.split(",").forEach((n=>t.$on(n.trim(),o.hide)));null!=o.props.handle_update_on&&o.props.handle_update_on.split(",").forEach((n=>t.$on(n.trim(),o.handle_update)));null!=o.props.dispose_on&&o.props.dispose_on.split(",").forEach((n=>t.$on(n.trim(),o.dispose)))},beforeUnmount:function(){const o=this;var t=n.eventHub;null!=o.props.toggle_on&&o.props.toggle_on.split(",").forEach((n=>t.$off(n.trim(),o.toggle)));null!=o.props.show_on&&o.props.show_on.split(",").forEach((n=>t.$off(n.trim(),o.show)));null!=o.props.hide_on&&o.props.hide_on.split(",").forEach((n=>t.$off(n.trim(),o.hide)));null!=o.props.handle_update_on&&o.props.handle_update_on.split(",").forEach((n=>t.$off(n.trim(),o.handle_update)));null!=o.props.dispose_on&&o.props.dispose_on.split(",").forEach((n=>t.$off(n.trim(),o.dispose)))}},a={mixins:[n.componentMixin],template:n.componentHelpers.inlineTemplate,data:()=>({offcanvasInstance:void 0}),methods:{toggle:function(){this.offcanvasInstance.toggle()},show:function(){this.offcanvasInstance.show()},hide:function(){this.offcanvasInstance.hide()}},mounted:function(){const n=this.getElement();this.offcanvasInstance=new o.Offcanvas(n)},created:function(){const o=this;var t=n.eventHub;null!=o.props.toggle_on&&o.props.toggle_on.split(",").forEach((n=>t.$on(n.trim(),o.toggle)));null!=o.props.show_on&&o.props.show_on.split(",").forEach((n=>t.$on(n.trim(),o.show)));null!=o.props.hide_on&&o.props.hide_on.split(",").forEach((n=>t.$on(n.trim(),o.hide)))},beforeUnmount:function(){const o=this;var t=n.eventHub;null!=o.props.toggle_on&&o.props.toggle_on.split(",").forEach((n=>t.$off(n.trim(),o.toggle)));null!=o.props.show_on&&o.props.show_on.split(",").forEach((n=>t.$off(n.trim(),o.show)));null!=o.props.hide_on&&o.props.hide_on.split(",").forEach((n=>t.$off(n.trim(),o.hide)))}},l={mixins:[n.componentMixin],template:n.componentHelpers.inlineTemplate,data:()=>({popoverInstance:void 0}),methods:{},mounted:function(){const n=this.getElement();this.popoverInstance=new o.Popover(n,{})},created:function(){},beforeUnmount:function(){}},r={mixins:[n.componentMixin],template:n.componentHelpers.inlineTemplate,data:()=>({toastsInstance:void 0,eventData:{},showing:!1}),methods:{show:function(o){const n=this;this.props.autohide&&setTimeout((function(){n.showing=!1}),5e3),this.props.delay?setTimeout((function(){n.showing=!0}),parseInt(n.props.delay)):n.showing=!0,this.eventData=o},hide:function(o){const n=this;this.showing=!1,setTimeout((function(){n.eventData=!1}),500)},dispose:function(){const n=this;n.toastsInstance.dispose(),n.toastsInstance=new o.Toast(n.getElement())}},mounted:function(){var n=this.getElement();this.toastsInstance=new o.Toast(n)},created:function(){const o=this;null!=this.props.show_on&&this.props.show_on.split(",").forEach((t=>n.eventHub.$on(t.trim(),o.show)));null!=this.props.hide_on&&this.props.hide_on.split(",").forEach((t=>n.eventHub.$on(t.trim(),o.hide)));null!=this.props.dispose_on&&this.props.dispose_on.split(",").forEach((t=>n.eventHub.$on(t.trim(),o.dispose)))},beforeUnmount:function(){const o=this;(n.eventHub.$off(this.props.show_on,o.show),n.eventHub.$off(this.props.hide_on,o.hide),n.eventHub.$off(this.props.dispose_on,o.hide),null!=this.props.show_on)&&this.props.show_on.split(",").forEach((t=>n.eventHub.$off(t.trim(),o.show)));null!=this.props.hide_on&&this.props.hide_on.split(",").forEach((t=>n.eventHub.$off(t.trim(),o.hide)));null!=this.props.dispose_on&&this.props.dispose_on.split(",").forEach((t=>n.eventHub.$off(t.trim(),o.dispose)))}},c={mixins:[n.componentMixin],template:n.componentHelpers.inlineTemplate,data:()=>({}),methods:{},mounted:function(){var n=this.getElement();this.tooltipInstance=new o.Tooltip(n)}},h={mixins:[n.componentMixin],template:n.componentHelpers.inlineTemplate,data:()=>({sidebarOpen:!1}),methods:{sidebarToggle:function(){document.getElementById("sidebar").classList.contains("closed")?this.openSideBar():this.closeSideBar()},openSideBar:function(){var o=document.getElementById("sidebar"),n=document.getElementById("content");this.sidebarOpen=!0,o.classList.remove("closed"),o.classList.add("open"),n.classList.add("sidebar-open")},closeSideBar:function(){var o=document.getElementById("sidebar"),n=document.getElementById("content");this.sidebarOpen=!1,o.classList.add("closed"),o.classList.remove("open"),n.classList.remove("sidebar-open")},resizeCallback:function(){window.innerWidth<=992?this.closeSideBar():this.openSideBar()}},mounted:function(){window.innerWidth<=992&&(this.sidebarOpen=!0),window.addEventListener("resize",this.resizeCallback);var o=this;n.eventHub.$on("page_loaded",(function(){window.innerWidth<=992&&o.closeSideBar()})),n.eventHub.$on("page_loading_triggered",(function(){window.innerWidth<=992&&o.closeSideBar()}))}},d={registerComponents:function(o){return o.component("matestack-ui-bootstrap-alert",t),o.component("matestack-ui-bootstrap-carousel",e),o.component("matestack-ui-bootstrap-collapse",s),o.component("matestack-ui-bootstrap-dropdown",i),o.component("matestack-ui-bootstrap-modal",p),o.component("matestack-ui-bootstrap-offcanvas",a),o.component("matestack-ui-bootstrap-popover",l),o.component("matestack-ui-bootstrap-toast",r),o.component("matestack-ui-bootstrap-tooltip",c),o.component("matestack-ui-bootstrap-sidebar",h),o}};window.MatestackUiBootstrap=d;export{d as default};
|
@@ -0,0 +1,97 @@
|
|
1
|
+
.matestack-page-container .matestack-page-wrapper {
|
2
|
+
opacity: 1;
|
3
|
+
transition: opacity 0.2s ease-in-out;
|
4
|
+
}
|
5
|
+
.matestack-page-container .matestack-page-wrapper.loading {
|
6
|
+
opacity: 0;
|
7
|
+
}
|
8
|
+
.matestack-page-container .loading-state-element-wrapper {
|
9
|
+
opacity: 0;
|
10
|
+
transition: opacity 0.3s ease-in-out;
|
11
|
+
}
|
12
|
+
.matestack-page-container .loading-state-element-wrapper.loading {
|
13
|
+
opacity: 1;
|
14
|
+
}
|
15
|
+
|
16
|
+
.matestack-async-component-container {
|
17
|
+
opacity: 1;
|
18
|
+
transition: opacity 0.2s ease-in-out;
|
19
|
+
}
|
20
|
+
.matestack-async-component-container.loading {
|
21
|
+
opacity: 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
.matestack-isolated-component-container {
|
25
|
+
opacity: 1;
|
26
|
+
transition: opacity 0.2s ease-in-out;
|
27
|
+
}
|
28
|
+
.matestack-isolated-component-container.loading {
|
29
|
+
opacity: 0;
|
30
|
+
}
|
31
|
+
|
32
|
+
.matestack-app-wrapper {
|
33
|
+
overflow-x: hidden;
|
34
|
+
}
|
35
|
+
|
36
|
+
.content-wrapper {
|
37
|
+
position: relative;
|
38
|
+
min-height: 101vh;
|
39
|
+
transition: 0.5s;
|
40
|
+
}
|
41
|
+
@media (max-width: 992px) {
|
42
|
+
.content-wrapper.sidebar-open {
|
43
|
+
margin-left: -300px;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
.sidebar-wrapper {
|
48
|
+
position: relative;
|
49
|
+
z-index: 10;
|
50
|
+
transition: 0.5s;
|
51
|
+
flex-grow: 0; /* do not grow - initial value: 0 */
|
52
|
+
flex-shrink: 0; /* do not shrink - initial value: 1 */
|
53
|
+
flex-basis: 300px; /* width/height - initial value: auto */
|
54
|
+
}
|
55
|
+
.sidebar-wrapper .sidebar-toggler {
|
56
|
+
transition: 0.5s;
|
57
|
+
position: relative;
|
58
|
+
left: 290px;
|
59
|
+
}
|
60
|
+
.sidebar-wrapper.closed {
|
61
|
+
margin-left: -300px;
|
62
|
+
}
|
63
|
+
.sidebar-wrapper.open {
|
64
|
+
margin-left: 0px;
|
65
|
+
}
|
66
|
+
@media (max-width: 992px) {
|
67
|
+
.sidebar-wrapper {
|
68
|
+
margin-left: -300px;
|
69
|
+
}
|
70
|
+
.sidebar-wrapper.open {
|
71
|
+
margin-left: 0px;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
.sidebar-wrapper .sidebar {
|
75
|
+
min-height: 100vh;
|
76
|
+
height: 100%;
|
77
|
+
}
|
78
|
+
.sidebar-wrapper .sidebar .sidebar-top {
|
79
|
+
margin-top: -35px;
|
80
|
+
}
|
81
|
+
.sidebar-wrapper .sidebar .sidebar-top a {
|
82
|
+
text-decoration: none;
|
83
|
+
}
|
84
|
+
.sidebar-wrapper .sidebar .list-group-item.active {
|
85
|
+
margin-top: 0px !important;
|
86
|
+
}
|
87
|
+
.sidebar-wrapper .sidebar .list-group-item.active-child {
|
88
|
+
color: var(--bs-white);
|
89
|
+
background-color: var(--bs-primary);
|
90
|
+
}
|
91
|
+
|
92
|
+
.smart-collection .pagination .page-item {
|
93
|
+
cursor: pointer;
|
94
|
+
}
|
95
|
+
.smart-collection .pagination .page-item.disabled {
|
96
|
+
cursor: initial;
|
97
|
+
}
|
@@ -17,6 +17,7 @@ class Matestack::Ui::Bootstrap::Components::Modal < Matestack::Ui::Bootstrap::Ba
|
|
17
17
|
optional :static, :keyboard, :scrollable, :centered
|
18
18
|
optional :modal_dialog_class
|
19
19
|
optional :id
|
20
|
+
optional class: { as: :bs_class }
|
20
21
|
# event trigger
|
21
22
|
optional :toggle_on, :show_on, :hide_on, :handle_update_on, :dispose_on
|
22
23
|
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import * as bootstrap from 'bootstrap'
|
2
|
+
import MatestackUiVueJs from 'matestack-ui-vuejs'
|
3
|
+
|
4
|
+
const offcanvasComponent = {
|
5
|
+
mixins: [MatestackUiVueJs.componentMixin],
|
6
|
+
template: MatestackUiVueJs.componentHelpers.inlineTemplate,
|
7
|
+
|
8
|
+
data() {
|
9
|
+
return {
|
10
|
+
offcanvasInstance: undefined,
|
11
|
+
};
|
12
|
+
},
|
13
|
+
|
14
|
+
methods: {
|
15
|
+
toggle: function (){
|
16
|
+
this.offcanvasInstance.toggle()
|
17
|
+
},
|
18
|
+
show: function (){
|
19
|
+
this.offcanvasInstance.show()
|
20
|
+
},
|
21
|
+
hide: function (){
|
22
|
+
this.offcanvasInstance.hide()
|
23
|
+
}
|
24
|
+
},
|
25
|
+
|
26
|
+
mounted: function() {
|
27
|
+
const self = this
|
28
|
+
const offcanvasElement = self.getElement()
|
29
|
+
self.offcanvasInstance = new bootstrap.Offcanvas(offcanvasElement)
|
30
|
+
},
|
31
|
+
|
32
|
+
created: function() {
|
33
|
+
const self = this
|
34
|
+
var eventHub = MatestackUiVueJs.eventHub;
|
35
|
+
// toggle_on event registration
|
36
|
+
if(self.props["toggle_on"] != undefined){
|
37
|
+
var toggle_events = self.props["toggle_on"].split(",")
|
38
|
+
toggle_events.forEach(toggle_event => eventHub.$on(toggle_event.trim(), self.toggle));
|
39
|
+
}
|
40
|
+
// show_on event registration
|
41
|
+
if(self.props["show_on"] != undefined){
|
42
|
+
var show_events = self.props["show_on"].split(",")
|
43
|
+
show_events.forEach(show_event => eventHub.$on(show_event.trim(), self.show));
|
44
|
+
}
|
45
|
+
// hide_on event registration
|
46
|
+
if(self.props["hide_on"] != undefined){
|
47
|
+
var hide_events = self.props["hide_on"].split(",")
|
48
|
+
hide_events.forEach(hide_event => eventHub.$on(hide_event.trim(), self.hide));
|
49
|
+
}
|
50
|
+
},
|
51
|
+
|
52
|
+
beforeUnmount: function() {
|
53
|
+
const self = this
|
54
|
+
var eventHub = MatestackUiVueJs.eventHub;
|
55
|
+
if(self.props["toggle_on"] != undefined){
|
56
|
+
var toggle_events = self.props["toggle_on"].split(",")
|
57
|
+
toggle_events.forEach(toggle_event => eventHub.$off(toggle_event.trim(), self.toggle));
|
58
|
+
}
|
59
|
+
if(self.props["show_on"] != undefined){
|
60
|
+
var show_events = self.props["show_on"].split(",")
|
61
|
+
show_events.forEach(show_event => eventHub.$off(show_event.trim(), self.show));
|
62
|
+
}
|
63
|
+
if(self.props["hide_on"] != undefined){
|
64
|
+
var hide_events = self.props["hide_on"].split(",")
|
65
|
+
hide_events.forEach(hide_event => eventHub.$off(hide_event.trim(), self.hide));
|
66
|
+
}
|
67
|
+
},
|
68
|
+
}
|
69
|
+
|
70
|
+
export default offcanvasComponent
|
@@ -0,0 +1,61 @@
|
|
1
|
+
require_relative "../base_vue_js_component"
|
2
|
+
|
3
|
+
class Matestack::Ui::Bootstrap::Components::Offcanvas < Matestack::Ui::Bootstrap::BaseVueJsComponent
|
4
|
+
|
5
|
+
vue_name 'matestack-ui-bootstrap-offcanvas'
|
6
|
+
|
7
|
+
optional :id
|
8
|
+
optional class: { as: :bs_class }
|
9
|
+
optional :placement # start, end, top, bottom - default: start
|
10
|
+
optional :scroll # true, false - default: false
|
11
|
+
optional :backdrop # true, false - default: true
|
12
|
+
optional :static_title # any string - default: ""
|
13
|
+
|
14
|
+
optional :toggle_on, :show_on, :hide_on, :handle_update_on, :dispose_on
|
15
|
+
|
16
|
+
|
17
|
+
def response
|
18
|
+
div offcanvas_attributes do
|
19
|
+
div class: "offcanvas-header" do
|
20
|
+
h5 class:"offcanvas-title", id: "#{context.id}Label", text: "#{context.static_title}"
|
21
|
+
button type: "button", class:"btn-close", "data-bs-dismiss": "offcanvas", "aria-label": "Close"
|
22
|
+
end
|
23
|
+
div class:"offcanvas-body" do
|
24
|
+
yield
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
protected
|
30
|
+
|
31
|
+
def offcanvas_attributes
|
32
|
+
attributes = {}.tap do |hash|
|
33
|
+
hash[:id] = context.id
|
34
|
+
hash[:class] = offcanvas_classes
|
35
|
+
hash[:attributes] = { 'tabindex': "-1", 'aria-labelledby': "#{context.id}Label" }
|
36
|
+
hash[:data] = {}.tap do |data|
|
37
|
+
data["bs-scroll"] = "#{context.scroll&.to_s || "false"}"
|
38
|
+
data["bs-backdrop"] = "#{context.backdrop&.to_s || "true"}"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
options.merge(
|
42
|
+
attributes
|
43
|
+
)
|
44
|
+
end
|
45
|
+
|
46
|
+
def offcanvas_classes
|
47
|
+
[].tap do |classes|
|
48
|
+
classes << "offcanvas offcanvas-#{context.placement || 'start'}"
|
49
|
+
classes << context.bs_class
|
50
|
+
end.join(' ').strip
|
51
|
+
end
|
52
|
+
|
53
|
+
def vue_props
|
54
|
+
{}.tap do |props|
|
55
|
+
props[:toggle_on] = context.toggle_on
|
56
|
+
props[:show_on] = context.show_on
|
57
|
+
props[:hide_on] = context.hide_on
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
@@ -10,6 +10,7 @@ import carouselComponent from './components/carousel'
|
|
10
10
|
import collapseComponent from './components/collapse'
|
11
11
|
import dropdownComponent from './components/dropdown'
|
12
12
|
import modalComponent from './components/modal'
|
13
|
+
import offcanvasComponent from './components/offcanvas'
|
13
14
|
import popoverComponent from './components/popover'
|
14
15
|
import toastComponent from './components/toast'
|
15
16
|
import tooltipComponent from './components/tooltip'
|
@@ -23,6 +24,7 @@ const registerComponents = function(appInstance){
|
|
23
24
|
appInstance.component('matestack-ui-bootstrap-collapse', collapseComponent)
|
24
25
|
appInstance.component('matestack-ui-bootstrap-dropdown', dropdownComponent)
|
25
26
|
appInstance.component('matestack-ui-bootstrap-modal', modalComponent)
|
27
|
+
appInstance.component('matestack-ui-bootstrap-offcanvas', offcanvasComponent)
|
26
28
|
appInstance.component('matestack-ui-bootstrap-popover', popoverComponent)
|
27
29
|
appInstance.component('matestack-ui-bootstrap-toast', toastComponent)
|
28
30
|
appInstance.component('matestack-ui-bootstrap-tooltip', tooltipComponent)
|
@@ -64,8 +64,8 @@ module Matestack::Ui::Bootstrap::Registry
|
|
64
64
|
Matestack::Ui::Bootstrap::Components::Navbar.(text, options, &block)
|
65
65
|
end
|
66
66
|
|
67
|
-
def
|
68
|
-
Matestack::Ui::Bootstrap::Components::
|
67
|
+
def bs_offcanvas(text=nil, options=nil, &block)
|
68
|
+
Matestack::Ui::Bootstrap::Components::Offcanvas.(text, options, &block)
|
69
69
|
end
|
70
70
|
|
71
71
|
def bs_page_heading(text=nil, options=nil, &block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: matestack-ui-bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Jabari
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: matestack-ui-core
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.
|
33
|
+
version: 3.2.0.beta.pre.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.
|
40
|
+
version: 3.2.0.beta.pre.1
|
41
41
|
description: Bootstrap v5 components for Matestack UI
|
42
42
|
email:
|
43
43
|
- jonas@matestack.io
|
@@ -48,6 +48,8 @@ files:
|
|
48
48
|
- LICENSE
|
49
49
|
- README.md
|
50
50
|
- Rakefile
|
51
|
+
- dist/matestack-ui-bootstrap.esm.js
|
52
|
+
- dist/stylesheets/matestack-ui-bootstrap.css
|
51
53
|
- lib/matestack/ui/bootstrap.rb
|
52
54
|
- lib/matestack/ui/bootstrap/base_component.rb
|
53
55
|
- lib/matestack/ui/bootstrap/base_vue_js_component.rb
|
@@ -72,6 +74,8 @@ files:
|
|
72
74
|
- lib/matestack/ui/bootstrap/components/modal.js
|
73
75
|
- lib/matestack/ui/bootstrap/components/modal.rb
|
74
76
|
- lib/matestack/ui/bootstrap/components/navbar.rb
|
77
|
+
- lib/matestack/ui/bootstrap/components/offcanvas.js
|
78
|
+
- lib/matestack/ui/bootstrap/components/offcanvas.rb
|
75
79
|
- lib/matestack/ui/bootstrap/components/page_heading.rb
|
76
80
|
- lib/matestack/ui/bootstrap/components/pagination.rb
|
77
81
|
- lib/matestack/ui/bootstrap/components/popover.js
|
@@ -127,9 +131,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
127
131
|
version: '0'
|
128
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
133
|
requirements:
|
130
|
-
- - "
|
134
|
+
- - ">"
|
131
135
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
136
|
+
version: 1.3.1
|
133
137
|
requirements: []
|
134
138
|
rubygems_version: 3.2.15
|
135
139
|
signing_key:
|