vue3-extended-multiselect 2.3.1 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1481,6 +1481,18 @@ const appropriatePlaceholder = computed(() => {
|
|
|
1481
1481
|
return createOnTheGo.value ? createOptionPlaceholder.value : placeholder.value;
|
|
1482
1482
|
});
|
|
1483
1483
|
|
|
1484
|
+
/**
|
|
1485
|
+
* Determines whether to show placeholder block
|
|
1486
|
+
* if search field is hidden
|
|
1487
|
+
* @function
|
|
1488
|
+
* @returns {boolean} display
|
|
1489
|
+
*/
|
|
1490
|
+
const hintBlockShown = computed(() => {
|
|
1491
|
+
if (selectedOptions.value.length) return false;
|
|
1492
|
+
|
|
1493
|
+
return true;
|
|
1494
|
+
});
|
|
1495
|
+
|
|
1484
1496
|
/**
|
|
1485
1497
|
* Sets "margin-top" css property to multiple option blocks
|
|
1486
1498
|
* if search field is shown
|
|
@@ -1497,7 +1509,7 @@ const multipleBlocksMargin = computed(() => {
|
|
|
1497
1509
|
* @returns {boolean} display
|
|
1498
1510
|
*/
|
|
1499
1511
|
const placeholderBlockShown = computed(() => {
|
|
1500
|
-
if (selectedOptions.value.length) return false;
|
|
1512
|
+
if (selectedOptions.value.length || searchFieldForwarding.value) return false;
|
|
1501
1513
|
|
|
1502
1514
|
return true;
|
|
1503
1515
|
});
|
|
@@ -1881,7 +1893,7 @@ return (_ctx, _cache) => {
|
|
|
1881
1893
|
}, null, 544 /* NEED_HYDRATION, NEED_PATCH */)
|
|
1882
1894
|
]))
|
|
1883
1895
|
: (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
1884
|
-
(
|
|
1896
|
+
(hintBlockShown.value)
|
|
1885
1897
|
? (openBlock(), createElementBlock("span", _hoisted_6$3, toDisplayString(appropriatePlaceholder.value), 1 /* TEXT */))
|
|
1886
1898
|
: createCommentVNode("v-if", true),
|
|
1887
1899
|
renderSlot(_ctx.$slots, "labelBlock", { labelBlockValue: singleLabel.value }, () => [
|
|
@@ -3629,7 +3641,7 @@ const _hoisted_3 = { class: "extended__multiselect-cancel_wrapper" };
|
|
|
3629
3641
|
|
|
3630
3642
|
/**
|
|
3631
3643
|
* @author Ridiger Daniil Dmitrievich, 2022
|
|
3632
|
-
* @version 2.3.
|
|
3644
|
+
* @version 2.3.2
|
|
3633
3645
|
*/
|
|
3634
3646
|
|
|
3635
3647
|
var script = {
|