@taiga-ui/cdk 2.53.0 → 2.55.0

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.
Files changed (64) hide show
  1. package/bundles/taiga-ui-cdk-classes.umd.js +7 -7
  2. package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
  3. package/bundles/taiga-ui-cdk-classes.umd.min.js +1 -1
  4. package/bundles/taiga-ui-cdk-classes.umd.min.js.map +1 -1
  5. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +1 -1
  6. package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js +1 -1
  7. package/bundles/taiga-ui-cdk-components-dialog-host.umd.min.js.map +1 -1
  8. package/bundles/taiga-ui-cdk-constants.umd.js +10 -2
  9. package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
  10. package/bundles/taiga-ui-cdk-constants.umd.min.js +1 -1
  11. package/bundles/taiga-ui-cdk-constants.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-cdk-directives-hovered.umd.js +3 -0
  13. package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
  14. package/bundles/taiga-ui-cdk-directives-hovered.umd.min.js +1 -1
  15. package/bundles/taiga-ui-cdk-directives-hovered.umd.min.js.map +1 -1
  16. package/components/dialog-host/taiga-ui-cdk-components-dialog-host.metadata.json +1 -1
  17. package/constants/taiga-ui-cdk-constants.metadata.json +1 -1
  18. package/constants/unicode-chars.d.ts +9 -2
  19. package/directives/hovered/taiga-ui-cdk-directives-hovered.metadata.json +1 -1
  20. package/esm2015/classes/assert.js +8 -8
  21. package/esm2015/components/dialog-host/dialog-host.component.js +1 -1
  22. package/esm2015/constants/unicode-chars.js +10 -3
  23. package/esm2015/directives/hovered/hovered.directive.js +4 -1
  24. package/esm5/classes/assert.js +8 -8
  25. package/esm5/components/dialog-host/dialog-host.component.js +1 -1
  26. package/esm5/constants/unicode-chars.js +10 -3
  27. package/esm5/directives/hovered/hovered.directive.js +4 -1
  28. package/fesm2015/taiga-ui-cdk-classes.js +7 -7
  29. package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
  30. package/fesm2015/taiga-ui-cdk-components-dialog-host.js +1 -1
  31. package/fesm2015/taiga-ui-cdk-constants.js +10 -3
  32. package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
  33. package/fesm2015/taiga-ui-cdk-directives-hovered.js +3 -0
  34. package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
  35. package/fesm5/taiga-ui-cdk-classes.js +7 -7
  36. package/fesm5/taiga-ui-cdk-classes.js.map +1 -1
  37. package/fesm5/taiga-ui-cdk-components-dialog-host.js +1 -1
  38. package/fesm5/taiga-ui-cdk-constants.js +10 -3
  39. package/fesm5/taiga-ui-cdk-constants.js.map +1 -1
  40. package/fesm5/taiga-ui-cdk-directives-hovered.js +3 -0
  41. package/fesm5/taiga-ui-cdk-directives-hovered.js.map +1 -1
  42. package/package.json +1 -1
  43. package/schematics/ng-add/constants/modules.js +4 -4
  44. package/schematics/ng-update/constants/consts.js +30 -0
  45. package/schematics/ng-update/constants/modules.js +1 -0
  46. package/schematics/ng-update/constants/templates.d.ts +8 -0
  47. package/schematics/ng-update/constants/templates.js +10 -0
  48. package/schematics/ng-update/constants/warnings.js +10 -0
  49. package/schematics/ng-update/index.js +7 -24
  50. package/schematics/ng-update/steps/migrate-date-time.js +3 -0
  51. package/schematics/ng-update/steps/migrate-progress.js +3 -0
  52. package/schematics/ng-update/steps/migrate-sliders/index.js +3 -0
  53. package/schematics/ng-update/steps/migrate-templates.js +3 -0
  54. package/schematics/ng-update/steps/miscellaneous.js +3 -0
  55. package/schematics/ng-update/steps/remove-module.js +3 -0
  56. package/schematics/ng-update/steps/rename-types.js +4 -3
  57. package/schematics/ng-update/steps/replace-const.d.ts +1 -1
  58. package/schematics/ng-update/steps/replace-const.js +5 -2
  59. package/schematics/ng-update/steps/replace-deep-import.js +3 -0
  60. package/schematics/ng-update/steps/replace-enums.js +4 -3
  61. package/schematics/ng-update/steps/replace-functions.js +3 -0
  62. package/schematics/ng-update/steps/replace-services.js +4 -4
  63. package/schematics/utils/colored-log.d.ts +8 -0
  64. package/schematics/utils/colored-log.js +15 -1
@@ -8,14 +8,14 @@ var tuiAssert = {
8
8
  : EMPTY_FUNCTION;
9
9
  },
10
10
  };
11
+ // TODO: replace `HTMLElement` to `Element` in v3.0
12
+ // TS 3.8 Argument of type Argument of type 'TuiNativeFocusableElement | HTMLElement' is not assignable to parameter of type 'HTMLElement'.
11
13
  function tuiAssertIsHTMLElement(node) {
12
- var _a;
13
- var document = (_a = node) === null || _a === void 0 ? void 0 : _a.ownerDocument;
14
- var defaultView = document === null || document === void 0 ? void 0 : document.defaultView;
15
- var isHTMLElement = node instanceof (defaultView === null || defaultView === void 0 ? void 0 : defaultView.HTMLElement) ||
16
- node instanceof (defaultView === null || defaultView === void 0 ? void 0 : defaultView.Element) ||
17
- node instanceof (defaultView === null || defaultView === void 0 ? void 0 : defaultView.HTMLDocument);
18
- tuiAssert.assert(isHTMLElement, 'Node is not an Element');
14
+ var _a, _b;
15
+ var defaultView = (_b = (_a = node) === null || _a === void 0 ? void 0 : _a.ownerDocument) === null || _b === void 0 ? void 0 : _b.defaultView;
16
+ var isElement = !!defaultView &&
17
+ (node instanceof defaultView.Element || node instanceof defaultView.HTMLDocument);
18
+ tuiAssert.assert(isElement, 'Node is not an Element');
19
19
  }
20
20
 
