Skip to content

Commit

Permalink
Release 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
smolenski-mikolaj committed Jan 23, 2023
1 parent 2f40a93 commit 89ee40e
Show file tree
Hide file tree
Showing 169 changed files with 5,781 additions and 3,814 deletions.
Binary file added License.pdf
Binary file not shown.
10 changes: 5 additions & 5 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
MDB 5 Vue

Version: FREE 3.1.1
Version: FREE 3.2.0

Documentation:
https://mdbootstrap.com/docs/vue/
https://mdbootstrap.com/docs/b5/vue/

Installation:
https://mdbootstrap.com/docs/vue/getting-started/installation/
https://mdbootstrap.com/docs/b5/vue/getting-started/installation/

CLI & hosting:
https://mdbgo.com/
https://mdbootstrap.com/docs/standard/cli/

Support:
https://mdbootstrap.com/support/cat/vue/
https://mdbootstrap.com/support/cat/vue/
8 changes: 4 additions & 4 deletions css/mdb.dark.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/mdb.dark.min.css.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions css/mdb.dark.rtl.min.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions css/mdb.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/mdb.min.css.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions css/mdb.rtl.min.css

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions js/mdb.es.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -1483,12 +1483,14 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
}
});
let isCollapsing = false;
const emitInterval = ref(0);
watch(
() => props.modelValue,
(cur, prev) => {
(cur) => {
if (isCollapsing) {
setTimeout(() => {
emit("update:modelValue", prev);
clearInterval(emitInterval.value);
emitInterval.value = setTimeout(() => {
emit("update:modelValue", isActive.value);
}, props.duration);
return;
}
Expand Down Expand Up @@ -1544,6 +1546,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
} else {
el.style.height = "0";
}
el.style.transitionDuration = props.duration + "ms";
isCollapsing = true;
};
const enter = (el) => {
Expand Down Expand Up @@ -1618,8 +1621,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
onLeave: leave,
onAfterLeave: afterLeave,
"enter-active-class": "collapsing",
"leave-active-class": "collapsing show",
duration: __props.duration
"leave-active-class": "collapsing show"
}, {
default: withCtx(() => [
withDirectives((openBlock(), createBlock(resolveDynamicComponent(__props.tag), {
Expand All @@ -1637,7 +1639,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
])
]),
_: 3
}, 8, ["duration"]);
});
};
}
});
Expand Down Expand Up @@ -3952,7 +3954,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
return;
}
setTimeout(() => {
popperEl.value.classList.remove("show");
popperEl.value && popperEl.value.classList.remove("show");
}, 10);
isThrottled.value = true;
setTimeout(() => {
Expand Down
2 changes: 1 addition & 1 deletion js/mdb.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdb-vue-ui-kit",
"version": "3.1.1",
"version": "3.2.0",
"type": "module",
"main": "js/mdb.umd.min.js",
"module": "js/mdb.es.min.js",
Expand Down
11 changes: 7 additions & 4 deletions src/components/free/components/MDBCollapse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
@after-leave="afterLeave"
enter-active-class="collapsing"
leave-active-class="collapsing show"
:duration="duration"
>
<component
v-show="isActive"
Expand Down Expand Up @@ -132,12 +131,15 @@ onMounted(() => {
});
let isCollapsing = false;
const emitInterval = ref(0);
watch(
() => props.modelValue,
(cur, prev) => {
(cur) => {
if (isCollapsing) {
setTimeout(() => {
emit("update:modelValue", prev);
clearInterval(emitInterval.value);
emitInterval.value = setTimeout(() => {
emit("update:modelValue", isActive.value);
}, props.duration);
return;
}
Expand Down Expand Up @@ -210,6 +212,7 @@ const beforeEnter = (el: HTMLElement) => {
} else {
el.style.height = "0";
}
el.style.transitionDuration = props.duration + "ms";
isCollapsing = true;
};
const enter = (el: HTMLElement) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/free/components/MDBTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ watchEffect(() => {
return;
}
setTimeout(() => {
popperEl.value.classList.remove("show");
popperEl.value && popperEl.value.classList.remove("show");
}, 10);
isThrottled.value = true;
Expand Down
4 changes: 4 additions & 0 deletions src/scss/free/_popovers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,7 @@
border-width: 10px 0 10px 10px;
border-color: transparent transparent transparent white;
}

.popover {
position: absolute;
}
16 changes: 8 additions & 8 deletions src/scss/free/_tooltips.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

.tooltip[data-popper-placement^="top"] .tooltip_arrow {
border-width: 5px 5px 0 5px;
border-color: $tooltip-inner-background-color transparent transparent
transparent;
border-color: $tooltip-bg transparent transparent transparent;
bottom: -5px;
left: calc(50% - 5px);
margin-top: 0;
Expand All @@ -19,8 +18,7 @@

.tooltip[data-popper-placement^="bottom"] .tooltip_arrow {
border-width: 0 5px 5px 5px;
border-color: transparent transparent $tooltip-inner-background-color
transparent;
border-color: transparent transparent $tooltip-bg transparent;
top: -5px;
left: calc(50% - 5px);
margin-top: 0;
Expand All @@ -30,8 +28,7 @@

.tooltip[data-popper-placement^="right"] .tooltip_arrow {
border-width: 5px 5px 5px 0;
border-color: transparent $tooltip-inner-background-color transparent
transparent;
border-color: transparent $tooltip-bg transparent transparent;
left: -5px;
top: calc(50% - 5px);
margin-left: 0;
Expand All @@ -41,8 +38,7 @@

.tooltip[data-popper-placement^="left"] .tooltip_arrow {
border-width: 5px 0 5px 5px;
border-color: transparent transparent transparent
$tooltip-inner-background-color;
border-color: transparent transparent transparent $tooltip-bg;
right: -5px;
top: calc(50% - 5px);
margin-left: 0;
Expand All @@ -59,3 +55,7 @@
.fade-leave-from {
opacity: 1;
}

.tooltip {
position: absolute;
}
82 changes: 57 additions & 25 deletions src/scss/standard/bootstrap-rtl-fix/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,71 @@
// Base styles
//

.accordion {
// scss-docs-start accordion-css-vars
--#{$prefix}accordion-color: #{$accordion-color};
--#{$prefix}accordion-bg: #{$accordion-bg};
--#{$prefix}accordion-transition: #{$accordion-transition};
--#{$prefix}accordion-border-color: #{$accordion-border-color};
--#{$prefix}accordion-border-width: #{$accordion-border-width};
--#{$prefix}accordion-border-radius: #{$accordion-border-radius};
--#{$prefix}accordion-inner-border-radius: #{$accordion-inner-border-radius};
--#{$prefix}accordion-btn-padding-x: #{$accordion-button-padding-x};
--#{$prefix}accordion-btn-padding-y: #{$accordion-button-padding-y};
--#{$prefix}accordion-btn-color: #{$accordion-button-color};
--#{$prefix}accordion-btn-bg: #{$accordion-button-bg};
--#{$prefix}accordion-btn-icon: #{escape-svg($accordion-button-icon)};
--#{$prefix}accordion-btn-icon-width: #{$accordion-icon-width};
--#{$prefix}accordion-btn-icon-transform: #{$accordion-icon-transform};
--#{$prefix}accordion-btn-icon-transition: #{$accordion-icon-transition};
--#{$prefix}accordion-btn-active-icon: #{escape-svg($accordion-button-active-icon)};
--#{$prefix}accordion-btn-focus-border-color: #{$accordion-button-focus-border-color};
--#{$prefix}accordion-btn-focus-box-shadow: #{$accordion-button-focus-box-shadow};
--#{$prefix}accordion-body-padding-x: #{$accordion-body-padding-x};
--#{$prefix}accordion-body-padding-y: #{$accordion-body-padding-y};
--#{$prefix}accordion-active-color: #{$accordion-button-active-color};
--#{$prefix}accordion-active-bg: #{$accordion-button-active-bg};
// scss-docs-end accordion-css-vars
}

.accordion-button {
position: relative;
display: flex;
align-items: center;
width: 100%;
padding: $accordion-button-padding-y $accordion-button-padding-x;
padding: var(--#{$prefix}accordion-btn-padding-y) var(--#{$prefix}accordion-btn-padding-x);
@include font-size($font-size-base);
color: $accordion-button-color;
color: var(--#{$prefix}accordion-btn-color);
text-align: left; // Reset button style
background-color: $accordion-button-bg;
background-color: var(--#{$prefix}accordion-btn-bg);
border: 0;
@include border-radius(0);
overflow-anchor: none;
@include transition($accordion-transition);
@include transition(var(--#{$prefix}accordion-transition));

&:not(.collapsed) {
color: $accordion-button-active-color;
background-color: $accordion-button-active-bg;
box-shadow: inset 0 ($accordion-border-width * -1) 0 $accordion-border-color;
color: var(--#{$prefix}accordion-active-color);
background-color: var(--#{$prefix}accordion-active-bg);
box-shadow: inset 0 calc(-1 * var(--#{$prefix}accordion-border-width)) 0
var(--#{$prefix}accordion-border-color); // stylelint-disable-line function-disallowed-list

&::after {
background-image: escape-svg($accordion-button-active-icon);
transform: $accordion-icon-transform;
background-image: var(--#{$prefix}accordion-btn-active-icon);
transform: var(--#{$prefix}accordion-btn-icon-transform);
}
}

// Accordion icon
&::after {
flex-shrink: 0;
width: $accordion-icon-width;
height: $accordion-icon-width;
width: var(--#{$prefix}accordion-btn-icon-width);
height: var(--#{$prefix}accordion-btn-icon-width);
margin-left: auto;
content: '';
background-image: escape-svg($accordion-button-icon);
background-image: var(--#{$prefix}accordion-btn-icon);
background-repeat: no-repeat;
background-size: $accordion-icon-width;
@include transition($accordion-icon-transition);
background-size: var(--#{$prefix}accordion-btn-icon-width);
@include transition(var(--#{$prefix}accordion-btn-icon-transition));
}

&:hover {
Expand All @@ -47,9 +75,9 @@

&:focus {
z-index: 3;
border-color: $accordion-button-focus-border-color;
border-color: var(--#{$prefix}accordion-btn-focus-border-color);
outline: 0;
box-shadow: $accordion-button-focus-box-shadow;
box-shadow: var(--#{$prefix}accordion-btn-focus-box-shadow);
}
}

Expand All @@ -58,14 +86,15 @@
}

.accordion-item {
background-color: $accordion-bg;
border: $accordion-border-width solid $accordion-border-color;
color: var(--#{$prefix}accordion-color);
background-color: var(--#{$prefix}accordion-bg);
border: var(--#{$prefix}accordion-border-width) solid var(--#{$prefix}accordion-border-color);

&:first-of-type {
@include border-top-radius($accordion-border-radius);
@include border-top-radius(var(--#{$prefix}accordion-border-radius));

.accordion-button {
@include border-top-radius($accordion-inner-border-radius);
@include border-top-radius(var(--#{$prefix}accordion-inner-border-radius));
}
}

Expand All @@ -75,22 +104,22 @@

// Only set a border-radius on the last item if the accordion is collapsed
&:last-of-type {
@include border-bottom-radius($accordion-border-radius);
@include border-bottom-radius(var(--#{$prefix}accordion-border-radius));

.accordion-button {
&.collapsed {
@include border-bottom-radius($accordion-inner-border-radius);
@include border-bottom-radius(var(--#{$prefix}accordion-inner-border-radius));
}
}

.accordion-collapse {
@include border-bottom-radius($accordion-border-radius);
@include border-bottom-radius(var(--#{$prefix}accordion-border-radius));
}
}
}

.accordion-body {
padding: $accordion-body-padding-y $accordion-body-padding-x;
padding: var(--#{$prefix}accordion-body-padding-y) var(--#{$prefix}accordion-body-padding-x);
}

// Flush accordion items
Expand All @@ -115,7 +144,10 @@
}

.accordion-button {
@include border-radius(0);
&,
&.collapsed {
@include border-radius(0);
}
}
}
}
22 changes: 18 additions & 4 deletions src/scss/standard/bootstrap-rtl-fix/_alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,24 @@
//

.alert {
// scss-docs-start alert-css-vars
--#{$prefix}alert-bg: transparent;
--#{$prefix}alert-padding-x: #{$alert-padding-x};
--#{$prefix}alert-padding-y: #{$alert-padding-y};
--#{$prefix}alert-margin-bottom: #{$alert-margin-bottom};
--#{$prefix}alert-color: inherit;
--#{$prefix}alert-border-color: transparent;
--#{$prefix}alert-border: #{$alert-border-width} solid var(--#{$prefix}alert-border-color);
--#{$prefix}alert-border-radius: #{$alert-border-radius};
// scss-docs-end alert-css-vars

position: relative;
padding: $alert-padding-y $alert-padding-x;
margin-bottom: $alert-margin-bottom;
border: $alert-border-width solid transparent;
@include border-radius($alert-border-radius);
padding: var(--#{$prefix}alert-padding-y) var(--#{$prefix}alert-padding-x);
margin-bottom: var(--#{$prefix}alert-margin-bottom);
color: var(--#{$prefix}alert-color);
background-color: var(--#{$prefix}alert-bg);
border: var(--#{$prefix}alert-border);
@include border-radius(var(--#{$prefix}alert-border-radius));
}

// Headings for larger alerts
Expand Down Expand Up @@ -45,6 +58,7 @@
$alert-background: shift-color($value, $alert-bg-scale);
$alert-border: shift-color($value, $alert-border-scale);
$alert-color: shift-color($value, $alert-color-scale);

@if (contrast-ratio($alert-background, $alert-color) < $min-contrast-ratio) {
$alert-color: mix($value, color-contrast($alert-background), abs($alert-color-scale));
}
Expand Down
Loading

0 comments on commit 89ee40e

Please sign in to comment.