Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
e0b976ac11 chore(deps): bump stylelint-config-recess-order from 6.1.0 to 7.2.0
Bumps [stylelint-config-recess-order](https://github.com/stormwarning/stylelint-config-recess-order) from 6.1.0 to 7.2.0.
- [Release notes](https://github.com/stormwarning/stylelint-config-recess-order/releases)
- [Changelog](https://github.com/stormwarning/stylelint-config-recess-order/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stormwarning/stylelint-config-recess-order/compare/v6.1.0...v7.2.0)

---
updated-dependencies:
- dependency-name: stylelint-config-recess-order
  dependency-version: 7.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-22 19:51:39 +00:00
6 changed files with 15 additions and 69 deletions

View File

@@ -82,7 +82,7 @@ defineExpose({
</script>
<template>
<Teleport defer :to="appendTo">
<Teleport :to="appendTo">
<Transition name="fade">
<DialogOverlay
v-if="open && modal"

View File

@@ -73,7 +73,7 @@ function onAnimationEnd(event: AnimationEvent) {
</script>
<template>
<Teleport defer :to="appendTo">
<Teleport :to="appendTo">
<Transition name="fade">
<SheetOverlay
v-if="open && modal"

View File

@@ -103,15 +103,10 @@ function updateTreeValue() {
treeValue.value = undefined;
} else {
if (Array.isArray(val)) {
let filteredValues = val.filter((v) => {
const filteredValues = val.filter((v) => {
const item = getItemByValue(v);
return item && !get(item, props.disabledField);
});
if (!props.checkStrictly && props.autoCheckParent) {
filteredValues = processParentSelection(filteredValues);
}
treeValue.value = filteredValues.map((v) => getItemByValue(v));
if (filteredValues.length !== val.length) {
@@ -128,35 +123,7 @@ function updateTreeValue() {
}
}
}
function processParentSelection(
selectedValues: Array<number | string>,
): Array<number | string> {
if (props.checkStrictly) return selectedValues;
const result = [...selectedValues];
for (let i = result.length - 1; i >= 0; i--) {
const currentValue = result[i];
if (currentValue === undefined) continue;
const currentItem = getItemByValue(currentValue);
if (!currentItem) continue;
const children = get(currentItem, props.childrenField);
if (Array.isArray(children) && children.length > 0) {
const hasSelectedChildren = children.some((child) => {
const childValue = get(child, props.valueField);
return result.includes(childValue);
});
if (!hasSelectedChildren) {
result.splice(i, 1);
}
}
}
return result;
}
function updateModelValue(val: Arrayable<Recordable<any>>) {
if (Array.isArray(val)) {
const filteredVal = val.filter((v) => !get(v, props.disabledField));

View File

@@ -104,7 +104,7 @@ function selectColor() {
watch(
() => [modelValue.value, props.isDark] as [BuiltinThemeType, boolean],
([themeType, isDark], [_, isDarkPrev]) => {
([themeType, isDark]) => {
const theme = builtinThemePresets.value.find(
(item) => item.type === themeType,
);
@@ -113,9 +113,7 @@ watch(
? theme.darkPrimaryColor || theme.primaryColor
: theme.primaryColor;
if (!(theme.type === 'custom' && isDark !== isDarkPrev)) {
themeColorPrimary.value = primaryColor || theme.color;
}
themeColorPrimary.value = primaryColor || theme.color;
}
},
);

37
pnpm-lock.yaml generated
View File

@@ -406,8 +406,8 @@ catalogs:
specifier: ^16.21.0
version: 16.21.0
stylelint-config-recess-order:
specifier: ^6.1.0
version: 6.1.0
specifier: ^7.2.0
version: 7.2.0
stylelint-config-recommended:
specifier: ^16.0.0
version: 16.0.0
@@ -1000,7 +1000,7 @@ importers:
version: 3.1.3(stylelint@16.21.0(typescript@5.8.3))
stylelint-config-recess-order:
specifier: 'catalog:'
version: 6.1.0(stylelint@16.21.0(typescript@5.8.3))
version: 7.2.0(stylelint-order@7.0.0(stylelint@16.21.0(typescript@5.8.3)))(stylelint@16.21.0(typescript@5.8.3))
stylelint-scss:
specifier: 'catalog:'
version: 6.12.1(stylelint@16.21.0(typescript@5.8.3))
@@ -9663,11 +9663,6 @@ packages:
resolution: {integrity: sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA==}
engines: {node: '>=4'}
postcss-sorting@8.0.2:
resolution: {integrity: sha512-M9dkSrmU00t/jK7rF6BZSZauA5MAaBW4i5EnJXspMwt4iqTh/L9j6fgMnbElEOfyRyfLfVbIHj/R52zHzAPe1Q==}
peerDependencies:
postcss: ^8.4.20
postcss-sorting@9.1.0:
resolution: {integrity: sha512-Mn8KJ45HNNG6JBpBizXcyf6LqY/qyqetGcou/nprDnFwBFBLGj0j/sNKV2lj2KMOVOwdXu14aEzqJv8CIV6e8g==}
peerDependencies:
@@ -10563,10 +10558,11 @@ packages:
postcss-html: ^1.0.0
stylelint: '>=14.0.0'
stylelint-config-recess-order@6.1.0:
resolution: {integrity: sha512-0rGZgJQjUKqv1PXZnRJxr13f3hb3i2snx2nIL6luDWUf4nD3BAweB8noS7jdfBQ56HQG3RKSF0a+MAHfBGFxgw==}
stylelint-config-recess-order@7.2.0:
resolution: {integrity: sha512-3Y97dhsWkUHFKRLGNLF6LE5JuNB2EVAZKYJ41wBRK4gplYdk7eHhSIwE24hanu0AoNmv5534Djip70pE+y5qkA==}
peerDependencies:
stylelint: '>=16'
stylelint: '>=16.18'
stylelint-order: '>=7'
stylelint-config-recommended-scss@14.1.0:
resolution: {integrity: sha512-bhaMhh1u5dQqSsf6ri2GVWWQW5iUjBYgcHkh7SgDDn92ijoItC/cfO/W+fpXshgTQWhwFkP1rVcewcv4jaftRg==}
@@ -10603,11 +10599,6 @@ packages:
peerDependencies:
stylelint: ^16.18.0
stylelint-order@6.0.4:
resolution: {integrity: sha512-0UuKo4+s1hgQ/uAxlYU4h0o0HS4NiQDud0NAUNI0aa8FJdmYHA5ZZTFHiV5FpmE3071e9pZx5j0QpVJW5zOCUA==}
peerDependencies:
stylelint: ^14.0.0 || ^15.0.0 || ^16.0.1
stylelint-order@7.0.0:
resolution: {integrity: sha512-rSWxx0KscYfxU02wEskKXES9lkRzuuONMMNkZ7SUc6uiF3tDKm7e+sE0Ax/SBlG4TUf1sp1R6f3/SlsPGmzthg==}
engines: {node: '>=20.19.0'}
@@ -20382,10 +20373,6 @@ snapshots:
cssesc: 3.0.0
util-deprecate: 1.0.2
postcss-sorting@8.0.2(postcss@8.5.6):
dependencies:
postcss: 8.5.6
postcss-sorting@9.1.0(postcss@8.5.6):
dependencies:
postcss: 8.5.6
@@ -21344,10 +21331,10 @@ snapshots:
postcss-html: 1.8.0
stylelint: 16.21.0(typescript@5.8.3)
stylelint-config-recess-order@6.1.0(stylelint@16.21.0(typescript@5.8.3)):
stylelint-config-recess-order@7.2.0(stylelint-order@7.0.0(stylelint@16.21.0(typescript@5.8.3)))(stylelint@16.21.0(typescript@5.8.3)):
dependencies:
stylelint: 16.21.0(typescript@5.8.3)
stylelint-order: 6.0.4(stylelint@16.21.0(typescript@5.8.3))
stylelint-order: 7.0.0(stylelint@16.21.0(typescript@5.8.3))
stylelint-config-recommended-scss@14.1.0(postcss@8.5.6)(stylelint@16.21.0(typescript@5.8.3)):
dependencies:
@@ -21379,12 +21366,6 @@ snapshots:
stylelint: 16.21.0(typescript@5.8.3)
stylelint-config-recommended: 16.0.0(stylelint@16.21.0(typescript@5.8.3))
stylelint-order@6.0.4(stylelint@16.21.0(typescript@5.8.3)):
dependencies:
postcss: 8.5.6
postcss-sorting: 8.0.2(postcss@8.5.6)
stylelint: 16.21.0(typescript@5.8.3)
stylelint-order@7.0.0(stylelint@16.21.0(typescript@5.8.3)):
dependencies:
postcss: 8.5.6

View File

@@ -152,7 +152,7 @@ catalog:
secure-ls: ^2.0.0
sortablejs: ^1.15.6
stylelint: ^16.21.0
stylelint-config-recess-order: ^6.1.0
stylelint-config-recess-order: ^7.2.0
stylelint-config-recommended: ^16.0.0
stylelint-config-recommended-scss: ^14.1.0
stylelint-config-recommended-vue: ^1.6.1