21
21
  var TuiValidationError = /** @class */ (function () {
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-classes.js","sources":["ng://@taiga-ui/cdk/classes/assert.ts","ng://@taiga-ui/cdk/classes/validation-error.ts","ng://@taiga-ui/cdk/classes/taiga-ui-cdk-classes.ts"],"sourcesContent":["import {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\n\nexport const tuiAssert = {\n enabled: false,\n get assert(): (assertion: boolean, ...args: unknown[]) => void {\n return this.enabled\n ? Function.prototype.bind.call(console.assert, console)\n : EMPTY_FUNCTION;\n },\n};\n\ntype PossibleNode = Node | Element | EventTarget | null;\n\ninterface DefaultView {\n Element: typeof Node;\n HTMLElement: typeof Node;\n HTMLDocument: typeof Node;\n}\n\nexport function tuiAssertIsHTMLElement(node?: PossibleNode): asserts node is HTMLElement {\n const document = (node as Node)?.ownerDocument;\n const defaultView = document?.defaultView as unknown as DefaultView;\n const isHTMLElement =\n node instanceof defaultView?.HTMLElement ||\n node instanceof defaultView?.Element ||\n node instanceof defaultView?.HTMLDocument;\n\n tuiAssert.assert(isHTMLElement, 'Node is not an Element');\n}\n","import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport class TuiValidationError<T extends object = Record<string, unknown>> {\n constructor(\n readonly message: PolymorpheusContent<T>,\n readonly context: T = {} as T,\n ) {}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;IAEa,SAAS,GAAG;IACrB,OAAO,EAAE,KAAK;IACd,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,OAAO;cACb,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC;cACrD,cAAc,CAAC;KACxB;EACH;SAUc,sBAAsB,CAAC,IAAmB;;IACtD,IAAM,QAAQ,SAAI,IAAa,0CAAE,aAAa,CAAC;IAC/C,IAAM,WAAW,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAqC,CAAC;IACpE,IAAM,aAAa,GACf,IAAI,aAAY,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,WAAW,CAAA;QACxC,IAAI,aAAY,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,CAAA;QACpC,IAAI,aAAY,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,YAAY,CAAA,CAAC;IAE9C,SAAS,CAAC,MAAM,CAAC,aAAa,EAAE,wBAAwB,CAAC,CAAC;AAC9D;;;ICzBI,4BACa,OAA+B,EAC/B,OAAoB;QAApB,wBAAA,EAAA,UAAa,EAAO;QADpB,YAAO,GAAP,OAAO,CAAwB;QAC/B,YAAO,GAAP,OAAO,CAAa;KAC7B;IACR,yBAAC;AAAD,CAAC;;ACPD;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-classes.js","sources":["ng://@taiga-ui/cdk/classes/assert.ts","ng://@taiga-ui/cdk/classes/validation-error.ts","ng://@taiga-ui/cdk/classes/taiga-ui-cdk-classes.ts"],"sourcesContent":["import {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\n\nexport const tuiAssert = {\n enabled: false,\n get assert(): (assertion: boolean, ...args: unknown[]) => void {\n return this.enabled\n ? Function.prototype.bind.call(console.assert, console)\n : EMPTY_FUNCTION;\n },\n};\n\ntype PossibleNode = Node | Element | EventTarget | null;\n\n// TODO: remove `DefaultView` in v3.0\n// TS 3.8 Property 'Element' does not exist on type 'Window'.\ninterface DefaultView {\n Element: typeof Node;\n HTMLElement: typeof Node;\n HTMLDocument: typeof Node;\n}\n\n// TODO: replace `HTMLElement` to `Element` in v3.0\n// TS 3.8 Argument of type Argument of type 'TuiNativeFocusableElement | HTMLElement' is not assignable to parameter of type 'HTMLElement'.\nexport function tuiAssertIsHTMLElement(node?: PossibleNode): asserts node is HTMLElement {\n const defaultView = (node as Node)?.ownerDocument\n ?.defaultView as unknown as DefaultView;\n const isElement =\n !!defaultView &&\n (node instanceof defaultView.Element || node instanceof defaultView.HTMLDocument);\n\n tuiAssert.assert(isElement, 'Node is not an Element');\n}\n","import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport class TuiValidationError<T extends object = Record<string, unknown>> {\n constructor(\n readonly message: PolymorpheusContent<T>,\n readonly context: T = {} as T,\n ) {}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;IAEa,SAAS,GAAG;IACrB,OAAO,EAAE,KAAK;IACd,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,OAAO;cACb,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC;cACrD,cAAc,CAAC;KACxB;EACH;AAYF;AACA;SACgB,sBAAsB,CAAC,IAAmB;;IACtD,IAAM,WAAW,GAAG,YAAC,IAAa,0CAAE,aAAa,0CAC3C,WAAqC,CAAC;IAC5C,IAAM,SAAS,GACX,CAAC,CAAC,WAAW;SACZ,IAAI,YAAY,WAAW,CAAC,OAAO,IAAI,IAAI,YAAY,WAAW,CAAC,YAAY,CAAC,CAAC;IAEtF,SAAS,CAAC,MAAM,CAAC,SAAS,EAAE,wBAAwB,CAAC,CAAC;AAC1D;;;IC5BI,4BACa,OAA+B,EAC/B,OAAoB;QAApB,wBAAA,EAAA,UAAa,EAAO;QADpB,YAAO,GAAP,OAAO,CAAwB;QAC/B,YAAO,GAAP,OAAO,CAAa;KAC7B;IACR,yBAAC;AAAD,CAAC;;ACPD;;;;;;"}
@@ -70,7 +70,7 @@ var TuiDialogHostComponent = /** @class */ (function () {
70
70
  template: "<ng-container *ngIf=\"dialogs$ | async as dialogs\">\n <section\n *ngFor=\"let item of dialogs\"\n polymorpheus-outlet\n tuiFocusTrap\n tuiScrollRef\n tuiOverscroll=\"all\"\n role=\"dialog\"\n aria-modal=\"true\"\n class=\"t-dialog\"\n @tuiParentAnimation\n [attr.aria-labelledby]=\"item.id\"\n [content]=\"item.component\"\n [context]=\"item\"\n ></section>\n <div\n *tuiLet=\"isDialogClosesOnBack$ | async as isDialogClosesOnBack\"\n class=\"t-overlay\"\n [class.t-overlay_visible]=\"dialogs.length\"\n (window:popstate)=\"closeLast(dialogs, isDialogClosesOnBack)\"\n (transitionend)=\"onDialog($event, !!dialogs.length, isDialogClosesOnBack)\"\n ></div>\n</ng-container>\n",
71
71
  changeDetection: ChangeDetectionStrategy.OnPush,
72
72
  animations: [TUI_PARENT_ANIMATION],
73
- styles: [":host{position:fixed;left:0;bottom:0;width:100%;height:0}.t-dialog,.t-overlay{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:flex-start;outline:0;overflow:auto;overflow:overlay}.t-dialog{bottom:auto;height:100%}.t-overlay{height:100vh;pointer-events:none;touch-action:none;opacity:0;letter-spacing:normal;transition:opacity var(--tui-duration),letter-spacing 10ms;background:rgba(0,0,0,.75)}.t-overlay_visible{opacity:1;letter-spacing:1px}.t-dialog:last-of-type{z-index:1}"]
73
+ styles: [":host{position:fixed;left:0;bottom:0;width:100%;height:0}.t-dialog,.t-overlay{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:flex-start;outline:0;overflow:auto;overflow:overlay}.t-dialog{bottom:auto;height:100%}.t-overlay{height:100%;pointer-events:none;touch-action:none;opacity:0;letter-spacing:normal;transition:opacity var(--tui-duration),letter-spacing 10ms;background:rgba(0,0,0,.75)}.t-overlay_visible{opacity:1;letter-spacing:1px}.t-dialog:last-of-type{z-index:1}"]
74
74
  }),
75
75
  __param(0, Inject(TUI_DIALOG_CLOSES_ON_BACK)),
76
76
  __param(1, Inject(TUI_DIALOGS)),
@@ -110,12 +110,19 @@ var CHAR_EN_DASH = '\u2013';
110
110
  var CHAR_EM_DASH = '\u2014';
111
111
  /**
112
112
  * {@link https://unicode-table.com/en/002D/ Hyphen (minus sign)}
113
- * is used to combine words or as minus sign before digits.
114
- * @example well-behaved, -42
113
+ * is used to combine words.
114
+ * @example well-behaved
115
115
  * ___
116
116
  * Don't confuse with {@link CHAR_EN_DASH} or {@link CHAR_EM_DASH}!
117
117
  */
118
118
  var CHAR_HYPHEN = '\u002D';
119
+ /**
120
+ * {@link https://unicode-table.com/en/2212/ Minus}
121
+ * is used as math operator symbol or before negative digits.
122
+ * ---
123
+ * Can be used as `&minus;`. Don't confuse with {@link CHAR_HYPHEN}
124
+ */
125
+ var CHAR_MINUS = '\u2212';
119
126
  /**
120
127
  * {@link https://unicode-table.com/en/002B/ Plus}
121
128
  */
@@ -141,5 +148,5 @@ var CHAR_ZERO_WIDTH_SPACE = '\u200B';
141
148
  * Generated bundle index. Do not edit.
142
149
  */
143
150
 
144
- export { ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, CHAR_BULLET, CHAR_CURRENCY_SIGN, CHAR_ELLIPSIS, CHAR_EM_DASH, CHAR_EN_DASH, CHAR_HYPHEN, CHAR_NO_BREAK_SPACE, CHAR_PLUS, CHAR_ZERO_WIDTH_SPACE, CHROMIUM_EDGE_START_VERSION, EMPTY_ARRAY, EMPTY_CLIENT_RECT, EMPTY_FUNCTION, EMPTY_QUERY, EMPTY_VALIDATOR, POLLING_TIME, TUI_DEFAULT_IDENTITY_MATCHER, TUI_DEFAULT_MATCHER, TUI_DEFAULT_STRINGIFY, TUI_PARENT_ANIMATION, TUI_STRICT_MATCHER, svgNodeFilter };
151
+ export { ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, CHAR_BULLET, CHAR_CURRENCY_SIGN, CHAR_ELLIPSIS, CHAR_EM_DASH, CHAR_EN_DASH, CHAR_HYPHEN, CHAR_MINUS, CHAR_NO_BREAK_SPACE, CHAR_PLUS, CHAR_ZERO_WIDTH_SPACE, CHROMIUM_EDGE_START_VERSION, EMPTY_ARRAY, EMPTY_CLIENT_RECT, EMPTY_FUNCTION, EMPTY_QUERY, EMPTY_VALIDATOR, POLLING_TIME, TUI_DEFAULT_IDENTITY_MATCHER, TUI_DEFAULT_MATCHER, TUI_DEFAULT_STRINGIFY, TUI_PARENT_ANIMATION, TUI_STRICT_MATCHER, svgNodeFilter };
145
152
  //# sourceMappingURL=taiga-ui-cdk-constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-constants.js","sources":["ng://@taiga-ui/cdk/constants/always-false-handler.ts","ng://@taiga-ui/cdk/constants/always-true-handler.ts","ng://@taiga-ui/cdk/constants/browser.ts","ng://@taiga-ui/cdk/constants/empty.ts","ng://@taiga-ui/cdk/constants/stringify.ts","ng://@taiga-ui/cdk/constants/matcher.ts","ng://@taiga-ui/cdk/constants/parent-animation.ts","ng://@taiga-ui/cdk/constants/polling-time.ts","ng://@taiga-ui/cdk/constants/svg-node-filter.ts","ng://@taiga-ui/cdk/constants/unicode-chars.ts","ng://@taiga-ui/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["/**\n * Handler that always returns `false`.\n */\nexport const ALWAYS_FALSE_HANDLER = (): false => false;\n","/**\n * Handler that always returns `true`.\n */\nexport const ALWAYS_TRUE_HANDLER = (): true => true;\n","export const CHROMIUM_EDGE_START_VERSION = 79;\n","import {QueryList} from '@angular/core';\nimport {ValidatorFn} from '@angular/forms';\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 = () => {};\n/** @deprecated use Validators.nullValidator */\nexport const EMPTY_VALIDATOR: ValidatorFn = () => null;\nexport const EMPTY_CLIENT_RECT: ClientRect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n};\n","import {TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Default method to turn arbitrary object into string\n */\nexport const TUI_DEFAULT_STRINGIFY: TuiStringHandler<unknown> = item => String(item);\n","import {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nimport {TUI_DEFAULT_STRINGIFY} from './stringify';\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> = TUI_DEFAULT_STRINGIFY,\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> = TUI_DEFAULT_STRINGIFY,\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\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n","import {animateChild, query, style, transition, trigger} from '@angular/animations';\n\nexport const TUI_PARENT_ANIMATION = trigger('tuiParentAnimation', [\n transition('* => void', [\n style({overflow: 'hidden'}),\n query('@*', [animateChild()], {optional: true}),\n ]),\n]);\n","export const POLLING_TIME = 1000 / 15;\n","// Filtering SVGElements for TreeWalker\n// Filter must be a function in IE, other modern browsers are compliant to this format\nexport const svgNodeFilter: NodeFilter = ((node: Node) =>\n 'ownerSVGElement' in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT) as any;\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/002D/ Hyphen (minus sign)}\n * is used to combine words or as minus sign before digits.\n * @example well-behaved, -42\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/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 * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;IAGa,oBAAoB,GAAG,cAAa,OAAA,KAAK;;ACHtD;;;IAGa,mBAAmB,GAAG,cAAY,OAAA,IAAI;;ICHtC,2BAA2B,GAAG;;ACG3C;;;;;IAKa,WAAW,GAAG,IAAI,SAAS,GAAQ;IACnC,WAAW,GAAO,GAAG;IACrB,cAAc,GAA6B,gBAAS;AACjE;IACa,eAAe,GAAgB,cAAM,OAAA,IAAI,IAAC;IAC1C,iBAAiB,GAAe;IACzC,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;;;ACjBZ;;;IAGa,qBAAqB,GAA8B,UAAA,IAAI,IAAI,OAAA,MAAM,CAAC,IAAI,CAAC;;ACDpF;;;;;;IAMa,mBAAmB,GAAG,UAC/B,IAAO,EACP,MAAc,EACd,SAAwD;IAAxD,0BAAA,EAAA,iCAAwD;IAC9C,OAAA,SAAS,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;AAA5D,EAA6D;AAE3E;;;;;;IAMa,kBAAkB,GAAG,UAC9B,IAAO,EACP,MAAc,EACd,SAAwD;IAAxD,0BAAA,EAAA,iCAAwD;IAC9C,OAAA,SAAS,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,WAAW,EAAE;AAAtD,EAAuD;AAErE;;;;;;;IAOa,4BAA4B,GAAgC,UAAC,KAAK,EAAE,KAAK;IAClF,OAAA,KAAK,KAAK,KAAK,IAAI,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;AAA1C,EAA2C;AAE/C,SAAS,SAAS,CAAC,KAAc,EAAE,KAAc;IAC7C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;AAC1F;;ICtCa,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,EAAE;IAC9D,UAAU,CAAC,WAAW,EAAE;QACpB,KAAK,CAAC,EAAC,QAAQ,EAAE,QAAQ,EAAC,CAAC;QAC3B,KAAK,CAAC,IAAI,EAAE,CAAC,YAAY,EAAE,CAAC,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;KAClD,CAAC;CACL;;ICPY,YAAY,GAAG,IAAI,GAAG;;ACAnC;AACA;IACa,aAAa,IAAgB,UAAC,IAAU;IACjD,OAAA,iBAAiB,IAAI,IAAI;UACnB,UAAU,CAAC,aAAa;UACxB,UAAU,CAAC,aAAa;AAF9B,CAE8B;;ACLlC;;;IAGa,mBAAmB,GAAG,SAAS;AAE5C;;;;;;;IAOa,YAAY,GAAG,SAAS;AAErC;;;;;;;IAOa,YAAY,GAAG,SAAS;AAErC;;;;;;;IAOa,WAAW,GAAG,SAAS;AAEpC;;;IAGa,SAAS,GAAG,SAAS;AAElC;;;IAGa,WAAW,GAAG,SAAS;AAEpC;;;IAGa,aAAa,GAAG,SAAS;AAEtC;;;IAGa,kBAAkB,GAAG,SAAS;AAE3C;;;IAGa,qBAAqB,GAAG;;ACvDrC;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-constants.js","sources":["ng://@taiga-ui/cdk/constants/always-false-handler.ts","ng://@taiga-ui/cdk/constants/always-true-handler.ts","ng://@taiga-ui/cdk/constants/browser.ts","ng://@taiga-ui/cdk/constants/empty.ts","ng://@taiga-ui/cdk/constants/stringify.ts","ng://@taiga-ui/cdk/constants/matcher.ts","ng://@taiga-ui/cdk/constants/parent-animation.ts","ng://@taiga-ui/cdk/constants/polling-time.ts","ng://@taiga-ui/cdk/constants/svg-node-filter.ts","ng://@taiga-ui/cdk/constants/unicode-chars.ts","ng://@taiga-ui/cdk/constants/taiga-ui-cdk-constants.ts"],"sourcesContent":["/**\n * Handler that always returns `false`.\n */\nexport const ALWAYS_FALSE_HANDLER = (): false => false;\n","/**\n * Handler that always returns `true`.\n */\nexport const ALWAYS_TRUE_HANDLER = (): true => true;\n","export const CHROMIUM_EDGE_START_VERSION = 79;\n","import {QueryList} from '@angular/core';\nimport {ValidatorFn} from '@angular/forms';\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 = () => {};\n/** @deprecated use Validators.nullValidator */\nexport const EMPTY_VALIDATOR: ValidatorFn = () => null;\nexport const EMPTY_CLIENT_RECT: ClientRect = {\n bottom: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0,\n width: 0,\n};\n","import {TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * Default method to turn arbitrary object into string\n */\nexport const TUI_DEFAULT_STRINGIFY: TuiStringHandler<unknown> = item => String(item);\n","import {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nimport {TUI_DEFAULT_STRINGIFY} from './stringify';\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> = TUI_DEFAULT_STRINGIFY,\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> = TUI_DEFAULT_STRINGIFY,\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\nfunction bothEmpty(item1: unknown, item2: unknown): boolean {\n return Array.isArray(item1) && Array.isArray(item2) && !item1.length && !item2.length;\n}\n","import {animateChild, query, style, transition, trigger} from '@angular/animations';\n\nexport const TUI_PARENT_ANIMATION = trigger('tuiParentAnimation', [\n transition('* => void', [\n style({overflow: 'hidden'}),\n query('@*', [animateChild()], {optional: true}),\n ]),\n]);\n","export const POLLING_TIME = 1000 / 15;\n","// Filtering SVGElements for TreeWalker\n// Filter must be a function in IE, other modern browsers are compliant to this format\nexport const svgNodeFilter: NodeFilter = ((node: Node) =>\n 'ownerSVGElement' in node\n ? NodeFilter.FILTER_REJECT\n : NodeFilter.FILTER_ACCEPT) as any;\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/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 * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;IAGa,oBAAoB,GAAG,cAAa,OAAA,KAAK;;ACHtD;;;IAGa,mBAAmB,GAAG,cAAY,OAAA,IAAI;;ICHtC,2BAA2B,GAAG;;ACG3C;;;;;IAKa,WAAW,GAAG,IAAI,SAAS,GAAQ;IACnC,WAAW,GAAO,GAAG;IACrB,cAAc,GAA6B,gBAAS;AACjE;IACa,eAAe,GAAgB,cAAM,OAAA,IAAI,IAAC;IAC1C,iBAAiB,GAAe;IACzC,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;;;ACjBZ;;;IAGa,qBAAqB,GAA8B,UAAA,IAAI,IAAI,OAAA,MAAM,CAAC,IAAI,CAAC;;ACDpF;;;;;;IAMa,mBAAmB,GAAG,UAC/B,IAAO,EACP,MAAc,EACd,SAAwD;IAAxD,0BAAA,EAAA,iCAAwD;IAC9C,OAAA,SAAS,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;AAA5D,EAA6D;AAE3E;;;;;;IAMa,kBAAkB,GAAG,UAC9B,IAAO,EACP,MAAc,EACd,SAAwD;IAAxD,0BAAA,EAAA,iCAAwD;IAC9C,OAAA,SAAS,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,WAAW,EAAE;AAAtD,EAAuD;AAErE;;;;;;;IAOa,4BAA4B,GAAgC,UAAC,KAAK,EAAE,KAAK;IAClF,OAAA,KAAK,KAAK,KAAK,IAAI,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC;AAA1C,EAA2C;AAE/C,SAAS,SAAS,CAAC,KAAc,EAAE,KAAc;IAC7C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;AAC1F;;ICtCa,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,EAAE;IAC9D,UAAU,CAAC,WAAW,EAAE;QACpB,KAAK,CAAC,EAAC,QAAQ,EAAE,QAAQ,EAAC,CAAC;QAC3B,KAAK,CAAC,IAAI,EAAE,CAAC,YAAY,EAAE,CAAC,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;KAClD,CAAC;CACL;;ICPY,YAAY,GAAG,IAAI,GAAG;;ACAnC;AACA;IACa,aAAa,IAAgB,UAAC,IAAU;IACjD,OAAA,iBAAiB,IAAI,IAAI;UACnB,UAAU,CAAC,aAAa;UACxB,UAAU,CAAC,aAAa;AAF9B,CAE8B;;ACLlC;;;IAGa,mBAAmB,GAAG,SAAS;AAE5C;;;;;;;IAOa,YAAY,GAAG,SAAS;AAErC;;;;;;;IAOa,YAAY,GAAG,SAAS;AAErC;;;;;;;IAOa,WAAW,GAAG,SAAS;AAEpC;;;;;;IAMa,UAAU,GAAG,SAAS;AAEnC;;;IAGa,SAAS,GAAG,SAAS;AAElC;;;IAGa,WAAW,GAAG,SAAS;AAEpC;;;IAGa,aAAa,GAAG,SAAS;AAEtC;;;IAGa,kBAAkB,GAAG,SAAS;AAE3C;;;IAGa,qBAAqB,GAAG;;AC/DrC;;;;;;"}
@@ -6,6 +6,9 @@ import { shouldCall } from '@tinkoff/ng-event-plugins';
6
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
7
7
  function movedOut(_a) {
8
8
  var currentTarget = _a.currentTarget, relatedTarget = _a.relatedTarget;
9
+ if (!relatedTarget) {
10
+ return true;
11
+ }
9
12
  tuiAssertIsHTMLElement(currentTarget);
10
13
  tuiAssertIsHTMLElement(relatedTarget);
11
14
  return !currentTarget.contains(relatedTarget);
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-hovered.js","sources":["ng://@taiga-ui/cdk/directives/hovered/hovered.directive.ts","ng://@taiga-ui/cdk/directives/hovered/hovered.module.ts","ng://@taiga-ui/cdk/directives/hovered/taiga-ui-cdk-directives-hovered.ts"],"sourcesContent":["import {Directive, EventEmitter, HostListener, Output} from '@angular/core';\nimport {tuiAssertIsHTMLElement} from '@taiga-ui/cdk/classes';\nimport {shouldCall} from '@tinkoff/ng-event-plugins';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function movedOut({currentTarget, relatedTarget}: MouseEvent): boolean {\n tuiAssertIsHTMLElement(currentTarget);\n tuiAssertIsHTMLElement(relatedTarget);\n\n return !currentTarget.contains(relatedTarget);\n}\n\n@Directive({\n selector: '[tuiHoveredChange]',\n})\nexport class TuiHoveredDirective {\n @Output()\n readonly tuiHoveredChange = new EventEmitter<boolean>();\n\n @HostListener('mouseenter')\n onHover(): void {\n this.tuiHoveredChange.emit(true);\n }\n\n @shouldCall(movedOut)\n @HostListener('mouseout.init', ['$event'])\n @HostListener('mouseout.silent', ['$event'])\n onOut(_: MouseEvent): void {\n this.tuiHoveredChange.emit(false);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiHoveredDirective} from './hovered.directive';\n\n@NgModule({\n declarations: [TuiHoveredDirective],\n exports: [TuiHoveredDirective],\n})\nexport class TuiHoveredModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;SACgB,QAAQ,CAAC,EAA0C;QAAzC,gCAAa,EAAE,gCAAa;IAClD,sBAAsB,CAAC,aAAa,CAAC,CAAC;IACtC,sBAAsB,CAAC,aAAa,CAAC,CAAC;IAEtC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;AAClD,CAAC;;IAKD;QAEa,qBAAgB,GAAG,IAAI,YAAY,EAAW,CAAC;KAa3D;IAVG,qCAAO,GAAP;QACI,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACpC;IAKD,mCAAK,GAAL,UAAM,CAAa;QACf,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACrC;IAZD;QADC,MAAM,EAAE;iEAC+C;IAGxD;QADC,YAAY,CAAC,YAAY,CAAC;sDAG1B;IAKD;QAHC,UAAU,CAAC,QAAQ,CAAC;QACpB,YAAY,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAC,CAAC;QACzC,YAAY,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,CAAC;oDAG3C;IAdQ,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;SACjC,CAAC;OACW,mBAAmB,CAe/B;IAAD,0BAAC;CAfD;;;ICPA;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACRA;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-hovered.js","sources":["ng://@taiga-ui/cdk/directives/hovered/hovered.directive.ts","ng://@taiga-ui/cdk/directives/hovered/hovered.module.ts","ng://@taiga-ui/cdk/directives/hovered/taiga-ui-cdk-directives-hovered.ts"],"sourcesContent":["import {Directive, EventEmitter, HostListener, Output} from '@angular/core';\nimport {tuiAssertIsHTMLElement} from '@taiga-ui/cdk/classes';\nimport {shouldCall} from '@tinkoff/ng-event-plugins';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function movedOut({currentTarget, relatedTarget}: MouseEvent): boolean {\n if (!relatedTarget) {\n return true;\n }\n\n tuiAssertIsHTMLElement(currentTarget);\n tuiAssertIsHTMLElement(relatedTarget);\n\n return !currentTarget.contains(relatedTarget);\n}\n\n@Directive({\n selector: '[tuiHoveredChange]',\n})\nexport class TuiHoveredDirective {\n @Output()\n readonly tuiHoveredChange = new EventEmitter<boolean>();\n\n @HostListener('mouseenter')\n onHover(): void {\n this.tuiHoveredChange.emit(true);\n }\n\n @shouldCall(movedOut)\n @HostListener('mouseout.init', ['$event'])\n @HostListener('mouseout.silent', ['$event'])\n onOut(_: MouseEvent): void {\n this.tuiHoveredChange.emit(false);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiHoveredDirective} from './hovered.directive';\n\n@NgModule({\n declarations: [TuiHoveredDirective],\n exports: [TuiHoveredDirective],\n})\nexport class TuiHoveredModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;SACgB,QAAQ,CAAC,EAA0C;QAAzC,gCAAa,EAAE,gCAAa;IAClD,IAAI,CAAC,aAAa,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IAED,sBAAsB,CAAC,aAAa,CAAC,CAAC;IACtC,sBAAsB,CAAC,aAAa,CAAC,CAAC;IAEtC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;AAClD,CAAC;;IAKD;QAEa,qBAAgB,GAAG,IAAI,YAAY,EAAW,CAAC;KAa3D;IAVG,qCAAO,GAAP;QACI,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACpC;IAKD,mCAAK,GAAL,UAAM,CAAa;QACf,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACrC;IAZD;QADC,MAAM,EAAE;iEAC+C;IAGxD;QADC,YAAY,CAAC,YAAY,CAAC;sDAG1B;IAKD;QAHC,UAAU,CAAC,QAAQ,CAAC;QACpB,YAAY,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAC,CAAC;QACzC,YAAY,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,CAAC;oDAG3C;IAdQ,mBAAmB;QAH/B,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;SACjC,CAAC;OACW,mBAAmB,CAe/B;IAAD,0BAAC;CAfD;;;ICXA;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACRA;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/cdk",
3
- "version": "2.53.0",
3
+ "version": "2.55.0",
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",
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MAIN_MODULES = [
4
- {
5
- name: 'TuiRootModule',
6
- packageName: '@taiga-ui/core',
7
- },
8
4
  {
9
5
  name: 'BrowserAnimationsModule',
10
6
  packageName: '@angular/platform-browser/animations',
11
7
  },
8
+ {
9
+ name: 'TuiRootModule',
10
+ packageName: '@taiga-ui/core',
11
+ },
12
12
  ];
13
13
  exports.DIALOG_MODULES = [
14
14
  {
@@ -112,4 +112,34 @@ exports.CONSTS_TO_REPLACE = [
112
112
  moduleSpecifier: '@taiga-ui/kit',
113
113
  },
114
114
  },
115
+ {
116
+ from: {
117
+ name: 'TuiPdfViewerModule',
118
+ moduleSpecifier: '@taiga-ui/proprietary-banking',
119
+ },
120
+ to: {
121
+ name: 'TuiPdfViewerModule',
122
+ moduleSpecifier: '@taiga-ui/kit',
123
+ },
124
+ },
125
+ {
126
+ from: {
127
+ name: 'TuiPreviewHostModule',
128
+ moduleSpecifier: '@taiga-ui/proprietary-banking',
129
+ },
130
+ to: {
131
+ name: 'TuiPreviewModule',
132
+ moduleSpecifier: '@taiga-ui/addon-preview',
133
+ },
134
+ },
135
+ {
136
+ from: {
137
+ name: 'TuiProgressModule',
138
+ moduleSpecifier: '@taiga-ui/proprietary-core',
139
+ },
140
+ to: {
141
+ name: 'TuiProgressModule',
142
+ moduleSpecifier: '@taiga-ui/kit',
143
+ },
144
+ },
115
145
  ];
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.REMOVED_MODULES = [
4
4
  { name: 'TuiResizableColumnModule', moduleSpecifier: '@taiga-ui/addon-table' },
5
5
  { name: 'ScrollIntoViewModule', moduleSpecifier: '@taiga-ui/addon-doc' },
6
+ { name: 'TuiPreviewModule', moduleSpecifier: '@taiga-ui/proprietary-banking' },
6
7
  ];
@@ -49,4 +49,12 @@ export declare const TEMPLATE_COMMENTS: readonly [{
49
49
  readonly tag: "tui-range";
50
50
  readonly withAttr: "pluralize";
51
51
  readonly comment: "See examples how create labels for ticks without this property (outside the component): https://taiga-ui.dev/components/range#segments";
52
+ }, {
53
+ readonly tag: "tui-preview-host";
54
+ readonly withAttr: "ngProjectAs";
55
+ readonly comment: "\"Preview\"-component no longer needs it and requires only import of TuiPreviewModule to the main module. See \"Setup\"-section: https://taiga-ui.dev/components/preview/Setup";
56
+ }, {
57
+ readonly tag: "tui-progress";
58
+ readonly withAttr: "value";
59
+ readonly comment: "This legacy component was replaced by 3 new ones (https://taiga-ui.dev/components/progress-bar | https://taiga-ui.dev/components/progress-circle | https://taiga-ui.dev/components/progress-segmented ) ";
52
60
  }];
@@ -236,4 +236,14 @@ exports.TEMPLATE_COMMENTS = [
236
236
  withAttr: 'pluralize',
237
237
  comment: 'See examples how create labels for ticks without this property (outside the component): https://taiga-ui.dev/components/range#segments',
238
238
  },
239
+ {
240
+ tag: 'tui-preview-host',
241
+ withAttr: 'ngProjectAs',
242
+ comment: '"Preview"-component no longer needs it and requires only import of TuiPreviewModule to the main module. See "Setup"-section: https://taiga-ui.dev/components/preview/Setup',
243
+ },
244
+ {
245
+ tag: 'tui-progress',
246
+ withAttr: 'value',
247
+ comment: 'This legacy component was replaced by 3 new ones (https://taiga-ui.dev/components/progress-bar | https://taiga-ui.dev/components/progress-circle | https://taiga-ui.dev/components/progress-segmented ) ',
248
+ },
239
249
  ];
@@ -87,4 +87,14 @@ exports.MIGRATION_WARNINGS = [
87
87
  moduleSpecifier: '@taiga-ui/core',
88
88
  message: 'colorFallback has been deleted in 3.0, please use CSS variables',
89
89
  },
90
+ {
91
+ name: 'TuiInputSearchModule',
92
+ moduleSpecifier: '@taiga-ui/proprietary-core',
93
+ message: 'Use TuiInputModule (@taiga-ui/kit) with icon "tuiIconSearchLarge": https://taiga-ui.dev/components/input/API?iconAlign=left&icon=tuiIconSearchLarge',
94
+ },
95
+ {
96
+ name: 'TuiCarouselModule',
97
+ moduleSpecifier: '@taiga-ui/proprietary-core',
98
+ message: 'Proprietary Carousel is old and has different API. Use new version of the same module from @taiga-ui/kit. Also, check new API: https://taiga-ui.dev/components/carousel/API',
99
+ },
90
100
  ];
@@ -19,47 +19,30 @@ const colored_log_1 = require("../utils/colored-log");
19
19
  const migrate_date_time_1 = require("./steps/migrate-date-time");
20
20
  function updateToV3(_) {
21
21
  return (tree, context) => tslib_1.__awaiter(this, void 0, void 0, function* () {
22
- console.info('\x1b[35m', `taiga packages will be updated to ${versions_1.TAIGA_VERSION}`);
22
+ const t0 = performance.now();
23
+ colored_log_1.titleLog(`\n\n${colored_log_1.START_SYMBOL} Your packages will be updated to @taiga-ui/*@${versions_1.TAIGA_VERSION}\n`);
23
24
  const fileSystem = getFileSystem(tree);
24
- colored_log_1.infoLog('replacing deep imports...');
25
25
  replace_deep_import_1.replaceDeepImports();
26
- colored_log_1.successLog('deep imports replaced');
27
- colored_log_1.infoLog('replacing enums imports...');
28
26
  replace_enums_1.replaceEnums();
29
- colored_log_1.successLog('enums replaced');
30
- colored_log_1.infoLog('renaming types...');
31
27
  rename_types_1.renameTypes();
32
- colored_log_1.successLog('types renamed');
33
- colored_log_1.infoLog('replacing consts...');
34
- replace_const_1.replaceConsts();
35
- colored_log_1.successLog('constants replaced');
36
- colored_log_1.infoLog('replacing services...');
28
+ replace_const_1.replaceConstants();
37
29
  replace_services_1.replaceServices();
38
- colored_log_1.successLog('services replaced');
39
30
  show_warnings_1.showWarnings(context);
40
- colored_log_1.infoLog('migrating templates...');
41
31
  migrate_templates_1.migrateTemplates(fileSystem);
42
- colored_log_1.successLog('templates migrated');
43
32
  fileSystem.commitEdits();
44
33
  ng_morph_1.saveActiveProject();
45
34
  const updatedFileSystem = getFileSystem(tree);
46
- colored_log_1.infoLog('migrating sliders...');
47
35
  migrate_sliders_1.migrateSliders(updatedFileSystem);
48
- colored_log_1.successLog('sliders migrated');
49
- colored_log_1.infoLog('migrating progress bars');
50
36
  migrate_progress_1.migrateProgress(updatedFileSystem);
51
- colored_log_1.successLog('progress bars migrated');
52
- colored_log_1.infoLog('removing modules...');
53
37
  remove_module_1.removeModules();
54
- colored_log_1.successLog('modules removed');
55
- colored_log_1.infoLog('migrating taiga date/time ...');
56
38
  migrate_date_time_1.dateTimeMigrations();
57
- colored_log_1.successLog('date/time migrated');
58
- colored_log_1.infoLog('miscellaneous migrating...');
59
39
  replace_functions_1.replaceFunctions();
60
40
  miscellaneous_1.miscellaneousMigrations();
61
- colored_log_1.successLog('miscellaneous migrated');
62
41
  ng_morph_1.saveActiveProject();
42
+ const t1 = performance.now();
43
+ const sum = t1 - t0;
44
+ const result = sum > 1000 ? `${(sum / 1000).toFixed(2)} sec.` : `${sum.toFixed(2)} ms.`;
45
+ colored_log_1.titleLog(`${colored_log_1.FINISH_SYMBOL} We migrated packages to @taiga-ui/*@${versions_1.TAIGA_VERSION} in ${result} \n`);
63
46
  });
64
47
  }
65
48
  exports.updateToV3 = updateToV3;
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const ng_morph_1 = require("ng-morph");
4
4
  const get_named_import_references_1 = require("../../utils/get-named-import-references");
5
5
  const insert_todo_1 = require("../../utils/insert-todo");
6
+ const colored_log_1 = require("../../utils/colored-log");
6
7
  function dateTimeMigrations() {
8
+ colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} migrating taiga date/time...`);
7
9
  migrateProperty({
8
10
  namedImport: 'TuiDay',
9
11
  moduleSpecifier: '@taiga-ui/cdk',
@@ -73,6 +75,7 @@ function dateTimeMigrations() {
73
75
  callback: node => insertTodoBeforeNode(node, message),
74
76
  });
75
77
  });
78
+ colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} date/time migrated \n`);
76
79
  }
