8000 chore: bump, cl, version, build · vueform/vueform@0443de7 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
chore: bump, cl, version, build
Browse files Browse the repository at this point in the history
  • Loading branch information
adamberecz committed Sep 16, 2024
1 parent 6a50f6d commit 0443de7
Show file tree
Hide file tree
Showing 14 changed files with 497 additions and 78 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
[//]: # (Don't use <tags>)

## v1.10.7

> `2024-09-16`
### 🎉 Feature
- Bumping Multiselect dependency.

## v1.10.6

> `2024-09-11`
Expand Down
46 changes: 44 additions & 2 deletions dist/bootstrap.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,7 @@ function render$H(_ctx, _cache, $props, $setup, $data, $options) {
class: normalizeClass(_ctx.classes.container)
}, [
renderSlot(_ctx.$slots, "default", {}, () => [
createTextVNode("*")
_cache[0] || (_cache[0] = createTextVNode("*"))
])
], 2 /* CLASS */))
: createCommentVNode("v-if", true)
Expand Down Expand Up @@ -3760,6 +3760,45 @@ function arraysEqual$1 (array1, array2) {
})
}

/* istanbul ignore next */
const objectsEqual = (obj1, obj2) => {
// If both are strictly equal, return true
if (obj1 === obj2) {
return true
}

// If either is not an object or is null, return false (handles primitive types and null)
if (typeof obj1 !== 'object' || obj1 === null || typeof obj2 !== 'object' || obj2 === null) {
return false
}

// Get the keys of both objects
const keys1 = Object.keys(obj1);
const keys2 = Object.keys(obj2);

// If they have a different number of keys, they're not equal
if (keys1.length !== keys2.length) {
return false
}

// Compare each key-value pair recursively
for (let key of keys1) {
// Check if both objects have the same key
if (!keys2.includes(key)) {
return false
}

// Recursively compare the values
if (!objectsEqual(obj1[key], obj2[key])) {
return false
}
}

return true
};

var objectsEqual$1 = objectsEqual;

