@taiga-ui/kit 4.47.0-canary.fb0273b → 4.48.0-canary.0b5890f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/index.d.ts +1 -0
- package/components/input-date-multi/input-date-multi.directive.d.ts +1 -1
- package/components/input-phone/index.d.ts +2 -0
- package/components/input-phone/input-phone.directive.d.ts +27 -0
- package/components/input-phone/input-phone.options.d.ts +8 -0
- package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +9 -0
- package/components/input-phone/utils/create-phone-mask-expression.d.ts +7 -0
- package/directives/copy/copy.component.d.ts +15 -0
- package/directives/copy/copy.d.ts +3 -0
- package/directives/copy/copy.directive.d.ts +3 -3
- package/directives/copy/index.d.ts +2 -0
- package/esm2022/components/index.mjs +2 -1
- package/esm2022/components/input-date-multi/input-date-multi.directive.mjs +5 -11
- package/esm2022/components/input-phone/index.mjs +3 -0
- package/esm2022/components/input-phone/input-phone.directive.mjs +137 -0
- package/esm2022/components/input-phone/input-phone.options.mjs +9 -0
- package/esm2022/components/input-phone/taiga-ui-kit-components-input-phone.mjs +5 -0
- package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +41 -0
- package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +17 -0
- package/esm2022/directives/copy/copy.component.mjs +48 -0
- package/esm2022/directives/copy/copy.directive.mjs +7 -7
- package/esm2022/directives/copy/copy.mjs +4 -0
- package/esm2022/directives/copy/copy.options.mjs +2 -4
- package/esm2022/directives/copy/index.mjs +4 -1
- package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +4 -10
- package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-phone.mjs +206 -0
- package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components.mjs +1 -0
- package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-copy.mjs +57 -18
- package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +1 -1
- package/package.json +26 -20
|
@@ -1,23 +1,58 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as i1 from '@angular/cdk/clipboard';
|
|
2
|
+
import { ClipboardModule } from '@angular/cdk/clipboard';
|
|
2
3
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject,
|
|
4
|
+
import { inject, Component, ChangeDetectionStrategy, Input, computed, Directive } from '@angular/core';
|
|
4
5
|
import { toSignal } from '@angular/core/rxjs-interop';
|
|
5
|
-
import {
|
|
6
|
+
import { TUI_FALSE_HANDLER } from '@taiga-ui/cdk/constants';
|
|
7
|
+
import { tuiIsString, tuiDirectiveBinding } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
8
|
+
import { TuiButton } from '@taiga-ui/core/components/button';
|
|
6
9
|
import { TuiIcon } from '@taiga-ui/core/components/icon';
|
|
7
|
-
import {
|
|
8
|
-
import * as i1 from '@taiga-ui/core/directives/appearance';
|
|
9
|
-
import { TUI_APPEARANCE_OPTIONS, TuiWithAppearance } from '@taiga-ui/core/directives/appearance';
|
|
10
|
+
import { TUI_NOTIFICATION_OPTIONS } from '@taiga-ui/core/components/notification';
|
|
10
11
|
import * as i2 from '@taiga-ui/core/directives/hint';
|
|
11
|
-
import { TuiHintDirective } from '@taiga-ui/core/directives/hint';
|
|
12
|
+
import { TuiHint, TuiHintDirective } from '@taiga-ui/core/directives/hint';
|
|
12
13
|
import { TUI_COPY_TEXTS } from '@taiga-ui/kit/tokens';
|
|
13
|
-
import {
|
|
14
|
+
import { BehaviorSubject, switchMap, timer, map, startWith, Subject } from 'rxjs';
|
|
14
15
|
import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
|
|
16
|
+
import { DOCUMENT } from '@angular/common';
|
|
17
|
+
import { TuiTextfieldComponent } from '@taiga-ui/core/components/textfield';
|
|
18
|
+
import * as i1$1 from '@taiga-ui/core/directives/appearance';
|
|
19
|
+
import { TUI_APPEARANCE_OPTIONS, TuiWithAppearance } from '@taiga-ui/core/directives/appearance';
|
|
15
20
|
|
|
16
|
-
const [TUI_COPY_OPTIONS, tuiCopyOptionsProvider] = tuiCreateOptions({
|
|
17
|
-
icon: '@tui.copy',
|
|
18
|
-
});
|
|
21
|
+
const [TUI_COPY_OPTIONS, tuiCopyOptionsProvider] = tuiCreateOptions({ icon: '@tui.copy' });
|
|
19
22
|
|
|
20
|
-
class
|
|
23
|
+
class TuiCopyComponent {
|
|
24
|
+
constructor() {
|
|
25
|
+
this.notification = inject(TUI_NOTIFICATION_OPTIONS);
|
|
26
|
+
this.options = inject(TUI_COPY_OPTIONS);
|
|
27
|
+
this.copied$ = new BehaviorSubject(false);
|
|
28
|
+
this.texts = toSignal(inject(TUI_COPY_TEXTS));
|
|
29
|
+
this.hint = toSignal(this.copied$.pipe(switchMap((copied) => timer(2000).pipe(map(TUI_FALSE_HANDLER), startWith(copied)))));
|
|
30
|
+
this.size = 'm';
|
|
31
|
+
}
|
|
32
|
+
get icon() {
|
|
33
|
+
return tuiIsString(this.options.icon)
|
|
34
|
+
? this.options.icon
|
|
35
|
+
: this.options.icon(this.size);
|
|
36
|
+
}
|
|
37
|
+
get check() {
|
|
38
|
+
return tuiIsString(this.notification.icon)
|
|
39
|
+
? this.notification.icon
|
|
40
|
+
: this.notification.icon('positive');
|
|
41
|
+
}
|
|
42
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCopyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
43
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiCopyComponent, isStandalone: true, selector: "tui-copy", inputs: { size: "size" }, host: { listeners: { "pointerdown": "copied$.next(false)" }, properties: { "attr.data-size": "size" } }, ngImport: i0, template: "<span\n #content\n tuiHintAppearance=\"dark\"\n tuiHintDirection=\"top\"\n class=\"t-content\"\n [cdkCopyToClipboard]=\"content.textContent ?? ''\"\n [tuiHint]=\"template\"\n [tuiHintManual]=\"!!hint()\"\n (cdkCopyToClipboardCopied)=\"copied$.next($event)\"\n>\n <ng-content />\n</span>\n<button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [attr.aria-label]=\"texts()?.[0]\"\n [cdkCopyToClipboard]=\"content.textContent ?? ''\"\n [iconStart]=\"icon\"\n (cdkCopyToClipboardCopied)=\"copied$.next($event)\"\n></button>\n<ng-template #template>\n <tui-icon\n class=\"t-icon\"\n [icon]=\"check\"\n />\n {{ texts()?.[1] }}\n</ng-template>\n", styles: [":host{cursor:pointer}:host[data-size=m]{--t-size: min( calc(1em + 1px) , 1rem)}:host[data-size=l]{--t-size: max(calc(1em / 1.57), min(max(calc(1em / 1.18), 1.25rem), 1.5rem))}@media (hover: hover) and (pointer: fine){:host:hover .t-content{opacity:var(--tui-disabled-opacity);-webkit-mask-position:0;mask-position:0}:host:hover .t-button{opacity:1}}:host:has(.t-button:focus-visible) .t-content{opacity:var(--tui-disabled-opacity);-webkit-mask-position:0;mask-position:0}.t-content{transition-property:opacity,-webkit-mask;transition-property:opacity,mask;transition-property:opacity,mask,-webkit-mask;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-mask:linear-gradient(to var(--tui-inline-start),transparent calc(1.25 * var(--t-size)),black calc(2 * var(--t-size))) no-repeat,linear-gradient(to var(--tui-inline-end),black,black calc(2 * var(--t-size)),transparent calc(2 * var(--t-size))) no-repeat;mask:linear-gradient(to var(--tui-inline-start),transparent calc(1.25 * var(--t-size)),black calc(2 * var(--t-size))) no-repeat,linear-gradient(to var(--tui-inline-end),black,black calc(2 * var(--t-size)),transparent calc(2 * var(--t-size))) no-repeat;-webkit-mask-position:calc(var(--tui-inline) * 2 * var(--t-size)),0;mask-position:calc(var(--tui-inline) * 2 * var(--t-size)),0}.t-button{opacity:0;border-radius:0;font-size:inherit!important;margin-inline-start:calc(-1 * var(--t-size));--t-size: inherit}.t-button:before{font-size:var(--t-size)}.t-button:focus-visible{opacity:1}.t-icon{font-size:1rem;margin-inline-end:.25rem;vertical-align:text-top;color:var(--tui-text-positive)}\n"], dependencies: [{ kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i1.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: i2.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHintContext", "tuiHintAppearance", "tuiHint"] }, { kind: "directive", type: i2.TuiHintManual, selector: "[tuiHint][tuiHintManual]", inputs: ["tuiHintManual"] }, { kind: "component", type: TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
44
|
+
}
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCopyComponent, decorators: [{
|
|
46
|
+
type: Component,
|
|
47
|
+
args: [{ standalone: true, selector: 'tui-copy', imports: [ClipboardModule, TuiButton, TuiHint, TuiIcon], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
48
|
+
'[attr.data-size]': 'size',
|
|
49
|
+
'(pointerdown)': 'copied$.next(false)',
|
|
50
|
+
}, template: "<span\n #content\n tuiHintAppearance=\"dark\"\n tuiHintDirection=\"top\"\n class=\"t-content\"\n [cdkCopyToClipboard]=\"content.textContent ?? ''\"\n [tuiHint]=\"template\"\n [tuiHintManual]=\"!!hint()\"\n (cdkCopyToClipboardCopied)=\"copied$.next($event)\"\n>\n <ng-content />\n</span>\n<button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [attr.aria-label]=\"texts()?.[0]\"\n [cdkCopyToClipboard]=\"content.textContent ?? ''\"\n [iconStart]=\"icon\"\n (cdkCopyToClipboardCopied)=\"copied$.next($event)\"\n></button>\n<ng-template #template>\n <tui-icon\n class=\"t-icon\"\n [icon]=\"check\"\n />\n {{ texts()?.[1] }}\n</ng-template>\n", styles: [":host{cursor:pointer}:host[data-size=m]{--t-size: min( calc(1em + 1px) , 1rem)}:host[data-size=l]{--t-size: max(calc(1em / 1.57), min(max(calc(1em / 1.18), 1.25rem), 1.5rem))}@media (hover: hover) and (pointer: fine){:host:hover .t-content{opacity:var(--tui-disabled-opacity);-webkit-mask-position:0;mask-position:0}:host:hover .t-button{opacity:1}}:host:has(.t-button:focus-visible) .t-content{opacity:var(--tui-disabled-opacity);-webkit-mask-position:0;mask-position:0}.t-content{transition-property:opacity,-webkit-mask;transition-property:opacity,mask;transition-property:opacity,mask,-webkit-mask;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-mask:linear-gradient(to var(--tui-inline-start),transparent calc(1.25 * var(--t-size)),black calc(2 * var(--t-size))) no-repeat,linear-gradient(to var(--tui-inline-end),black,black calc(2 * var(--t-size)),transparent calc(2 * var(--t-size))) no-repeat;mask:linear-gradient(to var(--tui-inline-start),transparent calc(1.25 * var(--t-size)),black calc(2 * var(--t-size))) no-repeat,linear-gradient(to var(--tui-inline-end),black,black calc(2 * var(--t-size)),transparent calc(2 * var(--t-size))) no-repeat;-webkit-mask-position:calc(var(--tui-inline) * 2 * var(--t-size)),0;mask-position:calc(var(--tui-inline) * 2 * var(--t-size)),0}.t-button{opacity:0;border-radius:0;font-size:inherit!important;margin-inline-start:calc(-1 * var(--t-size));--t-size: inherit}.t-button:before{font-size:var(--t-size)}.t-button:focus-visible{opacity:1}.t-icon{font-size:1rem;margin-inline-end:.25rem;vertical-align:text-top;color:var(--tui-text-positive)}\n"] }]
|
|
51
|
+
}], propDecorators: { size: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}] } });
|
|
54
|
+
|
|
55
|
+
class TuiCopyDirective {
|
|
21
56
|
constructor() {
|
|
22
57
|
this.options = inject(TUI_COPY_OPTIONS);
|
|
23
58
|
this.copied$ = new Subject();
|
|
@@ -35,15 +70,15 @@ class TuiCopy {
|
|
|
35
70
|
this.doc.execCommand('copy');
|
|
36
71
|
this.copied$.next();
|
|
37
72
|
}
|
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
39
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type:
|
|
73
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCopyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
74
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiCopyDirective, isStandalone: true, selector: "tui-icon[tuiCopy]", inputs: { tuiCopy: "tuiCopy" }, host: { listeners: { "click": "copy()" }, properties: { "style.pointer-events": "disabled ? \"none\" : null", "style.opacity": "disabled ? \"var(--tui-disabled-opacity)\" : null", "style.border-width.rem": "textfield.options.size() === \"l\" ? null : 0.25" }, styleAttribute: "cursor: pointer" }, providers: [
|
|
40
75
|
{
|
|
41
76
|
provide: TUI_APPEARANCE_OPTIONS,
|
|
42
77
|
useValue: { appearance: 'icon' },
|
|
43
78
|
},
|
|
44
|
-
], hostDirectives: [{ directive: i1.TuiWithAppearance }, { directive: i2.TuiHintDirective, inputs: ["tuiHintAppearance", "tuiHintAppearance", "tuiHintContext", "tuiHintContext"] }], ngImport: i0 }); }
|
|
79
|
+
], hostDirectives: [{ directive: i1$1.TuiWithAppearance }, { directive: i2.TuiHintDirective, inputs: ["tuiHintAppearance", "tuiHintAppearance", "tuiHintContext", "tuiHintContext"] }], ngImport: i0 }); }
|
|
45
80
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type:
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiCopyDirective, decorators: [{
|
|
47
82
|
type: Directive,
|
|
48
83
|
args: [{
|
|
49
84
|
standalone: true,
|
|
@@ -66,16 +101,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
66
101
|
'(click)': 'copy()',
|
|
67
102
|
'[style.pointer-events]': 'disabled ? "none" : null',
|
|
68
103
|
'[style.opacity]': 'disabled ? "var(--tui-disabled-opacity)" : null',
|
|
69
|
-
'[style.border]': 'textfield.options.size() === "
|
|
104
|
+
'[style.border-width.rem]': 'textfield.options.size() === "l" ? null : 0.25',
|
|
70
105
|
},
|
|
71
106
|
}]
|
|
72
107
|
}], propDecorators: { tuiCopy: [{
|
|
73
108
|
type: Input
|
|
74
109
|
}] } });
|
|
75
110
|
|
|
111
|
+
const TuiCopy = [TuiCopyComponent, TuiCopyDirective];
|
|
112
|
+
|
|
113
|
+
// TODO: Move to components in v5
|
|
114
|
+
|
|
76
115
|
/**
|
|
77
116
|
* Generated bundle index. Do not edit.
|
|
78
117
|
*/
|
|
79
118
|
|
|
80
|
-
export { TUI_COPY_OPTIONS, TuiCopy, tuiCopyOptionsProvider };
|
|
119
|
+
export { TUI_COPY_OPTIONS, TuiCopy, TuiCopyComponent, TuiCopyDirective, tuiCopyOptionsProvider };
|
|
81
120
|
//# sourceMappingURL=taiga-ui-kit-directives-copy.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-copy.mjs","sources":["../../../projects/kit/directives/copy/copy.options.ts","../../../projects/kit/directives/copy/copy.directive.ts","../../../projects/kit/directives/copy/taiga-ui-kit-directives-copy.ts"],"sourcesContent":["import type {TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiCopyOptions {\n readonly icon: TuiStringHandler<TuiSizeL | TuiSizeS> | string;\n}\n\nexport const [TUI_COPY_OPTIONS, tuiCopyOptionsProvider] =\n tuiCreateOptions<TuiCopyOptions>({\n icon: '@tui.copy',\n });\n","import {DOCUMENT} from '@angular/common';\nimport {computed, Directive, inject, Input} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {tuiDirectiveBinding, tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_APPEARANCE_OPTIONS,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {TuiHintDirective} from '@taiga-ui/core/directives/hint';\nimport {TUI_COPY_TEXTS} from '@taiga-ui/kit/tokens';\nimport {map, startWith, Subject, switchMap, timer} from 'rxjs';\n\nimport {TUI_COPY_OPTIONS} from './copy.options';\n\n@Directive({\n standalone: true,\n selector: 'tui-icon[tuiCopy]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'icon'},\n },\n ],\n hostDirectives: [\n TuiWithAppearance,\n {\n directive: TuiHintDirective,\n inputs: ['tuiHintAppearance', 'tuiHintContext'],\n },\n ],\n host: {\n style: 'cursor: pointer',\n '(click)': 'copy()',\n '[style.pointer-events]': 'disabled ? \"none\" : null',\n '[style.opacity]': 'disabled ? \"var(--tui-disabled-opacity)\" : null',\n '[style.border]':\n 'textfield.options.size() === \"s\" ? \"0.25rem solid transparent\" : null',\n },\n})\nexport class TuiCopy {\n private readonly options = inject(TUI_COPY_OPTIONS);\n private readonly copied$ = new Subject<void>();\n private readonly doc = inject(DOCUMENT);\n\n protected readonly textfield = inject(TuiTextfieldComponent);\n protected readonly hint = tuiDirectiveBinding(\n TuiHintDirective,\n 'tuiHint',\n toSignal(\n inject(TUI_COPY_TEXTS).pipe(\n switchMap(([copy, copied]) =>\n this.copied$.pipe(\n switchMap(() =>\n timer(3000).pipe(\n map(() => copy),\n startWith(copied),\n ),\n ),\n startWith(copy),\n ),\n ),\n ),\n {initialValue: ''},\n ),\n );\n\n protected readonly icons = tuiDirectiveBinding(\n TuiIcon,\n 'icon',\n computed((size = this.textfield.options.size()) =>\n tuiIsString(this.options.icon) ? this.options.icon : this.options.icon(size),\n ),\n );\n\n @Input()\n public tuiCopy = '';\n\n protected get disabled(): boolean {\n return !this.textfield.input?.nativeElement.value;\n }\n\n protected copy(): void {\n this.textfield.input?.nativeElement.select();\n this.doc.execCommand('copy');\n this.copied$.next();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAQa,CAAC,gBAAgB,EAAE,sBAAsB,CAAC,GACnD,gBAAgB,CAAiB;AAC7B,IAAA,IAAI,EAAE,WAAW;AACpB,CAAA;;ACKL,MAyBa,OAAO,CAAA;AAzBpB,IAAA,WAAA,GAAA;AA0BqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AACnC,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,OAAO,EAAQ,CAAC;AAC9B,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAErB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAC1C,QAAA,IAAA,CAAA,IAAI,GAAG,mBAAmB,CACzC,gBAAgB,EAChB,SAAS,EACT,QAAQ,CACJ,MAAM,CAAC,cAAc,CAAC,CAAC,IAAI,CACvB,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,KACrB,IAAI,CAAC,OAAO,CAAC,IAAI,CACb,SAAS,CAAC,MACN,KAAK,C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BAAiB,EAAE,iDAAiD;AACpE,wBAAA,gBAAgB,EACZ,uEAAuE;AAC9E,qBAAA;AACJ,iBAAA,CAAA;8BAqCU,OAAO,EAAA,CAAA;sBADb,KAAK;;;AC5EV;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-copy.mjs","sources":["../../../projects/kit/directives/copy/copy.options.ts","../../../projects/kit/directives/copy/copy.component.ts","../../../projects/kit/directives/copy/copy.template.html","../../../projects/kit/directives/copy/copy.directive.ts","../../../projects/kit/directives/copy/copy.ts","../../../projects/kit/directives/copy/index.ts","../../../projects/kit/directives/copy/taiga-ui-kit-directives-copy.ts"],"sourcesContent":["import type {TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiCopyOptions {\n readonly icon: TuiStringHandler<TuiSizeL | TuiSizeS> | string;\n}\n\nexport const [TUI_COPY_OPTIONS, tuiCopyOptionsProvider] =\n tuiCreateOptions<TuiCopyOptions>({icon: '@tui.copy'});\n","import {ClipboardModule} from '@angular/cdk/clipboard';\nimport {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {TUI_FALSE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/components/notification';\nimport {TuiHint} from '@taiga-ui/core/directives/hint';\nimport type {TuiSizeL} from '@taiga-ui/core/types';\nimport {TUI_COPY_TEXTS} from '@taiga-ui/kit/tokens';\nimport {BehaviorSubject, map, startWith, switchMap, timer} from 'rxjs';\n\nimport {TUI_COPY_OPTIONS} from './copy.options';\n\n@Component({\n standalone: true,\n selector: 'tui-copy',\n imports: [ClipboardModule, TuiButton, TuiHint, TuiIcon],\n templateUrl: './copy.template.html',\n styleUrls: ['./copy.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.data-size]': 'size',\n '(pointerdown)': 'copied$.next(false)',\n },\n})\nexport class TuiCopyComponent {\n protected readonly notification = inject(TUI_NOTIFICATION_OPTIONS);\n protected readonly options = inject(TUI_COPY_OPTIONS);\n protected readonly copied$ = new BehaviorSubject<boolean>(false);\n protected readonly texts = toSignal(inject(TUI_COPY_TEXTS));\n protected readonly hint = toSignal(\n this.copied$.pipe(\n switchMap((copied) =>\n timer(2000).pipe(map(TUI_FALSE_HANDLER), startWith(copied)),\n ),\n ),\n );\n\n @Input()\n public size: TuiSizeL = 'm';\n\n protected get icon(): string {\n return tuiIsString(this.options.icon)\n ? this.options.icon\n : this.options.icon(this.size);\n }\n\n protected get check(): string {\n return tuiIsString(this.notification.icon)\n ? this.notification.icon\n : this.notification.icon('positive');\n }\n}\n","<span\n #content\n tuiHintAppearance=\"dark\"\n tuiHintDirection=\"top\"\n class=\"t-content\"\n [cdkCopyToClipboard]=\"content.textContent ?? ''\"\n [tuiHint]=\"template\"\n [tuiHintManual]=\"!!hint()\"\n (cdkCopyToClipboardCopied)=\"copied$.next($event)\"\n>\n <ng-content />\n</span>\n<button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [attr.aria-label]=\"texts()?.[0]\"\n [cdkCopyToClipboard]=\"content.textContent ?? ''\"\n [iconStart]=\"icon\"\n (cdkCopyToClipboardCopied)=\"copied$.next($event)\"\n></button>\n<ng-template #template>\n <tui-icon\n class=\"t-icon\"\n [icon]=\"check\"\n />\n {{ texts()?.[1] }}\n</ng-template>\n","import {DOCUMENT} from '@angular/common';\nimport {computed, Directive, inject, Input} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {tuiDirectiveBinding, tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_APPEARANCE_OPTIONS,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {TuiHintDirective} from '@taiga-ui/core/directives/hint';\nimport {TUI_COPY_TEXTS} from '@taiga-ui/kit/tokens';\nimport {map, startWith, Subject, switchMap, timer} from 'rxjs';\n\nimport {TUI_COPY_OPTIONS} from './copy.options';\n\n@Directive({\n standalone: true,\n selector: 'tui-icon[tuiCopy]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'icon'},\n },\n ],\n hostDirectives: [\n TuiWithAppearance,\n {\n directive: TuiHintDirective,\n inputs: ['tuiHintAppearance', 'tuiHintContext'],\n },\n ],\n host: {\n style: 'cursor: pointer',\n '(click)': 'copy()',\n '[style.pointer-events]': 'disabled ? \"none\" : null',\n '[style.opacity]': 'disabled ? \"var(--tui-disabled-opacity)\" : null',\n '[style.border-width.rem]': 'textfield.options.size() === \"l\" ? null : 0.25',\n },\n})\nexport class TuiCopyDirective {\n private readonly options = inject(TUI_COPY_OPTIONS);\n private readonly copied$ = new Subject<void>();\n private readonly doc = inject(DOCUMENT);\n\n protected readonly textfield = inject(TuiTextfieldComponent);\n protected readonly hint = tuiDirectiveBinding(\n TuiHintDirective,\n 'tuiHint',\n toSignal(\n inject(TUI_COPY_TEXTS).pipe(\n switchMap(([copy, copied]) =>\n this.copied$.pipe(\n switchMap(() =>\n timer(3000).pipe(\n map(() => copy),\n startWith(copied),\n ),\n ),\n startWith(copy),\n ),\n ),\n ),\n {initialValue: ''},\n ),\n );\n\n protected readonly icons = tuiDirectiveBinding(\n TuiIcon,\n 'icon',\n computed((size = this.textfield.options.size()) =>\n tuiIsString(this.options.icon) ? this.options.icon : this.options.icon(size),\n ),\n );\n\n @Input()\n public tuiCopy = '';\n\n protected get disabled(): boolean {\n return !this.textfield.input?.nativeElement.value;\n }\n\n protected copy(): void {\n this.textfield.input?.nativeElement.select();\n this.doc.execCommand('copy');\n this.copied$.next();\n }\n}\n","import {TuiCopyComponent} from './copy.component';\nimport {TuiCopyDirective} from './copy.directive';\n\nexport const TuiCopy = [TuiCopyComponent, TuiCopyDirective] as const;\n","// TODO: Move to components in v5\nexport * from './copy';\nexport * from './copy.component';\nexport * from './copy.directive';\nexport * from './copy.options';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;AAQa,MAAA,CAAC,gBAAgB,EAAE,sBAAsB,CAAC,GACnD,gBAAgB,CAAiB,EAAC,IAAI,EAAE,WAAW,EAAC;;ACMxD,MAYa,gBAAgB,CAAA;AAZ7B,IAAA,WAAA,GAAA;AAauB,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC;AAChD,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AACnC,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,eAAe,CAAU,KAAK,CAAC,CAAC;QAC9C,IAAK,CAAA,KAAA,GAAG,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC;AACzC,QAAA,IAAA,CAAA,IAAI,GAAG,QAAQ,CAC9B,IAAI,CAAC,OAAO,CAAC,IAAI,CACb,SAAS,CAAC,CAAC,MAAM,KACb,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAC9D,CACJ,CACJ,CAAC;QAGK,IAAI,CAAA,IAAA,GAAa,GAAG,CAAC;AAa/B,KAAA;AAXG,IAAA,IAAc,IAAI,GAAA;AACd,QAAA,OAAO,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;AACjC,cAAE,IAAI,CAAC,OAAO,CAAC,IAAI;cACjB,IAAI,C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
|
"description": "Taiga UI Angular main components kit",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -263,6 +263,12 @@
|
|
|
263
263
|
"esm": "./esm2022/components/input-password/taiga-ui-kit-components-input-password.mjs",
|
|
264
264
|
"default": "./fesm2022/taiga-ui-kit-components-input-password.mjs"
|
|
265
265
|
},
|
|
266
|
+
"./components/input-phone": {
|
|
267
|
+
"types": "./components/input-phone/index.d.ts",
|
|
268
|
+
"esm2022": "./esm2022/components/input-phone/taiga-ui-kit-components-input-phone.mjs",
|
|
269
|
+
"esm": "./esm2022/components/input-phone/taiga-ui-kit-components-input-phone.mjs",
|
|
270
|
+
"default": "./fesm2022/taiga-ui-kit-components-input-phone.mjs"
|
|
271
|
+
},
|
|
266
272
|
"./components/input-phone-international": {
|
|
267
273
|
"types": "./components/input-phone-international/index.d.ts",
|
|
268
274
|
"esm2022": "./esm2022/components/input-phone-international/taiga-ui-kit-components-input-phone-international.mjs",
|
|
@@ -455,11 +461,11 @@
|
|
|
455
461
|
"esm": "./esm2022/components/tiles/taiga-ui-kit-components-tiles.mjs",
|
|
456
462
|
"default": "./fesm2022/taiga-ui-kit-components-tiles.mjs"
|
|
457
463
|
},
|
|
458
|
-
"./
|
|
459
|
-
"types": "./
|
|
460
|
-
"esm2022": "./esm2022/
|
|
461
|
-
"esm": "./esm2022/
|
|
462
|
-
"default": "./fesm2022/taiga-ui-kit-
|
|
464
|
+
"./directives/button-group": {
|
|
465
|
+
"types": "./directives/button-group/index.d.ts",
|
|
466
|
+
"esm2022": "./esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs",
|
|
467
|
+
"esm": "./esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs",
|
|
468
|
+
"default": "./fesm2022/taiga-ui-kit-directives-button-group.mjs"
|
|
463
469
|
},
|
|
464
470
|
"./directives/button-close": {
|
|
465
471
|
"types": "./directives/button-close/index.d.ts",
|
|
@@ -467,11 +473,11 @@
|
|
|
467
473
|
"esm": "./esm2022/directives/button-close/taiga-ui-kit-directives-button-close.mjs",
|
|
468
474
|
"default": "./fesm2022/taiga-ui-kit-directives-button-close.mjs"
|
|
469
475
|
},
|
|
470
|
-
"./
|
|
471
|
-
"types": "./
|
|
472
|
-
"esm2022": "./esm2022/
|
|
473
|
-
"esm": "./esm2022/
|
|
474
|
-
"default": "./fesm2022/taiga-ui-kit-
|
|
476
|
+
"./components/tree": {
|
|
477
|
+
"types": "./components/tree/index.d.ts",
|
|
478
|
+
"esm2022": "./esm2022/components/tree/taiga-ui-kit-components-tree.mjs",
|
|
479
|
+
"esm": "./esm2022/components/tree/taiga-ui-kit-components-tree.mjs",
|
|
480
|
+
"default": "./fesm2022/taiga-ui-kit-components-tree.mjs"
|
|
475
481
|
},
|
|
476
482
|
"./directives/button-select": {
|
|
477
483
|
"types": "./directives/button-select/index.d.ts",
|
|
@@ -551,18 +557,18 @@
|
|
|
551
557
|
"esm": "./esm2022/directives/sensitive/taiga-ui-kit-directives-sensitive.mjs",
|
|
552
558
|
"default": "./fesm2022/taiga-ui-kit-directives-sensitive.mjs"
|
|
553
559
|
},
|
|
554
|
-
"./directives/skeleton": {
|
|
555
|
-
"types": "./directives/skeleton/index.d.ts",
|
|
556
|
-
"esm2022": "./esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs",
|
|
557
|
-
"esm": "./esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs",
|
|
558
|
-
"default": "./fesm2022/taiga-ui-kit-directives-skeleton.mjs"
|
|
559
|
-
},
|
|
560
560
|
"./directives/shimmer": {
|
|
561
561
|
"types": "./directives/shimmer/index.d.ts",
|
|
562
562
|
"esm2022": "./esm2022/directives/shimmer/taiga-ui-kit-directives-shimmer.mjs",
|
|
563
563
|
"esm": "./esm2022/directives/shimmer/taiga-ui-kit-directives-shimmer.mjs",
|
|
564
564
|
"default": "./fesm2022/taiga-ui-kit-directives-shimmer.mjs"
|
|
565
565
|
},
|
|
566
|
+
"./directives/skeleton": {
|
|
567
|
+
"types": "./directives/skeleton/index.d.ts",
|
|
568
|
+
"esm2022": "./esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs",
|
|
569
|
+
"esm": "./esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs",
|
|
570
|
+
"default": "./fesm2022/taiga-ui-kit-directives-skeleton.mjs"
|
|
571
|
+
},
|
|
566
572
|
"./directives/tooltip": {
|
|
567
573
|
"types": "./directives/tooltip/index.d.ts",
|
|
568
574
|
"esm2022": "./esm2022/directives/tooltip/taiga-ui-kit-directives-tooltip.mjs",
|
|
@@ -643,9 +649,9 @@
|
|
|
643
649
|
"@ng-web-apis/intersection-observer": "^4.12.0",
|
|
644
650
|
"@ng-web-apis/mutation-observer": "^4.12.0",
|
|
645
651
|
"@ng-web-apis/resize-observer": "^4.12.0",
|
|
646
|
-
"@taiga-ui/cdk": "^4.
|
|
647
|
-
"@taiga-ui/core": "^4.
|
|
648
|
-
"@taiga-ui/i18n": "^4.
|
|
652
|
+
"@taiga-ui/cdk": "^4.48.0",
|
|
653
|
+
"@taiga-ui/core": "^4.48.0",
|
|
654
|
+
"@taiga-ui/i18n": "^4.48.0",
|
|
649
655
|
"@taiga-ui/polymorpheus": "^4.9.0",
|
|
650
656
|
"rxjs": ">=7.0.0"
|
|
651
657
|
},
|