77
80
  exports.dateTimeMigrations = dateTimeMigrations;
78
81
  function migrateProperty({ namedImport, moduleSpecifier, from, callback, }) {
@@ -4,9 +4,11 @@ const ng_morph_1 = require("ng-morph");
4
4
  const get_component_templates_1 = require("../../utils/templates/get-component-templates");
5
5
  const elements_1 = require("../../utils/templates/elements");
6
6
  const template_resource_1 = require("../../utils/templates/template-resource");
7
+ const colored_log_1 = require("../../utils/colored-log");
7
8
  exports.DEPRECATED_PROGRESS_PIPES_REG = /\s*\|\s*tuiProgressColorSegments(Async\s*\|\s*async)?/gi;
8
9
  const PROPERTY_FOR_DEPRECATED_PIPES = '[color]';
9
10
  function migrateProgress(fileSystem) {
11
+ colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} migrating progress bars...`);
10
12
  const templateResources = get_component_templates_1.getComponentTemplates('**/**');
11
13
  for (const templateResource of templateResources) {
12
14
  replaceProgressColorSegmentsPipe(templateResource, fileSystem);
@@ -14,6 +16,7 @@ function migrateProgress(fileSystem) {
14
16
  fileSystem.commitEdits();
15
17
  ng_morph_1.saveActiveProject();
16
18
  ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree, '/', '**/**'));
19
+ colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} progress bars migrated \n`);
17
20
  }
