@taiga-ui/cdk 3.14.0 → 3.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/bundles/taiga-ui-cdk-components-alert-host.umd.js +3 -3
- package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +6 -6
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +4 -4
- package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +2 -2
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js +8 -8
- package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-checked.umd.js +6 -6
- package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-drag.umd.js +4 -4
- package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js +5 -5
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-element.umd.js +2 -2
- package/bundles/taiga-ui-cdk-directives-element.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +5 -5
- package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js +2 -2
- package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-focusable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-focused.umd.js +2 -2
- package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-for.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-for.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js +2 -2
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-item.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-item.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-let.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-let.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-media.umd.js +12 -12
- package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-obscured.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +11 -11
- package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pan.umd.js +2 -2
- package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-portal.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-portal.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resize.umd.js +2 -2
- package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js +14 -14
- package/bundles/taiga-ui-cdk-directives-resizer.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js +2 -2
- package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-validator.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-validator.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js +3 -3
- package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +1 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/esm2015/components/alert-host/alert-host.component.js +4 -4
- package/esm2015/components/dialog-host/dialog-host.component.js +7 -7
- package/esm2015/components/dropdown-host/dropdown-host.component.js +5 -5
- package/esm2015/constants/version.js +2 -2
- package/esm2015/directives/active-zone/active-zone.directive.js +4 -4
- package/esm2015/directives/auto-focus/autofocus.directive.js +3 -3
- package/esm2015/directives/autofilled/autofilled-style.component.js +4 -4
- package/esm2015/directives/autofilled/autofilled.directive.js +6 -6
- package/esm2015/directives/checked/checked.directive.js +7 -7
- package/esm2015/directives/copy-processor/copy-processor.directive.js +4 -4
- package/esm2015/directives/drag/drag.directive.js +5 -5
- package/esm2015/directives/droppable/droppable.directive.js +5 -5
- package/esm2015/directives/element/element.directive.js +3 -3
- package/esm2015/directives/focus-trap/focus-trap.directive.js +6 -6
- package/esm2015/directives/focus-visible/focus-visible.directive.js +3 -3
- package/esm2015/directives/focusable/focusable.directive.js +4 -4
- package/esm2015/directives/focused/focused.directive.js +3 -3
- package/esm2015/directives/for/for.directive.js +2 -2
- package/esm2015/directives/for-async/for-async.directive.js +2 -2
- package/esm2015/directives/high-dpi/high-dpi.directive.js +2 -2
- package/esm2015/directives/hovered/hovered.directive.js +3 -3
- package/esm2015/directives/item/item.directive.js +2 -2
- package/esm2015/directives/let/let.directive.js +2 -2
- package/esm2015/directives/media/media.directive.js +13 -13
- package/esm2015/directives/obscured/obscured.directive.js +2 -2
- package/esm2015/directives/overscroll/overscroll.directive.js +12 -12
- package/esm2015/directives/pan/pan.directive.js +3 -3
- package/esm2015/directives/portal/portal.directive.js +2 -2
- package/esm2015/directives/pressed/pressed.directive.js +2 -2
- package/esm2015/directives/prevent-default/prevent-default.directive.js +4 -4
- package/esm2015/directives/repeat-times/repeat-times.directive.js +2 -2
- package/esm2015/directives/resize/resize.directive.js +3 -3
- package/esm2015/directives/resizer/resizeable.directive.js +2 -2
- package/esm2015/directives/resizer/resizer.directive.js +14 -14
- package/esm2015/directives/swipe/swipe.directive.js +3 -3
- package/esm2015/directives/validator/validator.directive.js +2 -2
- package/esm2015/directives/zoom/zoom.directive.js +4 -4
- package/fesm2015/taiga-ui-cdk-components-alert-host.js +3 -3
- package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js +6 -6
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +4 -4
- package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js +8 -8
- package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-checked.js +6 -6
- package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-drag.js +4 -4
- package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-droppable.js +4 -4
- package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-element.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +5 -5
- package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focusable.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-focused.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for-async.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-for.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-item.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-item.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-let.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-let.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-media.js +12 -12
- package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-obscured.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-obscured.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js +11 -11
- package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pan.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-pan.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-portal.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-portal.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pressed.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-resize.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-resizer.js +14 -14
- package/fesm2015/taiga-ui-cdk-directives-resizer.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-swipe.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-validator.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-validator.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-zoom.js +3 -3
- package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +1 -1
- package/package.json +3 -3
- package/schematics/ng-update/utils/get-file-system.js +2 -1
- package/schematics/ng-update/v3/steps/migrate-progress.js +2 -1
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.js +2 -1
- package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.js +2 -1
- package/schematics/utils/project-root.d.ts +1 -0
- package/schematics/utils/project-root.js +5 -0
|
@@ -11,19 +11,19 @@ import * as i1 from 'rxjs';
|
|
|
11
11
|
*/
|
|
12
12
|
class TuiOverscrollDirective {
|
|
13
13
|
constructor({ nativeElement }, ngZone, destroy$) {
|
|
14
|
-
this.mode =
|
|
15
|
-
tuiTypedFromEvent(nativeElement,
|
|
14
|
+
this.mode = 'scroll';
|
|
15
|
+
tuiTypedFromEvent(nativeElement, 'wheel', { passive: false })
|
|
16
16
|
.pipe(filter(() => this.enabled), tuiZonefree(ngZone), takeUntil(destroy$))
|
|
17
17
|
.subscribe(event => {
|
|
18
18
|
this.processEvent(event, !!event.deltaY, event.deltaY ? event.deltaY < 0 : event.deltaX < 0);
|
|
19
19
|
});
|
|
20
|
-
tuiTypedFromEvent(nativeElement,
|
|
20
|
+
tuiTypedFromEvent(nativeElement, 'touchstart', { passive: true })
|
|
21
21
|
.pipe(switchMap(({ touches }) => {
|
|
22
22
|
let { clientX, clientY } = touches[0];
|
|
23
23
|
let deltaX = 0;
|
|
24
24
|
let deltaY = 0;
|
|
25
25
|
let vertical;
|
|
26
|
-
return tuiTypedFromEvent(nativeElement,
|
|
26
|
+
return tuiTypedFromEvent(nativeElement, 'touchmove', {
|
|
27
27
|
passive: false,
|
|
28
28
|
}).pipe(filter(() => this.enabled), tap(event => {
|
|
29
29
|
// We have to have it in tap instead of subscribe due to variables in closure
|
|
@@ -41,21 +41,21 @@ class TuiOverscrollDirective {
|
|
|
41
41
|
.subscribe();
|
|
42
42
|
}
|
|
43
43
|
get enabled() {
|
|
44
|
-
return this.mode !==
|
|
44
|
+
return this.mode !== 'none';
|
|
45
45
|
}
|
|
46
46
|
get overscrollBehavior() {
|
|
47
|
-
return this.enabled ?
|
|
47
|
+
return this.enabled ? 'contain' : null;
|
|
48
48
|
}
|
|
49
49
|
processEvent(event, vertical, negative) {
|
|
50
50
|
var _a;
|
|
51
51
|
const { target, currentTarget, cancelable } = event;
|
|
52
52
|
if (!cancelable ||
|
|
53
53
|
!tuiIsElement(target) ||
|
|
54
|
-
((_a = target) === null || _a === void 0 ? void 0 : _a.type) ===
|
|
54
|
+
((_a = target) === null || _a === void 0 ? void 0 : _a.type) === 'range') {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
// This is all what's needed in Chrome/Firefox thanks to CSS overscroll-behavior
|
|
58
|
-
if (this.mode ===
|
|
58
|
+
if (this.mode === 'all' &&
|
|
59
59
|
((vertical && !currentTarget.contains(tuiGetScrollParent(target))) ||
|
|
60
60
|
(!vertical && !currentTarget.contains(tuiGetScrollParent(target, false))))) {
|
|
61
61
|
event.preventDefault();
|
|
@@ -80,7 +80,7 @@ TuiOverscrollDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0",
|
|
|
80
80
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiOverscrollDirective, decorators: [{
|
|
81
81
|
type: Directive,
|
|
82
82
|
args: [{
|
|
83
|
-
selector:
|
|
83
|
+
selector: '[tuiOverscroll]',
|
|
84
84
|
providers: [TuiDestroyService],
|
|
85
85
|
}]
|
|
86
86
|
}], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
|
|
@@ -96,10 +96,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
96
96
|
args: [TuiDestroyService]
|
|
97
97
|
}] }]; }, propDecorators: { mode: [{
|
|
98
98
|
type: Input,
|
|
99
|
-
args: [
|
|
99
|
+
args: ['tuiOverscroll']
|
|
100
100
|
}], overscrollBehavior: [{
|
|
101
101
|
type: HostBinding,
|
|
102
|
-
args: [
|
|
102
|
+
args: ['style.overscrollBehavior']
|
|
103
103
|
}] } });
|
|
104
104
|
|
|
105
105
|
class TuiOverscrollModule {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-overscroll.js","sources":["../../../projects/cdk/directives/overscroll/overscroll.directive.ts","../../../projects/cdk/directives/overscroll/overscroll.module.ts","../../../projects/cdk/directives/overscroll/taiga-ui-cdk-directives-overscroll.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n NgZone,\n Self,\n} from '@angular/core';\nimport {tuiTypedFromEvent, tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {TuiEventWith, TuiOverscrollMode} from '@taiga-ui/cdk/types';\nimport {tuiCanScroll, tuiGetScrollParent, tuiIsElement} from '@taiga-ui/cdk/utils/dom';\nimport {Observable} from 'rxjs';\nimport {filter, switchMap, takeUntil, tap} from 'rxjs/operators';\n\n/**\n * Directive to isolate scrolling, i.e. prevent body scroll behind modal dialog\n */\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-overscroll.js","sources":["../../../projects/cdk/directives/overscroll/overscroll.directive.ts","../../../projects/cdk/directives/overscroll/overscroll.module.ts","../../../projects/cdk/directives/overscroll/taiga-ui-cdk-directives-overscroll.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n NgZone,\n Self,\n} from '@angular/core';\nimport {tuiTypedFromEvent, tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {TuiEventWith, TuiOverscrollMode} from '@taiga-ui/cdk/types';\nimport {tuiCanScroll, tuiGetScrollParent, tuiIsElement} from '@taiga-ui/cdk/utils/dom';\nimport {Observable} from 'rxjs';\nimport {filter, switchMap, takeUntil, tap} from 'rxjs/operators';\n\n/**\n * Directive to isolate scrolling, i.e. prevent body scroll behind modal dialog\n */\n@Directive({\n selector: '[tuiOverscroll]',\n providers: [TuiDestroyService],\n})\nexport class TuiOverscrollDirective {\n @Input('tuiOverscroll')\n mode: TuiOverscrollMode | '' = 'scroll';\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n @Self() @Inject(TuiDestroyService) destroy$: Observable<void>,\n ) {\n tuiTypedFromEvent(nativeElement, 'wheel', {passive: false})\n .pipe(\n filter(() => this.enabled),\n tuiZonefree(ngZone),\n takeUntil(destroy$),\n )\n .subscribe(event => {\n this.processEvent(\n event,\n !!event.deltaY,\n event.deltaY ? event.deltaY < 0 : event.deltaX < 0,\n );\n });\n\n tuiTypedFromEvent(nativeElement, 'touchstart', {passive: true})\n .pipe(\n switchMap(({touches}) => {\n let {clientX, clientY} = touches[0];\n let deltaX = 0;\n let deltaY = 0;\n let vertical: boolean;\n\n return tuiTypedFromEvent(nativeElement, 'touchmove', {\n passive: false,\n }).pipe(\n filter(() => this.enabled),\n tap(event => {\n // We have to have it in tap instead of subscribe due to variables in closure\n const changedTouch = event.changedTouches[0];\n\n deltaX = clientX - changedTouch.clientX;\n deltaY = clientY - changedTouch.clientY;\n clientX = changedTouch.clientX;\n clientY = changedTouch.clientY;\n\n if (vertical === undefined) {\n vertical = Math.abs(deltaY) > Math.abs(deltaX);\n }\n\n this.processEvent(\n event,\n vertical,\n vertical ? deltaY < 0 : deltaX < 0,\n );\n }),\n );\n }),\n tuiZonefree(ngZone),\n takeUntil(destroy$),\n )\n .subscribe();\n }\n\n get enabled(): boolean {\n return this.mode !== 'none';\n }\n\n @HostBinding('style.overscrollBehavior')\n get overscrollBehavior(): 'contain' | null {\n return this.enabled ? 'contain' : null;\n }\n\n private processEvent(\n event: TuiEventWith<Event, HTMLElement>,\n vertical: boolean,\n negative: boolean,\n ): void {\n const {target, currentTarget, cancelable} = event;\n\n if (\n !cancelable ||\n !tuiIsElement(target) ||\n (target as HTMLInputElement)?.type === 'range'\n ) {\n return;\n }\n\n // This is all what's needed in Chrome/Firefox thanks to CSS overscroll-behavior\n if (\n this.mode === 'all' &&\n ((vertical && !currentTarget.contains(tuiGetScrollParent(target))) ||\n (!vertical && !currentTarget.contains(tuiGetScrollParent(target, false))))\n ) {\n event.preventDefault();\n\n return;\n }\n\n // This is Safari/IE/Edge fallback\n if (\n vertical &&\n ((negative && !tuiCanScroll(target, currentTarget, true, false)) ||\n (!negative && !tuiCanScroll(target, currentTarget, true, true)))\n ) {\n event.preventDefault();\n\n return;\n }\n\n if (\n !vertical &&\n ((negative && !tuiCanScroll(target, currentTarget, false, false)) ||\n (!negative && !tuiCanScroll(target, currentTarget, false, true)))\n ) {\n event.preventDefault();\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiOverscrollDirective} from './overscroll.directive';\n\n@NgModule({\n declarations: [TuiOverscrollDirective],\n exports: [TuiOverscrollDirective],\n})\nexport class TuiOverscrollModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAgBA;;AAEG;MAKU,sBAAsB,CAAA;AAI/B,IAAA,WAAA,CACwB,EAAC,aAAa,EAA0B,EAC5C,MAAc,EACK,QAA0B,EAAA;QALjE,IAAI,CAAA,IAAA,GAA2B,QAAQ,CAAC;QAOpC,iBAAiB,CAAC,aAAa,EAAE,OAAO,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;aACtD,IAAI,CACD,MAAM,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,EAC1B,WAAW,CAAC,MAAM,CAAC,EACnB,SAAS,CAAC,QAAQ,CAAC,CACtB;aACA,SAAS,CAAC,KAAK,IAAG;AACf,YAAA,IAAI,CAAC,YAAY,CACb,KAAK,EACL,CAAC,CAAC,KAAK,CAAC,MAAM,EACd,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,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CAAA;4CALrC,IAAI,EAAA,CAAA;sBADH,KAAK;uBAAC,eAAe,CAAA;gBAkElB,kBAAkB,EAAA,CAAA;sBADrB,WAAW;uBAAC,0BAA0B,CAAA;;;MCjF9B,mBAAmB,CAAA;;iHAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;kHAAnB,mBAAmB,EAAA,YAAA,EAAA,CAHb,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAC3B,sBAAsB,CAAA,EAAA,CAAA,CAAA;kHAEvB,mBAAmB,EAAA,CAAA,CAAA;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;oBACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AACpC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -13,8 +13,8 @@ TuiPanDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", versio
|
|
|
13
13
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPanDirective, decorators: [{
|
|
14
14
|
type: Directive,
|
|
15
15
|
args: [{
|
|
16
|
-
selector:
|
|
17
|
-
outputs: [
|
|
16
|
+
selector: '[tuiPan]',
|
|
17
|
+
outputs: ['tuiPan'],
|
|
18
18
|
providers: [TuiPanService],
|
|
19
19
|
}]
|
|
20
20
|
}], ctorParameters: function () { return [{ type: i1.Observable, decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-pan.js","sources":["../../../projects/cdk/directives/pan/pan.directive.ts","../../../projects/cdk/directives/pan/pan.module.ts","../../../projects/cdk/directives/pan/taiga-ui-cdk-directives-pan.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiPanService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-pan.js","sources":["../../../projects/cdk/directives/pan/pan.directive.ts","../../../projects/cdk/directives/pan/pan.module.ts","../../../projects/cdk/directives/pan/taiga-ui-cdk-directives-pan.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiPanService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n@Directive({\n selector: '[tuiPan]',\n outputs: ['tuiPan'],\n providers: [TuiPanService],\n})\nexport class TuiPanDirective {\n constructor(\n @Inject(TuiPanService) readonly tuiPan: Observable<readonly [number, number]>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPanDirective} from './pan.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiPanDirective],\n exports: [TuiPanDirective],\n})\nexport class TuiPanModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MASa,eAAe,CAAA;AACxB,IAAA,WAAA,CACoC,MAA6C,EAAA;QAA7C,IAAM,CAAA,MAAA,GAAN,MAAM,CAAuC;KAC7E;;AAHK,eAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,kBAEZ,aAAa,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;iGAFhB,eAAe,EAAA,QAAA,EAAA,UAAA,EAAA,OAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,SAAA,EAFb,CAAC,aAAa,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;4FAEjB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAL3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,UAAU;oBACpB,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,SAAS,EAAE,CAAC,aAAa,CAAC;AAC7B,iBAAA,CAAA;;0BAGQ,MAAM;2BAAC,aAAa,CAAA;;;ACP7B;;AAEG;MAKU,YAAY,CAAA;;0GAAZ,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;2GAAZ,YAAY,EAAA,YAAA,EAAA,CAHN,eAAe,CAAA,EAAA,OAAA,EAAA,CACpB,eAAe,CAAA,EAAA,CAAA,CAAA;2GAEhB,YAAY,EAAA,CAAA,CAAA;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,eAAe,CAAC;oBAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;AAC7B,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
|
|
@@ -25,7 +25,7 @@ TuiPortalDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", ver
|
|
|
25
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPortalDirective, decorators: [{
|
|
26
26
|
type: Directive,
|
|
27
27
|
args: [{
|
|
28
|
-
selector:
|
|
28
|
+
selector: '[tuiPortal]',
|
|
29
29
|
}]
|
|
30
30
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
31
31
|
type: Inject,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-portal.js","sources":["../../../projects/cdk/directives/portal/portal.directive.ts","../../../projects/cdk/directives/portal/portal.module.ts","../../../projects/cdk/directives/portal/taiga-ui-cdk-directives-portal.ts"],"sourcesContent":["import {\n Directive,\n EmbeddedViewRef,\n Inject,\n Input,\n OnDestroy,\n TemplateRef,\n} from '@angular/core';\nimport {TuiDropdownPortalService} from '@taiga-ui/cdk/components/dropdown-host';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-portal.js","sources":["../../../projects/cdk/directives/portal/portal.directive.ts","../../../projects/cdk/directives/portal/portal.module.ts","../../../projects/cdk/directives/portal/taiga-ui-cdk-directives-portal.ts"],"sourcesContent":["import {\n Directive,\n EmbeddedViewRef,\n Inject,\n Input,\n OnDestroy,\n TemplateRef,\n} from '@angular/core';\nimport {TuiDropdownPortalService} from '@taiga-ui/cdk/components/dropdown-host';\n\n@Directive({\n selector: '[tuiPortal]',\n})\nexport class TuiPortalDirective implements OnDestroy {\n private viewRef?: EmbeddedViewRef<unknown>;\n\n @Input()\n set tuiPortal(show: boolean) {\n this.viewRef?.destroy();\n\n if (show) {\n this.viewRef = this.portalService.addTemplate(this.templateRef);\n }\n }\n\n constructor(\n @Inject(TemplateRef)\n private readonly templateRef: TemplateRef<Record<string, unknown>>,\n @Inject(TuiDropdownPortalService)\n private readonly portalService: TuiDropdownPortalService,\n ) {}\n\n ngOnDestroy(): void {\n this.viewRef?.destroy();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPortalDirective} from './portal.directive';\n\n@NgModule({\n declarations: [TuiPortalDirective],\n exports: [TuiPortalDirective],\n})\nexport class TuiPortalModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAaa,kBAAkB,CAAA;IAY3B,WAEqB,CAAA,WAAiD,EAEjD,aAAuC,EAAA;QAFvC,IAAW,CAAA,WAAA,GAAX,WAAW,CAAsC;QAEjD,IAAa,CAAA,aAAA,GAAb,aAAa,CAA0B;KACxD;IAdJ,IACI,SAAS,CAAC,IAAa,EAAA;;AACvB,QAAA,CAAA,EAAA,GAAA,IAAI,CAAC,OAAO,MAAE,IAAA,IAAA,EAAA,KAAA,KAAA,C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AA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,kBAAkB,CAAC;oBAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAChC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -17,7 +17,7 @@ TuiPressedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", ve
|
|
|
17
17
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPressedDirective, decorators: [{
|
|
18
18
|
type: Directive,
|
|
19
19
|
args: [{
|
|
20
|
-
selector:
|
|
20
|
+
selector: '[tuiPressedChange]',
|
|
21
21
|
}]
|
|
22
22
|
}], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
|
|
23
23
|
type: Inject,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-pressed.js","sources":["../../../projects/cdk/directives/pressed/pressed.directive.ts","../../../projects/cdk/directives/pressed/pressed.module.ts","../../../projects/cdk/directives/pressed/taiga-ui-cdk-directives-pressed.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {tuiPressedObservable} from '@taiga-ui/cdk/observables';\nimport {TUI_TAKE_ONLY_TRUSTED_EVENTS} from '@taiga-ui/cdk/tokens';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-pressed.js","sources":["../../../projects/cdk/directives/pressed/pressed.directive.ts","../../../projects/cdk/directives/pressed/pressed.module.ts","../../../projects/cdk/directives/pressed/taiga-ui-cdk-directives-pressed.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {tuiPressedObservable} from '@taiga-ui/cdk/observables';\nimport {TUI_TAKE_ONLY_TRUSTED_EVENTS} from '@taiga-ui/cdk/tokens';\n\n@Directive({\n selector: '[tuiPressedChange]',\n})\nexport class TuiPressedDirective {\n @Output()\n readonly tuiPressedChange = tuiPressedObservable(this.elementRef.nativeElement, {\n onlyTrusted: this.takeOnlyTrustedEvents,\n });\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<Element>,\n @Inject(TUI_TAKE_ONLY_TRUSTED_EVENTS)\n private readonly takeOnlyTrustedEvents: boolean,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPressedDirective} from './pressed.directive';\n\n@NgModule({\n declarations: [TuiPressedDirective],\n exports: [TuiPressedDirective],\n})\nexport class TuiPressedModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAOa,mBAAmB,CAAA;IAM5B,WACyC,CAAA,UAA+B,EAEnD,qBAA8B,EAAA;QAFV,IAAU,CAAA,UAAA,GAAV,UAAU,CAAqB;QAEnD,IAAqB,CAAA,qBAAA,GAArB,qBAAqB,CAAS;QAP1C,IAAgB,CAAA,gBAAA,GAAG,oBAAoB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE;YAC5E,WAAW,EAAE,IAAI,CAAC,qBAAqB;AAC1C,SAAA,CAAC,CAAC;KAMC;;iHAVK,mBAAmB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAOhB,UAAU,EAAA,EAAA,EAAA,KAAA,EACV,4BAA4B,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;qGAR/B,mBAAmB,EAAA,QAAA,EAAA,oBAAA,EAAA,OAAA,EAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAH/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,oBAAoB;AACjC,iBAAA,CAAA;;0BAQQ,MAAM;2BAAC,UAAU,CAAA;;0BACjB,MAAM;2BAAC,4BAA4B,CAAA;4CAN/B,gBAAgB,EAAA,CAAA;sBADxB,MAAM;;;MCAE,gBAAgB,CAAA;;8GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAhB,gBAAgB,EAAA,YAAA,EAAA,CAHV,mBAAmB,CAAA,EAAA,OAAA,EAAA,CACxB,mBAAmB,CAAA,EAAA,CAAA,CAAA;+GAEpB,gBAAgB,EAAA,CAAA,CAAA;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;AACjC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -17,12 +17,12 @@ class TuiPreventDefaultDirective {
|
|
|
17
17
|
.subscribe();
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
TuiPreventDefaultDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPreventDefaultDirective, deps: [{ token: ElementRef }, { token: NgZone }, { token: TuiDestroyService, self: true }, { token:
|
|
20
|
+
TuiPreventDefaultDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPreventDefaultDirective, deps: [{ token: ElementRef }, { token: NgZone }, { token: TuiDestroyService, self: true }, { token: 'tuiPreventDefault', attribute: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
21
|
TuiPreventDefaultDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiPreventDefaultDirective, selector: "[tuiPreventDefault]", providers: [TuiDestroyService], ngImport: i0 });
|
|
22
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiPreventDefaultDirective, decorators: [{
|
|
23
23
|
type: Directive,
|
|
24
24
|
args: [{
|
|
25
|
-
selector:
|
|
25
|
+
selector: '[tuiPreventDefault]',
|
|
26
26
|
providers: [TuiDestroyService],
|
|
27
27
|
}]
|
|
28
28
|
}], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
|
|
@@ -38,7 +38,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
38
38
|
args: [TuiDestroyService]
|
|
39
39
|
}] }, { type: undefined, decorators: [{
|
|
40
40
|
type: Attribute,
|
|
41
|
-
args: [
|
|
41
|
+
args: ['tuiPreventDefault']
|
|
42
42
|
}] }]; } });
|
|
43
43
|
|
|
44
44
|
class TuiPreventDefaultModule {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-prevent-default.js","sources":["../../../projects/cdk/directives/prevent-default/prevent-default.directive.ts","../../../projects/cdk/directives/prevent-default/prevent-default.module.ts","../../../projects/cdk/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.ts"],"sourcesContent":["import {Attribute, Directive, ElementRef, Inject, NgZone, Self} from '@angular/core';\nimport {tuiPreventDefault, tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {fromEvent, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * Simple prevent default on event directive when you do not need anything\n * else on event and do not want to trigger change detection\n */\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-prevent-default.js","sources":["../../../projects/cdk/directives/prevent-default/prevent-default.directive.ts","../../../projects/cdk/directives/prevent-default/prevent-default.module.ts","../../../projects/cdk/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.ts"],"sourcesContent":["import {Attribute, Directive, ElementRef, Inject, NgZone, Self} from '@angular/core';\nimport {tuiPreventDefault, tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {TuiDestroyService} from '@taiga-ui/cdk/services';\nimport {fromEvent, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * Simple prevent default on event directive when you do not need anything\n * else on event and do not want to trigger change detection\n */\n@Directive({\n selector: '[tuiPreventDefault]',\n providers: [TuiDestroyService],\n})\nexport class TuiPreventDefaultDirective {\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(NgZone) ngZone: NgZone,\n @Self() @Inject(TuiDestroyService) destroy$: Observable<void>,\n @Attribute('tuiPreventDefault') eventName: string,\n ) {\n fromEvent(nativeElement, eventName, {passive: false})\n .pipe(tuiZonefree(ngZone), tuiPreventDefault(), takeUntil(destroy$))\n .subscribe();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPreventDefaultDirective} from './prevent-default.directive';\n\n@NgModule({\n declarations: [TuiPreventDefaultDirective],\n exports: [TuiPreventDefaultDirective],\n})\nexport class TuiPreventDefaultModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAMA;;;AAGG;MAKU,0BAA0B,CAAA;IACnC,WACwB,CAAA,EAAC,aAAa,EAA0B,EAC5C,MAAc,EACK,QAA0B,EAC7B,SAAiB,EAAA;QAEjD,SAAS,CAAC,aAAa,EAAE,SAAS,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;AAChD,aAAA,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,iBAAiB,EAAE,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;AACnE,aAAA,SAAS,EAAE,CAAC;KACpB;;AAVQ,0BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,kBAEvB,UAAU,EAAA,EA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type: TuiRepeatTimesDirective, decorators: [{
|
|
52
52
|
type: Directive,
|
|
53
53
|
args: [{
|
|
54
|
-
selector:
|
|
54
|
+
selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',
|
|
55
55
|
}]
|
|
56
56
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef, decorators: [{
|
|
57
57
|
type: Inject,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-repeat-times.js","sources":["../../../projects/cdk/directives/repeat-times/repeat-times.directive.ts","../../../projects/cdk/directives/repeat-times/repeat-times.module.ts","../../../projects/cdk/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.ts"],"sourcesContent":["import {Directive, Inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk/interfaces';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\n\nconst MAX_VALUE = 0x10000;\n\nexport class TuiRepeatTimesContext implements TuiContextWithImplicit<number> {\n constructor(readonly $implicit: number) {}\n}\n\n/**\n * Directive similar to ngFor but using a number of repetitions rather than an array\n *\n * {@link TuiRepeatTimesDirective.tuiRepeatTimesOf requested number of times}.\n * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores\n * {@link TuiRepeatTimesContext.$implicit index} of a template instance.\n */\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-repeat-times.js","sources":["../../../projects/cdk/directives/repeat-times/repeat-times.directive.ts","../../../projects/cdk/directives/repeat-times/repeat-times.module.ts","../../../projects/cdk/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.ts"],"sourcesContent":["import {Directive, Inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {tuiRequiredSetter} from '@taiga-ui/cdk/decorators';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk/interfaces';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\n\nconst MAX_VALUE = 0x10000;\n\nexport class TuiRepeatTimesContext implements TuiContextWithImplicit<number> {\n constructor(readonly $implicit: number) {}\n}\n\n/**\n * Directive similar to ngFor but using a number of repetitions rather than an array\n *\n * {@link TuiRepeatTimesDirective.tuiRepeatTimesOf requested number of times}.\n * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores\n * {@link TuiRepeatTimesContext.$implicit index} of a template instance.\n */\n@Directive({\n selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',\n})\nexport class TuiRepeatTimesDirective {\n @Input()\n @tuiRequiredSetter()\n set tuiRepeatTimesOf(count: number) {\n const safeCount = Math.floor(tuiClamp(count, 0, MAX_VALUE));\n\n const {length} = this.viewContainer;\n\n if (count < length) {\n this.removeContainers(length - count);\n } else {\n this.addContainers(safeCount);\n }\n }\n\n constructor(\n @Inject(ViewContainerRef)\n private readonly viewContainer: ViewContainerRef,\n @Inject(TemplateRef)\n private readonly templateRef: TemplateRef<TuiRepeatTimesContext>,\n ) {}\n\n private addContainers(count: number): void {\n for (let index = this.viewContainer.length; index < count; index++) {\n this.viewContainer.createEmbeddedView<TuiRepeatTimesContext>(\n this.templateRef,\n new TuiRepeatTimesContext(index),\n );\n }\n }\n\n private removeContainers(amount: number): void {\n for (let index = 0; index < amount; index++) {\n this.viewContainer.remove();\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiRepeatTimesDirective} from './repeat-times.directive';\n\n@NgModule({\n declarations: [TuiRepeatTimesDirective],\n exports: [TuiRepeatTimesDirective],\n})\nexport class TuiRepeatTimesModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAKA,MAAM,SAAS,GAAG,OAAO,CAAC;MAEb,qBAAqB,CAAA;AAC9B,IAAA,WAAA,CAAqB,SAAiB,EAAA;QAAjB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAQ;KAAI;AAC7C,CAAA;AAED;;;;;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AA,CAAA,SAAA,EAAA,CAAA,CAAA;yGAlBd,uBAAuB,EAAA,QAAA,EAAA,oCAAA,EAAA,MAAA,EAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;AAGhC,UAAA,CAAA;AADC,IAAA,iBAAiB,EAAE;AAWnB,CAAA,EAAA,uBAAA,CAAA,SAAA,EAAA,kBAAA,EAAA,IAAA,CAAA,CAAA;4FAbQ,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,oCAAoC;AACjD,iBAAA,CAAA;;0BAiBQ,MAAM;2BAAC,gBAAgB,CAAA;;0BAEvB,MAAM;2BAAC,WAAW,CAAA;4CAfnB,gBAAgB,EAAA,CAAA;sBAFnB,KAAK;;;MCdG,oBAAoB,CAAA;;kHAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;mHAApB,oBAAoB,EAAA,YAAA,EAAA,CAHd,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAC5B,uBAAuB,CAAA,EAAA,CAAA,CAAA;mHAExB,oBAAoB,EAAA,CAAA,CAAA;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;oBACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;AACrC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -13,8 +13,8 @@ TuiResizeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", ver
|
|
|
13
13
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiResizeDirective, decorators: [{
|
|
14
14
|
type: Directive,
|
|
15
15
|
args: [{
|
|
16
|
-
selector:
|
|
17
|
-
outputs: [
|
|
16
|
+
selector: '[tuiResize]',
|
|
17
|
+
outputs: ['tuiResize'],
|
|
18
18
|
providers: [TuiDestroyService, TuiResizeService],
|
|
19
19
|
}]
|
|
20
20
|
}], ctorParameters: function () { return [{ type: i1.Observable, decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-resize.js","sources":["../../../projects/cdk/directives/resize/resize.directive.ts","../../../projects/cdk/directives/resize/resize.module.ts","../../../projects/cdk/directives/resize/taiga-ui-cdk-directives-resize.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiDestroyService, TuiResizeService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-resize.js","sources":["../../../projects/cdk/directives/resize/resize.directive.ts","../../../projects/cdk/directives/resize/resize.module.ts","../../../projects/cdk/directives/resize/taiga-ui-cdk-directives-resize.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiDestroyService, TuiResizeService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n@Directive({\n selector: '[tuiResize]',\n outputs: ['tuiResize'],\n providers: [TuiDestroyService, TuiResizeService],\n})\nexport class TuiResizeDirective {\n constructor(\n @Inject(TuiResizeService)\n readonly tuiResize: Observable<readonly ResizeObserverEntry[]>,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiResizeDirective} from './resize.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiResizeDirective],\n exports: [TuiResizeDirective],\n})\nexport class TuiResizeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MASa,kBAAkB,CAAA;AAC3B,IAAA,WAAA,CAEa,SAAqD,EAAA;QAArD,IAAS,CAAA,SAAA,GAAT,SAAS,CAA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AC;oBAClC,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAChC,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
|
|
@@ -12,7 +12,7 @@ TuiResizeableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0",
|
|
|
12
12
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiResizeableDirective, decorators: [{
|
|
13
13
|
type: Directive,
|
|
14
14
|
args: [{
|
|
15
|
-
selector:
|
|
15
|
+
selector: '[tuiResizeable]',
|
|
16
16
|
}]
|
|
17
17
|
}] });
|
|
18
18
|
|
|
@@ -29,15 +29,15 @@ class TuiResizerDirective {
|
|
|
29
29
|
}
|
|
30
30
|
get cursor() {
|
|
31
31
|
if (!this.tuiResizer[0]) {
|
|
32
|
-
return
|
|
32
|
+
return 'ns-resize';
|
|
33
33
|
}
|
|
34
34
|
if (!this.tuiResizer[1]) {
|
|
35
|
-
return
|
|
35
|
+
return 'ew-resize';
|
|
36
36
|
}
|
|
37
37
|
if (this.tuiResizer[0] * this.tuiResizer[1] > 0) {
|
|
38
|
-
return
|
|
38
|
+
return 'nwse-resize';
|
|
39
39
|
}
|
|
40
|
-
return
|
|
40
|
+
return 'nesw-resize';
|
|
41
41
|
}
|
|
42
42
|
onTouchStart({ touches }) {
|
|
43
43
|
this.onMouseDown(touches[0].clientX, touches[0].clientY);
|
|
@@ -84,8 +84,8 @@ __decorate([
|
|
|
84
84
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiResizerDirective, decorators: [{
|
|
85
85
|
type: Directive,
|
|
86
86
|
args: [{
|
|
87
|
-
selector:
|
|
88
|
-
host: { '[style.touchAction]':
|
|
87
|
+
selector: '[tuiResizer]',
|
|
88
|
+
host: { '[style.touchAction]': '"none"' },
|
|
89
89
|
}]
|
|
90
90
|
}], ctorParameters: function () { return [{ type: i0.ElementRef, decorators: [{
|
|
91
91
|
type: Inject,
|
|
@@ -96,25 +96,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
96
96
|
type: Output
|
|
97
97
|
}], cursor: [{
|
|
98
98
|
type: HostBinding,
|
|
99
|
-
args: [
|
|
99
|
+
args: ['style.cursor']
|
|
100
100
|
}], onTouchStart: [{
|
|
101
101
|
type: HostListener,
|
|
102
|
-
args: [
|
|
102
|
+
args: ['touchstart.silent.passive', ['$event']]
|
|
103
103
|
}], onMouseDown: [{
|
|
104
104
|
type: HostListener,
|
|
105
|
-
args: [
|
|
105
|
+
args: ['mousedown.silent.prevent', ['$event.x', '$event.y']]
|
|
106
106
|
}], onMouseMove: [{
|
|
107
107
|
type: HostListener,
|
|
108
|
-
args: [
|
|
108
|
+
args: ['document:mousemove.silent', ['$event']]
|
|
109
109
|
}], onTouchMove: [{
|
|
110
110
|
type: HostListener,
|
|
111
|
-
args: [
|
|
111
|
+
args: ['document:touchmove.silent', ['$event']]
|
|
112
112
|
}], onMouseUp: [{
|
|
113
113
|
type: HostListener,
|
|
114
|
-
args: [
|
|
114
|
+
args: ['document:mouseup.silent']
|
|
115
115
|
}, {
|
|
116
116
|
type: HostListener,
|
|
117
|
-
args: [
|
|
117
|
+
args: ['document:touchend.silent']
|
|
118
118
|
}] } });
|
|
119
119
|
|
|
120
120
|
class TuiResizerModule {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-resizer.js","sources":["../../../projects/cdk/directives/resizer/resizeable.directive.ts","../../../projects/cdk/directives/resizer/resizer.directive.ts","../../../projects/cdk/directives/resizer/resizer.module.ts","../../../projects/cdk/directives/resizer/taiga-ui-cdk-directives-resizer.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TuiElementDirective} from '@taiga-ui/cdk/directives/element';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-resizer.js","sources":["../../../projects/cdk/directives/resizer/resizeable.directive.ts","../../../projects/cdk/directives/resizer/resizer.directive.ts","../../../projects/cdk/directives/resizer/resizer.module.ts","../../../projects/cdk/directives/resizer/taiga-ui-cdk-directives-resizer.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TuiElementDirective} from '@taiga-ui/cdk/directives/element';\n\n@Directive({\n selector: '[tuiResizeable]',\n})\nexport class TuiResizeableDirective extends TuiElementDirective<HTMLElement> {}\n","import {\n Directive,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk/decorators';\nimport {tuiPx} from '@taiga-ui/cdk/utils/format';\n\nimport {TuiResizeableDirective} from './resizeable.directive';\n\n// TODO: Migrate to PointerEvent in 4.0\n@Directive({\n selector: '[tuiResizer]',\n host: {'[style.touchAction]': '\"none\"'},\n})\nexport class TuiResizerDirective {\n @Input()\n @tuiDefaultProp()\n tuiResizer: readonly [x: number, y: number] = [0, 0];\n\n @Output()\n readonly tuiSizeChange = new EventEmitter<readonly [x: number, y: number]>();\n\n x = NaN;\n y = NaN;\n width = 0;\n height = 0;\n\n constructor(\n @Inject(TuiResizeableDirective)\n private readonly resizeable: ElementRef<HTMLElement>,\n ) {}\n\n @HostBinding('style.cursor')\n get cursor(): string {\n if (!this.tuiResizer[0]) {\n return 'ns-resize';\n }\n\n if (!this.tuiResizer[1]) {\n return 'ew-resize';\n }\n\n if (this.tuiResizer[0] * this.tuiResizer[1] > 0) {\n return 'nwse-resize';\n }\n\n return 'nesw-resize';\n }\n\n @HostListener('touchstart.silent.passive', ['$event'])\n onTouchStart({touches}: TouchEvent): void {\n this.onMouseDown(touches[0].clientX, touches[0].clientY);\n }\n\n @HostListener('mousedown.silent.prevent', ['$event.x', '$event.y'])\n onMouseDown(x: number, y: number): void {\n this.x = x;\n this.y = y;\n this.width = this.resizeable.nativeElement.clientWidth;\n this.height = this.resizeable.nativeElement.clientHeight;\n }\n\n @HostListener('document:mousemove.silent', ['$event'])\n onMouseMove({x, y, buttons}: MouseEvent): void {\n if (!buttons) {\n this.onMouseUp();\n } else {\n this.onMove(x, y);\n }\n }\n\n @HostListener('document:touchmove.silent', ['$event'])\n onTouchMove({touches}: TouchEvent): void {\n this.onMove(touches[0].clientX, touches[0].clientY);\n }\n\n @HostListener('document:mouseup.silent')\n @HostListener('document:touchend.silent')\n onMouseUp(): void {\n this.x = NaN;\n }\n\n onMove(x: number, y: number): void {\n if (Number.isNaN(this.x)) {\n return;\n }\n\n const {style} = this.resizeable.nativeElement;\n const size = [\n this.width + this.tuiResizer[0] * (x - this.x),\n this.height + this.tuiResizer[1] * (y - this.y),\n ] as const;\n\n style.width = tuiPx(size[0]);\n style.height = tuiPx(size[1]);\n this.tuiSizeChange.emit(size);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiResizeableDirective} from './resizeable.directive';\nimport {TuiResizerDirective} from './resizer.directive';\n\n@NgModule({\n declarations: [TuiResizeableDirective, TuiResizerDirective],\n exports: [TuiResizeableDirective, TuiResizerDirective],\n})\nexport class TuiResizerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMM,MAAO,sBAAuB,SAAQ,mBAAgC,CAAA;;oHAA/D,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;wGAAtB,sBAAsB,EAAA,QAAA,EAAA,iBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAHlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,iBAAiB;AAC9B,iBAAA,CAAA;;;ACUD;MAKa,mBAAmB,CAAA;AAa5B,IAAA,WAAA,CAEqB,UAAmC,EAAA;QAAnC,IAA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({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiSwipeDirective, decorators: [{
|
|
14
14
|
type: Directive,
|
|
15
15
|
args: [{
|
|
16
|
-
selector:
|
|
17
|
-
outputs: [
|
|
16
|
+
selector: '[tuiSwipe]',
|
|
17
|
+
outputs: ['tuiSwipe'],
|
|
18
18
|
providers: [TuiSwipeService],
|
|
19
19
|
}]
|
|
20
20
|
}], ctorParameters: function () { return [{ type: i1.Observable, decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-swipe.js","sources":["../../../projects/cdk/directives/swipe/swipe.directive.ts","../../../projects/cdk/directives/swipe/swipe.module.ts","../../../projects/cdk/directives/swipe/taiga-ui-cdk-directives-swipe.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiSwipe} from '@taiga-ui/cdk/interfaces';\nimport {TuiSwipeService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-swipe.js","sources":["../../../projects/cdk/directives/swipe/swipe.directive.ts","../../../projects/cdk/directives/swipe/swipe.module.ts","../../../projects/cdk/directives/swipe/taiga-ui-cdk-directives-swipe.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiSwipe} from '@taiga-ui/cdk/interfaces';\nimport {TuiSwipeService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n@Directive({\n selector: '[tuiSwipe]',\n outputs: ['tuiSwipe'],\n providers: [TuiSwipeService],\n})\nexport class TuiSwipeDirective {\n constructor(@Inject(TuiSwipeService) readonly tuiSwipe: Observable<TuiSwipe>) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiSwipeDirective} from './swipe.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiSwipeDirective],\n exports: [TuiSwipeDirective],\n})\nexport class TuiSwipeModule {}\n","/**\n * Generated bundle index.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AO,EAAE,CAAC,iBAAiB,CAAC;AAC/B,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
|
|
@@ -38,7 +38,7 @@ __decorate([
|
|
|
38
38
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiValidatorDirective, decorators: [{
|
|
39
39
|
type: Directive,
|
|
40
40
|
args: [{
|
|
41
|
-
selector:
|
|
41
|
+
selector: '[tuiValidator]',
|
|
42
42
|
providers: [
|
|
43
43
|
{
|
|
44
44
|
provide: NG_VALIDATORS,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-validator.js","sources":["../../../projects/cdk/directives/validator/validator.directive.ts","../../../projects/cdk/directives/validator/validator.module.ts","../../../projects/cdk/directives/validator/taiga-ui-cdk-directives-validator.ts"],"sourcesContent":["import {Directive, forwardRef, Input, OnChanges, OnDestroy} from '@angular/core';\nimport {\n AbstractControl,\n NG_VALIDATORS,\n ValidationErrors,\n Validator,\n ValidatorFn,\n Validators,\n} from '@angular/forms';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiDefaultProp} from '@taiga-ui/cdk/decorators';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-validator.js","sources":["../../../projects/cdk/directives/validator/validator.directive.ts","../../../projects/cdk/directives/validator/validator.module.ts","../../../projects/cdk/directives/validator/taiga-ui-cdk-directives-validator.ts"],"sourcesContent":["import {Directive, forwardRef, Input, OnChanges, OnDestroy} from '@angular/core';\nimport {\n AbstractControl,\n NG_VALIDATORS,\n ValidationErrors,\n Validator,\n ValidatorFn,\n Validators,\n} from '@angular/forms';\nimport {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants';\nimport {tuiDefaultProp} from '@taiga-ui/cdk/decorators';\n\n@Directive({\n selector: '[tuiValidator]',\n providers: [\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => TuiValidatorDirective),\n multi: true,\n },\n ],\n})\nexport class TuiValidatorDirective implements Validator, OnChanges, OnDestroy {\n private onChange = EMPTY_FUNCTION;\n\n @Input()\n @tuiDefaultProp()\n tuiValidator: ValidatorFn = Validators.nullValidator;\n\n validate(control: AbstractControl): ValidationErrors | null {\n return this.tuiValidator(control);\n }\n\n registerOnValidatorChange(onChange: (...args: any[]) => void): void {\n this.onChange = onChange;\n }\n\n ngOnChanges(): void {\n this.onChange();\n }\n\n ngOnDestroy(): void {\n this.tuiValidator = Validators.nullValidator;\n this.onChange();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiValidatorDirective} from './validator.directive';\n\n@NgModule({\n declarations: [TuiValidatorDirective],\n exports: [TuiValidatorDirective],\n})\nexport class TuiValidatorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAsBa,qBAAqB,CAAA;AAVlC,IAAA,WAAA,GAAA;QAWY,IAAQ,CAAA,QAAA,GAAG,cAAc,CAAC;AAIlC,QAAA,IAAA,CAAA,YAAY,GAAgB,UAAU,CAAC,aAAa,CAAC;AAkBxD,KAAA;AAhBG,IAAA,QAAQ,CAAC,OAAwB,EAAA;AAC7B,QAAA,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;KACrC;AAED,IAAA,yBAAyB,CAAC,QAAkC,EAAA;AACxD,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;KAC5B;IAED,WAAW,GAAA;QACP,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;IAED,WAAW,GAAA;AACP,QAAA,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,aAAa,CAAC;QAC7C,IAAI,CAAC,QAAQ,EAAE,CAAC;KACnB;;mHAtBQ,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAA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A,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACnC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -13,11 +13,11 @@ TuiZoomDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", versi
|
|
|
13
13
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiZoomDirective, decorators: [{
|
|
14
14
|
type: Directive,
|
|
15
15
|
args: [{
|
|
16
|
-
selector:
|
|
17
|
-
outputs: [
|
|
16
|
+
selector: '[tuiZoom]',
|
|
17
|
+
outputs: ['tuiZoom'],
|
|
18
18
|
providers: [TuiZoomService],
|
|
19
19
|
host: {
|
|
20
|
-
'[style.touch-action]':
|
|
20
|
+
'[style.touch-action]': '"none"',
|
|
21
21
|
},
|
|
22
22
|
}]
|
|
23
23
|
}], ctorParameters: function () { return [{ type: i1.Observable, decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-zoom.js","sources":["../../../projects/cdk/directives/zoom/zoom.directive.ts","../../../projects/cdk/directives/zoom/zoom.module.ts","../../../projects/cdk/directives/zoom/taiga-ui-cdk-directives-zoom.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiZoom} from '@taiga-ui/cdk/interfaces';\nimport {TuiZoomService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-cdk-directives-zoom.js","sources":["../../../projects/cdk/directives/zoom/zoom.directive.ts","../../../projects/cdk/directives/zoom/zoom.module.ts","../../../projects/cdk/directives/zoom/taiga-ui-cdk-directives-zoom.ts"],"sourcesContent":["import {Directive, Inject} from '@angular/core';\nimport {TuiZoom} from '@taiga-ui/cdk/interfaces';\nimport {TuiZoomService} from '@taiga-ui/cdk/services';\nimport {Observable} from 'rxjs';\n\n@Directive({\n selector: '[tuiZoom]',\n outputs: ['tuiZoom'],\n providers: [TuiZoomService],\n host: {\n '[style.touch-action]': '\"none\"',\n },\n})\nexport class TuiZoomDirective {\n constructor(@Inject(TuiZoomService) readonly tuiZoom: Observable<TuiZoom>) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiZoomDirective} from './zoom.directive';\n\n/**\n * @experimental\n */\n@NgModule({\n declarations: [TuiZoomDirective],\n exports: [TuiZoomDirective],\n})\nexport class TuiZoomModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAaa,gBAAgB,CAAA;AACzB,IAAA,WAAA,CAA6C,OAA4B,EAAA;QAA5B,IAAO,CAAA,OAAA,GAAP,OAAO,CAAqB;KAAI;;AADpE,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,kBACL,cAAc,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGADzB,gBAAgB,EAAA,QAAA,EAAA,WAAA,EAAA,OAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,EAAA,EAAA,SAAA,EALd,CAAC,cAAc,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;4FAKlB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAR5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,WAAW;oBACrB,OAAO,EAAE,CAAC,SAAS,CAAC;oBACpB,SAAS,EAAE,CAAC,cAAc,CAAC;AAC3B,oBAAA,IAAI,EAAE;AACF,wBAAA,sBAAsB,EAAE,QAAQ;AACnC,qBAAA;AACJ,iBAAA,CAAA;;0BAEgB,MAAM;2BAAC,cAAc,CAAA;;;ACVtC;;AAEG;MAKU,aAAa,CAAA;;2GAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;4GAAb,aAAa,EAAA,YAAA,EAAA,CAHP,gBAAgB,CAAA,EAAA,OAAA,EAAA,CACrB,gBAAgB,CAAA,EAAA,CAAA,CAAA;4GAEjB,aAAa,EAAA,CAAA,CAAA;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,gBAAgB,CAAC;oBAChC,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC9B,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/cdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.15.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",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@ng-web-apis/common": "2.0.1",
|
|
19
19
|
"@ng-web-apis/mutation-observer": "2.0.0",
|
|
20
20
|
"@ng-web-apis/resize-observer": "2.0.0",
|
|
21
|
-
"@tinkoff/ng-event-plugins": "3.
|
|
21
|
+
"@tinkoff/ng-event-plugins": "3.1.0",
|
|
22
22
|
"@tinkoff/ng-polymorpheus": "4.0.10",
|
|
23
23
|
"tslib": "^2.0.0"
|
|
24
24
|
},
|
|
@@ -63,4 +63,4 @@
|
|
|
63
63
|
"fesm2015": "fesm2015/taiga-ui-cdk.js",
|
|
64
64
|
"typings": "taiga-ui-cdk.d.ts",
|
|
65
65
|
"sideEffects": false
|
|
66
|
-
}
|
|
66
|
+
}
|
|
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getFileSystem = void 0;
|
|
4
4
|
const ng_morph_1 = require("ng-morph");
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
|
+
const project_root_1 = require("../../utils/project-root");
|
|
6
7
|
function getFileSystem(tree) {
|
|
7
|
-
const project = ng_morph_1.createProject(tree,
|
|
8
|
+
const project = ng_morph_1.createProject(tree, project_root_1.projectRoot(), constants_1.ALL_FILES);
|
|
8
9
|
ng_morph_1.setActiveProject(project);
|
|
9
10
|
return project.getFileSystem().fs;
|
|
10
11
|
}
|
|
@@ -4,6 +4,7 @@ exports.migrateProgress = exports.DEPRECATED_PROGRESS_PIPES_REG = void 0;
|
|
|
4
4
|
const ng_morph_1 = require("ng-morph");
|
|
5
5
|
const constants_1 = require("../../../constants");
|
|
6
6
|
const colored_log_1 = require("../../../utils/colored-log");
|
|
7
|
+
const project_root_1 = require("../../../utils/project-root");
|
|
7
8
|
const elements_1 = require("../../../utils/templates/elements");
|
|
8
9
|
const get_component_templates_1 = require("../../../utils/templates/get-component-templates");
|
|
9
10
|
const template_resource_1 = require("../../../utils/templates/template-resource");
|
|
@@ -20,7 +21,7 @@ function migrateProgress(fileSystem, options) {
|
|
|
20
21
|
}
|
|
21
22
|
fileSystem.commitEdits();
|
|
22
23
|
ng_morph_1.saveActiveProject();
|
|
23
|
-
ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree,
|
|
24
|
+
ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree, project_root_1.projectRoot(), constants_1.ALL_FILES));
|
|
24
25
|
!options[`skip-logs`] &&
|
|
25
26
|
colored_log_1.successLog(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.SUCCESS_SYMBOL} progress bars migrated \n`);
|
|
26
27
|
}
|
|
@@ -6,6 +6,7 @@ const constants_1 = require("../../../../constants");
|
|
|
6
6
|
const add_unique_import_1 = require("../../../../utils/add-unique-import");
|
|
7
7
|
const ng_component_1 = require("../../../../utils/angular/ng-component");
|
|
8
8
|
const progress_1 = require("../../../../utils/progress");
|
|
9
|
+
const project_root_1 = require("../../../../utils/project-root");
|
|
9
10
|
const get_component_templates_1 = require("../../../../utils/templates/get-component-templates");
|
|
10
11
|
const ng_component_input_manipulations_1 = require("../../../../utils/templates/ng-component-input-manipulations");
|
|
11
12
|
const MIN_LABELS_MIGRATION_METHOD_NAME = `tuiMigrationInputRangeMinLabel`;
|
|
@@ -101,5 +102,5 @@ function addMinMaxLabelMethod(componentPath, methodName, methodCode) {
|
|
|
101
102
|
function save(fileSystem) {
|
|
102
103
|
fileSystem.commitEdits();
|
|
103
104
|
ng_morph_1.saveActiveProject();
|
|
104
|
-
ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree,
|
|
105
|
+
ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree, project_root_1.projectRoot(), constants_1.ALL_FILES));
|
|
105
106
|
}
|