@taiga-ui/core 3.0.0-rc.4 → 3.0.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/abstract/abstract-driver.directive.d.ts +1 -1
- package/abstract/abstract-textfield-host.d.ts +3 -3
- package/bundles/taiga-ui-core-abstract.umd.js +17 -13
- package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-button.umd.js +56 -37
- package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-expand.umd.js +24 -40
- package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-hints-host.umd.js +1 -1
- package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-notification.umd.js +1 -2
- package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +52 -89
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-root.umd.js +1 -1
- package/bundles/taiga-ui-core-components-root.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js +26 -27
- package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-tooltip.umd.js +2 -2
- package/bundles/taiga-ui-core-components-tooltip.umd.js.map +1 -1
- package/bundles/taiga-ui-core-constants.umd.js +0 -10
- package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-hint.umd.js +186 -41
- package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +3 -253
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives.umd.js +4 -16
- package/bundles/taiga-ui-core-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-core-pipes-format-date.umd.js +77 -0
- package/bundles/taiga-ui-core-pipes-format-date.umd.js.map +1 -0
- package/bundles/taiga-ui-core-pipes.umd.js +10 -4
- package/bundles/taiga-ui-core-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-core-services.umd.js +32 -35
- package/bundles/taiga-ui-core-services.umd.js.map +1 -1
- package/components/button/button-options.d.ts +1 -1
- package/components/button/button.component.d.ts +9 -3
- package/components/expand/expand.module.d.ts +3 -4
- package/components/expand/index.d.ts +0 -1
- package/components/primitive-textfield/primitive-textfield.component.d.ts +4 -4
- package/components/primitive-textfield/primitive-textfield.directive.d.ts +2 -2
- package/components/primitive-textfield/primitive-textfield.module.d.ts +1 -2
- package/components/primitive-textfield/textfield/textfield.component.d.ts +4 -7
- package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +1 -3
- package/components/scrollbar/scrollbar.component.d.ts +3 -1
- package/components/tooltip/tooltip.component.d.ts +2 -2
- package/constants/index.d.ts +0 -2
- package/directives/hint/hint-describe.directive.d.ts +18 -0
- package/directives/hint/hint-options.directive.d.ts +16 -0
- package/directives/hint/hint.component.d.ts +8 -5
- package/directives/hint/hint.directive.d.ts +1 -3
- package/directives/hint/hint.module.d.ts +6 -4
- package/directives/hint/index.d.ts +2 -0
- package/directives/index.d.ts +0 -2
- package/directives/textfield-controller/index.d.ts +0 -5
- package/directives/textfield-controller/textfield-controller.module.d.ts +7 -12
- package/directives/textfield-controller/textfield.controller.d.ts +2 -17
- package/esm2015/abstract/abstract-driver.directive.js +1 -1
- package/esm2015/abstract/abstract-textfield-host.js +5 -5
- package/esm2015/abstract/driver.js +2 -1
- package/esm2015/abstract/position-accessor.js +2 -1
- package/esm2015/abstract/rect-accessor.js +2 -1
- package/esm2015/abstract/vehicle.js +2 -1
- package/esm2015/components/button/button-options.js +1 -1
- package/esm2015/components/button/button.component.js +32 -15
- package/esm2015/components/expand/expand.component.js +22 -23
- package/esm2015/components/expand/expand.module.js +4 -5
- package/esm2015/components/expand/index.js +1 -2
- package/esm2015/components/hints-host/hints-host.component.js +2 -2
- package/esm2015/components/notification/notification.component.js +3 -4
- package/esm2015/components/primitive-textfield/primitive-textfield.component.js +28 -29
- package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +3 -3
- package/esm2015/components/primitive-textfield/primitive-textfield.module.js +3 -10
- package/esm2015/components/primitive-textfield/textfield/textfield.component.js +7 -28
- package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +4 -11
- package/esm2015/components/root/root.component.js +2 -2
- package/esm2015/components/scroll-controls/scroll-controls.component.js +8 -9
- package/esm2015/components/scrollbar/scrollbar.component.js +4 -4
- package/esm2015/components/tooltip/tooltip.component.js +4 -4
- package/esm2015/constants/index.js +1 -3
- package/esm2015/directives/hint/hint-describe.directive.js +60 -0
- package/esm2015/directives/hint/hint-hover.directive.js +6 -3
- package/esm2015/directives/hint/hint-options.directive.js +72 -0
- package/esm2015/directives/hint/hint.component.js +28 -15
- package/esm2015/directives/hint/hint.directive.js +3 -15
- package/esm2015/directives/hint/hint.module.js +13 -3
- package/esm2015/directives/hint/index.js +3 -1
- package/esm2015/directives/index.js +1 -3
- package/esm2015/directives/textfield-controller/index.js +1 -6
- package/esm2015/directives/textfield-controller/textfield-controller.module.js +3 -28
- package/esm2015/directives/textfield-controller/textfield-controller.provider.js +1 -11
- package/esm2015/directives/textfield-controller/textfield.controller.js +2 -22
- package/esm2015/interfaces/portal-item.js +1 -1
- package/esm2015/pipes/format-date/format-date.module.js +16 -0
- package/esm2015/pipes/format-date/format-date.pipe.js +24 -0
- package/esm2015/pipes/format-date/index.js +3 -0
- package/esm2015/pipes/format-date/taiga-ui-core-pipes-format-date.js +5 -0
- package/esm2015/pipes/index.js +2 -1
- package/esm2015/services/format-date.service.js +26 -0
- package/esm2015/services/hint.service.js +1 -31
- package/esm2015/services/index.js +2 -1
- package/fesm2015/taiga-ui-core-abstract.js +9 -5
- package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-button.js +32 -15
- package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-expand.js +26 -38
- package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-hints-host.js +1 -1
- package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-notification.js +2 -3
- package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js +46 -80
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-root.js +1 -1
- package/fesm2015/taiga-ui-core-components-root.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-scroll-controls.js +3 -4
- package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-tooltip.js +3 -3
- package/fesm2015/taiga-ui-core-components-tooltip.js.map +1 -1
- package/fesm2015/taiga-ui-core-constants.js +2 -10
- package/fesm2015/taiga-ui-core-constants.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-hint.js +164 -35
- package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js +4 -209
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives.js +0 -2
- package/fesm2015/taiga-ui-core-directives.js.map +1 -1
- package/fesm2015/taiga-ui-core-pipes-format-date.js +44 -0
- package/fesm2015/taiga-ui-core-pipes-format-date.js.map +1 -0
- package/fesm2015/taiga-ui-core-pipes.js +1 -0
- package/fesm2015/taiga-ui-core-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-core-services.js +26 -33
- package/fesm2015/taiga-ui-core-services.js.map +1 -1
- package/interfaces/portal-item.d.ts +0 -1
- package/package.json +4 -4
- package/pipes/format-date/format-date.module.d.ts +7 -0
- package/pipes/format-date/format-date.pipe.d.ts +11 -0
- package/pipes/format-date/index.d.ts +2 -0
- package/pipes/format-date/package.json +10 -0
- package/{directives/described-by/taiga-ui-core-directives-described-by.d.ts → pipes/format-date/taiga-ui-core-pipes-format-date.d.ts} +1 -1
- package/pipes/index.d.ts +1 -0
- package/services/format-date.service.d.ts +9 -0
- package/services/hint.service.d.ts +0 -12
- package/services/index.d.ts +1 -0
- package/bundles/taiga-ui-core-directives-described-by.umd.js +0 -458
- package/bundles/taiga-ui-core-directives-described-by.umd.js.map +0 -1
- package/bundles/taiga-ui-core-directives-hint-controller.umd.js +0 -478
- package/bundles/taiga-ui-core-directives-hint-controller.umd.js.map +0 -1
- package/components/expand/expand-content.directive.d.ts +0 -5
- package/constants/described-by.d.ts +0 -1
- package/constants/version.d.ts +0 -1
- package/directives/described-by/described-by.directive.d.ts +0 -13
- package/directives/described-by/described-by.module.d.ts +0 -7
- package/directives/described-by/described-by.providers.d.ts +0 -4
- package/directives/described-by/index.d.ts +0 -3
- package/directives/described-by/package.json +0 -10
- package/directives/hint-controller/hint-controller.directive.d.ts +0 -16
- package/directives/hint-controller/hint-controller.module.d.ts +0 -7
- package/directives/hint-controller/hint-controller.provider.d.ts +0 -4
- package/directives/hint-controller/hint-controller.token.d.ts +0 -3
- package/directives/hint-controller/index.d.ts +0 -4
- package/directives/hint-controller/package.json +0 -10
- package/directives/hint-controller/taiga-ui-core-directives-hint-controller.d.ts +0 -5
- package/directives/textfield-controller/textfield-autocomplete.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-example-text.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-input-mode.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-max-length.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-type.directive.d.ts +0 -9
- package/esm2015/components/expand/expand-content.directive.js +0 -14
- package/esm2015/constants/described-by.js +0 -2
- package/esm2015/constants/version.js +0 -7
- package/esm2015/directives/described-by/described-by.directive.js +0 -55
- package/esm2015/directives/described-by/described-by.module.js +0 -16
- package/esm2015/directives/described-by/described-by.providers.js +0 -20
- package/esm2015/directives/described-by/index.js +0 -4
- package/esm2015/directives/described-by/taiga-ui-core-directives-described-by.js +0 -5
- package/esm2015/directives/hint-controller/hint-controller.directive.js +0 -71
- package/esm2015/directives/hint-controller/hint-controller.module.js +0 -16
- package/esm2015/directives/hint-controller/hint-controller.provider.js +0 -26
- package/esm2015/directives/hint-controller/hint-controller.token.js +0 -7
- package/esm2015/directives/hint-controller/index.js +0 -5
- package/esm2015/directives/hint-controller/taiga-ui-core-directives-hint-controller.js +0 -5
- package/esm2015/directives/textfield-controller/textfield-autocomplete.directive.js +0 -35
- package/esm2015/directives/textfield-controller/textfield-example-text.directive.js +0 -35
- package/esm2015/directives/textfield-controller/textfield-input-mode.directive.js +0 -35
- package/esm2015/directives/textfield-controller/textfield-max-length.directive.js +0 -35
- package/esm2015/directives/textfield-controller/textfield-type.directive.js +0 -35
- package/fesm2015/taiga-ui-core-directives-described-by.js +0 -92
- package/fesm2015/taiga-ui-core-directives-described-by.js.map +0 -1
- package/fesm2015/taiga-ui-core-directives-hint-controller.js +0 -115
- package/fesm2015/taiga-ui-core-directives-hint-controller.js.map +0 -1
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Directive, forwardRef, InjectionToken, Input } from '@angular/core';
|
|
2
|
-
import { AbstractTuiController } from '@taiga-ui/cdk';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export const TUI_TEXTFIELD_AUTOCOMPLETE = new InjectionToken(`tuiTextfieldAutocomplete`, {
|
|
5
|
-
factory: () => new TuiTextfieldAutocompleteDirective(),
|
|
6
|
-
});
|
|
7
|
-
export class TuiTextfieldAutocompleteDirective extends AbstractTuiController {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.autocomplete = ``;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
TuiTextfieldAutocompleteDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTextfieldAutocompleteDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
-
TuiTextfieldAutocompleteDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldAutocompleteDirective, selector: "[tuiTextfieldAutocomplete]", inputs: { autocomplete: ["tuiTextfieldAutocomplete", "autocomplete"] }, providers: [
|
|
15
|
-
{
|
|
16
|
-
provide: TUI_TEXTFIELD_AUTOCOMPLETE,
|
|
17
|
-
useExisting: forwardRef(() => TuiTextfieldAutocompleteDirective),
|
|
18
|
-
},
|
|
19
|
-
], usesInheritance: true, ngImport: i0 });
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTextfieldAutocompleteDirective, decorators: [{
|
|
21
|
-
type: Directive,
|
|
22
|
-
args: [{
|
|
23
|
-
selector: `[tuiTextfieldAutocomplete]`,
|
|
24
|
-
providers: [
|
|
25
|
-
{
|
|
26
|
-
provide: TUI_TEXTFIELD_AUTOCOMPLETE,
|
|
27
|
-
useExisting: forwardRef(() => TuiTextfieldAutocompleteDirective),
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
}]
|
|
31
|
-
}], propDecorators: { autocomplete: [{
|
|
32
|
-
type: Input,
|
|
33
|
-
args: [`tuiTextfieldAutocomplete`]
|
|
34
|
-
}] } });
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGZpZWxkLWF1dG9jb21wbGV0ZS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL2RpcmVjdGl2ZXMvdGV4dGZpZWxkLW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uVG9rZW4sIElucHV0fSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7QWJzdHJhY3RUdWlDb250cm9sbGVyLCBUdWlBdXRvZmlsbEZpZWxkTmFtZX0gZnJvbSAnQHRhaWdhLXVpL2Nkayc7XG5cbmV4cG9ydCBjb25zdCBUVUlfVEVYVEZJRUxEX0FVVE9DT01QTEVURSA9XG4gICAgbmV3IEluamVjdGlvblRva2VuPFR1aVRleHRmaWVsZEF1dG9jb21wbGV0ZURpcmVjdGl2ZT4oYHR1aVRleHRmaWVsZEF1dG9jb21wbGV0ZWAsIHtcbiAgICAgICAgZmFjdG9yeTogKCkgPT4gbmV3IFR1aVRleHRmaWVsZEF1dG9jb21wbGV0ZURpcmVjdGl2ZSgpLFxuICAgIH0pO1xuXG5ARGlyZWN0aXZlKHtcbiAgICBzZWxlY3RvcjogYFt0dWlUZXh0ZmllbGRBdXRvY29tcGxldGVdYCxcbiAgICBwcm92aWRlcnM6IFtcbiAgICAgICAge1xuICAgICAgICAgICAgcHJvdmlkZTogVFVJX1RFWFRGSUVMRF9BVVRPQ09NUExFVEUsXG4gICAgICAgICAgICB1c2VFeGlzdGluZzogZm9yd2FyZFJlZigoKSA9PiBUdWlUZXh0ZmllbGRBdXRvY29tcGxldGVEaXJlY3RpdmUpLFxuICAgICAgICB9LFxuICAgIF0sXG59KVxuZXhwb3J0IGNsYXNzIFR1aVRleHRmaWVsZEF1dG9jb21wbGV0ZURpcmVjdGl2ZSBleHRlbmRzIEFic3RyYWN0VHVpQ29udHJvbGxlciB7XG4gICAgQElucHV0KGB0dWlUZXh0ZmllbGRBdXRvY29tcGxldGVgKVxuICAgIGF1dG9jb21wbGV0ZTogVHVpQXV0b2ZpbGxGaWVsZE5hbWUgfCAnJyA9IGBgO1xufVxuIl19
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Directive, forwardRef, InjectionToken, Input } from '@angular/core';
|
|
2
|
-
import { AbstractTuiController } from '@taiga-ui/cdk';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export const TUI_TEXTFIELD_EXAMPLE_TEXT = new InjectionToken(`tuiTextfieldExampleText`, {
|
|
5
|
-
factory: () => new TuiTextfieldExampleTextDirective(),
|
|
6
|
-
});
|
|
7
|
-
export class TuiTextfieldExampleTextDirective extends AbstractTuiController {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.exampleText = ``;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
TuiTextfieldExampleTextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTextfieldExampleTextDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
-
TuiTextfieldExampleTextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldExampleTextDirective, selector: "[tuiTextfieldExampleText]", inputs: { exampleText: ["tuiTextfieldExampleText", "exampleText"] }, providers: [
|
|
15
|
-
{
|
|
16
|
-
provide: TUI_TEXTFIELD_EXAMPLE_TEXT,
|
|
17
|
-
useExisting: forwardRef(() => TuiTextfieldExampleTextDirective),
|
|
18
|
-
},
|
|
19
|
-
], usesInheritance: true, ngImport: i0 });
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTextfieldExampleTextDirective, decorators: [{
|
|
21
|
-
type: Directive,
|
|
22
|
-
args: [{
|
|
23
|
-
selector: `[tuiTextfieldExampleText]`,
|
|
24
|
-
providers: [
|
|
25
|
-
{
|
|
26
|
-
provide: TUI_TEXTFIELD_EXAMPLE_TEXT,
|
|
27
|
-
useExisting: forwardRef(() => TuiTextfieldExampleTextDirective),
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
}]
|
|
31
|
-
}], propDecorators: { exampleText: [{
|
|
32
|
-
type: Input,
|
|
33
|
-
args: [`tuiTextfield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0ZmllbGRFeGFtcGxlVGV4dGApXG4gICAgZXhhbXBsZVRleHQgPSBgYDtcbn1cbiJdfQ==
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Directive, forwardRef, InjectionToken, Input } from '@angular/core';
|
|
2
|
-
import { AbstractTuiController } from '@taiga-ui/cdk';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export const TUI_TEXTFIELD_INPUT_MODE = new InjectionToken(`tuiTextfieldInputMode`, {
|
|
5
|
-
factory: () => new TuiTextfieldInputModeDirective(),
|
|
6
|
-
});
|
|
7
|
-
export class TuiTextfieldInputModeDirective extends AbstractTuiController {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.inputMode = `text`;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
TuiTextfieldInputModeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTextfieldInputModeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
-
TuiTextfieldInputModeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldInputModeDirective, selector: "[tuiTextfieldInputMode]", inputs: { inputMode: ["tuiTextfieldInputMode", "inputMode"] }, providers: [
|
|
15
|
-
{
|
|
16
|
-
provide: TUI_TEXTFIELD_INPUT_MODE,
|
|
17
|
-
useExisting: forwardRef(() => TuiTextfieldInputModeDirective),
|
|
18
|
-
},
|
|
19
|
-
], usesInheritance: true, ngImport: i0 });
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTextfieldInputModeDirective, decorators: [{
|
|
21
|
-
type: Directive,
|
|
22
|
-
args: [{
|
|
23
|
-
selector: `[tuiTextfieldInputMode]`,
|
|
24
|
-
providers: [
|
|
25
|
-
{
|
|
26
|
-
provide: TUI_TEXTFIELD_INPUT_MODE,
|
|
27
|
-
useExisting: forwardRef(() => TuiTextfieldInputModeDirective),
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
}]
|
|
31
|
-
}], propDecorators: { inputMode: [{
|
|
32
|
-
type: Input,
|
|
33
|
-
args: [`tuiTextfieldInputMode`]
|
|
34
|
-
}] } });
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGZpZWxkLWlucHV0LW1vZGUuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9kaXJlY3RpdmVzL3RleHRmaWVsZC1jb250cm9sbGVyL3RleHRmaWVsZC1pbnB1dC1tb2RlLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLFVBQVUsRUFBRSxjQUFjLEVBQUUsS0FBSyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQzNFLE9BQU8sRUFBQyxxQkFBcUIsRUFBZSxNQUFNLGVBQWUsQ0FBQzs7QUFFbEUsTUFBTSxDQUFDLE1BQU0sd0JBQXdCLEdBQ2pDLElBQUksY0FBYyxDQUFpQyx1QkFBdUIsRUFBRTtJQUN4RSxPQUFPLEVBQUUsR0FBRyxFQUFFLENBQUMsSUFBSSw4QkFBOEIsRUFBRTtDQUN0RCxDQUFDLENBQUM7QUFXUCxNQUFNLE9BQU8sOEJBQStCLFNBQVEscUJBQXFCO0lBVHpFOztRQVdJLGNBQVMsR0FBaUIsTUFBTSxDQUFDO0tBQ3BDOzs0SEFIWSw4QkFBOEI7Z0hBQTlCLDhCQUE4QixpSEFQNUI7UUFDUDtZQUNJLE9BQU8sRUFBRSx3QkFBd0I7WUFDakMsV0FBVyxFQUFFLFVBQVUsQ0FBQyxHQUFHLEVBQUUsQ0FBQyw4QkFBOEIsQ0FB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59KVxuZXhwb3J0IGNsYXNzIFR1aVRleHRmaWVsZElucHV0TW9kZURpcmVjdGl2ZSBleHRlbmRzIEFic3RyYWN0VHVpQ29udHJvbGxlciB7XG4gICAgQElucHV0KGB0dWlUZXh0ZmllbGRJbnB1dE1vZGVgKVxuICAgIGlucHV0TW9kZTogVHVpSW5wdXRNb2RlID0gYHRleHRgO1xufVxuIl19
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Directive, forwardRef, InjectionToken, Input } from '@angular/core';
|
|
2
|
-
import { AbstractTuiController } from '@taiga-ui/cdk';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export const TUI_TEXTFIELD_MAX_LENGTH = new InjectionToken(`tuiTextfieldMaxLength`, {
|
|
5
|
-
factory: () => new TuiTextfieldMaxLengthDirective(),
|
|
6
|
-
});
|
|
7
|
-
export class TuiTextfieldMaxLengthDirective extends AbstractTuiController {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.maxLength = null;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
TuiTextfieldMaxLengthDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTextfieldMaxLengthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
-
TuiTextfieldMaxLengthDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldMaxLengthDirective, selector: "[tuiTextfieldMaxLength]", inputs: { maxLength: ["tuiTextfieldMaxLength", "maxLength"] }, providers: [
|
|
15
|
-
{
|
|
16
|
-
provide: TUI_TEXTFIELD_MAX_LENGTH,
|
|
17
|
-
useExisting: forwardRef(() => TuiTextfieldMaxLengthDirective),
|
|
18
|
-
},
|
|
19
|
-
], usesInheritance: true, ngImport: i0 });
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTextfieldMaxLengthDirective, decorators: [{
|
|
21
|
-
type: Directive,
|
|
22
|
-
args: [{
|
|
23
|
-
selector: `[tuiTextfieldMaxLength]`,
|
|
24
|
-
providers: [
|
|
25
|
-
{
|
|
26
|
-
provide: TUI_TEXTFIELD_MAX_LENGTH,
|
|
27
|
-
useExisting: forwardRef(() => TuiTextfieldMaxLengthDirective),
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
}]
|
|
31
|
-
}], propDecorators: { maxLength: [{
|
|
32
|
-
type: Input,
|
|
33
|
-
args: [`tuiTextfieldMaxLength`]
|
|
34
|
-
}] } });
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGZpZWxkLW1heC1sZW5ndGguZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9kaXJlY3RpdmVzL3RleHRmaWVsZC1jb250cm9sbGVyL3RleHRmaWVsZC1tYXgtbGVuZ3RoLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLFVBQVUsRUFBRSxjQUFjLEVBQUUsS0FBSyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQzNFLE9BQU8sRUFBQyxxQkFBcUIsRUFBQyxNQUFNLGVBQWUsQ0FBQzs7QUFFcEQsTUFBTSxDQUFDLE1BQU0sd0JBQXdCLEdBQ2pDLElBQUksY0FBYyxDQUFpQyx1QkFBdUIsRUFBRTtJQUN4RSxPQUFPLEVBQUUsR0FBRyxFQUFFLENBQUMsSUFBSSw4QkFBOEIsRUFBRTtDQUN0RCxDQUFDLENBQUM7QUFXUCxNQUFNLE9BQU8sOEJBQStCLFNBQVEscUJBQXFCO0lBVHpFOztRQVdJLGNBQVMsR0FBa0IsSUFBSSxDQUFDO0tBQ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QVhfTEVOR1RILFxuICAgICAgICAgICAgdXNlRXhpc3Rpbmc6IGZvcndhcmRSZWYoKCkgPT4gVHVpVGV4dGZpZWxkTWF4TGVuZ3RoRGlyZWN0aXZlKSxcbiAgICAgICAgfSxcbiAgICBdLFxufSlcbmV4cG9ydCBjbGFzcyBUdWlUZXh0ZmllbGRNYXhMZW5ndGhEaXJlY3RpdmUgZXh0ZW5kcyBBYnN0cmFjdFR1aUNvbnRyb2xsZXIge1xuICAgIEBJbnB1dChgdHVpVGV4dGZpZWxkTWF4TGVuZ3RoYClcbiAgICBtYXhMZW5ndGg6IG51bWJlciB8IG51bGwgPSBudWxsO1xufVxuIl19
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Directive, forwardRef, InjectionToken, Input } from '@angular/core';
|
|
2
|
-
import { AbstractTuiController } from '@taiga-ui/cdk';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export const TUI_TEXTFIELD_TYPE = new InjectionToken(`tuiTextfieldType`, {
|
|
5
|
-
factory: () => new TuiTextfieldTypeDirective(),
|
|
6
|
-
});
|
|
7
|
-
export class TuiTextfieldTypeDirective extends AbstractTuiController {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.type = `text`;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
TuiTextfieldTypeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTextfieldTypeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
-
TuiTextfieldTypeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiTextfieldTypeDirective, selector: "[tuiTextfieldType]", inputs: { type: ["tuiTextfieldType", "type"] }, providers: [
|
|
15
|
-
{
|
|
16
|
-
provide: TUI_TEXTFIELD_TYPE,
|
|
17
|
-
useExisting: forwardRef(() => TuiTextfieldTypeDirective),
|
|
18
|
-
},
|
|
19
|
-
], usesInheritance: true, ngImport: i0 });
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiTextfieldTypeDirective, decorators: [{
|
|
21
|
-
type: Directive,
|
|
22
|
-
args: [{
|
|
23
|
-
selector: `[tuiTextfieldType]`,
|
|
24
|
-
providers: [
|
|
25
|
-
{
|
|
26
|
-
provide: TUI_TEXTFIELD_TYPE,
|
|
27
|
-
useExisting: forwardRef(() => TuiTextfieldTypeDirective),
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
}]
|
|
31
|
-
}], propDecorators: { type: [{
|
|
32
|
-
type: Input,
|
|
33
|
-
args: [`tuiTextfieldType`]
|
|
34
|
-
}] } });
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGZpZWxkLXR5cGUuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZS9kaXJlY3RpdmVzL3RleHRmaWVsZC1jb250cm9sbGVyL3RleHRmaWVsZC10eXBlLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLFVBQVUsRUFBRSxjQUFjLEVBQUUsS0FBSyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQzNFLE9BQU8sRUFBQyxxQkFBcUIsRUFBZSxNQUFNLGVBQWUsQ0FBQzs7QUFFbEUsTUFBTSxDQUFDLE1BQU0sa0JBQWtCLEdBQUcsSUFBSSxjQUFjLENBQ2hELGtCQUFrQixFQUNsQjtJQUNJLE9BQU8sRUFBRSxHQUFHLEVBQUUsQ0FBQyxJQUFJLHlCQUF5QixFQUFFO0NBQ2pELENBQ0osQ0FBQztBQVdGLE1BQU0sT0FBTyx5QkFBMEIsU0FBUSx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pZGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgICBwcm92aWRlOiBUVUlfVEVYVEZJRUxEX1RZUEUsXG4gICAgICAgICAgICB1c2VFeGlzdGluZzogZm9yd2FyZFJlZigoKSA9PiBUdWlUZXh0ZmllbGRUeXBlRGlyZWN0aXZlKSxcbiAgICAgICAgfSxcbiAgICBdLFxufSlcbmV4cG9ydCBjbGFzcyBUdWlUZXh0ZmllbGRUeXBlRGlyZWN0aXZlIGV4dGVuZHMgQWJzdHJhY3RUdWlDb250cm9sbGVyIHtcbiAgICBASW5wdXQoYHR1aVRleHRmaWVsZFR5cGVgKVxuICAgIHR5cGU6IFR1aUlucHV0VHlwZSA9IGB0ZXh0YDtcbn1cbiJdfQ==
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { InjectionToken, ElementRef, Directive, Inject, Input, HostBinding, NgModule } from '@angular/core';
|
|
4
|
-
import { TuiDestroyService, TuiFocusVisibleService, tuiTypedFromEvent, tuiStopPropagation, tuiDefaultProp } from '@taiga-ui/cdk';
|
|
5
|
-
import { DESCRIBED_BY } from '@taiga-ui/core/constants';
|
|
6
|
-
import * as i1 from '@taiga-ui/core/services';
|
|
7
|
-
import { TuiHintService } from '@taiga-ui/core/services';
|
|
8
|
-
import * as i2 from 'rxjs';
|
|
9
|
-
import { timer, merge } from 'rxjs';
|
|
10
|
-
import { filter, switchMapTo, mapTo, takeUntil, take, startWith, distinctUntilChanged } from 'rxjs/operators';
|
|
11
|
-
|
|
12
|
-
const DELAY = 1000;
|
|
13
|
-
const TUI_DESCRIBED_BY_SHOW = new InjectionToken(`Accessible tooltip visibility stream`);
|
|
14
|
-
const TUI_DESCRIBED_BY_PROVIDERS = [
|
|
15
|
-
TuiDestroyService,
|
|
16
|
-
TuiFocusVisibleService,
|
|
17
|
-
{
|
|
18
|
-
provide: TUI_DESCRIBED_BY_SHOW,
|
|
19
|
-
deps: [TuiFocusVisibleService, ElementRef],
|
|
20
|
-
useFactory: (focusVisible$, { nativeElement }) => {
|
|
21
|
-
return focusVisible$
|
|
22
|
-
.pipe(filter(Boolean), switchMapTo(timer(DELAY).pipe(mapTo(true), takeUntil(merge(tuiTypedFromEvent(nativeElement, `keydown`), tuiTypedFromEvent(nativeElement, `blur`))))), switchMapTo(merge(tuiTypedFromEvent(nativeElement, `keydown`).pipe(filter(({ key }) => key === `Escape`), take(1), tuiStopPropagation(), mapTo(false), startWith(true)), tuiTypedFromEvent(nativeElement, `blur`).pipe(mapTo(false)))))
|
|
23
|
-
.pipe(distinctUntilChanged());
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
];
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* A directive linking focusable elements and hints for accessibility
|
|
30
|
-
*/
|
|
31
|
-
class TuiDescribedByDirective {
|
|
32
|
-
constructor(hintService, visibility$) {
|
|
33
|
-
this.tuiDescribedBy = ``;
|
|
34
|
-
visibility$.subscribe(visible => {
|
|
35
|
-
if (!this.tuiDescribedBy) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
if (visible) {
|
|
39
|
-
hintService.showHintForId(this.tuiDescribedBy);
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
hintService.hideHintForId(this.tuiDescribedBy);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
get computedDescribedBy() {
|
|
47
|
-
return this.tuiDescribedBy ? this.tuiDescribedBy + DESCRIBED_BY : null;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
TuiDescribedByDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiDescribedByDirective, deps: [{ token: TuiHintService }, { token: TUI_DESCRIBED_BY_SHOW }], target: i0.ɵɵFactoryTarget.Directive });
|
|
51
|
-
TuiDescribedByDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiDescribedByDirective, selector: "[tuiDescribedBy]:not(ng-container)", inputs: { tuiDescribedBy: "tuiDescribedBy" }, host: { properties: { "attr.aria-describedby": "this.computedDescribedBy" } }, providers: TUI_DESCRIBED_BY_PROVIDERS, ngImport: i0 });
|
|
52
|
-
__decorate([
|
|
53
|
-
tuiDefaultProp()
|
|
54
|
-
], TuiDescribedByDirective.prototype, "tuiDescribedBy", void 0);
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiDescribedByDirective, decorators: [{
|
|
56
|
-
type: Directive,
|
|
57
|
-
args: [{
|
|
58
|
-
selector: `[tuiDescribedBy]:not(ng-container)`,
|
|
59
|
-
providers: TUI_DESCRIBED_BY_PROVIDERS,
|
|
60
|
-
}]
|
|
61
|
-
}], ctorParameters: function () { return [{ type: i1.TuiHintService, decorators: [{
|
|
62
|
-
type: Inject,
|
|
63
|
-
args: [TuiHintService]
|
|
64
|
-
}] }, { type: i2.Observable, decorators: [{
|
|
65
|
-
type: Inject,
|
|
66
|
-
args: [TUI_DESCRIBED_BY_SHOW]
|
|
67
|
-
}] }]; }, propDecorators: { tuiDescribedBy: [{
|
|
68
|
-
type: Input
|
|
69
|
-
}], computedDescribedBy: [{
|
|
70
|
-
type: HostBinding,
|
|
71
|
-
args: [`attr.aria-describedby`]
|
|
72
|
-
}] } });
|
|
73
|
-
|
|
74
|
-
class TuiDescribedByModule {
|
|
75
|
-
}
|
|
76
|
-
TuiDescribedByModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiDescribedByModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
77
|
-
TuiDescribedByModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiDescribedByModule, declarations: [TuiDescribedByDirective], exports: [TuiDescribedByDirective] });
|
|
78
|
-
TuiDescribedByModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiDescribedByModule });
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiDescribedByModule, decorators: [{
|
|
80
|
-
type: NgModule,
|
|
81
|
-
args: [{
|
|
82
|
-
declarations: [TuiDescribedByDirective],
|
|
83
|
-
exports: [TuiDescribedByDirective],
|
|
84
|
-
}]
|
|
85
|
-
}] });
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Generated bundle index. Do not edit.
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
export { TUI_DESCRIBED_BY_PROVIDERS, TUI_DESCRIBED_BY_SHOW, TuiDescribedByDirective, TuiDescribedByModule };
|
|
92
|
-
//# sourceMappingURL=taiga-ui-core-directives-described-by.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-directives-described-by.js","sources":["../../../projects/core/directives/described-by/described-by.providers.ts","../../../projects/core/directives/described-by/described-by.directive.ts","../../../projects/core/directives/described-by/described-by.module.ts","../../../projects/core/directives/described-by/taiga-ui-core-directives-described-by.ts"],"sourcesContent":["import {ElementRef, InjectionToken, Provider} from '@angular/core';\nimport {\n TuiDestroyService,\n TuiFocusVisibleService,\n tuiStopPropagation,\n tuiTypedFromEvent,\n} from '@taiga-ui/cdk';\nimport {merge, Observable, timer} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n mapTo,\n startWith,\n switchMapTo,\n take,\n takeUntil,\n} from 'rxjs/operators';\n\nconst DELAY = 1000;\n\nexport const TUI_DESCRIBED_BY_SHOW = new InjectionToken<Observable<boolean>>(\n `Accessible tooltip visibility stream`,\n);\nexport const TUI_DESCRIBED_BY_PROVIDERS: Provider[] = [\n TuiDestroyService,\n TuiFocusVisibleService,\n {\n provide: TUI_DESCRIBED_BY_SHOW,\n deps: [TuiFocusVisibleService, ElementRef],\n useFactory: (\n focusVisible$: Observable<boolean>,\n {nativeElement}: ElementRef<HTMLElement>,\n ): Observable<boolean> => {\n return focusVisible$\n .pipe(\n filter(Boolean),\n switchMapTo(\n timer(DELAY).pipe(\n mapTo(true),\n takeUntil(\n merge(\n tuiTypedFromEvent(nativeElement, `keydown`),\n tuiTypedFromEvent(nativeElement, `blur`),\n ),\n ),\n ),\n ),\n switchMapTo(\n merge(\n tuiTypedFromEvent(nativeElement, `keydown`).pipe(\n filter(({key}) => key === `Escape`),\n take(1),\n tuiStopPropagation(),\n mapTo(false),\n startWith(true),\n ),\n tuiTypedFromEvent(nativeElement, `blur`).pipe(mapTo(false)),\n ),\n ),\n )\n .pipe(distinctUntilChanged());\n },\n },\n];\n","import {Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {DESCRIBED_BY} from '@taiga-ui/core/constants';\nimport {TuiHintService} from '@taiga-ui/core/services';\nimport {Observable} from 'rxjs';\n\nimport {\n TUI_DESCRIBED_BY_PROVIDERS,\n TUI_DESCRIBED_BY_SHOW,\n} from './described-by.providers';\n\n/**\n * A directive linking focusable elements and hints for accessibility\n */\n@Directive({\n selector: `[tuiDescribedBy]:not(ng-container)`,\n providers: TUI_DESCRIBED_BY_PROVIDERS,\n})\nexport class TuiDescribedByDirective {\n @Input()\n @tuiDefaultProp()\n tuiDescribedBy = ``;\n\n constructor(\n @Inject(TuiHintService) hintService: TuiHintService,\n @Inject(TUI_DESCRIBED_BY_SHOW) visibility$: Observable<boolean>,\n ) {\n visibility$.subscribe(visible => {\n if (!this.tuiDescribedBy) {\n return;\n }\n\n if (visible) {\n hintService.showHintForId(this.tuiDescribedBy);\n } else {\n hintService.hideHintForId(this.tuiDescribedBy);\n }\n });\n }\n\n @HostBinding(`attr.aria-describedby`)\n get computedDescribedBy(): string | null {\n return this.tuiDescribedBy ? this.tuiDescribedBy + DESCRIBED_BY : null;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDescribedByDirective} from './described-by.directive';\n\n@NgModule({\n declarations: [TuiDescribedByDirective],\n exports: [TuiDescribedByDirective],\n})\nexport class TuiDescribedByModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAkBA,MAAM,KAAK,GAAG,IAAI,CAAC;MAEN,qBAAqB,GAAG,IAAI,cAAc,CACnD,CAAsC,oCAAA,CAAA,EACxC;AACW,MAAA,0BAA0B,GAAe;IAClD,iBAAiB;IACjB,sBAAsB;AACtB,IAAA;AACI,QAAA,OAAO,EAAE,qBAAqB;AAC9B,QAAA,IAAI,EAAE,CAAC,sBAAsB,EAAE,UAAU,CAAC;QAC1C,UAAU,EAAE,CACR,aAAkC,EAClC,EAAC,aAAa,EAA0B,KACnB;AACrB,YAAA,OAAO,aAAa;iBACf,IAAI,CACD,MAAM,CAAC,OAAO,CAAC,EACf,WAAW,CACP,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CACb,KAAK,CAAC,IAAI,CAAC,EACX,SAAS,CACL,KAAK,CACD,iBAAiB,CAAC,aAAa,EAAE,SAAS,CAAC,EAC3C,iBAAiB,CAAC,aAAa,EAAE,CAAA,IAAA,CAAM,CAAC,CAC3C,CACJ,CACJ,CACJ,EACD,WAAW,CACP,KAAK,CACD,iBAAiB,CAAC,aAAa,EAAE,CAAS,OAAA,CAAA,CAAC,CAAC,IAAI,CAC5C,MAAM,CAAC,CAAC,EAAC,GAAG,EAAC,KAAK,GAAG,KAAK,CAAQ,MAAA,CAAA,CAAC,EACnC,IAAI,CAAC,CAAC,CAAC,EACP,kBAAkB,EAAE,EACpB,KAAK,CAAC,KAAK,CAAC,EACZ,SAAS,CAAC,IAAI,CAAC,CAClB,EACD,iBAAiB,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAC9D,CACJ,CACJ;AACA,iBAAA,IAAI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AAA;AACP,oBAAA,QAAQ,EAAE,CAAoC,kCAAA,CAAA;AAC9C,oBAAA,SAAS,EAAE,0BAA0B;AACxC,iBAAA,CAAA;;0BAOQ,MAAM;2BAAC,cAAc,CAAA;;0BACrB,MAAM;2BAAC,qBAAqB,CAAA;4CAJjC,cAAc,EAAA,CAAA;sBAFb,KAAK;gBAsBF,mBAAmB,EAAA,CAAA;sBADtB,WAAW;uBAAC,CAAuB,qBAAA,CAAA,CAAA;;;MChC3B,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;;;;"}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { InjectionToken, inject, forwardRef, Directive, Inject, Input, NgModule, ChangeDetectorRef, Optional, SkipSelf } from '@angular/core';
|
|
4
|
-
import { AbstractTuiController, tuiDefaultProp, TuiDestroyService } from '@taiga-ui/cdk';
|
|
5
|
-
import { TUI_HINT_OPTIONS } from '@taiga-ui/core/directives/hint';
|
|
6
|
-
import { tuiWatchedControllerFactory } from '@taiga-ui/core/providers';
|
|
7
|
-
|
|
8
|
-
const TUI_HINT_CONTROLLER = new InjectionToken(`Controls configuration of hints`, {
|
|
9
|
-
factory: () => new TuiHintControllerDirective(inject(TUI_HINT_OPTIONS)),
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
class TuiHintControllerDirective extends AbstractTuiController {
|
|
13
|
-
constructor(options) {
|
|
14
|
-
super();
|
|
15
|
-
this.options = options;
|
|
16
|
-
this.content = ``;
|
|
17
|
-
this.direction = this.options.direction;
|
|
18
|
-
this.appearance = this.options.appearance;
|
|
19
|
-
this.showDelay = this.options.showDelay;
|
|
20
|
-
this.hideDelay = this.options.hideDelay;
|
|
21
|
-
this.icon = this.options.icon;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
TuiHintControllerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiHintControllerDirective, deps: [{ token: TUI_HINT_OPTIONS }], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
-
TuiHintControllerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiHintControllerDirective, selector: "[tuiHintContent]", inputs: { content: ["tuiHintContent", "content"], direction: ["tuiHintDirection", "direction"], appearance: ["tuiHintAppearance", "appearance"], showDelay: ["tuiHintShowDelay", "showDelay"], hideDelay: ["tuiHintHideDelay", "hideDelay"] }, providers: [
|
|
26
|
-
{
|
|
27
|
-
provide: TUI_HINT_CONTROLLER,
|
|
28
|
-
useExisting: forwardRef(() => TuiHintControllerDirective),
|
|
29
|
-
},
|
|
30
|
-
], usesInheritance: true, ngImport: i0 });
|
|
31
|
-
__decorate([
|
|
32
|
-
tuiDefaultProp()
|
|
33
|
-
], TuiHintControllerDirective.prototype, "content", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
tuiDefaultProp()
|
|
36
|
-
], TuiHintControllerDirective.prototype, "direction", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
tuiDefaultProp()
|
|
39
|
-
], TuiHintControllerDirective.prototype, "appearance", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
tuiDefaultProp()
|
|
42
|
-
], TuiHintControllerDirective.prototype, "showDelay", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
tuiDefaultProp()
|
|
45
|
-
], TuiHintControllerDirective.prototype, "hideDelay", void 0);
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiHintControllerDirective, decorators: [{
|
|
47
|
-
type: Directive,
|
|
48
|
-
args: [{
|
|
49
|
-
selector: `[tuiHintContent]`,
|
|
50
|
-
providers: [
|
|
51
|
-
{
|
|
52
|
-
provide: TUI_HINT_CONTROLLER,
|
|
53
|
-
useExisting: forwardRef(() => TuiHintControllerDirective),
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
}]
|
|
57
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
58
|
-
type: Inject,
|
|
59
|
-
args: [TUI_HINT_OPTIONS]
|
|
60
|
-
}] }]; }, propDecorators: { content: [{
|
|
61
|
-
type: Input,
|
|
62
|
-
args: [`tuiHintContent`]
|
|
63
|
-
}], direction: [{
|
|
64
|
-
type: Input,
|
|
65
|
-
args: [`tuiHintDirection`]
|
|
66
|
-
}], appearance: [{
|
|
67
|
-
type: Input,
|
|
68
|
-
args: [`tuiHintAppearance`]
|
|
69
|
-
}], showDelay: [{
|
|
70
|
-
type: Input,
|
|
71
|
-
args: [`tuiHintShowDelay`]
|
|
72
|
-
}], hideDelay: [{
|
|
73
|
-
type: Input,
|
|
74
|
-
args: [`tuiHintHideDelay`]
|
|
75
|
-
}] } });
|
|
76
|
-
|
|
77
|
-
class TuiHintControllerModule {
|
|
78
|
-
}
|
|
79
|
-
TuiHintControllerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiHintControllerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
80
|
-
TuiHintControllerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiHintControllerModule, declarations: [TuiHintControllerDirective], exports: [TuiHintControllerDirective] });
|
|
81
|
-
TuiHintControllerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiHintControllerModule });
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiHintControllerModule, decorators: [{
|
|
83
|
-
type: NgModule,
|
|
84
|
-
args: [{
|
|
85
|
-
declarations: [TuiHintControllerDirective],
|
|
86
|
-
exports: [TuiHintControllerDirective],
|
|
87
|
-
}]
|
|
88
|
-
}] });
|
|
89
|
-
|
|
90
|
-
const TUI_HINT_WATCHED_CONTROLLER = new InjectionToken(`watched hint controller`);
|
|
91
|
-
const HINT_CONTROLLER_PROVIDER = [
|
|
92
|
-
TuiDestroyService,
|
|
93
|
-
{
|
|
94
|
-
provide: TUI_HINT_WATCHED_CONTROLLER,
|
|
95
|
-
deps: [TUI_HINT_CONTROLLER, ChangeDetectorRef, TuiDestroyService],
|
|
96
|
-
useFactory: tuiWatchedControllerFactory,
|
|
97
|
-
},
|
|
98
|
-
];
|
|
99
|
-
const TUI_HINT_CONTROLLER_OPTIONS = [
|
|
100
|
-
{
|
|
101
|
-
provide: TUI_HINT_OPTIONS,
|
|
102
|
-
deps: [
|
|
103
|
-
[new Optional(), TuiHintControllerDirective],
|
|
104
|
-
[new SkipSelf(), TUI_HINT_OPTIONS],
|
|
105
|
-
],
|
|
106
|
-
useFactory: (hint, options) => hint || options,
|
|
107
|
-
},
|
|
108
|
-
];
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Generated bundle index. Do not edit.
|
|
112
|
-
*/
|
|
113
|
-
|
|
114
|
-
export { HINT_CONTROLLER_PROVIDER, TUI_HINT_CONTROLLER, TUI_HINT_CONTROLLER_OPTIONS, TUI_HINT_WATCHED_CONTROLLER, TuiHintControllerDirective, TuiHintControllerModule };
|
|
115
|
-
//# sourceMappingURL=taiga-ui-core-directives-hint-controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-directives-hint-controller.js","sources":["../../../projects/core/directives/hint-controller/hint-controller.token.ts","../../../projects/core/directives/hint-controller/hint-controller.directive.ts","../../../projects/core/directives/hint-controller/hint-controller.module.ts","../../../projects/core/directives/hint-controller/hint-controller.provider.ts","../../../projects/core/directives/hint-controller/taiga-ui-core-directives-hint-controller.ts"],"sourcesContent":["import {inject, InjectionToken} from '@angular/core';\nimport {TUI_HINT_OPTIONS} from '@taiga-ui/core/directives/hint';\n\nimport {TuiHintControllerDirective} from './hint-controller.directive';\n\nexport const TUI_HINT_CONTROLLER = new InjectionToken<TuiHintControllerDirective>(\n `Controls configuration of hints`,\n {\n factory: () => new TuiHintControllerDirective(inject(TUI_HINT_OPTIONS)),\n },\n);\n","import {Directive, forwardRef, Inject, Input} from '@angular/core';\nimport {AbstractTuiController, tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TUI_HINT_OPTIONS, TuiHintOptions} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_HINT_CONTROLLER} from './hint-controller.token';\n\n@Directive({\n selector: `[tuiHintContent]`,\n providers: [\n {\n provide: TUI_HINT_CONTROLLER,\n useExisting: forwardRef(() => TuiHintControllerDirective),\n },\n ],\n})\nexport class TuiHintControllerDirective\n extends AbstractTuiController\n implements TuiHintOptions\n{\n @Input(`tuiHintContent`)\n @tuiDefaultProp()\n content: PolymorpheusContent = ``;\n\n @Input(`tuiHintDirection`)\n @tuiDefaultProp()\n direction = this.options.direction;\n\n @Input(`tuiHintAppearance`)\n @tuiDefaultProp()\n appearance = this.options.appearance;\n\n @Input(`tuiHintShowDelay`)\n @tuiDefaultProp()\n showDelay = this.options.showDelay;\n\n @Input(`tuiHintHideDelay`)\n @tuiDefaultProp()\n hideDelay = this.options.hideDelay;\n\n icon = this.options.icon;\n\n constructor(@Inject(TUI_HINT_OPTIONS) protected readonly options: TuiHintOptions) {\n super();\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiHintControllerDirective} from './hint-controller.directive';\n\n@NgModule({\n declarations: [TuiHintControllerDirective],\n exports: [TuiHintControllerDirective],\n})\nexport class TuiHintControllerModule {}\n","import {\n ChangeDetectorRef,\n InjectionToken,\n Optional,\n Provider,\n SkipSelf,\n} from '@angular/core';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\nimport {TUI_HINT_OPTIONS, TuiHintOptions} from '@taiga-ui/core/directives/hint';\nimport {tuiWatchedControllerFactory} from '@taiga-ui/core/providers';\n\nimport {TuiHintControllerDirective} from './hint-controller.directive';\nimport {TUI_HINT_CONTROLLER} from './hint-controller.token';\n\nexport const TUI_HINT_WATCHED_CONTROLLER = new InjectionToken(`watched hint controller`);\n\nexport const HINT_CONTROLLER_PROVIDER: Provider = [\n TuiDestroyService,\n {\n provide: TUI_HINT_WATCHED_CONTROLLER,\n deps: [TUI_HINT_CONTROLLER, ChangeDetectorRef, TuiDestroyService],\n useFactory: tuiWatchedControllerFactory,\n },\n];\n\nexport const TUI_HINT_CONTROLLER_OPTIONS: Provider = [\n {\n provide: TUI_HINT_OPTIONS,\n deps: [\n [new Optional(), TuiHintControllerDirective],\n [new SkipSelf(), TUI_HINT_OPTIONS],\n ],\n useFactory: (hint: TuiHintOptions | null, options: TuiHintOptions) =>\n hint || options,\n },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAKa,mBAAmB,GAAG,IAAI,cAAc,CACjD,iCAAiC,EACjC;IACI,OAAO,EAAE,MAAM,IAAI,0BAA0B,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAC1E,CAAA;;ACOC,MAAO,0BACT,SAAQ,qBAAqB,CAAA;AAyB7B,IAAA,WAAA,CAAyD,OAAuB,EAAA;AAC5E,QAAA,KAAK,EAAE,CAAC;QAD6C,IA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