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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc042dd4b1fe009e3fef45ae4e525a96254e75a1
|
4
|
+
data.tar.gz: 78b02c8b63bf65130943c263636437b5f8b64cf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4239ab953ebc01dfc18140f50bcfdaa42b9de3a2b7662ede7742d9a1cb2b4b28db983e05e0df30c3282af3a5a36c3a0626c5231eb1574672360554d99977934e
|
7
|
+
data.tar.gz: 9610ab7b9482a42b501a67210eaa5f6337843cac8423bf683d36877ea1b05abfd25596bfbc0187f281dd93a2b71966e6bbc31074c0bd966f914917c5d4037d69
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
### master
|
2
2
|
|
3
|
+
### 1.0.0.beta12 - 2016-12-24
|
4
|
+
|
5
|
+
* improvements
|
6
|
+
* add `nav-pills` with improved design when first element of a `sheet`.
|
7
|
+
* update Ember `bsy-modal` to automatically handle `body` class assignment.
|
8
|
+
* add Ember `bsy-nav` component.
|
9
|
+
|
3
10
|
### 1.0.0.beta11 - 2016-09-03
|
4
11
|
|
5
12
|
* improvements
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import Ember from 'ember';
|
2
|
+
const { computed } = Ember;
|
3
|
+
import layout from '../templates/components/bsy-alert';
|
4
|
+
|
5
|
+
export default Ember.Component.extend({
|
6
|
+
layout,
|
7
|
+
classNames: 'alert',
|
8
|
+
classNameBindings: ['typeClassName', 'dismissibleClassName'],
|
9
|
+
attributeBindings: ['role'],
|
10
|
+
role: 'alert',
|
11
|
+
dismissible: false,
|
12
|
+
|
13
|
+
typeClassName: computed('type', function() {
|
14
|
+
return 'alert-' + this.get('type');
|
15
|
+
}),
|
16
|
+
|
17
|
+
dismissibleClassName: computed('dismissible', function() {
|
18
|
+
if (this.get('dismissible') === true) {
|
19
|
+
return 'alert-dismissible';
|
20
|
+
}
|
21
|
+
}),
|
22
|
+
|
23
|
+
actions: {
|
24
|
+
dismiss: function() {
|
25
|
+
this._renderNode.destroy();
|
26
|
+
}
|
27
|
+
}
|
28
|
+
});
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import Ember from 'ember';
|
2
|
+
import layout from '../../templates/components/bsy-button/close';
|
3
|
+
|
4
|
+
export default Ember.Component.extend({
|
5
|
+
layout,
|
6
|
+
tagName: "button",
|
7
|
+
classNames: "btn btn-secondary-inverse btn-round",
|
8
|
+
|
9
|
+
click: function() {
|
10
|
+
this.$().prop('disabled', 'disabled');
|
11
|
+
}
|
12
|
+
});
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import Ember from 'ember';
|
2
|
+
import layout from '../../templates/components/bsy-input-addon/input';
|
3
|
+
|
4
|
+
const BsyInputAddonInputComponent = Ember.Component.extend({
|
5
|
+
layout,
|
6
|
+
tagName: "div",
|
7
|
+
type: "text"
|
8
|
+
});
|
9
|
+
|
10
|
+
BsyInputAddonInputComponent.reopenClass({
|
11
|
+
positionalParams: ['value']
|
12
|
+
});
|
13
|
+
|
14
|
+
export default BsyInputAddonInputComponent;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import Ember from 'ember';
|
2
|
+
import layout from '../templates/components/bsy-input';
|
3
|
+
|
4
|
+
const BsyInputComponent = Ember.Component.extend({
|
5
|
+
layout,
|
6
|
+
tagName: "div",
|
7
|
+
classNames: "form-group",
|
8
|
+
type: "text"
|
9
|
+
});
|
10
|
+
|
11
|
+
BsyInputComponent.reopenClass({
|
12
|
+
positionalParams: ['value']
|
13
|
+
});
|
14
|
+
|
15
|
+
export default BsyInputComponent;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import Ember from 'ember';
|
2
|
+
import layout from '../templates/components/bsy-modal';
|
3
|
+
|
4
|
+
export default Ember.Component.extend({
|
5
|
+
layout,
|
6
|
+
tagName: "div",
|
7
|
+
|
8
|
+
didRender() {
|
9
|
+
this._super(...arguments);
|
10
|
+
Ember.$('body').addClass('modal-open');
|
11
|
+
},
|
12
|
+
|
13
|
+
willDestroyElement() {
|
14
|
+
this._super(...arguments);
|
15
|
+
Ember.$('body').removeClass('modal-open');
|
16
|
+
}
|
17
|
+
});
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import Ember from 'ember';
|
2
|
+
const { computed } = Ember;
|
3
|
+
import layout from '../../templates/components/bsy-nav/item';
|
4
|
+
|
5
|
+
export default Ember.Component.extend({
|
6
|
+
layout,
|
7
|
+
tagName: 'li',
|
8
|
+
classNames: 'nav-item',
|
9
|
+
classNameBindings: ["activeClassName"],
|
10
|
+
active: false,
|
11
|
+
|
12
|
+
activeClassName: computed('active', function() {
|
13
|
+
if (this.get('active') === true) {
|
14
|
+
return "active";
|
15
|
+
} else {
|
16
|
+
return "";
|
17
|
+
}
|
18
|
+
})
|
19
|
+
});
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import Ember from 'ember';
|
2
|
+
const { computed } = Ember;
|
3
|
+
import layout from '../../templates/components/bsy-nav/link';
|
4
|
+
|
5
|
+
export default Ember.Component.extend({
|
6
|
+
layout,
|
7
|
+
tagName: 'a',
|
8
|
+
classNames: 'nav-link',
|
9
|
+
classNameBindings: ["activeClassName"],
|
10
|
+
active: false,
|
11
|
+
|
12
|
+
activeClassName: computed('active', function() {
|
13
|
+
if (this.get('active') === true) {
|
14
|
+
return "active";
|
15
|
+
} else {
|
16
|
+
return "";
|
17
|
+
}
|
18
|
+
})
|
19
|
+
});
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import Ember from 'ember';
|
2
|
+
const { computed } = Ember;
|
3
|
+
import layout from '../../templates/components/bsy-radio-buttons/button';
|
4
|
+
|
5
|
+
const BsyRadioButtonsButtonComponent = Ember.Component.extend({
|
6
|
+
layout,
|
7
|
+
tagName: 'label',
|
8
|
+
classNames: 'btn btn-secondary',
|
9
|
+
classNameBindings: ['activeClassName'],
|
10
|
+
|
11
|
+
activeClassName: computed('paramValue', function () {
|
12
|
+
if (this.get('paramValue') === this.get('option')) {
|
13
|
+
return 'active';
|
14
|
+
}
|
15
|
+
})
|
16
|
+
});
|
17
|
+
|
18
|
+
BsyRadioButtonsButtonComponent.reopenClass({
|
19
|
+
positionalParams: ['paramValue']
|
20
|
+
});
|
21
|
+
|
22
|
+
export default BsyRadioButtonsButtonComponent;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import Ember from 'ember';
|
2
|
+
import layout from '../templates/components/bsy-radio';
|
3
|
+
|
4
|
+
const BsyRadioComponent = Ember.Component.extend({
|
5
|
+
layout,
|
6
|
+
tagName: "div",
|
7
|
+
classNames: "radio"
|
8
|
+
});
|
9
|
+
|
10
|
+
BsyRadioComponent.reopenClass({
|
11
|
+
positionalParams: ['paramValue']
|
12
|
+
});
|
13
|
+
|
14
|
+
export default BsyRadioComponent;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import Ember from 'ember';
|
2
|
+
import layout from '../templates/components/bsy-select-multiple';
|
3
|
+
|
4
|
+
const BsySelectMultipleComponent = Ember.Component.extend({
|
5
|
+
layout,
|
6
|
+
tagName: "div",
|
7
|
+
classNames: "select"
|
8
|
+
});
|
9
|
+
|
10
|
+
BsySelectMultipleComponent.reopenClass({
|
11
|
+
positionalParams: ['selected']
|
12
|
+
});
|
13
|
+
|
14
|
+
export default BsySelectMultipleComponent;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import Ember from 'ember';
|
2
|
+
import layout from '../templates/components/bsy-select';
|
3
|
+
|
4
|
+
const BsySelectComponent = Ember.Component.extend({
|
5
|
+
layout,
|
6
|
+
tagName: "div",
|
7
|
+
classNames: "select"
|
8
|
+
});
|
9
|
+
|
10
|
+
BsySelectComponent.reopenClass({
|
11
|
+
positionalParams: ['selected']
|
12
|
+
});
|
13
|
+
|
14
|
+
export default BsySelectComponent;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import Ember from 'ember';
|
2
|
+
import layout from '../templates/components/bsy-textarea';
|
3
|
+
|
4
|
+
const BsyTextareaComponent = Ember.Component.extend({
|
5
|
+
layout,
|
6
|
+
tagName: "div",
|
7
|
+
classNames: "form-group"
|
8
|
+
});
|
9
|
+
|
10
|
+
BsyTextareaComponent.reopenClass({
|
11
|
+
positionalParams: ['value']
|
12
|
+
});
|
13
|
+
|
14
|
+
export default BsyTextareaComponent;
|
@@ -0,0 +1 @@
|
|
1
|
+
{{yield}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{yield}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{yield}}
|
@@ -0,0 +1 @@
|
|
1
|
+
<span>×</span>
|
@@ -0,0 +1 @@
|
|
1
|
+
{{yield}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{yield}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{bsy-button.close class="btn-sm btn-modal-close"}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{yield}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{#bsy-nav.link active=active}}{{yield}}{{/bsy-nav.link}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{yield}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{yield}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{yield}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{{yield}}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-alert';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-annotated-section/annotation';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-annotated-section/content';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-annotated-section';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-button/close';
|
@@ -1 +1 @@
|
|
1
|
-
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-button';
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-button';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-checkbox';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-input-addon/addon';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-input-addon/input';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-input-addon';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-input';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-modal/body';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-modal/close';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-modal/footer';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-modal/header';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-modal';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-nav/item';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-nav/link';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-nav';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-radio-buttons/button';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-radio-buttons';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-radio';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-select-multiple';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-select';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-sheet/header';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-sheet';
|