@taiga-ui/cdk 4.52.0-canary.6c67ccf → 4.52.0-canary.91aeb4a

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 (130) hide show
  1. package/classes/index.d.ts +0 -1
  2. package/constants/index.d.ts +0 -1
  3. package/constants/used-icons.d.ts +1 -1
  4. package/constants/version.d.ts +1 -1
  5. package/constants/version.js +1 -1
  6. package/date-time/day.d.ts +1 -1
  7. package/date-time/time.d.ts +2 -2
  8. package/date-time/types.d.ts +0 -5
  9. package/directives/active-zone/active-zone.directive.d.ts +4 -3
  10. package/directives/animated/animated.directive.d.ts +0 -1
  11. package/directives/auto-focus/autofocus.options.d.ts +2 -2
  12. package/directives/index.d.ts +1 -0
  13. package/directives/let/let.directive.d.ts +1 -2
  14. package/directives/repeat-times/repeat-times.directive.d.ts +2 -2
  15. package/directives/with-styles/index.d.ts +1 -0
  16. package/directives/with-styles/with-styles.directive.d.ts +10 -0
  17. package/fesm2022/taiga-ui-cdk-classes.mjs +2 -73
  18. package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
  19. package/fesm2022/taiga-ui-cdk-constants.mjs +3 -16
  20. package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
  21. package/fesm2022/taiga-ui-cdk-date-time.mjs +14 -2
  22. package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
  23. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +20 -24
  24. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
  25. package/fesm2022/taiga-ui-cdk-directives-animated.mjs +41 -38
  26. package/fesm2022/taiga-ui-cdk-directives-animated.mjs.map +1 -1
  27. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +7 -15
  28. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -1
  29. package/fesm2022/taiga-ui-cdk-directives-let.mjs +1 -2
  30. package/fesm2022/taiga-ui-cdk-directives-let.mjs.map +1 -1
  31. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +7 -1
  32. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
  33. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +6 -6
  34. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +1 -1
  35. package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs +29 -0
  36. package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs.map +1 -0
  37. package/fesm2022/taiga-ui-cdk-directives.mjs +1 -0
  38. package/fesm2022/taiga-ui-cdk-directives.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-cdk-observables.mjs +8 -4
  40. package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-cdk-portals.mjs +126 -0
  42. package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -0
  43. package/fesm2022/taiga-ui-cdk-tokens.mjs +9 -8
  44. package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-cdk-utils-browser.mjs +1 -23
  46. package/fesm2022/taiga-ui-cdk-utils-browser.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-cdk-utils-color.mjs +1 -1
  48. package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-cdk-utils-di.mjs +1 -2
  50. package/fesm2022/taiga-ui-cdk-utils-di.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-cdk-utils-dom.mjs +15 -23
  52. package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-cdk-utils-focus.mjs +13 -14
  54. package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +6 -12
  56. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-cdk.mjs +1 -0
  58. package/fesm2022/taiga-ui-cdk.mjs.map +1 -1
  59. package/index.d.ts +1 -0
  60. package/package.json +18 -10
  61. package/pipes/obfuscate/obfuscate.options.d.ts +1 -1
  62. package/portals/directive.d.ts +11 -0
  63. package/portals/index.d.ts +4 -0
  64. package/portals/portal.d.ts +25 -0
  65. package/portals/portals.d.ts +12 -0
  66. package/portals/service.d.ts +15 -0
  67. package/schematics/collection.json +2 -1
  68. package/schematics/migrate-tui-let/index.js +4 -3
  69. package/schematics/migrate-tui-let/index.js.map +1 -1
  70. package/schematics/migrate-tui-let/schema.json +7 -0
  71. package/schematics/ng-add/constants/versions.d.ts +1 -1
  72. package/schematics/ng-update/{v4/steps → utils}/replace-functions.d.ts +1 -1
  73. package/schematics/ng-update/{v4/steps → utils}/replace-functions.js +1 -1
  74. package/schematics/ng-update/utils/replace-functions.js.map +1 -0
  75. package/schematics/ng-update/v4/index.js +1 -1
  76. package/schematics/ng-update/v4/index.js.map +1 -1
  77. package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js +1 -1
  78. package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js.map +1 -1
  79. package/schematics/ng-update/v4/steps/constants/migration-warnings.js +1 -1
  80. package/schematics/ng-update/v4/steps/constants/migration-warnings.js.map +1 -1
  81. package/schematics/ng-update/v4/steps/restore-tui-mapper.js +1 -1
  82. package/schematics/ng-update/v4/steps/restore-tui-mapper.js.map +1 -1
  83. package/schematics/ng-update/v4/steps/restore-tui-matcher.js +1 -1
  84. package/schematics/ng-update/v4/steps/restore-tui-matcher.js.map +1 -1
  85. package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js +1 -1
  86. package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js.map +1 -1
  87. package/schematics/ng-update/v5/index.js +12 -0
  88. package/schematics/ng-update/v5/index.js.map +1 -1
  89. package/schematics/ng-update/v5/steps/constants/functions.d.ts +2 -0
  90. package/schematics/ng-update/v5/steps/constants/functions.js +72 -0
  91. package/schematics/ng-update/v5/steps/constants/functions.js.map +1 -0
  92. package/schematics/ng-update/v5/steps/constants/html-comments.d.ts +2 -0
  93. package/schematics/ng-update/v5/steps/constants/html-comments.js +11 -0
  94. package/schematics/ng-update/v5/steps/constants/html-comments.js.map +1 -0
  95. package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.d.ts +2 -0
  96. package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js +22 -0
  97. package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js.map +1 -0
  98. package/schematics/ng-update/v5/steps/migrate-templates.d.ts +17 -0
  99. package/schematics/ng-update/v5/steps/migrate-templates.js +42 -0
  100. package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -0
  101. package/schematics/ng-update/v5/steps/templates/migrate-input-year.d.ts +8 -0
  102. package/schematics/ng-update/v5/steps/templates/migrate-input-year.js +52 -0
  103. package/schematics/ng-update/v5/steps/templates/migrate-input-year.js.map +1 -0
  104. package/schematics/utils/angular-json-manipulations.js +0 -2
  105. package/schematics/utils/angular-json-manipulations.js.map +1 -1
  106. package/schematics/utils/run-migration.d.ts +14 -0
  107. package/schematics/utils/run-migration.js +26 -0
  108. package/schematics/utils/run-migration.js.map +1 -0
  109. package/schematics/utils/templates/elements.js +4 -12
  110. package/schematics/utils/templates/elements.js.map +1 -1
  111. package/schematics/utils/templates/ng-component-input-manipulations.js +1 -3
  112. package/schematics/utils/templates/ng-component-input-manipulations.js.map +1 -1
  113. package/tokens/environment.d.ts +5 -0
  114. package/utils/browser/index.d.ts +0 -2
  115. package/utils/di/create-options.d.ts +2 -2
  116. package/utils/dom/get-element-obscurers.d.ts +1 -1
  117. package/utils/focus/blur-native-focused.d.ts +1 -1
  118. package/utils/focus/get-native-focused.d.ts +1 -1
  119. package/utils/focus/is-native-focused-in.d.ts +1 -1
  120. package/utils/focus/is-native-focused.d.ts +1 -1
  121. package/utils/focus/is-native-keyboard-focusable.d.ts +1 -1
  122. package/utils/focus/is-native-mouse-focusable.d.ts +1 -1
  123. package/utils/miscellaneous/index.d.ts +0 -1
  124. package/utils/miscellaneous/provide-options.d.ts +2 -2
  125. package/classes/portals.d.ts +0 -33
  126. package/constants/allow-signal-writes.d.ts +0 -2
  127. package/schematics/ng-update/v4/steps/replace-functions.js.map +0 -1
  128. package/utils/browser/is-apple.d.ts +0 -11
  129. package/utils/browser/is-ios.d.ts +0 -6
  130. package/utils/miscellaneous/directive-listener.d.ts +0 -9
