@taiga-ui/cdk 4.19.0-canary.b6fbaa5 → 4.19.0-canary.f57082a

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.
@@ -1 +1 @@
1
- export declare const TUI_VERSION = "4.19.0-canary.b6fbaa5";
1
+ export declare const TUI_VERSION = "4.19.0-canary.f57082a";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TUI_VERSION = void 0;
4
- exports.TUI_VERSION = '4.19.0-canary.b6fbaa5';
4
+ exports.TUI_VERSION = '4.19.0-canary.f57082a';
@@ -1,2 +1,2 @@
1
- export const TUI_VERSION = '4.19.0-canary.b6fbaa5';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Nkay9jb25zdGFudHMvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxXQUFXLEdBQUcsdUJBQXVCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgVFVJX1ZFUlNJT04gPSAnNC4xOS4wLWNhbmFyeS5iNmZiYWE1JztcbiJdfQ==
1
+ export const TUI_VERSION = '4.19.0-canary.f57082a';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Nkay9jb25zdGFudHMvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxXQUFXLEdBQUcsdUJBQXVCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgVFVJX1ZFUlNJT04gPSAnNC4xOS4wLWNhbmFyeS5mNTcwODJhJztcbiJdfQ==
@@ -210,7 +210,7 @@ const TUI_USED_ICONS = [
210
210
  '@tui.clock',
211
211
  ];
212
212
 
213
- const TUI_VERSION = '4.19.0-canary.b6fbaa5';
213
+ const TUI_VERSION = '4.19.0-canary.f57082a';
214
214
 
