@itwin/ecschema-locaters 3.0.0-dev.98 → 3.0.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,6 +1,89 @@
1
1
  # Change Log - @itwin/ecschema-locaters
2
2
 
3
- This log was last generated on Tue, 21 Sep 2021 21:06:40 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 24 Jan 2022 14:00:52 GMT and should not be manually modified.
4
+
5
+ ## 3.0.0
6
+ Mon, 24 Jan 2022 14:00:52 GMT
7
+
8
+ ### Updates
9
+
10
+ - Upgrade target to ES2019
11
+ - rename to @itwin/ecschema-locaters
12
+
13
+ ## 2.19.28
14
+ Wed, 12 Jan 2022 14:52:38 GMT
15
+
16
+ _Version update only_
17
+
18
+ ## 2.19.27
19
+ Wed, 05 Jan 2022 20:07:20 GMT
20
+
21
+ _Version update only_
22
+
23
+ ## 2.19.26
24
+ Wed, 08 Dec 2021 20:54:52 GMT
25
+
26
+ _Version update only_
27
+
28
+ ## 2.19.25
29
+ Fri, 03 Dec 2021 20:05:49 GMT
30
+
31
+ _Version update only_
32
+
33
+ ## 2.19.24
34
+ Mon, 29 Nov 2021 18:44:31 GMT
35
+
36
+ _Version update only_
37
+
38
+ ## 2.19.23
39
+ Mon, 22 Nov 2021 20:41:39 GMT
40
+
41
+ _Version update only_
42
+
43
+ ## 2.19.22
44
+ Wed, 17 Nov 2021 01:23:26 GMT
45
+
46
+ _Version update only_
47
+
48
+ ## 2.19.21
49
+ Wed, 10 Nov 2021 10:58:24 GMT
50
+
51
+ _Version update only_
52
+
53
+ ## 2.19.20
54
+ Fri, 29 Oct 2021 16:14:22 GMT
55
+
56
+ _Version update only_
57
+
58
+ ## 2.19.19
59
+ Mon, 25 Oct 2021 16:16:25 GMT
60
+
61
+ _Version update only_
62
+
63
+ ## 2.19.18
64
+ Thu, 21 Oct 2021 20:59:44 GMT
65
+
66
+ _Version update only_
67
+
68
+ ## 2.19.17
69
+ Thu, 14 Oct 2021 21:19:43 GMT
70
+
71
+ _Version update only_
72
+
73
+ ## 2.19.16
74
+ Mon, 11 Oct 2021 17:37:46 GMT
75
+
76
+ _Version update only_
77
+
78
+ ## 2.19.15
79
+ Fri, 08 Oct 2021 16:44:23 GMT
80
+
81
+ _Version update only_
82
+
83
+ ## 2.19.14
84
+ Fri, 01 Oct 2021 13:07:03 GMT
85
+
86
+ _Version update only_
4
87
 
5
88
  ## 2.19.13
