Added assets (css,js,sass...)
This commit is contained in:
1 parent
f1804098c9
commit
da08eff423
116 files changed
+65424
No files matched your search
@@ -0,0 +1,175 @@
|
||||
.select2-container--bootstrap4 .select2-selection--single {
|
||||
height: calc(1.7em + 0.75rem + 2px) }
|
||||
.select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
|
||||
color: #757575;
|
||||
line-height: calc(1.7em + 0.75rem); }
|
||||
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 3px;
|
||||
width: 20px; }
|
||||
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
|
||||
top: 60%;
|
||||
border-color: #343a40 transparent transparent transparent;
|
||||
border-style: solid;
|
||||
border-width: 5px 4px 0 4px;
|
||||
width: 0;
|
||||
height: 0;
|
||||
left: 50%;
|
||||
margin-left: -4px;
|
||||
margin-top: -2px;
|
||||
position: absolute; }
|
||||
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
|
||||
line-height: calc(1.5em + 0.75rem); }
|
||||
|
||||
.select2-search--dropdown .select2-search__field {
|
||||
border: 1px solid #ced4da;
|
||||
border-radius: 0.25rem; }
|
||||
|
||||
.select2-results__message {
|
||||
color: #6c757d; }
|
||||
|
||||
.select2-container--bootstrap4 .select2-selection--multiple {
|
||||
min-height: calc(1.7em + 0.75rem + 2px) !important; }
|
||||
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0 8px;
|
||||
width: 100%; }
|
||||
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered .select2-search__field {
|
||||
width: 100% !important; }
|
||||
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
|
||||
color: #343a40;
|
||||
border: 1px solid #bdc6d0;
|
||||
border-radius: 0.2rem;
|
||||
padding: 0;
|
||||
padding-right: 5px;
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
margin-top: 0.3em;
|
||||
margin-right: 5px; }
|
||||
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
|
||||
color: #bdc6d0;
|
||||
font-weight: bold;
|
||||
margin-left: 3px;
|
||||
margin-right: 1px;
|
||||
padding-right: 3px;
|
||||
padding-left: 3px;
|
||||
float: left; }
|
||||
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover {
|
||||
color: #343a40; }
|
||||
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__clear {
|
||||
float: none;
|
||||
margin-right: 0;
|
||||
position: absolute !important;
|
||||
top: 0;
|
||||
right: 0.7em; }
|
||||
|
||||
.select2-container {
|
||||
display: block; }
|
||||
.select2-container *:focus {
|
||||
outline: 0; }
|
||||
|
||||
.input-group .select2-container--bootstrap4 {
|
||||
-webkit-box-flex: 1;
|
||||
-ms-flex-positive: 1;
|
||||
flex-grow: 1; }
|
||||
|
||||
.input-group-prepend ~ .select2-container--bootstrap4 .select2-selection {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0; }
|
||||
|
||||
.input-group > .select2-container--bootstrap4:not(:last-child) .select2-selection {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0; }
|
||||
|
||||
.select2-container--bootstrap4 .select2-selection {
|
||||
background-color: #fff;
|
||||
border: 1px solid #ced4da;
|
||||
border-radius: 0.25rem;
|
||||
-webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
|
||||
transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
|
||||
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
||||
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
|
||||
width: 100%; }
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.select2-container--bootstrap4 .select2-selection {
|
||||
-webkit-transition: none;
|
||||
transition: none; } }
|
||||
|
||||
.select2-container--bootstrap4.select2-container--focus .select2-selection {
|
||||
border-color: #80bdff;
|
||||
-webkit-box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
|
||||
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
|
||||
|
||||
.select2-container--bootstrap4.select2-container--focus.select2-container--open .select2-selection {
|
||||
border-bottom: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0; }
|
||||
|
||||
.select2-container--bootstrap4.select2-container--disabled .select2-selection, .select2-container--bootstrap4.select2-container--disabled.select2-container--focus .select2-selection {
|
||||
background-color: #e9ecef;
|
||||
cursor: not-allowed;
|
||||
border-color: #ced4da;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none; }
|
||||
|
||||
.select2-container--bootstrap4.select2-container--disabled .select2-search__field, .select2-container--bootstrap4.select2-container--disabled.select2-container--focus .select2-search__field {
|
||||
background-color: transparent; }
|
||||
|
||||
select.is-invalid ~ .select2-container--bootstrap4 .select2-selection,
|
||||
form.was-validated select:invalid ~ .select2-container--bootstrap4 .select2-selection {
|
||||
border-color: #dc3545; }
|
||||
|
||||
select.is-valid ~ .select2-container--bootstrap4 .select2-selection,
|
||||
form.was-validated select:valid ~ .select2-container--bootstrap4 .select2-selection {
|
||||
border-color: #28a745; }
|
||||
|
||||
.select2-container--bootstrap4 .select2-dropdown {
|
||||
border-color: #ced4da;
|
||||
border-radius: 0; }
|
||||
.select2-container--bootstrap4 .select2-dropdown.select2-dropdown--below {
|
||||
border-top: none;
|
||||
border-bottom-right-radius: 0.25rem;
|
||||
border-bottom-left-radius: 0.25rem; }
|
||||
.select2-container--bootstrap4 .select2-dropdown.select2-dropdown--above {
|
||||
border-top: 1px solid #ced4da;
|
||||
border-top-left-radius: 0.25rem;
|
||||
border-top-right-radius: 0.25rem; }
|
||||
.select2-container--bootstrap4 .select2-dropdown .select2-results__option[aria-selected=true] {
|
||||
background-color: #e9ecef; }
|
||||
|
||||
.select2-container--bootstrap4 .select2-results__option--highlighted,
|
||||
.select2-container--bootstrap4 .select2-results__option--highlighted.select2-results__option[aria-selected=true] {
|
||||
background-color: #007bff;
|
||||
color: #f8f9fa; }
|
||||
|
||||
.select2-container--bootstrap4 .select2-results__option[role=group] {
|
||||
padding: 0; }
|
||||
.select2-container--bootstrap4 .select2-results__option[role=group] .select2-results__options--nested .select2-results__option {
|
||||
padding-left: 1em; }
|
||||
|
||||
.select2-container--bootstrap4 .select2-results > .select2-results__options {
|
||||
max-height: 15em;
|
||||
overflow-y: auto; }
|
||||
|
||||
.select2-container--bootstrap4 .select2-results__group {
|
||||
padding: 6px;
|
||||
display: list-item;
|
||||
color: #6c757d; }
|
||||
|
||||
.select2-container--bootstrap4 .select2-selection__clear {
|
||||
width: 0.9em;
|
||||
height: 0.9em;
|
||||
line-height: 0.75em;
|
||||
padding-left: 0.15em;
|
||||
margin-top: 0.7em;
|
||||
border-radius: 100%;
|
||||
background-color: #c8c8c8;
|
||||
color: #f8f9fa;
|
||||
float: right;
|
||||
margin-right: 0.3em; }
|
||||
.select2-container--bootstrap4 .select2-selection__clear:hover {
|
||||
background-color: #afafaf; }
|
||||
@@ -0,0 +1 @@
|
||||
.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px}Line truncated
|
||||
@@ -0,0 +1,308 @@
|
||||
$(function() {
|
||||
"use strict";
|
||||
|
||||
|
||||
$( '#single-select-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
} );
|
||||
|
||||
|
||||
|
||||
|
||||
$( '#single-select-optgroup-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
} );
|
||||
|
||||
|
||||
|
||||
$( '#single-select-clear-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
allowClear: true
|
||||
} );
|
||||
|
||||
|
||||
$( '#single-select-disabled-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
} );
|
||||
|
||||
|
||||
|
||||
$( '#multiple-select-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
} );
|
||||
|
||||
|
||||
$( '#multiple-select-optgroup-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
} );
|
||||
|
||||
|
||||
|
||||
|
||||
$( '#multiple-select-clear-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
allowClear: true,
|
||||
} );
|
||||
|
||||
|
||||
|
||||
$( '#multiple-select-custom-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
tags: true
|
||||
} );
|
||||
|
||||
|
||||
|
||||
$( '#multiple-select-disabled-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
} );
|
||||
|
||||
|
||||
|
||||
|
||||
$( '#prepend-text-single-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
} );
|
||||
|
||||
$( '#prepend-text-multiple-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
} );
|
||||
|
||||
|
||||
|
||||
|
||||
$( '#prepend-button-single-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
} );
|
||||
|
||||
$( '#prepend-button-multiple-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
} );
|
||||
|
||||
|
||||
|
||||
$( '#prepend-dropdown-single-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
} );
|
||||
|
||||
$( '#prepend-dropdown-multiple-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
} );
|
||||
|
||||
|
||||
|
||||
|
||||
$( '#prepend-toggle-single-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
} );
|
||||
|
||||
$( '#prepend-toggle-multiple-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
} );
|
||||
|
||||
|
||||
|
||||
|
||||
$( '#append-text-single-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
} );
|
||||
|
||||
$( '#append-text-multiple-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
} );
|
||||
|
||||
|
||||
|
||||
|
||||
$( '#append-button-single-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
} );
|
||||
|
||||
$( '#append-button-multiple-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
} );
|
||||
|
||||
|
||||
|
||||
$( '#append-dropdown-single-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
} );
|
||||
|
||||
$( '#append-dropdown-multiple-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
} );
|
||||
|
||||
|
||||
|
||||
$( '#append-toggle-single-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
} );
|
||||
|
||||
$( '#append-toggle-multiple-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
} );
|
||||
|
||||
|
||||
|
||||
$( '#prepend-append-text-single-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
} );
|
||||
|
||||
$( '#prepend-append-text-multiple-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
} );
|
||||
|
||||
|
||||
|
||||
$( '#prepend-append-button-single-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
} );
|
||||
|
||||
$( '#prepend-append-button-multiple-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
} );
|
||||
|
||||
|
||||
|
||||
|
||||
$( '#prepend-append-dropdown-single-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
} );
|
||||
|
||||
$( '#prepend-append-dropdown-multiple-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
} );
|
||||
|
||||
|
||||
|
||||
$( '#prepend-append-toggle-single-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
} );
|
||||
|
||||
$( '#prepend-append-toggle-multiple-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
} );
|
||||
|
||||
|
||||
|
||||
$( '#small-bootstrap-class-single-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
dropdownParent: $( '#small-bootstrap-class-single-field' ).parent(),
|
||||
} );
|
||||
|
||||
$( '#small-bootstrap-class-multiple-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
dropdownParent: $( '#small-bootstrap-class-multiple-field' ).parent(),
|
||||
} );
|
||||
|
||||
|
||||
|
||||
$( '#large-bootstrap-class-single-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
dropdownParent: $( '#large-bootstrap-class-single-field' ).parent(),
|
||||
} );
|
||||
|
||||
$( '#large-bootstrap-class-multiple-field' ).select2( {
|
||||
theme: "bootstrap-5",
|
||||
width: $( this ).data( 'width' ) ? $( this ).data( 'width' ) : $( this ).hasClass( 'w-100' ) ? '100%' : 'style',
|
||||
placeholder: $( this ).data( 'placeholder' ),
|
||||
closeOnSelect: false,
|
||||
dropdownParent: $( '#large-bootstrap-class-multiple-field' ).parent(),
|
||||
} );
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
/*! Select2 4.0.6-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c),c}:a(jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return v.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o=b&&b.split("/"),p=t.map,q=p&&p["*"]||{};if(a){for(a=a.split("/"),g=a.length-1,t.nodeIdCompat&&x.test(a[g])&&(a[g]=a[g].replace(x,"")),"."===a[0].charAt(0)&&o&&(n=o.slice(0,o.length-1),a=n.concat(a)),k=0;k<a.length;k++)if("."===(m=a[k]))a.splice(k,1),k-=1;else if(".."===m){if(0===k||1===k&&".."===a[2]||".."===a[k-1])continue;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}if((o||q)&&p){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),o)for(l=o.length;l>0;l-=1)if((e=p[o.slice(0,l).join("/")])&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&q&&q[d]&&(i=q[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=w.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),o.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){r[a]=b}}function j(a){if(e(s,a)){var c=s[a];delete s[a],u[a]=!0,n.apply(b,c)}if(!e(r,a)&&!e(u,a))throw new Error("No "+a);return r[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return a?k(a):[]}function m(a){return function(){return t&&t.config&&t.config[a]||{}}}var n,o,p,q,r={},s={},t={},u={},v=Object.prototype.hasOwnProperty,w=[].slice,x=/\.js$/;p=function(a,b){var c,d=k(a),e=d[0],g=b[1];return a=d[1],e&&(e=f(e,g),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(g)):f(a,g):(a=f(a,g),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},q={require:function(a){return g(a)},exports:function(a){var b=r[a];return void 0!==b?b:r[a]={}},module:function(a){return{id:a,uri:"",exports:r[a],config:m(a)}}},n=function(a,c,d,f){var h,k,m,n,o,t,v,w=[],x=typeof d;if(f=f||a,t=l(f),"undefined"===x||"function"===x){for(c=!c.length&&d.length?["require","exports","module"]:c,o=0;o<c.length;o+=1)if(n=p(c[o],t),"require"===(k=n.f))w[o]=q.require(a);else if("exports"===k)w[o]=q.exports(a),v=!0;else if("module"===k)h=w[o]=q.module(a);else if(e(r,k)||e(s,k)||e(u,k))w[o]=j(k);else{if(!n.p)throw new Error(a+" missing "+k);n.p.load(n.n,g(f,!0),i(k),{}),w[o]=r[k]}m=d?d.apply(r[a],w):void 0,a&&(h&&h.exports!==b&&h.exports!==r[a]?r[a]=h.exports:m===b&&v||(r[a]=m))}else a&&(r[a]=d)},a=c=o=function(a,c,d,e,f){if("string"==typeof a)return q[a]?q[a](c):j(p(a,l(c)).f);if(!a.splice){if(t=a,t.deps&&o(t.deps,t.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?n(b,a,c,d):setTimeout(function(){n(b,a,c,d)},4),o},o.config=function(a){return o(a)},a._defined=r,d=function(a,b,c){if("string"!=typeof a)throw new Error("See almond README: incorrect module build, no module name");b.splice||(c=b,b=[]),e(r,a)||e(s,a)||(s[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){"function"==typeof b[d]&&("constructor"!==d&&c.push(d))}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){return Array.prototype.unshift.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice,c=b.call(arguments,1);this.listeners=this.listeners||{},null==c&&(c=[]),0===c.length&&c.push({}),c[0]._Line truncated
|
||||
Reference in new issue
Block a user