@taiga-ui/cdk 4.10.0 → 4.12.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 (66) hide show
  1. package/constants/version.d.ts +1 -1
  2. package/constants/version.js +1 -1
  3. package/directives/click-outside/click-outside.directive.d.ts +3 -0
  4. package/directives/index.d.ts +1 -0
  5. package/directives/visual-viewport/index.d.ts +1 -0
  6. package/directives/visual-viewport/visual-viewport.directive.d.ts +8 -0
  7. package/esm2022/classes/control.mjs +2 -2
  8. package/esm2022/constants/version.mjs +2 -2
  9. package/esm2022/directives/click-outside/click-outside.directive.mjs +4 -1
  10. package/esm2022/directives/hovered/hovered.service.mjs +3 -5
  11. package/esm2022/directives/index.mjs +2 -1
  12. package/esm2022/directives/visual-viewport/index.mjs +2 -0
  13. package/esm2022/directives/visual-viewport/taiga-ui-cdk-directives-visual-viewport.mjs +5 -0
  14. package/esm2022/directives/visual-viewport/visual-viewport.directive.mjs +34 -0
  15. package/esm2022/observables/watch.mjs +3 -2
  16. package/esm2022/pipes/replace/replace.pipe.mjs +1 -1
  17. package/esm2022/services/popover.service.mjs +1 -1
  18. package/esm2022/services/theme-color.service.mjs +4 -2
  19. package/esm2022/tokens/environment.mjs +4 -3
  20. package/esm2022/utils/browser/is-ios.mjs +7 -7
  21. package/esm2022/utils/color/parse-color.mjs +5 -5
  22. package/esm2022/utils/dom/element-checks.mjs +3 -2
  23. package/esm2022/utils/focus/is-native-keyboard-focusable.mjs +7 -7
  24. package/esm2022/utils/miscellaneous/is-valid-url.mjs +2 -2
  25. package/esm2022/utils/miscellaneous/provide-options.mjs +4 -5
  26. package/fesm2022/taiga-ui-cdk-classes.mjs +1 -1
  27. package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
  28. package/fesm2022/taiga-ui-cdk-constants.mjs +1 -1
  29. package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +3 -0
  31. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +2 -4
  33. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs +40 -0
  35. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs.map +1 -0
  36. package/fesm2022/taiga-ui-cdk-directives.mjs +1 -0
  37. package/fesm2022/taiga-ui-cdk-directives.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-cdk-observables.mjs +2 -2
  39. package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-cdk-pipes-replace.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-cdk-services.mjs +3 -1
  42. package/fesm2022/taiga-ui-cdk-services.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-cdk-tokens.mjs +3 -2
  44. package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-cdk-utils-browser.mjs +7 -5
  46. package/fesm2022/taiga-ui-cdk-utils-browser.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-cdk-utils-color.mjs +4 -4
  48. package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-cdk-utils-dom.mjs +2 -1
  50. package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-cdk-utils-focus.mjs +6 -6
  52. package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +4 -5
  54. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
  55. package/observables/watch.d.ts +2 -2
  56. package/package.json +15 -7
  57. package/pipes/replace/replace.pipe.d.ts +1 -1
  58. package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.js +0 -5
  59. package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js +2 -2
  60. package/schematics/utils/is-ci.d.ts +3 -0
  61. package/schematics/utils/is-ci.js +3 -0
  62. package/schematics/utils/progress.js +1 -2
  63. package/services/popover.service.d.ts +1 -1
  64. package/services/theme-color.service.d.ts +2 -1
  65. package/utils/browser/is-ios.d.ts +6 -1
  66. package/utils/dom/element-checks.d.ts +1 -1
@@ -1 +1,4 @@
1
+ /**
2
+ * @deprecated: drop in v5.0
3
+ */
1
4
  export declare function tuiIsCI(): boolean;
@@ -2,6 +2,9 @@
2
2
  /// <reference types="node" />
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.tuiIsCI = void 0;
5
+ /**
6
+ * @deprecated: drop in v5.0
7
+ */
5
8
  function tuiIsCI() {
6
9
  return (process.env.TUI_CI === 'true' ||
7
10
  !!process.env.CI || // Another CI
@@ -4,11 +4,10 @@ exports.setupProgressLogger = void 0;
4
4
  /// <reference types="node" />
5
5
  const node_readline_1 = require("node:readline");
6
6
  const ng_morph_1 = require("ng-morph");
7
- const is_ci_1 = require("./is-ci");
8
7
  function setupProgressLogger({ total, prefix = '', tabs = 2, }) {
9
8
  let i = 1;
10
9
  return (message, incrementIndex = true) => {
11
- if ((0, is_ci_1.tuiIsCI)()) {
10
+ if (process.env.CI) {
12
11
  return;
13
12
  }
14
13
  const isLast = i === total;
@@ -17,8 +17,8 @@ export type TuiPopover<T, O> = T & TuiPopoverContext<O> & {
17
17
  export declare abstract class TuiPopoverService<T, K = void> {
18
18
  protected readonly options: T;
19
19
  private readonly component;
20
- private readonly items$;
21
20
  private readonly id;
21
+ protected readonly items$: BehaviorSubject<ReadonlyArray<TuiPopover<T, any>>>;
22
22
  constructor(items: ProviderToken<BehaviorSubject<ReadonlyArray<TuiPopover<T, any>>>>, component: Type<any>, options?: T);
23
23
  open<G = void>(content: PolymorpheusContent<T & TuiPopoverContext<K extends void ? G : K>>, options?: Partial<T>): Observable<K extends void ? G : K>;
24
24
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiPopoverService<any, any>, never>;
@@ -5,9 +5,10 @@ interface TuiThemeColor {
5
5
  set color(value: string);
6
6
  }
7
7
  export declare class TuiThemeColorService implements TuiThemeColor {
8
- private readonly current;
8
+ private current;
9
9
  private readonly doc;
10
10
  private readonly meta;
11
+ constructor();
11
12
  get color(): string;
12
13
  set color(content: string);
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiThemeColorService, never>;
@@ -1 +1,6 @@
1
- export declare function tuiIsIos(navigator: Navigator): boolean;
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;
@@ -2,5 +2,5 @@ export declare function tuiIsInput(element: Element): element is HTMLInputElemen
2
2
  export declare function tuiIsTextarea(element: Element): element is HTMLTextAreaElement;
3
3
  export declare function tuiIsTextfield(element: Element): element is HTMLInputElement | HTMLTextAreaElement;
4
4
  export declare function tuiIsElement(node?: Element | EventTarget | Node | null): node is Element;
5
- export declare function tuiIsHTMLElement(node: any): node is HTMLElement;
5
+ export declare function tuiIsHTMLElement(node: unknown): node is HTMLElement;
6
6
  export declare function tuiIsTextNode(node: Node): node is Text;