6
89
  Tue, 21 Sep 2021 21:06:40 GMT
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright © 2017-2021 Bentley Systems, Incorporated. All rights reserved.
3
+ Copyright © 2017-2022 Bentley Systems, Incorporated. All rights reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
@@ -63,6 +63,14 @@ var jumpToCode = (function init() {
63
63
  }
64
64
 
65
65
  return function jump(event) {
66
+ if (
67
+ document.getElementById('fileSearch') === document.activeElement &&
68
+ document.activeElement != null
69
+ ) {
70
+ // if we're currently focused on the search input, we don't want to navigate
71
+ return;
72
+ }
73
+
66
74
  switch (event.which) {
67
75
  case 78: // n
68
76
  case 74: // j
@@ -24,6 +24,31 @@ var addSorting = (function() {
24
24
  return getTableHeader().querySelectorAll('th')[n];
25
25
  }
26
26
 
27
+ function onFilterInput() {
28
+ const searchValue = document.getElementById('fileSearch').value;
29
+ const rows = document.getElementsByTagName('tbody')[0].children;
30
+ for (let i = 0; i < rows.length; i++) {
31
+ const row = rows[i];
32
+ if (
33
+ row.textContent
34
+ .toLowerCase()
35
+ .includes(searchValue.toLowerCase())
36
+ ) {
37
+ row.style.display = '';
38
+ } else {
39
+ row.style.display = 'none';
40
+ }
41
+ }
42
+ }
43
+
44
+ // loads the search box
45
+ function addSearchBox() {
46
+ var template = document.getElementById('filterTemplate');
47
+ var templateClone = template.content.cloneNode(true);
48
+ templateClone.getElementById('fileSearch').oninput = onFilterInput;
49
+ template.parentElement.appendChild(templateClone);
50
+ }
51
+
27
52
  // loads all columns
28
53
  function loadColumns() {
29
54
  var colNodes = getTableHeader().querySelectorAll('th'),
@@ -162,6 +187,7 @@ var addSorting = (function() {
162
187
  }
163
188
  cols = loadColumns();
164
189
  loadData();
190
+ addSearchBox();
165
191
  addSortIndicators();
166
192
  enableUI();
167
193
  };
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@itwin/ecschema-locaters",
3
- "version": "3.0.0-dev.98",
3
+ "version": "3.0.0",
4
4
  "description": "EC Schema file locaters",
5
5
  "license": "MIT",
6
6
  "main": "lib/cjs/ecschema-locaters.js",
7
7
  "typings": "lib/cjs/ecschema-locaters",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "https://github.com/imodeljs/imodeljs/tree/master/core/ecschema-locaters"
10
+ "url": "https://github.com/iTwin/itwinjs-core/tree/master/core/ecschema-locaters"
11
11
  },
12
12
  "keywords": [
13
13
  "Bentley",
14
14
  "iModel",
15
- "iModel.js",
15
+ "iTwin.js",
16
16
  "EC"
17
17
  ],
18
18
  "author": {
@@ -20,9 +20,9 @@
20
20
  "url": "http://www.bentley.com"
21
21
  },
22
22
  "devDependencies": {
23
- "@itwin/build-tools": "3.0.0-dev.98",
24
- "@itwin/ecschema-metadata": "3.0.0-dev.98",
25
- "@itwin/eslint-plugin": "3.0.0-dev.98",
23
+ "@itwin/build-tools": "3.0.0",
24
+ "@itwin/ecschema-metadata": "3.0.0",
25
+ "@itwin/eslint-plugin": "3.0.0",
26
26
  "@types/chai": "^4.1.4",
27
27
  "@types/chai-as-promised": "^7",
28
28
  "@types/glob": "^5.0.35",
@@ -32,7 +32,7 @@
32
32
  "@xmldom/xmldom": "^0.7.0",
33
33
  "chai": "^4.1.2",
34
34
  "chai-as-promised": "^7",
35
- "cpx": "^1.5.0",
35
+ "cpx2": "^3.0.0",
36
36
  "eslint": "^7.11.0",
37
37
  "mocha": "^8.3.2",
38
38
  "nyc": "^15.1.0",
@@ -43,7 +43,7 @@
43
43
  "glob": "^7.1.2"
44
44
  },
45
45
  "peerDependencies": {
46
- "@itwin/ecschema-metadata": "^3.0.0-dev.98"
46
+ "@itwin/ecschema-metadata": "^3.0.0"
47
47
  },
48
48
  "nyc": {
49
49
  "extends": "./node_modules/@itwin/build-tools/.nycrc",
@@ -70,5 +70,6 @@
70
70
  "docs": "betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/ecschema-locaters/file.json --tsIndexFile=./ecschema-locaters.ts --onlyJson",
71
71
  "cover": "nyc npm -s test",
72
72
  "start": "npm run -s lint && npm run -s clean && npm run -s build && npm run -s test & npm run -s cover & npm run -s docs"
73
- }
73
+ },
74
+ "readme": "# @itwin/ecschema-locaters\r\n\r\nCopyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.\r\n\r\n## Description\r\n\r\nThe __@itwin/ecschema-locaters__ package contains classes for locating and loading EC schema files from the file system.\r\n\r\n## Documentation\r\n\r\nSee the [iTwin.js](https://www.itwinjs.org) documentation for more information.\r\n"
74
75
  }