@@ -1,5 +1,3 @@
1
- export * from './is-apple';
2
1
  export * from './is-edge';
3
2
  export * from './is-firefox';
4
- export * from './is-ios';
5
3
  export * from './is-safari';
@@ -1,5 +1,5 @@
1
- import { type FactoryProvider, InjectionToken, type ProviderToken } from '@angular/core';
1
+ import { type FactoryProvider, InjectionToken } from '@angular/core';
2
2
  export declare function tuiCreateOptions<T>(defaults: T): [
3
3
  token: InjectionToken<T>,
4
- provider: (item: Partial<T> | ProviderToken<Partial<T>> | (() => Partial<T>)) => FactoryProvider
4
+ provider: (item: Partial<T> | (() => Partial<T>)) => FactoryProvider
5
5
  ];
@@ -6,4 +6,4 @@
6
6
  * function tuiGetElementObscures(element: Element): readonly [Element, Element, Element, Element] | [] | null
7
7
  * ```
8
8
  */
9
- export declare function tuiGetElementObscures(element: Element): readonly [Element, Element, Element, Element] | [] | null;
9
+ export declare function tuiGetElementObscures(element: Element): readonly Element[] | null;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Finds and blurs current active element, including shadow DOM
3
3
  */
4
- export declare function tuiBlurNativeFocused(doc: Document): void;
4
+ export declare function tuiBlurFocused(doc: Document): void;
@@ -3,4 +3,4 @@
3
3
  *
4
4
  * @return element or null
5
5
  */
6
- export declare function tuiGetNativeFocused({ activeElement }: Document): Element | null;
6
+ export declare function tuiGetFocused({ activeElement }: Document): Element | null;
@@ -4,4 +4,4 @@
4
4
  * @param node
5
5
  * @return true if focused node is contained within element
6
6
  */
7
- export declare function tuiIsNativeFocusedIn(node?: Node | null): boolean;
7
+ export declare function tuiIsFocusedIn(node?: Node | null): boolean;
@@ -6,4 +6,4 @@
6
6
  * @param node or null (as a common return value of DOM nodes walking)
7
7
  * @return true if focused
8
8
  */
9
- export declare function tuiIsNativeFocused(node?: Node | null): boolean;
9
+ export declare function tuiIsFocused(node?: Node | null): boolean;
@@ -4,4 +4,4 @@
4
4
  * be focused, for example element can have display: none applied to it or any other
5
5
  * circumstances could prevent actual focus.
6
6
  */
7
- export declare function tuiIsNativeKeyboardFocusable(element: Element): boolean;
7
+ export declare function tuiIsKeyboardFocusable(element: Element): boolean;
@@ -1 +1 @@
1
- export declare function tuiIsNativeMouseFocusable(element: Element): boolean;
1
+ export declare function tuiIsMouseFocusable(element: Element): boolean;
@@ -6,7 +6,6 @@ export * from './count-filled-controls';
6
6
  export * from './create-token';
7
7
  export * from './default-sort';
8
8
  export * from './directive-binding';
9
- export * from './directive-listener';
10
9
  export * from './distance-between-touches';
11
10
  export * from './ease-in-out-quad';
12
11
  export * from './flat-length';
@@ -1,2 +1,2 @@
1
- import { type FactoryProvider, type InjectionToken, type ProviderToken } from '@angular/core';
2
- export declare function tuiProvideOptions<T>(provide: InjectionToken<T>, options: Partial<T> | ProviderToken<Partial<T>> | (() => Partial<T>), fallback: T): FactoryProvider;
1
+ import { type FactoryProvider, type InjectionToken } from '@angular/core';
2
+ export declare function tuiProvideOptions<T>(provide: InjectionToken<T>, options: Partial<T> | (() => Partial<T>), fallback: T): FactoryProvider;
@@ -1,33 +0,0 @@
1
- import { type ComponentRef, type EmbeddedViewRef, type Provider, type TemplateRef, type ViewRef } from '@angular/core';
2
- import { type PolymorpheusComponent } from '@taiga-ui/polymorpheus';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Abstract class for host element for dynamically created portals.
6
- */
7
- export declare abstract class TuiPortals {
8
- private readonly vcr;
9
- private readonly injector;
10
- protected readonly nothing: void;
11
- addComponentChild<C>(component: PolymorpheusComponent<C>): ComponentRef<C>;
12
- addTemplateChild<C>(templateRef: TemplateRef<C>, context?: C): EmbeddedViewRef<C>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiPortals, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiPortals, never, never, {}, {}, never, never, true, never>;
15
- }
16
- /**
17
- * Abstract service for displaying portals
18
- */
19
- export declare abstract class TuiPortalService {
20
- protected host?: TuiPortals;
21
- attach(host: TuiPortals): void;
22
- add<C>(component: PolymorpheusComponent<C>): ComponentRef<C>;
23
- remove<C>({ hostView }: ComponentRef<C>): void;
24
- addTemplate<C>(templateRef: TemplateRef<C>, context?: C): EmbeddedViewRef<C>;
25
- removeTemplate<C>(viewRef: EmbeddedViewRef<C> | ViewRef): void;
26
- protected get safeHost(): TuiPortals;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiPortalService, never>;
28
- static ɵprov: i0.ɵɵInjectableDeclaration<TuiPortalService>;
29
- }
30
- export declare function tuiAsPortal(portal: typeof TuiPortalService): Provider;
31
- export declare class TuiNoHostException extends Error {
32
- constructor();
33
- }
@@ -1,2 +0,0 @@
1
- import { type CreateEffectOptions } from '@angular/core';
2
- export declare const TUI_ALLOW_SIGNAL_WRITES: CreateEffectOptions;
@@ -1 +0,0 @@
1
- {"version":3,"file":"replace-functions.js","sourceRoot":"","sources":["../../../../../../projects/cdk/schematics/ng-update/v4/steps/replace-functions.ts"],"names":[],"mappings":";;AAKA,4CAmBC;AAxBD,uCAA8B;AAE9B,4FAAoF;AAGpF,SAAgB,gBAAgB,CAAC,SAAqC;IAClE,SAAS,CAAC,OAAO,CAAC,CAAC,EAAC,IAAI,EAAE,EAAE,EAAE,eAAe,EAAC,EAAE,EAAE;QAC9C,IAAA,sDAAwB,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YAC5D,IAAI,GAAG,CAAC,YAAY,EAAE,EAAE,CAAC;gBACrB,OAAO;YACX,CAAC;YAED,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,EAAE,CAAC;YAE/B,IAAI,eAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,eAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC;gBAClE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,eAAe,CACnB,MAAM,aAAN,MAAM,uBAAN,MAAM,CACA,OAAO,CAAC,EAAC,oBAAoB,EAAE,KAAK,EAAC,EACtC,IAAI,GACJ,OAAO,CAAC,IAAI,EAAE,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,IAAI,CAAC,CACjC,CAAC;YACN,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * @description:
3
- * All Chrome / Chromium-based browsers will return MacIntel on macOS,
4
- * no matter what the hardware architecture is. See the source code here:
5
- * https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/frame/navigator_id.cc;l=64;drc=703d3c472cf27470dad21a3f2c8972aca3732cd6
6
- * But maybe in future years, it will be changed to MacM1
7
- *
8
- * Documentation:
9
- * https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform
10
- */
11
- export declare function tuiIsApple(navigator: Navigator): boolean;
@@ -1,6 +0,0 @@
1
- import { isIos } from '@ng-web-apis/platform';
2
- /**
3
- * @deprecated: drop in v5, use import {isApple} from '@ng-web-apis/platform';
4
- * @param navigator
5
- */
6
- export declare const tuiIsIos: typeof isIos;
@@ -1,9 +0,0 @@
1
- import { type InjectOptions, type ProviderToken, type Signal } from '@angular/core';
2
- import { type Observable } from 'rxjs';
3
- type OutputKeysOf<T> = {
4
- [K in keyof T]: T[K] extends Observable<any> | Signal<any> ? K : never;
5
- }[keyof T];
6
- type OutputTypeOf<T> = T extends Signal<infer R> ? R : T extends Observable<infer O> ? O : never;
7
- /** @deprecated remove in v5 */
8
- export declare function tuiDirectiveListener<T, K extends OutputKeysOf<T>>(token: ProviderToken<T>, key: K, options?: InjectOptions): Signal<OutputTypeOf<T[K]>>;
9
- export {};