@clr/angular
Version:
Angular components for Clarity
57 lines • 2.54 kB
JavaScript
;
/*
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.HEADER_CLASS_REPLACEMENTS = exports.TEMPLATE_DATAGRID_MIGRATION_CANDIDATES = exports.TEMPLATE_INPUT_REPLACEMENTS = exports.TEMPLATE_ATTRIBUTE_REPLACEMENTS = exports.TEMPLATE_OUTPUT_REPLACEMENTS = void 0;
exports.TEMPLATE_OUTPUT_REPLACEMENTS = [
// #2249 - Wizard currentPageChanged → currentPageChange
{
old: 'clrWizardCurrentPageChanged',
new: 'clrWizardCurrentPageChange',
context: 'wizard',
},
];
exports.TEMPLATE_ATTRIBUTE_REPLACEMENTS = [
// #2101 - cds-icon: [attr.shape] → [shape], [attr.size] → [size], etc.
{ old: '[attr.shape]', new: '[shape]', context: 'cds-icon' },
{ old: '[attr.size]', new: '[size]', context: 'cds-icon' },
{ old: '[attr.dir]', new: '[dir]', context: 'cds-icon' },
{ old: '[attr.flip]', new: '[flip]', context: 'cds-icon' },
{ old: '[attr.status]', new: '[status]', context: 'cds-icon' },
{ old: '[attr.inverse]', new: '[inverse]', context: 'cds-icon' },
{ old: '[attr.badge]', new: '[badge]', context: 'cds-icon' },
{ old: '[attr.solid]', new: '[solid]', context: 'cds-icon' },
// #2267 - Popover anchor directive selector rename (beta.2)
// Matches bare attribute: clrPopoverAnchor and bound: [clrPopoverAnchor]
{ old: 'clrPopoverAnchor', new: 'clrPopoverOrigin', context: 'popover-anchor-origin' },
];
exports.TEMPLATE_INPUT_REPLACEMENTS = [
// #2022 - Badge color input rename
{
old: 'clrBadgeColor',
new: 'clrColor',
context: 'badge',
},
];
/**
* Substrings that trigger the clr-datagrid–scoped migration pass (see template-migration).
* `clrDgItemsTrackBy` alone can appear on clr-dg-items (unchanged); the pass no-ops without `<clr-datagrid`.
*/
exports.TEMPLATE_DATAGRID_MIGRATION_CANDIDATES = [
'<clr-datagrid',
'clrDgSingleSelected',
'clrDgSingleSelectedChange',
'clrDgItemsTrackBy',
];
exports.HEADER_CLASS_REPLACEMENTS = [
// #2180 - Header variant removals
{ old: 'header-4', new: 'header-3' },
{ old: 'header-5', new: 'header-3' },
{ old: 'header-6', new: 'header-1' },
{ old: 'header-7', new: 'header-2' },
];
//# sourceMappingURL=template-replacements.js.map