@taiga-ui/core 5.14.0 → 5.15.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.
- package/components/carousel/carousel.component.d.ts +1 -0
- package/components/scrollbar/index.d.ts +2 -0
- package/components/scrollbar/scroll-controls.component.d.ts +7 -4
- package/components/scrollbar/scroll-controls.service.d.ts +10 -0
- package/components/scrollbar/scrollable.directive.d.ts +6 -1
- package/components/scrollbar/scrollbar-position.directive.d.ts +15 -0
- package/components/scrollbar/scrollbar.component.d.ts +2 -1
- package/components/scrollbar/scrollbar.directive.d.ts +3 -6
- package/components/textfield/textfield-multi/textfield-multi.component.d.ts +2 -1
- package/fesm2022/taiga-ui-core-components-button.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-carousel.mjs +6 -2
- package/fesm2022/taiga-ui-core-components-carousel.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-cell.mjs +3 -3
- package/fesm2022/taiga-ui-core-components-checkbox.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-data-list.mjs +4 -4
- package/fesm2022/taiga-ui-core-components-icon.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-label.mjs +3 -3
- package/fesm2022/taiga-ui-core-components-link.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-loader.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-notification.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-radio.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-root.mjs +1 -1
- package/fesm2022/taiga-ui-core-components-scrollbar.mjs +96 -56
- package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-textfield.mjs +7 -8
- package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-title.mjs +3 -3
- package/fesm2022/taiga-ui-core-directives-appearance.mjs +3 -3
- package/fesm2022/taiga-ui-core-directives-group.mjs +3 -3
- package/fesm2022/taiga-ui-core-directives-icons.mjs +3 -3
- package/fesm2022/taiga-ui-core-portals-alert.mjs +3 -3
- package/fesm2022/taiga-ui-core-portals-dialog.mjs +2 -2
- package/fesm2022/taiga-ui-core-portals-dropdown.mjs +10 -3
- package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-hint.mjs +44 -34
- package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-modal.mjs +4 -4
- package/fesm2022/taiga-ui-core-portals-modal.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-popup.mjs +25 -12
- package/fesm2022/taiga-ui-core-portals-popup.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-services.mjs +10 -1
- package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
- package/package.json +52 -52
- package/portals/dropdown/dropdown-anchor.directive.d.ts +1 -1
- package/portals/dropdown/dropdown.directive.d.ts +3 -1
- package/portals/hint/hint-options.directive.d.ts +2 -0
- package/portals/hint/hint-position.directive.d.ts +3 -1
- package/portals/hint/hint.directive.d.ts +3 -3
- package/portals/popup/popup.directive.d.ts +1 -0
- package/portals/popup/popups.component.d.ts +4 -1
- package/services/position.service.d.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, inject, TemplateRef, input, Directive
|
|
2
|
+
import { Injectable, ChangeDetectionStrategy, Component, inject, ChangeDetectorRef, TemplateRef, input, Directive } from '@angular/core';
|
|
3
3
|
import { TuiPortalService, TuiPortals } from '@taiga-ui/cdk/portals';
|
|
4
4
|
import { TuiVCR } from '@taiga-ui/cdk/directives/vcr';
|
|
5
5
|
import { tuiProvide } from '@taiga-ui/cdk/utils/di';
|
|
@@ -13,8 +13,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
13
13
|
args: [{ providedIn: 'root' }]
|
|
14
14
|
}] });
|
|
15
15
|
|
|
16
|
+
const TUI_CDR = '_tuiCdr';
|
|
17
|
+
class TuiPopups extends TuiPortals {
|
|
18
|
+
ngAfterViewChecked() {
|
|
19
|
+
for (let i = 0; i < this.anchor().vcr.length; i++) {
|
|
20
|
+
const ref = this.anchor().vcr.get(i);
|
|
21
|
+
if (isEmbeddedViewRef(ref)) {
|
|
22
|
+
ref.context?.[TUI_CDR]?.markForCheck();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiPopups, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: TuiPopups, isStandalone: true, selector: "tui-popups", providers: [tuiProvide(TuiPortalService, TuiPopupService)], usesInheritance: true, ngImport: i0, template: '<ng-content/><ng-container tuiVCR />', isInline: true, styles: [":host{position:fixed;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%;display:grid;grid-template-rows:repeat(14,min-content) 1fr;pointer-events:none;overflow:hidden;overflow-wrap:break-word;box-sizing:border-box;padding:env(safe-area-inset-top) env(safe-area-inset-left) env(safe-area-inset-bottom) env(safe-area-inset-right)}:host ::ng-deep>*{pointer-events:auto}:host:after{content:\"\";grid-row:15}\n"], dependencies: [{ kind: "directive", type: TuiVCR, selector: "[tuiVCR]" }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiPopups, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{ selector: 'tui-popups', imports: [TuiVCR], template: '<ng-content/><ng-container tuiVCR />', changeDetection: ChangeDetectionStrategy.Default, providers: [tuiProvide(TuiPortalService, TuiPopupService)], styles: [":host{position:fixed;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%;display:grid;grid-template-rows:repeat(14,min-content) 1fr;pointer-events:none;overflow:hidden;overflow-wrap:break-word;box-sizing:border-box;padding:env(safe-area-inset-top) env(safe-area-inset-left) env(safe-area-inset-bottom) env(safe-area-inset-right)}:host ::ng-deep>*{pointer-events:auto}:host:after{content:\"\";grid-row:15}\n"] }]
|
|
32
|
+
}] });
|
|
33
|
+
function isEmbeddedViewRef(ref) {
|
|
34
|
+
return !!ref && 'context' in ref;
|
|
35
|
+
}
|
|
36
|
+
|
|
16
37
|
class TuiPopup {
|
|
17
38
|
constructor() {
|
|
39
|
+
this.cdr = inject(ChangeDetectorRef);
|
|
18
40
|
this.template = inject(TemplateRef);
|
|
19
41
|
this.service = inject(TuiPopupService);
|
|
20
42
|
this.show = input(false, { alias: 'tuiPopup' });
|
|
@@ -22,7 +44,7 @@ class TuiPopup {
|
|
|
22
44
|
ngOnChanges() {
|
|
23
45
|
this.ref?.destroy();
|
|
24
46
|
if (this.show()) {
|
|
25
|
-
this.ref = this.service.add(this.template);
|
|
47
|
+
this.ref = this.service.add(this.template, { [TUI_CDR]: this.cdr });
|
|
26
48
|
}
|
|
27
49
|
}
|
|
28
50
|
ngOnDestroy() {
|
|
@@ -36,18 +58,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
36
58
|
args: [{ selector: 'ng-template[tuiPopup]' }]
|
|
37
59
|
}] });
|
|
38
60
|
|
|
39
|
-
class TuiPopups extends TuiPortals {
|
|
40
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiPopups, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
41
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: TuiPopups, isStandalone: true, selector: "tui-popups", providers: [tuiProvide(TuiPortalService, TuiPopupService)], usesInheritance: true, ngImport: i0, template: '<ng-content/><ng-container tuiVCR />', isInline: true, styles: [":host{position:fixed;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%;display:grid;grid-template-rows:repeat(14,min-content) 1fr;pointer-events:none;overflow:hidden;overflow-wrap:break-word;box-sizing:border-box;padding:env(safe-area-inset-top) env(safe-area-inset-left) env(safe-area-inset-bottom) env(safe-area-inset-right)}:host ::ng-deep>*{pointer-events:auto}:host:after{content:\"\";grid-row:15}\n"], dependencies: [{ kind: "directive", type: TuiVCR, selector: "[tuiVCR]" }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
42
|
-
}
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TuiPopups, decorators: [{
|
|
44
|
-
type: Component,
|
|
45
|
-
args: [{ selector: 'tui-popups', imports: [TuiVCR], template: '<ng-content/><ng-container tuiVCR />', changeDetection: ChangeDetectionStrategy.Default, providers: [tuiProvide(TuiPortalService, TuiPopupService)], styles: [":host{position:fixed;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%;display:grid;grid-template-rows:repeat(14,min-content) 1fr;pointer-events:none;overflow:hidden;overflow-wrap:break-word;box-sizing:border-box;padding:env(safe-area-inset-top) env(safe-area-inset-left) env(safe-area-inset-bottom) env(safe-area-inset-right)}:host ::ng-deep>*{pointer-events:auto}:host:after{content:\"\";grid-row:15}\n"] }]
|
|
46
|
-
}] });
|
|
47
|
-
|
|
48
61
|
/**
|
|
49
62
|
* Generated bundle index. Do not edit.
|
|
50
63
|
*/
|
|
51
64
|
|
|
52
|
-
export { TuiPopup, TuiPopupService, TuiPopups };
|
|
65
|
+
export { TUI_CDR, TuiPopup, TuiPopupService, TuiPopups };
|
|
53
66
|
//# sourceMappingURL=taiga-ui-core-portals-popup.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-portals-popup.mjs","sources":["../../../projects/core/portals/popup/popup.service.ts","../../../projects/core/portals/popup/
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-portals-popup.mjs","sources":["../../../projects/core/portals/popup/popup.service.ts","../../../projects/core/portals/popup/popups.component.ts","../../../projects/core/portals/popup/popup.directive.ts","../../../projects/core/portals/popup/taiga-ui-core-portals-popup.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\nimport {TuiPortalService} from '@taiga-ui/cdk/portals';\n\n@Injectable({providedIn: 'root'})\nexport class TuiPopupService extends TuiPortalService {}\n","import {\n type AfterViewChecked,\n ChangeDetectionStrategy,\n Component,\n type EmbeddedViewRef,\n type ViewRef,\n} from '@angular/core';\nimport {TuiVCR} from '@taiga-ui/cdk/directives/vcr';\nimport {TuiPortals, TuiPortalService} from '@taiga-ui/cdk/portals';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/di';\n\nimport {TuiPopupService} from './popup.service';\n\nexport const TUI_CDR = '_tuiCdr' as const;\n\n@Component({\n selector: 'tui-popups',\n imports: [TuiVCR],\n template: '<ng-content/><ng-container tuiVCR />',\n styleUrl: './popups.style.less',\n // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n changeDetection: ChangeDetectionStrategy.Default,\n providers: [tuiProvide(TuiPortalService, TuiPopupService)],\n})\nexport class TuiPopups extends TuiPortals implements AfterViewChecked {\n public ngAfterViewChecked(): void {\n for (let i = 0; i < this.anchor().vcr.length; i++) {\n const ref = this.anchor().vcr.get(i);\n\n if (isEmbeddedViewRef(ref)) {\n ref.context?.[TUI_CDR]?.markForCheck();\n }\n }\n }\n}\n\nfunction isEmbeddedViewRef(ref?: ViewRef | null): ref is EmbeddedViewRef<any> {\n return !!ref && 'context' in ref;\n}\n","import {\n ChangeDetectorRef,\n Directive,\n type EmbeddedViewRef,\n inject,\n input,\n type OnChanges,\n type OnDestroy,\n TemplateRef,\n} from '@angular/core';\n\nimport {TuiPopupService} from './popup.service';\nimport {TUI_CDR} from './popups.component';\n\n@Directive({selector: 'ng-template[tuiPopup]'})\nexport class TuiPopup implements OnChanges, OnDestroy {\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly template = inject(TemplateRef);\n private readonly service = inject(TuiPopupService);\n private ref?: EmbeddedViewRef<unknown>;\n\n public readonly show = input(false, {alias: 'tuiPopup'});\n\n public ngOnChanges(): void {\n this.ref?.destroy();\n\n if (this.show()) {\n this.ref = this.service.add(this.template, {[TUI_CDR]: this.cdr});\n }\n }\n\n public ngOnDestroy(): void {\n this.ref?.destroy();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAIM,MAAO,eAAgB,SAAQ,gBAAgB,CAAA;+GAAxC,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cADH,MAAM,EAAA,CAAA,CAAA;;4FAClB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;ACUzB,MAAM,OAAO,GAAG;AAWjB,MAAO,SAAU,SAAQ,UAAU,CAAA;IAC9B,kBAAkB,GAAA;AACrB,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,YAAA,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AAEpC,YAAA,IAAI,iBAAiB,CAAC,GAAG,CAAC,EAAE;gBACxB,GAA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);
|
|
15
15
|
super((subscriber) => animationFrame$
|
|
16
|
-
.pipe(startWith(null), map(() =>
|
|
16
|
+
.pipe(startWith(null), map(() => {
|
|
17
|
+
const rect = this.el.getBoundingClientRect();
|
|
18
|
+
const animations = this.el.getAnimations?.() || [];
|
|
19
|
+
const animated = animations.length &&
|
|
20
|
+
animations.every(({ effect }) => effect?.getComputedTiming().progress !== null) &&
|
|
21
|
+
animations.some((a) => 'animationName' in a &&
|
|
22
|
+
a.animationName === 'tuiScale');
|
|
23
|
+
this.rect = (animated && this.rect) || rect;
|
|
24
|
+
return this.accessor.getPosition(this.rect);
|
|
25
|
+
}), tuiZonefree(zone), finalize(() => this.accessor.getPosition(EMPTY_CLIENT_RECT)))
|
|
17
26
|
.subscribe(subscriber));
|
|
18
27
|
this.el = tuiInjectElement();
|
|
19
28
|
this.accessor = inject(TuiPositionAccessor);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-services.mjs","sources":["../../../projects/core/services/position.service.ts","../../../projects/core/services/visual-viewport.service.ts","../../../projects/core/services/taiga-ui-core-services.ts"],"sourcesContent":["import {inject, Injectable, NgZone} from '@angular/core';\nimport {WA_ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {EMPTY_CLIENT_RECT} from '@taiga-ui/cdk/constants';\nimport {tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiPositionAccessor} from '@taiga-ui/core/classes';\nimport {type TuiPoint} from '@taiga-ui/core/types';\nimport {finalize, map, Observable, startWith} from 'rxjs';\n\n@Injectable()\nexport class TuiPositionService extends Observable<TuiPoint> {\n private readonly el = tuiInjectElement();\n private readonly accessor = inject(TuiPositionAccessor);\n\n constructor() {\n const animationFrame$ = inject(WA_ANIMATION_FRAME);\n const zone = inject(NgZone);\n\n super((subscriber) =>\n animationFrame$\n .pipe(\n startWith(null),\n map(() => this.
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-services.mjs","sources":["../../../projects/core/services/position.service.ts","../../../projects/core/services/visual-viewport.service.ts","../../../projects/core/services/taiga-ui-core-services.ts"],"sourcesContent":["import {inject, Injectable, NgZone} from '@angular/core';\nimport {WA_ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {EMPTY_CLIENT_RECT} from '@taiga-ui/cdk/constants';\nimport {tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiPositionAccessor} from '@taiga-ui/core/classes';\nimport {type TuiPoint} from '@taiga-ui/core/types';\nimport {finalize, map, Observable, startWith} from 'rxjs';\n\n@Injectable()\nexport class TuiPositionService extends Observable<TuiPoint> {\n private readonly el = tuiInjectElement();\n private readonly accessor = inject(TuiPositionAccessor);\n private rect?: DOMRect;\n\n constructor() {\n const animationFrame$ = inject(WA_ANIMATION_FRAME);\n const zone = inject(NgZone);\n\n super((subscriber) =>\n animationFrame$\n .pipe(\n startWith(null),\n map(() => {\n const rect = this.el.getBoundingClientRect();\n const animations = this.el.getAnimations?.() || [];\n\n const animated =\n animations.length &&\n animations.every(\n ({effect}) =>\n effect?.getComputedTiming().progress !== null,\n ) &&\n animations.some(\n (a) =>\n 'animationName' in a &&\n a.animationName === 'tuiScale',\n );\n\n this.rect = (animated && this.rect) || rect;\n\n return this.accessor.getPosition(this.rect);\n }),\n tuiZonefree(zone),\n finalize(() => this.accessor.getPosition(EMPTY_CLIENT_RECT)),\n )\n .subscribe(subscriber),\n );\n }\n}\n","import {inject, Injectable} from '@angular/core';\nimport {WA_WINDOW} from '@ng-web-apis/common';\nimport {WA_IS_WEBKIT} from '@ng-web-apis/platform';\nimport {type TuiPoint} from '@taiga-ui/core/types';\n\n@Injectable({providedIn: 'root'})\nexport class TuiVisualViewportService {\n private readonly isWebkit = inject(WA_IS_WEBKIT);\n private readonly win = inject(WA_WINDOW);\n\n // https://bugs.webkit.org/show_bug.cgi?id=207089\n public correct(point: TuiPoint): TuiPoint {\n return this.isWebkit\n ? [\n point[0] + (this.win.visualViewport?.offsetLeft ?? 0),\n point[1] + (this.win.visualViewport?.offsetTop ?? 0),\n ]\n : point;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAUM,MAAO,kBAAmB,SAAQ,UAAoB,CAAA;AAKxD,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAClD,QAAA,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;AAE3B,QAAA,KAAK,CAAC,CAAC,UAAU,KACb;aACK,IAAI,CACD,SAAS,CAAC,IAAI,CAAC,EACf,GAAG,CAAC,MAAK;YACL,MAAM,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,qBAAqB,EAAE;YAC5C,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,IAAI,IAAI,EAAE;AAElD,YAAA,MAAM,QAAQ,GACV,UAAU,CAAC,MAAM;AACjB,gBAAA,UAAU,CAAC,KAAK,CACZ,CAAC,EAAC,MAAM,EAAC,KACL,MAAM,EAAE,iBAAiB,EAAE,CAAC,QAAQ,KAAK,IAAI,CACpD;gBACD,UAAU,CAAC,IAAI,CACX,CAAC,CAAC,KACE,eAAe,IAAI,CAAC;AACpB,oBAAA,CAAC,CAAC,aAAa,KAAK,UAAU,CACrC;AAEL,YAAA,IAAI,CAAC,IAAI,GAAG,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI;YAE3C,OAAO,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC;QAC/C,CAAC,CAAC,EACF,WAAW,CAAC,IAAI,CAAC,EACjB,QAAQ,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;AAE/D,aAAA,SAAS,CAAC,UAAU,CAAC,CAC7B;QApCY,IAAA,CAAA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
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.15.0",
|
|
4
4
|
"description": "Core library for creating Angular components and applications using Taiga UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"@ng-web-apis/intersection-observer": "^5.3.0",
|
|
42
42
|
"@ng-web-apis/mutation-observer": "^5.3.0",
|
|
43
43
|
"@ng-web-apis/platform": "^5.3.0",
|
|
44
|
-
"@taiga-ui/cdk": "5.
|
|
44
|
+
"@taiga-ui/cdk": "5.15.0",
|
|
45
45
|
"@taiga-ui/event-plugins": "^5.0.0",
|
|
46
|
-
"@taiga-ui/i18n": "5.
|
|
46
|
+
"@taiga-ui/i18n": "5.15.0",
|
|
47
47
|
"@taiga-ui/polymorpheus": "^5.0.1",
|
|
48
|
-
"@taiga-ui/styles": "5.
|
|
48
|
+
"@taiga-ui/styles": "5.15.0",
|
|
49
49
|
"rxjs": ">=7.0.0"
|
|
50
50
|
},
|
|
51
51
|
"schematics": "./schematics/collection.json",
|
|
@@ -63,21 +63,25 @@
|
|
|
63
63
|
"types": "./classes/index.d.ts",
|
|
64
64
|
"default": "./fesm2022/taiga-ui-core-classes.mjs"
|
|
65
65
|
},
|
|
66
|
+
"./components": {
|
|
67
|
+
"types": "./components/index.d.ts",
|
|
68
|
+
"default": "./fesm2022/taiga-ui-core-components.mjs"
|
|
69
|
+
},
|
|
66
70
|
"./directives": {
|
|
67
71
|
"types": "./directives/index.d.ts",
|
|
68
72
|
"default": "./fesm2022/taiga-ui-core-directives.mjs"
|
|
69
73
|
},
|
|
70
|
-
"./
|
|
71
|
-
"types": "./
|
|
72
|
-
"default": "./fesm2022/taiga-ui-core-
|
|
74
|
+
"./portals": {
|
|
75
|
+
"types": "./portals/index.d.ts",
|
|
76
|
+
"default": "./fesm2022/taiga-ui-core-portals.mjs"
|
|
73
77
|
},
|
|
74
78
|
"./pipes": {
|
|
75
79
|
"types": "./pipes/index.d.ts",
|
|
76
80
|
"default": "./fesm2022/taiga-ui-core-pipes.mjs"
|
|
77
81
|
},
|
|
78
|
-
"./
|
|
79
|
-
"types": "./
|
|
80
|
-
"default": "./fesm2022/taiga-ui-core-
|
|
82
|
+
"./services": {
|
|
83
|
+
"types": "./services/index.d.ts",
|
|
84
|
+
"default": "./fesm2022/taiga-ui-core-services.mjs"
|
|
81
85
|
},
|
|
82
86
|
"./tokens": {
|
|
83
87
|
"types": "./tokens/index.d.ts",
|
|
@@ -87,42 +91,10 @@
|
|
|
87
91
|
"types": "./types/index.d.ts",
|
|
88
92
|
"default": "./fesm2022/taiga-ui-core-types.mjs"
|
|
89
93
|
},
|
|
90
|
-
"./services": {
|
|
91
|
-
"types": "./services/index.d.ts",
|
|
92
|
-
"default": "./fesm2022/taiga-ui-core-services.mjs"
|
|
93
|
-
},
|
|
94
94
|
"./utils": {
|
|
95
95
|
"types": "./utils/index.d.ts",
|
|
96
96
|
"default": "./fesm2022/taiga-ui-core-utils.mjs"
|
|
97
97
|
},
|
|
98
|
-
"./directives/appearance": {
|
|
99
|
-
"types": "./directives/appearance/index.d.ts",
|
|
100
|
-
"default": "./fesm2022/taiga-ui-core-directives-appearance.mjs"
|
|
101
|
-
},
|
|
102
|
-
"./directives/button-x": {
|
|
103
|
-
"types": "./directives/button-x/index.d.ts",
|
|
104
|
-
"default": "./fesm2022/taiga-ui-core-directives-button-x.mjs"
|
|
105
|
-
},
|
|
106
|
-
"./directives/date-format": {
|
|
107
|
-
"types": "./directives/date-format/index.d.ts",
|
|
108
|
-
"default": "./fesm2022/taiga-ui-core-directives-date-format.mjs"
|
|
109
|
-
},
|
|
110
|
-
"./directives/group": {
|
|
111
|
-
"types": "./directives/group/index.d.ts",
|
|
112
|
-
"default": "./fesm2022/taiga-ui-core-directives-group.mjs"
|
|
113
|
-
},
|
|
114
|
-
"./directives/icons": {
|
|
115
|
-
"types": "./directives/icons/index.d.ts",
|
|
116
|
-
"default": "./fesm2022/taiga-ui-core-directives-icons.mjs"
|
|
117
|
-
},
|
|
118
|
-
"./directives/items-handlers": {
|
|
119
|
-
"types": "./directives/items-handlers/index.d.ts",
|
|
120
|
-
"default": "./fesm2022/taiga-ui-core-directives-items-handlers.mjs"
|
|
121
|
-
},
|
|
122
|
-
"./directives/number-format": {
|
|
123
|
-
"types": "./directives/number-format/index.d.ts",
|
|
124
|
-
"default": "./fesm2022/taiga-ui-core-directives-number-format.mjs"
|
|
125
|
-
},
|
|
126
98
|
"./components/button": {
|
|
127
99
|
"types": "./components/button/index.d.ts",
|
|
128
100
|
"default": "./fesm2022/taiga-ui-core-components-button.mjs"
|
|
@@ -131,14 +103,14 @@
|
|
|
131
103
|
"types": "./components/calendar/index.d.ts",
|
|
132
104
|
"default": "./fesm2022/taiga-ui-core-components-calendar.mjs"
|
|
133
105
|
},
|
|
134
|
-
"./components/cell": {
|
|
135
|
-
"types": "./components/cell/index.d.ts",
|
|
136
|
-
"default": "./fesm2022/taiga-ui-core-components-cell.mjs"
|
|
137
|
-
},
|
|
138
106
|
"./components/carousel": {
|
|
139
107
|
"types": "./components/carousel/index.d.ts",
|
|
140
108
|
"default": "./fesm2022/taiga-ui-core-components-carousel.mjs"
|
|
141
109
|
},
|
|
110
|
+
"./components/cell": {
|
|
111
|
+
"types": "./components/cell/index.d.ts",
|
|
112
|
+
"default": "./fesm2022/taiga-ui-core-components-cell.mjs"
|
|
113
|
+
},
|
|
142
114
|
"./components/checkbox": {
|
|
143
115
|
"types": "./components/checkbox/index.d.ts",
|
|
144
116
|
"default": "./fesm2022/taiga-ui-core-components-checkbox.mjs"
|
|
@@ -207,13 +179,33 @@
|
|
|
207
179
|
"types": "./components/title/index.d.ts",
|
|
208
180
|
"default": "./fesm2022/taiga-ui-core-components-title.mjs"
|
|
209
181
|
},
|
|
210
|
-
"./
|
|
211
|
-
"types": "./
|
|
212
|
-
"default": "./fesm2022/taiga-ui-core-
|
|
182
|
+
"./directives/appearance": {
|
|
183
|
+
"types": "./directives/appearance/index.d.ts",
|
|
184
|
+
"default": "./fesm2022/taiga-ui-core-directives-appearance.mjs"
|
|
213
185
|
},
|
|
214
|
-
"./
|
|
215
|
-
"types": "./
|
|
216
|
-
"default": "./fesm2022/taiga-ui-core-
|
|
186
|
+
"./directives/button-x": {
|
|
187
|
+
"types": "./directives/button-x/index.d.ts",
|
|
188
|
+
"default": "./fesm2022/taiga-ui-core-directives-button-x.mjs"
|
|
189
|
+
},
|
|
190
|
+
"./directives/date-format": {
|
|
191
|
+
"types": "./directives/date-format/index.d.ts",
|
|
192
|
+
"default": "./fesm2022/taiga-ui-core-directives-date-format.mjs"
|
|
193
|
+
},
|
|
194
|
+
"./directives/group": {
|
|
195
|
+
"types": "./directives/group/index.d.ts",
|
|
196
|
+
"default": "./fesm2022/taiga-ui-core-directives-group.mjs"
|
|
197
|
+
},
|
|
198
|
+
"./directives/icons": {
|
|
199
|
+
"types": "./directives/icons/index.d.ts",
|
|
200
|
+
"default": "./fesm2022/taiga-ui-core-directives-icons.mjs"
|
|
201
|
+
},
|
|
202
|
+
"./directives/items-handlers": {
|
|
203
|
+
"types": "./directives/items-handlers/index.d.ts",
|
|
204
|
+
"default": "./fesm2022/taiga-ui-core-directives-items-handlers.mjs"
|
|
205
|
+
},
|
|
206
|
+
"./directives/number-format": {
|
|
207
|
+
"types": "./directives/number-format/index.d.ts",
|
|
208
|
+
"default": "./fesm2022/taiga-ui-core-directives-number-format.mjs"
|
|
217
209
|
},
|
|
218
210
|
"./portals/alert": {
|
|
219
211
|
"types": "./portals/alert/index.d.ts",
|
|
@@ -239,6 +231,14 @@
|
|
|
239
231
|
"types": "./portals/popup/index.d.ts",
|
|
240
232
|
"default": "./fesm2022/taiga-ui-core-portals-popup.mjs"
|
|
241
233
|
},
|
|
234
|
+
"./pipes/filter-by-input": {
|
|
235
|
+
"types": "./pipes/filter-by-input/index.d.ts",
|
|
236
|
+
"default": "./fesm2022/taiga-ui-core-pipes-filter-by-input.mjs"
|
|
237
|
+
},
|
|
238
|
+
"./pipes/format-number": {
|
|
239
|
+
"types": "./pipes/format-number/index.d.ts",
|
|
240
|
+
"default": "./fesm2022/taiga-ui-core-pipes-format-number.mjs"
|
|
241
|
+
},
|
|
242
242
|
"./utils/dom": {
|
|
243
243
|
"types": "./utils/dom/index.d.ts",
|
|
244
244
|
"default": "./fesm2022/taiga-ui-core-utils-dom.mjs"
|
|
@@ -2,11 +2,11 @@ import { type AfterViewInit } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class TuiDropdownAnchor implements AfterViewInit {
|
|
4
4
|
private readonly el;
|
|
5
|
+
private readonly directive;
|
|
5
6
|
private readonly accessor;
|
|
6
7
|
private readonly viewport;
|
|
7
8
|
private readonly vvs;
|
|
8
9
|
private readonly options;
|
|
9
|
-
private readonly directive;
|
|
10
10
|
private readonly position;
|
|
11
11
|
private readonly styles$;
|
|
12
12
|
ngAfterViewInit(): void;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { type AfterViewChecked, type ComponentRef, type OnDestroy, TemplateRef } from '@angular/core';
|
|
2
2
|
import { type TuiContext } from '@taiga-ui/cdk/types';
|
|
3
|
-
import {
|
|
3
|
+
import { TuiRectAccessor, type TuiVehicle } from '@taiga-ui/core/classes';
|
|
4
4
|
import { PolymorpheusComponent, type PolymorpheusContent, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "./dropdown.driver";
|
|
7
7
|
import * as i2 from "./dropdown-a11y.directive";
|
|
8
8
|
import * as i3 from "./dropdown-position.directive";
|
|
9
9
|
export declare class TuiDropdownDirective implements AfterViewChecked, OnDestroy, TuiRectAccessor, TuiVehicle {
|
|
10
|
+
private readonly injector;
|
|
10
11
|
private readonly refresh$;
|
|
11
12
|
private readonly service;
|
|
12
13
|
private readonly cdr;
|
|
@@ -18,6 +19,7 @@ export declare class TuiDropdownDirective implements AfterViewChecked, OnDestroy
|
|
|
18
19
|
readonly type = "dropdown";
|
|
19
20
|
readonly component: PolymorpheusComponent<any>;
|
|
20
21
|
readonly content: import("@angular/core").InputSignalWithTransform<string | number | PolymorpheusComponent<unknown> | import("@angular/platform-browser").SafeValue | import("@taiga-ui/polymorpheus").PolymorpheusHandler<TuiContext<() => void>> | PolymorpheusTemplate<"" | Partial<TuiContext<() => void>>> | TemplateRef<Partial<TuiContext<() => void>>> | null | undefined, PolymorpheusContent<TuiContext<() => void>>>;
|
|
22
|
+
get accessor(): TuiRectAccessor;
|
|
21
23
|
get position(): 'absolute' | 'fixed';
|
|
22
24
|
ngAfterViewChecked(): void;
|
|
23
25
|
ngOnDestroy(): void;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { type TuiAppearanceOptions } from '@taiga-ui/core/directives/appearance';
|
|
2
2
|
export type TuiHintDirection = 'bottom-end' | 'bottom-start' | 'bottom' | 'end-bottom' | 'end-top' | 'end' | 'start-bottom' | 'start-top' | 'start' | 'top-end' | 'top-start' | 'top';
|
|
3
3
|
export declare const TUI_HINT_DIRECTIONS: readonly TuiHintDirection[];
|
|
4
|
+
/** TODO: remove optionality in v6 */
|
|
4
5
|
export interface TuiHintOptions extends TuiAppearanceOptions {
|
|
5
6
|
readonly direction: TuiHintDirection | TuiHintDirection[];
|
|
7
|
+
readonly centered?: boolean;
|
|
6
8
|
readonly hideDelay: number;
|
|
7
9
|
readonly icon: string;
|
|
8
10
|
readonly showDelay: number;
|
|
@@ -5,16 +5,18 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class TuiHintPosition extends TuiPositionAccessor {
|
|
6
6
|
private readonly el;
|
|
7
7
|
private readonly viewport;
|
|
8
|
+
private readonly options;
|
|
8
9
|
private readonly directionChange;
|
|
9
10
|
private readonly accessor;
|
|
10
11
|
private readonly points;
|
|
11
12
|
readonly direction: import("@angular/core").InputSignal<TuiHintDirection | TuiHintDirection[]>;
|
|
12
13
|
readonly offset: import("@angular/core").InputSignal<number>;
|
|
14
|
+
readonly centered: import("@angular/core").InputSignal<boolean | undefined>;
|
|
13
15
|
readonly tuiHintDirectionChange: import("@angular/core").OutputRef<TuiHintDirection>;
|
|
14
16
|
readonly type = "hint";
|
|
15
17
|
getPosition({ width, height }: DOMRect): TuiPoint;
|
|
16
18
|
private get fallback();
|
|
17
19
|
private checkPosition;
|
|
18
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintPosition, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintPosition, never, never, { "direction": { "alias": "tuiHintDirection"; "required": false; "isSignal": true; }; "offset": { "alias": "tuiHintOffset"; "required": false; "isSignal": true; }; }, { "tuiHintDirectionChange": "tuiHintDirectionChange"; }, never, never, true, never>;
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintPosition, never, never, { "direction": { "alias": "tuiHintDirection"; "required": false; "isSignal": true; }; "offset": { "alias": "tuiHintOffset"; "required": false; "isSignal": true; }; "centered": { "alias": "tuiHintCentered"; "required": false; "isSignal": true; }; }, { "tuiHintDirectionChange": "tuiHintDirectionChange"; }, never, never, true, never>;
|
|
20
22
|
}
|
|
@@ -7,11 +7,11 @@ import * as i2 from "./hint-hover.directive";
|
|
|
7
7
|
import * as i3 from "./hint-position.directive";
|
|
8
8
|
export declare class TuiHintDirective<C> implements OnDestroy, OnChanges, TuiRectAccessor, TuiVehicle {
|
|
9
9
|
private readonly service;
|
|
10
|
-
private ref
|
|
10
|
+
private readonly ref;
|
|
11
11
|
readonly content: import("@angular/core").InputSignal<PolymorpheusContent<C>>;
|
|
12
12
|
readonly context: import("@angular/core").InputSignal<C | undefined>;
|
|
13
13
|
readonly appearance: import("@angular/core").InputSignal<string>;
|
|
14
|
-
readonly visible: import("@angular/core").
|
|
14
|
+
readonly visible: import("@angular/core").OutputRef<boolean>;
|
|
15
15
|
component: PolymorpheusComponent<any>;
|
|
16
16
|
readonly el: HTMLElement;
|
|
17
17
|
readonly type = "hint";
|
|
@@ -20,5 +20,5 @@ export declare class TuiHintDirective<C> implements OnDestroy, OnChanges, TuiRec
|
|
|
20
20
|
getClientRect(): DOMRect;
|
|
21
21
|
toggle(show: boolean): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintDirective<any>, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintDirective<any>, "[tuiHint]:not(ng-container):not(ng-template)", never, { "content": { "alias": "tuiHint"; "required": false; "isSignal": true; }; "context": { "alias": "tuiHintContext"; "required": false; "isSignal": true; }; "appearance": { "alias": "tuiHintAppearance"; "required": false; "isSignal": true; }; }, { "visible": "tuiHintVisible"; }, never, never, true, [{ directive: typeof i1.TuiHintDriver; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiHintHover; inputs: { "tuiHintHideDelay": "tuiHintHideDelay"; "tuiHintShowDelay": "tuiHintShowDelay"; }; outputs: {}; }, { directive: typeof i3.TuiHintPosition; inputs: { "tuiHintDirection": "tuiHintDirection"; "tuiHintOffset": "tuiHintOffset"; }; outputs: { "tuiHintDirectionChange": "tuiHintDirectionChange"; }; }]>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintDirective<any>, "[tuiHint]:not(ng-container):not(ng-template)", never, { "content": { "alias": "tuiHint"; "required": false; "isSignal": true; }; "context": { "alias": "tuiHintContext"; "required": false; "isSignal": true; }; "appearance": { "alias": "tuiHintAppearance"; "required": false; "isSignal": true; }; }, { "visible": "tuiHintVisible"; }, never, never, true, [{ directive: typeof i1.TuiHintDriver; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiHintHover; inputs: { "tuiHintHideDelay": "tuiHintHideDelay"; "tuiHintShowDelay": "tuiHintShowDelay"; }; outputs: {}; }, { directive: typeof i3.TuiHintPosition; inputs: { "tuiHintDirection": "tuiHintDirection"; "tuiHintCentered": "tuiHintCentered"; "tuiHintOffset": "tuiHintOffset"; }; outputs: { "tuiHintDirectionChange": "tuiHintDirectionChange"; }; }]>;
|
|
24
24
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { type AfterViewChecked } from '@angular/core';
|
|
1
2
|
import { TuiPortals } from '@taiga-ui/cdk/portals';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare
|
|
4
|
+
export declare const TUI_CDR: "_tuiCdr";
|
|
5
|
+
export declare class TuiPopups extends TuiPortals implements AfterViewChecked {
|
|
6
|
+
ngAfterViewChecked(): void;
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiPopups, never>;
|
|
5
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<TuiPopups, "tui-popups", never, {}, {}, never, ["*"], true, never>;
|
|
6
9
|
}
|
|
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class TuiPositionService extends Observable<TuiPoint> {
|
|
5
5
|
private readonly el;
|
|
6
6
|
private readonly accessor;
|
|
7
|
+
private rect?;
|
|
7
8
|
constructor();
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiPositionService, never>;
|
|
9
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<TuiPositionService>;
|