ngx-tethys 16.0.0 → 16.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.
- package/CHANGELOG.md +18 -0
- package/esm2022/version.mjs +2 -2
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-update/data/attribute-selectors.js +3 -3
- package/schematics/ng-update/data/input-names.js +1 -1
- package/schematics/ng-update/migrations/input-values.js +14 -3
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [16.0.2](https://github.com/atinc/ngx-tethys/compare/16.0.1...16.0.2) (2023-08-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **schematics:** replace two input same start location #INFR-9268 ([#2801](https://github.com/atinc/ngx-tethys/issues/2801)) ([432ce20](https://github.com/atinc/ngx-tethys/commit/432ce20965affbbbf8fe17c8144d5073275277b6)), closes [#INFR-9268](https://github.com/atinc/ngx-tethys/issues/INFR-9268)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [16.0.1](https://github.com/atinc/ngx-tethys/compare/16.0.0...16.0.1) (2023-08-24)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **schematics:** update replace two input same start #INFR-9268 ([#2798](https://github.com/atinc/ngx-tethys/issues/2798)) ([bd4996e](https://github.com/atinc/ngx-tethys/commit/bd4996e2cff71585dfcd5a649dd29eac769e0f37)), closes [#INFR-9268](https://github.com/atinc/ngx-tethys/issues/INFR-9268)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
5
23
|
# [16.0.0](https://github.com/atinc/ngx-tethys/compare/16.0.0-next.4...16.0.0) (2023-08-24)
|
|
6
24
|
|
|
7
25
|
|
package/esm2022/version.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Version } from '@angular/core';
|
|
2
|
-
export const VERSION = new Version('16.0.
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
export const VERSION = new Version('16.0.2');
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFeEMsTUFBTSxDQUFDLE1BQU0sT0FBTyxHQUFHLElBQUksT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVmVyc2lvbiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5leHBvcnQgY29uc3QgVkVSU0lPTiA9IG5ldyBWZXJzaW9uKCcxNi4wLjInKTtcbiJdfQ==
|
package/fesm2022/ngx-tethys.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-tethys.mjs","sources":["../../../src/version.ts","../../../src/ngx-tethys.ts"],"sourcesContent":["import { Version } from '@angular/core';\n\nexport const VERSION = new Version('16.0.
|
|
1
|
+
{"version":3,"file":"ngx-tethys.mjs","sources":["../../../src/version.ts","../../../src/ngx-tethys.ts"],"sourcesContent":["import { Version } from '@angular/core';\n\nexport const VERSION = new Version('16.0.2');\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;MAEa,OAAO,GAAG,IAAI,OAAO,CAAC,QAAQ;;ACF3C;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ exports.attributeSelectors = {
|
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
replace: 'thyLabel\n',
|
|
20
|
-
replaceWith: 'thyTag
|
|
20
|
+
replaceWith: 'thyTag\n'
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
replace: 'thyLabel>',
|
|
@@ -37,11 +37,11 @@ exports.attributeSelectors = {
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
replace: 'thyActionMenuSubItem=',
|
|
40
|
-
replaceWith: 'thyDirection='
|
|
40
|
+
replaceWith: 'thyDropdownSubmenu thyDirection='
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
replace: '[thyActionMenuSubItem]=',
|
|
44
|
-
replaceWith: '[thyDirection]='
|
|
44
|
+
replaceWith: 'thyDropdownSubmenu [thyDirection]='
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
replace: 'thyActionMenuItem',
|
|
@@ -40,10 +40,21 @@ class InputValuesMigration extends schematics_1.Migration {
|
|
|
40
40
|
}
|
|
41
41
|
_replaceInput(filePath, start, width, newValue) {
|
|
42
42
|
if (Object.keys(newValue).length) {
|
|
43
|
+
let lastWidth = 0;
|
|
43
44
|
for (const inputName of Object.keys(newValue)) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
if (lastWidth) {
|
|
46
|
+
// 替换的非第一个属性,之前的属性已经在替换第一个的时候删除完了,直接插入新属性
|
|
47
|
+
newValue[inputName]
|
|
48
|
+
? this.fileSystem.edit(filePath).insertRight(start + lastWidth, `${inputName}="${newValue[inputName]}" `)
|
|
49
|
+
: this.fileSystem.edit(filePath).insertRight(start + lastWidth, `${inputName} `);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
// 替换的第一个属性,删除之前的属性,插入新属性
|
|
53
|
+
newValue[inputName]
|
|
54
|
+
? this.fileSystem.edit(filePath).remove(start, width).insertRight(start, `${inputName}="${newValue[inputName]}" `)
|
|
55
|
+
: this.fileSystem.edit(filePath).remove(start, width).insertRight(start, `${inputName} `);
|
|
56
|
+
}
|
|
57
|
+
lastWidth = newValue[inputName] ? `${inputName}="${newValue[inputName]}"`.length : `${inputName}`.length;
|
|
47
58
|
}
|
|
48
59
|
}
|
|
49
60
|
else {
|
package/schematics/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "16.0.
|
|
1
|
+
export declare const VERSION = "16.0.2";
|
package/schematics/version.js
CHANGED