bootstrap-bookingsync-sass 1.0.0.beta11 → 1.0.0.beta12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/addon/components/bsy-alert.js +28 -0
- data/addon/components/bsy-annotated-section/annotation.js +8 -0
- data/addon/components/bsy-annotated-section/content.js +8 -0
- data/addon/components/bsy-annotated-section.js +8 -0
- data/addon/components/bsy-button/close.js +12 -0
- data/addon/components/bsy-checkbox.js +8 -0
- data/addon/components/bsy-input-addon/addon.js +8 -0
- data/addon/components/bsy-input-addon/input.js +14 -0
- data/addon/components/bsy-input-addon.js +8 -0
- data/addon/components/bsy-input.js +15 -0
- data/addon/components/bsy-modal/body.js +8 -0
- data/addon/components/bsy-modal/close.js +7 -0
- data/addon/components/bsy-modal/footer.js +8 -0
- data/addon/components/bsy-modal/header.js +8 -0
- data/addon/components/bsy-modal.js +17 -0
- data/addon/components/bsy-nav/item.js +19 -0
- data/addon/components/bsy-nav/link.js +19 -0
- data/addon/components/bsy-nav.js +8 -0
- data/addon/components/bsy-radio-buttons/button.js +22 -0
- data/addon/components/bsy-radio-buttons.js +10 -0
- data/addon/components/bsy-radio.js +14 -0
- data/addon/components/bsy-select-multiple.js +14 -0
- data/addon/components/bsy-select.js +14 -0
- data/addon/components/bsy-sheet/header.js +7 -0
- data/addon/components/bsy-sheet.js +7 -0
- data/addon/components/bsy-textarea.js +14 -0
- data/addon/templates/components/bsy-alert.hbs +6 -0
- data/addon/templates/components/bsy-annotated-section/annotation.hbs +1 -0
- data/addon/templates/components/bsy-annotated-section/content.hbs +1 -0
- data/addon/templates/components/bsy-annotated-section.hbs +1 -0
- data/addon/templates/components/bsy-button/close.hbs +1 -0
- data/addon/templates/components/bsy-checkbox.hbs +7 -0
- data/addon/templates/components/bsy-input-addon/addon.hbs +1 -0
- data/addon/templates/components/bsy-input-addon/input.hbs +8 -0
- data/addon/templates/components/bsy-input-addon.hbs +3 -0
- data/addon/templates/components/bsy-input.hbs +8 -0
- data/addon/templates/components/bsy-modal/body.hbs +1 -0
- data/addon/templates/components/bsy-modal/close.hbs +1 -0
- data/addon/templates/components/bsy-modal/footer.hbs +1 -0
- data/addon/templates/components/bsy-modal/header.hbs +2 -0
- data/addon/templates/components/bsy-modal.hbs +8 -0
- data/addon/templates/components/bsy-nav/item.hbs +1 -0
- data/addon/templates/components/bsy-nav/link.hbs +1 -0
- data/addon/templates/components/bsy-nav.hbs +1 -0
- data/addon/templates/components/bsy-radio-buttons/button.hbs +6 -0
- data/addon/templates/components/bsy-radio-buttons.hbs +3 -0
- data/addon/templates/components/bsy-radio.hbs +8 -0
- data/addon/templates/components/bsy-select-multiple.hbs +11 -0
- data/addon/templates/components/bsy-select.hbs +12 -0
- data/addon/templates/components/bsy-sheet/header.hbs +1 -0
- data/addon/templates/components/bsy-sheet.hbs +1 -0
- data/addon/templates/components/bsy-textarea.hbs +8 -0
- data/app/components/bsy-alert.js +1 -0
- data/app/components/bsy-annotated-section/annotation.js +1 -0
- data/app/components/bsy-annotated-section/content.js +1 -0
- data/app/components/bsy-annotated-section.js +1 -0
- data/app/components/bsy-button/close.js +1 -0
- data/app/components/bsy-button.js +1 -1
- data/app/components/bsy-checkbox.js +1 -0
- data/app/components/bsy-input-addon/addon.js +1 -0
- data/app/components/bsy-input-addon/input.js +1 -0
- data/app/components/bsy-input-addon.js +1 -0
- data/app/components/bsy-input.js +1 -0
- data/app/components/bsy-modal/body.js +1 -0
- data/app/components/bsy-modal/close.js +1 -0
- data/app/components/bsy-modal/footer.js +1 -0
- data/app/components/bsy-modal/header.js +1 -0
- data/app/components/bsy-modal.js +1 -0
- data/app/components/bsy-nav/item.js +1 -0
- data/app/components/bsy-nav/link.js +1 -0
- data/app/components/bsy-nav.js +1 -0
- data/app/components/bsy-radio-buttons/button.js +1 -0
- data/app/components/bsy-radio-buttons.js +1 -0
- data/app/components/bsy-radio.js +1 -0
- data/app/components/bsy-select-multiple.js +1 -0
- data/app/components/bsy-select.js +1 -0
- data/app/components/bsy-sheet/header.js +1 -0
- data/app/components/bsy-sheet.js +1 -0
- data/app/components/bsy-textarea.js +1 -0
- data/assets/stylesheets/bookingsync/_navs.scss +45 -0
- data/assets/stylesheets/bookingsync/_variables.scss +6 -0
- data/docs/Gemfile.lock +2 -2
- data/docs/content/components/_navbar.html +2 -0
- data/docs/content/components/sheet.md +33 -0
- data/lib/bootstrap/bookingsync/version.rb +1 -1
- data/package.json +4 -3
- data/tests/dummy/app/controllers/index.js +4 -5
- data/tests/dummy/app/styles/app.scss +5 -0
- data/tests/dummy/app/templates/application.hbs +11 -7
- data/tests/dummy/app/templates/index.hbs +226 -259
- data/tests/dummy/app/templates/navbar.hbs +9 -14
- data/tests/dummy/app/templates/sidebar.hbs +45 -47
- data/tests/integration/components/bsy-alert-test.js +24 -0
- data/tests/integration/components/bsy-nav/item-test.js +24 -0
- data/tests/integration/components/bsy-nav/link-test.js +24 -0
- data/tests/integration/components/bsy-nav-test.js +24 -0
- data/tests/integration/components/bsy-sheet/header-test.js +24 -0
- data/tests/integration/components/bsy-sheet-test.js +24 -0
- data/tests/integration/components/bsy-sheet.header-test.js +24 -0
- data/yarn.lock +5356 -0
- metadata +89 -4
@@ -1,275 +1,242 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<h2
|
4
|
-
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
{{#bsy-sheet id="forms"}}
|
2
|
+
{{#bsy-sheet.header}}
|
3
|
+
<h2>Forms</h2>
|
4
|
+
{{/bsy-sheet.header}}
|
5
|
+
<form>
|
6
|
+
{{bsy-input currentEmail
|
7
|
+
label="Email address"
|
8
|
+
update=(action (mut currentEmail))
|
9
|
+
type="email"
|
10
|
+
inputId="email"
|
11
|
+
}}
|
12
|
+
|
13
|
+
<div class="row">
|
14
|
+
<div class="col-xs-6">
|
15
|
+
{{bsy-input currentFirstName
|
16
|
+
label="First name"
|
17
|
+
update=(action (mut currentFirstName))
|
18
|
+
inputId="firstname"
|
15
19
|
}}
|
16
20
|
</div>
|
17
21
|
|
18
|
-
<div class="
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
value=currentFirstName
|
24
|
-
update=(action (mut currentFirstName))
|
25
|
-
class="form-control"
|
26
|
-
id="firstname"
|
27
|
-
}}
|
28
|
-
</div>
|
29
|
-
</div>
|
30
|
-
|
31
|
-
<div class="col-xs-6">
|
32
|
-
<div class="form-group">
|
33
|
-
<label for="lastname">Last name</label>
|
34
|
-
{{one-way-input
|
35
|
-
value=currentLastName
|
36
|
-
update=(action (mut currentLastName))
|
37
|
-
class="form-control"
|
38
|
-
id="lastname"
|
39
|
-
}}
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<div class="form-group">
|
45
|
-
<div class="input-group">
|
46
|
-
<div class="input-group-addon">$</div>
|
47
|
-
<label class="control-label" for="amount">Amount</label>
|
48
|
-
{{one-way-input
|
49
|
-
value=currentAmount
|
50
|
-
update=(action (mut currentAmount))
|
51
|
-
class="form-control"
|
52
|
-
type="number"
|
53
|
-
id="amount"
|
54
|
-
}}
|
55
|
-
<div class="input-group-addon">.00</div>
|
56
|
-
</div>
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<div class="row">
|
60
|
-
<div class="col-xs-4">
|
61
|
-
<div class="select">
|
62
|
-
<label for="destination">Destination</label>
|
63
|
-
{{#power-select
|
64
|
-
selected=currentDestination
|
65
|
-
options=cities
|
66
|
-
onchange=(action (mut currentDestination))
|
67
|
-
id="destination"
|
68
|
-
class="form-control"
|
69
|
-
as |name|
|
70
|
-
}}
|
71
|
-
{{name}}
|
72
|
-
{{/power-select}}
|
73
|
-
</div>
|
74
|
-
</div>
|
75
|
-
|
76
|
-
<div class="col-xs-4">
|
77
|
-
<div class="select">
|
78
|
-
<label for="destination2">Destination</label>
|
79
|
-
{{#power-select
|
80
|
-
selected=currentDestination
|
81
|
-
options=cities
|
82
|
-
searchEnabled=false
|
83
|
-
onchange=(action (mut currentDestination))
|
84
|
-
id="destination2"
|
85
|
-
class="form-control"
|
86
|
-
as |name|
|
87
|
-
}}
|
88
|
-
{{name}}
|
89
|
-
{{/power-select}}
|
90
|
-
</div>
|
91
|
-
</div>
|
92
|
-
|
93
|
-
<div class="col-xs-4">
|
94
|
-
<div class="select">
|
95
|
-
<label for="destinations">Destinations</label>
|
96
|
-
{{#power-select-multiple
|
97
|
-
selected=currentDestinations
|
98
|
-
options=cities
|
99
|
-
onchange=(action (mut currentDestinations))
|
100
|
-
id="destinations"
|
101
|
-
class="form-control"
|
102
|
-
as |name|
|
103
|
-
}}
|
104
|
-
{{name}}
|
105
|
-
{{/power-select-multiple}}
|
106
|
-
</div>
|
107
|
-
</div>
|
108
|
-
</div>
|
109
|
-
|
110
|
-
<div class="form-group">
|
111
|
-
<label for="comment">Comment</label>
|
112
|
-
{{one-way-textarea
|
113
|
-
value=currentComment
|
114
|
-
update=(action (mut currentComment))
|
115
|
-
class="form-control"
|
116
|
-
id="comment"
|
117
|
-
rows=3
|
22
|
+
<div class="col-xs-6">
|
23
|
+
{{bsy-input currentLastName
|
24
|
+
label="Last name"
|
25
|
+
update=(action (mut currentLastName))
|
26
|
+
inputId="lastname"
|
118
27
|
}}
|
119
28
|
</div>
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
selectedRentalType
|
145
|
-
option="house"
|
146
|
-
update=(action (mut selectedRentalType))
|
147
|
-
}}
|
148
|
-
House
|
149
|
-
</label>
|
150
|
-
</div>
|
151
|
-
<div class="radio">
|
152
|
-
<label>
|
153
|
-
{{one-way-radio
|
154
|
-
selectedRentalType
|
155
|
-
option="villa"
|
156
|
-
update=(action (mut selectedRentalType))
|
157
|
-
}}
|
158
|
-
Villa
|
159
|
-
</label>
|
160
|
-
</div>
|
161
|
-
|
162
|
-
<h3>Radio buttons</h3>
|
163
|
-
<div class="btn-group" role="group" aria-label="...">
|
164
|
-
<div class="btn-group" data-toggle="buttons">
|
165
|
-
<label class="btn btn-secondary active">
|
166
|
-
{{one-way-radio
|
167
|
-
selectedRentalType
|
168
|
-
option="apartment"
|
169
|
-
update=(action (mut selectedRentalType))
|
170
|
-
}}
|
171
|
-
Apartment
|
172
|
-
</label>
|
173
|
-
<label class="btn btn-secondary">
|
174
|
-
{{one-way-radio
|
175
|
-
selectedRentalType
|
176
|
-
option="house"
|
177
|
-
update=(action (mut selectedRentalType))
|
178
|
-
}}
|
179
|
-
House
|
180
|
-
</label>
|
181
|
-
<label class="btn btn-secondary">
|
182
|
-
{{one-way-radio
|
183
|
-
selectedRentalType
|
184
|
-
option="villa"
|
185
|
-
update=(action (mut selectedRentalType))
|
186
|
-
}}
|
187
|
-
Villa
|
188
|
-
</label>
|
189
|
-
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
{{#bsy-input-addon}}
|
32
|
+
{{#bsy-input-addon.addon}}${{/bsy-input-addon.addon}}
|
33
|
+
{{bsy-input-addon.input currentAmount
|
34
|
+
label="Amount"
|
35
|
+
update=(action (mut currentAmount))
|
36
|
+
type="number"
|
37
|
+
inputId="amount"
|
38
|
+
}}
|
39
|
+
{{#bsy-input-addon.addon}}.00{{/bsy-input-addon.addon}}
|
40
|
+
{{/bsy-input-addon}}
|
41
|
+
|
42
|
+
<div class="row">
|
43
|
+
<div class="col-xs-4">
|
44
|
+
{{#bsy-select currentDestination
|
45
|
+
label="Destination"
|
46
|
+
options=cities
|
47
|
+
onchange=(action (mut currentDestination))
|
48
|
+
inputId="destination"
|
49
|
+
as |name|
|
50
|
+
}}
|
51
|
+
{{name}}
|
52
|
+
{{/bsy-select}}
|
190
53
|
</div>
|
191
|
-
</form>
|
192
54
|
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
id="name2"
|
55
|
+
<div class="col-xs-4">
|
56
|
+
{{#bsy-select currentDestination
|
57
|
+
label="Destination"
|
58
|
+
options=cities
|
59
|
+
searchEnabled=false
|
60
|
+
onchange=(action (mut currentDestination))
|
61
|
+
inputId="destination2"
|
62
|
+
as |name|
|
202
63
|
}}
|
64
|
+
{{name}}
|
65
|
+
{{/bsy-select}}
|
203
66
|
</div>
|
204
67
|
|
205
|
-
<div class="
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
id="email2"
|
68
|
+
<div class="col-xs-4">
|
69
|
+
{{#bsy-select-multiple currentDestinations
|
70
|
+
label="Destinations"
|
71
|
+
options=cities
|
72
|
+
onchange=(action (mut currentDestinations))
|
73
|
+
inputId="destinations"
|
74
|
+
as |name|
|
213
75
|
}}
|
76
|
+
{{name}}
|
77
|
+
{{/bsy-select-multiple}}
|
214
78
|
</div>
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
79
|
+
</div>
|
80
|
+
|
81
|
+
{{bsy-textarea currentComment
|
82
|
+
label="Comment"
|
83
|
+
update=(action (mut currentComment))
|
84
|
+
inputId="comment"
|
85
|
+
rows=3
|
86
|
+
}}
|
87
|
+
|
88
|
+
{{bsy-checkbox isChecked
|
89
|
+
label="Check me out"
|
90
|
+
update=(action (mut isChecked))
|
91
|
+
}}
|
92
|
+
|
93
|
+
{{bsy-radio selectedRentalType
|
94
|
+
label="Apartment"
|
95
|
+
option="apartment"
|
96
|
+
update=(action (mut selectedRentalType))
|
97
|
+
}}
|
98
|
+
{{bsy-radio selectedRentalType
|
99
|
+
label="House"
|
100
|
+
option="house"
|
101
|
+
update=(action (mut selectedRentalType))
|
102
|
+
}}
|
103
|
+
{{bsy-radio selectedRentalType
|
104
|
+
label="Villa"
|
105
|
+
option="villa"
|
106
|
+
update=(action (mut selectedRentalType))
|
107
|
+
}}
|
108
|
+
|
109
|
+
<h3>Radio buttons</h3>
|
110
|
+
{{#bsy-radio-buttons aria-label="Rental Type"}}
|
111
|
+
{{bsy-radio-buttons.button selectedRentalType
|
112
|
+
label="Apartment"
|
113
|
+
option="apartment"
|
114
|
+
update=(action (mut selectedRentalType))
|
115
|
+
}}
|
116
|
+
{{bsy-radio-buttons.button selectedRentalType
|
117
|
+
label="House"
|
118
|
+
option="house"
|
119
|
+
update=(action (mut selectedRentalType))
|
120
|
+
}}
|
121
|
+
{{bsy-radio-buttons.button selectedRentalType
|
122
|
+
label="Villa"
|
123
|
+
option="villa"
|
124
|
+
update=(action (mut selectedRentalType))
|
125
|
+
}}
|
126
|
+
{{/bsy-radio-buttons}}
|
127
|
+
</form>
|
128
|
+
|
129
|
+
<h3>Inline form</h3>
|
130
|
+
<form class="form-inline">
|
131
|
+
{{bsy-input currentName
|
132
|
+
label="Name"
|
133
|
+
update=(action (mut currentName))
|
134
|
+
inputId="name2"
|
135
|
+
}}
|
136
|
+
|
137
|
+
{{bsy-input currentEmail
|
138
|
+
label="Email address"
|
139
|
+
update=(action (mut currentEmail))
|
140
|
+
inputId="email2"
|
141
|
+
}}
|
142
|
+
|
143
|
+
{{#bsy-button type="submit" loadingLabel="Sending..."}}Send invitation{{/bsy-button}}
|
144
|
+
</form>
|
145
|
+
{{/bsy-sheet}}
|
146
|
+
|
147
|
+
{{#bsy-sheet id="buttons"}}
|
148
|
+
{{#bsy-sheet.header}}
|
149
|
+
<h2>Buttons</h2>
|
150
|
+
{{/bsy-sheet.header}}
|
151
|
+
{{#bsy-button type="primary"}}Primary{{/bsy-button}}
|
152
|
+
{{#bsy-button type="secondary"}}Secondary{{/bsy-button}}
|
153
|
+
{{bsy-button.close}}
|
154
|
+
{{#bsy-button type="danger"}}Danger{{/bsy-button}}
|
155
|
+
{{#bsy-button type="link"}}Link{{/bsy-button}}
|
156
|
+
{{/bsy-sheet}}
|
157
|
+
|
158
|
+
{{#bsy-sheet id="modal"}}
|
159
|
+
{{#bsy-sheet.header}}
|
160
|
+
<h2>Modal</h2>
|
161
|
+
{{/bsy-sheet.header}}
|
162
|
+
{{#bsy-button type="primary" click=(action "toggleModal")}}Toggle Modal{{/bsy-button}}
|
163
|
+
|
164
|
+
{{#if isShowingModal}}
|
165
|
+
{{#bsy-modal}}
|
166
|
+
{{#bsy-modal.header close=(action "toggleModal")}}
|
167
|
+
<h3 class="modal-title">Modal Name or Headline</h3>
|
168
|
+
{{/bsy-modal.header}}
|
169
|
+
{{#bsy-modal.body}}
|
170
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc nec luctus felis. Nulla a lacus libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Etiam mollis tortor sodales libero euismod, eget suscipit arcu mollis. Nam nibh libero, tempus eu urna convallis, tempor efficitur ex. Donec molestie nibh ac luctus imperdiet. Nulla vitae vulputate ipsum. Phasellus porta gravida odio, in iaculis quam cursus et. Ut ac vehicula erat. Nulla sapien turpis, dapibus vel pellentesque sed, suscipit sit amet nibh. Pellentesque rhoncus nibh porttitor, posuere nulla quis, auctor nunc. Pellentesque fermentum tempor justo, a interdum nulla. Nullam lacus odio, posuere ut posuere hendrerit, semper non velit.</p>
|
171
|
+
<p>Cras sed consequat nunc. Phasellus sed sagittis nibh. Aliquam a vulputate risus. Vestibulum molestie bibendum dolor, vel blandit ipsum malesuada et. Praesent enim nibh, finibus vel luctus id, bibendum vitae eros. Aliquam vel semper diam. Cras elementum molestie eros, ac venenatis quam. Proin fermentum ante eros, mollis vestibulum eros consequat eu. Cras quis lorem vel metus hendrerit porttitor. Nunc hendrerit vitae nunc ut pellentesque. Etiam quis urna ac lorem eleifend ornare. Donec nibh ante, bibendum id pellentesque non, dignissim ut urna. Phasellus congue ultricies ipsum, ut luctus augue pulvinar nec.</p>
|
172
|
+
{{/bsy-modal.body}}
|
173
|
+
{{#bsy-modal.footer}}
|
174
|
+
<div class="row">
|
175
|
+
<div class="col-xs-6">
|
176
|
+
{{#bsy-button type="secondary" class="btn-block" click=(action "toggleModal")}}Close{{/bsy-button}}
|
256
177
|
</div>
|
257
|
-
<div class="
|
258
|
-
|
259
|
-
<p>Cras sed consequat nunc. Phasellus sed sagittis nibh. Aliquam a vulputate risus. Vestibulum molestie bibendum dolor, vel blandit ipsum malesuada et. Praesent enim nibh, finibus vel luctus id, bibendum vitae eros. Aliquam vel semper diam. Cras elementum molestie eros, ac venenatis quam. Proin fermentum ante eros, mollis vestibulum eros consequat eu. Cras quis lorem vel metus hendrerit porttitor. Nunc hendrerit vitae nunc ut pellentesque. Etiam quis urna ac lorem eleifend ornare. Donec nibh ante, bibendum id pellentesque non, dignissim ut urna. Phasellus congue ultricies ipsum, ut luctus augue pulvinar nec.</p>
|
260
|
-
</div>
|
261
|
-
<div class="modal-footer">
|
262
|
-
<div class="row">
|
263
|
-
<div class="col-xs-6">
|
264
|
-
{{#bsy-button type="secondary" class="btn-block" click=(action "toggleModal")}}Close{{/bsy-button}}
|
265
|
-
</div>
|
266
|
-
<div class="col-xs-6">
|
267
|
-
{{#bsy-button type="primary" class="btn-block"}}Save Changes{{/bsy-button}}
|
268
|
-
</div>
|
269
|
-
</div>
|
178
|
+
<div class="col-xs-6">
|
179
|
+
{{#bsy-button type="primary" class="btn-block"}}Save Changes{{/bsy-button}}
|
270
180
|
</div>
|
271
181
|
</div>
|
272
|
-
{{/modal
|
273
|
-
{{/
|
182
|
+
{{/bsy-modal.footer}}
|
183
|
+
{{/bsy-modal}}
|
184
|
+
{{/if}}
|
185
|
+
{{/bsy-sheet}}
|
186
|
+
|
187
|
+
{{#bsy-sheet id="tabs"}}
|
188
|
+
{{#bsy-nav class="nav-tabs"}}
|
189
|
+
{{#bsy-nav.item click=(action "sampleAction")}}Tab 1{{/bsy-nav.item}}
|
190
|
+
{{#bsy-nav.item active=true click=(action "sampleAction")}}Tab 2{{/bsy-nav.item}}
|
191
|
+
{{#bsy-nav.item click=(action "sampleAction")}}Tab 3{{/bsy-nav.item}}
|
192
|
+
{{#bsy-nav.item click=(action "sampleAction")}}Tab 4{{/bsy-nav.item}}
|
193
|
+
{{/bsy-nav}}
|
194
|
+
<div>
|
195
|
+
<p>Text...</p>
|
196
|
+
</div>
|
197
|
+
{{/bsy-sheet}}
|
198
|
+
|
199
|
+
{{#bsy-sheet id="pills" class="row"}}
|
200
|
+
{{#bsy-nav class="nav-pills nav-stacked col-sm-3"}}
|
201
|
+
{{#bsy-nav.item click=(action "sampleAction")}}Tab 1{{/bsy-nav.item}}
|
202
|
+
{{#bsy-nav.item active=true click=(action "sampleAction")}}Tab 2{{/bsy-nav.item}}
|
203
|
+
{{#bsy-nav.item click=(action "sampleAction")}}Tab 3{{/bsy-nav.item}}
|
204
|
+
{{#bsy-nav.item click=(action "sampleAction")}}Tab 4{{/bsy-nav.item}}
|
205
|
+
{{/bsy-nav}}
|
206
|
+
<div class="col-sm-9">
|
207
|
+
<p>Text...</p>
|
274
208
|
</div>
|
275
|
-
|
209
|
+
{{/bsy-sheet}}
|
210
|
+
|
211
|
+
{{#bsy-sheet id="calendar"}}
|
212
|
+
{{#bsy-sheet.header}}
|
213
|
+
<h2>Calendar</h2>
|
214
|
+
{{/bsy-sheet.header}}
|
215
|
+
{{#power-calendar as |calendar|}}
|
216
|
+
<div class="calendar">
|
217
|
+
{{calendar.nav}}
|
218
|
+
{{calendar.days}}
|
219
|
+
</div>
|
220
|
+
{{/power-calendar}}
|
221
|
+
{{/bsy-sheet}}
|
222
|
+
|
223
|
+
{{#bsy-sheet id="alerts"}}
|
224
|
+
{{#bsy-sheet.header}}
|
225
|
+
<h2>Alerts</h2>
|
226
|
+
{{/bsy-sheet.header}}
|
227
|
+
{{#bsy-alert type="success"}}
|
228
|
+
<strong>Well done!</strong> You successfully read this important alert message.
|
229
|
+
{{/bsy-alert}}
|
230
|
+
{{#bsy-alert type="info"}}
|
231
|
+
<strong>Heads up!</strong> This alert needs your attention, but it's not super important.
|
232
|
+
{{/bsy-alert}}
|
233
|
+
{{#bsy-alert type="warning"}}
|
234
|
+
<strong>Warning!</strong> Better check yourself, you're not looking too good.
|
235
|
+
{{/bsy-alert}}
|
236
|
+
{{#bsy-alert type="danger"}}
|
237
|
+
<strong>Oh snap!</strong> Change a few things up and try submitting again.
|
238
|
+
{{/bsy-alert}}
|
239
|
+
{{#bsy-alert type="warning" dismissible=true}}
|
240
|
+
<strong>Warning!</strong> Better check yourself, you're not looking too good.
|
241
|
+
{{/bsy-alert}}
|
242
|
+
{{/bsy-sheet}}
|
@@ -1,24 +1,19 @@
|
|
1
1
|
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
|
2
2
|
<div class="container-fluid">
|
3
3
|
<div class="navbar-header">
|
4
|
-
<button type="button" class="navbar-toggle navbar-toggle-context"
|
5
|
-
data-toggle="collapse" data-target=".navbar-top-collapse">
|
6
|
-
<span class="sr-only">Toggle Navigation</span>
|
7
|
-
<span class="icon-bar"></span>
|
8
|
-
<span class="icon-bar"></span>
|
9
|
-
<span class="icon-bar"></span>
|
10
|
-
</button>
|
11
4
|
<div class="navbar-brand-container">
|
12
5
|
<span class="navbar-brand">
|
13
|
-
<h1
|
6
|
+
<h1>
|
7
|
+
<span class="navbar-breadcrumb">
|
8
|
+
<a href="https://www.bookingsync.com" class="navbar-breadcrumb-brand-logo">
|
9
|
+
<img src="/assets/images/bookingsync.png" alt="BookingSync">
|
10
|
+
</a>
|
11
|
+
/
|
12
|
+
</span>
|
13
|
+
Ember Addon
|
14
|
+
</h1>
|
14
15
|
</span>
|
15
16
|
</div>
|
16
17
|
</div>
|
17
|
-
<div class="collapse navbar-collapse navbar-top-collapse">
|
18
|
-
<div class="navbar-right">
|
19
|
-
{{#bsy-button type="secondary" class="navbar-btn"}}Secondary Button{{/bsy-button}}
|
20
|
-
{{#bsy-button type="primary" class="navbar-btn"}}Call To Action{{/bsy-button}}
|
21
|
-
</div>
|
22
|
-
</div>
|
23
18
|
</div>
|
24
19
|
</nav>
|
@@ -1,47 +1,45 @@
|
|
1
|
-
<
|
2
|
-
<
|
3
|
-
<
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
</
|
21
|
-
</
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
</
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
<a href="
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
</div>
|
47
|
-
</nav>
|
1
|
+
<div class="panel panel-default">
|
2
|
+
<ul class="list-group list-group-with-icon list-unstyled">
|
3
|
+
<li>
|
4
|
+
<a href="/brand" class="list-group-item">
|
5
|
+
<i class="bs-icon-bookingsync bs-icon-fw"></i> <span>Brand</span>
|
6
|
+
</a>
|
7
|
+
</li>
|
8
|
+
<li>
|
9
|
+
<a href="/forms" class="list-group-item">
|
10
|
+
<i class="styleguide-icon-forms bs-icon-fw"></i> <span>Forms</span>
|
11
|
+
</a>
|
12
|
+
</li>
|
13
|
+
<li>
|
14
|
+
<a href="/buttons" class="list-group-item">
|
15
|
+
<i class="styleguide-icon-buttons bs-icon-fw"></i> <span>Buttons</span>
|
16
|
+
</a>
|
17
|
+
</li>
|
18
|
+
<li>
|
19
|
+
<a href="/utilities" class="list-group-item">
|
20
|
+
<i class="styleguide-icon-utilities bs-icon-fw"></i> <span>Utilities</span>
|
21
|
+
</a>
|
22
|
+
</li>
|
23
|
+
<li>
|
24
|
+
<a href="/components" class="list-group-item">
|
25
|
+
<i class="styleguide-icon-components bs-icon-fw"></i> <span>Components</span>
|
26
|
+
</a>
|
27
|
+
</li>
|
28
|
+
<li>
|
29
|
+
<a href="/compositions" class="list-group-item">
|
30
|
+
<i class="styleguide-icon-compositions bs-icon-fw"></i> <span>Compositions</span>
|
31
|
+
</a>
|
32
|
+
</li>
|
33
|
+
<li class="expanded active">
|
34
|
+
<a href="/brand" class="list-group-item">
|
35
|
+
<i class="styleguide-icon-ember bs-icon-fw"></i> <span>Ember Addon</span>
|
36
|
+
</a>
|
37
|
+
<ul class="list-group list-unstyled">
|
38
|
+
<li><a class="list-group-item" href="#forms">Forms</a></li>
|
39
|
+
<li><a class="list-group-item" href="#buttons">Buttons</a></li>
|
40
|
+
<li><a class="list-group-item" href="#modal">Modal</a></li>
|
41
|
+
<li><a class="list-group-item" href="#calendar">Calendar</a></li>
|
42
|
+
</ul>
|
43
|
+
</li>
|
44
|
+
</ul>
|
45
|
+
</div>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { moduleForComponent, test } from 'ember-qunit';
|
2
|
+
import hbs from 'htmlbars-inline-precompile';
|
3
|
+
|
4
|
+
moduleForComponent('bsy-alert', 'Integration | Component | bsy alert', {
|
5
|
+
integration: true
|
6
|
+
});
|
7
|
+
|
8
|
+
test('it renders', function(assert) {
|
9
|
+
// Set any properties with this.set('myProperty', 'value');
|
10
|
+
// Handle any actions with this.on('myAction', function(val) { ... });"
|
11
|
+
|
12
|
+
this.render(hbs`{{bsy-alert}}`);
|
13
|
+
|
14
|
+
assert.equal(this.$().text().trim(), '');
|
15
|
+
|
16
|
+
// Template block usage:"
|
17
|
+
this.render(hbs`
|
18
|
+
{{#bsy-alert}}
|
19
|
+
template block text
|
20
|
+
{{/bsy-alert}}
|
21
|
+
`);
|
22
|
+
|
23
|
+
assert.equal(this.$().text().trim(), 'template block text');
|
24
|
+
});
|