@progress/kendo-angular-toolbar 24.0.0-develop.1 → 24.0.0-develop.3
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/codemods/{utils.js → libs/common/src/codemods/utils.js} +53 -30
- package/codemods/{v19 → libs/toolbar/codemods/v19}/toolbar-button-showicon.js +8 -30
- package/codemods/{v19 → libs/toolbar/codemods/v19}/toolbar-button-showtext.js +8 -30
- package/fesm2022/progress-kendo-angular-toolbar.mjs +52 -52
- package/package-metadata.mjs +2 -2
- package/package.json +11 -13
|
@@ -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
|
-
|
|
39
|
-
const
|
|
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
|
|
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
|
|
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
|
+
}
|
|
@@ -3,40 +3,18 @@
|
|
|
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.aiInstructions = void 0;
|
|
31
8
|
exports.default = default_1;
|
|
32
|
-
const
|
|
33
|
-
const
|
|
9
|
+
const tslib_1 = require("tslib");
|
|
10
|
+
const codemods_1 = require("@progress/kendo-angular-common/codemods");
|
|
11
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
34
12
|
function default_1(fileInfo, api) {
|
|
35
13
|
const filePath = fileInfo.path;
|
|
36
14
|
// Handle HTML files and inline templates
|
|
37
|
-
const htmlResult = (0,
|
|
38
|
-
let result = (0,
|
|
39
|
-
result = (0,
|
|
15
|
+
const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => {
|
|
16
|
+
let result = (0, codemods_1.attributeValueUpdate)(templateContent, 'kendo-toolbar-button', 'showIcon', 'overflow', 'menu');
|
|
17
|
+
result = (0, codemods_1.attributeValueUpdate)(result, 'kendo-toolbar-button', 'showIcon', 'both', 'always');
|
|
40
18
|
return result;
|
|
41
19
|
});
|
|
42
20
|
if (filePath.endsWith('.html')) {
|
|
@@ -49,8 +27,8 @@ function default_1(fileInfo, api) {
|
|
|
49
27
|
// Handle TypeScript property transformations
|
|
50
28
|
const j = api.jscodeshift;
|
|
51
29
|
const rootSource = j(htmlResult || fileInfo.source);
|
|
52
|
-
(0,
|
|
53
|
-
(0,
|
|
30
|
+
(0, codemods_1.tsPropertyValueTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-toolbar', 'DisplayMode', 'overflow', 'menu');
|
|
31
|
+
(0, codemods_1.tsPropertyValueTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-toolbar', 'DisplayMode', 'both', 'always');
|
|
54
32
|
return rootSource.toSource({ quote: 'single' });
|
|
55
33
|
}
|
|
56
34
|
exports.aiInstructions = `The 'showIcon' property on 'kendo-toolbar-button' has changed accepted values: 'overflow' is now 'menu', and 'both' is now 'always'.
|
|
@@ -3,40 +3,18 @@
|
|
|
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.aiInstructions = void 0;
|
|
31
8
|
exports.default = default_1;
|
|
32
|
-
const
|
|
33
|
-
const
|
|
9
|
+
const tslib_1 = require("tslib");
|
|
10
|
+
const codemods_1 = require("@progress/kendo-angular-common/codemods");
|
|
11
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
34
12
|
function default_1(fileInfo, api) {
|
|
35
13
|
const filePath = fileInfo.path;
|
|
36
14
|
// Handle HTML files and inline templates
|
|
37
|
-
const htmlResult = (0,
|
|
38
|
-
let result = (0,
|
|
39
|
-
result = (0,
|
|
15
|
+
const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => {
|
|
16
|
+
let result = (0, codemods_1.attributeValueUpdate)(templateContent, 'kendo-toolbar-button', 'showText', 'overflow', 'menu');
|
|
17
|
+
result = (0, codemods_1.attributeValueUpdate)(result, 'kendo-toolbar-button', 'showText', 'both', 'always');
|
|
40
18
|
return result;
|
|
41
19
|
});
|
|
42
20
|
if (filePath.endsWith('.html')) {
|
|
@@ -49,8 +27,8 @@ function default_1(fileInfo, api) {
|
|
|
49
27
|
// Handle TypeScript property transformations
|
|
50
28
|
const j = api.jscodeshift;
|
|
51
29
|
const rootSource = j(htmlResult || fileInfo.source);
|
|
52
|
-
(0,
|
|
53
|
-
(0,
|
|
30
|
+
(0, codemods_1.tsPropertyValueTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-toolbar', 'DisplayMode', 'overflow', 'menu');
|
|
31
|
+
(0, codemods_1.tsPropertyValueTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-toolbar', 'DisplayMode', 'both', 'always');
|
|
54
32
|
return rootSource.toSource({ quote: 'single' });
|
|
55
33
|
}
|
|
56
34
|
exports.aiInstructions = `The 'showText' property on 'kendo-toolbar-button' has changed accepted values: 'overflow' is now 'menu', and 'both' is now 'always'.
|
|
@@ -26,8 +26,8 @@ const packageMetadata = {
|
|
|
26
26
|
productName: 'Kendo UI for Angular',
|
|
27
27
|
productCode: 'KENDOUIANGULAR',
|
|
28
28
|
productCodes: ['KENDOUIANGULAR'],
|
|
29
|
-
publishDate:
|
|
30
|
-
version: '24.0.0-develop.
|
|
29
|
+
publishDate: 1776940459,
|
|
30
|
+
version: '24.0.0-develop.3',
|
|
31
31
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -2179,36 +2179,36 @@ class ToolBarComponent {
|
|
|
2179
2179
|
@if (isScrollMode) {
|
|
2180
2180
|
<div class="k-toolbar-items k-toolbar-items-scroll" tabindex="-1" #scrollContainer>
|
|
2181
2181
|
@for (tool of allTools; track tool; let index = $index) {
|
|
2182
|
+
<ng-template #wrapper>
|
|
2183
|
+
<div class="k-toolbar-item">
|
|
2184
|
+
<ng-container [ngTemplateOutlet]="tool.toolbarTemplate"></ng-container>
|
|
2185
|
+
</div>
|
|
2186
|
+
</ng-template>
|
|
2182
2187
|
<ng-container
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
</div>
|
|
2193
|
-
</ng-template>
|
|
2194
|
-
</ng-container>
|
|
2195
|
-
}
|
|
2196
|
-
</div>
|
|
2188
|
+
kendoToolbarRenderer
|
|
2189
|
+
[tool]="tool"
|
|
2190
|
+
location="toolbar"
|
|
2191
|
+
[resizable]="resizable"
|
|
2192
|
+
(rendererClick)="onRendererClick($event)"
|
|
2193
|
+
[ngTemplateOutlet]="tool.isBuiltInTool ? tool.toolbarTemplate : wrapper">
|
|
2194
|
+
</ng-container>
|
|
2195
|
+
}
|
|
2196
|
+
</div>
|
|
2197
2197
|
} @else {
|
|
2198
2198
|
@for (tool of allTools; track tool; let index = $index) {
|
|
2199
|
-
<ng-container
|
|
2200
|
-
kendoToolbarRenderer
|
|
2201
|
-
[tool]="tool"
|
|
2202
|
-
location="toolbar"
|
|
2203
|
-
[resizable]="resizable"
|
|
2204
|
-
(rendererClick)="onRendererClick($event)"
|
|
2205
|
-
[ngTemplateOutlet]="tool.isBuiltInTool ? tool.toolbarTemplate : wrapper">
|
|
2206
2199
|
<ng-template #wrapper>
|
|
2207
2200
|
<div class="k-toolbar-item">
|
|
2208
2201
|
<ng-container [ngTemplateOutlet]="tool.toolbarTemplate"></ng-container>
|
|
2209
2202
|
</div>
|
|
2210
2203
|
</ng-template>
|
|
2211
|
-
|
|
2204
|
+
<ng-container
|
|
2205
|
+
kendoToolbarRenderer
|
|
2206
|
+
[tool]="tool"
|
|
2207
|
+
location="toolbar"
|
|
2208
|
+
[resizable]="resizable"
|
|
2209
|
+
(rendererClick)="onRendererClick($event)"
|
|
2210
|
+
[ngTemplateOutlet]="tool.isBuiltInTool ? tool.toolbarTemplate : wrapper">
|
|
2211
|
+
</ng-container>
|
|
2212
2212
|
}
|
|
2213
2213
|
}
|
|
2214
2214
|
@if (showOverflowSeparator) {
|
|
@@ -2317,6 +2317,9 @@ class ToolBarComponent {
|
|
|
2317
2317
|
[attr.dir]="direction === 'rtl' ? 'rtl' : null"
|
|
2318
2318
|
[attr.aria-labelledby]="overflowBtnId">
|
|
2319
2319
|
@for (tool of overflowTools; track tool; let index = $index) {
|
|
2320
|
+
<ng-template #wrapper>
|
|
2321
|
+
<ng-container [ngTemplateOutlet]="tool.sectionTemplate"></ng-container>
|
|
2322
|
+
</ng-template>
|
|
2320
2323
|
<ng-container
|
|
2321
2324
|
kendoToolbarRenderer
|
|
2322
2325
|
[tool]="tool"
|
|
@@ -2324,9 +2327,6 @@ class ToolBarComponent {
|
|
|
2324
2327
|
[resizable]="resizable"
|
|
2325
2328
|
(rendererClick)="onRendererClick($event)"
|
|
2326
2329
|
[ngTemplateOutlet]="tool.isBuiltInTool ? tool.sectionTemplate : wrapper">
|
|
2327
|
-
<ng-template #wrapper>
|
|
2328
|
-
<ng-container [ngTemplateOutlet]="tool.sectionTemplate"></ng-container>
|
|
2329
|
-
</ng-template>
|
|
2330
2330
|
</ng-container>
|
|
2331
2331
|
}
|
|
2332
2332
|
</span>
|
|
@@ -2416,36 +2416,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2416
2416
|
@if (isScrollMode) {
|
|
2417
2417
|
<div class="k-toolbar-items k-toolbar-items-scroll" tabindex="-1" #scrollContainer>
|
|
2418
2418
|
@for (tool of allTools; track tool; let index = $index) {
|
|
2419
|
+
<ng-template #wrapper>
|
|
2420
|
+
<div class="k-toolbar-item">
|
|
2421
|
+
<ng-container [ngTemplateOutlet]="tool.toolbarTemplate"></ng-container>
|
|
2422
|
+
</div>
|
|
2423
|
+
</ng-template>
|
|
2419
2424
|
<ng-container
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
</div>
|
|
2430
|
-
</ng-template>
|
|
2431
|
-
</ng-container>
|
|
2432
|
-
}
|
|
2433
|
-
</div>
|
|
2425
|
+
kendoToolbarRenderer
|
|
2426
|
+
[tool]="tool"
|
|
2427
|
+
location="toolbar"
|
|
2428
|
+
[resizable]="resizable"
|
|
2429
|
+
(rendererClick)="onRendererClick($event)"
|
|
2430
|
+
[ngTemplateOutlet]="tool.isBuiltInTool ? tool.toolbarTemplate : wrapper">
|
|
2431
|
+
</ng-container>
|
|
2432
|
+
}
|
|
2433
|
+
</div>
|
|
2434
2434
|
} @else {
|
|
2435
2435
|
@for (tool of allTools; track tool; let index = $index) {
|
|
2436
|
-
<ng-container
|
|
2437
|
-
kendoToolbarRenderer
|
|
2438
|
-
[tool]="tool"
|
|
2439
|
-
location="toolbar"
|
|
2440
|
-
[resizable]="resizable"
|
|
2441
|
-
(rendererClick)="onRendererClick($event)"
|
|
2442
|
-
[ngTemplateOutlet]="tool.isBuiltInTool ? tool.toolbarTemplate : wrapper">
|
|
2443
2436
|
<ng-template #wrapper>
|
|
2444
2437
|
<div class="k-toolbar-item">
|
|
2445
2438
|
<ng-container [ngTemplateOutlet]="tool.toolbarTemplate"></ng-container>
|
|
2446
2439
|
</div>
|
|
2447
2440
|
</ng-template>
|
|
2448
|
-
|
|
2441
|
+
<ng-container
|
|
2442
|
+
kendoToolbarRenderer
|
|
2443
|
+
[tool]="tool"
|
|
2444
|
+
location="toolbar"
|
|
2445
|
+
[resizable]="resizable"
|
|
2446
|
+
(rendererClick)="onRendererClick($event)"
|
|
2447
|
+
[ngTemplateOutlet]="tool.isBuiltInTool ? tool.toolbarTemplate : wrapper">
|
|
2448
|
+
</ng-container>
|
|
2449
2449
|
}
|
|
2450
2450
|
}
|
|
2451
2451
|
@if (showOverflowSeparator) {
|
|
@@ -2554,6 +2554,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2554
2554
|
[attr.dir]="direction === 'rtl' ? 'rtl' : null"
|
|
2555
2555
|
[attr.aria-labelledby]="overflowBtnId">
|
|
2556
2556
|
@for (tool of overflowTools; track tool; let index = $index) {
|
|
2557
|
+
<ng-template #wrapper>
|
|
2558
|
+
<ng-container [ngTemplateOutlet]="tool.sectionTemplate"></ng-container>
|
|
2559
|
+
</ng-template>
|
|
2557
2560
|
<ng-container
|
|
2558
2561
|
kendoToolbarRenderer
|
|
2559
2562
|
[tool]="tool"
|
|
@@ -2561,9 +2564,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2561
2564
|
[resizable]="resizable"
|
|
2562
2565
|
(rendererClick)="onRendererClick($event)"
|
|
2563
2566
|
[ngTemplateOutlet]="tool.isBuiltInTool ? tool.sectionTemplate : wrapper">
|
|
2564
|
-
<ng-template #wrapper>
|
|
2565
|
-
<ng-container [ngTemplateOutlet]="tool.sectionTemplate"></ng-container>
|
|
2566
|
-
</ng-template>
|
|
2567
2567
|
</ng-container>
|
|
2568
2568
|
}
|
|
2569
2569
|
</span>
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "24.0.0-develop.
|
|
10
|
+
"publishDate": 1776940459,
|
|
11
|
+
"version": "24.0.0-develop.3",
|
|
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-toolbar",
|
|
3
|
-
"version": "24.0.0-develop.
|
|
3
|
+
"version": "24.0.0-develop.3",
|
|
4
4
|
"description": "Kendo UI Angular Toolbar component - a single UI element that organizes buttons and other navigation elements",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -31,13 +31,11 @@
|
|
|
31
31
|
"19": [
|
|
32
32
|
{
|
|
33
33
|
"description": "Migrate showIcon's overflow value to menu and both value to always",
|
|
34
|
-
"file": "codemods/v19/toolbar-button-showicon.js"
|
|
35
|
-
"prompt": "false"
|
|
34
|
+
"file": "codemods/v19/toolbar-button-showicon.js"
|
|
36
35
|
},
|
|
37
36
|
{
|
|
38
37
|
"description": "Migrate showText's overflow value to menu and both value to always",
|
|
39
|
-
"file": "codemods/v19/toolbar-button-showtext.js"
|
|
40
|
-
"prompt": "false"
|
|
38
|
+
"file": "codemods/v19/toolbar-button-showtext.js"
|
|
41
39
|
}
|
|
42
40
|
]
|
|
43
41
|
}
|
|
@@ -45,7 +43,7 @@
|
|
|
45
43
|
"package": {
|
|
46
44
|
"productName": "Kendo UI for Angular",
|
|
47
45
|
"productCode": "KENDOUIANGULAR",
|
|
48
|
-
"publishDate":
|
|
46
|
+
"publishDate": 1776940459,
|
|
49
47
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
50
48
|
}
|
|
51
49
|
},
|
|
@@ -55,17 +53,17 @@
|
|
|
55
53
|
"@angular/core": "19 - 21",
|
|
56
54
|
"@angular/platform-browser": "19 - 21",
|
|
57
55
|
"@progress/kendo-licensing": "^1.11.0",
|
|
58
|
-
"@progress/kendo-angular-buttons": "24.0.0-develop.
|
|
59
|
-
"@progress/kendo-angular-common": "24.0.0-develop.
|
|
60
|
-
"@progress/kendo-angular-l10n": "24.0.0-develop.
|
|
61
|
-
"@progress/kendo-angular-icons": "24.0.0-develop.
|
|
62
|
-
"@progress/kendo-angular-indicators": "24.0.0-develop.
|
|
63
|
-
"@progress/kendo-angular-popup": "24.0.0-develop.
|
|
56
|
+
"@progress/kendo-angular-buttons": "24.0.0-develop.3",
|
|
57
|
+
"@progress/kendo-angular-common": "24.0.0-develop.3",
|
|
58
|
+
"@progress/kendo-angular-l10n": "24.0.0-develop.3",
|
|
59
|
+
"@progress/kendo-angular-icons": "24.0.0-develop.3",
|
|
60
|
+
"@progress/kendo-angular-indicators": "24.0.0-develop.3",
|
|
61
|
+
"@progress/kendo-angular-popup": "24.0.0-develop.3",
|
|
64
62
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
65
63
|
},
|
|
66
64
|
"dependencies": {
|
|
67
65
|
"tslib": "^2.3.1",
|
|
68
|
-
"@progress/kendo-angular-schematics": "24.0.0-develop.
|
|
66
|
+
"@progress/kendo-angular-schematics": "24.0.0-develop.3"
|
|
69
67
|
},
|
|
70
68
|
"schematics": "./schematics/collection.json",
|
|
71
69
|
"module": "fesm2022/progress-kendo-angular-toolbar.mjs",
|