@cas-smartdesign/virtual-list 7.0.0 → 7.0.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.
@@ -1,2 +1 @@
1
- import"./doc.mjs";import{I as s}from"./item-provider.mjs";const o=document.querySelector("#selection-example"),t=o.querySelector("#notification"),r=Array.from(o.querySelectorAll("sd-virtual-list"));r.forEach(i=>{new s().connectList(i),i.addEventListener("selection",e=>{const n=r.indexOf(e.currentTarget);t.style.visibility="visible",t.style.gridColumnStart=`${n+1}`,t.innerText=`Item at index ${e.detail.index} has been ${e.detail.selected?"selected":"deselected"}
2
- Modifier pressed: ${e.detail.hasModifier}`})});
1
+ import"./doc.mjs";import{I as l}from"./item-provider.mjs";const r=document.querySelector("#selection-example"),t=r.querySelector("#notification"),n=Array.from(r.querySelectorAll("sd-virtual-list"));n.forEach(i=>{new l().connectList(i),i.addEventListener("selection",e=>{const o=n.indexOf(e.currentTarget);t.style.visibility="visible",t.style.gridColumnStart=`${o+1}`,t.innerText=`Item at index ${e.detail.index} has been ${e.detail.selected?"selected":"deselected"}`})});
package/dist/docs/doc.mjs CHANGED
@@ -55,7 +55,7 @@ lists.forEach((list: VirtualList) => {
55
55
  notification.style.gridColumnStart = \`\${listIndex + 1}\`;
56
56
  notification.innerText = \`Item at index \${event.detail.index} has been \${
57
57
  event.detail.selected ? "selected" : "deselected"
58
- }\\nModifier pressed: \${event.detail.hasModifier}\`;
58
+ }\`;
59
59
  });
60
60
  });
61
61
  `,gi=`import { ItemData } from "@cas-smartdesign/list-item";
@@ -496,7 +496,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ie=S,V=T),q===void 0&&
496
496
  <li><code>selection</code><ul>
497
497
  <li>Dispatched when one of the items is selected/deselected</li>
498
498
  <li>Contains the index of the item and a <code>selected</code> flag which is when false indicates that the item is deselected</li>
499
- <li>The <code>hasModifier</code> property is true if mouse wheel or ctrl/meta key is down while selection. Note that the auto scroll feature is disabled while middle mouse click.</li>
499
+ <li>The <code>originalEvent</code> a mouse or keyboard event that triggered the selection event.</li>
500
500
  </ul>
501
501
  </li>
502
502
  </ul>
@@ -7,52 +7,57 @@
7
7
  "@eslint/js@9.34.0": {
8
8
  "licenses": "MIT",
9
9
  "repository": "https://github.com/eslint/eslint",
10
- "licenseUrl": "https://github.com/eslint/eslint/raw/HEAD/LICENSE"
10
+ "licenseUrl": "https://unpkg.com/@eslint/js@9.34.0/LICENSE"
11
11
  },
12
12
  "@rollup/plugin-node-resolve@16.0.1": {
13
13
  "licenses": "MIT",
14
14
  "repository": "https://github.com/rollup/plugins",
15
- "licenseUrl": "https://github.com/rollup/plugins/raw/HEAD/LICENSE"
15
+ "licenseUrl": "https://unpkg.com/@rollup/plugin-node-resolve@16.0.1/LICENSE"
16
+ },
17
+ "@types/d3-color@3.1.3": {
18
+ "licenses": "MIT",
19
+ "repository": "https://github.com/DefinitelyTyped/DefinitelyTyped",
20
+ "licenseUrl": "https://unpkg.com/@types/d3-color@3.1.3/LICENSE"
16
21
  },
17
22
  "@types/node@24.3.0": {
18
23
  "licenses": "MIT",
19
24
  "repository": "https://github.com/DefinitelyTyped/DefinitelyTyped",
20
- "licenseUrl": "https://github.com/DefinitelyTyped/DefinitelyTyped/raw/HEAD/LICENSE"
25
+ "licenseUrl": "https://unpkg.com/@types/node@24.3.0/LICENSE"
21
26
  },
22
27
  "@types/postcss-prefix-selector@1.16.3": {
23
28
  "licenses": "MIT",
24
29
  "repository": "https://github.com/DefinitelyTyped/DefinitelyTyped",
25
- "licenseUrl": "https://github.com/DefinitelyTyped/DefinitelyTyped/raw/HEAD/LICENSE"
30
+ "licenseUrl": "https://unpkg.com/@types/postcss-prefix-selector@1.16.3/LICENSE"
26
31
  },
27
32
  "@typescript-eslint/eslint-plugin@8.41.0": {
28
33
  "licenses": "MIT",
29
34
  "repository": "https://github.com/typescript-eslint/typescript-eslint",
30
- "licenseUrl": "https://github.com/typescript-eslint/typescript-eslint/raw/HEAD/LICENSE"
35
+ "licenseUrl": "https://unpkg.com/@typescript-eslint/eslint-plugin@8.41.0/LICENSE"
31
36
  },
32
37
  "@typescript-eslint/parser@8.41.0": {
33
38
  "licenses": "MIT",
34
39
  "repository": "https://github.com/typescript-eslint/typescript-eslint",
35
- "licenseUrl": "https://github.com/typescript-eslint/typescript-eslint/raw/HEAD/LICENSE"
40
+ "licenseUrl": "https://unpkg.com/@typescript-eslint/parser@8.41.0/LICENSE"
36
41
  },
37
42
  "@vitest/coverage-v8@3.2.4": {
38
43
  "licenses": "MIT",
39
44
  "repository": "https://github.com/vitest-dev/vitest",
40
- "licenseUrl": "https://github.com/vitest-dev/vitest/raw/HEAD/LICENSE"
45
+ "licenseUrl": "https://unpkg.com/@vitest/coverage-v8@3.2.4/LICENSE"
41
46
  },
42
47
  "@vitest/ui@3.2.4": {
43
48
  "licenses": "MIT",
44
49
  "repository": "https://github.com/vitest-dev/vitest",
45
- "licenseUrl": "https://github.com/vitest-dev/vitest/raw/HEAD/LICENSE"
50
+ "licenseUrl": "https://unpkg.com/@vitest/ui@3.2.4/LICENSE"
46
51
  },
47
52
  "axe-core@4.10.3": {
48
53
  "licenses": "MPL-2.0",
49
54
  "repository": "https://github.com/dequelabs/axe-core",
50
- "licenseUrl": "https://github.com/dequelabs/axe-core/raw/HEAD/LICENSE"
55
+ "licenseUrl": "https://unpkg.com/axe-core@4.10.3/LICENSE"
51
56
  },
52
57
  "cypress-axe@1.7.0": {
53
58
  "licenses": "MIT",
54
59
  "repository": "https://github.com/component-driven/cypress-axe",
55
- "licenseUrl": "https://github.com/component-driven/cypress-axe/raw/HEAD/License.md"
60
+ "licenseUrl": "https://unpkg.com/cypress-axe@1.7.0/License.md"
56
61
  },
57
62
  "cypress@15.0.0": {
58
63
  "licenses": "MIT",
@@ -62,146 +67,146 @@
62
67
  "d3-color@3.1.0": {
63
68
  "licenses": "ISC",
64
69
  "repository": "https://github.com/d3/d3-color",
65
- "licenseUrl": "https://github.com/d3/d3-color/raw/HEAD/LICENSE"
70
+ "licenseUrl": "https://unpkg.com/d3-color@3.1.0/LICENSE"
66
71
  },
67
72
  "esbuild@0.25.9": {
68
73
  "licenses": "MIT",
69
74
  "repository": "https://github.com/evanw/esbuild",
70
- "licenseUrl": "https://github.com/evanw/esbuild/raw/HEAD/LICENSE.md"
75
+ "licenseUrl": "https://unpkg.com/esbuild@0.25.9/LICENSE.md"
71
76
  },
72
77
  "eslint-config-google@0.14.0": {
73
78
  "licenses": "Apache-2.0",
74
79
  "repository": "https://github.com/google/eslint-config-google",
75
- "licenseUrl": "https://github.com/google/eslint-config-google/raw/HEAD/LICENSE"
80
+ "licenseUrl": "https://unpkg.com/eslint-config-google@0.14.0/LICENSE"
76
81
  },
77
82
  "eslint-config-prettier@10.1.8": {
78
83
  "licenses": "MIT",
79
84
  "repository": "https://github.com/prettier/eslint-config-prettier",
80
- "licenseUrl": "https://github.com/prettier/eslint-config-prettier/raw/HEAD/LICENSE"
85
+ "licenseUrl": "https://unpkg.com/eslint-config-prettier@10.1.8/LICENSE"
81
86
  },
82
87
  "eslint@9.34.0": {
83
88
  "licenses": "MIT",
84
89
  "repository": "https://github.com/eslint/eslint",
85
- "licenseUrl": "https://github.com/eslint/eslint/raw/HEAD/LICENSE"
90
+ "licenseUrl": "https://unpkg.com/eslint@9.34.0/LICENSE"
86
91
  },
87
92
  "github-markdown-css@5.8.1": {
88
93
  "licenses": "MIT",
89
94
  "repository": "https://github.com/sindresorhus/github-markdown-css",
90
- "licenseUrl": "https://github.com/sindresorhus/github-markdown-css/raw/HEAD/license"
95
+ "licenseUrl": "https://unpkg.com/github-markdown-css@5.8.1/license"
91
96
  },
92
97
  "highlight.js@11.11.1": {
93
98
  "licenses": "BSD-3-Clause",
94
99
  "repository": "https://github.com/highlightjs/highlight.js",
95
- "licenseUrl": "https://github.com/highlightjs/highlight.js/raw/HEAD/LICENSE"
100
+ "licenseUrl": "https://unpkg.com/highlight.js@11.11.1/LICENSE"
96
101
  },
97
102
  "junit-report-builder@5.1.1": {
98
103
  "licenses": "MIT",
99
104
  "repository": "https://github.com/davidparsson/junit-report-builder",
100
- "licenseUrl": "https://github.com/davidparsson/junit-report-builder/raw/HEAD/LICENSE"
105
+ "licenseUrl": "https://unpkg.com/junit-report-builder@5.1.1/LICENSE"
101
106
  },
102
107
  "lint-staged@16.1.5": {
103
108
  "licenses": "MIT",
104
109
  "repository": "https://github.com/lint-staged/lint-staged",
105
- "licenseUrl": "https://github.com/lint-staged/lint-staged/raw/HEAD/LICENSE"
110
+ "licenseUrl": "https://unpkg.com/lint-staged@16.1.5/LICENSE"
106
111
  },
107
112
  "lit-html@3.3.1": {
108
113
  "licenses": "BSD-3-Clause",
109
114
  "repository": "https://github.com/lit/lit",
110
- "licenseUrl": "https://github.com/lit/lit/raw/HEAD/LICENSE"
115
+ "licenseUrl": "https://unpkg.com/lit-html@3.3.1/LICENSE"
111
116
  },
112
117
  "lit@3.3.1": {
113
118
  "licenses": "BSD-3-Clause",
114
119
  "repository": "https://github.com/lit/lit",
115
- "licenseUrl": "https://github.com/lit/lit/raw/HEAD/LICENSE"
120
+ "licenseUrl": "https://unpkg.com/lit@3.3.1/LICENSE"
116
121
  },
117
122
  "marked@16.2.1": {
118
123
  "licenses": "MIT",
119
124
  "repository": "https://github.com/markedjs/marked",
120
- "licenseUrl": "https://github.com/markedjs/marked/raw/HEAD/LICENSE.md"
125
+ "licenseUrl": "https://unpkg.com/marked@16.2.1/LICENSE.md"
121
126
  },
122
127
  "postcss-prefix-selector@2.1.1": {
123
128
  "licenses": "MIT",
124
129
  "repository": "https://github.com/RadValentin/postcss-prefix-selector",
125
- "licenseUrl": "https://github.com/RadValentin/postcss-prefix-selector/raw/HEAD/LICENSE"
130
+ "licenseUrl": "https://unpkg.com/postcss-prefix-selector@2.1.1/LICENSE"
126
131
  },
127
132
  "postcss@8.5.6": {
128
133
  "licenses": "MIT",
129
134
  "repository": "https://github.com/postcss/postcss",
130
- "licenseUrl": "https://github.com/postcss/postcss/raw/HEAD/LICENSE"
135
+ "licenseUrl": "https://unpkg.com/postcss@8.5.6/LICENSE"
131
136
  },
132
137
  "prettier@3.6.2": {
133
138
  "licenses": "MIT",
134
139
  "repository": "https://github.com/prettier/prettier",
135
- "licenseUrl": "https://github.com/prettier/prettier/raw/HEAD/LICENSE"
140
+ "licenseUrl": "https://unpkg.com/prettier@3.6.2/LICENSE"
136
141
  },
137
142
  "resolve-pkg@2.0.0": {
138
143
  "licenses": "MIT",
139
144
  "repository": "https://github.com/sindresorhus/resolve-pkg",
140
- "licenseUrl": "https://github.com/sindresorhus/resolve-pkg/raw/HEAD/license"
145
+ "licenseUrl": "https://unpkg.com/resolve-pkg@2.0.0/license"
141
146
  },
142
147
  "sass@1.91.0": {
143
148
  "licenses": "MIT",
144
149
  "repository": "https://github.com/sass/dart-sass",
145
- "licenseUrl": "https://github.com/sass/dart-sass/raw/HEAD/LICENSE"
150
+ "licenseUrl": "https://unpkg.com/sass@1.91.0/LICENSE"
146
151
  },
147
152
  "stylelint-config-recommended-scss@16.0.0": {
148
153
  "licenses": "MIT",
149
154
  "repository": "https://github.com/stylelint-scss/stylelint-config-recommended-scss",
150
- "licenseUrl": "https://github.com/stylelint-scss/stylelint-config-recommended-scss/raw/HEAD/LICENSE"
155
+ "licenseUrl": "https://unpkg.com/stylelint-config-recommended-scss@16.0.0/LICENSE"
151
156
  },
152
157
  "stylelint-config-standard@39.0.0": {
153
158
  "licenses": "MIT",
154
159
  "repository": "https://github.com/stylelint/stylelint-config-standard",
155
- "licenseUrl": "https://github.com/stylelint/stylelint-config-standard/raw/HEAD/LICENSE"
160
+ "licenseUrl": "https://unpkg.com/stylelint-config-standard@39.0.0/LICENSE"
156
161
  },
157
162
  "stylelint-scss@6.12.1": {
158
163
  "licenses": "MIT",
159
164
  "repository": "https://github.com/stylelint-scss/stylelint-scss",
160
- "licenseUrl": "https://github.com/stylelint-scss/stylelint-scss/raw/HEAD/LICENSE"
165
+ "licenseUrl": "https://unpkg.com/stylelint-scss@6.12.1/LICENSE"
161
166
  },
162
167
  "stylelint@16.23.1": {
163
168
  "licenses": "MIT",
164
169
  "repository": "https://github.com/stylelint/stylelint",
165
- "licenseUrl": "https://github.com/stylelint/stylelint/raw/HEAD/LICENSE"
170
+ "licenseUrl": "https://unpkg.com/stylelint@16.23.1/LICENSE"
166
171
  },
167
172
  "tsup@8.5.0": {
168
173
  "licenses": "MIT",
169
174
  "repository": "https://github.com/egoist/tsup",
170
- "licenseUrl": "https://github.com/egoist/tsup/raw/HEAD/LICENSE"
175
+ "licenseUrl": "https://unpkg.com/tsup@8.5.0/LICENSE"
171
176
  },
172
177
  "turbo@2.5.6": {
173
178
  "licenses": "MIT",
174
179
  "repository": "https://github.com/vercel/turborepo",
175
- "licenseUrl": "https://github.com/vercel/turborepo/raw/HEAD/LICENSE"
180
+ "licenseUrl": "https://unpkg.com/turbo@2.5.6/LICENSE"
176
181
  },
177
182
  "typescript-eslint@8.41.0": {
178
183
  "licenses": "MIT",
179
184
  "repository": "https://github.com/typescript-eslint/typescript-eslint",
180
- "licenseUrl": "https://github.com/typescript-eslint/typescript-eslint/raw/HEAD/LICENSE"
185
+ "licenseUrl": "https://unpkg.com/typescript-eslint@8.41.0/LICENSE"
181
186
  },
182
187
  "typescript@5.9.2": {
183
188
  "licenses": "Apache-2.0",
184
189
  "repository": "https://github.com/microsoft/TypeScript",
185
- "licenseUrl": "https://github.com/microsoft/TypeScript/raw/HEAD/LICENSE.txt"
190
+ "licenseUrl": "https://unpkg.com/typescript@5.9.2/LICENSE.txt"
186
191
  },
187
192
  "vite-tsconfig-paths@5.1.4": {
188
193
  "licenses": "MIT",
189
194
  "repository": "https://github.com/aleclarson/vite-tsconfig-paths",
190
- "licenseUrl": "https://github.com/aleclarson/vite-tsconfig-paths/raw/HEAD/LICENSE"
195
+ "licenseUrl": "https://unpkg.com/vite-tsconfig-paths@5.1.4/LICENSE"
191
196
  },
192
197
  "vite@7.1.3": {
193
198
  "licenses": "MIT",
194
199
  "repository": "https://github.com/vitejs/vite",
195
- "licenseUrl": "https://github.com/vitejs/vite/raw/HEAD/LICENSE.md"
200
+ "licenseUrl": "https://unpkg.com/vite@7.1.3/LICENSE.md"
196
201
  },
197
202
  "vitest@3.2.4": {
198
203
  "licenses": "MIT",
199
204
  "repository": "https://github.com/vitest-dev/vitest",
200
- "licenseUrl": "https://github.com/vitest-dev/vitest/raw/HEAD/LICENSE.md"
205
+ "licenseUrl": "https://unpkg.com/vitest@3.2.4/LICENSE.md"
201
206
  },
202
207
  "yargs@18.0.0": {
203
208
  "licenses": "MIT",
204
209
  "repository": "https://github.com/yargs/yargs",
205
- "licenseUrl": "https://github.com/yargs/yargs/raw/HEAD/LICENSE"
210
+ "licenseUrl": "https://unpkg.com/yargs@18.0.0/LICENSE"
206
211
  }
207
212
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cas-smartdesign/virtual-list",
3
- "version": "7.0.0",
3
+ "version": "7.0.2",
4
4
  "description": "A virtualized list element with SmartDesign look and feel.",
5
5
  "main": "dist/virtual-list-with-externals.js",
6
6
  "module": "dist/virtual-list.mjs",
@@ -8,12 +8,12 @@
8
8
  "types": "dist/virtual-list.d.ts",
9
9
  "dependencies": {
10
10
  "lit": "^3.3.1",
11
- "@cas-smartdesign/list-item": "^7.4.3"
11
+ "@cas-smartdesign/list-item": "^7.4.4"
12
12
  },
13
13
  "devDependencies": {
14
- "@cas-smartdesign/element-preview": "^0.3.0",
15
- "@cas-smartdesign/license-generator": "^1.8.0",
16
- "@cas-smartdesign/element-utils": "^1.2.0"
14
+ "@cas-smartdesign/element-preview": "^0.3.1",
15
+ "@cas-smartdesign/element-utils": "^1.2.1",
16
+ "@cas-smartdesign/license-generator": "^1.8.1"
17
17
  },
18
18
  "files": [
19
19
  "dist",
package/readme.md CHANGED
@@ -43,7 +43,7 @@ The following properties are available:
43
43
  - `selection`
44
44
  - Dispatched when one of the items is selected/deselected
45
45
  - Contains the index of the item and a `selected` flag which is when false indicates that the item is deselected
46
- - The `hasModifier` property is true if mouse wheel or ctrl/meta key is down while selection. Note that the auto scroll feature is disabled while middle mouse click.
46
+ - The `originalEvent` a mouse or keyboard event that triggered the selection event.
47
47
 
48
48
  ## Public methods
49
49