Commit 81ed773b authored by JC Brand's avatar JC Brand

Updated css and fix some niggles in the Makefile

parent 3dac4ae4
......@@ -122,7 +122,7 @@ stamp-bundler: Gemfile
.PHONY: clean
clean:
rm -rf node_modules .bundle stamp-npm
rm -rf node_modules .bundle stamp-npm stamp-bundler
rm dist/*.min.js
rm css/website.min.css
rm css/converse.min.css
......
......@@ -2371,7 +2371,7 @@
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
@-ms-viewport {
width: device-width; }
#conversejs article, #conversejs aside, #conversejs dialog, #conversejs figcaption, #conversejs figure, #conversejs footer, #conversejs header, #conversejs hgroup, #conversejs main, #conversejs nav, #conversejs section {
#conversejs article, #conversejs aside, #conversejs figcaption, #conversejs figure, #conversejs footer, #conversejs header, #conversejs hgroup, #conversejs main, #conversejs nav, #conversejs section {
display: block; }
#conversejs body {
margin: 0;
......@@ -2458,7 +2458,7 @@
#conversejs code,
#conversejs kbd,
#conversejs samp {
font-family: monospace, monospace;
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 1em; }
#conversejs pre {
margin-top: 0;
......@@ -2484,7 +2484,7 @@
text-align: inherit; }
#conversejs label {
display: inline-block;
margin-bottom: .5rem; }
margin-bottom: 0.5rem; }
#conversejs button {
border-radius: 0; }
#conversejs button:focus {
......@@ -3208,6 +3208,9 @@
border: 1px solid #ced4da;
border-radius: 0.25rem;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
@media screen and (prefers-reduced-motion: reduce) {
#conversejs .form-control {
transition: none; } }
#conversejs .form-control::-ms-expand {
background-color: transparent;
border: 0; }
......@@ -3255,6 +3258,7 @@
padding-bottom: 0.375rem;
margin-bottom: 0;
line-height: 1.5;
color: #212529;
background-color: transparent;
border: solid transparent;
border-width: 1px 0; }
......@@ -3371,6 +3375,10 @@
#conversejs .custom-select.is-valid ~ .valid-feedback,
#conversejs .custom-select.is-valid ~ .valid-tooltip {
display: block; }
.was-validated #conversejs .form-control-file:valid ~ .valid-feedback,
.was-validated #conversejs .form-control-file:valid ~ .valid-tooltip, #conversejs .form-control-file.is-valid ~ .valid-feedback,
#conversejs .form-control-file.is-valid ~ .valid-tooltip {
display: block; }
.was-validated #conversejs .form-check-input:valid ~ .form-check-label, #conversejs .form-check-input.is-valid ~ .form-check-label {
color: #3AA569; }
.was-validated #conversejs .form-check-input:valid ~ .valid-feedback,
......@@ -3435,6 +3443,10 @@
#conversejs .custom-select.is-invalid ~ .invalid-feedback,
#conversejs .custom-select.is-invalid ~ .invalid-tooltip {
display: block; }
.was-validated #conversejs .form-control-file:invalid ~ .invalid-feedback,
.was-validated #conversejs .form-control-file:invalid ~ .invalid-tooltip, #conversejs .form-control-file.is-invalid ~ .invalid-feedback,
#conversejs .form-control-file.is-invalid ~ .invalid-tooltip {
display: block; }
.was-validated #conversejs .form-check-input:invalid ~ .form-check-label, #conversejs .form-check-input.is-invalid ~ .form-check-label {
color: #E77051; }
.was-validated #conversejs .form-check-input:invalid ~ .invalid-feedback,
......@@ -3487,7 +3499,8 @@
vertical-align: middle; }
#conversejs .form-inline .form-control-plaintext {
display: inline-block; }
#conversejs .form-inline .input-group {
#conversejs .form-inline .input-group,
#conversejs .form-inline .custom-select {
width: auto; }
#conversejs .form-inline .form-check {
display: flex;
......@@ -3518,6 +3531,9 @@
line-height: 1.5;
border-radius: 0.25rem;
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
@media screen and (prefers-reduced-motion: reduce) {
#conversejs .btn {
transition: none; } }
#conversejs .btn:hover, #conversejs .btn:focus {
text-decoration: none; }
#conversejs .btn:focus, #conversejs .btn.focus {
......@@ -3866,7 +3882,8 @@
border-color: transparent;
box-shadow: none; }
#conversejs .btn-link:disabled, #conversejs .btn-link.disabled {
color: #6c757d; }
color: #6c757d;
pointer-events: none; }
#conversejs .btn-lg, #conversejs .btn-group-lg > .btn {
padding: 0.5rem 1rem;
font-size: 1.25rem;
......@@ -3887,25 +3904,26 @@
#conversejs input[type="button"].btn-block {
width: 100%; }
#conversejs .fade {
opacity: 0;
transition: opacity 0.15s linear; }
#conversejs .fade.show {
opacity: 1; }
#conversejs .collapse {
@media screen and (prefers-reduced-motion: reduce) {
#conversejs .fade {
transition: none; } }
#conversejs .fade:not(.show) {
opacity: 0; }
#conversejs .collapse:not(.show) {
display: none; }
#conversejs .collapse.show {
display: block; }
#conversejs tr.collapse.show {
display: table-row; }
#conversejs tbody.collapse.show {
display: table-row-group; }
#conversejs .collapsing {
position: relative;
height: 0;
overflow: hidden;
transition: height 0.35s ease; }
@media screen and (prefers-reduced-motion: reduce) {
#conversejs .collapsing {
transition: none; } }
#conversejs .dropup,
#conversejs .dropdown {
#conversejs .dropright,
#conversejs .dropdown,
#conversejs .dropleft {
position: relative; }
#conversejs .dropdown-toggle::after {
display: inline-block;
......@@ -3938,7 +3956,12 @@
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem; }
#conversejs .dropdown-menu-right {
right: 0;
left: auto; }
#conversejs .dropup .dropdown-menu {
top: auto;
bottom: 100%;
margin-top: 0;
margin-bottom: 0.125rem; }
#conversejs .dropup .dropdown-toggle::after {
......@@ -3955,6 +3978,9 @@
#conversejs .dropup .dropdown-toggle:empty::after {
margin-left: 0; }
#conversejs .dropright .dropdown-menu {
top: 0;
right: auto;
left: 100%;
margin-top: 0;
margin-left: 0.125rem; }
#conversejs .dropright .dropdown-toggle::after {
......@@ -3965,6 +3991,7 @@
vertical-align: 0.255em;
content: "";
border-top: 0.3em solid transparent;
border-right: 0;
border-bottom: 0.3em solid transparent;
border-left: 0.3em solid; }
#conversejs .dropright .dropdown-toggle:empty::after {
......@@ -3972,6 +3999,9 @@
#conversejs .dropright .dropdown-toggle::after {
vertical-align: 0; }
#conversejs .dropleft .dropdown-menu {
top: 0;
right: 100%;
left: auto;
margin-top: 0;
margin-right: 0.125rem; }
#conversejs .dropleft .dropdown-toggle::after {
......@@ -3997,6 +4027,9 @@
margin-left: 0; }
#conversejs .dropleft .dropdown-toggle::before {
vertical-align: 0; }
#conversejs .dropdown-menu[x-placement^="top"], #conversejs .dropdown-menu[x-placement^="right"], #conversejs .dropdown-menu[x-placement^="bottom"], #conversejs .dropdown-menu[x-placement^="left"] {
right: auto;
bottom: auto; }
#conversejs .dropdown-divider {
height: 0;
margin: 0.5rem 0;
......@@ -4033,6 +4066,10 @@
font-size: 0.875rem;
color: #6c757d;
white-space: nowrap; }
#conversejs .dropdown-item-text {
display: block;
padding: 0.25rem 1.5rem;
color: #212529; }
#conversejs .btn-group,
#conversejs .btn-group-vertical {
position: relative;
......@@ -4078,8 +4115,10 @@
#conversejs .dropdown-toggle-split {
padding-right: 0.5625rem;
padding-left: 0.5625rem; }
#conversejs .dropdown-toggle-split::after {
#conversejs .dropdown-toggle-split::after, .dropup #conversejs .dropdown-toggle-split::after, .dropright #conversejs .dropdown-toggle-split::after {
margin-left: 0; }
.dropleft #conversejs .dropdown-toggle-split::before {
margin-right: 0; }
#conversejs .btn-sm + .dropdown-toggle-split, #conversejs .btn-group-sm > .btn + .dropdown-toggle-split {
padding-right: 0.375rem;
padding-left: 0.375rem; }
......@@ -4155,10 +4194,10 @@
#conversejs .input-group > .custom-file {
display: flex;
align-items: center; }
#conversejs .input-group > .custom-file:not(:last-child) .custom-file-label, #conversejs .input-group > .custom-file:not(:last-child) .custom-file-label::before {
#conversejs .input-group > .custom-file:not(:last-child) .custom-file-label, #conversejs .input-group > .custom-file:not(:last-child) .custom-file-label::after {
border-top-right-radius: 0;
border-bottom-right-radius: 0; }
#conversejs .input-group > .custom-file:not(:first-child) .custom-file-label, #conversejs .input-group > .custom-file:not(:first-child) .custom-file-label::before {
#conversejs .input-group > .custom-file:not(:first-child) .custom-file-label {
border-top-left-radius: 0;
border-bottom-left-radius: 0; }
#conversejs .input-group-prepend,
......@@ -4239,11 +4278,12 @@
#conversejs .custom-control-input:disabled ~ .custom-control-label::before {
background-color: #e9ecef; }
#conversejs .custom-control-label {
position: relative;
margin-bottom: 0; }
#conversejs .custom-control-label::before {
position: absolute;
top: 0.25rem;
left: 0;
left: -1.5rem;
display: block;
width: 1rem;
height: 1rem;
......@@ -4254,7 +4294,7 @@
#conversejs .custom-control-label::after {
position: absolute;
top: 0.25rem;
left: 0;
left: -1.5rem;
display: block;
width: 1rem;
height: 1rem;
......@@ -4336,10 +4376,10 @@
height: calc(2.25rem + 2px);
margin: 0;
opacity: 0; }
#conversejs .custom-file-input:focus ~ .custom-file-control {
#conversejs .custom-file-input:focus ~ .custom-file-label {
border-color: #7db3cd;
box-shadow: 0 0 0 0.2rem rgba(56, 117, 146, 0.25); }
#conversejs .custom-file-input:focus ~ .custom-file-control::before {
#conversejs .custom-file-input:focus ~ .custom-file-label::after {
border-color: #7db3cd; }
#conversejs .custom-file-input:lang(en) ~ .custom-file-label::after {
content: "Browse"; }
......@@ -4363,7 +4403,7 @@
bottom: 0;
z-index: 3;
display: block;
height: calc(calc(2.25rem + 2px) - 1px * 2);
height: 2.25rem;
padding: 0.375rem 0.75rem;
line-height: 1.5;
color: #495057;
......@@ -4371,6 +4411,83 @@
background-color: #e9ecef;
border-left: 1px solid #ced4da;
border-radius: 0 0.25rem 0.25rem 0; }
#conversejs .custom-range {
width: 100%;
padding-left: 0;
background-color: transparent;
appearance: none; }
#conversejs .custom-range:focus {
outline: none; }
#conversejs .custom-range::-moz-focus-outer {
border: 0; }
#conversejs .custom-range::-webkit-slider-thumb {
width: 1rem;
height: 1rem;
margin-top: -0.25rem;
background-color: #387592;
border: 0;
border-radius: 1rem;
appearance: none; }
#conversejs .custom-range::-webkit-slider-thumb:focus {
outline: none;
box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(56, 117, 146, 0.25); }
#conversejs .custom-range::-webkit-slider-thumb:active {
background-color: #a1c9db; }
#conversejs .custom-range::-webkit-slider-runnable-track {
width: 100%;
height: 0.5rem;
color: transparent;
cursor: pointer;
background-color: #dee2e6;
border-color: transparent;
border-radius: 1rem; }
#conversejs .custom-range::-moz-range-thumb {
width: 1rem;
height: 1rem;
background-color: #387592;
border: 0;
border-radius: 1rem;
appearance: none; }
#conversejs .custom-range::-moz-range-thumb:focus {
outline: none;
box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(56, 117, 146, 0.25); }
#conversejs .custom-range::-moz-range-thumb:active {
background-color: #a1c9db; }
#conversejs .custom-range::-moz-range-track {
width: 100%;
height: 0.5rem;
color: transparent;
cursor: pointer;
background-color: #dee2e6;
border-color: transparent;
border-radius: 1rem; }
#conversejs .custom-range::-ms-thumb {
width: 1rem;
height: 1rem;
background-color: #387592;
border: 0;
border-radius: 1rem;
appearance: none; }
#conversejs .custom-range::-ms-thumb:focus {
outline: none;
box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(56, 117, 146, 0.25); }
#conversejs .custom-range::-ms-thumb:active {
background-color: #a1c9db; }
#conversejs .custom-range::-ms-track {
width: 100%;
height: 0.5rem;
color: transparent;
cursor: pointer;
background-color: transparent;
border-color: transparent;
border-width: 0.5rem; }
#conversejs .custom-range::-ms-fill-lower {
background-color: #dee2e6;
border-radius: 1rem; }
#conversejs .custom-range::-ms-fill-upper {
margin-right: 15px;
background-color: #dee2e6;
border-radius: 1rem; }
#conversejs .card {
position: relative;
display: flex;
......@@ -4516,10 +4633,24 @@
@media (min-width: 576px) {
#conversejs .card-columns {
column-count: 3;
column-gap: 1.25rem; }
column-gap: 1.25rem;
orphans: 1;
widows: 1; }
#conversejs .card-columns .card {
display: inline-block;
width: 100%; } }
#conversejs .accordion .card:not(:first-of-type):not(:last-of-type) {
border-bottom: 0;
border-radius: 0; }
#conversejs .accordion .card:not(:first-of-type) .card-header:first-child {
border-radius: 0; }
#conversejs .accordion .card:first-of-type {
border-bottom: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0; }
#conversejs .accordion .card:last-of-type {
border-top-left-radius: 0;
border-top-right-radius: 0; }
#conversejs .breadcrumb {
display: flex;
flex-wrap: wrap;
......@@ -4528,10 +4659,11 @@
list-style: none;
background-color: #e9ecef;
border-radius: 0.25rem; }
#conversejs .breadcrumb-item + .breadcrumb-item::before {
#conversejs .breadcrumb-item + .breadcrumb-item {
padding-left: 0.5rem; }
#conversejs .breadcrumb-item + .breadcrumb-item::before {
display: inline-block;
padding-right: 0.5rem;
padding-left: 0.5rem;
color: #6c757d;
content: "/"; }
#conversejs .breadcrumb-item + .breadcrumb-item:hover::before {
......@@ -4873,6 +5005,9 @@
.modal.fade #conversejs .modal-dialog {
transition: transform 0.3s ease-out;
transform: translate(0, -25%); }
@media screen and (prefers-reduced-motion: reduce) {
.modal.fade #conversejs .modal-dialog {
transition: none; } }
.modal.show #conversejs .modal-dialog {
transform: translate(0, 0); }
#conversejs .modal-dialog-centered {
......@@ -5428,6 +5563,16 @@
flex-wrap: nowrap !important; }
#conversejs .flex-wrap-reverse {
flex-wrap: wrap-reverse !important; }
#conversejs .flex-fill {
flex: 1 1 auto !important; }
#conversejs .flex-grow-0 {
flex-grow: 0 !important; }
#conversejs .flex-grow-1 {
flex-grow: 1 !important; }
#conversejs .flex-shrink-0 {
flex-shrink: 0 !important; }
#conversejs .flex-shrink-1 {
flex-shrink: 1 !important; }
#conversejs .justify-content-start {
justify-content: flex-start !important; }
#conversejs .justify-content-end {
......@@ -5487,6 +5632,16 @@
flex-wrap: nowrap !important; }
#conversejs .flex-sm-wrap-reverse {
flex-wrap: wrap-reverse !important; }
#conversejs .flex-sm-fill {
flex: 1 1 auto !important; }
#conversejs .flex-sm-grow-0 {
flex-grow: 0 !important; }
#conversejs .flex-sm-grow-1 {
flex-grow: 1 !important; }
#conversejs .flex-sm-shrink-0 {
flex-shrink: 0 !important; }
#conversejs .flex-sm-shrink-1 {
flex-shrink: 1 !important; }
#conversejs .justify-content-sm-start {
justify-content: flex-start !important; }
#conversejs .justify-content-sm-end {
......@@ -5546,6 +5701,16 @@
flex-wrap: nowrap !important; }
#conversejs .flex-md-wrap-reverse {
flex-wrap: wrap-reverse !important; }
#conversejs .flex-md-fill {
flex: 1 1 auto !important; }
#conversejs .flex-md-grow-0 {
flex-grow: 0 !important; }
#conversejs .flex-md-grow-1 {
flex-grow: 1 !important; }
#conversejs .flex-md-shrink-0 {
flex-shrink: 0 !important; }
#conversejs .flex-md-shrink-1 {
flex-shrink: 1 !important; }
#conversejs .justify-content-md-start {
justify-content: flex-start !important; }
#conversejs .justify-content-md-end {
......@@ -5605,6 +5770,16 @@
flex-wrap: nowrap !important; }
#conversejs .flex-lg-wrap-reverse {
flex-wrap: wrap-reverse !important; }
#conversejs .flex-lg-fill {
flex: 1 1 auto !important; }
#conversejs .flex-lg-grow-0 {
flex-grow: 0 !important; }
#conversejs .flex-lg-grow-1 {
flex-grow: 1 !important; }
#conversejs .flex-lg-shrink-0 {
flex-shrink: 0 !important; }
#conversejs .flex-lg-shrink-1 {
flex-shrink: 1 !important; }
#conversejs .justify-content-lg-start {
justify-content: flex-start !important; }
#conversejs .justify-content-lg-end {
......@@ -5664,6 +5839,16 @@
flex-wrap: nowrap !important; }
#conversejs .flex-xl-wrap-reverse {
flex-wrap: wrap-reverse !important; }
#conversejs .flex-xl-fill {
flex: 1 1 auto !important; }
#conversejs .flex-xl-grow-0 {
flex-grow: 0 !important; }
#conversejs .flex-xl-grow-1 {
flex-grow: 1 !important; }
#conversejs .flex-xl-shrink-0 {
flex-shrink: 0 !important; }
#conversejs .flex-xl-shrink-1 {
flex-shrink: 1 !important; }
#conversejs .justify-content-xl-start {
justify-content: flex-start !important; }
#conversejs .justify-content-xl-end {
......@@ -5777,7 +5962,6 @@
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
clip-path: inset(50%);
border: 0; }
#conversejs .sr-only-focusable:active, #conversejs .sr-only-focusable:focus {
position: static;
......@@ -5785,8 +5969,15 @@
height: auto;
overflow: visible;
clip: auto;
white-space: normal;
clip-path: none; }
white-space: normal; }
#conversejs .shadow-sm {
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
#conversejs .shadow {
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; }
#conversejs .shadow-lg {
box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; }
#conversejs .shadow-none {
box-shadow: none !important; }
#conversejs .w-25 {
width: 25% !important; }
#conversejs .w-50 {
......@@ -5795,6 +5986,8 @@
width: 75% !important; }
#conversejs .w-100 {
width: 100% !important; }
#conversejs .w-auto {
width: auto !important; }
#conversejs .h-25 {
height: 25% !important; }
#conversejs .h-50 {
......@@ -5803,6 +5996,8 @@
height: 75% !important; }
#conversejs .h-100 {
height: 100% !important; }
#conversejs .h-auto {
height: auto !important; }
#conversejs .mw-100 {
max-width: 100% !important; }
#conversejs .mh-100 {
......@@ -6721,6 +6916,8 @@
#conversejs .ml-xl-auto,
#conversejs .mx-xl-auto {
margin-left: auto !important; } }
#conversejs .text-monospace {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
#conversejs .text-justify {
text-align: justify !important; }
#conversejs .text-nowrap {
......@@ -6811,8 +7008,14 @@
color: #343a40 !important; }
#conversejs a.text-dark:hover, #conversejs a.text-dark:focus {
color: #1d2124 !important; }
#conversejs .text-body {
color: #212529 !important; }
#conversejs .text-muted {
color: #6c757d !important; }
#conversejs .text-black-50 {
color: rgba(0, 0, 0, 0.5) !important; }
#conversejs .text-white-50 {
color: rgba(255, 255, 255, 0.5) !important; }
#conversejs .text-hide {
font: 0/0 a;
color: transparent;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -36,19 +36,34 @@
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
......@@ -2560,13 +2575,7 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
if (_.isFunction(this.beforeRender)) {
this.beforeRender();
}
let new_vnode;
if (!_.isNil(this.toHTML)) {
new_vnode = tovnode.toVNode(parseHTMLToDOM(this.toHTML()));
} else {
new_vnode = tovnode.toVNode(this.toDOM());
}
const new_vnode = tovnode.toVNode(parseHTMLToDOM(this.toHTML()));
new_vnode.data.hook = _.extend({
create: this.updateEventListeners.bind(this),
update: this.updateEventListeners.bind(this)
......@@ -4520,7 +4529,7 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Native Javascript for Bootstrap 4 v2.0.22 | © dnp_theme | MIT-License
/* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Native Javascript for Bootstrap 4 v2.0.23 | © dnp_theme | MIT-License
(function (root, factory) {
if (true) {
// AMD support:
......@@ -4629,12 +4638,14 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
getBoundingClientRect = 'getBoundingClientRect',
querySelectorAll = 'querySelectorAll',
getElementsByCLASSNAME = 'getElementsByClassName',
getComputedStyle = 'getComputedStyle',
indexOf = 'indexOf',
parentNode = 'parentNode',
length = 'length',
toLowerCase = 'toLowerCase',
Transition = 'Transition',
Duration = 'Duration',
Webkit = 'Webkit',
style = 'style',
push = 'push',
......@@ -4663,6 +4674,7 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
// transitionEnd since 2.0.4
supportTransitions = Webkit+Transition in HTML[style] || Transition[toLowerCase]() in HTML[style],
transitionEndEvent = Webkit+Transition in HTML[style] ? Webkit[toLowerCase]()+Transition+'End' : Transition[toLowerCase]()+'end',
transitionDuration = Webkit+Duration in HTML[style] ? Webkit[toLowerCase]()+Transition+Duration : Transition[toLowerCase]()+Duration,
// set new focus element since 2.0.3
setFocus = function(element){
......@@ -4716,9 +4728,16 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
off(element, event, handlerWrapper);
});
},
getTransitionDurationFromElement = function(element) {
var duration = globalObject[getComputedStyle](element)[transitionDuration];
duration = parseFloat(duration);
duration = typeof duration === 'number' && !isNaN(duration) ? duration * 1000 : 0;
return duration + 50; // we take a short offset to make sure we fire on the next frame after animation
},
emulateTransitionEnd = function(element,handler){ // emulateTransitionEnd since 2.0.4
if (supportTransitions) { one(element, transitionEndEvent, function(e){ handler(e); }); }
else { handler(); }
var called = 0, duration = getTransitionDurationFromElement(element);
supportTransitions && one(element, transitionEndEvent, function(e){ handler(e); called = 1; });
setTimeout(function() { !called && handler(); }, duration);
},
bootstrapCustomEvent = function (eventName, componentName, related) {
var OriginalCustomEvent = new CustomEvent( eventName + '.bs.' + componentName);
......@@ -4814,7 +4833,7 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
arrowLeft && (arrow[style][left] = arrowLeft + 'px');
};
BSN.version = '2.0.22';
BSN.version = '2.0.23';
/* Native Javascript for Bootstrap 4 | Alert
-------------------------------------------*/
......@@ -4984,7 +5003,7 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
// DATA API
var intervalAttribute = element[getAttribute](dataInterval),
intervalOption = options[interval],
intervalData = intervalAttribute === 'false' ? 0 : parseInt(intervalAttribute) || 5000, // bootstrap carousel default interval
intervalData = intervalAttribute === 'false' ? 0 : parseInt(intervalAttribute),
pauseData = element[getAttribute](dataPause) === hoverEvent || false,
keyboardData = element[getAttribute](dataKeyboard) === 'true' || false,
......@@ -4999,8 +5018,8 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
this[pause] = (options[pause] === hoverEvent || pauseData) ? hoverEvent : false; // false / hover
this[interval] = typeof intervalOption === 'number' ? intervalOption
: intervalData === 0 ? 0
: intervalData;
: intervalOption === false || intervalData === 0 || intervalData === false ? 0
: 5000; // bootstrap carousel default interval
// bind, event targets
var self = this, index = element.index = 0, timer = element.timer = 0,
......@@ -5119,10 +5138,10 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
addClass(slides[next],carouselItem +'-'+ slideDirection);
addClass(slides[activeItem],carouselItem +'-'+ slideDirection);
one(slides[activeItem], transitionEndEvent, function(e) {
var timeout = e[target] !== slides[activeItem] ? e.elapsedTime*1000 : 0;
one(slides[next], transitionEndEvent, function(e) {
var timeout = e[target] !== slides[next] ? e.elapsedTime*1000+100 : 20;
setTimeout(function(){
isSliding && setTimeout(function(){
isSliding = false;
addClass(slides[next],active);
......@@ -5137,7 +5156,7 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
if ( !DOC.hidden && self[interval] && !hasClass(element,paused) ) {
self.cycle();
}
},timeout+100);
}, timeout);
});
} else {
......@@ -5202,23 +5221,24 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
// event targets and constants
var accordion = null, collapse = null, self = this,
isAnimating = false, // when true it will prevent click handlers
accordionData = element[getAttribute]('data-parent'),
activeCollapse, activeElement,
// component strings
component = 'collapse',
collapsed = 'collapsed',
isAnimating = 'isAnimating',
// private methods
openAction = function(collapseElement,toggle) {
bootstrapCustomEvent.call(collapseElement, showEvent, component);
isAnimating = true;
collapseElement[isAnimating] = true;
addClass(collapseElement,collapsing);
removeClass(collapseElement,component);
collapseElement[style][height] = collapseElement[scrollHeight] + 'px';
emulateTransitionEnd(collapseElement, function() {
isAnimating = false;
collapseElement[isAnimating] = false;
collapseElement[setAttribute](ariaExpanded,'true');
toggle[setAttribute](ariaExpanded,'true');
removeClass(collapseElement,collapsing);
......@@ -5230,7 +5250,7 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
},
closeAction = function(collapseElement,toggle) {
bootstrapCustomEvent.call(collapseElement, hideEvent, component);
isAnimating = true;
collapseElement[isAnimating] = true;
collapseElement[style][height] = collapseElement[scrollHeight] + 'px'; // set height first
removeClass(collapseElement,component);
removeClass(collapseElement,showClass);
......@@ -5239,7 +5259,7 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
collapseElement[style][height] = '0px';
emulateTransitionEnd(collapseElement, function() {
isAnimating = false;
collapseElement[isAnimating] = false;
collapseElement[setAttribute](ariaExpanded,'false');
toggle[setAttribute](ariaExpanded,'false');
removeClass(collapseElement,collapsing);
......@@ -5258,29 +5278,29 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
// public methods
this.toggle = function(e) {
e[preventDefault]();
if (isAnimating) return;
if (!hasClass(collapse,showClass)) { self.show(); }
else { self.hide(); }
};
this.hide = function() {
if ( collapse[isAnimating] ) return;
closeAction(collapse,element);
addClass(element,collapsed);
};
this.show = function() {
if ( accordion ) {
var activeCollapse = queryElement('.'+component+'.'+showClass,accordion),
toggle = activeCollapse && (queryElement('['+dataToggle+'="'+component+'"]['+dataTarget+'="#'+activeCollapse.id+'"]',accordion)
|| queryElement('['+dataToggle+'="'+component+'"][href="#'+activeCollapse.id+'"]',accordion) ),
correspondingCollapse = toggle && (toggle[getAttribute](dataTarget) || toggle.href);
if ( activeCollapse && toggle && activeCollapse !== collapse ) {
closeAction(activeCollapse,toggle);
if ( correspondingCollapse.split('#')[1] !== collapse.id ) { addClass(toggle,collapsed); }
else { removeClass(toggle,collapsed); }
}
activeCollapse = queryElement('.'+component+'.'+showClass,accordion);
activeElement = activeCollapse && (queryElement('['+dataToggle+'="'+component+'"]['+dataTarget+'="#'+activeCollapse.id+'"]',accordion)
|| queryElement('['+dataToggle+'="'+component+'"][href="#'+activeCollapse.id+'"]',accordion) );
}
if ( !collapse[isAnimating] || activeCollapse && !activeCollapse[isAnimating] ) {
if ( activeElement && activeCollapse !== collapse ) {
closeAction(activeCollapse,activeElement);
addClass(activeElement,collapsed);
}
openAction(collapse,element);
removeClass(element,collapsed);
}
};
// init
......@@ -5288,6 +5308,7 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
on(element, clickEvent, self.toggle);
}
collapse = getTarget();
collapse[isAnimating] = false; // when true it will prevent click handlers
accordion = queryElement(options.parent) || accordionData && getClosest(element, accordionData);
element[stringCollapse] = self;
};
......@@ -5445,6 +5466,7 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
var btnCheck = element[getAttribute](dataTarget)||element[getAttribute]('href'),
checkModal = queryElement( btnCheck ),
modal = hasClass(element,'modal') ? element : checkModal,
overlayDelay,
// strings
component = 'modal',
......@@ -5478,13 +5500,13 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
return globalObject[innerWidth] || (htmlRect[right] - Math.abs(htmlRect[left]));
},
setScrollbar = function () {
var bodyStyle = globalObject.getComputedStyle(DOC[body]),
var bodyStyle = globalObject[getComputedStyle](DOC[body]),
bodyPad = parseInt((bodyStyle[paddingRight]), 10), itemPad;
if (bodyIsOverflowing) {
DOC[body][style][paddingRight] = (bodyPad + scrollbarWidth) + 'px';
if (fixedItems[length]){
for (var i = 0; i < fixedItems[length]; i++) {
itemPad = globalObject.getComputedStyle(fixedItems[i])[paddingRight];
itemPad = globalObject[getComputedStyle](fixedItems[i])[paddingRight];
fixedItems[i][style][paddingRight] = ( parseInt(itemPad) + scrollbarWidth) + 'px';
}
}
......@@ -5626,6 +5648,7 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
if ( overlay && modalOverlay && !hasClass(overlay,showClass)) {
overlay[offsetWidth]; // force reflow to enable trasition
overlayDelay = getTransitionDurationFromElement(overlay);
addClass(overlay, showClass);
}
......@@ -5645,18 +5668,19 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
keydownHandlerToggle();
hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerShow) : triggerShow();
}, supportTransitions ? 150 : 0);
}, supportTransitions && overlay ? overlayDelay : 0);
};
this.hide = function() {
bootstrapCustomEvent.call(modal, hideEvent, component);
overlay = queryElement('.'+modalBackdropString);
overlayDelay = overlay && getTransitionDurationFromElement(overlay);
removeClass(modal,showClass);
modal[setAttribute](ariaHidden, true);
(function(){
setTimeout(function(){
hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerHide) : triggerHide();
}());
}, supportTransitions && overlay ? overlayDelay : 0);
};
this.setContent = function( content ) {
queryElement('.'+component+'-content',modal)[innerHTML] = content;
......@@ -6012,7 +6036,7 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
tabsContentContainer[style][height] = nextHeight + 'px'; // height animation
tabsContentContainer[offsetWidth];
emulateTransitionEnd(tabsContentContainer, triggerEnd);
},1);
},50);
}
} else {
tabs[isAnimating] = false;
......@@ -6444,6 +6468,7 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
ns.emojiVersion = '3.1'; // you can [optionally] modify this to load alternate emoji versions. see readme for backwards compatibility and version options
ns.emojiSize = '32';
ns.greedyMatch = false; // set to true for greedy unicode matching
ns.blacklistChars = '';
ns.imagePathPNG = 'https://cdn.jsdelivr.net/emojione/assets/' + ns.emojiVersion + '/png/';
ns.defaultPathPNG = ns.imagePathPNG;
ns.imageTitleTag = true; // set to false to remove title attribute from img tag
......@@ -6457,7 +6482,7 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
ns.regAscii = new RegExp("<object[^>]*>.*?<\/object>|<span[^>]*>.*?<\/span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|((\\s|^)"+ns.asciiRegexp+"(?=\\s|$|[!,.?]))", "gi");
ns.regAsciiRisky = new RegExp("<object[^>]*>.*?<\/object>|<span[^>]*>.*?<\/span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|(()"+ns.asciiRegexp+"())", "gi");
ns.regUnicode = new RegExp("<object[^>]*>.*?<\/object>|<span[^>]*>.*?<\/span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|(?:\uD83C\uDFF3)\uFE0F?\u200D?(?:\uD83C\uDF08)|(?:\uD83D\uDC41)\uFE0F?\u200D?(?:\uD83D\uDDE8)\uFE0F?|[#-9]\uFE0F?\u20E3|(?:(?:\uD83C\uDFF4)(?:\uDB40[\uDC60-\uDCFF]){1,6})|(?:\uD83C[\uDDE0-\uDDFF]){2}|(?:(?:\uD83D[\uDC68\uDC69]))\uFE0F?(?:\uD83C[\uDFFA-\uDFFF])?\u200D?(?:[\u2695\u2696\u2708]|\uD83C[\uDF3E-\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83D[\uDC68\uDC69]|\uD83E[\uDDD0-\uDDDF])(?:\uD83C[\uDFFA-\uDFFF])?\u200D?[\u2640\u2642\u2695\u2696\u2708]?\uFE0F?|(?:(?:\u2764|\uD83D[\uDC66-\uDC69\uDC8B])[\u200D\uFE0F]{0,2}){1,3}(?:\u2764|\uD83D[\uDC66-\uDC69\uDC8B])|(?:(?:\u2764|\uD83D[\uDC66-\uDC69\uDC8B])\uFE0F?){2,4}|(?:\uD83D[\uDC68\uDC69\uDC6E\uDC71-\uDC87\uDD75\uDE45-\uDE4E]|\uD83E[\uDD26\uDD37]|\uD83C[\uDFC3-\uDFCC]|\uD83E[\uDD38-\uDD3E]|\uD83D[\uDEA3-\uDEB6]|\u26f9|\uD83D\uDC6F)\uFE0F?(?:\uD83C[\uDFFB-\uDFFF])?\u200D?[\u2640\u2642]?\uFE0F?|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85-\uDFCC]|\uD83D[\uDC42-\uDCAA\uDD74-\uDD96\uDE45-\uDE4F\uDEA3-\uDECC]|\uD83E[\uDD18-\uDD3E])\uFE0F?(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u2194-\u2199\u21a9-\u21aa]\uFE0F?|[\u0023\u002a]|[\u3030\u303d]\uFE0F?|(?:\ud83c[\udd70-\udd71]|\ud83c\udd8e|\ud83c[\udd91-\udd9a])\uFE0F?|\u24c2\uFE0F?|[\u3297\u3299]\uFE0F?|(?:\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51])\uFE0F?|[\u203c\u2049]\uFE0F?|[\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe]\uFE0F?|[\u00a9\u00ae]\uFE0F?|[\u2122\u2139]\uFE0F?|\ud83c\udc04\uFE0F?|[\u2b05-\u2b07\u2b1b-\u2b1c\u2b50\u2b55]\uFE0F?|[\u231a-\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa]\uFE0F?|\ud83c\udccf|[\u2934\u2935]\uFE0F?)|[\u2700-\u27bf]\uFE0F?|[\ud800-\udbff][\udc00-\udfff]\uFE0F?|[\u2600-\u26FF]\uFE0F?|[\u0030-\u0039]\uFE0F", "g");
ns.regUnicode = new RegExp("<object[^>]*>.*?<\/object>|<span[^>]*>.*?<\/span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|(?:\uD83C\uDFF3)\uFE0F?\u200D?(?:\uD83C\uDF08)|(?:\uD83D\uDC41)\uFE0F?\u200D?(?:\uD83D\uDDE8)\uFE0F?|[#-9]\uFE0F?\u20E3|(?:(?:\uD83C\uDFF4)(?:\uDB40[\uDC60-\uDCFF]){1,6})|(?:\uD83C[\uDDE0-\uDDFF]){2}|(?:(?:\uD83D[\uDC68\uDC69]))\uFE0F?(?:\uD83C[\uDFFA-\uDFFF])?\u200D?(?:[\u2695\u2696\u2708]|\uD83C[\uDF3E-\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83D[\uDC68\uDC69]|\uD83E[\uDDD0-\uDDDF])(?:\uD83C[\uDFFA-\uDFFF])?\u200D?[\u2640\u2642\u2695\u2696\u2708]?\uFE0F?|(?:(?:\u2764|\uD83D[\uDC66-\uDC69\uDC8B])[\u200D\uFE0F]{0,2})|(?:\u2764|\uD83D[\uDC66-\uDC69\uDC8B])|(?:(?:\u2764|\uD83D[\uDC66-\uDC69\uDC8B])\uFE0F?)|(?:\uD83D[\uDC68\uDC69\uDC6E\uDC71-\uDC87\uDD75\uDE45-\uDE4E]|\uD83E[\uDD26\uDD37]|\uD83C[\uDFC3-\uDFCC]|\uD83E[\uDD38-\uDD3E]|\uD83D[\uDEA3-\uDEB6]|\u26f9|\uD83D\uDC6F)\uFE0F?(?:\uD83C[\uDFFB-\uDFFF])?\u200D?[\u2640\u2642]?\uFE0F?|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85-\uDFCC]|\uD83D[\uDC42-\uDCAA\uDD74-\uDD96\uDE45-\uDE4F\uDEA3-\uDECC]|\uD83E[\uDD18-\uDD3E])\uFE0F?(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u2194-\u2199\u21a9-\u21aa]\uFE0F?|[\u0023\u002a]|[\u3030\u303d]\uFE0F?|(?:\ud83c[\udd70-\udd71]|\ud83c\udd8e|\ud83c[\udd91-\udd9a])\uFE0F?|\u24c2\uFE0F?|[\u3297\u3299]\uFE0F?|(?:\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51])\uFE0F?|[\u203c\u2049]\uFE0F?|[\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe]\uFE0F?|[\u00a9\u00ae]\uFE0F?|[\u2122\u2139]\uFE0F?|\ud83c\udc04\uFE0F?|[\u2b05-\u2b07\u2b1b-\u2b1c\u2b50\u2b55]\uFE0F?|[\u231a-\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa]\uFE0F?|\ud83c\udccf|[\u2934\u2935]\uFE0F?)|[\u2700-\u27bf]\uFE0F?|[\ud800-\udbff][\udc00-\udfff]\uFE0F?|[\u2600-\u26FF]\uFE0F?|[\u0030-\u0039]\uFE0F", "g");
ns.toImage = function(str) {
str = ns.unicodeToImage(str);
......@@ -6618,16 +6643,17 @@ backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_mod
var replaceWith,unicode,short,fname,alt,category,title,size,ePath;
var mappedUnicode = ns.mapUnicodeToShort();
var eList = ns.emojioneList;
var bList = ns.blacklistChars.split(',');
str = str.replace(ns.regUnicode, function(unicodeChar) {
if( (typeof unicodeChar === 'undefined') || (unicodeChar === '') )
{
return unicodeChar;
}
else if ( unicodeChar in ns.jsEscapeMap )
else if ( unicodeChar in ns.jsEscapeMap && bList.indexOf(unicodeChar) === -1 )
{
fname = ns.jsEscapeMap[unicodeChar];
}
else if ( ns.greedyMatch && unicodeChar in ns.jsEscapeMapGreedy )
else if ( ns.greedyMatch && unicodeChar in ns.jsEscapeMapGreedy && bList.indexOf(unicodeChar) === -1 )
{
fname = ns.jsEscapeMapGreedy[unicodeChar];
}
......@@ -33079,13 +33105,12 @@ var map = {
function webpackContext(req) {
var id = webpackContextResolve(req);
var module = __webpack_require__(id);
return module;
return __webpack_require__(id);
}
function webpackContextResolve(req) {
var id = map[req];
if(!(id + 1)) { // check for number or string
var e = new Error('Cannot find module "' + req + '".');
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
}
......@@ -52241,7 +52266,6 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
//# sourceMappingURL=pluggable.js.map
/***/ }),
/***/ "./node_modules/process/browser.js":
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment