@progress/kendo-angular-inputs 24.0.0-develop.1 → 24.0.0-develop.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.
@@ -3,29 +3,6 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use strict";
6
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
- if (k2 === undefined) k2 = k;
8
- var desc = Object.getOwnPropertyDescriptor(m, k);
9
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
- desc = { enumerable: true, get: function() { return m[k]; } };
11
- }
12
- Object.defineProperty(o, k2, desc);
13
- }) : (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- o[k2] = m[k];
16
- }));
17
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
- Object.defineProperty(o, "default", { enumerable: true, value: v });
19
- }) : function(o, v) {
20
- o["default"] = v;
21
- });
22
- var __importStar = (this && this.__importStar) || function (mod) {
23
- if (mod && mod.__esModule) return mod;
24
- var result = {};
25
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
26
- __setModuleDefault(result, mod);
27
- return result;
28
- };
29
6
  Object.defineProperty(exports, "__esModule", { value: true });
30
7
  exports.tsInterfaceTransformer = exports.tsPropertyValueTransformer = exports.tsPropertyTransformer = exports.tsComponentPropertyRemoval = exports.attributeRemoval = exports.attributeValueUpdate = exports.attributeNameValueUpdate = exports.attributeNameUpdate = exports.eventUpdate = exports.htmlTransformer = exports.blockTextElements = void 0;
31
8
  exports.hasKendoInTemplate = hasKendoInTemplate;
@@ -35,8 +12,12 @@ exports.makePattern = makePattern;
35
12
  exports.writeInstructionMarker = writeInstructionMarker;
36
13
  exports.isApiChangeTarget = isApiChangeTarget;
37
14
  exports.isRenderingChangeTarget = isRenderingChangeTarget;
38
- const fs = __importStar(require("node:fs"));
39
- const path = __importStar(require("node:path"));
15
+ exports.executeCodemodTest = executeCodemodTest;
16
+ const tslib_1 = require("tslib");
17
+ /// <reference types="node" />
18
+ const fs = tslib_1.__importStar(require("fs"));
19
+ const os = tslib_1.__importStar(require("os"));
20
+ const path = tslib_1.__importStar(require("path"));
40
21
  exports.blockTextElements = {
41
22
  script: true,
42
23
  noscript: true,
@@ -320,12 +301,12 @@ const attributeRemoval = (templateContent, tagName, attributeName, propertyToRem
320
301
  // If no propertyToRemove is specified, remove the entire attribute
321
302
  if (!propertyToRemove) {
322
303
  // Remove bound attributes [attribute]="value"
323
- const boundAttributePattern = new RegExp(`(\\s+)\\[${escapedAttr}\\]\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)`, 'gi');
304
+ const boundAttributePattern = new RegExp(`(<${escapedTag}[^>]*?)\\s+\\[${escapedAttr}\\]\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*?>)`, 'gi');
324
305
  // Remove static attributes attribute="value"
325
- const staticAttributePattern = new RegExp(`(\\s+)${escapedAttr}\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)`, 'gi');
326
- // Apply removals
327
- let result = templateContent.replace(boundAttributePattern, '');
328
- result = result.replace(staticAttributePattern, '');
306
+ const staticAttributePattern = new RegExp(`(<${escapedTag}[^>]*?)\\s+${escapedAttr}\\s*=\\s*("(?:[^"\\\\]|\\\\.)*?"|'(?:[^'\\\\]|\\\\.)*?'|[^\\s>]+)([^>]*?>)`, 'gi');
307
+ // Apply removals - keep tag prefix and suffix, remove the attribute
308
+ let result = templateContent.replace(boundAttributePattern, '$1$3');
309
+ result = result.replace(staticAttributePattern, '$1$3');
329
310
  return result;
330
311
  }
331
312
  // Remove specific property from object literal attributes
@@ -1428,3 +1409,45 @@ function isRenderingChangeTarget(filePath) {
1428
1409
  const ext = path.extname(filePath);
1429
1410
  return ext === '.ts' || ext === '.html' || ext === '.css' || ext === '.scss' || ext === '.sass' || ext === '.less';
1430
1411
  }
1412
+ /**
1413
+ * Executes a codemod transformation and compares the result with expected output
1414
+ *
1415
+ * @param codemod - The codemod function to execute
1416
+ * @param testDir - Directory containing the test files (__dirname from test file)
1417
+ * @param exampleFileName - Name of the input file (default: 'example.ts')
1418
+ * @param expectedFileName - Name of the expected output file (default: 'expected.ts')
1419
+ * @returns Object containing the transformation result and expected content
1420
+ */
1421
+ function executeCodemodTest(codemod, testDir, exampleFileName = 'example.ts', expectedFileName = 'expected.ts') {
1422
+ const exampleFile = path.join(testDir, exampleFileName);
1423
+ const expectedFile = path.join(testDir, expectedFileName);
1424
+ const sourceCode = fs.readFileSync(exampleFile, 'utf-8');
1425
+ const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'codemod-test-'));
1426
+ const tmpFile = path.join(tmpDir, path.basename(exampleFile));
1427
+ fs.writeFileSync(tmpFile, sourceCode, 'utf-8');
1428
+ try {
1429
+ const fileInfo = {
1430
+ path: tmpFile,
1431
+ source: sourceCode
1432
+ };
1433
+ const jscodeshift = require('jscodeshift').withParser('tsx');
1434
+ const api = {
1435
+ jscodeshift,
1436
+ j: jscodeshift
1437
+ };
1438
+ const result = codemod(fileInfo, api);
1439
+ const expectedContent = fs.readFileSync(expectedFile, 'utf-8').trim();
1440
+ return {
1441
+ result: result?.trim(),
1442
+ expected: expectedContent,
1443
+ sourceCode,
1444
+ transformedSuccessfully: result !== undefined
1445
+ };
1446
+ }
1447
+ finally {
1448
+ try {
1449
+ fs.rmSync(tmpDir, { recursive: true });
1450
+ }
1451
+ catch { }
1452
+ }
1453
+ }
@@ -0,0 +1,28 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.default = default_1;
8
+ const tslib_1 = require("tslib");
9
+ const fs = tslib_1.__importStar(require("fs"));
10
+ const codemods_1 = require("@progress/kendo-angular-common/codemods");
11
+ function default_1(fileInfo, api) {
12
+ const filePath = fileInfo.path;
13
+ if (!(0, codemods_1.isApiChangeTarget)(filePath)) {
14
+ return fileInfo.source;
15
+ }
16
+ const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, codemods_1.attributeNameUpdate)(templateContent, 'kendo-colorpicker', 'closeButton', 'adaptiveCloseButtonTitle'));
17
+ if (filePath.endsWith('.html')) {
18
+ if (htmlResult && htmlResult !== fileInfo.source) {
19
+ fs.writeFileSync(filePath, htmlResult, 'utf-8');
20
+ return htmlResult;
21
+ }
22
+ return fileInfo.source;
23
+ }
24
+ const j = api.jscodeshift;
25
+ const rootSource = j(htmlResult || fileInfo.source);
26
+ (0, codemods_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-inputs', 'ColorPickerComponent', 'closeButton', 'adaptiveCloseButtonTitle');
27
+ return rootSource.toSource();
28
+ }
@@ -0,0 +1,28 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.default = default_1;
8
+ const tslib_1 = require("tslib");
9
+ const fs = tslib_1.__importStar(require("fs"));
10
+ const codemods_1 = require("@progress/kendo-angular-common/codemods");
11
+ function default_1(fileInfo, api) {
12
+ const filePath = fileInfo.path;
13
+ if (!(0, codemods_1.isApiChangeTarget)(filePath)) {
14
+ return fileInfo.source;
15
+ }
16
+ const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, codemods_1.attributeNameUpdate)(templateContent, 'kendo-colorpicker', 'subtitle', 'adaptiveSubtitle'));
17
+ if (filePath.endsWith('.html')) {
18
+ if (htmlResult && htmlResult !== fileInfo.source) {
19
+ fs.writeFileSync(filePath, htmlResult, 'utf-8');
20
+ return htmlResult;
21
+ }
22
+ return fileInfo.source;
23
+ }
24
+ const j = api.jscodeshift;
25
+ const rootSource = j(htmlResult || fileInfo.source);
26
+ (0, codemods_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-inputs', 'ColorPickerComponent', 'subtitle', 'adaptiveSubtitle');
27
+ return rootSource.toSource();
28
+ }
@@ -0,0 +1,28 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ "use strict";
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.default = default_1;
8
+ const tslib_1 = require("tslib");
9
+ const fs = tslib_1.__importStar(require("fs"));
10
+ const codemods_1 = require("@progress/kendo-angular-common/codemods");
11
+ function default_1(fileInfo, api) {
12
+ const filePath = fileInfo.path;
13
+ if (!(0, codemods_1.isApiChangeTarget)(filePath)) {
14
+ return fileInfo.source;
15
+ }
16
+ const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, codemods_1.attributeNameUpdate)(templateContent, 'kendo-colorpicker', 'title', 'adaptiveTitle'));
17
+ if (filePath.endsWith('.html')) {
18
+ if (htmlResult && htmlResult !== fileInfo.source) {
19
+ fs.writeFileSync(filePath, htmlResult, 'utf-8');
20
+ return htmlResult;
21
+ }
22
+ return fileInfo.source;
23
+ }
24
+ const j = api.jscodeshift;
25
+ const rootSource = j(htmlResult || fileInfo.source);
26
+ (0, codemods_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-inputs', 'ColorPickerComponent', 'title', 'adaptiveTitle');
27
+ return rootSource.toSource();
28
+ }
@@ -6,7 +6,7 @@
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.aiInstructions = exports.aiInstructionsHstack = exports.aiInstructionsNoColor = void 0;
8
8
  exports.default = default_1;