function useOptions (props, context, dep)
{
const {
Expand Down Expand Up @@ -4080,7 +4119,10 @@ function useOptions (props, context, dep)

switch (mode.value) {
case 'single':
return !isNullish$1(iv.value) && iv.value[valueProp.value] == option[valueProp.value]
return !isNullish$1(iv.value) && (
iv.value[valueProp.value] == option[valueProp.value] ||
(typeof iv.value[valueProp.value] === 'object' && typeof option[valueProp.value] === 'object' && objectsEqual$1(iv.value[valueProp.value], option[valueProp.value]))
)

case 'tags':
case 'multiple':
Expand Down
44 changes: 42 additions & 2 deletions dist/bootstrap.vue2.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Vueform v1.10.6 (https://github.com/vueform/vueform)
* Vueform v1.10.7 (https://github.com/vueform/vueform)
* Copyright (c) 2024 Adam Berecz <adam@vueform.com>
* Licensed under the MIT License
*/
Expand Down Expand Up @@ -8231,6 +8231,43 @@ function arraysEqual$1 (array1, array2) {
})
}

/* istanbul ignore next */
const objectsEqual = (obj1, obj2) => {
// If both are strictly equal, return true
if (obj1 === obj2) {
return true
}

// If either is not an object or is null, return false (handles primitive types and null)
if (typeof obj1 !== 'object' || obj1 === null || typeof obj2 !== 'object' || obj2 === null) {
return false
}

// Get the keys of both objects
const keys1 = Object.keys(obj1);
const keys2 = Object.keys(obj2);

// If they have a different number of keys, they're not equal
if (keys1.length !== keys2.length) {
return false
}

// Compare each key-value pair recursively
for (let key of keys1) {
// Check if both objects have the same key
if (!keys2.includes(key)) {
return false
}

// Recursively compare the values
if (!objectsEqual(obj1[key], obj2[key])) {
return false
}
}

return true
};

function useOptions (props, context, dep)
{
const {
Expand Down Expand Up @@ -8551,7 +8588,10 @@ function useOptions (props, context, dep)

switch (mode.value) {
case 'single':
return !isNullish$1(iv.value) && iv.value[valueProp.value] == option[valueProp.value]
return !isNullish$1(iv.value) && (
iv.value[valueProp.value] == option[valueProp.value] ||
(typeof iv.value[valueProp.value] === 'object' && typeof option[valueProp.value] === 'object' && objectsEqual(iv.value[valueProp.value], option[valueProp.value]))
)

case 'tags':
case 'multiple':
Expand Down
57 changes: 29 additions & 28 deletions dist/core.mjs

Large diffs are not rendered by default.

57 changes: 29 additions & 28 deletions dist/index.mjs

Large diffs are not rendered by default.

46 changes: 44 additions & 2 deletions dist/material.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,7 @@ function render$H(_ctx, _cache, $props, $setup, $data, $options) {
class: normalizeClass(_ctx.classes.container)
}, [
renderSlot(_ctx.$slots, "default", {}, () => [
createTextVNode("*")
_cache[0] || (_cache[0] = createTextVNode("*"))
])
], 2 /* CLASS */))
: createCommentVNode("v-if", true)
Expand Down Expand Up @@ -3760,6 +3760,45 @@ function arraysEqual$1 (array1, array2) {
})
}

/* istanbul ignore next */
const objectsEqual = (obj1, obj2) => {
// If both are strictly equal, return true
if (obj1 === obj2) {
return true
}

// If either is not an object or is null, return false (handles primitive types and null)
if (typeof obj1 !== 'object' || obj1 === null || typeof obj2 !== 'object' || obj2 === null) {
return false
}

// Get the keys of both objects
const keys1 = Object.keys(obj1);
const keys2 = Object.keys(obj2);

// If they have a different number of keys, they're not equal
if (keys1.length !== keys2.length) {
return false
}

// Compare each key-value pair recursively
for (let key of keys1) {
// Check if both objects have the same key
if (!keys2.includes(key)) {
return false
}

// Recursively compare the values
if (!objectsEqual(obj1[key], obj2[key])) {
return false
}
}

return true
};

var objectsEqual$1 = objectsEqual;

function useOptions (props, context, dep)
{
const {
Expand Down Expand Up @@ -4080,7 +4119,10 @@ function useOptions (props, context, dep)

switch (mode.value) {
case 'single':
return !isNullish$1(iv.value) && iv.value[valueProp.value] == option[valueProp.value]
return !isNullish$1(iv.value) && (
iv.value[valueProp.value] == option[valueProp.value] ||
(typeof iv.value[valueProp.value] === 'object' && typeof option[valueProp.value] === 'object' && objectsEqual$1(iv.value[valueProp.value], option[valueProp.value]))
)

case 'tags':
case 'multiple':
Expand Down
44 changes: 42 additions & 2 deletions dist/material.vue2.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Vueform v1.10.6 (https://github.com/vueform/vueform)
* Vueform v1.10.7 (https://github.com/vueform/vueform)
* Copyright (c) 2024 Adam Berecz <adam@vueform.com>
* Licensed under the MIT License
*/
Expand Down Expand Up @@ -8231,6 +8231,43 @@ function arraysEqual$1 (array1, array2) {
})
}

/* istanbul ignore next */
const objectsEqual = (obj1, obj2) => {
// If both are strictly equal, return true
if (obj1 === obj2) {
return true
}

// If either is not an object or is null, return false (handles primitive types and null)
if (typeof obj1 !== 'object' || obj1 === null || typeof obj2 !== 'object' || obj2 === null) {
return false
}

// Get the keys of both objects
const keys1 = Object.keys(obj1);
const keys2 = Object.keys(obj2);

// If they have a different number of keys, they're not equal
if (keys1.length !== keys2.length) {
return false
}

// Compare each key-value pair recursively
for (let key of keys1) {
// Check if both objects have the same key
if (!keys2.includes(key)) {
return false
}

// Recursively compare the values
if (!objectsEqual(obj1[key], obj2[key])) {
return false
}
}

return true
};

function useOptions (props, context, dep)
{
const {
Expand Down Expand Up @@ -8551,7 +8588,10 @@ function useOptions (props, context, dep)

switch (mode.value) {
case 'single':
return !isNullish$1(iv.value) && iv.value[valueProp.value] == option[valueProp.value]
return !isNullish$1(iv.value) && (
iv.value[valueProp.value] == option[valueProp.value] ||
(typeof iv.value[valueProp.value] === 'object' && typeof option[valueProp.value] === 'object' && objectsEqual(iv.value[valueProp.value], option[valueProp.value]))
)

case 'tags':
case 'multiple':
Expand Down
46 changes: 44 additions & 2 deletions dist/tailwind-material.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ function render$H(_ctx, _cache, $props, $setup, $data, $options) {
class: normalizeClass(_ctx.classes.container)
}, [
renderSlot(_ctx.$slots, "default", {}, () => [
createTextVNode("*")
_cache[0] || (_cache[0] = createTextVNode("*"))
])
], 2 /* CLASS */))
: createCommentVNode("v-if", true)
Expand Down Expand Up @@ -2465,6 +2465,45 @@ function arraysEqual$1 (array1, array2) {
})
}

/* istanbul ignore next */
const objectsEqual = (obj1, obj2) => {
// If both are strictly equal, return true
if (obj1 === obj2) {
return true
}

// If either is not an object or is null, return false (handles primitive types and null)
if (typeof obj1 !== 'object' || obj1 === null || typeof obj2 !== 'object' || obj2 === null) {
return false
}

// Get the keys of both objects
const keys1 = Object.keys(obj1);
const keys2 = Object.keys(obj2);

// If they have a different number of keys, they're not equal
if (keys1.length !== keys2.length) {
return false
}

// Compare each key-value pair recursively
for (let key of keys1) {
// Check if both objects have the same key
if (!keys2.includes(key)) {
return false
}

// Recursively compare the values
if (!objectsEqual(obj1[key], obj2[key])) {
return false
}
}

return true
};

var objectsEqual$1 = objectsEqual;

function useOptions (props, context, dep)
{
const {
Expand Down Expand Up @@ -2785,7 +2824,10 @@ function useOptions (props, context, dep)

switch (mode.value) {
case 'single':
return !isNullish$1(iv.value) && iv.value[valueProp.value] == option[valueProp.value]
return !isNullish$1(iv.value) && (
iv.value[valueProp.value] == option[valueProp.value] ||
(typeof iv.value[valueProp.value] === 'object' && typeof option[valueProp.value] === 'object' && objectsEqual$1(iv.value[valueProp.value], option[valueProp.value]))
)

case 'tags':
case 'multiple':
Expand Down
Loading

0 comments on commit 0443de7

Please sign in to comment.
0