@taiga-ui/cdk 4.52.0-canary.e444d19 → 4.52.0-canary.ece97e9
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.
- package/classes/index.d.ts +0 -1
- package/constants/index.d.ts +0 -1
- package/constants/used-icons.d.ts +1 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/date-time/day.d.ts +1 -1
- package/date-time/time.d.ts +2 -2
- package/date-time/types.d.ts +0 -5
- package/directives/active-zone/active-zone.directive.d.ts +4 -3
- package/directives/animated/animated.directive.d.ts +0 -1
- package/directives/auto-focus/autofocus.options.d.ts +2 -2
- package/directives/index.d.ts +1 -0
- package/directives/let/let.directive.d.ts +1 -2
- package/directives/repeat-times/repeat-times.directive.d.ts +2 -2
- package/directives/with-styles/index.d.ts +1 -0
- package/directives/with-styles/with-styles.directive.d.ts +10 -0
- package/fesm2022/taiga-ui-cdk-classes.mjs +2 -73
- package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs +3 -16
- package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-date-time.mjs +14 -2
- package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +20 -24
- package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-animated.mjs +41 -38
- package/fesm2022/taiga-ui-cdk-directives-animated.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +7 -15
- package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-let.mjs +1 -2
- package/fesm2022/taiga-ui-cdk-directives-let.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +7 -1
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +6 -6
- package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs +29 -0
- package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-directives.mjs +1 -0
- package/fesm2022/taiga-ui-cdk-directives.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-observables.mjs +8 -4
- package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-portals.mjs +126 -0
- package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -0
- package/fesm2022/taiga-ui-cdk-tokens.mjs +9 -8
- package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-browser.mjs +1 -23
- package/fesm2022/taiga-ui-cdk-utils-browser.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-color.mjs +1 -1
- package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-di.mjs +1 -2
- package/fesm2022/taiga-ui-cdk-utils-di.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs +15 -23
- package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs +13 -14
- package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +6 -12
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk.mjs +1 -0
- package/fesm2022/taiga-ui-cdk.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +14 -6
- package/pipes/obfuscate/obfuscate.options.d.ts +1 -1
- package/portals/directive.d.ts +11 -0
- package/portals/index.d.ts +4 -0
- package/portals/portal.d.ts +25 -0
- package/portals/portals.d.ts +12 -0
- package/portals/service.d.ts +15 -0
- package/schematics/collection.json +2 -1
- package/schematics/migrate-tui-let/index.js +4 -3
- package/schematics/migrate-tui-let/index.js.map +1 -1
- package/schematics/migrate-tui-let/schema.json +7 -0
- package/schematics/ng-add/constants/versions.d.ts +1 -1
- package/schematics/ng-update/{v4/steps → utils}/replace-functions.d.ts +1 -1
- package/schematics/ng-update/{v4/steps → utils}/replace-functions.js +1 -1
- package/schematics/ng-update/utils/replace-functions.js.map +1 -0
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v4/index.js.map +1 -1
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js +1 -1
- package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js.map +1 -1
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js +1 -1
- package/schematics/ng-update/v4/steps/constants/migration-warnings.js.map +1 -1
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js +1 -1
- package/schematics/ng-update/v4/steps/restore-tui-mapper.js.map +1 -1
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js +1 -1
- package/schematics/ng-update/v4/steps/restore-tui-matcher.js.map +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js +1 -1
- package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js.map +1 -1
- package/schematics/ng-update/v5/index.js +12 -0
- package/schematics/ng-update/v5/index.js.map +1 -1
- package/schematics/ng-update/v5/steps/constants/functions.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/functions.js +72 -0
- package/schematics/ng-update/v5/steps/constants/functions.js.map +1 -0
- package/schematics/ng-update/v5/steps/constants/html-comments.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/html-comments.js +11 -0
- package/schematics/ng-update/v5/steps/constants/html-comments.js.map +1 -0
- package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.d.ts +2 -0
- package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js +22 -0
- package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js.map +1 -0
- package/schematics/ng-update/v5/steps/migrate-templates.d.ts +17 -0
- package/schematics/ng-update/v5/steps/migrate-templates.js +42 -0
- package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -0
- package/schematics/ng-update/v5/steps/templates/migrate-input-year.d.ts +8 -0
- package/schematics/ng-update/v5/steps/templates/migrate-input-year.js +52 -0
- package/schematics/ng-update/v5/steps/templates/migrate-input-year.js.map +1 -0
- package/schematics/utils/angular-json-manipulations.js +0 -2
- package/schematics/utils/angular-json-manipulations.js.map +1 -1
- package/schematics/utils/run-migration.d.ts +14 -0
- package/schematics/utils/run-migration.js +26 -0
- package/schematics/utils/run-migration.js.map +1 -0
- package/schematics/utils/templates/elements.js +4 -12
- package/schematics/utils/templates/elements.js.map +1 -1
- package/schematics/utils/templates/ng-component-input-manipulations.js +1 -3
- package/schematics/utils/templates/ng-component-input-manipulations.js.map +1 -1
- package/tokens/environment.d.ts +5 -0
- package/utils/browser/index.d.ts +0 -2
- package/utils/di/create-options.d.ts +2 -2
- package/utils/dom/get-element-obscurers.d.ts +1 -1
- package/utils/focus/blur-native-focused.d.ts +1 -1
- package/utils/focus/get-native-focused.d.ts +1 -1
- package/utils/focus/is-native-focused-in.d.ts +1 -1
- package/utils/focus/is-native-focused.d.ts +1 -1
- package/utils/focus/is-native-keyboard-focusable.d.ts +1 -1
- package/utils/focus/is-native-mouse-focusable.d.ts +1 -1
- package/utils/miscellaneous/index.d.ts +0 -1
- package/utils/miscellaneous/provide-options.d.ts +2 -2
- package/classes/portals.d.ts +0 -33
- package/constants/allow-signal-writes.d.ts +0 -2
- package/schematics/ng-update/v4/steps/replace-functions.js.map +0 -1
- package/utils/browser/is-apple.d.ts +0 -11
- package/utils/browser/is-ios.d.ts +0 -6
- package/utils/miscellaneous/directive-listener.d.ts +0 -9
|
@@ -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
|
|
7
|
+
export declare function tuiIsKeyboardFocusable(element: Element): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function
|
|
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
|
|
2
|
-
export declare function tuiProvideOptions<T>(provide: InjectionToken<T>, options: Partial<T> |
|
|
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;
|
package/classes/portals.d.ts
DELETED
|
@@ -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 +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,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 {};
|