18
21
  exports.migrateProgress = migrateProgress;
19
22
  function replaceProgressColorSegmentsPipe(templateResource, fileSystem) {
@@ -2,8 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const migrate_input_slider_1 = require("./migrate-input-slider");
4
4
  const migrate_input_range_1 = require("./migrate-input-range");
5
+ const colored_log_1 = require("../../../utils/colored-log");
5
6
  function migrateSliders(fileSystem) {
7
+ colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} migrating sliders...`);
6
8
  migrate_input_slider_1.migrateInputSlider(fileSystem);
7
9
  migrate_input_range_1.migrateInputRange(fileSystem);
10
+ colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} sliders migrated \n`);
8
11
  }
9
12
  exports.migrateSliders = migrateSliders;
@@ -8,9 +8,11 @@ const template_resource_1 = require("../../utils/templates/template-resource");
8
8
  const ng_morph_1 = require("ng-morph");
9
9
  const ng_component_1 = require("../../utils/angular/ng-component");
10
10
  const add_unique_import_1 = require("../../utils/add-unique-import");
11
+ const colored_log_1 = require("../../utils/colored-log");
11
12
  const START_TAG_OFFSET = 1;
12
13
  const END_TAG_OFFSET = 2;
13
14
  function migrateTemplates(fileSystem) {
15
+ colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} migrating templates...`);
14
16
  const componentWithTemplatesPaths = get_component_templates_1.getComponentTemplates('**/**');
15
17
  const actions = [
16
18
  replaceTags,
@@ -30,6 +32,7 @@ function migrateTemplates(fileSystem) {
30
32
  action({ resource, fileSystem, recorder });
31
33
  });
32
34
  });
35
+ colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} templates migrated \n`);
33
36
  }