215
215
  /**
216
216
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-constants.mjs","sources":["../../../projects/cdk/constants/allow-signal-writes.ts","../../../projects/cdk/constants/empty.ts","../../../projects/cdk/constants/handlers.ts","../../../projects/cdk/constants/matchers.ts","../../../projects/cdk/constants/regexp.ts","../../../projects/cdk/constants/svg-node-filter.ts","../../../projects/cdk/constants/unicode-chars.ts","../../../projects/cdk/constants/used-icons.ts","../../../projects/cdk/constants/version.ts","../../../projects/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["import type {CreateEffectOptions} from '@angular/core';\nimport {VERSION} from '@angular/core';\n\nexport const TUI_ALLOW_SIGNAL_WRITES: CreateEffectOptions =\n parseInt(VERSION.major, 10) >= 19 ? {} : {allowSignalWrites: true};\n","import {QueryList} from '@angular/core';\n\nconst rect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n x: 0,\n y: 0,\n} as const;\n\n/**\n * For type safety when using @ContentChildren and @ViewChildren\n *\n * NOTE: Be careful subscribing to 'changes'\n */\nexport const EMPTY_QUERY = new QueryList<any>();\nexport const EMPTY_ARRAY: [] = [];\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\nexport const EMPTY_CLIENT_RECT: DOMRect = {\n ...rect,\n toJSON: () => rect,\n};\n","/**\n * Handler that always returns `false`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const TUI_FALSE_HANDLER = (): false => false;\n\n/**\n * Handler that always returns `true`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const TUI_TRUE_HANDLER = (): true => true;\n","import type {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = String,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = String,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n","export const TUI_DIGIT_REGEXP = /\\d/;\nexport const TUI_NON_DIGIT_REGEXP = /\\D/;\nexport const TUI_NON_DIGITS_REGEXP = /\\D+/g;\n","export const svgNodeFilter: Exclude<NodeFilter, (node: Node) => number> = {\n acceptNode(node: Node): number {\n return 'ownerSVGElement' in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT;\n },\n};\n","/**\n * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.\n */\nexport const CHAR_NO_BREAK_SPACE = '\\u00A0';\n\n/**\n * {@link https://unicode-table.com/en/2013/ EN dash}\n * is used to indicate a range of numbers or a span of time.\n * @example 2006–2022\n * ___\n * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EN_DASH = '\\u2013';\n\n/**\n * {@link https://unicode-table.com/en/2014/ EM dash}\n * is used to mark a break in a sentence.\n * @example Taiga UI — powerful set of open source components for Angular\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EM_DASH = '\\u2014';\n\n/**\n * {@link https://unicode-table.com/en/00AB/ Left-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_LAQUO = '\\u00AB';\n\n/**\n * {@link https://unicode-table.com/en/00BB/ Right-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_RAQUO = '\\u00BB';\n\n/**\n * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}\n * is used to combine words.\n * @example well-behaved\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!\n */\nexport const CHAR_HYPHEN = '\\u002D';\n\n/**\n * {@link https://unicode-table.com/en/2212/ Minus}\n * is used as math operator symbol or before negative digits.\n * ---\n * Can be used as `&minus;`. Don't confuse with {@link CHAR_HYPHEN}\n */\nexport const CHAR_MINUS = '\\u2212';\n\n/**\n * {@link https://unicode-table.com/en/002B/ Plus}\n */\nexport const CHAR_PLUS = '\\u002B';\n\n/**\n * {@link https://unicode-table.com/en/2022/ Bullet}.\n */\nexport const CHAR_BULLET = '\\u2022';\n\n/**\n * {@link https://unicode-table.com/en/2026/ Suspension points}.\n */\nexport const CHAR_ELLIPSIS = '\\u2026';\n\n/**\n * {@link https://unicode-table.com/en/00A4/ Suspension points}.\n */\nexport const CHAR_CURRENCY_SIGN = '\\u00A4';\n\n/**\n * {@link https://unicode-table.com/en/200b/ Suspension points}.\n */\nexport const CHAR_ZERO_WIDTH_SPACE = '\\u200B';\n","/**\n * @description:\n * AUTOGENERATED\n *\n * Array of icons used in taiga-ui components\n */\nexport const TUI_USED_ICONS = [\n '@tui.mir',\n '@tui.visa',\n '@tui.electron',\n '@tui.mastercard',\n '@tui.maestro',\n '@tui.amex',\n '@tui.diners-club',\n '@tui.discover',\n '@tui.humo',\n '@tui.jcb',\n '@tui.ru-pay',\n '@tui.union-pay',\n '@tui.uzcard',\n '@tui.verve',\n '@tui.external-link',\n '@tui.search',\n '@tui.sun',\n '@tui.moon',\n '@tui.code',\n '@tui.menu',\n '@tui.copy',\n '@tui.check',\n '@tui.link',\n '@tui.languages',\n '@tui.eye-off',\n '@tui.eye',\n '@tui.grip-vertical',\n '@tui.chevron-up',\n '@tui.chevron-down',\n '@tui.chevrons-up-down',\n '@tui.info',\n '@tui.circle-check',\n '@tui.circle-x',\n '@tui.circle-alert',\n '@tui.circle-help',\n '@tui.x',\n '@tui.chevron-right',\n '@tui.ellipsis',\n '@tui.chevron-left',\n '@tui.minus',\n '@tui.file',\n '@tui.trash',\n '@tui.plus',\n '@tui.phone',\n '@tui.heart',\n '@tui.heart-filled',\n '@tui.star',\n '@tui.calendar',\n '@tui.rotate-ccw-square',\n '@tui.arrow-left',\n '@tui.arrow-right',\n '@tui.minimize',\n '@tui.filter',\n '@tui.layout-grid',\n '@tui.move-up-right',\n '@tui.move-right',\n '@tui.move-down-right',\n '@tui.move-down',\n '@tui.move-down-left',\n '@tui.move-left',\n '@tui.move-up-left',\n '@tui.move-up',\n '@tui.clock',\n] as const;\n","export const TUI_VERSION = '4.19.0-canary.b6fbaa5';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAGa,MAAA,uBAAuB,GAChC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAC,iBAAiB,EAAE,IAAI;;ACFrE,MAAM,IAAI,GAAG;AACT,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,GAAG,EAAE,CAAC;AACN,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,CAAC,EAAE,CAAC;AACJ,IAA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f,wBAAwB;IACxB,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;IACf,aAAa;IACb,kBAAkB;IAClB,oBAAoB;IACpB,iBAAiB;IACjB,sBAAsB;IACtB,gBAAgB;IAChB,qBAAqB;IACrB,gBAAgB;IAChB,mBAAmB;IACnB,cAAc;IACd,YAAY;;;ACrET,MAAM,WAAW,GAAG;;ACA3B;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-constants.mjs","sources":["../../../projects/cdk/constants/allow-signal-writes.ts","../../../projects/cdk/constants/empty.ts","../../../projects/cdk/constants/handlers.ts","../../../projects/cdk/constants/matchers.ts","../../../projects/cdk/constants/regexp.ts","../../../projects/cdk/constants/svg-node-filter.ts","../../../projects/cdk/constants/unicode-chars.ts","../../../projects/cdk/constants/used-icons.ts","../../../projects/cdk/constants/version.ts","../../../projects/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["import type {CreateEffectOptions} from '@angular/core';\nimport {VERSION} from '@angular/core';\n\nexport const TUI_ALLOW_SIGNAL_WRITES: CreateEffectOptions =\n parseInt(VERSION.major, 10) >= 19 ? {} : {allowSignalWrites: true};\n","import {QueryList} from '@angular/core';\n\nconst rect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n x: 0,\n y: 0,\n} as const;\n\n/**\n * For type safety when using @ContentChildren and @ViewChildren\n *\n * NOTE: Be careful subscribing to 'changes'\n */\nexport const EMPTY_QUERY = new QueryList<any>();\nexport const EMPTY_ARRAY: [] = [];\nexport const EMPTY_FUNCTION: (...args: any[]) => void = () => {};\nexport const EMPTY_CLIENT_RECT: DOMRect = {\n ...rect,\n toJSON: () => rect,\n};\n","/**\n * Handler that always returns `false`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const TUI_FALSE_HANDLER = (): false => false;\n\n/**\n * Handler that always returns `true`.\n */\n// eslint-disable-next-line no-restricted-syntax\nexport const TUI_TRUE_HANDLER = (): true => true;\n","import type {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n\n/**\n * Default handler for matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_DEFAULT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = String,\n): boolean => stringify(item).toLowerCase().includes(search.toLowerCase());\n\n/**\n * Default handler for strict matching stringified version of an item and a search query\n * @param item arbitrary element to match with a string\n * @param search search query\n * @param stringify handler to turn item into a string\n */\nexport const TUI_STRICT_MATCHER = <T>(\n item: T,\n search: string,\n stringify: TuiHandler<T, string> = String,\n): boolean => stringify(item).toLowerCase() === search.toLowerCase();\n\n/**\n * Default handler to match equality of two elements\n * ATTENTION: considers two empty arrays equal\n *\n * @param item1 first element\n * @param item2 second element\n */\nexport const TUI_DEFAULT_IDENTITY_MATCHER: TuiIdentityMatcher<unknown> = (item1, item2) =>\n item1 === item2 || bothEmpty(item1, item2);\n","export const TUI_DIGIT_REGEXP = /\\d/;\nexport const TUI_NON_DIGIT_REGEXP = /\\D/;\nexport const TUI_NON_DIGITS_REGEXP = /\\D+/g;\n","export const svgNodeFilter: Exclude<NodeFilter, (node: Node) => number> = {\n acceptNode(node: Node): number {\n return 'ownerSVGElement' in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT;\n },\n};\n","/**\n * {@link https://unicode-table.com/en/00A0/ Non-breaking space}.\n */\nexport const CHAR_NO_BREAK_SPACE = '\\u00A0';\n\n/**\n * {@link https://unicode-table.com/en/2013/ EN dash}\n * is used to indicate a range of numbers or a span of time.\n * @example 2006–2022\n * ___\n * Don't confuse with {@link CHAR_EM_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EN_DASH = '\\u2013';\n\n/**\n * {@link https://unicode-table.com/en/2014/ EM dash}\n * is used to mark a break in a sentence.\n * @example Taiga UI — powerful set of open source components for Angular\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_HYPHEN}!\n */\nexport const CHAR_EM_DASH = '\\u2014';\n\n/**\n * {@link https://unicode-table.com/en/00AB/ Left-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_LAQUO = '\\u00AB';\n\n/**\n * {@link https://unicode-table.com/en/00BB/ Right-Pointing Double Angle Quotation Mark}\n */\nexport const CHAR_RAQUO = '\\u00BB';\n\n/**\n * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}\n * is used to combine words.\n * @example well-behaved\n * ___\n * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!\n */\nexport const CHAR_HYPHEN = '\\u002D';\n\n/**\n * {@link https://unicode-table.com/en/2212/ Minus}\n * is used as math operator symbol or before negative digits.\n * ---\n * Can be used as `&minus;`. Don't confuse with {@link CHAR_HYPHEN}\n */\nexport const CHAR_MINUS = '\\u2212';\n\n/**\n * {@link https://unicode-table.com/en/002B/ Plus}\n */\nexport const CHAR_PLUS = '\\u002B';\n\n/**\n * {@link https://unicode-table.com/en/2022/ Bullet}.\n */\nexport const CHAR_BULLET = '\\u2022';\n\n/**\n * {@link https://unicode-table.com/en/2026/ Suspension points}.\n */\nexport const CHAR_ELLIPSIS = '\\u2026';\n\n/**\n * {@link https://unicode-table.com/en/00A4/ Suspension points}.\n */\nexport const CHAR_CURRENCY_SIGN = '\\u00A4';\n\n/**\n * {@link https://unicode-table.com/en/200b/ Suspension points}.\n */\nexport const CHAR_ZERO_WIDTH_SPACE = '\\u200B';\n","/**\n * @description:\n * AUTOGENERATED\n *\n * Array of icons used in taiga-ui components\n */\nexport const TUI_USED_ICONS = [\n '@tui.mir',\n '@tui.visa',\n '@tui.electron',\n '@tui.mastercard',\n '@tui.maestro',\n '@tui.amex',\n '@tui.diners-club',\n '@tui.discover',\n '@tui.humo',\n '@tui.jcb',\n '@tui.ru-pay',\n '@tui.union-pay',\n '@tui.uzcard',\n '@tui.verve',\n '@tui.external-link',\n '@tui.search',\n '@tui.sun',\n '@tui.moon',\n '@tui.code',\n '@tui.menu',\n '@tui.copy',\n '@tui.check',\n '@tui.link',\n '@tui.languages',\n '@tui.eye-off',\n '@tui.eye',\n '@tui.grip-vertical',\n '@tui.chevron-up',\n '@tui.chevron-down',\n '@tui.chevrons-up-down',\n '@tui.info',\n '@tui.circle-check',\n '@tui.circle-x',\n '@tui.circle-alert',\n '@tui.circle-help',\n '@tui.x',\n '@tui.chevron-right',\n '@tui.ellipsis',\n '@tui.chevron-left',\n '@tui.minus',\n '@tui.file',\n '@tui.trash',\n '@tui.plus',\n '@tui.phone',\n '@tui.heart',\n '@tui.heart-filled',\n '@tui.star',\n '@tui.calendar',\n '@tui.rotate-ccw-square',\n '@tui.arrow-left',\n '@tui.arrow-right',\n '@tui.minimize',\n '@tui.filter',\n '@tui.layout-grid',\n '@tui.move-up-right',\n '@tui.move-right',\n '@tui.move-down-right',\n '@tui.move-down',\n '@tui.move-down-left',\n '@tui.move-left',\n '@tui.move-up-left',\n '@tui.move-up',\n '@tui.clock',\n] as const;\n","export const TUI_VERSION = '4.19.0-canary.f57082a';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAGa,MAAA,uBAAuB,GAChC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAC,iBAAiB,EAAE,IAAI;;ACFrE,MAAM,IAAI,GAAG;AACT,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,MAAM,EAAE,CAAC;AACT,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,GAAG,EAAE,CAAC;AACN,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,CAAC,EAAE,CAAC;AACJ,IAAA,CAAC,EAAE,CAAC;CACE,CAAC;AAEX;;;;AAIG;AACU,MAAA,WAA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;IACb,kBAAkB;IAClB,oBAAoB;IACpB,iBAAiB;IACjB,sBAAsB;IACtB,gBAAgB;IAChB,qBAAqB;IACrB,gBAAgB;IAChB,mBAAmB;IACnB,cAAc;IACd,YAAY;;;ACrET,MAAM,WAAW,GAAG;;ACA3B;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/cdk",
3
- "version": "4.19.0-canary.b6fbaa5",
3
+ "version": "4.19.0-canary.f57082a",
4
4
  "description": "Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance",
5
5
  "keywords": [
6
6
  "angular",
@@ -151,18 +151,18 @@
151
151
  "esm": "./esm2022/directives/click-outside/taiga-ui-cdk-directives-click-outside.mjs",
152
152
  "default": "./fesm2022/taiga-ui-cdk-directives-click-outside.mjs"
153
153
  },
154
- "./directives/copy-processor": {
155
- "types": "./directives/copy-processor/index.d.ts",
156
- "esm2022": "./esm2022/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.mjs",
157
- "esm": "./esm2022/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.mjs",
158
- "default": "./fesm2022/taiga-ui-cdk-directives-copy-processor.mjs"
159
- },
160
154
  "./directives/control": {
161
155
  "types": "./directives/control/index.d.ts",
162
156
  "esm2022": "./esm2022/directives/control/taiga-ui-cdk-directives-control.mjs",
163
157
  "esm": "./esm2022/directives/control/taiga-ui-cdk-directives-control.mjs",
164
158
  "default": "./fesm2022/taiga-ui-cdk-directives-control.mjs"
165
159
  },
160
+ "./directives/copy-processor": {
161
+ "types": "./directives/copy-processor/index.d.ts",
162
+ "esm2022": "./esm2022/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.mjs",
163
+ "esm": "./esm2022/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.mjs",
164
+ "default": "./fesm2022/taiga-ui-cdk-directives-copy-processor.mjs"
165
+ },
166
166
  "./directives/droppable": {
167
167
  "types": "./directives/droppable/index.d.ts",
168
168
  "esm2022": "./esm2022/directives/droppable/taiga-ui-cdk-directives-droppable.mjs",
@@ -211,18 +211,18 @@
211
211
  "esm": "./esm2022/directives/let/taiga-ui-cdk-directives-let.mjs",
212
212
  "default": "./fesm2022/taiga-ui-cdk-directives-let.mjs"
213
213
  },
214
- "./directives/native-validator": {
215
- "types": "./directives/native-validator/index.d.ts",
216
- "esm2022": "./esm2022/directives/native-validator/taiga-ui-cdk-directives-native-validator.mjs",
217
- "esm": "./esm2022/directives/native-validator/taiga-ui-cdk-directives-native-validator.mjs",
218
- "default": "./fesm2022/taiga-ui-cdk-directives-native-validator.mjs"
219
- },
220
214
  "./directives/media": {
221
215
  "types": "./directives/media/index.d.ts",
222
216
  "esm2022": "./esm2022/directives/media/taiga-ui-cdk-directives-media.mjs",
223
217
  "esm": "./esm2022/directives/media/taiga-ui-cdk-directives-media.mjs",
224
218
  "default": "./fesm2022/taiga-ui-cdk-directives-media.mjs"
225
219
  },
220
+ "./directives/native-validator": {
221
+ "types": "./directives/native-validator/index.d.ts",
222
+ "esm2022": "./esm2022/directives/native-validator/taiga-ui-cdk-directives-native-validator.mjs",
223
+ "esm": "./esm2022/directives/native-validator/taiga-ui-cdk-directives-native-validator.mjs",
224
+ "default": "./fesm2022/taiga-ui-cdk-directives-native-validator.mjs"
225
+ },
226
226
  "./directives/obscured": {
227
227
  "types": "./directives/obscured/index.d.ts",
228
228
  "esm2022": "./esm2022/directives/obscured/taiga-ui-cdk-directives-obscured.mjs",
@@ -30,6 +30,10 @@ const CHANGED_ICONS = [
30
30
  { from: 'tuiIconAlertTriangle', to: '@tui.triangle-alert' },
31
31
  { from: 'tuiIconUploadCloud', to: '@tui.cloud-upload' },
32
32
  { from: 'tuiIconDownloadCloud', to: '@tui.cloud-download' },
33
+ { from: 'tuiIconAddRowLarge', to: '@tui.copy-plus' },
34
+ { from: 'tuiIconColumns', to: '@tui.columns-2' },
35
+ { from: 'tuiIconTool', to: '@tui.wrench' },
36
+ { from: 'tuiIconCheckSquare', to: '@tui.square-check-big' },
33
37
  ];
34
38
  function renameIcons(pattern = constants_1.ALL_FILES) {
35
39
  const sourceFiles = (0, ng_morph_1.getSourceFiles)(pattern);
@@ -68,5 +68,6 @@ exports.ATTRS_TO_DIRECTIVE_REPLACE = [
68
68
  name: 'TuiAppearance',
69
69
  moduleSpecifier: '@taiga-ui/core',
70
70
  },
71
+ filterFn: (el) => !['tui-primitive-textfield'].includes(el.tagName),
71
72
  },
72
73
  ];
@@ -58,4 +58,9 @@ exports.ATTR_WITH_VALUES_TO_REPLACE = [
58
58
  withTagNames: ['tui-radio-block', 'tui-radio-labeled', 'tui-radio'],
59
59
  valueReplacer: (condition) => `${condition} ? 'disabled' : null`,
60
60
  },
61
+ {
62
+ attrNames: ['size'],
63
+ withTagNames: ['tui-data-list-wrapper'],
64
+ valueReplacer: [{ from: 'xs', to: 's' }],
65
+ },
61
66
  ];
