This commit is contained in:
Mark Otto 2016-10-09 17:26:51 -07:00
parent 6def7a5d56
commit 571e86e770
47 changed files with 5622 additions and 6050 deletions

View File

@ -2113,7 +2113,7 @@ pre code {
.table-responsive { .table-responsive {
display: block; display: block;
width: 100%; width: 100%;
min-height: .01%; min-height: 0%;
overflow-x: auto; overflow-x: auto;
} }
@ -2252,10 +2252,11 @@ select.form-control:focus::-ms-value {
} }
.form-control-static { .form-control-static {
min-height: 2.5rem;
padding-top: 0.5rem; padding-top: 0.5rem;
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
margin-bottom: 0; line-height: 1.25;
border: solid transparent;
border-width: 1px 0;
} }
.form-control-static.form-control-sm, .input-group-sm > .form-control-static.form-control, .form-control-static.form-control-sm, .input-group-sm > .form-control-static.form-control,
@ -2379,18 +2380,19 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
border-color: #5cb85c; border-color: #5cb85c;
} }
.has-success .form-control:focus {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #a3d7a3;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #a3d7a3;
}
.has-success .input-group-addon { .has-success .input-group-addon {
color: #5cb85c; color: #5cb85c;
border-color: #5cb85c; border-color: #5cb85c;
background-color: #eaf6ea; background-color: #eaf6ea;
} }
.has-success .form-control-feedback {
color: #5cb85c;
}
.has-success .form-control-success { .has-success .form-control-success {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='$form-icon-success-color' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#5cb85c' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");
} }
.has-warning .form-control-feedback, .has-warning .form-control-feedback,
@ -2405,16 +2407,17 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
border-color: #f0ad4e; border-color: #f0ad4e;
} }
.has-warning .form-control:focus {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f8d9ac;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f8d9ac;
}
.has-warning .input-group-addon { .has-warning .input-group-addon {
color: #f0ad4e; color: #f0ad4e;
border-color: #f0ad4e; border-color: #f0ad4e;
background-color: white; background-color: white;
} }
.has-warning .form-control-feedback {
color: #f0ad4e;
}
.has-warning .form-control-warning { .has-warning .form-control-warning {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#f0ad4e' d='M4.4 5.324h-.8v-2.46h.8zm0 1.42h-.8V5.89h.8zM3.76.63L.04 7.075c-.115.2.016.425.26.426h7.397c.242 0 .372-.226.258-.426C6.726 4.924 5.47 2.79 4.253.63c-.113-.174-.39-.174-.494 0z'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#f0ad4e' d='M4.4 5.324h-.8v-2.46h.8zm0 1.42h-.8V5.89h.8zM3.76.63L.04 7.075c-.115.2.016.425.26.426h7.397c.242 0 .372-.226.258-.426C6.726 4.924 5.47 2.79 4.253.63c-.113-.174-.39-.174-.494 0z'/%3E%3C/svg%3E");
} }
@ -2431,16 +2434,17 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
border-color: #d9534f; border-color: #d9534f;
} }
.has-danger .form-control:focus {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #eba5a3;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #eba5a3;
}
.has-danger .input-group-addon { .has-danger .input-group-addon {
color: #d9534f; color: #d9534f;
border-color: #d9534f; border-color: #d9534f;
background-color: #fdf7f7; background-color: #fdf7f7;
} }
.has-danger .form-control-feedback {
color: #d9534f;
}
.has-danger .form-control-danger { .has-danger .form-control-danger {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#d9534f' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#d9534f' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E");
} }
@ -2461,6 +2465,7 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
} }
.form-inline .input-group { .form-inline .input-group {
display: inline-table; display: inline-table;
width: auto;
vertical-align: middle; vertical-align: middle;
} }
.form-inline .input-group .input-group-addon, .form-inline .input-group .input-group-addon,
@ -5080,6 +5085,7 @@ base::-moz-progress-bar,
.media-middle { .media-middle {
-webkit-align-self: center; -webkit-align-self: center;
-ms-flex-item-align: center; -ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center; align-self: center;
} }
@ -5177,6 +5183,8 @@ base::-moz-progress-bar,
} }
.list-group-flush .list-group-item { .list-group-flush .list-group-item {
border-right: 0;
border-left: 0;
border-radius: 0; border-radius: 0;
} }
@ -6126,7 +6134,6 @@ a.bg-inverse:focus, a.bg-inverse:hover {
-webkit-box-align: start; -webkit-box-align: start;
-webkit-align-items: flex-start; -webkit-align-items: flex-start;
-ms-flex-align: start; -ms-flex-align: start;
-ms-grid-row-align: flex-start;
align-items: flex-start; align-items: flex-start;
} }
@ -6134,7 +6141,6 @@ a.bg-inverse:focus, a.bg-inverse:hover {
-webkit-box-align: center; -webkit-box-align: center;
-webkit-align-items: center; -webkit-align-items: center;
-ms-flex-align: center; -ms-flex-align: center;
-ms-grid-row-align: center;
align-items: center; align-items: center;
} }
@ -6142,7 +6148,6 @@ a.bg-inverse:focus, a.bg-inverse:hover {
-webkit-box-align: end; -webkit-box-align: end;
-webkit-align-items: flex-end; -webkit-align-items: flex-end;
-ms-flex-align: end; -ms-flex-align: end;
-ms-grid-row-align: flex-end;
align-items: flex-end; align-items: flex-end;
} }
@ -6155,6 +6160,7 @@ a.bg-inverse:focus, a.bg-inverse:hover {
.flex-xs-middle { .flex-xs-middle {
-webkit-align-self: center; -webkit-align-self: center;
-ms-flex-item-align: center; -ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center; align-self: center;
} }
@ -6224,21 +6230,18 @@ a.bg-inverse:focus, a.bg-inverse:hover {
-webkit-box-align: start; -webkit-box-align: start;
-webkit-align-items: flex-start; -webkit-align-items: flex-start;
-ms-flex-align: start; -ms-flex-align: start;
-ms-grid-row-align: flex-start;
align-items: flex-start; align-items: flex-start;
} }
.flex-items-sm-middle { .flex-items-sm-middle {
-webkit-box-align: center; -webkit-box-align: center;
-webkit-align-items: center; -webkit-align-items: center;
-ms-flex-align: center; -ms-flex-align: center;
-ms-grid-row-align: center;
align-items: center; align-items: center;
} }
.flex-items-sm-bottom { .flex-items-sm-bottom {
-webkit-box-align: end; -webkit-box-align: end;
-webkit-align-items: flex-end; -webkit-align-items: flex-end;
-ms-flex-align: end; -ms-flex-align: end;
-ms-grid-row-align: flex-end;
align-items: flex-end; align-items: flex-end;
} }
} }
@ -6252,6 +6255,7 @@ a.bg-inverse:focus, a.bg-inverse:hover {
.flex-sm-middle { .flex-sm-middle {
-webkit-align-self: center; -webkit-align-self: center;
-ms-flex-item-align: center; -ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center; align-self: center;
} }
.flex-sm-bottom { .flex-sm-bottom {
@ -6319,21 +6323,18 @@ a.bg-inverse:focus, a.bg-inverse:hover {
-webkit-box-align: start; -webkit-box-align: start;
-webkit-align-items: flex-start; -webkit-align-items: flex-start;
-ms-flex-align: start; -ms-flex-align: start;
-ms-grid-row-align: flex-start;
align-items: flex-start; align-items: flex-start;
} }
.flex-items-md-middle { .flex-items-md-middle {
-webkit-box-align: center; -webkit-box-align: center;
-webkit-align-items: center; -webkit-align-items: center;
-ms-flex-align: center; -ms-flex-align: center;
-ms-grid-row-align: center;
align-items: center; align-items: center;
} }
.flex-items-md-bottom { .flex-items-md-bottom {
-webkit-box-align: end; -webkit-box-align: end;
-webkit-align-items: flex-end; -webkit-align-items: flex-end;
-ms-flex-align: end; -ms-flex-align: end;
-ms-grid-row-align: flex-end;
align-items: flex-end; align-items: flex-end;
} }
} }
@ -6347,6 +6348,7 @@ a.bg-inverse:focus, a.bg-inverse:hover {
.flex-md-middle { .flex-md-middle {
-webkit-align-self: center; -webkit-align-self: center;
-ms-flex-item-align: center; -ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center; align-self: center;
} }
.flex-md-bottom { .flex-md-bottom {
@ -6414,21 +6416,18 @@ a.bg-inverse:focus, a.bg-inverse:hover {
-webkit-box-align: start; -webkit-box-align: start;
-webkit-align-items: flex-start; -webkit-align-items: flex-start;
-ms-flex-align: start; -ms-flex-align: start;
-ms-grid-row-align: flex-start;
align-items: flex-start; align-items: flex-start;
} }
.flex-items-lg-middle { .flex-items-lg-middle {
-webkit-box-align: center; -webkit-box-align: center;
-webkit-align-items: center; -webkit-align-items: center;
-ms-flex-align: center; -ms-flex-align: center;
-ms-grid-row-align: center;
align-items: center; align-items: center;
} }
.flex-items-lg-bottom { .flex-items-lg-bottom {
-webkit-box-align: end; -webkit-box-align: end;
-webkit-align-items: flex-end; -webkit-align-items: flex-end;
-ms-flex-align: end; -ms-flex-align: end;
-ms-grid-row-align: flex-end;
align-items: flex-end; align-items: flex-end;
} }
} }
@ -6442,6 +6441,7 @@ a.bg-inverse:focus, a.bg-inverse:hover {
.flex-lg-middle { .flex-lg-middle {
-webkit-align-self: center; -webkit-align-self: center;
-ms-flex-item-align: center; -ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center; align-self: center;
} }
.flex-lg-bottom { .flex-lg-bottom {
@ -6509,21 +6509,18 @@ a.bg-inverse:focus, a.bg-inverse:hover {
-webkit-box-align: start; -webkit-box-align: start;
-webkit-align-items: flex-start; -webkit-align-items: flex-start;
-ms-flex-align: start; -ms-flex-align: start;
-ms-grid-row-align: flex-start;
align-items: flex-start; align-items: flex-start;
} }
.flex-items-xl-middle { .flex-items-xl-middle {
-webkit-box-align: center; -webkit-box-align: center;
-webkit-align-items: center; -webkit-align-items: center;
-ms-flex-align: center; -ms-flex-align: center;
-ms-grid-row-align: center;
align-items: center; align-items: center;
} }
.flex-items-xl-bottom { .flex-items-xl-bottom {
-webkit-box-align: end; -webkit-box-align: end;
-webkit-align-items: flex-end; -webkit-align-items: flex-end;
-ms-flex-align: end; -ms-flex-align: end;
-ms-grid-row-align: flex-end;
align-items: flex-end; align-items: flex-end;
} }
} }
@ -6537,6 +6534,7 @@ a.bg-inverse:focus, a.bg-inverse:hover {
.flex-xl-middle { .flex-xl-middle {
-webkit-align-self: center; -webkit-align-self: center;
-ms-flex-item-align: center; -ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center; align-self: center;
} }
.flex-xl-bottom { .flex-xl-bottom {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1896,7 +1896,7 @@ pre code {
.table-responsive { .table-responsive {
display: block; display: block;
width: 100%; width: 100%;
min-height: .01%; min-height: 0%;
overflow-x: auto; overflow-x: auto;
} }
@ -2035,10 +2035,11 @@ select.form-control:focus::-ms-value {
} }
.form-control-static { .form-control-static {
min-height: 2.5rem;
padding-top: 0.5rem; padding-top: 0.5rem;
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
margin-bottom: 0; line-height: 1.25;
border: solid transparent;
border-width: 1px 0;
} }
.form-control-static.form-control-sm, .input-group-sm > .form-control-static.form-control, .form-control-static.form-control-sm, .input-group-sm > .form-control-static.form-control,
@ -2162,18 +2163,19 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
border-color: #5cb85c; border-color: #5cb85c;
} }
.has-success .form-control:focus {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #a3d7a3;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #a3d7a3;
}
.has-success .input-group-addon { .has-success .input-group-addon {
color: #5cb85c; color: #5cb85c;
border-color: #5cb85c; border-color: #5cb85c;
background-color: #eaf6ea; background-color: #eaf6ea;
} }
.has-success .form-control-feedback {
color: #5cb85c;
}
.has-success .form-control-success { .has-success .form-control-success {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='$form-icon-success-color' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#5cb85c' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");
} }
.has-warning .form-control-feedback, .has-warning .form-control-feedback,
@ -2188,16 +2190,17 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
border-color: #f0ad4e; border-color: #f0ad4e;
} }
.has-warning .form-control:focus {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f8d9ac;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f8d9ac;
}
.has-warning .input-group-addon { .has-warning .input-group-addon {
color: #f0ad4e; color: #f0ad4e;
border-color: #f0ad4e; border-color: #f0ad4e;
background-color: white; background-color: white;
} }
.has-warning .form-control-feedback {
color: #f0ad4e;
}
.has-warning .form-control-warning { .has-warning .form-control-warning {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#f0ad4e' d='M4.4 5.324h-.8v-2.46h.8zm0 1.42h-.8V5.89h.8zM3.76.63L.04 7.075c-.115.2.016.425.26.426h7.397c.242 0 .372-.226.258-.426C6.726 4.924 5.47 2.79 4.253.63c-.113-.174-.39-.174-.494 0z'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#f0ad4e' d='M4.4 5.324h-.8v-2.46h.8zm0 1.42h-.8V5.89h.8zM3.76.63L.04 7.075c-.115.2.016.425.26.426h7.397c.242 0 .372-.226.258-.426C6.726 4.924 5.47 2.79 4.253.63c-.113-.174-.39-.174-.494 0z'/%3E%3C/svg%3E");
} }
@ -2214,16 +2217,17 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
border-color: #d9534f; border-color: #d9534f;
} }
.has-danger .form-control:focus {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #eba5a3;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #eba5a3;
}
.has-danger .input-group-addon { .has-danger .input-group-addon {
color: #d9534f; color: #d9534f;
border-color: #d9534f; border-color: #d9534f;
background-color: #fdf7f7; background-color: #fdf7f7;
} }
.has-danger .form-control-feedback {
color: #d9534f;
}
.has-danger .form-control-danger { .has-danger .form-control-danger {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#d9534f' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#d9534f' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E");
} }
@ -2244,6 +2248,7 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
} }
.form-inline .input-group { .form-inline .input-group {
display: inline-table; display: inline-table;
width: auto;
vertical-align: middle; vertical-align: middle;
} }
.form-inline .input-group .input-group-addon, .form-inline .input-group .input-group-addon,
@ -4950,6 +4955,8 @@ base::-moz-progress-bar,
} }
.list-group-flush .list-group-item { .list-group-flush .list-group-item {
border-right: 0;
border-left: 0;
border-radius: 0; border-radius: 0;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -2113,7 +2113,7 @@ pre code {
.table-responsive { .table-responsive {
display: block; display: block;
width: 100%; width: 100%;
min-height: .01%; min-height: 0%;
overflow-x: auto; overflow-x: auto;
} }
@ -2252,10 +2252,11 @@ select.form-control:focus::-ms-value {
} }
.form-control-static { .form-control-static {
min-height: 2.5rem;
padding-top: 0.5rem; padding-top: 0.5rem;
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
margin-bottom: 0; line-height: 1.25;
border: solid transparent;
border-width: 1px 0;
} }
.form-control-static.form-control-sm, .input-group-sm > .form-control-static.form-control, .form-control-static.form-control-sm, .input-group-sm > .form-control-static.form-control,
@ -2379,18 +2380,19 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
border-color: #5cb85c; border-color: #5cb85c;
} }
.has-success .form-control:focus {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #a3d7a3;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #a3d7a3;
}
.has-success .input-group-addon { .has-success .input-group-addon {
color: #5cb85c; color: #5cb85c;
border-color: #5cb85c; border-color: #5cb85c;
background-color: #eaf6ea; background-color: #eaf6ea;
} }
.has-success .form-control-feedback {
color: #5cb85c;
}
.has-success .form-control-success { .has-success .form-control-success {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='$form-icon-success-color' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#5cb85c' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");
} }
.has-warning .form-control-feedback, .has-warning .form-control-feedback,
@ -2405,16 +2407,17 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
border-color: #f0ad4e; border-color: #f0ad4e;
} }
.has-warning .form-control:focus {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f8d9ac;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f8d9ac;
}
.has-warning .input-group-addon { .has-warning .input-group-addon {
color: #f0ad4e; color: #f0ad4e;
border-color: #f0ad4e; border-color: #f0ad4e;
background-color: white; background-color: white;
} }
.has-warning .form-control-feedback {
color: #f0ad4e;
}
.has-warning .form-control-warning { .has-warning .form-control-warning {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#f0ad4e' d='M4.4 5.324h-.8v-2.46h.8zm0 1.42h-.8V5.89h.8zM3.76.63L.04 7.075c-.115.2.016.425.26.426h7.397c.242 0 .372-.226.258-.426C6.726 4.924 5.47 2.79 4.253.63c-.113-.174-.39-.174-.494 0z'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#f0ad4e' d='M4.4 5.324h-.8v-2.46h.8zm0 1.42h-.8V5.89h.8zM3.76.63L.04 7.075c-.115.2.016.425.26.426h7.397c.242 0 .372-.226.258-.426C6.726 4.924 5.47 2.79 4.253.63c-.113-.174-.39-.174-.494 0z'/%3E%3C/svg%3E");
} }
@ -2431,16 +2434,17 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
border-color: #d9534f; border-color: #d9534f;
} }
.has-danger .form-control:focus {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #eba5a3;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #eba5a3;
}
.has-danger .input-group-addon { .has-danger .input-group-addon {
color: #d9534f; color: #d9534f;
border-color: #d9534f; border-color: #d9534f;
background-color: #fdf7f7; background-color: #fdf7f7;
} }
.has-danger .form-control-feedback {
color: #d9534f;
}
.has-danger .form-control-danger { .has-danger .form-control-danger {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#d9534f' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#d9534f' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E");
} }
@ -2461,6 +2465,7 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
} }
.form-inline .input-group { .form-inline .input-group {
display: inline-table; display: inline-table;
width: auto;
vertical-align: middle; vertical-align: middle;
} }
.form-inline .input-group .input-group-addon, .form-inline .input-group .input-group-addon,
@ -5080,6 +5085,7 @@ base::-moz-progress-bar,
.media-middle { .media-middle {
-webkit-align-self: center; -webkit-align-self: center;
-ms-flex-item-align: center; -ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center; align-self: center;
} }
@ -5177,6 +5183,8 @@ base::-moz-progress-bar,
} }
.list-group-flush .list-group-item { .list-group-flush .list-group-item {
border-right: 0;
border-left: 0;
border-radius: 0; border-radius: 0;
} }
@ -6126,7 +6134,6 @@ a.bg-inverse:focus, a.bg-inverse:hover {
-webkit-box-align: start; -webkit-box-align: start;
-webkit-align-items: flex-start; -webkit-align-items: flex-start;
-ms-flex-align: start; -ms-flex-align: start;
-ms-grid-row-align: flex-start;
align-items: flex-start; align-items: flex-start;
} }
@ -6134,7 +6141,6 @@ a.bg-inverse:focus, a.bg-inverse:hover {
-webkit-box-align: center; -webkit-box-align: center;
-webkit-align-items: center; -webkit-align-items: center;
-ms-flex-align: center; -ms-flex-align: center;
-ms-grid-row-align: center;
align-items: center; align-items: center;
} }
@ -6142,7 +6148,6 @@ a.bg-inverse:focus, a.bg-inverse:hover {
-webkit-box-align: end; -webkit-box-align: end;
-webkit-align-items: flex-end; -webkit-align-items: flex-end;
-ms-flex-align: end; -ms-flex-align: end;
-ms-grid-row-align: flex-end;
align-items: flex-end; align-items: flex-end;
} }
@ -6155,6 +6160,7 @@ a.bg-inverse:focus, a.bg-inverse:hover {
.flex-xs-middle { .flex-xs-middle {
-webkit-align-self: center; -webkit-align-self: center;
-ms-flex-item-align: center; -ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center; align-self: center;
} }
@ -6224,21 +6230,18 @@ a.bg-inverse:focus, a.bg-inverse:hover {
-webkit-box-align: start; -webkit-box-align: start;
-webkit-align-items: flex-start; -webkit-align-items: flex-start;
-ms-flex-align: start; -ms-flex-align: start;
-ms-grid-row-align: flex-start;
align-items: flex-start; align-items: flex-start;
} }
.flex-items-sm-middle { .flex-items-sm-middle {
-webkit-box-align: center; -webkit-box-align: center;
-webkit-align-items: center; -webkit-align-items: center;
-ms-flex-align: center; -ms-flex-align: center;
-ms-grid-row-align: center;
align-items: center; align-items: center;
} }
.flex-items-sm-bottom { .flex-items-sm-bottom {
-webkit-box-align: end; -webkit-box-align: end;
-webkit-align-items: flex-end; -webkit-align-items: flex-end;
-ms-flex-align: end; -ms-flex-align: end;
-ms-grid-row-align: flex-end;
align-items: flex-end; align-items: flex-end;
} }
} }
@ -6252,6 +6255,7 @@ a.bg-inverse:focus, a.bg-inverse:hover {
.flex-sm-middle { .flex-sm-middle {
-webkit-align-self: center; -webkit-align-self: center;
-ms-flex-item-align: center; -ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center; align-self: center;
} }
.flex-sm-bottom { .flex-sm-bottom {
@ -6319,21 +6323,18 @@ a.bg-inverse:focus, a.bg-inverse:hover {
-webkit-box-align: start; -webkit-box-align: start;
-webkit-align-items: flex-start; -webkit-align-items: flex-start;
-ms-flex-align: start; -ms-flex-align: start;
-ms-grid-row-align: flex-start;
align-items: flex-start; align-items: flex-start;
} }
.flex-items-md-middle { .flex-items-md-middle {
-webkit-box-align: center; -webkit-box-align: center;
-webkit-align-items: center; -webkit-align-items: center;
-ms-flex-align: center; -ms-flex-align: center;
-ms-grid-row-align: center;
align-items: center; align-items: center;
} }
.flex-items-md-bottom { .flex-items-md-bottom {
-webkit-box-align: end; -webkit-box-align: end;
-webkit-align-items: flex-end; -webkit-align-items: flex-end;
-ms-flex-align: end; -ms-flex-align: end;
-ms-grid-row-align: flex-end;
align-items: flex-end; align-items: flex-end;
} }
} }
@ -6347,6 +6348,7 @@ a.bg-inverse:focus, a.bg-inverse:hover {
.flex-md-middle { .flex-md-middle {
-webkit-align-self: center; -webkit-align-self: center;
-ms-flex-item-align: center; -ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center; align-self: center;
} }
.flex-md-bottom { .flex-md-bottom {
@ -6414,21 +6416,18 @@ a.bg-inverse:focus, a.bg-inverse:hover {
-webkit-box-align: start; -webkit-box-align: start;
-webkit-align-items: flex-start; -webkit-align-items: flex-start;
-ms-flex-align: start; -ms-flex-align: start;
-ms-grid-row-align: flex-start;
align-items: flex-start; align-items: flex-start;
} }
.flex-items-lg-middle { .flex-items-lg-middle {
-webkit-box-align: center; -webkit-box-align: center;
-webkit-align-items: center; -webkit-align-items: center;
-ms-flex-align: center; -ms-flex-align: center;
-ms-grid-row-align: center;
align-items: center; align-items: center;
} }
.flex-items-lg-bottom { .flex-items-lg-bottom {
-webkit-box-align: end; -webkit-box-align: end;
-webkit-align-items: flex-end; -webkit-align-items: flex-end;
-ms-flex-align: end; -ms-flex-align: end;
-ms-grid-row-align: flex-end;
align-items: flex-end; align-items: flex-end;
} }
} }
@ -6442,6 +6441,7 @@ a.bg-inverse:focus, a.bg-inverse:hover {
.flex-lg-middle { .flex-lg-middle {
-webkit-align-self: center; -webkit-align-self: center;
-ms-flex-item-align: center; -ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center; align-self: center;
} }
.flex-lg-bottom { .flex-lg-bottom {
@ -6509,21 +6509,18 @@ a.bg-inverse:focus, a.bg-inverse:hover {
-webkit-box-align: start; -webkit-box-align: start;
-webkit-align-items: flex-start; -webkit-align-items: flex-start;
-ms-flex-align: start; -ms-flex-align: start;
-ms-grid-row-align: flex-start;
align-items: flex-start; align-items: flex-start;
} }
.flex-items-xl-middle { .flex-items-xl-middle {
-webkit-box-align: center; -webkit-box-align: center;
-webkit-align-items: center; -webkit-align-items: center;
-ms-flex-align: center; -ms-flex-align: center;
-ms-grid-row-align: center;
align-items: center; align-items: center;
} }
.flex-items-xl-bottom { .flex-items-xl-bottom {
-webkit-box-align: end; -webkit-box-align: end;
-webkit-align-items: flex-end; -webkit-align-items: flex-end;
-ms-flex-align: end; -ms-flex-align: end;
-ms-grid-row-align: flex-end;
align-items: flex-end; align-items: flex-end;
} }
} }
@ -6537,6 +6534,7 @@ a.bg-inverse:focus, a.bg-inverse:hover {
.flex-xl-middle { .flex-xl-middle {
-webkit-align-self: center; -webkit-align-self: center;
-ms-flex-item-align: center; -ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center; align-self: center;
} }
.flex-xl-bottom { .flex-xl-bottom {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1896,7 +1896,7 @@ pre code {
.table-responsive { .table-responsive {
display: block; display: block;
width: 100%; width: 100%;
min-height: .01%; min-height: 0%;
overflow-x: auto; overflow-x: auto;
} }
@ -2035,10 +2035,11 @@ select.form-control:focus::-ms-value {
} }
.form-control-static { .form-control-static {
min-height: 2.5rem;
padding-top: 0.5rem; padding-top: 0.5rem;
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
margin-bottom: 0; line-height: 1.25;
border: solid transparent;
border-width: 1px 0;
} }
.form-control-static.form-control-sm, .input-group-sm > .form-control-static.form-control, .form-control-static.form-control-sm, .input-group-sm > .form-control-static.form-control,
@ -2162,18 +2163,19 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
border-color: #5cb85c; border-color: #5cb85c;
} }
.has-success .form-control:focus {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #a3d7a3;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #a3d7a3;
}
.has-success .input-group-addon { .has-success .input-group-addon {
color: #5cb85c; color: #5cb85c;
border-color: #5cb85c; border-color: #5cb85c;
background-color: #eaf6ea; background-color: #eaf6ea;
} }
.has-success .form-control-feedback {
color: #5cb85c;
}
.has-success .form-control-success { .has-success .form-control-success {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='$form-icon-success-color' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#5cb85c' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");
} }
.has-warning .form-control-feedback, .has-warning .form-control-feedback,
@ -2188,16 +2190,17 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
border-color: #f0ad4e; border-color: #f0ad4e;
} }
.has-warning .form-control:focus {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f8d9ac;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #f8d9ac;
}
.has-warning .input-group-addon { .has-warning .input-group-addon {
color: #f0ad4e; color: #f0ad4e;
border-color: #f0ad4e; border-color: #f0ad4e;
background-color: white; background-color: white;
} }
.has-warning .form-control-feedback {
color: #f0ad4e;
}
.has-warning .form-control-warning { .has-warning .form-control-warning {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#f0ad4e' d='M4.4 5.324h-.8v-2.46h.8zm0 1.42h-.8V5.89h.8zM3.76.63L.04 7.075c-.115.2.016.425.26.426h7.397c.242 0 .372-.226.258-.426C6.726 4.924 5.47 2.79 4.253.63c-.113-.174-.39-.174-.494 0z'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#f0ad4e' d='M4.4 5.324h-.8v-2.46h.8zm0 1.42h-.8V5.89h.8zM3.76.63L.04 7.075c-.115.2.016.425.26.426h7.397c.242 0 .372-.226.258-.426C6.726 4.924 5.47 2.79 4.253.63c-.113-.174-.39-.174-.494 0z'/%3E%3C/svg%3E");
} }
@ -2214,16 +2217,17 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
border-color: #d9534f; border-color: #d9534f;
} }
.has-danger .form-control:focus {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #eba5a3;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #eba5a3;
}
.has-danger .input-group-addon { .has-danger .input-group-addon {
color: #d9534f; color: #d9534f;
border-color: #d9534f; border-color: #d9534f;
background-color: #fdf7f7; background-color: #fdf7f7;
} }
.has-danger .form-control-feedback {
color: #d9534f;
}
.has-danger .form-control-danger { .has-danger .form-control-danger {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#d9534f' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#d9534f' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E");
} }
@ -2244,6 +2248,7 @@ select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.for
} }
.form-inline .input-group { .form-inline .input-group {
display: inline-table; display: inline-table;
width: auto;
vertical-align: middle; vertical-align: middle;
} }
.form-inline .input-group .input-group-addon, .form-inline .input-group .input-group-addon,
@ -4950,6 +4955,8 @@ base::-moz-progress-bar,
} }
.list-group-flush .list-group-item { .list-group-flush .list-group-item {
border-right: 0;
border-left: 0;
border-radius: 0; border-radius: 0;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

83
js/dist/alert.js vendored
View File

@ -1,8 +1,6 @@
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
/** /**
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
@ -11,7 +9,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
*/ */
var Alert = (function ($) { var Alert = function ($) {
/** /**
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
@ -49,27 +47,18 @@ var Alert = (function ($) {
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
*/ */
var Alert = (function () { var Alert = function () {
function Alert(element) { function Alert(element) {
_classCallCheck(this, Alert); _classCallCheck(this, Alert);
this._element = element; this._element = element;
} }
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
// getters // getters
_createClass(Alert, [{
key: 'close',
// public // public
value: function close(element) { Alert.prototype.close = function close(element) {
element = element || this._element; element = element || this._element;
var rootElement = this._getRootElement(element); var rootElement = this._getRootElement(element);
@ -80,19 +69,16 @@ var Alert = (function ($) {
} }
this._removeElement(rootElement); this._removeElement(rootElement);
} };
}, {
key: 'dispose', Alert.prototype.dispose = function dispose() {
value: function dispose() {
$.removeData(this._element, DATA_KEY); $.removeData(this._element, DATA_KEY);
this._element = null; this._element = null;
} };
// private // private
}, { Alert.prototype._getRootElement = function _getRootElement(element) {
key: '_getRootElement',
value: function _getRootElement(element) {
var selector = Util.getSelectorFromElement(element); var selector = Util.getSelectorFromElement(element);
var parent = false; var parent = false;
@ -105,18 +91,16 @@ var Alert = (function ($) {
} }
return parent; return parent;
} };
}, {
key: '_triggerCloseEvent', Alert.prototype._triggerCloseEvent = function _triggerCloseEvent(element) {
value: function _triggerCloseEvent(element) {
var closeEvent = $.Event(Event.CLOSE); var closeEvent = $.Event(Event.CLOSE);
$(element).trigger(closeEvent); $(element).trigger(closeEvent);
return closeEvent; return closeEvent;
} };
}, {
key: '_removeElement', Alert.prototype._removeElement = function _removeElement(element) {
value: function _removeElement(element) {
$(element).removeClass(ClassName.IN); $(element).removeClass(ClassName.IN);
if (!Util.supportsTransitionEnd() || !$(element).hasClass(ClassName.FADE)) { if (!Util.supportsTransitionEnd() || !$(element).hasClass(ClassName.FADE)) {
@ -125,18 +109,15 @@ var Alert = (function ($) {
} }
$(element).one(Util.TRANSITION_END, $.proxy(this._destroyElement, this, element)).emulateTransitionEnd(TRANSITION_DURATION); $(element).one(Util.TRANSITION_END, $.proxy(this._destroyElement, this, element)).emulateTransitionEnd(TRANSITION_DURATION);
} };
}, {
key: '_destroyElement', Alert.prototype._destroyElement = function _destroyElement(element) {
value: function _destroyElement(element) {
$(element).detach().trigger(Event.CLOSED).remove(); $(element).detach().trigger(Event.CLOSED).remove();
} };
// static // static
}], [{ Alert._jQueryInterface = function _jQueryInterface(config) {
key: '_jQueryInterface',
value: function _jQueryInterface(config) {
return this.each(function () { return this.each(function () {
var $element = $(this); var $element = $(this);
var data = $element.data(DATA_KEY); var data = $element.data(DATA_KEY);
@ -150,10 +131,9 @@ var Alert = (function ($) {
data[config](this); data[config](this);
} }
}); });
} };
}, {
key: '_handleDismiss', Alert._handleDismiss = function _handleDismiss(alertInstance) {
value: function _handleDismiss(alertInstance) {
return function (event) { return function (event) {
if (event) { if (event) {
event.preventDefault(); event.preventDefault();
@ -161,8 +141,9 @@ var Alert = (function ($) {
alertInstance.close(this); alertInstance.close(this);
}; };
} };
}, {
_createClass(Alert, null, [{
key: 'VERSION', key: 'VERSION',
get: function get() { get: function get() {
return VERSION; return VERSION;
@ -170,7 +151,13 @@ var Alert = (function ($) {
}]); }]);
return Alert; return Alert;
})(); }();
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
$(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert())); $(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()));
@ -188,5 +175,5 @@ var Alert = (function ($) {
}; };
return Alert; return Alert;
})(jQuery); }(jQuery);
//# sourceMappingURL=alert.js.map //# sourceMappingURL=alert.js.map

File diff suppressed because one or more lines are too long

53
js/dist/button.js vendored
View File

@ -1,3 +1,7 @@
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
/** /**
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
* Bootstrap (v4.0.0-alpha.4): button.js * Bootstrap (v4.0.0-alpha.4): button.js
@ -5,13 +9,7 @@
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
*/ */
'use strict'; var Button = function ($) {
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
var Button = (function ($) {
/** /**
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
@ -51,27 +49,18 @@ var Button = (function ($) {
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
*/ */
var Button = (function () { var Button = function () {
function Button(element) { function Button(element) {
_classCallCheck(this, Button); _classCallCheck(this, Button);
this._element = element; this._element = element;
} }
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
// getters // getters
_createClass(Button, [{
key: 'toggle',
// public // public
value: function toggle() { Button.prototype.toggle = function toggle() {
var triggerChangeEvent = true; var triggerChangeEvent = true;
var rootElement = $(this._element).closest(Selector.DATA_TOGGLE)[0]; var rootElement = $(this._element).closest(Selector.DATA_TOGGLE)[0];
@ -105,19 +94,16 @@ var Button = (function ($) {
if (triggerChangeEvent) { if (triggerChangeEvent) {
$(this._element).toggleClass(ClassName.ACTIVE); $(this._element).toggleClass(ClassName.ACTIVE);
} }
} };
}, {
key: 'dispose', Button.prototype.dispose = function dispose() {
value: function dispose() {
$.removeData(this._element, DATA_KEY); $.removeData(this._element, DATA_KEY);
this._element = null; this._element = null;
} };
// static // static
}], [{ Button._jQueryInterface = function _jQueryInterface(config) {
key: '_jQueryInterface',
value: function _jQueryInterface(config) {
return this.each(function () { return this.each(function () {
var data = $(this).data(DATA_KEY); var data = $(this).data(DATA_KEY);
@ -130,8 +116,9 @@ var Button = (function ($) {
data[config](); data[config]();
} }
}); });
} };
}, {
_createClass(Button, null, [{
key: 'VERSION', key: 'VERSION',
get: function get() { get: function get() {
return VERSION; return VERSION;
@ -139,7 +126,13 @@ var Button = (function ($) {
}]); }]);
return Button; return Button;
})(); }();
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
$(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) { $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {
event.preventDefault(); event.preventDefault();
@ -170,5 +163,5 @@ var Button = (function ($) {
}; };
return Button; return Button;
})(jQuery); }(jQuery);
//# sourceMappingURL=button.js.map //# sourceMappingURL=button.js.map

File diff suppressed because one or more lines are too long

148
js/dist/carousel.js vendored
View File

@ -1,8 +1,8 @@
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
/** /**
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
@ -11,7 +11,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
*/ */
var Carousel = (function ($) { var Carousel = function ($) {
/** /**
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
@ -85,7 +85,7 @@ var Carousel = (function ($) {
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
*/ */
var Carousel = (function () { var Carousel = function () {
function Carousel(element, config) { function Carousel(element, config) {
_classCallCheck(this, Carousel); _classCallCheck(this, Carousel);
@ -103,42 +103,30 @@ var Carousel = (function ($) {
this._addEventListeners(); this._addEventListeners();
} }
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
// getters // getters
_createClass(Carousel, [{
key: 'next',
// public // public
value: function next() { Carousel.prototype.next = function next() {
if (!this._isSliding) { if (!this._isSliding) {
this._slide(Direction.NEXT); this._slide(Direction.NEXT);
} }
} };
}, {
key: 'nextWhenVisible', Carousel.prototype.nextWhenVisible = function nextWhenVisible() {
value: function nextWhenVisible() {
// Don't call next when the page isn't visible // Don't call next when the page isn't visible
if (!document.hidden) { if (!document.hidden) {
this.next(); this.next();
} }
} };
}, {
key: 'prev', Carousel.prototype.prev = function prev() {
value: function prev() {
if (!this._isSliding) { if (!this._isSliding) {
this._slide(Direction.PREVIOUS); this._slide(Direction.PREVIOUS);
} }
} };
}, {
key: 'pause', Carousel.prototype.pause = function pause(event) {
value: function pause(event) {
if (!event) { if (!event) {
this._isPaused = true; this._isPaused = true;
} }
@ -150,10 +138,9 @@ var Carousel = (function ($) {
clearInterval(this._interval); clearInterval(this._interval);
this._interval = null; this._interval = null;
} };
}, {
key: 'cycle', Carousel.prototype.cycle = function cycle(event) {
value: function cycle(event) {
if (!event) { if (!event) {
this._isPaused = false; this._isPaused = false;
} }
@ -166,10 +153,9 @@ var Carousel = (function ($) {
if (this._config.interval && !this._isPaused) { if (this._config.interval && !this._isPaused) {
this._interval = setInterval($.proxy(document.visibilityState ? this.nextWhenVisible : this.next, this), this._config.interval); this._interval = setInterval($.proxy(document.visibilityState ? this.nextWhenVisible : this.next, this), this._config.interval);
} }
} };
}, {
key: 'to', Carousel.prototype.to = function to(index) {
value: function to(index) {
var _this = this; var _this = this;
this._activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0]; this._activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0];
@ -196,10 +182,9 @@ var Carousel = (function ($) {
var direction = index > activeIndex ? Direction.NEXT : Direction.PREVIOUS; var direction = index > activeIndex ? Direction.NEXT : Direction.PREVIOUS;
this._slide(direction, this._items[index]); this._slide(direction, this._items[index]);
} };
}, {
key: 'dispose', Carousel.prototype.dispose = function dispose() {
value: function dispose() {
$(this._element).off(EVENT_KEY); $(this._element).off(EVENT_KEY);
$.removeData(this._element, DATA_KEY); $.removeData(this._element, DATA_KEY);
@ -211,20 +196,17 @@ var Carousel = (function ($) {
this._isSliding = null; this._isSliding = null;
this._activeElement = null; this._activeElement = null;
this._indicatorsElement = null; this._indicatorsElement = null;
} };
// private // private
}, { Carousel.prototype._getConfig = function _getConfig(config) {
key: '_getConfig',
value: function _getConfig(config) {
config = $.extend({}, Default, config); config = $.extend({}, Default, config);
Util.typeCheckConfig(NAME, config, DefaultType); Util.typeCheckConfig(NAME, config, DefaultType);
return config; return config;
} };
}, {
key: '_addEventListeners', Carousel.prototype._addEventListeners = function _addEventListeners() {
value: function _addEventListeners() {
if (this._config.keyboard) { if (this._config.keyboard) {
$(this._element).on(Event.KEYDOWN, $.proxy(this._keydown, this)); $(this._element).on(Event.KEYDOWN, $.proxy(this._keydown, this));
} }
@ -232,10 +214,9 @@ var Carousel = (function ($) {
if (this._config.pause === 'hover' && !('ontouchstart' in document.documentElement)) { if (this._config.pause === 'hover' && !('ontouchstart' in document.documentElement)) {
$(this._element).on(Event.MOUSEENTER, $.proxy(this.pause, this)).on(Event.MOUSELEAVE, $.proxy(this.cycle, this)); $(this._element).on(Event.MOUSEENTER, $.proxy(this.pause, this)).on(Event.MOUSELEAVE, $.proxy(this.cycle, this));
} }
} };
}, {
key: '_keydown', Carousel.prototype._keydown = function _keydown(event) {
value: function _keydown(event) {
event.preventDefault(); event.preventDefault();
if (/input|textarea/i.test(event.target.tagName)) { if (/input|textarea/i.test(event.target.tagName)) {
@ -252,16 +233,14 @@ var Carousel = (function ($) {
default: default:
return; return;
} }
} };
}, {
key: '_getItemIndex', Carousel.prototype._getItemIndex = function _getItemIndex(element) {
value: function _getItemIndex(element) {
this._items = $.makeArray($(element).parent().find(Selector.ITEM)); this._items = $.makeArray($(element).parent().find(Selector.ITEM));
return this._items.indexOf(element); return this._items.indexOf(element);
} };
}, {
key: '_getItemByDirection', Carousel.prototype._getItemByDirection = function _getItemByDirection(direction, activeElement) {
value: function _getItemByDirection(direction, activeElement) {
var isNextDirection = direction === Direction.NEXT; var isNextDirection = direction === Direction.NEXT;
var isPrevDirection = direction === Direction.PREVIOUS; var isPrevDirection = direction === Direction.PREVIOUS;
var activeIndex = this._getItemIndex(activeElement); var activeIndex = this._getItemIndex(activeElement);
@ -276,10 +255,9 @@ var Carousel = (function ($) {
var itemIndex = (activeIndex + delta) % this._items.length; var itemIndex = (activeIndex + delta) % this._items.length;
return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex]; return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex];
} };
}, {
key: '_triggerSlideEvent', Carousel.prototype._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, directionalClassname) {
value: function _triggerSlideEvent(relatedTarget, directionalClassname) {
var slideEvent = $.Event(Event.SLIDE, { var slideEvent = $.Event(Event.SLIDE, {
relatedTarget: relatedTarget, relatedTarget: relatedTarget,
direction: directionalClassname direction: directionalClassname
@ -288,10 +266,9 @@ var Carousel = (function ($) {
$(this._element).trigger(slideEvent); $(this._element).trigger(slideEvent);
return slideEvent; return slideEvent;
} };
}, {
key: '_setActiveIndicatorElement', Carousel.prototype._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
value: function _setActiveIndicatorElement(element) {
if (this._indicatorsElement) { if (this._indicatorsElement) {
$(this._indicatorsElement).find(Selector.ACTIVE).removeClass(ClassName.ACTIVE); $(this._indicatorsElement).find(Selector.ACTIVE).removeClass(ClassName.ACTIVE);
@ -301,10 +278,9 @@ var Carousel = (function ($) {
$(nextIndicator).addClass(ClassName.ACTIVE); $(nextIndicator).addClass(ClassName.ACTIVE);
} }
} }
} };
}, {
key: '_slide', Carousel.prototype._slide = function _slide(direction, element) {
value: function _slide(direction, element) {
var _this2 = this; var _this2 = this;
var activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0]; var activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0];
@ -375,18 +351,16 @@ var Carousel = (function ($) {
if (isCycling) { if (isCycling) {
this.cycle(); this.cycle();
} }
} };
// static // static
}], [{ Carousel._jQueryInterface = function _jQueryInterface(config) {
key: '_jQueryInterface',
value: function _jQueryInterface(config) {
return this.each(function () { return this.each(function () {
var data = $(this).data(DATA_KEY); var data = $(this).data(DATA_KEY);
var _config = $.extend({}, Default, $(this).data()); var _config = $.extend({}, Default, $(this).data());
if (typeof config === 'object') { if ((typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object') {
$.extend(_config, config); $.extend(_config, config);
} }
@ -409,10 +383,9 @@ var Carousel = (function ($) {
data.cycle(); data.cycle();
} }
}); });
} };
}, {
key: '_dataApiClickHandler', Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {
value: function _dataApiClickHandler(event) {
var selector = Util.getSelectorFromElement(this); var selector = Util.getSelectorFromElement(this);
if (!selector) { if (!selector) {
@ -439,8 +412,9 @@ var Carousel = (function ($) {
} }
event.preventDefault(); event.preventDefault();
} };
}, {
_createClass(Carousel, null, [{
key: 'VERSION', key: 'VERSION',
get: function get() { get: function get() {
return VERSION; return VERSION;
@ -453,7 +427,13 @@ var Carousel = (function ($) {
}]); }]);
return Carousel; return Carousel;
})(); }();
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
$(document).on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler); $(document).on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler);
@ -478,5 +458,5 @@ var Carousel = (function ($) {
}; };
return Carousel; return Carousel;
})(jQuery); }(jQuery);
//# sourceMappingURL=carousel.js.map //# sourceMappingURL=carousel.js.map

File diff suppressed because one or more lines are too long

110
js/dist/collapse.js vendored
View File

@ -1,8 +1,8 @@
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
/** /**
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
@ -11,7 +11,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
*/ */
var Collapse = (function ($) { var Collapse = function ($) {
/** /**
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
@ -68,7 +68,7 @@ var Collapse = (function ($) {
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
*/ */
var Collapse = (function () { var Collapse = function () {
function Collapse(element, config) { function Collapse(element, config) {
_classCallCheck(this, Collapse); _classCallCheck(this, Collapse);
@ -88,37 +88,27 @@ var Collapse = (function ($) {
} }
} }
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
// getters // getters
_createClass(Collapse, [{
key: 'toggle',
// public // public
value: function toggle() { Collapse.prototype.toggle = function toggle() {
if ($(this._element).hasClass(ClassName.IN)) { if ($(this._element).hasClass(ClassName.IN)) {
this.hide(); this.hide();
} else { } else {
this.show(); this.show();
} }
} };
}, {
key: 'show', Collapse.prototype.show = function show() {
value: function show() {
var _this = this; var _this = this;
if (this._isTransitioning || $(this._element).hasClass(ClassName.IN)) { if (this._isTransitioning || $(this._element).hasClass(ClassName.IN)) {
return; return;
} }
var actives = undefined; var actives = void 0;
var activesData = undefined; var activesData = void 0;
if (this._parent) { if (this._parent) {
actives = $.makeArray($(Selector.ACTIVES)); actives = $.makeArray($(Selector.ACTIVES));
@ -181,10 +171,9 @@ var Collapse = (function ($) {
$(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);
this._element.style[dimension] = this._element[scrollSize] + 'px'; this._element.style[dimension] = this._element[scrollSize] + 'px';
} };
}, {
key: 'hide', Collapse.prototype.hide = function hide() {
value: function hide() {
var _this2 = this; var _this2 = this;
if (this._isTransitioning || !$(this._element).hasClass(ClassName.IN)) { if (this._isTransitioning || !$(this._element).hasClass(ClassName.IN)) {
@ -227,15 +216,13 @@ var Collapse = (function ($) {
} }
$(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION);
} };
}, {
key: 'setTransitioning', Collapse.prototype.setTransitioning = function setTransitioning(isTransitioning) {
value: function setTransitioning(isTransitioning) {
this._isTransitioning = isTransitioning; this._isTransitioning = isTransitioning;
} };
}, {
key: 'dispose', Collapse.prototype.dispose = function dispose() {
value: function dispose() {
$.removeData(this._element, DATA_KEY); $.removeData(this._element, DATA_KEY);
this._config = null; this._config = null;
@ -243,27 +230,23 @@ var Collapse = (function ($) {
this._element = null; this._element = null;
this._triggerArray = null; this._triggerArray = null;
this._isTransitioning = null; this._isTransitioning = null;
} };
// private // private
}, { Collapse.prototype._getConfig = function _getConfig(config) {
key: '_getConfig',
value: function _getConfig(config) {
config = $.extend({}, Default, config); config = $.extend({}, Default, config);
config.toggle = Boolean(config.toggle); // coerce string values config.toggle = Boolean(config.toggle); // coerce string values
Util.typeCheckConfig(NAME, config, DefaultType); Util.typeCheckConfig(NAME, config, DefaultType);
return config; return config;
} };
}, {
key: '_getDimension', Collapse.prototype._getDimension = function _getDimension() {
value: function _getDimension() {
var hasWidth = $(this._element).hasClass(Dimension.WIDTH); var hasWidth = $(this._element).hasClass(Dimension.WIDTH);
return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT; return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT;
} };
}, {
key: '_getParent', Collapse.prototype._getParent = function _getParent() {
value: function _getParent() {
var _this3 = this; var _this3 = this;
var parent = $(this._config.parent)[0]; var parent = $(this._config.parent)[0];
@ -274,10 +257,9 @@ var Collapse = (function ($) {
}); });
return parent; return parent;
} };
}, {
key: '_addAriaAndCollapsedClass', Collapse.prototype._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
value: function _addAriaAndCollapsedClass(element, triggerArray) {
if (element) { if (element) {
var isOpen = $(element).hasClass(ClassName.IN); var isOpen = $(element).hasClass(ClassName.IN);
element.setAttribute('aria-expanded', isOpen); element.setAttribute('aria-expanded', isOpen);
@ -286,23 +268,20 @@ var Collapse = (function ($) {
$(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen); $(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
} }
} }
} };
// static // static
}], [{ Collapse._getTargetFromElement = function _getTargetFromElement(element) {
key: '_getTargetFromElement',
value: function _getTargetFromElement(element) {
var selector = Util.getSelectorFromElement(element); var selector = Util.getSelectorFromElement(element);
return selector ? $(selector)[0] : null; return selector ? $(selector)[0] : null;
} };
}, {
key: '_jQueryInterface', Collapse._jQueryInterface = function _jQueryInterface(config) {
value: function _jQueryInterface(config) {
return this.each(function () { return this.each(function () {
var $this = $(this); var $this = $(this);
var data = $this.data(DATA_KEY); var data = $this.data(DATA_KEY);
var _config = $.extend({}, Default, $this.data(), typeof config === 'object' && config); var _config = $.extend({}, Default, $this.data(), (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config);
if (!data && _config.toggle && /show|hide/.test(config)) { if (!data && _config.toggle && /show|hide/.test(config)) {
_config.toggle = false; _config.toggle = false;
@ -320,8 +299,9 @@ var Collapse = (function ($) {
data[config](); data[config]();
} }
}); });
} };
}, {
_createClass(Collapse, null, [{
key: 'VERSION', key: 'VERSION',
get: function get() { get: function get() {
return VERSION; return VERSION;
@ -334,7 +314,13 @@ var Collapse = (function ($) {
}]); }]);
return Collapse; return Collapse;
})(); }();
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
$(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
event.preventDefault(); event.preventDefault();
@ -360,5 +346,5 @@ var Collapse = (function ($) {
}; };
return Collapse; return Collapse;
})(jQuery); }(jQuery);
//# sourceMappingURL=collapse.js.map //# sourceMappingURL=collapse.js.map

File diff suppressed because one or more lines are too long

88
js/dist/dropdown.js vendored
View File

@ -1,8 +1,6 @@
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
/** /**
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
@ -11,7 +9,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
*/ */
var Dropdown = (function ($) { var Dropdown = function ($) {
/** /**
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
@ -62,7 +60,7 @@ var Dropdown = (function ($) {
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
*/ */
var Dropdown = (function () { var Dropdown = function () {
function Dropdown(element) { function Dropdown(element) {
_classCallCheck(this, Dropdown); _classCallCheck(this, Dropdown);
@ -71,20 +69,11 @@ var Dropdown = (function ($) {
this._addEventListeners(); this._addEventListeners();
} }
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
// getters // getters
_createClass(Dropdown, [{
key: 'toggle',
// public // public
value: function toggle() { Dropdown.prototype.toggle = function toggle() {
if (this.disabled || $(this).hasClass(ClassName.DISABLED)) { if (this.disabled || $(this).hasClass(ClassName.DISABLED)) {
return false; return false;
} }
@ -123,28 +112,23 @@ var Dropdown = (function ($) {
$(parent).trigger($.Event(Event.SHOWN, relatedTarget)); $(parent).trigger($.Event(Event.SHOWN, relatedTarget));
return false; return false;
} };
}, {
key: 'dispose', Dropdown.prototype.dispose = function dispose() {
value: function dispose() {
$.removeData(this._element, DATA_KEY); $.removeData(this._element, DATA_KEY);
$(this._element).off(EVENT_KEY); $(this._element).off(EVENT_KEY);
this._element = null; this._element = null;
} };
// private // private
}, { Dropdown.prototype._addEventListeners = function _addEventListeners() {
key: '_addEventListeners',
value: function _addEventListeners() {
$(this._element).on(Event.CLICK, this.toggle); $(this._element).on(Event.CLICK, this.toggle);
} };
// static // static
}], [{ Dropdown._jQueryInterface = function _jQueryInterface(config) {
key: '_jQueryInterface',
value: function _jQueryInterface(config) {
return this.each(function () { return this.each(function () {
var data = $(this).data(DATA_KEY); var data = $(this).data(DATA_KEY);
@ -159,10 +143,9 @@ var Dropdown = (function ($) {
data[config].call(this); data[config].call(this);
} }
}); });
} };
}, {
key: '_clearMenus', Dropdown._clearMenus = function _clearMenus(event) {
value: function _clearMenus(event) {
if (event && event.which === RIGHT_MOUSE_BUTTON_WHICH) { if (event && event.which === RIGHT_MOUSE_BUTTON_WHICH) {
return; return;
} }
@ -175,32 +158,31 @@ var Dropdown = (function ($) {
var toggles = $.makeArray($(Selector.DATA_TOGGLE)); var toggles = $.makeArray($(Selector.DATA_TOGGLE));
for (var i = 0; i < toggles.length; i++) { for (var i = 0; i < toggles.length; i++) {
var _parent = Dropdown._getParentFromElement(toggles[i]); var parent = Dropdown._getParentFromElement(toggles[i]);
var relatedTarget = { relatedTarget: toggles[i] }; var relatedTarget = { relatedTarget: toggles[i] };
if (!$(_parent).hasClass(ClassName.OPEN)) { if (!$(parent).hasClass(ClassName.OPEN)) {
continue; continue;
} }
if (event && event.type === 'click' && /input|textarea/i.test(event.target.tagName) && $.contains(_parent, event.target)) { if (event && event.type === 'click' && /input|textarea/i.test(event.target.tagName) && $.contains(parent, event.target)) {
continue; continue;
} }
var hideEvent = $.Event(Event.HIDE, relatedTarget); var hideEvent = $.Event(Event.HIDE, relatedTarget);
$(_parent).trigger(hideEvent); $(parent).trigger(hideEvent);
if (hideEvent.isDefaultPrevented()) { if (hideEvent.isDefaultPrevented()) {
continue; continue;
} }
toggles[i].setAttribute('aria-expanded', 'false'); toggles[i].setAttribute('aria-expanded', 'false');
$(_parent).removeClass(ClassName.OPEN).trigger($.Event(Event.HIDDEN, relatedTarget)); $(parent).removeClass(ClassName.OPEN).trigger($.Event(Event.HIDDEN, relatedTarget));
} }
} };
}, {
key: '_getParentFromElement', Dropdown._getParentFromElement = function _getParentFromElement(element) {
value: function _getParentFromElement(element) { var parent = void 0;
var parent = undefined;
var selector = Util.getSelectorFromElement(element); var selector = Util.getSelectorFromElement(element);
if (selector) { if (selector) {
@ -208,10 +190,9 @@ var Dropdown = (function ($) {
} }
return parent || element.parentNode; return parent || element.parentNode;
} };
}, {
key: '_dataApiKeydownHandler', Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
value: function _dataApiKeydownHandler(event) {
if (!/(38|40|27|32)/.test(event.which) || /input|textarea/i.test(event.target.tagName)) { if (!/(38|40|27|32)/.test(event.which) || /input|textarea/i.test(event.target.tagName)) {
return; return;
} }
@ -264,8 +245,9 @@ var Dropdown = (function ($) {
} }
items[index].focus(); items[index].focus();
} };
}, {
_createClass(Dropdown, null, [{
key: 'VERSION', key: 'VERSION',
get: function get() { get: function get() {
return VERSION; return VERSION;
@ -273,7 +255,13 @@ var Dropdown = (function ($) {
}]); }]);
return Dropdown; return Dropdown;
})(); }();
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
$(document).on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.ROLE_MENU, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.ROLE_LISTBOX, Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API, Dropdown._clearMenus).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, Dropdown.prototype.toggle).on(Event.CLICK_DATA_API, Selector.FORM_CHILD, function (e) { $(document).on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.ROLE_MENU, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.ROLE_LISTBOX, Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API, Dropdown._clearMenus).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, Dropdown.prototype.toggle).on(Event.CLICK_DATA_API, Selector.FORM_CHILD, function (e) {
e.stopPropagation(); e.stopPropagation();
@ -293,5 +281,5 @@ var Dropdown = (function ($) {
}; };
return Dropdown; return Dropdown;
})(jQuery); }(jQuery);
//# sourceMappingURL=dropdown.js.map //# sourceMappingURL=dropdown.js.map

File diff suppressed because one or more lines are too long

170
js/dist/modal.js vendored
View File

@ -1,8 +1,8 @@
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
/** /**
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
@ -11,7 +11,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
*/ */
var Modal = (function ($) { var Modal = function ($) {
/** /**
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
@ -78,7 +78,7 @@ var Modal = (function ($) {
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
*/ */
var Modal = (function () { var Modal = function () {
function Modal(element, config) { function Modal(element, config) {
_classCallCheck(this, Modal); _classCallCheck(this, Modal);
@ -93,25 +93,15 @@ var Modal = (function ($) {
this._scrollbarWidth = 0; this._scrollbarWidth = 0;
} }
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
// getters // getters
_createClass(Modal, [{
key: 'toggle',
// public // public
value: function toggle(relatedTarget) { Modal.prototype.toggle = function toggle(relatedTarget) {
return this._isShown ? this.hide() : this.show(relatedTarget); return this._isShown ? this.hide() : this.show(relatedTarget);
} };
}, {
key: 'show', Modal.prototype.show = function show(relatedTarget) {
value: function show(relatedTarget) {
var _this = this; var _this = this;
var showEvent = $.Event(Event.SHOW, { var showEvent = $.Event(Event.SHOW, {
@ -145,10 +135,9 @@ var Modal = (function ($) {
}); });
this._showBackdrop($.proxy(this._showElement, this, relatedTarget)); this._showBackdrop($.proxy(this._showElement, this, relatedTarget));
} };
}, {
key: 'hide', Modal.prototype.hide = function hide(event) {
value: function hide(event) {
if (event) { if (event) {
event.preventDefault(); event.preventDefault();
} }
@ -179,10 +168,9 @@ var Modal = (function ($) {
} else { } else {
this._hideModal(); this._hideModal();
} }
} };
}, {
key: 'dispose', Modal.prototype.dispose = function dispose() {
value: function dispose() {
$.removeData(this._element, DATA_KEY); $.removeData(this._element, DATA_KEY);
$(window).off(EVENT_KEY); $(window).off(EVENT_KEY);
@ -199,20 +187,17 @@ var Modal = (function ($) {
this._ignoreBackdropClick = null; this._ignoreBackdropClick = null;
this._originalBodyPadding = null; this._originalBodyPadding = null;
this._scrollbarWidth = null; this._scrollbarWidth = null;
} };
// private // private
}, { Modal.prototype._getConfig = function _getConfig(config) {
key: '_getConfig',
value: function _getConfig(config) {
config = $.extend({}, Default, config); config = $.extend({}, Default, config);
Util.typeCheckConfig(NAME, config, DefaultType); Util.typeCheckConfig(NAME, config, DefaultType);
return config; return config;
} };
}, {
key: '_showElement', Modal.prototype._showElement = function _showElement(relatedTarget) {
value: function _showElement(relatedTarget) {
var _this2 = this; var _this2 = this;
var transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE); var transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE);
@ -252,10 +237,9 @@ var Modal = (function ($) {
} else { } else {
transitionComplete(); transitionComplete();
} }
} };
}, {
key: '_enforceFocus', Modal.prototype._enforceFocus = function _enforceFocus() {
value: function _enforceFocus() {
var _this3 = this; var _this3 = this;
$(document).off(Event.FOCUSIN) // guard against infinite focus loop $(document).off(Event.FOCUSIN) // guard against infinite focus loop
@ -264,10 +248,9 @@ var Modal = (function ($) {
_this3._element.focus(); _this3._element.focus();
} }
}); });
} };
}, {
key: '_setEscapeEvent', Modal.prototype._setEscapeEvent = function _setEscapeEvent() {
value: function _setEscapeEvent() {
var _this4 = this; var _this4 = this;
if (this._isShown && this._config.keyboard) { if (this._isShown && this._config.keyboard) {
@ -279,19 +262,17 @@ var Modal = (function ($) {
} else if (!this._isShown) { } else if (!this._isShown) {
$(this._element).off(Event.KEYDOWN_DISMISS); $(this._element).off(Event.KEYDOWN_DISMISS);
} }
} };
}, {
key: '_setResizeEvent', Modal.prototype._setResizeEvent = function _setResizeEvent() {
value: function _setResizeEvent() {
if (this._isShown) { if (this._isShown) {
$(window).on(Event.RESIZE, $.proxy(this._handleUpdate, this)); $(window).on(Event.RESIZE, $.proxy(this._handleUpdate, this));
} else { } else {
$(window).off(Event.RESIZE); $(window).off(Event.RESIZE);
} }
} };
}, {
key: '_hideModal', Modal.prototype._hideModal = function _hideModal() {
value: function _hideModal() {
var _this5 = this; var _this5 = this;
this._element.style.display = 'none'; this._element.style.display = 'none';
@ -302,18 +283,16 @@ var Modal = (function ($) {
_this5._resetScrollbar(); _this5._resetScrollbar();
$(_this5._element).trigger(Event.HIDDEN); $(_this5._element).trigger(Event.HIDDEN);
}); });
} };
}, {
key: '_removeBackdrop', Modal.prototype._removeBackdrop = function _removeBackdrop() {
value: function _removeBackdrop() {
if (this._backdrop) { if (this._backdrop) {
$(this._backdrop).remove(); $(this._backdrop).remove();
this._backdrop = null; this._backdrop = null;
} }
} };
}, {
key: '_showBackdrop', Modal.prototype._showBackdrop = function _showBackdrop(callback) {
value: function _showBackdrop(callback) {
var _this6 = this; var _this6 = this;
var animate = $(this._element).hasClass(ClassName.FADE) ? ClassName.FADE : ''; var animate = $(this._element).hasClass(ClassName.FADE) ? ClassName.FADE : '';
@ -379,21 +358,18 @@ var Modal = (function ($) {
} else if (callback) { } else if (callback) {
callback(); callback();
} }
} };
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// the following methods are used to handle overflowing modals // the following methods are used to handle overflowing modals
// todo (fat): these should probably be refactored out of modal.js // todo (fat): these should probably be refactored out of modal.js
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
}, { Modal.prototype._handleUpdate = function _handleUpdate() {
key: '_handleUpdate',
value: function _handleUpdate() {
this._adjustDialog(); this._adjustDialog();
} };
}, {
key: '_adjustDialog', Modal.prototype._adjustDialog = function _adjustDialog() {
value: function _adjustDialog() {
var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight; var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
if (!this._isBodyOverflowing && isModalOverflowing) { if (!this._isBodyOverflowing && isModalOverflowing) {
@ -403,22 +379,19 @@ var Modal = (function ($) {
if (this._isBodyOverflowing && !isModalOverflowing) { if (this._isBodyOverflowing && !isModalOverflowing) {
this._element.style.paddingRight = this._scrollbarWidth + 'px'; this._element.style.paddingRight = this._scrollbarWidth + 'px';
} }
} };
}, {
key: '_resetAdjustments', Modal.prototype._resetAdjustments = function _resetAdjustments() {
value: function _resetAdjustments() {
this._element.style.paddingLeft = ''; this._element.style.paddingLeft = '';
this._element.style.paddingRight = ''; this._element.style.paddingRight = '';
} };
}, {
key: '_checkScrollbar', Modal.prototype._checkScrollbar = function _checkScrollbar() {
value: function _checkScrollbar() {
this._isBodyOverflowing = document.body.clientWidth < window.innerWidth; this._isBodyOverflowing = document.body.clientWidth < window.innerWidth;
this._scrollbarWidth = this._getScrollbarWidth(); this._scrollbarWidth = this._getScrollbarWidth();
} };
}, {
key: '_setScrollbar', Modal.prototype._setScrollbar = function _setScrollbar() {
value: function _setScrollbar() {
var bodyPadding = parseInt($(Selector.FIXED_CONTENT).css('padding-right') || 0, 10); var bodyPadding = parseInt($(Selector.FIXED_CONTENT).css('padding-right') || 0, 10);
this._originalBodyPadding = document.body.style.paddingRight || ''; this._originalBodyPadding = document.body.style.paddingRight || '';
@ -426,15 +399,13 @@ var Modal = (function ($) {
if (this._isBodyOverflowing) { if (this._isBodyOverflowing) {
document.body.style.paddingRight = bodyPadding + this._scrollbarWidth + 'px'; document.body.style.paddingRight = bodyPadding + this._scrollbarWidth + 'px';
} }
} };
}, {
key: '_resetScrollbar', Modal.prototype._resetScrollbar = function _resetScrollbar() {
value: function _resetScrollbar() {
document.body.style.paddingRight = this._originalBodyPadding; document.body.style.paddingRight = this._originalBodyPadding;
} };
}, {
key: '_getScrollbarWidth', Modal.prototype._getScrollbarWidth = function _getScrollbarWidth() {
value: function _getScrollbarWidth() {
// thx d.walsh // thx d.walsh
var scrollDiv = document.createElement('div'); var scrollDiv = document.createElement('div');
scrollDiv.className = ClassName.SCROLLBAR_MEASURER; scrollDiv.className = ClassName.SCROLLBAR_MEASURER;
@ -442,16 +413,14 @@ var Modal = (function ($) {
var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth; var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
document.body.removeChild(scrollDiv); document.body.removeChild(scrollDiv);
return scrollbarWidth; return scrollbarWidth;
} };
// static // static
}], [{ Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
key: '_jQueryInterface',
value: function _jQueryInterface(config, relatedTarget) {
return this.each(function () { return this.each(function () {
var data = $(this).data(DATA_KEY); var data = $(this).data(DATA_KEY);
var _config = $.extend({}, Modal.Default, $(this).data(), typeof config === 'object' && config); var _config = $.extend({}, Modal.Default, $(this).data(), (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config);
if (!data) { if (!data) {
data = new Modal(this, _config); data = new Modal(this, _config);
@ -467,8 +436,9 @@ var Modal = (function ($) {
data.show(relatedTarget); data.show(relatedTarget);
} }
}); });
} };
}, {
_createClass(Modal, null, [{
key: 'VERSION', key: 'VERSION',
get: function get() { get: function get() {
return VERSION; return VERSION;
@ -481,12 +451,18 @@ var Modal = (function ($) {
}]); }]);
return Modal; return Modal;
})(); }();
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
$(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
var _this7 = this; var _this7 = this;
var target = undefined; var target = void 0;
var selector = Util.getSelectorFromElement(this); var selector = Util.getSelectorFromElement(this);
if (selector) { if (selector) {
@ -529,5 +505,5 @@ var Modal = (function ($) {
}; };
return Modal; return Modal;
})(jQuery); }(jQuery);
//# sourceMappingURL=modal.js.map //# sourceMappingURL=modal.js.map

File diff suppressed because one or more lines are too long

71
js/dist/popover.js vendored
View File

@ -1,12 +1,12 @@
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } }; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
/** /**
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
@ -15,7 +15,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== 'function'
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
*/ */
var Popover = (function ($) { var Popover = function ($) {
/** /**
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
@ -70,37 +70,26 @@ var Popover = (function ($) {
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
*/ */
var Popover = (function (_Tooltip) { var Popover = function (_Tooltip) {
_inherits(Popover, _Tooltip); _inherits(Popover, _Tooltip);
function Popover() { function Popover() {
_classCallCheck(this, Popover); _classCallCheck(this, Popover);
_get(Object.getPrototypeOf(Popover.prototype), 'constructor', this).apply(this, arguments); return _possibleConstructorReturn(this, _Tooltip.apply(this, arguments));
} }
/**
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
*/
_createClass(Popover, [{
key: 'isWithContent',
// overrides // overrides
value: function isWithContent() { Popover.prototype.isWithContent = function isWithContent() {
return this.getTitle() || this._getContent(); return this.getTitle() || this._getContent();
} };
}, {
key: 'getTipElement', Popover.prototype.getTipElement = function getTipElement() {
value: function getTipElement() {
return this.tip = this.tip || $(this.config.template)[0]; return this.tip = this.tip || $(this.config.template)[0];
} };
}, {
key: 'setContent', Popover.prototype.setContent = function setContent() {
value: function setContent() {
var $tip = $(this.getTipElement()); var $tip = $(this.getTipElement());
// we use append for html objects to maintain js events // we use append for html objects to maintain js events
@ -110,24 +99,20 @@ var Popover = (function ($) {
$tip.removeClass(ClassName.FADE).removeClass(ClassName.IN); $tip.removeClass(ClassName.FADE).removeClass(ClassName.IN);
this.cleanupTether(); this.cleanupTether();
} };
// private // private
}, { Popover.prototype._getContent = function _getContent() {
key: '_getContent',
value: function _getContent() {
return this.element.getAttribute('data-content') || (typeof this.config.content === 'function' ? this.config.content.call(this.element) : this.config.content); return this.element.getAttribute('data-content') || (typeof this.config.content === 'function' ? this.config.content.call(this.element) : this.config.content);
} };
// static // static
}], [{ Popover._jQueryInterface = function _jQueryInterface(config) {
key: '_jQueryInterface',
value: function _jQueryInterface(config) {
return this.each(function () { return this.each(function () {
var data = $(this).data(DATA_KEY); var data = $(this).data(DATA_KEY);
var _config = typeof config === 'object' ? config : null; var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' ? config : null;
if (!data && /destroy|hide/.test(config)) { if (!data && /destroy|hide/.test(config)) {
return; return;
@ -145,10 +130,12 @@ var Popover = (function ($) {
data[config](); data[config]();
} }
}); });
} };
}, {
_createClass(Popover, null, [{
key: 'VERSION', key: 'VERSION',
// getters // getters
get: function get() { get: function get() {
@ -187,7 +174,13 @@ var Popover = (function ($) {
}]); }]);
return Popover; return Popover;
})(Tooltip); }(Tooltip);
/**
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
*/
$.fn[NAME] = Popover._jQueryInterface; $.fn[NAME] = Popover._jQueryInterface;
$.fn[NAME].Constructor = Popover; $.fn[NAME].Constructor = Popover;
@ -197,5 +190,5 @@ var Popover = (function ($) {
}; };
return Popover; return Popover;
})(jQuery); }(jQuery);
//# sourceMappingURL=popover.js.map //# sourceMappingURL=popover.js.map

File diff suppressed because one or more lines are too long

94
js/dist/scrollspy.js vendored
View File

@ -1,8 +1,8 @@
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
/** /**
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
@ -11,7 +11,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
*/ */
var ScrollSpy = (function ($) { var ScrollSpy = function ($) {
/** /**
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
@ -75,7 +75,7 @@ var ScrollSpy = (function ($) {
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
*/ */
var ScrollSpy = (function () { var ScrollSpy = function () {
function ScrollSpy(element, config) { function ScrollSpy(element, config) {
_classCallCheck(this, ScrollSpy); _classCallCheck(this, ScrollSpy);
@ -94,20 +94,11 @@ var ScrollSpy = (function ($) {
this._process(); this._process();
} }
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
// getters // getters
_createClass(ScrollSpy, [{
key: 'refresh',
// public // public
value: function refresh() { ScrollSpy.prototype.refresh = function refresh() {
var _this = this; var _this = this;
var autoMethod = this._scrollElement !== this._scrollElement.window ? OffsetMethod.POSITION : OffsetMethod.OFFSET; var autoMethod = this._scrollElement !== this._scrollElement.window ? OffsetMethod.POSITION : OffsetMethod.OFFSET;
@ -124,7 +115,7 @@ var ScrollSpy = (function ($) {
var targets = $.makeArray($(this._selector)); var targets = $.makeArray($(this._selector));
targets.map(function (element) { targets.map(function (element) {
var target = undefined; var target = void 0;
var targetSelector = Util.getSelectorFromElement(element); var targetSelector = Util.getSelectorFromElement(element);
if (targetSelector) { if (targetSelector) {
@ -144,10 +135,9 @@ var ScrollSpy = (function ($) {
_this._offsets.push(item[0]); _this._offsets.push(item[0]);
_this._targets.push(item[1]); _this._targets.push(item[1]);
}); });
} };
}, {
key: 'dispose', ScrollSpy.prototype.dispose = function dispose() {
value: function dispose() {
$.removeData(this._element, DATA_KEY); $.removeData(this._element, DATA_KEY);
$(this._scrollElement).off(EVENT_KEY); $(this._scrollElement).off(EVENT_KEY);
@ -159,13 +149,11 @@ var ScrollSpy = (function ($) {
this._targets = null; this._targets = null;
this._activeTarget = null; this._activeTarget = null;
this._scrollHeight = null; this._scrollHeight = null;
} };
// private // private
}, { ScrollSpy.prototype._getConfig = function _getConfig(config) {
key: '_getConfig',
value: function _getConfig(config) {
config = $.extend({}, Default, config); config = $.extend({}, Default, config);
if (typeof config.target !== 'string') { if (typeof config.target !== 'string') {
@ -180,20 +168,17 @@ var ScrollSpy = (function ($) {
Util.typeCheckConfig(NAME, config, DefaultType); Util.typeCheckConfig(NAME, config, DefaultType);
return config; return config;
} };
}, {
key: '_getScrollTop', ScrollSpy.prototype._getScrollTop = function _getScrollTop() {
value: function _getScrollTop() {
return this._scrollElement === window ? this._scrollElement.scrollY : this._scrollElement.scrollTop; return this._scrollElement === window ? this._scrollElement.scrollY : this._scrollElement.scrollTop;
} };
}, {
key: '_getScrollHeight', ScrollSpy.prototype._getScrollHeight = function _getScrollHeight() {
value: function _getScrollHeight() {
return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight); return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
} };
}, {
key: '_process', ScrollSpy.prototype._process = function _process() {
value: function _process() {
var scrollTop = this._getScrollTop() + this._config.offset; var scrollTop = this._getScrollTop() + this._config.offset;
var scrollHeight = this._getScrollHeight(); var scrollHeight = this._getScrollHeight();
var maxScroll = this._config.offset + scrollHeight - this._scrollElement.offsetHeight; var maxScroll = this._config.offset + scrollHeight - this._scrollElement.offsetHeight;
@ -223,10 +208,9 @@ var ScrollSpy = (function ($) {
this._activate(this._targets[i]); this._activate(this._targets[i]);
} }
} }
} };
}, {
key: '_activate', ScrollSpy.prototype._activate = function _activate(target) {
value: function _activate(target) {
this._activeTarget = target; this._activeTarget = target;
this._clear(); this._clear();
@ -250,21 +234,18 @@ var ScrollSpy = (function ($) {
$(this._scrollElement).trigger(Event.ACTIVATE, { $(this._scrollElement).trigger(Event.ACTIVATE, {
relatedTarget: target relatedTarget: target
}); });
} };
}, {
key: '_clear', ScrollSpy.prototype._clear = function _clear() {
value: function _clear() {
$(this._selector).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE); $(this._selector).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE);
} };
// static // static
}], [{ ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
key: '_jQueryInterface',
value: function _jQueryInterface(config) {
return this.each(function () { return this.each(function () {
var data = $(this).data(DATA_KEY); var data = $(this).data(DATA_KEY);
var _config = typeof config === 'object' && config || null; var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' && config || null;
if (!data) { if (!data) {
data = new ScrollSpy(this, _config); data = new ScrollSpy(this, _config);
@ -278,8 +259,9 @@ var ScrollSpy = (function ($) {
data[config](); data[config]();
} }
}); });
} };
}, {
_createClass(ScrollSpy, null, [{
key: 'VERSION', key: 'VERSION',
get: function get() { get: function get() {
return VERSION; return VERSION;
@ -292,7 +274,13 @@ var ScrollSpy = (function ($) {
}]); }]);
return ScrollSpy; return ScrollSpy;
})(); }();
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
$(window).on(Event.LOAD_DATA_API, function () { $(window).on(Event.LOAD_DATA_API, function () {
var scrollSpys = $.makeArray($(Selector.DATA_SPY)); var scrollSpys = $.makeArray($(Selector.DATA_SPY));
@ -317,5 +305,5 @@ var ScrollSpy = (function ($) {
}; };
return ScrollSpy; return ScrollSpy;
})(jQuery); }(jQuery);
//# sourceMappingURL=scrollspy.js.map //# sourceMappingURL=scrollspy.js.map

File diff suppressed because one or more lines are too long

66
js/dist/tab.js vendored
View File

@ -1,8 +1,6 @@
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
/** /**
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
@ -11,7 +9,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
*/ */
var Tab = (function ($) { var Tab = function ($) {
/** /**
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
@ -61,35 +59,26 @@ var Tab = (function ($) {
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
*/ */
var Tab = (function () { var Tab = function () {
function Tab(element) { function Tab(element) {
_classCallCheck(this, Tab); _classCallCheck(this, Tab);
this._element = element; this._element = element;
} }
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
// getters // getters
_createClass(Tab, [{
key: 'show',
// public // public
value: function show() { Tab.prototype.show = function show() {
var _this = this; var _this = this;
if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $(this._element).hasClass(ClassName.ACTIVE)) { if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $(this._element).hasClass(ClassName.ACTIVE)) {
return; return;
} }
var target = undefined; var target = void 0;
var previous = undefined; var previous = void 0;
var ulElement = $(this._element).closest(Selector.UL)[0]; var ulElement = $(this._element).closest(Selector.UL)[0];
var selector = Util.getSelectorFromElement(this._element); var selector = Util.getSelectorFromElement(this._element);
@ -140,19 +129,16 @@ var Tab = (function ($) {
} else { } else {
complete(); complete();
} }
} };
}, {
key: 'dispose', Tab.prototype.dispose = function dispose() {
value: function dispose() {
$.removeClass(this._element, DATA_KEY); $.removeClass(this._element, DATA_KEY);
this._element = null; this._element = null;
} };
// private // private
}, { Tab.prototype._activate = function _activate(element, container, callback) {
key: '_activate',
value: function _activate(element, container, callback) {
var active = $(container).find(Selector.ACTIVE_CHILD)[0]; var active = $(container).find(Selector.ACTIVE_CHILD)[0];
var isTransitioning = callback && Util.supportsTransitionEnd() && (active && $(active).hasClass(ClassName.FADE) || Boolean($(container).find(Selector.FADE_CHILD)[0])); var isTransitioning = callback && Util.supportsTransitionEnd() && (active && $(active).hasClass(ClassName.FADE) || Boolean($(container).find(Selector.FADE_CHILD)[0]));
@ -167,10 +153,9 @@ var Tab = (function ($) {
if (active) { if (active) {
$(active).removeClass(ClassName.IN); $(active).removeClass(ClassName.IN);
} }
} };
}, {
key: '_transitionComplete', Tab.prototype._transitionComplete = function _transitionComplete(element, active, isTransitioning, callback) {
value: function _transitionComplete(element, active, isTransitioning, callback) {
if (active) { if (active) {
$(active).removeClass(ClassName.ACTIVE); $(active).removeClass(ClassName.ACTIVE);
@ -206,13 +191,11 @@ var Tab = (function ($) {
if (callback) { if (callback) {
callback(); callback();
} }
} };
// static // static
}], [{ Tab._jQueryInterface = function _jQueryInterface(config) {
key: '_jQueryInterface',
value: function _jQueryInterface(config) {
return this.each(function () { return this.each(function () {
var $this = $(this); var $this = $(this);
var data = $this.data(DATA_KEY); var data = $this.data(DATA_KEY);
@ -229,8 +212,9 @@ var Tab = (function ($) {
data[config](); data[config]();
} }
}); });
} };
}, {
_createClass(Tab, null, [{
key: 'VERSION', key: 'VERSION',
get: function get() { get: function get() {
return VERSION; return VERSION;
@ -238,7 +222,13 @@ var Tab = (function ($) {
}]); }]);
return Tab; return Tab;
})(); }();
/**
* ------------------------------------------------------------------------
* Data Api implementation
* ------------------------------------------------------------------------
*/
$(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
event.preventDefault(); event.preventDefault();
@ -259,5 +249,5 @@ var Tab = (function ($) {
}; };
return Tab; return Tab;
})(jQuery); }(jQuery);
//# sourceMappingURL=tab.js.map //# sourceMappingURL=tab.js.map

2
js/dist/tab.js.map vendored

File diff suppressed because one or more lines are too long

188
js/dist/tooltip.js vendored
View File

@ -1,10 +1,8 @@
/* global Tether */ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
/** /**
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
@ -13,7 +11,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
*/ */
var Tooltip = (function ($) { var Tooltip = function ($) {
/** /**
* Check for Tether dependency * Check for Tether dependency
@ -116,7 +114,7 @@ var Tooltip = (function ($) {
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
*/ */
var Tooltip = (function () { var Tooltip = function () {
function Tooltip(element, config) { function Tooltip(element, config) {
_classCallCheck(this, Tooltip); _classCallCheck(this, Tooltip);
@ -135,35 +133,23 @@ var Tooltip = (function ($) {
this._setListeners(); this._setListeners();
} }
/**
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
*/
// getters // getters
_createClass(Tooltip, [{
key: 'enable',
// public // public
value: function enable() { Tooltip.prototype.enable = function enable() {
this._isEnabled = true; this._isEnabled = true;
} };
}, {
key: 'disable', Tooltip.prototype.disable = function disable() {
value: function disable() {
this._isEnabled = false; this._isEnabled = false;
} };
}, {
key: 'toggleEnabled', Tooltip.prototype.toggleEnabled = function toggleEnabled() {
value: function toggleEnabled() {
this._isEnabled = !this._isEnabled; this._isEnabled = !this._isEnabled;
} };
}, {
key: 'toggle', Tooltip.prototype.toggle = function toggle(event) {
value: function toggle(event) {
if (event) { if (event) {
var dataKey = this.constructor.DATA_KEY; var dataKey = this.constructor.DATA_KEY;
var context = $(event.currentTarget).data(dataKey); var context = $(event.currentTarget).data(dataKey);
@ -189,10 +175,9 @@ var Tooltip = (function ($) {
this._enter(null, this); this._enter(null, this);
} }
} };
}, {
key: 'dispose', Tooltip.prototype.dispose = function dispose() {
value: function dispose() {
clearTimeout(this._timeout); clearTimeout(this._timeout);
this.cleanupTether(); this.cleanupTether();
@ -214,10 +199,9 @@ var Tooltip = (function ($) {
this.element = null; this.element = null;
this.config = null; this.config = null;
this.tip = null; this.tip = null;
} };
}, {
key: 'show', Tooltip.prototype.show = function show() {
value: function show() {
var _this = this; var _this = this;
var showEvent = $.Event(this.constructor.Event.SHOW); var showEvent = $.Event(this.constructor.Event.SHOW);
@ -285,10 +269,9 @@ var Tooltip = (function ($) {
complete(); complete();
} }
} };
}, {
key: 'hide', Tooltip.prototype.hide = function hide(callback) {
value: function hide(callback) {
var _this2 = this; var _this2 = this;
var tip = this.getTipElement(); var tip = this.getTipElement();
@ -323,23 +306,19 @@ var Tooltip = (function ($) {
} }
this._hoverState = ''; this._hoverState = '';
} };
// protected // protected
}, { Tooltip.prototype.isWithContent = function isWithContent() {
key: 'isWithContent',
value: function isWithContent() {
return Boolean(this.getTitle()); return Boolean(this.getTitle());
} };
}, {
key: 'getTipElement', Tooltip.prototype.getTipElement = function getTipElement() {
value: function getTipElement() {
return this.tip = this.tip || $(this.config.template)[0]; return this.tip = this.tip || $(this.config.template)[0];
} };
}, {
key: 'setContent', Tooltip.prototype.setContent = function setContent() {
value: function setContent() {
var $tip = $(this.getTipElement()); var $tip = $(this.getTipElement());
this.setElementContent($tip.find(Selector.TOOLTIP_INNER), this.getTitle()); this.setElementContent($tip.find(Selector.TOOLTIP_INNER), this.getTitle());
@ -347,12 +326,11 @@ var Tooltip = (function ($) {
$tip.removeClass(ClassName.FADE).removeClass(ClassName.IN); $tip.removeClass(ClassName.FADE).removeClass(ClassName.IN);
this.cleanupTether(); this.cleanupTether();
} };
}, {
key: 'setElementContent', Tooltip.prototype.setElementContent = function setElementContent($element, content) {
value: function setElementContent($element, content) {
var html = this.config.html; var html = this.config.html;
if (typeof content === 'object' && (content.nodeType || content.jquery)) { if ((typeof content === 'undefined' ? 'undefined' : _typeof(content)) === 'object' && (content.nodeType || content.jquery)) {
// content is a DOM node or a jQuery // content is a DOM node or a jQuery
if (html) { if (html) {
if (!$(content).parent().is($element)) { if (!$(content).parent().is($element)) {
@ -364,10 +342,9 @@ var Tooltip = (function ($) {
} else { } else {
$element[html ? 'html' : 'text'](content); $element[html ? 'html' : 'text'](content);
} }
} };
}, {
key: 'getTitle', Tooltip.prototype.getTitle = function getTitle() {
value: function getTitle() {
var title = this.element.getAttribute('data-original-title'); var title = this.element.getAttribute('data-original-title');
if (!title) { if (!title) {
@ -375,25 +352,21 @@ var Tooltip = (function ($) {
} }
return title; return title;
} };
}, {
key: 'cleanupTether', Tooltip.prototype.cleanupTether = function cleanupTether() {
value: function cleanupTether() {
if (this._tether) { if (this._tether) {
this._tether.destroy(); this._tether.destroy();
} }
} };
// private // private
}, { Tooltip.prototype._getAttachment = function _getAttachment(placement) {
key: '_getAttachment',
value: function _getAttachment(placement) {
return AttachmentMap[placement.toUpperCase()]; return AttachmentMap[placement.toUpperCase()];
} };
}, {
key: '_setListeners', Tooltip.prototype._setListeners = function _setListeners() {
value: function _setListeners() {
var _this3 = this; var _this3 = this;
var triggers = this.config.trigger.split(' '); var triggers = this.config.trigger.split(' ');
@ -417,19 +390,17 @@ var Tooltip = (function ($) {
} else { } else {
this._fixTitle(); this._fixTitle();
} }
} };
}, {
key: '_fixTitle', Tooltip.prototype._fixTitle = function _fixTitle() {
value: function _fixTitle() { var titleType = _typeof(this.element.getAttribute('data-original-title'));
var titleType = typeof this.element.getAttribute('data-original-title');
if (this.element.getAttribute('title') || titleType !== 'string') { if (this.element.getAttribute('title') || titleType !== 'string') {
this.element.setAttribute('data-original-title', this.element.getAttribute('title') || ''); this.element.setAttribute('data-original-title', this.element.getAttribute('title') || '');
this.element.setAttribute('title', ''); this.element.setAttribute('title', '');
} }
} };
}, {
key: '_enter', Tooltip.prototype._enter = function _enter(event, context) {
value: function _enter(event, context) {
var dataKey = this.constructor.DATA_KEY; var dataKey = this.constructor.DATA_KEY;
context = context || $(event.currentTarget).data(dataKey); context = context || $(event.currentTarget).data(dataKey);
@ -462,10 +433,9 @@ var Tooltip = (function ($) {
context.show(); context.show();
} }
}, context.config.delay.show); }, context.config.delay.show);
} };
}, {
key: '_leave', Tooltip.prototype._leave = function _leave(event, context) {
value: function _leave(event, context) {
var dataKey = this.constructor.DATA_KEY; var dataKey = this.constructor.DATA_KEY;
context = context || $(event.currentTarget).data(dataKey); context = context || $(event.currentTarget).data(dataKey);
@ -497,10 +467,9 @@ var Tooltip = (function ($) {
context.hide(); context.hide();
} }
}, context.config.delay.hide); }, context.config.delay.hide);
} };
}, {
key: '_isWithActiveTrigger', Tooltip.prototype._isWithActiveTrigger = function _isWithActiveTrigger() {
value: function _isWithActiveTrigger() {
for (var trigger in this._activeTrigger) { for (var trigger in this._activeTrigger) {
if (this._activeTrigger[trigger]) { if (this._activeTrigger[trigger]) {
return true; return true;
@ -508,10 +477,9 @@ var Tooltip = (function ($) {
} }
return false; return false;
} };
}, {
key: '_getConfig', Tooltip.prototype._getConfig = function _getConfig(config) {
value: function _getConfig(config) {
config = $.extend({}, this.constructor.Default, $(this.element).data(), config); config = $.extend({}, this.constructor.Default, $(this.element).data(), config);
if (config.delay && typeof config.delay === 'number') { if (config.delay && typeof config.delay === 'number') {
@ -524,10 +492,9 @@ var Tooltip = (function ($) {
Util.typeCheckConfig(NAME, config, this.constructor.DefaultType); Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
return config; return config;
} };
}, {
key: '_getDelegateConfig', Tooltip.prototype._getDelegateConfig = function _getDelegateConfig() {
value: function _getDelegateConfig() {
var config = {}; var config = {};
if (this.config) { if (this.config) {
@ -539,16 +506,14 @@ var Tooltip = (function ($) {
} }
return config; return config;
} };
// static // static
}], [{ Tooltip._jQueryInterface = function _jQueryInterface(config) {
key: '_jQueryInterface',
value: function _jQueryInterface(config) {
return this.each(function () { return this.each(function () {
var data = $(this).data(DATA_KEY); var data = $(this).data(DATA_KEY);
var _config = typeof config === 'object' ? config : null; var _config = (typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object' ? config : null;
if (!data && /destroy|hide/.test(config)) { if (!data && /destroy|hide/.test(config)) {
return; return;
@ -566,8 +531,9 @@ var Tooltip = (function ($) {
data[config](); data[config]();
} }
}); });
} };
}, {
_createClass(Tooltip, null, [{
key: 'VERSION', key: 'VERSION',
get: function get() { get: function get() {
return VERSION; return VERSION;
@ -605,7 +571,13 @@ var Tooltip = (function ($) {
}]); }]);
return Tooltip; return Tooltip;
})(); }();
/**
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
*/
$.fn[NAME] = Tooltip._jQueryInterface; $.fn[NAME] = Tooltip._jQueryInterface;
$.fn[NAME].Constructor = Tooltip; $.fn[NAME].Constructor = Tooltip;
@ -615,5 +587,5 @@ var Tooltip = (function ($) {
}; };
return Tooltip; return Tooltip;
})(jQuery); }(jQuery); /* global Tether */
//# sourceMappingURL=tooltip.js.map //# sourceMappingURL=tooltip.js.map

File diff suppressed because one or more lines are too long

21
js/dist/util.js vendored
View File

@ -5,9 +5,7 @@
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
*/ */
'use strict'; var Util = function ($) {
var Util = (function ($) {
/** /**
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------
@ -28,7 +26,7 @@ var Util = (function ($) {
// shoutout AngusCroll (https://goo.gl/pxwQGp) // shoutout AngusCroll (https://goo.gl/pxwQGp)
function toType(obj) { function toType(obj) {
return ({}).toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase(); return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase();
} }
function isElement(obj) { function isElement(obj) {
@ -55,9 +53,9 @@ var Util = (function ($) {
var el = document.createElement('bootstrap'); var el = document.createElement('bootstrap');
for (var _name in TransitionEndEvent) { for (var name in TransitionEndEvent) {
if (el.style[_name] !== undefined) { if (el.style[name] !== undefined) {
return { end: TransitionEndEvent[_name] }; return { end: TransitionEndEvent[name] };
} }
} }
@ -110,7 +108,6 @@ var Util = (function ($) {
} while (document.getElementById(prefix)); } while (document.getElementById(prefix));
return prefix; return prefix;
}, },
getSelectorFromElement: function getSelectorFromElement(element) { getSelectorFromElement: function getSelectorFromElement(element) {
var selector = element.getAttribute('data-target'); var selector = element.getAttribute('data-target');
@ -121,25 +118,21 @@ var Util = (function ($) {
return selector; return selector;
}, },
reflow: function reflow(element) { reflow: function reflow(element) {
new Function('bs', 'return bs')(element.offsetHeight); new Function('bs', 'return bs')(element.offsetHeight);
}, },
triggerTransitionEnd: function triggerTransitionEnd(element) { triggerTransitionEnd: function triggerTransitionEnd(element) {
$(element).trigger(transition.end); $(element).trigger(transition.end);
}, },
supportsTransitionEnd: function supportsTransitionEnd() { supportsTransitionEnd: function supportsTransitionEnd() {
return Boolean(transition); return Boolean(transition);
}, },
typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) { typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {
for (var property in configTypes) { for (var property in configTypes) {
if (configTypes.hasOwnProperty(property)) { if (configTypes.hasOwnProperty(property)) {
var expectedTypes = configTypes[property]; var expectedTypes = configTypes[property];
var value = config[property]; var value = config[property];
var valueType = undefined; var valueType = void 0;
if (value && isElement(value)) { if (value && isElement(value)) {
valueType = 'element'; valueType = 'element';
@ -158,5 +151,5 @@ var Util = (function ($) {
setTransitionEndSupport(); setTransitionEndSupport();
return Util; return Util;
})(jQuery); }(jQuery);
//# sourceMappingURL=util.js.map //# sourceMappingURL=util.js.map

2
js/dist/util.js.map vendored

File diff suppressed because one or more lines are too long