34
37
  exports.migrateTemplates = migrateTemplates;
35
38
  function replaceAttrsByDirective({ resource, fileSystem, }) {
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const get_named_import_references_1 = require("../../utils/get-named-import-references");
4
4
  const ng_morph_1 = require("ng-morph");
5
5
  const insert_todo_1 = require("../../utils/insert-todo");
6
+ const colored_log_1 = require("../../utils/colored-log");
6
7
  function miscellaneousMigrations() {
8
+ colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} miscellaneous migrating...`);
7
9
  replaceEnumProperty({
8
10
  enumName: 'TuiCurrency',
9
11
  from: 'HongKong_dollar',
@@ -15,6 +17,7 @@ function miscellaneousMigrations() {
15
17
  to: 'HongKongDollar',
16
18
  });
17
19
  addWarningToMethod('TuiDirectiveStylesService', 'addStyle', 'addStyle method has been removed. Use components approach');
20
+ colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} miscellaneous migrated \n`);
18
21
  }
19
22
  exports.miscellaneousMigrations = miscellaneousMigrations;
20
23
  function addWarningToMethod(className, method, message) {
@@ -4,8 +4,11 @@ const ng_morph_1 = require("ng-morph");
4
4
  const get_named_import_references_1 = require("../../utils/get-named-import-references");
5
5
  const import_manipulations_1 = require("../../utils/import-manipulations");
6
6
  const modules_1 = require("../constants/modules");
7
+ const colored_log_1 = require("../../utils/colored-log");
7
8
  function removeModules() {
9
+ colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} removing modules...`);
8
10
  modules_1.REMOVED_MODULES.forEach(({ name, moduleSpecifier }) => removeModule(name, moduleSpecifier));
11
+ colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} modules removed \n`);
9
12
  }
