@itwin/ecschema-locaters 5.5.0-dev.9 → 5.5.0
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
# Change Log - @itwin/ecschema-locaters
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 05 Jan 2026 17:05:53 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 5.5.0
|
|
6
|
+
Mon, 05 Jan 2026 17:05:53 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 5.4.2
|
|
11
|
+
Fri, 12 Dec 2025 14:40:14 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
14
|
+
|
|
15
|
+
## 5.4.1
|
|
16
|
+
Thu, 11 Dec 2025 21:29:31 GMT
|
|
17
|
+
|
|
18
|
+
_Version update only_
|
|
4
19
|
|
|
5
20
|
## 5.4.0
|
|
6
21
|
Tue, 02 Dec 2025 21:22:25 GMT
|
|
7
22
|
|
|
8
23
|
_Version update only_
|
|
9
24
|
|
|
25
|
+
## 5.3.4
|
|
26
|
+
Fri, 12 Dec 2025 20:11:41 GMT
|
|
27
|
+
|
|
28
|
+
_Version update only_
|
|
29
|
+
|
|
10
30
|
## 5.3.3
|
|
11
31
|
Thu, 20 Nov 2025 22:30:37 GMT
|
|
12
32
|
|
|
@@ -9,7 +9,7 @@ var jumpToCode = (function init() {
|
|
|
9
9
|
// We don't want to select elements that are direct descendants of another match
|
|
10
10
|
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
|
11
11
|
|
|
12
|
-
//
|
|
12
|
+
// Selector that finds elements on the page to which we can jump
|
|
13
13
|
var selector =
|
|
14
14
|
fileListingElements.join(', ') +
|
|
15
15
|
', ' +
|
|
@@ -27,17 +27,31 @@ var addSorting = (function() {
|
|
|
27
27
|
function onFilterInput() {
|
|
28
28
|
const searchValue = document.getElementById('fileSearch').value;
|
|
29
29
|
const rows = document.getElementsByTagName('tbody')[0].children;
|
|
30
|
+
|
|
31
|
+
// Try to create a RegExp from the searchValue. If it fails (invalid regex),
|
|
32
|
+
// it will be treated as a plain text search
|
|
33
|
+
let searchRegex;
|
|
34
|
+
try {
|
|
35
|
+
searchRegex = new RegExp(searchValue, 'i'); // 'i' for case-insensitive
|
|
36
|
+
} catch (error) {
|
|
37
|
+
searchRegex = null;
|
|
38
|
+
}
|
|
39
|
+
|
|
30
40
|
for (let i = 0; i < rows.length; i++) {
|
|
31
41
|
const row = rows[i];
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
row.style.display = '';
|
|
42
|
+
let isMatch = false;
|
|
43
|
+
|
|
44
|
+
if (searchRegex) {
|
|
45
|
+
// If a valid regex was created, use it for matching
|
|
46
|
+
isMatch = searchRegex.test(row.textContent);
|
|
38
47
|
} else {
|
|
39
|
-
|
|
48
|
+
// Otherwise, fall back to the original plain text search
|
|
49
|
+
isMatch = row.textContent
|
|
50
|
+
.toLowerCase()
|
|
51
|
+
.includes(searchValue.toLowerCase());
|
|
40
52
|
}
|
|
53
|
+
|
|
54
|
+
row.style.display = isMatch ? '' : 'none';
|
|
41
55
|
}
|
|
42
56
|
}
|
|
43
57
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/ecschema-locaters",
|
|
3
|
-
"version": "5.5.0
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"description": "EC Schema file locaters",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/cjs/ecschema-locaters.js",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"rimraf": "^6.0.1",
|
|
55
55
|
"sinon": "^17.0.2",
|
|
56
56
|
"typescript": "~5.6.2",
|
|
57
|
-
"@itwin/build-tools": "5.5.0
|
|
58
|
-
"@itwin/ecschema-metadata": "5.5.0
|
|
57
|
+
"@itwin/build-tools": "5.5.0",
|
|
58
|
+
"@itwin/ecschema-metadata": "5.5.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"glob": "^10.5.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@xmldom/xmldom": "~0.8.10"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@itwin/ecschema-metadata": "5.5.0
|
|
66
|
+
"@itwin/ecschema-metadata": "5.5.0"
|
|
67
67
|
},
|
|
68
68
|
"nyc": {
|
|
69
69
|
"extends": "./node_modules/@itwin/build-tools/.nycrc",
|