@@ -301,4 +301,13 @@ exports.ATTRS_TO_REPLACE = [
301
301
  attrName: '*ngFor',
302
302
  },
303
303
  },
304
+ {
305
+ from: {
306
+ attrName: 'tuiResizeable',
307
+ withTagNames: ['*'],
308
+ },
309
+ to: {
310
+ attrName: 'tuiResizable',
311
+ },
312
+ },
304
313
  ];
@@ -295,6 +295,26 @@ exports.IDENTIFIERS_TO_REPLACE = [
295
295
  from: { name: 'TuiTreeModule', moduleSpecifier: '@taiga-ui/kit' },
296
296
  to: { name: 'TuiTree', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
297
297
  },
298
+ {
299
+ from: { name: 'TuiTreeItemComponent', moduleSpecifier: '@taiga-ui/kit' },
300
+ to: { name: 'TuiTreeItem', moduleSpecifier: '@taiga-ui/kit' },
301
+ },
302
+ {
303
+ from: { name: 'TuiTreeItemContentComponent', moduleSpecifier: '@taiga-ui/kit' },
304
+ to: { name: 'TuiTreeItemContent', moduleSpecifier: '@taiga-ui/kit' },
305
+ },
306
+ {
307
+ from: { name: 'TuiTreeChildrenDirective', moduleSpecifier: '@taiga-ui/kit' },
308
+ to: { name: 'TuiTreeChildren', moduleSpecifier: '@taiga-ui/kit' },
309
+ },
310
+ {
311
+ from: { name: 'TuiTreeItemControllerDirective', moduleSpecifier: '@taiga-ui/kit' },
312
+ to: { name: 'TuiTreeItemController', moduleSpecifier: '@taiga-ui/kit' },
313
+ },
314
+ {
315
+ from: { name: 'TuiTreeNodeDirective', moduleSpecifier: '@taiga-ui/kit' },
316
+ to: { name: 'TuiTreeNode', moduleSpecifier: '@taiga-ui/kit' },
317
+ },
298
318
  {
299
319
  from: {
300
320
  name: 'TuiDataListDropdownManagerModule',
@@ -335,7 +355,10 @@ exports.IDENTIFIERS_TO_REPLACE = [
335
355
  },
336
356
  {
337
357
  from: { name: 'TuiFieldErrorPipeModule', moduleSpecifier: '@taiga-ui/kit' },
338
- to: { name: 'TuiFieldErrorPipe', moduleSpecifier: '@taiga-ui/kit' },
358
+ to: [
359
+ { name: 'TuiFieldErrorPipe', moduleSpecifier: '@taiga-ui/kit' },
360
+ { name: 'TuiFieldErrorContentPipe', moduleSpecifier: '@taiga-ui/kit' },
361
+ ],
339
362
  },
340
363
  {
341
364
  from: { name: 'TuiThumbnailCardModule', moduleSpecifier: '@taiga-ui/experimental' },
@@ -523,7 +546,10 @@ exports.IDENTIFIERS_TO_REPLACE = [
523
546
  { name: 'TuiScrollbarModule', moduleSpecifier: '@taiga-ui/core' },
524
547
  { name: 'TuiScrollbarComponent', moduleSpecifier: '@taiga-ui/core' },
525
548
  ],
526
- to: { name: 'TuiScrollbar', moduleSpecifier: '@taiga-ui/core' },
549
+ to: [
550
+ { name: 'TuiScrollbar', moduleSpecifier: '@taiga-ui/core' },
551
+ { name: 'TuiScrollable', moduleSpecifier: '@taiga-ui/core' },
552
+ ],
527
553
  },
528
554
  {
529
555
  from: [
@@ -2533,4 +2559,15 @@ exports.IDENTIFIERS_TO_REPLACE = [
2533
2559
  from: { name: 'TuiObscuredModule', moduleSpecifier: '@taiga-ui/cdk' },
2534
2560
  to: { name: 'TuiObscured', moduleSpecifier: '@taiga-ui/cdk' },
2535
2561
  },
2562
+ {
2563
+ from: { name: 'TuiResizerModule', moduleSpecifier: '@taiga-ui/cdk' },
2564
+ to: [
2565
+ { name: 'TuiResizable', moduleSpecifier: '@taiga-ui/cdk' },
2566
+ { name: 'TuiResizer', moduleSpecifier: '@taiga-ui/cdk' },
2567
+ ],
2568
+ },
2569
+ {
2570
+ from: { name: 'TuiResizeableDirective', moduleSpecifier: '@taiga-ui/cdk' },
2571
+ to: { name: 'TuiResizable', moduleSpecifier: '@taiga-ui/cdk' },
2572
+ },
2536
2573
  ];
@@ -61,7 +61,9 @@ function addProviders({ callExpression, fileSystem, modulePath, }) {
61
61
  else if (module) {
62
62
  (0, ng_morph_1.addProviderToNgModule)(module, 'NG_EVENT_PLUGINS', { unique: true });
63
63
  }
64
- if (providersArray || module) {
64
+ const shouldAddImport = (providersArray || module) &&
65
+ !(0, ng_morph_1.getImports)(path, { moduleSpecifier: '@tinkoff/ng-event-plugins' }).length;
66
+ if (shouldAddImport) {
65
67
  (0, add_unique_import_1.addUniqueImport)(path, 'NG_EVENT_PLUGINS', '@taiga-ui/event-plugins');
66
68
  }
67
69
  (0, ng_morph_1.getActiveProject)();
@@ -20,7 +20,9 @@ function migrateExpandable({ resource, recorder, fileSystem, }) {
20
20
  if (expandableValue === 'false') {
21
21
  const rowsAttr = (0, inputs_1.findAttr)(attrs, 'rows');
22
22
  const insertTo = ((_h = (_g = sourceCodeLocation === null || sourceCodeLocation === void 0 ? void 0 : sourceCodeLocation.startTag) === null || _g === void 0 ? void 0 : _g.endOffset) !== null && _h !== void 0 ? _h : 0) - 1;
23
- recorder.insertRight(templateOffset + insertTo, rowsAttr ? '' : '[rows]="1"');
23
+ const insertOffset = templateOffset + insertTo;
24
+ const selfClosing = template[insertOffset - 1] === '/';
25
+ recorder.insertRight(selfClosing ? insertOffset - 1 : insertOffset, rowsAttr ? '' : '[rows]="1"');
24
26
  }
25
27
  if (expandableValue !== 'false' && expandableValue !== 'true') {
26
28
  recorder.insertRight(templateOffset + ((_k = (_j = sourceCodeLocation === null || sourceCodeLocation === void 0 ? void 0 : sourceCodeLocation.startTag) === null || _j === void 0 ? void 0 : _j.startOffset) !== null && _k !== void 0 ? _k : 0), '<!-- Taiga migration TODO: "expandable" property has been removed. Use "rows" property instead -->\n');