9
- const utils_1 = require("../utils");
9
+ const codemods_1 = require("@progress/kendo-angular-common/codemods");
10
10
  exports.aiInstructionsNoColor = `k-no-color — removed from the FlatColorPicker preview element.
11
11
  Before: <div class="k-colorpreview k-no-color">
12
12
  After: <div class="k-colorpreview">
@@ -21,16 +21,16 @@ ${exports.aiInstructionsNoColor}
21
21
 
22
22
  ${exports.aiInstructionsHstack}`;
23
23
  const classesNoColor = ['k-no-color'];
24
- const patternNoColor = (0, utils_1.makePattern)(classesNoColor);
24
+ const patternNoColor = (0, codemods_1.makePattern)(classesNoColor);
25
25
  const classesHstack = ['k-hstack'];
26
- const patternHstack = (0, utils_1.makePattern)(classesHstack);
26
+ const patternHstack = (0, codemods_1.makePattern)(classesHstack);
27
27
  function default_1(fileInfo) {
28
- if ((0, utils_1.isRenderingChangeTarget)(fileInfo.path)) {
28
+ if ((0, codemods_1.isRenderingChangeTarget)(fileInfo.path)) {
29
29
  if (patternNoColor.test(fileInfo.source)) {
30
- (0, utils_1.writeInstructionMarker)(exports.aiInstructionsNoColor, __filename, fileInfo.path);
30
+ (0, codemods_1.writeInstructionMarker)(exports.aiInstructionsNoColor, __filename, fileInfo.path);
31
31
  }
32
32
  if (patternHstack.test(fileInfo.source)) {
33
- (0, utils_1.writeInstructionMarker)(exports.aiInstructionsHstack, __filename, fileInfo.path);
33
+ (0, codemods_1.writeInstructionMarker)(exports.aiInstructionsHstack, __filename, fileInfo.path);
34
34
  }
35
35
  }
36
36
  return fileInfo.source;
@@ -583,8 +583,8 @@ const packageMetadata = {
583
583
  productName: 'Kendo UI for Angular',
584
584
  productCode: 'KENDOUIANGULAR',
585
585
  productCodes: ['KENDOUIANGULAR'],
586
- publishDate: 1776779011,
587
- version: '24.0.0-develop.1',
586
+ publishDate: 1776936110,
587
+ version: '24.0.0-develop.2',
588
588
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
589
589
  };
590
590
 
@@ -19452,7 +19452,7 @@ class FormComponent {
19452
19452
  @if (showLicenseWatermark) {
19453
19453
  <div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
19454
19454
  }
19455
- `, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]", inputs: ["licenseMessage"] }] });
19455
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay], kendo-watermark-overlay", inputs: ["licenseMessage"] }] });
19456
19456
  }
19457
19457
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: FormComponent, decorators: [{
19458
19458
  type: Component,
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1776779011,
11
- "version": "24.0.0-develop.1",
10
+ "publishDate": 1776936110,
11
+ "version": "24.0.0-develop.2",
12
12
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-inputs",
3
- "version": "24.0.0-develop.1",
3
+ "version": "24.0.0-develop.2",
4
4
  "description": "Kendo UI for Angular Inputs Package - Everything you need to build professional form functionality (Checkbox, ColorGradient, ColorPalette, ColorPicker, FlatColorPicker, FormField, MaskedTextBox, NumericTextBox, RadioButton, RangeSlider, Slider, Switch, TextArea, and TextBox Components)",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -34,18 +34,15 @@
34
34
  "19": [
35
35
  {
36
36
  "description": "The ColorPicker's closeButton input property is renamed to adaptiveCloseButtonTitle.",
37
- "file": "codemods/v19/colorpicker-closebuttontitle.js",
38
- "prompt": "false"
37
+ "file": "codemods/v19/colorpicker-closebuttontitle.js"
39
38
  },
40
39
  {
41
40
  "description": "The ColorPicker's title input property is renamed to adaptiveTitle.",
42
- "file": "codemods/v19/colorpicker-title.js",
43
- "prompt": "false"
41
+ "file": "codemods/v19/colorpicker-title.js"
44
42
  },
45
43
  {
46
44
  "description": "The ColorPicker's subtitle input property is renamed to adaptiveSubtitle.",
47
- "file": "codemods/v19/colorpicker-subtitle.js",
48
- "prompt": "false"
45
+ "file": "codemods/v19/colorpicker-subtitle.js"
49
46
  },
50
47
  {
51
48
  "description": "The Inputs components have rendering changes that may affect custom styling.",
@@ -58,7 +55,7 @@
58
55
  "package": {
59
56
  "productName": "Kendo UI for Angular",
60
57
  "productCode": "KENDOUIANGULAR",
61
- "publishDate": 1776779011,
58
+ "publishDate": 1776936110,
62
59
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
63
60
  }
64
61
  },
@@ -70,20 +67,20 @@
70
67
  "@angular/platform-browser": "19 - 21",
71
68
  "@progress/kendo-drawing": "^1.24.1",
72
69
  "@progress/kendo-licensing": "^1.11.0",
73
- "@progress/kendo-angular-buttons": "24.0.0-develop.1",
74
- "@progress/kendo-angular-common": "24.0.0-develop.1",
75
- "@progress/kendo-angular-utils": "24.0.0-develop.1",
76
- "@progress/kendo-angular-navigation": "24.0.0-develop.1",
77
- "@progress/kendo-angular-dialog": "24.0.0-develop.1",
78
- "@progress/kendo-angular-intl": "24.0.0-develop.1",
79
- "@progress/kendo-angular-l10n": "24.0.0-develop.1",
80
- "@progress/kendo-angular-popup": "24.0.0-develop.1",
81
- "@progress/kendo-angular-icons": "24.0.0-develop.1",
70
+ "@progress/kendo-angular-buttons": "24.0.0-develop.2",
71
+ "@progress/kendo-angular-common": "24.0.0-develop.2",
72
+ "@progress/kendo-angular-utils": "24.0.0-develop.2",
73
+ "@progress/kendo-angular-navigation": "24.0.0-develop.2",
74
+ "@progress/kendo-angular-dialog": "24.0.0-develop.2",
75
+ "@progress/kendo-angular-intl": "24.0.0-develop.2",
76
+ "@progress/kendo-angular-l10n": "24.0.0-develop.2",
77
+ "@progress/kendo-angular-popup": "24.0.0-develop.2",
78
+ "@progress/kendo-angular-icons": "24.0.0-develop.2",
82
79
  "rxjs": "^6.5.3 || ^7.0.0"
83
80
  },
84
81
  "dependencies": {
85
82
  "tslib": "^2.3.1",
86
- "@progress/kendo-angular-schematics": "24.0.0-develop.1",
83
+ "@progress/kendo-angular-schematics": "24.0.0-develop.2",
87
84
  "@progress/kendo-common": "^1.0.1",
88
85
  "@progress/kendo-draggable": "^3.0.0",
89
86
  "@progress/kendo-inputs-common": "^3.1.0"
@@ -1,50 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
- if (k2 === undefined) k2 = k;
8
- var desc = Object.getOwnPropertyDescriptor(m, k);
9
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
- desc = { enumerable: true, get: function() { return m[k]; } };
11
- }
12
- Object.defineProperty(o, k2, desc);
13
- }) : (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- o[k2] = m[k];
16
- }));
17
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
- Object.defineProperty(o, "default", { enumerable: true, value: v });
19
- }) : function(o, v) {
20
- o["default"] = v;
21
- });
22
- var __importStar = (this && this.__importStar) || function (mod) {
23
- if (mod && mod.__esModule) return mod;
24
- var result = {};
25
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
26
- __setModuleDefault(result, mod);
27
- return result;
28
- };
29
- Object.defineProperty(exports, "__esModule", { value: true });
30
- exports.default = default_1;
31
- const fs = __importStar(require("fs"));
32
- const utils_1 = require("../utils");
33
- function default_1(fileInfo, api) {
34
- const filePath = fileInfo.path;
35
- if (!(0, utils_1.isApiChangeTarget)(filePath)) {
36
- return fileInfo.source;
37
- }
38
- const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-colorpicker', 'closeButton', 'adaptiveCloseButtonTitle'));
39
- if (filePath.endsWith('.html')) {
40
- if (htmlResult && htmlResult !== fileInfo.source) {
41
- fs.writeFileSync(filePath, htmlResult, 'utf-8');
42
- return htmlResult;
43
- }
44
- return fileInfo.source;
45
- }
46
- const j = api.jscodeshift;
47
- const rootSource = j(htmlResult || fileInfo.source);
48
- (0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-inputs', 'ColorPickerComponent', 'closeButton', 'adaptiveCloseButtonTitle');
49
- return rootSource.toSource();
50
- }
@@ -1,50 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
- if (k2 === undefined) k2 = k;
8
- var desc = Object.getOwnPropertyDescriptor(m, k);
9
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
- desc = { enumerable: true, get: function() { return m[k]; } };
11
- }
12
- Object.defineProperty(o, k2, desc);
13
- }) : (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- o[k2] = m[k];
16
- }));
17
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
- Object.defineProperty(o, "default", { enumerable: true, value: v });
19
- }) : function(o, v) {
20
- o["default"] = v;
21
- });
22
- var __importStar = (this && this.__importStar) || function (mod) {
23
- if (mod && mod.__esModule) return mod;
24
- var result = {};
25
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
26
- __setModuleDefault(result, mod);
27
- return result;
28
- };
29
- Object.defineProperty(exports, "__esModule", { value: true });
30
- exports.default = default_1;
31
- const fs = __importStar(require("fs"));
32
- const utils_1 = require("../utils");
33
- function default_1(fileInfo, api) {
34
- const filePath = fileInfo.path;
35
- if (!(0, utils_1.isApiChangeTarget)(filePath)) {
36
- return fileInfo.source;
37
- }
38
- const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-colorpicker', 'subtitle', 'adaptiveSubtitle'));
39
- if (filePath.endsWith('.html')) {
40
- if (htmlResult && htmlResult !== fileInfo.source) {
41
- fs.writeFileSync(filePath, htmlResult, 'utf-8');
42
- return htmlResult;
43
- }
44
- return fileInfo.source;
45
- }
46
- const j = api.jscodeshift;
47
- const rootSource = j(htmlResult || fileInfo.source);
48
- (0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-inputs', 'ColorPickerComponent', 'subtitle', 'adaptiveSubtitle');
49
- return rootSource.toSource();
50
- }
@@ -1,50 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
- if (k2 === undefined) k2 = k;
8
- var desc = Object.getOwnPropertyDescriptor(m, k);
9
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
- desc = { enumerable: true, get: function() { return m[k]; } };
11
- }
12
- Object.defineProperty(o, k2, desc);
13
- }) : (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- o[k2] = m[k];
16
- }));
17
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
- Object.defineProperty(o, "default", { enumerable: true, value: v });
19
- }) : function(o, v) {
20
- o["default"] = v;
21
- });
22
- var __importStar = (this && this.__importStar) || function (mod) {
23
- if (mod && mod.__esModule) return mod;
24
- var result = {};
25
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
26
- __setModuleDefault(result, mod);
27
- return result;
28
- };
29
- Object.defineProperty(exports, "__esModule", { value: true });
30
- exports.default = default_1;
31
- const fs = __importStar(require("fs"));
32
- const utils_1 = require("../utils");
33
- function default_1(fileInfo, api) {
34
- const filePath = fileInfo.path;
35
- if (!(0, utils_1.isApiChangeTarget)(filePath)) {
36
- return fileInfo.source;
37
- }
38
- const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-colorpicker', 'title', 'adaptiveTitle'));
39
- if (filePath.endsWith('.html')) {
40
- if (htmlResult && htmlResult !== fileInfo.source) {
41
- fs.writeFileSync(filePath, htmlResult, 'utf-8');
42
- return htmlResult;
43
- }
44
- return fileInfo.source;
45
- }
46
- const j = api.jscodeshift;
47
- const rootSource = j(htmlResult || fileInfo.source);
48
- (0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-inputs', 'ColorPickerComponent', 'title', 'adaptiveTitle');
49
- return rootSource.toSource();
50
- }