10
13
  exports.removeModules = removeModules;
11
14
  function removeModule(name, moduleSpecifier) {
@@ -4,10 +4,11 @@ const ng_morph_1 = require("ng-morph");
4
4
  const get_named_import_references_1 = require("../../utils/get-named-import-references");
5
5
  const types_1 = require("../constants/types");
6
6
  const import_manipulations_1 = require("../../utils/import-manipulations");
7
+ const colored_log_1 = require("../../utils/colored-log");
7
8
  function renameTypes() {
8
- types_1.TYPES_TO_RENAME.forEach(({ from, to, moduleSpecifier, preserveGenerics }) => {
9
- renameType(from, to, moduleSpecifier, preserveGenerics);
10
- });
9
+ colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} renaming types...`);
10
+ types_1.TYPES_TO_RENAME.forEach(({ from, to, moduleSpecifier, preserveGenerics }) => renameType(from, to, moduleSpecifier, preserveGenerics));
11
+ colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} types renamed \n`);
11
12
  }
12
13
  exports.renameTypes = renameTypes;
13
14
  function renameType(from, to, moduleSpecifier, preserveGenerics = false) {
@@ -1,3 +1,3 @@
1
1
  import { ReplacementConst } from '../constants/consts';
2
- export declare function replaceConsts(): void;
2
+ export declare function replaceConstants(): void;
3
3
  export declare function replaceConst({ from, to }: ReplacementConst): void;
@@ -5,10 +5,13 @@ const ng_morph_1 = require("ng-morph");
5
5
  const import_manipulations_1 = require("../../utils/import-manipulations");
6
6
  const add_unique_import_1 = require("../../utils/add-unique-import");
7
7
  const consts_1 = require("../constants/consts");
8
- function replaceConsts() {
8
+ const colored_log_1 = require("../../utils/colored-log");
9
+ function replaceConstants() {
10
+ colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing constants...`);
9
11
  consts_1.CONSTS_TO_REPLACE.forEach(constToReplace => replaceConst(constToReplace));
12
+ colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} constants replaced \n`);
10
13
  }
11
- exports.replaceConsts = replaceConsts;
14
+ exports.replaceConstants = replaceConstants;
12
15
  function replaceConst({ from, to }) {
13
16
  const references = get_named_import_references_1.getNamedImportReferences(from.name, from.moduleSpecifier);
14
17
  references.forEach(ref => {
@@ -1,12 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const ng_morph_1 = require("ng-morph");
4
+ const colored_log_1 = require("../../utils/colored-log");
4
5
  const DEEP_REGEX = /(@taiga-ui\/\w+)\/.*/;
5
6
  function replaceDeepImports() {
7
+ colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing deep imports...`);
6
8
  const deepImports = ng_morph_1.getImports('**/**').filter(imp => DEEP_REGEX.test(imp.getModuleSpecifier().getLiteralValue()));
7
9
  ng_morph_1.editImports(deepImports, deepImport => {
8
10
  const specifier = deepImport.moduleSpecifier.replace(DEEP_REGEX, '$1');
9
11
  return { moduleSpecifier: specifier };
10
12
  });
13
+ colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} deep imports replaced \n`);
11
14
  }
12
15
  exports.replaceDeepImports = replaceDeepImports;
@@ -4,10 +4,11 @@ const ng_morph_1 = require("ng-morph");
4
4
  const get_named_import_references_1 = require("../../utils/get-named-import-references");
5
5
  const enums_1 = require("../constants/enums");
6
6
  const import_manipulations_1 = require("../../utils/import-manipulations");
7
+ const colored_log_1 = require("../../utils/colored-log");
7
8
  function replaceEnums() {
8
- enums_1.ENUMS_TO_REPLACE.forEach(({ name, replaceValues, keepAsType }) => {
9
- replaceEnumWithString(name, replaceValues, keepAsType);
10
- });
9
+ colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing enums imports...`);
10
+ enums_1.ENUMS_TO_REPLACE.forEach(({ name, replaceValues, keepAsType }) => replaceEnumWithString(name, replaceValues, keepAsType));
11
+ colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} enums replaced \n`);
11
12
  }
12
13
  exports.replaceEnums = replaceEnums;
13
14
  function replaceEnumWithString(enumName, replaceValues, keepAsType = true) {
@@ -4,12 +4,15 @@ const get_named_import_references_1 = require("../../utils/get-named-import-refe
4
4
  const ng_morph_1 = require("ng-morph");
5
5
  const import_manipulations_1 = require("../../utils/import-manipulations");
6
6
  const deprecated_functions_1 = require("../constants/deprecated-functions");
7
+ const colored_log_1 = require("../../utils/colored-log");
7
8
  function replaceFunctions() {
9
+ colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} functions replacing...`);
8
10
  replacePadStart(get_named_import_references_1.getNamedImportReferences('padStart', '@taiga-ui/cdk'));
9
11
  replaceFallbackValue(get_named_import_references_1.getNamedImportReferences('fallbackValue', '@taiga-ui/cdk'));
10
12
  replaceCustomEvent(get_named_import_references_1.getNamedImportReferences('tuiCustomEvent', '@taiga-ui/cdk'));
11
13
  replaceClosestElement(get_named_import_references_1.getNamedImportReferences('getClosestElement', '@taiga-ui/cdk'));
12
14
  replaceDeprecatedFunction();
15
+ colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} functions replaced \n`);
13
16
  }
14
17
  exports.replaceFunctions = replaceFunctions;
15
18
  function replaceDeprecatedFunction() {
@@ -7,13 +7,13 @@ const import_manipulations_1 = require("../../utils/import-manipulations");
7
7
  const add_unique_import_1 = require("../../utils/add-unique-import");
8
8
  const colored_log_1 = require("../../utils/colored-log");
9
9
  function replaceServices() {
10
- services_1.SERVICES_TO_REPLACE.forEach(service => {
11
- colored_log_1.infoLog(`replacing ${service.from.name}`);
12
- replaceService(service);
13
- });
10
+ colored_log_1.infoLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} replacing services...`);
11
+ services_1.SERVICES_TO_REPLACE.forEach(service => replaceService(service));
12
+ colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} services replaced \n`);
14
13
  }
15
14
  exports.replaceServices = replaceServices;
16
15
  function replaceService({ from, to, replaceMethods }) {
16
+ colored_log_1.processLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.PROCESSING_SYMBOL}replacing ${from.name}...`);
17
17
  const references = get_named_import_references_1.getNamedImportReferences(from.name, from.moduleSpecifier);
18
18
  references.forEach(ref => {
19
19
  const parent = ref.getParent();
@@ -1,2 +1,10 @@
1
+ export declare function processLog(message: string): void;
1
2
  export declare function successLog(message: string): void;
2
3
  export declare function infoLog(message: string): void;
4
+ export declare function titleLog(message: string): void;
5
+ export declare const SMALL_TAB_SYMBOL = " ";
6
+ export declare const START_SYMBOL = "\uD83D\uDE80";
7
+ export declare const FINISH_SYMBOL = "\uD83C\uDFC6";
8
+ export declare const REPLACE_SYMBOL = "\u26A1\uFE0F";
9
+ export declare const PROCESSING_SYMBOL = "\u2611\uFE0F ";
10
+ export declare const SUCCESS_SYMBOL = "\u2705 ";
@@ -1,10 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ function processLog(message) {
4
+ console.info('\x1b[36m%s\x1b[0m', message);
5
+ }
6
+ exports.processLog = processLog;
3
7
  function successLog(message) {
4
- console.info('\x1B[32m%s\x1B[0m', message, '\u2713');
8
+ console.info('\x1B[32m%s\x1B[0m', message);
5
9
  }
6
10
  exports.successLog = successLog;
7
11
  function infoLog(message) {
8
12
  console.info('\x1B[34m%s\x1B[0m', message);
9
13
  }
10
14
  exports.infoLog = infoLog;
15
+ function titleLog(message) {
16
+ console.info('\x1b[35m', message);
17
+ }
18
+ exports.titleLog = titleLog;
19
+ exports.SMALL_TAB_SYMBOL = ` `; // @note: if you use \t then we have big gaps
20
+ exports.START_SYMBOL = `🚀`;
21
+ exports.FINISH_SYMBOL = `🏆`;
22
+ exports.REPLACE_SYMBOL = `⚡️`;
23
+ exports.PROCESSING_SYMBOL = `☑️ `;
24
+ exports.SUCCESS_SYMBOL = `✅ `;