Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 26
cache: 'yarn'

- name: Build theme with node
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 22
node-version: 26
cache: 'yarn'

- name: Lint Code
Expand Down
31 changes: 15 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],
"scripts": {
"lint:js": "eslint src",
"lint:css": "stylelint src/**/*.scss",
"lint:css": "stylelint \"src/**/*.scss\"",
"lint:spell": "cspell lint --no-progress 'src/**/*.{js,json,vue,scss}' 'site/docs/*.md' '*.md'",
"lint:editor": "editorconfig-checker -exclude dist",
"lint": "run-s lint:*",
Expand Down Expand Up @@ -65,33 +65,32 @@
"download": "https://github.com/wenzhixin/multiple-select/archive/master.zip",
"engines": {},
"devDependencies": {
"@babel/core": "^7.29.7",
"@babel/eslint-parser": "^7.29.7",
"@babel/preset-env": "^7.29.7",
"@babel/core": "^8.0.5",
"@babel/eslint-parser": "^8.0.5",
"@eslint/js": "^10.0.1",
"@rollup/plugin-babel": "^7.1.0",
"@rollup/plugin-commonjs": "^29.0.3",
"@rollup/plugin-inject": "^5.0.5",
"@rollup/plugin-multi-entry": "^7.1.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "^1.0.0",
"@vitejs/plugin-vue": "^6.0.7",
"@vitejs/plugin-vue": "^6.0.9",
"clean-css-cli": "^5.6.3",
"core-js": "^3.49.0",
"cross-env": "^10.1.0",
"cspell": "^10.0.1",
"editorconfig-checker": "^6.2.0",
"eslint": "^9.34.0",
"cspell": "^10.3.2",
"editorconfig-checker": "^7.0.0",
"eslint": "^10.10.0",
"eslint-plugin-import": "^2.32.0",
"getopts": "^2.3.0",
"glob": "^13.0.6",
"globals": "^17.7.0",
"globals": "^17.12.0",
"headr": "^0.0.4",
"npm-run-all2": "^8.0.4",
"rollup": "^4.62.2",
"sass": "^1.101.0",
"stylelint": "^17.14.0",
"npm-run-all2": "^9.0.3",
"rollup": "^4.63.3",
"sass": "^1.104.1",
"stylelint": "^17.15.0",
"stylelint-config-standard-scss": "^17.0.0",
"vite": "^8.1.4",
"vue": "^3.5.39"
"vite": "^8.3.0",
"vue": "^3.5.42"
}
}
2 changes: 1 addition & 1 deletion src/MultipleSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ class MultipleSelect {
let hasChanged = false
const _setSelects = rows => {
for (const row of rows) {
let selected = false
let selected

if (type === 'text') {
selected = values.includes($('<div>').html(row.text).text().trim())
Expand Down
23 changes: 14 additions & 9 deletions src/multiple-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*/

.ms-offscreen {
/* Keep the deprecated `clip` instead of `clip-path` for older browsers */
/* stylelint-disable-next-line property-no-deprecated */
clip: rect(0 0 0 0)!important;
width: 1px!important;
height: 1px!important;
Expand Down Expand Up @@ -61,37 +63,39 @@
color: #999;
}
}

div.icon-close {
position: absolute;
top: 0px;
top: 0;
right: 16px;
height: 100%;
width: 16px;

&:before {
&::before {
content: '×';
color: #888;
font-weight: bold;
}

&:hover:before {
&:hover::before {
color: #333;
}
}

div.icon-caret {
position: absolute;
width: 0;
height: 0;
top: 50%;
right: 8px;
margin-top: -2px;
border-color: #888 transparent transparent transparent;
border-color: #888 transparent transparent;
border-style: solid;
border-width: 5px 4px 0 4px;
border-width: 5px 4px 0;

&.open {
border-color: transparent transparent #888 transparent;
border-width: 0 4px 5px 4px;
border-color: transparent transparent #888;
border-width: 0 4px 5px;
}
}
}
Expand Down Expand Up @@ -150,7 +154,7 @@

.ms-filter-options {
display: flex;
padding: 4px 4px;
padding: 4px;
border-bottom: 1px solid #eee;
background-color: #f9f9f9;
overflow-x: auto;
Expand Down Expand Up @@ -201,6 +205,7 @@
> li {
$item-padding-y: .25rem;
$item-padding-x: 8px;

list-style: none;
display: list-item;
background-image: none;
Expand All @@ -210,7 +215,7 @@
.disabled {
font-weight: normal!important;
opacity: .35;
filter: Alpha(Opacity = 35);
filter: alpha(opacity = 35);
cursor: default;
}

Expand Down
1 change: 1 addition & 0 deletions stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export default {
extends: 'stylelint-config-standard-scss',
rules: {
'alpha-value-notation': null,
'color-function-alias-notation': null,
'color-function-notation': null,
'hue-degree-notation': null,
'no-descending-specificity': null,
Expand Down
Loading
Loading