@taiga-ui/kit 2.38.0 → 2.39.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-kit-components-input-tag.umd.js +17 -8
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js +23 -2
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
- package/components/input-tag/input-tag.component.d.ts +9 -2
- package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
- package/components/slider/slider-key-steps.directive.d.ts +3 -1
- package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
- package/esm2015/components/input-tag/input-tag.component.js +20 -11
- package/esm2015/components/slider/slider-key-steps.directive.js +14 -1
- package/esm2015/components/slider/slider.component.js +3 -3
- package/esm5/components/input-tag/input-tag.component.js +20 -11
- package/esm5/components/slider/slider-key-steps.directive.js +22 -1
- package/esm5/components/slider/slider.component.js +3 -3
- package/fesm2015/taiga-ui-kit-components-input-tag.js +20 -11
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-slider.js +15 -2
- package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-tag.js +20 -11
- package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-slider.js +23 -2
- package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
- package/package.json +4 -4
|
@@ -234,12 +234,13 @@
|
|
|
234
234
|
var EVENT_Y_TO_X_COEFFICIENT = 3;
|
|
235
235
|
var TuiInputTagComponent = /** @class */ (function (_super) {
|
|
236
236
|
__extends(TuiInputTagComponent, _super);
|
|
237
|
-
function TuiInputTagComponent(control, changeDetectorRef, tuiScrollService, elementRef, appearance, modeDirective, tagStatus, hintController, controller, options, parentHostedDropdown) {
|
|
237
|
+
function TuiInputTagComponent(control, changeDetectorRef, tuiScrollService, elementRef, appearance, modeDirective, mode$, tagStatus, hintController, controller, options, parentHostedDropdown) {
|
|
238
238
|
var _this = _super.call(this, control, changeDetectorRef) || this;
|
|
239
239
|
_this.tuiScrollService = tuiScrollService;
|
|
240
240
|
_this.elementRef = elementRef;
|
|
241
241
|
_this.appearance = appearance;
|
|
242
242
|
_this.modeDirective = modeDirective;
|
|
243
|
+
_this.mode$ = mode$;
|
|
243
244
|
_this.tagStatus = tagStatus;
|
|
244
245
|
_this.hintController = hintController;
|
|
245
246
|
_this.controller = controller;
|
|
@@ -261,6 +262,7 @@
|
|
|
261
262
|
_this.uniqueTags = _this.options.uniqueTags;
|
|
262
263
|
_this.disabledItemHandler = cdk.ALWAYS_FALSE_HANDLER;
|
|
263
264
|
_this.searchChange = new core.EventEmitter();
|
|
265
|
+
_this.status$ = _this.mode$.pipe(operators.map(function (mode) { return (mode ? 'default' : _this.tagStatus); }));
|
|
264
266
|
_this.open = false;
|
|
265
267
|
return _this;
|
|
266
268
|
}
|
|
@@ -391,6 +393,10 @@
|
|
|
391
393
|
configurable: true
|
|
392
394
|
});
|
|
393
395
|
Object.defineProperty(TuiInputTagComponent.prototype, "status", {
|
|
396
|
+
/**
|
|
397
|
+
* @deprecated: use `status$ | async` instead
|
|
398
|
+
* TODO: remove in v3.0
|
|
399
|
+
*/
|
|
394
400
|
get: function () {
|
|
395
401
|
return this.modeDirective && this.modeDirective.mode ? 'default' : this.tagStatus;
|
|
396
402
|
},
|
|
@@ -601,6 +607,7 @@
|
|
|
601
607
|
{ type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
|
|
602
608
|
{ type: String, decorators: [{ type: core.Inject, args: [core$1.TUI_TEXTFIELD_APPEARANCE,] }] },
|
|
603
609
|
{ type: core$1.TuiModeDirective, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core$1.TuiModeDirective,] }] },
|
|
610
|
+
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [core$1.TUI_MODE,] }] },
|
|
604
611
|
{ type: undefined, decorators: [{ type: core.Inject, args: [tokens.TUI_TAG_STATUS,] }] },
|
|
605
612
|
{ type: core$1.TuiHintControllerDirective, decorators: [{ type: core.Inject, args: [core$1.TUI_HINT_WATCHED_CONTROLLER,] }] },
|
|
606
613
|
{ type: core$1.TuiTextfieldController, decorators: [{ type: core.Inject, args: [core$1.TUI_TEXTFIELD_WATCHED_CONTROLLER,] }] },
|
|
@@ -695,7 +702,7 @@
|
|
|
695
702
|
core.Component({
|
|
696
703
|
selector: 'tui-input-tag',
|
|
697
704
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
698
|
-
template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"canOpen\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-wrapper\n [appearance]=\"appearance\"\n [readOnly]=\"readOnly\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [disabled]=\"computedDisabled\"\n [invalid]=\"computedInvalid\"\n (tuiHoveredChange)=\"onHoveredChange($event)\"\n (mousedown)=\"onMouseDown($event)\"\n >\n <div class=\"t-content\">\n <div *ngIf=\"iconAlignLeft\" class=\"t-icons t-icons_left\">\n <tui-svg class=\"t-icon\" [src]=\"icon\"></tui-svg>\n </div>\n <div class=\"t-wrapper\">\n <div class=\"t-absolute-wrapper\">\n <div\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-input-tag__placeholder\"\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n <tui-scrollbar\n *ngIf=\"!expandable; else items\"\n class=\"t-scrollbar\"\n [hidden]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"items\"></ng-container>\n </tui-scrollbar>\n <ng-template #items>\n <div #tagsContainer class=\"t-tags\">\n <ng-container *ngIf=\"labelOutside; else text\">\n <tui-tag\n *ngFor=\"let item of value; index as index\"\n #tag\n automation-id=\"tui-input-tag__tag\"\n class=\"t-tag\"\n [status]=\"status\"\n [leftContent]=\"getLeftContent(item)\"\n [allowSpaces]=\"allowSpaces\"\n [tuiFocusable]=\"false\"\n [disabled]=\"computedDisabled || disabledItemHandler(item)\"\n [editable]=\"editable && !readOnly\"\n [hoverable]=\"!readOnly\"\n [removable]=\"!readOnly\"\n [separator]=\"separator\"\n [maxLength]=\"controller.maxLength\"\n [size]=\"controller.size\"\n [value]=\"item.toString()\"\n (edited)=\"onTagEdited($event, index)\"\n (keydown.arrowLeft.prevent)=\"onTagKeyDownArrowLeft(index)\"\n (keydown.arrowRight.prevent)=\"onTagKeyDownArrowRight(index)\"\n ></tui-tag>\n </ng-container>\n <ng-template #text>\n <span\n *ngFor=\"let item of value\"\n class=\"t-text\"\n [class.t-text_disabled]=\"disabledItemHandler(item)\"\n [class.t-text_error]=\"!tagValidator(item)\"\n [innerText]=\"item\"\n ></span>\n </ng-template>\n <div\n class=\"t-input-wrapper\"\n [class.t-input-wrapper_collapsed]=\"computedDisabled || readOnly || inputHidden\"\n >\n <div class=\"t-ghost\">{{ search }}</div>\n <input\n #focusableElement\n type=\"text\"\n automation-id=\"tui-input-tag__native\"\n class=\"t-native\"\n [placeholder]=\"controller.exampleText\"\n [class.t-native_hidden]=\"inputHidden\"\n [attr.maxLength]=\"controller.maxLength\"\n [id]=\"id\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly || inputHidden\"\n [tuiFocusable]=\"computedFocusable\"\n [ngModel]=\"search\"\n (ngModelChange)=\"onInput($event)\"\n (keydown.arrowLeft)=\"onFieldKeyDownArrowLeft($event)\"\n (keydown.backspace)=\"onFieldKeyDownBackspace($event)\"\n (keydown.enter.prevent)=\"onFieldKeyDownEnter()\"\n />\n </div>\n </div>\n </ng-template>\n </div>\n <div *ngIf=\"hasRightIcons\" class=\"t-icons t-icons_right\">\n <tui-svg\n *ngIf=\"hasCleaner\"\n #cleaner\n automation-id=\"tui-input-tag__cleaner\"\n src=\"tuiIconCloseLarge\"\n class=\"t-cleaner\"\n (click.stop)=\"onCleanerClick()\"\n ></tui-svg>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-input-tag__tooltip\"\n describeId=\"placeholer_until_accesibility_is_added\"\n class=\"t-tooltip\"\n [direction]=\"hintController.direction\"\n [mode]=\"hintController.mode\"\n [content]=\"hintController.content\"\n [showDelay]=\"hintController.showDelay\"\n [hideDelay]=\"hintController.hideDelay\"\n ></tui-tooltip>\n <tui-svg\n *ngIf=\"iconAlignRight\"\n class=\"t-icon\"\n [src]=\"icon\"\n ></tui-svg>\n </div>\n </div>\n <ng-template #errorIcon>\n <tui-svg src=\"tuiIconAttention\" class=\"t-error-icon\"></tui-svg>\n </ng-template>\n </tui-wrapper>\n</tui-hosted-dropdown>\n",
|
|
705
|
+
template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"canOpen\"\n [content]=\"datalist || ''\"\n [(open)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-wrapper\n [appearance]=\"appearance\"\n [readOnly]=\"readOnly\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered\"\n [disabled]=\"computedDisabled\"\n [invalid]=\"computedInvalid\"\n (tuiHoveredChange)=\"onHoveredChange($event)\"\n (mousedown)=\"onMouseDown($event)\"\n >\n <div class=\"t-content\">\n <div *ngIf=\"iconAlignLeft\" class=\"t-icons t-icons_left\">\n <tui-svg class=\"t-icon\" [src]=\"icon\"></tui-svg>\n </div>\n <div class=\"t-wrapper\">\n <div class=\"t-absolute-wrapper\">\n <div\n *ngIf=\"hasPlaceholder\"\n automation-id=\"tui-input-tag__placeholder\"\n class=\"t-placeholder\"\n [class.t-placeholder_raised]=\"placeholderRaised\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n <tui-scrollbar\n *ngIf=\"!expandable; else items\"\n class=\"t-scrollbar\"\n [hidden]=\"true\"\n >\n <ng-container *ngTemplateOutlet=\"items\"></ng-container>\n </tui-scrollbar>\n <ng-template #items>\n <div #tagsContainer class=\"t-tags\">\n <ng-container *ngIf=\"labelOutside; else text\">\n <tui-tag\n *ngFor=\"let item of value; index as index\"\n #tag\n automation-id=\"tui-input-tag__tag\"\n class=\"t-tag\"\n [status]=\"status$ | async\"\n [leftContent]=\"getLeftContent(item)\"\n [allowSpaces]=\"allowSpaces\"\n [tuiFocusable]=\"false\"\n [disabled]=\"computedDisabled || disabledItemHandler(item)\"\n [editable]=\"editable && !readOnly\"\n [hoverable]=\"!readOnly\"\n [removable]=\"!readOnly\"\n [separator]=\"separator\"\n [maxLength]=\"controller.maxLength\"\n [size]=\"controller.size\"\n [value]=\"item.toString()\"\n (edited)=\"onTagEdited($event, index)\"\n (keydown.arrowLeft.prevent)=\"onTagKeyDownArrowLeft(index)\"\n (keydown.arrowRight.prevent)=\"onTagKeyDownArrowRight(index)\"\n ></tui-tag>\n </ng-container>\n <ng-template #text>\n <span\n *ngFor=\"let item of value\"\n class=\"t-text\"\n [class.t-text_disabled]=\"disabledItemHandler(item)\"\n [class.t-text_error]=\"!tagValidator(item)\"\n [innerText]=\"item\"\n ></span>\n </ng-template>\n <div\n class=\"t-input-wrapper\"\n [class.t-input-wrapper_collapsed]=\"computedDisabled || readOnly || inputHidden\"\n >\n <div class=\"t-ghost\">{{ search }}</div>\n <input\n #focusableElement\n type=\"text\"\n automation-id=\"tui-input-tag__native\"\n class=\"t-native\"\n [placeholder]=\"controller.exampleText\"\n [class.t-native_hidden]=\"inputHidden\"\n [attr.maxLength]=\"controller.maxLength\"\n [id]=\"id\"\n [disabled]=\"computedDisabled\"\n [readOnly]=\"readOnly || inputHidden\"\n [tuiFocusable]=\"computedFocusable\"\n [ngModel]=\"search\"\n (ngModelChange)=\"onInput($event)\"\n (keydown.arrowLeft)=\"onFieldKeyDownArrowLeft($event)\"\n (keydown.backspace)=\"onFieldKeyDownBackspace($event)\"\n (keydown.enter.prevent)=\"onFieldKeyDownEnter()\"\n />\n </div>\n </div>\n </ng-template>\n </div>\n <div *ngIf=\"hasRightIcons\" class=\"t-icons t-icons_right\">\n <tui-svg\n *ngIf=\"hasCleaner\"\n #cleaner\n automation-id=\"tui-input-tag__cleaner\"\n src=\"tuiIconCloseLarge\"\n class=\"t-cleaner\"\n (click.stop)=\"onCleanerClick()\"\n ></tui-svg>\n <tui-tooltip\n *ngIf=\"hasTooltip\"\n automation-id=\"tui-input-tag__tooltip\"\n describeId=\"placeholer_until_accesibility_is_added\"\n class=\"t-tooltip\"\n [direction]=\"hintController.direction\"\n [mode]=\"hintController.mode\"\n [content]=\"hintController.content\"\n [showDelay]=\"hintController.showDelay\"\n [hideDelay]=\"hintController.hideDelay\"\n ></tui-tooltip>\n <tui-svg\n *ngIf=\"iconAlignRight\"\n class=\"t-icon\"\n [src]=\"icon\"\n ></tui-svg>\n </div>\n </div>\n <ng-template #errorIcon>\n <tui-svg src=\"tuiIconAttention\" class=\"t-error-icon\"></tui-svg>\n </ng-template>\n </tui-wrapper>\n</tui-hosted-dropdown>\n",
|
|
699
706
|
providers: [
|
|
700
707
|
{
|
|
701
708
|
provide: cdk.TUI_FOCUSABLE_ITEM_ACCESSOR,
|
|
@@ -708,6 +715,7 @@
|
|
|
708
715
|
providers.FIXED_DROPDOWN_CONTROLLER_PROVIDER,
|
|
709
716
|
core$1.TEXTFIELD_CONTROLLER_PROVIDER,
|
|
710
717
|
core$1.HINT_CONTROLLER_PROVIDER,
|
|
718
|
+
core$1.MODE_PROVIDER,
|
|
711
719
|
],
|
|
712
720
|
styles: [":host{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;border-radius:var(--tui-radius-m);text-align:left}:host[data-size='s']{height:var(--tui-height-s);min-height:var(--tui-height-s);max-height:var(--tui-height-s)}:host[data-size='m']{height:var(--tui-height-m);min-height:var(--tui-height-m);max-height:var(--tui-height-m)}:host[data-size='l']{height:var(--tui-height-l);min-height:var(--tui-height-l);max-height:var(--tui-height-l);font:var(--tui-font-text-m);line-height:1.25rem}.t-input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}.t-input:-webkit-autofill,.t-input:-webkit-autofill:focus,.t-input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill,.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:focus,.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:hover,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:focus,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:hover,:host[data-mode=onDark] .t-input:-webkit-autofill,:host[data-mode=onDark] .t-input:-webkit-autofill:focus,:host[data-mode=onDark] .t-input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill-night) inset!important}.t-input :host-context(tui-primitive-textfield[data-size='s']):not(tui-primitive-textfield),.t-input :host-context(tui-text-area[data-size='s']):not(tui-text-area),:host[data-size='s'] .t-input{padding:0 var(--tui-padding-s)}.t-input :host-context(tui-primitive-textfield[data-size='l']):not(tui-primitive-textfield),.t-input :host-context(tui-text-area[data-size='l']):not(tui-text-area),:host[data-size='l'] .t-input{padding:0 var(--tui-padding-l)}.t-input :host-context(tui-primitive-textfield._disabled),.t-input :host-context(tui-text-area._disabled),:host._disabled .t-input{pointer-events:none}.t-input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='l']:not(._label-outside) .t-input{padding-top:1.25rem}.t-input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='l']:not(._label-outside) .t-input:-webkit-autofill+.content .placeholder{font-size:.8156rem;transform:translateY(-.625rem)}.t-input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='m']:not(._label-outside) .t-input{padding-top:1.125rem}.t-input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='m']:not(._label-outside) .t-input:-webkit-autofill+.content .placeholder{font-size:.69rem;transform:translateY(-.5rem)}.t-input :host-context(tui-primitive-textfield._hidden),:host._hidden input.t-input{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content{display:flex;height:100%;width:100%;padding:0 var(--tui-padding-m);box-sizing:border-box;align-items:center;overflow:hidden}:host[data-size='s'] .t-content{padding:0 var(--tui-padding-s)}:host[data-size='l'] .t-content{padding:0 var(--tui-padding-l)}.t-content:after{content:'';margin-right:-.25rem}:host[data-size='m'] .t-content:after{display:none}.t-wrapper{flex:1;min-width:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem;-webkit-padding-start:0;padding-inline-start:0}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .t-placeholder_raised{font:var(--tui-font-text-xs);transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .t-placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size='l']._focused._label-outside .t-placeholder,:host[data-size='m']._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size='l'] .t-placeholder{font-size:.9375rem}:host[data-size='l'] .t-placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .t-placeholder,:host[data-size='m']._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .t-placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .t-placeholder{color:var(--tui-text-02-night)}@supports (-webkit-hyphens:none){.t-placeholder{transition-property:transform,color,letter-spacing}}.t-cleaner{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.t-cleaner:hover{color:var(--tui-text-02)}:host._disabled .t-cleaner,:host._readonly .t-cleaner{pointer-events:none}:host[data-mode=onDark] .t-cleaner{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-cleaner:hover{color:var(--tui-text-01-night)}.t-icon{display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03)}:host[data-mode=onDark] .t-icon{color:var(--tui-text-03-night)}.t-icon_left{margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host[data-size='s'] .t-icon_left{margin-right:.25rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem}:host{cursor:text}:host._expandable{height:auto;max-height:none}:host._disabled{pointer-events:none}:host._readonly{cursor:default}.t-hosted{display:block;border-radius:inherit}.t-scrollbar{margin:0 -.25rem;padding:0 .25rem}.t-tags{display:flex;align-items:center;box-sizing:border-box}:host._expandable .t-tags{flex-wrap:wrap;white-space:normal}:host._readonly .t-tags{pointer-events:none}:host[data-size='s'] .t-tags{min-height:var(--tui-height-s);padding:.25rem .25rem .25rem 0}:host[data-size='m'] .t-tags{min-height:var(--tui-height-m);padding:.5rem .25rem .5rem 0}:host[data-size='l'] .t-tags{min-height:var(--tui-height-l);padding:.625rem .25rem .625rem 0}:host[data-size='m']:not(._label-outside) .t-tags{padding:1.1875rem 1rem 0 0}:host[data-size='l']:not(._label-outside) .t-tags{padding:1.6875rem 1rem .5625rem 0}.t-tags :host[data-size]{-webkit-padding-start:0;padding-inline-start:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem}:host[data-size]:not(._label-outside) .t-tags{-webkit-padding-end:1rem;padding-inline-end:1rem}.t-content{align-items:flex-start}.t-icons{display:flex;align-items:center;padding:0 0 0 .75rem;-webkit-padding-start:.75rem;padding-inline-start:.75rem;-webkit-padding-end:0;padding-inline-end:0}.t-icons_left{padding:0;margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host._expandable .t-icons_right{margin:0 0 0 -.625rem;-webkit-margin-start:-.625rem;margin-inline-start:-.625rem;-webkit-margin-end:0;margin-inline-end:0}:host[data-size='s'] .t-icons{height:var(--tui-height-s)}:host[data-size='m'] .t-icons{height:var(--tui-height-m)}:host[data-size='l'] .t-icons{height:var(--tui-height-l)}.t-absolute-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}:host[data-size='m'] .t-absolute-wrapper{height:var(--tui-height-m)}:host[data-size='l'] .t-absolute-wrapper{height:var(--tui-height-l)}.t-wrapper{position:relative;padding:0}.t-tag{margin:.125rem .5rem .125rem -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem;max-width:100%;flex-shrink:0}.t-text:after{content:',\\00a0'}.t-text_disabled{color:var(--tui-text-03)}.t-text_error{color:var(--tui-negative)}:host:not(._expandable) .t-text{white-space:nowrap}:host:not(._focused) .t-text:last-of-type:after{content:''}.t-input-wrapper{position:relative;flex:1;max-width:100%}.t-input-wrapper_collapsed{flex:0;margin:0 0 0 -.5rem;-webkit-margin-start:-.5rem;margin-inline-start:-.5rem;-webkit-margin-end:0;margin-inline-end:0}:host[data-size='s'] .t-input-wrapper{min-height:1.5rem}:host[data-size='m'] .t-input-wrapper{min-height:calc(var(--tui-height-xs) + 2 * .125rem)}:host[data-size='l'] .t-input-wrapper{min-height:calc(var(--tui-height-s) + 2 * .125rem)}:host:not(._label-outside) .t-input-wrapper{min-height:1.25rem}.t-ghost{visibility:hidden;white-space:pre;text-overflow:clip;min-width:.125rem}:host:not(._expandable) .t-ghost{min-width:2rem}.t-native{border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;padding:0;cursor:inherit}.t-native:-webkit-autofill,.t-native:-webkit-autofill:focus,.t-native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.t-native_hidden{opacity:0;text-indent:-10em}.t-native::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}.t-native::placeholder{color:var(--tui-text-03);opacity:0}:host[data-mode=onDark] .t-native::-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-native::placeholder{color:var(--tui-text-03-night)}:host._focused .t-native:not(:read-only)::-ms-input-placeholder{opacity:1}:host._focused .t-native:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .t-native:not(:read-only)::placeholder{opacity:1}.t-error-icon{display:block;color:var(--tui-error-fill);width:1rem;height:1rem}"]
|
|
713
721
|
}),
|
|
@@ -720,12 +728,13 @@
|
|
|
720
728
|
__param(4, core.Inject(core$1.TUI_TEXTFIELD_APPEARANCE)),
|
|
721
729
|
__param(5, core.Optional()),
|
|
722
730
|
__param(5, core.Inject(core$1.TuiModeDirective)),
|
|
723
|
-
__param(6, core.Inject(
|
|
724
|
-
__param(7, core.Inject(
|
|
725
|
-
__param(8, core.Inject(core$1.
|
|
726
|
-
__param(9, core.Inject(
|
|
727
|
-
__param(10, core.
|
|
728
|
-
__param(
|
|
731
|
+
__param(6, core.Inject(core$1.TUI_MODE)),
|
|
732
|
+
__param(7, core.Inject(tokens.TUI_TAG_STATUS)),
|
|
733
|
+
__param(8, core.Inject(core$1.TUI_HINT_WATCHED_CONTROLLER)),
|
|
734
|
+
__param(9, core.Inject(core$1.TUI_TEXTFIELD_WATCHED_CONTROLLER)),
|
|
735
|
+
__param(10, core.Inject(TUI_INPUT_TAG_OPTIONS)),
|
|
736
|
+
__param(11, core.Optional()),
|
|
737
|
+
__param(11, core.Inject(core$1.TuiHostedDropdownComponent))
|
|
729
738
|
], TuiInputTagComponent);
|
|
730
739
|
return TuiInputTagComponent;
|
|
731
740
|
}(cdk.AbstractTuiMultipleControl));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-input-tag.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/input-tag/input-tag-options.ts","ng://@taiga-ui/kit/components/input-tag/input-tag.component.ts","ng://@taiga-ui/kit/components/input-tag/input-tag.module.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {InjectionToken} from '@angular/core';\n\nexport interface TuiInputTagOptions {\n readonly separator: string | RegExp;\n readonly uniqueTags: boolean;\n}\n\nexport const TUI_INPUT_TAG_DEFAULT_OPTIONS: TuiInputTagOptions = {\n separator: ',',\n uniqueTags: true,\n};\n\nexport const TUI_INPUT_TAG_OPTIONS = new InjectionToken<TuiInputTagOptions>(\n 'Default parameters for input-tag',\n {\n factory: () => TUI_INPUT_TAG_DEFAULT_OPTIONS,\n },\n);\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ElementRef,\n EventEmitter,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Output,\n QueryList,\n Self,\n TemplateRef,\n ViewChild,\n ViewChildren,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiMultipleControl,\n ALWAYS_FALSE_HANDLER,\n ALWAYS_TRUE_HANDLER,\n EMPTY_QUERY,\n getActualTarget,\n isNativeFocusedIn,\n preventDefault,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiActiveZoneDirective,\n TuiBooleanHandler,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiScrollService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {\n HINT_CONTROLLER_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_DATA_LIST_HOST,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_TEXTFIELD_APPEARANCE,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiDataListDirective,\n TuiDataListHost,\n TuiHintControllerDirective,\n TuiHorizontalDirection,\n TuiHostedDropdownComponent,\n TuiModeDirective,\n TuiScrollbarComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldController,\n} from '@taiga-ui/core';\nimport {TuiStringifiableItem} from '@taiga-ui/kit/classes';\nimport {ALLOWED_SPACE_REGEXP} from '@taiga-ui/kit/components/tag';\nimport {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {TUI_TAG_STATUS} from '@taiga-ui/kit/tokens';\nimport {TuiStatusT} from '@taiga-ui/kit/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {merge, Subject} from 'rxjs';\nimport {filter, map, mapTo, switchMap, takeUntil} from 'rxjs/operators';\n\nimport {TUI_INPUT_TAG_OPTIONS, TuiInputTagOptions} from './input-tag-options';\n\nconst EVENT_Y_TO_X_COEFFICIENT = 3;\n\n@Component({\n selector: 'tui-input-tag',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './input-tag.template.html',\n styleUrls: ['./input-tag.style.less'],\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputTagComponent),\n },\n {\n provide: TUI_DATA_LIST_HOST,\n useExisting: forwardRef(() => TuiInputTagComponent),\n },\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n HINT_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputTagComponent\n extends AbstractTuiMultipleControl<string>\n implements TuiFocusableElementAccessor, TuiDataListHost<string>\n{\n @ViewChild(TuiHostedDropdownComponent)\n private readonly hostedDropdown?: TuiHostedDropdownComponent;\n\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLInputElement>;\n\n @ViewChild('tagsContainer')\n private readonly tagsContainer?: ElementRef<HTMLElement>;\n\n @ViewChildren('tag', {read: ElementRef})\n private readonly tags: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n @ViewChild('cleaner', {read: ElementRef})\n private readonly cleanerSvg?: ElementRef<HTMLElement>;\n\n @ViewChild(TuiScrollbarComponent, {read: ElementRef})\n private readonly scrollBar?: ElementRef<HTMLElement>;\n\n private readonly scrollToStart$ = new Subject<void>();\n private readonly scrollToEnd$ = new Subject<void>();\n\n // TODO: Remove in 3.0\n @Input()\n @tuiDefaultProp()\n allowSpaces = true;\n\n @Input()\n @tuiDefaultProp()\n separator: string | RegExp = this.options.separator;\n\n @Input()\n @tuiDefaultProp()\n icon = '';\n\n @Input()\n @tuiDefaultProp()\n iconAlign: TuiHorizontalDirection = 'right';\n\n @Input()\n @tuiDefaultProp()\n search = '';\n\n @Input()\n @tuiDefaultProp()\n editable = true;\n\n @Input()\n @tuiDefaultProp()\n tagValidator: TuiBooleanHandler<string> = ALWAYS_TRUE_HANDLER;\n\n @Input()\n @HostBinding('class._expandable')\n @tuiDefaultProp()\n expandable = true;\n\n @Input()\n @tuiDefaultProp()\n inputHidden = false;\n\n @Input()\n @tuiDefaultProp()\n uniqueTags = this.options.uniqueTags;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<string | TuiStringifiableItem<any>> =\n ALWAYS_FALSE_HANDLER;\n\n @Input('pseudoFocused')\n set pseudoFocusedSetter(value: boolean | null) {\n if (!value && !this.focused) {\n this.scrollToStart$.next();\n }\n\n this.pseudoFocused = value;\n }\n\n @Output()\n readonly searchChange = new EventEmitter<string>();\n\n @ContentChild(TuiDataListDirective, {read: TemplateRef})\n readonly datalist?: TemplateRef<TuiContextWithImplicit<TuiActiveZoneDirective>>;\n\n @ViewChild('errorIcon')\n readonly errorIconTemplate?: TemplateRef<{}>;\n\n @ViewChild(TuiScrollbarComponent)\n set scrollerSetter(scroller: TuiScrollbarComponent | null) {\n this.initScrollerSubscrition(scroller);\n }\n\n open = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TuiScrollService) private readonly tuiScrollService: TuiScrollService,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_TEXTFIELD_APPEARANCE) readonly appearance: string,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_TAG_STATUS) private readonly tagStatus: TuiStatusT,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n @Inject(TUI_INPUT_TAG_OPTIONS)\n private readonly options: TuiInputTagOptions,\n @Optional()\n @Inject(TuiHostedDropdownComponent)\n private readonly parentHostedDropdown?: TuiHostedDropdownComponent,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return !this.focusableElement || this.computedDisabled\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return (\n isNativeFocusedIn(this.elementRef.nativeElement) ||\n !!this.hostedDropdown?.focused\n );\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.controller.size;\n }\n\n @HostBinding('class._label-outside')\n get labelOutside(): boolean {\n const {size, labelOutside} = this.controller;\n\n return size === 's' || labelOutside;\n }\n\n get hasCleaner(): boolean {\n return this.controller.cleaner && this.hasValue && this.interactive;\n }\n\n get hasNativeValue(): boolean {\n return !!this.search;\n }\n\n get hasValue(): boolean {\n return !!this.value.length || this.hasNativeValue;\n }\n\n get hasPlaceholder(): boolean {\n return (\n !this.labelOutside ||\n (!this.hasValue && (!this.hasExampleText || this.inputHidden))\n );\n }\n\n get placeholderRaised(): boolean {\n return (\n !this.labelOutside &&\n ((this.computedFocused && !this.readOnly) || this.hasValue)\n );\n }\n\n get hasExampleText(): boolean {\n return (\n !!this.controller.exampleText &&\n this.computedFocused &&\n !this.hasValue &&\n !this.readOnly\n );\n }\n\n get hasTooltip(): boolean {\n return !!this.hintController.content && !this.disabled;\n }\n\n get iconAlignLeft(): boolean {\n return !!this.icon && this.iconAlign === 'left';\n }\n\n get iconAlignRight(): boolean {\n return !!this.icon && this.iconAlign === 'right';\n }\n\n get hasRightIcons(): boolean {\n return this.hasCleaner || this.hasTooltip || this.iconAlignRight;\n }\n\n get status(): TuiStatusT {\n return this.modeDirective && this.modeDirective.mode ? 'default' : this.tagStatus;\n }\n\n get canOpen(): boolean {\n return this.interactive && !!this.datalist;\n }\n\n getLeftContent(tag: string): PolymorpheusContent {\n return !this.tagValidator(tag) && this.errorIconTemplate\n ? this.errorIconTemplate\n : '';\n }\n\n onCleanerClick() {\n this.updateSearch('');\n this.clear();\n this.focusInput();\n this.parentHostedDropdown?.updateOpen(true);\n }\n\n onActiveZone(active: boolean) {\n this.open = false;\n this.addTag();\n this.updateFocused(active);\n\n if (!this.computedFocused) {\n this.scrollToStart$.next();\n }\n }\n\n onMouseDown(event: MouseEvent) {\n const actualTarget = getActualTarget(event);\n\n if (\n !this.focusableElement ||\n actualTarget === this.focusableElement.nativeElement ||\n // TODO: iframe warning\n !(event.target instanceof Element) ||\n (this.cleanerSvg && this.cleanerSvg.nativeElement.contains(event.target)) ||\n (this.tagsContainer &&\n actualTarget !== this.tagsContainer.nativeElement &&\n this.tagsContainer.nativeElement.contains(actualTarget))\n ) {\n return;\n }\n\n event.preventDefault();\n this.focusInput();\n }\n\n onFieldKeyDownBackspace(event: KeyboardEvent) {\n if (!this.labelOutside && !this.hasNativeValue && this.value.length) {\n this.deleteLastEnabledItem();\n } else {\n this.onFieldKeyDownArrowLeft(event);\n }\n }\n\n onFieldKeyDownArrowLeft(event: KeyboardEvent) {\n if (!this.labelOutside || this.hasNativeValue || !this.value.length) {\n return;\n }\n\n event.preventDefault();\n setNativeFocused(this.tags.last.nativeElement);\n }\n\n onFieldKeyDownEnter() {\n this.addTag();\n this.scrollToEnd$.next();\n }\n\n onTagKeyDownArrowLeft(currentIndex: number) {\n if (currentIndex > 0) {\n this.onScrollKeyDown(currentIndex, -1);\n }\n }\n\n onTagKeyDownArrowRight(currentIndex: number) {\n if (currentIndex === this.value.length - 1) {\n this.focusInput();\n } else {\n this.onScrollKeyDown(currentIndex, 1);\n }\n }\n\n onTagEdited(value: string, index: number) {\n this.focusInput();\n this.updateValue(\n this.value\n .map((tag, tagIndex) =>\n tagIndex !== index\n ? tag\n : value\n .split(this.separator)\n .map(tag => tag.trim())\n .filter(Boolean),\n )\n .reduce<string[]>(\n (result, item: string | string[]) => result.concat(item),\n [],\n ),\n );\n }\n\n handleOption(item: string) {\n this.focusInput();\n this.updateSearch('');\n this.updateValue(this.value.concat(item));\n this.open = false;\n this.scrollToEnd$.next();\n }\n\n onInput(value: string) {\n const array = this.allowSpaces\n ? value.split(this.separator)\n : value.split(ALLOWED_SPACE_REGEXP);\n const tags = array\n .map(item => item.trim())\n .filter((item, index, {length}) => item.length > 0 && index !== length - 1);\n const validated = tags.filter(tag => !this.disabledItemHandler(tag));\n\n if (array.length > 1) {\n this.updateSearch(array[array.length - 1].trim());\n this.updateValue([...this.value, ...validated]);\n } else {\n this.updateSearch(value);\n }\n\n this.open = this.hasNativeValue;\n }\n\n onHoveredChange(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n setDisabledState() {\n super.setDisabledState();\n this.open = false;\n }\n\n protected updateValue(value: Array<string>) {\n const seen = new Set();\n\n super.updateValue(\n value\n .reverse()\n .filter(\n item =>\n !this.uniqueTags || (!!item && !seen.has(item) && seen.add(item)),\n )\n .reverse(),\n );\n }\n\n private onScrollKeyDown(currentIndex: number, flag: number) {\n const tag = this.tags.find((_item, index) => index === currentIndex + flag);\n\n if (!tag || !this.scrollBar) {\n return;\n }\n\n setNativeFocused(tag.nativeElement);\n\n if (\n flag * this.scrollBar.nativeElement.clientWidth -\n flag * tag.nativeElement.offsetLeft -\n tag.nativeElement.clientWidth <\n 0\n ) {\n this.scrollBar.nativeElement.scrollLeft +=\n flag * tag.nativeElement.clientWidth;\n }\n }\n\n private initScrollerSubscrition(scroller: TuiScrollbarComponent | null) {\n if (!scroller || !scroller.browserScrollRef) {\n return;\n }\n\n const {nativeElement} = scroller.browserScrollRef;\n\n const wheel$ = typedFromEvent(nativeElement, 'wheel', {passive: false}).pipe(\n filter(event => event.deltaX === 0 && this.shouldScroll(nativeElement)),\n preventDefault(),\n map(({deltaY}) =>\n Math.max(nativeElement.scrollLeft + deltaY * EVENT_Y_TO_X_COEFFICIENT, 0),\n ),\n );\n const start$ = this.scrollToStart$.pipe(mapTo(0));\n const end$ = this.scrollToEnd$.pipe(map(() => nativeElement.scrollWidth));\n\n merge(wheel$, start$, end$)\n .pipe(\n switchMap(left => this.tuiScrollService.scroll$(nativeElement, 0, left)),\n takeUntil(this.destroy$),\n )\n .subscribe();\n }\n\n private updateSearch(value: string) {\n if (this.focusableElement) {\n this.focusableElement.nativeElement.value = value;\n }\n\n this.search = value;\n this.searchChange.emit(value);\n }\n\n private shouldScroll({scrollWidth, offsetWidth}: HTMLElement): boolean {\n return scrollWidth > offsetWidth;\n }\n\n private addTag() {\n const inputValue = this.search.trim();\n\n if (!inputValue || this.disabledItemHandler(inputValue)) {\n return;\n }\n\n this.updateSearch('');\n this.updateValue(this.value.concat(inputValue));\n }\n\n private deleteLastEnabledItem() {\n for (let index = this.value.length - 1; index >= 0; index--) {\n if (!this.disabledItemHandler(this.value[index])) {\n this.updateValue([\n ...this.value.slice(0, index),\n ...this.value.slice(index + 1, this.value.length),\n ]);\n\n break;\n }\n }\n }\n\n private focusInput(preventScroll: boolean = false) {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {\n TuiActiveZoneModule,\n TuiFocusableModule,\n TuiHoveredModule,\n TuiScrollService,\n} from '@taiga-ui/cdk';\nimport {\n TuiHostedDropdownModule,\n TuiScrollbarModule,\n TuiSvgModule,\n TuiTooltipModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\nimport {TuiTagModule} from '@taiga-ui/kit/components/tag';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputTagComponent} from './input-tag.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiFocusableModule,\n TuiHoveredModule,\n TuiActiveZoneModule,\n TuiSvgModule,\n TuiScrollbarModule,\n TuiTooltipModule,\n TuiHostedDropdownModule,\n TuiTagModule,\n TuiWrapperModule,\n ],\n providers: [TuiScrollService],\n declarations: [TuiInputTagComponent],\n exports: [TuiInputTagComponent],\n})\nexport class TuiInputTagModule {}\n"],"names":["InjectionToken","EMPTY_QUERY","Subject","ALWAYS_TRUE_HANDLER","ALWAYS_FALSE_HANDLER","EventEmitter","isNativeFocusedIn","getActualTarget","setNativeFocused","ALLOWED_SPACE_REGEXP","typedFromEvent","filter","preventDefault","map","mapTo","merge","switchMap","takeUntil","NgControl","Optional","Self","Inject","ChangeDetectorRef","TuiScrollService","ElementRef","TUI_TEXTFIELD_APPEARANCE","TuiModeDirective","TUI_TAG_STATUS","TuiHintControllerDirective","TUI_HINT_WATCHED_CONTROLLER","TuiTextfieldController","TUI_TEXTFIELD_WATCHED_CONTROLLER","TuiHostedDropdownComponent","ViewChild","ViewChildren","TuiScrollbarComponent","Input","tuiDefaultProp","HostBinding","Output","ContentChild","TuiDataListDirective","TemplateRef","Component","ChangeDetectionStrategy","TUI_FOCUSABLE_ITEM_ACCESSOR","forwardRef","TUI_DATA_LIST_HOST","FIXED_DROPDOWN_CONTROLLER_PROVIDER","TEXTFIELD_CONTROLLER_PROVIDER","HINT_CONTROLLER_PROVIDER","AbstractTuiMultipleControl","NgModule","CommonModule","FormsModule","PolymorpheusModule","TuiFocusableModule","TuiHoveredModule","TuiActiveZoneMod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N,WAAAC,WAAM,CAACH,eAAS,CAAC,CAAA;YAEjB,WAAAG,WAAM,CAACC,sBAAiB,CAAC,CAAA;YACzB,WAAAD,WAAM,CAACE,oBAAgB,CAAC,CAAA;YACxB,WAAAF,WAAM,CAACG,eAAU,CAAC,CAAA;YAClB,WAAAH,WAAM,CAACI,+BAAwB,CAAC,CAAA;YAChC,WAAAN,aAAQ,EAAE,CAAA;YACV,WAAAE,WAAM,CAACK,uBAAgB,CAAC,CAAA;YAExB,WAAAL,WAAM,CAACM,qBAAc,CAAC,CAAA;YACtB,WAAAN,WAAM,CAACQ,kCAA2B,CAAC,CAAA;YAEnC,WAAAR,WAAM,CAACU,uCAAgC,CAAC,CAAA;YAExC,WAAAV,WAAM,CAAC,qBAAqB,CAAC,CAAA;YAE7B,YAAAF,aAAQ,EAAE,CAAA;YACV,YAAAE,WAAM,CAACW,iCAA0B,CAAC,CAAA;WArH9B,oBAAoB,CA0bhC;QAAD,2BAAC;KAAA,CAzbWmB,8BAA0B;;;QCjDtC;SAAiC;QAApB,iBAAiB;YAnB7BC,aAAQ,CAAC;gBACN,OAAO,EAAE;oBACLC,mBAAY;oBACZC,iBAAW;oBACXC,iCAAkB;oBAClBC,sBAAkB;oBAClBC,oBAAgB;oBAChBC,uBAAmB;oBACnBC,mBAAY;oBACZC,yBAAkB;oBAClBC,uBAAgB;oBAChBC,8BAAuB;oBACvBC,gBAAY;oBACZC,uBAAgB;iBACnB;gBACD,SAAS,EAAE,CAACzC,oBAAgB,CAAC;gBAC7B,YAAY,EAAE,CAAC,oBAAoB,CAAC;gBACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;aAClC,CAAC;WACW,iBAAiB,CAAG;QAAD,wBAAC;KAAjC;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-input-tag.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/kit/components/input-tag/input-tag-options.ts","ng://@taiga-ui/kit/components/input-tag/input-tag.component.ts","ng://@taiga-ui/kit/components/input-tag/input-tag.module.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import {InjectionToken} from '@angular/core';\n\nexport interface TuiInputTagOptions {\n readonly separator: string | RegExp;\n readonly uniqueTags: boolean;\n}\n\nexport const TUI_INPUT_TAG_DEFAULT_OPTIONS: TuiInputTagOptions = {\n separator: ',',\n uniqueTags: true,\n};\n\nexport const TUI_INPUT_TAG_OPTIONS = new InjectionToken<TuiInputTagOptions>(\n 'Default parameters for input-tag',\n {\n factory: () => TUI_INPUT_TAG_DEFAULT_OPTIONS,\n },\n);\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ElementRef,\n EventEmitter,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Output,\n QueryList,\n Self,\n TemplateRef,\n ViewChild,\n ViewChildren,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiMultipleControl,\n ALWAYS_FALSE_HANDLER,\n ALWAYS_TRUE_HANDLER,\n EMPTY_QUERY,\n getActualTarget,\n isNativeFocusedIn,\n preventDefault,\n setNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiActiveZoneDirective,\n TuiBooleanHandler,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiScrollService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_DATA_LIST_HOST,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_MODE,\n TUI_TEXTFIELD_APPEARANCE,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiBrightness,\n TuiDataListDirective,\n TuiDataListHost,\n TuiHintControllerDirective,\n TuiHorizontalDirection,\n TuiHostedDropdownComponent,\n TuiModeDirective,\n TuiScrollbarComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldController,\n} from '@taiga-ui/core';\nimport {TuiStringifiableItem} from '@taiga-ui/kit/classes';\nimport {ALLOWED_SPACE_REGEXP} from '@taiga-ui/kit/components/tag';\nimport {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {TUI_TAG_STATUS} from '@taiga-ui/kit/tokens';\nimport {TuiStatusT} from '@taiga-ui/kit/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {merge, Observable, Subject} from 'rxjs';\nimport {filter, map, mapTo, switchMap, takeUntil} from 'rxjs/operators';\n\nimport {TUI_INPUT_TAG_OPTIONS, TuiInputTagOptions} from './input-tag-options';\n\nconst EVENT_Y_TO_X_COEFFICIENT = 3;\n\n@Component({\n selector: 'tui-input-tag',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './input-tag.template.html',\n styleUrls: ['./input-tag.style.less'],\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputTagComponent),\n },\n {\n provide: TUI_DATA_LIST_HOST,\n useExisting: forwardRef(() => TuiInputTagComponent),\n },\n FIXED_DROPDOWN_CONTROLLER_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n ],\n})\nexport class TuiInputTagComponent\n extends AbstractTuiMultipleControl<string>\n implements TuiFocusableElementAccessor, TuiDataListHost<string>\n{\n @ViewChild(TuiHostedDropdownComponent)\n private readonly hostedDropdown?: TuiHostedDropdownComponent;\n\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLInputElement>;\n\n @ViewChild('tagsContainer')\n private readonly tagsContainer?: ElementRef<HTMLElement>;\n\n @ViewChildren('tag', {read: ElementRef})\n private readonly tags: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n @ViewChild('cleaner', {read: ElementRef})\n private readonly cleanerSvg?: ElementRef<HTMLElement>;\n\n @ViewChild(TuiScrollbarComponent, {read: ElementRef})\n private readonly scrollBar?: ElementRef<HTMLElement>;\n\n private readonly scrollToStart$ = new Subject<void>();\n private readonly scrollToEnd$ = new Subject<void>();\n\n // TODO: Remove in 3.0\n @Input()\n @tuiDefaultProp()\n allowSpaces = true;\n\n @Input()\n @tuiDefaultProp()\n separator: string | RegExp = this.options.separator;\n\n @Input()\n @tuiDefaultProp()\n icon = '';\n\n @Input()\n @tuiDefaultProp()\n iconAlign: TuiHorizontalDirection = 'right';\n\n @Input()\n @tuiDefaultProp()\n search = '';\n\n @Input()\n @tuiDefaultProp()\n editable = true;\n\n @Input()\n @tuiDefaultProp()\n tagValidator: TuiBooleanHandler<string> = ALWAYS_TRUE_HANDLER;\n\n @Input()\n @HostBinding('class._expandable')\n @tuiDefaultProp()\n expandable = true;\n\n @Input()\n @tuiDefaultProp()\n inputHidden = false;\n\n @Input()\n @tuiDefaultProp()\n uniqueTags = this.options.uniqueTags;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<string | TuiStringifiableItem<any>> =\n ALWAYS_FALSE_HANDLER;\n\n @Input('pseudoFocused')\n set pseudoFocusedSetter(value: boolean | null) {\n if (!value && !this.focused) {\n this.scrollToStart$.next();\n }\n\n this.pseudoFocused = value;\n }\n\n @Output()\n readonly searchChange = new EventEmitter<string>();\n\n @ContentChild(TuiDataListDirective, {read: TemplateRef})\n readonly datalist?: TemplateRef<TuiContextWithImplicit<TuiActiveZoneDirective>>;\n\n @ViewChild('errorIcon')\n readonly errorIconTemplate?: TemplateRef<{}>;\n\n @ViewChild(TuiScrollbarComponent)\n set scrollerSetter(scroller: TuiScrollbarComponent | null) {\n this.initScrollerSubscrition(scroller);\n }\n\n status$: Observable<TuiStatusT> = this.mode$.pipe(\n map(mode => (mode ? 'default' : this.tagStatus)),\n );\n\n open = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TuiScrollService) private readonly tuiScrollService: TuiScrollService,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_TEXTFIELD_APPEARANCE) readonly appearance: string,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n @Inject(TUI_MODE)\n private readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_TAG_STATUS) private readonly tagStatus: TuiStatusT,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n @Inject(TUI_INPUT_TAG_OPTIONS)\n private readonly options: TuiInputTagOptions,\n @Optional()\n @Inject(TuiHostedDropdownComponent)\n private readonly parentHostedDropdown?: TuiHostedDropdownComponent,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return !this.focusableElement || this.computedDisabled\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return (\n isNativeFocusedIn(this.elementRef.nativeElement) ||\n !!this.hostedDropdown?.focused\n );\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.controller.size;\n }\n\n @HostBinding('class._label-outside')\n get labelOutside(): boolean {\n const {size, labelOutside} = this.controller;\n\n return size === 's' || labelOutside;\n }\n\n get hasCleaner(): boolean {\n return this.controller.cleaner && this.hasValue && this.interactive;\n }\n\n get hasNativeValue(): boolean {\n return !!this.search;\n }\n\n get hasValue(): boolean {\n return !!this.value.length || this.hasNativeValue;\n }\n\n get hasPlaceholder(): boolean {\n return (\n !this.labelOutside ||\n (!this.hasValue && (!this.hasExampleText || this.inputHidden))\n );\n }\n\n get placeholderRaised(): boolean {\n return (\n !this.labelOutside &&\n ((this.computedFocused && !this.readOnly) || this.hasValue)\n );\n }\n\n get hasExampleText(): boolean {\n return (\n !!this.controller.exampleText &&\n this.computedFocused &&\n !this.hasValue &&\n !this.readOnly\n );\n }\n\n get hasTooltip(): boolean {\n return !!this.hintController.content && !this.disabled;\n }\n\n get iconAlignLeft(): boolean {\n return !!this.icon && this.iconAlign === 'left';\n }\n\n get iconAlignRight(): boolean {\n return !!this.icon && this.iconAlign === 'right';\n }\n\n get hasRightIcons(): boolean {\n return this.hasCleaner || this.hasTooltip || this.iconAlignRight;\n }\n\n /**\n * @deprecated: use `status$ | async` instead\n * TODO: remove in v3.0\n */\n get status(): TuiStatusT {\n return this.modeDirective && this.modeDirective.mode ? 'default' : this.tagStatus;\n }\n\n get canOpen(): boolean {\n return this.interactive && !!this.datalist;\n }\n\n getLeftContent(tag: string): PolymorpheusContent {\n return !this.tagValidator(tag) && this.errorIconTemplate\n ? this.errorIconTemplate\n : '';\n }\n\n onCleanerClick() {\n this.updateSearch('');\n this.clear();\n this.focusInput();\n this.parentHostedDropdown?.updateOpen(true);\n }\n\n onActiveZone(active: boolean) {\n this.open = false;\n this.addTag();\n this.updateFocused(active);\n\n if (!this.computedFocused) {\n this.scrollToStart$.next();\n }\n }\n\n onMouseDown(event: MouseEvent) {\n const actualTarget = getActualTarget(event);\n\n if (\n !this.focusableElement ||\n actualTarget === this.focusableElement.nativeElement ||\n // TODO: iframe warning\n !(event.target instanceof Element) ||\n (this.cleanerSvg && this.cleanerSvg.nativeElement.contains(event.target)) ||\n (this.tagsContainer &&\n actualTarget !== this.tagsContainer.nativeElement &&\n this.tagsContainer.nativeElement.contains(actualTarget))\n ) {\n return;\n }\n\n event.preventDefault();\n this.focusInput();\n }\n\n onFieldKeyDownBackspace(event: KeyboardEvent) {\n if (!this.labelOutside && !this.hasNativeValue && this.value.length) {\n this.deleteLastEnabledItem();\n } else {\n this.onFieldKeyDownArrowLeft(event);\n }\n }\n\n onFieldKeyDownArrowLeft(event: KeyboardEvent) {\n if (!this.labelOutside || this.hasNativeValue || !this.value.length) {\n return;\n }\n\n event.preventDefault();\n setNativeFocused(this.tags.last.nativeElement);\n }\n\n onFieldKeyDownEnter() {\n this.addTag();\n this.scrollToEnd$.next();\n }\n\n onTagKeyDownArrowLeft(currentIndex: number) {\n if (currentIndex > 0) {\n this.onScrollKeyDown(currentIndex, -1);\n }\n }\n\n onTagKeyDownArrowRight(currentIndex: number) {\n if (currentIndex === this.value.length - 1) {\n this.focusInput();\n } else {\n this.onScrollKeyDown(currentIndex, 1);\n }\n }\n\n onTagEdited(value: string, index: number) {\n this.focusInput();\n this.updateValue(\n this.value\n .map((tag, tagIndex) =>\n tagIndex !== index\n ? tag\n : value\n .split(this.separator)\n .map(tag => tag.trim())\n .filter(Boolean),\n )\n .reduce<string[]>(\n (result, item: string | string[]) => result.concat(item),\n [],\n ),\n );\n }\n\n handleOption(item: string) {\n this.focusInput();\n this.updateSearch('');\n this.updateValue(this.value.concat(item));\n this.open = false;\n this.scrollToEnd$.next();\n }\n\n onInput(value: string) {\n const array = this.allowSpaces\n ? value.split(this.separator)\n : value.split(ALLOWED_SPACE_REGEXP);\n const tags = array\n .map(item => item.trim())\n .filter((item, index, {length}) => item.length > 0 && index !== length - 1);\n const validated = tags.filter(tag => !this.disabledItemHandler(tag));\n\n if (array.length > 1) {\n this.updateSearch(array[array.length - 1].trim());\n this.updateValue([...this.value, ...validated]);\n } else {\n this.updateSearch(value);\n }\n\n this.open = this.hasNativeValue;\n }\n\n onHoveredChange(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n setDisabledState() {\n super.setDisabledState();\n this.open = false;\n }\n\n protected updateValue(value: Array<string>) {\n const seen = new Set();\n\n super.updateValue(\n value\n .reverse()\n .filter(\n item =>\n !this.uniqueTags || (!!item && !seen.has(item) && seen.add(item)),\n )\n .reverse(),\n );\n }\n\n private onScrollKeyDown(currentIndex: number, flag: number) {\n const tag = this.tags.find((_item, index) => index === currentIndex + flag);\n\n if (!tag || !this.scrollBar) {\n return;\n }\n\n setNativeFocused(tag.nativeElement);\n\n if (\n flag * this.scrollBar.nativeElement.clientWidth -\n flag * tag.nativeElement.offsetLeft -\n tag.nativeElement.clientWidth <\n 0\n ) {\n this.scrollBar.nativeElement.scrollLeft +=\n flag * tag.nativeElement.clientWidth;\n }\n }\n\n private initScrollerSubscrition(scroller: TuiScrollbarComponent | null) {\n if (!scroller || !scroller.browserScrollRef) {\n return;\n }\n\n const {nativeElement} = scroller.browserScrollRef;\n\n const wheel$ = typedFromEvent(nativeElement, 'wheel', {passive: false}).pipe(\n filter(event => event.deltaX === 0 && this.shouldScroll(nativeElement)),\n preventDefault(),\n map(({deltaY}) =>\n Math.max(nativeElement.scrollLeft + deltaY * EVENT_Y_TO_X_COEFFICIENT, 0),\n ),\n );\n const start$ = this.scrollToStart$.pipe(mapTo(0));\n const end$ = this.scrollToEnd$.pipe(map(() => nativeElement.scrollWidth));\n\n merge(wheel$, start$, end$)\n .pipe(\n switchMap(left => this.tuiScrollService.scroll$(nativeElement, 0, left)),\n takeUntil(this.destroy$),\n )\n .subscribe();\n }\n\n private updateSearch(value: string) {\n if (this.focusableElement) {\n this.focusableElement.nativeElement.value = value;\n }\n\n this.search = value;\n this.searchChange.emit(value);\n }\n\n private shouldScroll({scrollWidth, offsetWidth}: HTMLElement): boolean {\n return scrollWidth > offsetWidth;\n }\n\n private addTag() {\n const inputValue = this.search.trim();\n\n if (!inputValue || this.disabledItemHandler(inputValue)) {\n return;\n }\n\n this.updateSearch('');\n this.updateValue(this.value.concat(inputValue));\n }\n\n private deleteLastEnabledItem() {\n for (let index = this.value.length - 1; index >= 0; index--) {\n if (!this.disabledItemHandler(this.value[index])) {\n this.updateValue([\n ...this.value.slice(0, index),\n ...this.value.slice(index + 1, this.value.length),\n ]);\n\n break;\n }\n }\n }\n\n private focusInput(preventScroll: boolean = false) {\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement, true, preventScroll);\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {\n TuiActiveZoneModule,\n TuiFocusableModule,\n TuiHoveredModule,\n TuiScrollService,\n} from '@taiga-ui/cdk';\nimport {\n TuiHostedDropdownModule,\n TuiScrollbarModule,\n TuiSvgModule,\n TuiTooltipModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\nimport {TuiTagModule} from '@taiga-ui/kit/components/tag';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputTagComponent} from './input-tag.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiFocusableModule,\n TuiHoveredModule,\n TuiActiveZoneModule,\n TuiSvgModule,\n TuiScrollbarModule,\n TuiTooltipModule,\n TuiHostedDropdownModule,\n TuiTagModule,\n TuiWrapperModule,\n ],\n providers: [TuiScrollService],\n declarations: [TuiInputTagComponent],\n exports: [TuiInputTagComponent],\n})\nexport class TuiInputTagModule {}\n"],"names":["InjectionToken","EMPTY_QUERY","Subject","ALWAYS_TRUE_HANDLER","ALWAYS_FALSE_HANDLER","EventEmitter","map","isNativeFocusedIn","getActualTarget","setNativeFocused","ALLOWED_SPACE_REGEXP","typedFromEvent","filter","preventDefault","mapTo","merge","switchMap","takeUntil","NgControl","Optional","Self","Inject","ChangeDetectorRef","TuiScrollService","ElementRef","TUI_TEXTFIELD_APPEARANCE","TuiModeDirective","Observable","TUI_MODE","TUI_TAG_STATUS","TuiHintControllerDirective","TUI_HINT_WATCHED_CONTROLLER","TuiTextfieldController","TUI_TEXTFIELD_WATCHED_CONTROLLER","TuiHostedDropdownComponent","ViewChild","ViewChildren","TuiScrollbarComponent","Input","tuiDefaultProp","HostBinding","Output","ContentChild","TuiDataListDirective","TemplateRef","Component","ChangeDetectionStrategy","TUI_FOCUSABLE_ITEM_ACCESSOR","forwardRef","TUI_DATA_LIST_HOST","FIXED_DROPDOWN_CONTROLLER_PROVIDER","TEXTFIELD_CONTROLLER_PROVIDER","HINT_CONTROLLER_PROVIDER","MODE_PROVIDER","AbstractTuiMultipleControl","NgModule","CommonModule","FormsModule","PolymorpheusModule","TuiFocusableModule","TuiHoveredModule","TuiActiveZoneModule","TuiSvgModule","TuiScrollbarModule","TuiTooltipModule","TuiHostedDropdownModule","TuiTagModule","TuiWrapperModule"],"mappings":";;;;;;IAAA;IACA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aAClC,CAAC;WACW,iBAAiB,CAAG;QAAD,wBAAC;KAAjC;;;;;;;;;;;;;;;"}
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var c=function(t,e){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function h(t,e,i,n){var o,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a}function g(t,e){return function(i,n){e(i,n,t)}}function m(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,r=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return a}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}var v={separator:",",uniqueTags:!0},b=new e.InjectionToken("Default parameters for input-tag",{factory:function(){return v}}),y=function(t){function u(i,o,r,a,l,d,u,p,c,h,g){var m=t.call(this,i,o)||this;return m.tuiScrollService=r,m.elementRef=a,m.appearance=l,m.modeDirective=d,m.tagStatus=u,m.hintController=p,m.controller=c,m.options=h,m.parentHostedDropdown=g,m.tags=n.EMPTY_QUERY,m.scrollToStart$=new s.Subject,m.scrollToEnd$=new s.Subject,m.allowSpaces=!0,m.separator=m.options.separator,m.icon="",m.iconAlign="right",m.search="",m.editable=!0,m.tagValidator=n.ALWAYS_TRUE_HANDLER,m.expandable=!0,m.inputHidden=!1,m.uniqueTags=m.options.uniqueTags,m.disabledItemHandler=n.ALWAYS_FALSE_HANDLER,m.searchChange=new e.EventEmitter,m.open=!1,m}var p;return function(t,e){function i(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(u,t),p=u,Object.defineProperty(u.prototype,"pseudoFocusedSetter",{set:function(t){t||this.focused||this.scrollToStart$.next(),this.pseudoFocused=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"scrollerSetter",{set:function(t){this.initScrollerSubscrition(t)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"nativeFocusableElement",{get:function(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"focused",{get:function(){var t;return n.isNativeFocusedIn(this.elementRef.nativeElement)||!!(null===(t=this.hostedDropdown)||void 0===t?void 0:t.focused)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"size",{get:function(){return this.controller.size},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"labelOutside",{get:function(){var t=this.controller,e=t.size,i=t.labelOutside;return"s"===e||i},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasCleaner",{get:function(){return this.controller.cleaner&&this.hasValue&&this.interactive},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasNativeValue",{get:function(){return!!this.search},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasValue",{get:function(){return!!this.value.length||this.hasNativeValue},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasPlaceholder",{get:function(){return!this.labelOutside||!this.hasValue&&(!this.hasExampleText||this.inputHidden)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"placeholderRaised",{get:function(){return!this.labelOutside&&(this.computedFocused&&!this.readOnly||this.hasValue)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasExampleText",{get:function(){return!!this.controller.exampleText&&this.computedFocused&&!this.hasValue&&!this.readOnly},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasTooltip",{get:function(){return!!this.hintController.content&&!this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"iconAlignLeft",{get:function(){return!!this.icon&&"left"===this.iconAlign},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"iconAlignRight",{get:function(){return!!this.icon&&"right"===this.iconAlign},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasRightIcons",{get:function(){return this.hasCleaner||this.hasTooltip||this.iconAlignRight},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"status",{get:function(){return this.modeDirective&&this.modeDirective.mode?"default":this.tagStatus},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"canOpen",{get:function(){return this.interactive&&!!this.datalist},enumerable:!0,configurable:!0}),u.prototype.getLeftContent=function(t){return!this.tagValidator(t)&&this.errorIconTemplate?this.errorIconTemplate:""},u.prototype.onCleanerClick=function(){var t;this.updateSearch(""),this.clear(),this.focusInput(),null===(t=this.parentHostedDropdown)||void 0===t||t.updateOpen(!0)},u.prototype.onActiveZone=function(t){this.open=!1,this.addTag(),this.updateFocused(t),this.computedFocused||this.scrollToStart$.next()},u.prototype.onMouseDown=function(t){var e=n.getActualTarget(t);!this.focusableElement||e===this.focusableElement.nativeElement||!(t.target instanceof Element)||this.cleanerSvg&&this.cleanerSvg.nativeElement.contains(t.target)||this.tagsContainer&&e!==this.tagsContainer.nativeElement&&this.tagsContainer.nativeElement.contains(e)||(t.preventDefault(),this.focusInput())},u.prototype.onFieldKeyDownBackspace=function(t){this.labelOutside||this.hasNativeValue||!this.value.length?this.onFieldKeyDownArrowLeft(t):this.deleteLastEnabledItem()},u.prototype.onFieldKeyDownArrowLeft=function(t){this.labelOutside&&!this.hasNativeValue&&this.value.length&&(t.preventDefault(),n.setNativeFocused(this.tags.last.nativeElement))},u.prototype.onFieldKeyDownEnter=function(){this.addTag(),this.scrollToEnd$.next()},u.prototype.onTagKeyDownArrowLeft=function(t){t>0&&this.onScrollKeyDown(t,-1)},u.prototype.onTagKeyDownArrowRight=function(t){t===this.value.length-1?this.focusInput():this.onScrollKeyDown(t,1)},u.prototype.onTagEdited=function(t,e){var i=this;this.focusInput(),this.updateValue(this.value.map((function(n,o){return o!==e?n:t.split(i.separator).map((function(t){return t.trim()})).filter(Boolean)})).reduce((function(t,e){return t.concat(e)}),[]))},u.prototype.handleOption=function(t){this.focusInput(),this.updateSearch(""),this.updateValue(this.value.concat(t)),this.open=!1,this.scrollToEnd$.next()},u.prototype.onInput=function(t){var e=this,i=this.allowSpaces?t.split(this.separator):t.split(r.ALLOWED_SPACE_REGEXP),n=i.map((function(t){return t.trim()})).filter((function(t,e,i){var n=i.length;return t.length>0&&e!==n-1})).filter((function(t){return!e.disabledItemHandler(t)}));i.length>1?(this.updateSearch(i[i.length-1].trim()),this.updateValue(f(this.value,n))):this.updateSearch(t),this.open=this.hasNativeValue},u.prototype.onHoveredChange=function(t){this.updateHovered(t)},u.prototype.setDisabledState=function(){t.prototype.setDisabledState.call(this),this.open=!1},u.prototype.updateValue=function(e){var i=this,n=new Set;t.prototype.updateValue.call(this,e.reverse().filter((function(t){return!i.uniqueTags||!!t&&!n.has(t)&&n.add(t)})).reverse())},u.prototype.onScrollKeyDown=function(t,e){var i=this.tags.find((function(i,n){return n===t+e}));i&&this.scrollBar&&(n.setNativeFocused(i.nativeElement),e*this.scrollBar.nativeElement.clientWidth-e*i.nativeElement.offsetLeft-i.nativeElement.clientWidth<0&&(this.scrollBar.nativeElement.scrollLeft+=e*i.nativeElement.clientWidth))},u.prototype.initScrollerSubscrition=function(t){var e=this;if(t&&t.browserScrollRef){var i=t.browserScrollRef.nativeElement,o=n.typedFromEvent(i,"wheel",{passive:!1}).pipe(d.filter((function(t){return 0===t.deltaX&&e.shouldScroll(i)})),n.preventDefault(),d.map((function(t){var e=t.deltaY;return Math.max(i.scrollLeft+3*e,0)}))),r=this.scrollToStart$.pipe(d.mapTo(0)),a=this.scrollToEnd$.pipe(d.map((function(){return i.scrollWidth})));s.merge(o,r,a).pipe(d.switchMap((function(t){return e.tuiScrollService.scroll$(i,0,t)})),d.takeUntil(this.destroy$)).subscribe()}},u.prototype.updateSearch=function(t){this.focusableElement&&(this.focusableElement.nativeElement.value=t),this.search=t,this.searchChange.emit(t)},u.prototype.shouldScroll=function(t){return t.scrollWidth>t.offsetWidth},u.prototype.addTag=function(){var t=this.search.trim();t&&!this.disabledItemHandler(t)&&(this.updateSearch(""),this.updateValue(this.value.concat(t)))},u.prototype.deleteLastEnabledItem=function(){for(var t=this.value.length-1;t>=0;t--)if(!this.disabledItemHandler(this.value[t])){this.updateValue(f(this.value.slice(0,t),this.value.slice(t+1,this.value.length)));break}},u.prototype.focusInput=function(t){void 0===t&&(t=!1),this.nativeFocusableElement&&n.setNativeFocused(this.nativeFocusableElement,!0,t)},u.ctorParameters=function(){return[{type:i.NgControl,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[i.NgControl]}]},{type:e.ChangeDetectorRef,decorators:[{type:e.Inject,args:[e.ChangeDetectorRef]}]},{type:n.TuiScrollService,decorators:[{type:e.Inject,args:[n.TuiScrollService]}]},{type:e.ElementRef,decorators:[{type:e.Inject,args:[e.ElementRef]}]},{type:String,decorators:[{type:e.Inject,args:[o.TUI_TEXTFIELD_APPEARANCE]}]},{type:o.TuiModeDirective,decorators:[{type:e.Optional},{type:e.Inject,args:[o.TuiModeDirective]}]},{type:void 0,decorators:[{type:e.Inject,args:[l.TUI_TAG_STATUS]}]},{type:o.TuiHintControllerDirective,decorators:[{type:e.Inject,args:[o.TUI_HINT_WATCHED_CONTROLLER]}]},{type:o.TuiTextfieldController,decorators:[{type:e.Inject,args:[o.TUI_TEXTFIELD_WATCHED_CONTROLLER]}]},{type:void 0,decorators:[{type:e.Inject,args:[b]}]},{type:o.TuiHostedDropdownComponent,decorators:[{type:e.Optional},{type:e.Inject,args:[o.TuiHostedDropdownComponent]}]}]},h([e.ViewChild(o.TuiHostedDropdownComponent)],u.prototype,"hostedDropdown",void 0),h([e.ViewChild("focusableElement")],u.prototype,"focusableElement",void 0),h([e.ViewChild("tagsContainer")],u.prototype,"tagsContainer",void 0),h([e.ViewChildren("tag",{read:e.ElementRef})],u.prototype,"tags",void 0),h([e.ViewChild("cleaner",{read:e.ElementRef})],u.prototype,"cleanerSvg",void 0),h([e.ViewChild(o.TuiScrollbarComponent,{read:e.ElementRef})],u.prototype,"scrollBar",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"allowSpaces",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"separator",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"icon",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"iconAlign",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"search",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"editable",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"tagValidator",void 0),h([e.Input(),e.HostBinding("class._expandable"),n.tuiDefaultProp()],u.prototype,"expandable",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"inputHidden",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"uniqueTags",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"disabledItemHandler",void 0),h([e.Input("pseudoFocused")],u.prototype,"pseudoFocusedSetter",null),h([e.Output()],u.prototype,"searchChange",void 0),h([e.ContentChild(o.TuiDataListDirective,{read:e.TemplateRef})],u.prototype,"datalist",void 0),h([e.ViewChild("errorIcon")],u.prototype,"errorIconTemplate",void 0),h([e.ViewChild(o.TuiScrollbarComponent)],u.prototype,"scrollerSetter",null),h([e.HostBinding("attr.data-size")],u.prototype,"size",null),h([e.HostBinding("class._label-outside")],u.prototype,"labelOutside",null),u=p=h([e.Component({selector:"tui-input-tag",changeDetection:e.ChangeDetectionStrategy.OnPush,template:'<tui-hosted-dropdown\n class="t-hosted"\n [canOpen]="canOpen"\n [content]="datalist || \'\'"\n [(open)]="open"\n (tuiActiveZoneChange)="onActiveZone($event)"\n>\n <tui-wrapper\n [appearance]="appearance"\n [readOnly]="readOnly"\n [focused]="computedFocused"\n [hovered]="computedHovered"\n [disabled]="computedDisabled"\n [invalid]="computedInvalid"\n (tuiHoveredChange)="onHoveredChange($event)"\n (mousedown)="onMouseDown($event)"\n >\n <div class="t-content">\n <div *ngIf="iconAlignLeft" class="t-icons t-icons_left">\n <tui-svg class="t-icon" [src]="icon"></tui-svg>\n </div>\n <div class="t-wrapper">\n <div class="t-absolute-wrapper">\n <div\n *ngIf="hasPlaceholder"\n automation-id="tui-input-tag__placeholder"\n class="t-placeholder"\n [class.t-placeholder_raised]="placeholderRaised"\n >\n <ng-content></ng-content>\n </div>\n </div>\n <tui-scrollbar\n *ngIf="!expandable; else items"\n class="t-scrollbar"\n [hidden]="true"\n >\n <ng-container *ngTemplateOutlet="items"></ng-container>\n </tui-scrollbar>\n <ng-template #items>\n <div #tagsContainer class="t-tags">\n <ng-container *ngIf="labelOutside; else text">\n <tui-tag\n *ngFor="let item of value; index as index"\n #tag\n automation-id="tui-input-tag__tag"\n class="t-tag"\n [status]="status"\n [leftContent]="getLeftContent(item)"\n [allowSpaces]="allowSpaces"\n [tuiFocusable]="false"\n [disabled]="computedDisabled || disabledItemHandler(item)"\n [editable]="editable && !readOnly"\n [hoverable]="!readOnly"\n [removable]="!readOnly"\n [separator]="separator"\n [maxLength]="controller.maxLength"\n [size]="controller.size"\n [value]="item.toString()"\n (edited)="onTagEdited($event, index)"\n (keydown.arrowLeft.prevent)="onTagKeyDownArrowLeft(index)"\n (keydown.arrowRight.prevent)="onTagKeyDownArrowRight(index)"\n ></tui-tag>\n </ng-container>\n <ng-template #text>\n <span\n *ngFor="let item of value"\n class="t-text"\n [class.t-text_disabled]="disabledItemHandler(item)"\n [class.t-text_error]="!tagValidator(item)"\n [innerText]="item"\n ></span>\n </ng-template>\n <div\n class="t-input-wrapper"\n [class.t-input-wrapper_collapsed]="computedDisabled || readOnly || inputHidden"\n >\n <div class="t-ghost">{{ search }}</div>\n <input\n #focusableElement\n type="text"\n automation-id="tui-input-tag__native"\n class="t-native"\n [placeholder]="controller.exampleText"\n [class.t-native_hidden]="inputHidden"\n [attr.maxLength]="controller.maxLength"\n [id]="id"\n [disabled]="computedDisabled"\n [readOnly]="readOnly || inputHidden"\n [tuiFocusable]="computedFocusable"\n [ngModel]="search"\n (ngModelChange)="onInput($event)"\n (keydown.arrowLeft)="onFieldKeyDownArrowLeft($event)"\n (keydown.backspace)="onFieldKeyDownBackspace($event)"\n (keydown.enter.prevent)="onFieldKeyDownEnter()"\n />\n </div>\n </div>\n </ng-template>\n </div>\n <div *ngIf="hasRightIcons" class="t-icons t-icons_right">\n <tui-svg\n *ngIf="hasCleaner"\n #cleaner\n automation-id="tui-input-tag__cleaner"\n src="tuiIconCloseLarge"\n class="t-cleaner"\n (click.stop)="onCleanerClick()"\n ></tui-svg>\n <tui-tooltip\n *ngIf="hasTooltip"\n automation-id="tui-input-tag__tooltip"\n describeId="placeholer_until_accesibility_is_added"\n class="t-tooltip"\n [direction]="hintController.direction"\n [mode]="hintController.mode"\n [content]="hintController.content"\n [showDelay]="hintController.showDelay"\n [hideDelay]="hintController.hideDelay"\n ></tui-tooltip>\n <tui-svg\n *ngIf="iconAlignRight"\n class="t-icon"\n [src]="icon"\n ></tui-svg>\n </div>\n </div>\n <ng-template #errorIcon>\n <tui-svg src="tuiIconAttention" class="t-error-icon"></tui-svg>\n </ng-template>\n </tui-wrapper>\n</tui-hosted-dropdown>\n',providers:[{provide:n.TUI_FOCUSABLE_ITEM_ACCESSOR,useExisting:e.forwardRef((function(){return p}))},{provide:o.TUI_DATA_LIST_HOST,useExisting:e.forwardRef((function(){return p}))},a.FIXED_DROPDOWN_CONTROLLER_PROVIDER,o.TEXTFIELD_CONTROLLER_PROVIDER,o.HINT_CONTROLLER_PROVIDER],styles:[":host{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;border-radius:var(--tui-radius-m);text-align:left}:host[data-size='s']{height:var(--tui-height-s);min-height:var(--tui-height-s);max-height:var(--tui-height-s)}:host[data-size='m']{height:var(--tui-height-m);min-height:var(--tui-height-m);max-height:var(--tui-height-m)}:host[data-size='l']{height:var(--tui-height-l);min-height:var(--tui-height-l);max-height:var(--tui-height-l);font:var(--tui-font-text-m);line-height:1.25rem}.t-input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}.t-input:-webkit-autofill,.t-input:-webkit-autofill:focus,.t-input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill,.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:focus,.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:hover,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:focus,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:hover,:host[data-mode=onDark] .t-input:-webkit-autofill,:host[data-mode=onDark] .t-input:-webkit-autofill:focus,:host[data-mode=onDark] .t-input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill-night) inset!important}.t-input :host-context(tui-primitive-textfield[data-size='s']):not(tui-primitive-textfield),.t-input :host-context(tui-text-area[data-size='s']):not(tui-text-area),:host[data-size='s'] .t-input{padding:0 var(--tui-padding-s)}.t-input :host-context(tui-primitive-textfield[data-size='l']):not(tui-primitive-textfield),.t-input :host-context(tui-text-area[data-size='l']):not(tui-text-area),:host[data-size='l'] .t-input{padding:0 var(--tui-padding-l)}.t-input :host-context(tui-primitive-textfield._disabled),.t-input :host-context(tui-text-area._disabled),:host._disabled .t-input{pointer-events:none}.t-input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='l']:not(._label-outside) .t-input{padding-top:1.25rem}.t-input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='l']:not(._label-outside) .t-input:-webkit-autofill+.content .placeholder{font-size:.8156rem;transform:translateY(-.625rem)}.t-input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='m']:not(._label-outside) .t-input{padding-top:1.125rem}.t-input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='m']:not(._label-outside) .t-input:-webkit-autofill+.content .placeholder{font-size:.69rem;transform:translateY(-.5rem)}.t-input :host-context(tui-primitive-textfield._hidden),:host._hidden input.t-input{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content{display:flex;height:100%;width:100%;padding:0 var(--tui-padding-m);box-sizing:border-box;align-items:center;overflow:hidden}:host[data-size='s'] .t-content{padding:0 var(--tui-padding-s)}:host[data-size='l'] .t-content{padding:0 var(--tui-padding-l)}.t-content:after{content:'';margin-right:-.25rem}:host[data-size='m'] .t-content:after{display:none}.t-wrapper{flex:1;min-width:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem;-webkit-padding-start:0;padding-inline-start:0}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .t-placeholder_raised{font:var(--tui-font-text-xs);transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .t-placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size='l']._focused._label-outside .t-placeholder,:host[data-size='m']._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size='l'] .t-placeholder{font-size:.9375rem}:host[data-size='l'] .t-placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .t-placeholder,:host[data-size='m']._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .t-placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .t-placeholder{color:var(--tui-text-02-night)}@supports (-webkit-hyphens:none){.t-placeholder{transition-property:transform,color,letter-spacing}}.t-cleaner{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.t-cleaner:hover{color:var(--tui-text-02)}:host._disabled .t-cleaner,:host._readonly .t-cleaner{pointer-events:none}:host[data-mode=onDark] .t-cleaner{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-cleaner:hover{color:var(--tui-text-01-night)}.t-icon{display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03)}:host[data-mode=onDark] .t-icon{color:var(--tui-text-03-night)}.t-icon_left{margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host[data-size='s'] .t-icon_left{margin-right:.25rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem}:host{cursor:text}:host._expandable{height:auto;max-height:none}:host._disabled{pointer-events:none}:host._readonly{cursor:default}.t-hosted{display:block;border-radius:inherit}.t-scrollbar{margin:0 -.25rem;padding:0 .25rem}.t-tags{display:flex;align-items:center;box-sizing:border-box}:host._expandable .t-tags{flex-wrap:wrap;white-space:normal}:host._readonly .t-tags{pointer-events:none}:host[data-size='s'] .t-tags{min-height:var(--tui-height-s);padding:.25rem .25rem .25rem 0}:host[data-size='m'] .t-tags{min-height:var(--tui-height-m);padding:.5rem .25rem .5rem 0}:host[data-size='l'] .t-tags{min-height:var(--tui-height-l);padding:.625rem .25rem .625rem 0}:host[data-size='m']:not(._label-outside) .t-tags{padding:1.1875rem 1rem 0 0}:host[data-size='l']:not(._label-outside) .t-tags{padding:1.6875rem 1rem .5625rem 0}.t-tags :host[data-size]{-webkit-padding-start:0;padding-inline-start:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem}:host[data-size]:not(._label-outside) .t-tags{-webkit-padding-end:1rem;padding-inline-end:1rem}.t-content{align-items:flex-start}.t-icons{display:flex;align-items:center;padding:0 0 0 .75rem;-webkit-padding-start:.75rem;padding-inline-start:.75rem;-webkit-padding-end:0;padding-inline-end:0}.t-icons_left{padding:0;margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host._expandable .t-icons_right{margin:0 0 0 -.625rem;-webkit-margin-start:-.625rem;margin-inline-start:-.625rem;-webkit-margin-end:0;margin-inline-end:0}:host[data-size='s'] .t-icons{height:var(--tui-height-s)}:host[data-size='m'] .t-icons{height:var(--tui-height-m)}:host[data-size='l'] .t-icons{height:var(--tui-height-l)}.t-absolute-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}:host[data-size='m'] .t-absolute-wrapper{height:var(--tui-height-m)}:host[data-size='l'] .t-absolute-wrapper{height:var(--tui-height-l)}.t-wrapper{position:relative;padding:0}.t-tag{margin:.125rem .5rem .125rem -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem;max-width:100%;flex-shrink:0}.t-text:after{content:',\\00a0'}.t-text_disabled{color:var(--tui-text-03)}.t-text_error{color:var(--tui-negative)}:host:not(._expandable) .t-text{white-space:nowrap}:host:not(._focused) .t-text:last-of-type:after{content:''}.t-input-wrapper{position:relative;flex:1;max-width:100%}.t-input-wrapper_collapsed{flex:0;margin:0 0 0 -.5rem;-webkit-margin-start:-.5rem;margin-inline-start:-.5rem;-webkit-margin-end:0;margin-inline-end:0}:host[data-size='s'] .t-input-wrapper{min-height:1.5rem}:host[data-size='m'] .t-input-wrapper{min-height:calc(var(--tui-height-xs) + 2 * .125rem)}:host[data-size='l'] .t-input-wrapper{min-height:calc(var(--tui-height-s) + 2 * .125rem)}:host:not(._label-outside) .t-input-wrapper{min-height:1.25rem}.t-ghost{visibility:hidden;white-space:pre;text-overflow:clip;min-width:.125rem}:host:not(._expandable) .t-ghost{min-width:2rem}.t-native{border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;padding:0;cursor:inherit}.t-native:-webkit-autofill,.t-native:-webkit-autofill:focus,.t-native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.t-native_hidden{opacity:0;text-indent:-10em}.t-native::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}.t-native::placeholder{color:var(--tui-text-03);opacity:0}:host[data-mode=onDark] .t-native::-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-native::placeholder{color:var(--tui-text-03-night)}:host._focused .t-native:not(:read-only)::-ms-input-placeholder{opacity:1}:host._focused .t-native:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .t-native:not(:read-only)::placeholder{opacity:1}.t-error-icon{display:block;color:var(--tui-error-fill);width:1rem;height:1rem}"]}),g(0,e.Optional()),g(0,e.Self()),g(0,e.Inject(i.NgControl)),g(1,e.Inject(e.ChangeDetectorRef)),g(2,e.Inject(n.TuiScrollService)),g(3,e.Inject(e.ElementRef)),g(4,e.Inject(o.TUI_TEXTFIELD_APPEARANCE)),g(5,e.Optional()),g(5,e.Inject(o.TuiModeDirective)),g(6,e.Inject(l.TUI_TAG_STATUS)),g(7,e.Inject(o.TUI_HINT_WATCHED_CONTROLLER)),g(8,e.Inject(o.TUI_TEXTFIELD_WATCHED_CONTROLLER)),g(9,e.Inject(b)),g(10,e.Optional()),g(10,e.Inject(o.TuiHostedDropdownComponent))],u)}(n.AbstractTuiMultipleControl),w=function(){function t(){}return t=h([e.NgModule({imports:[u.CommonModule,i.FormsModule,p.PolymorpheusModule,n.TuiFocusableModule,n.TuiHoveredModule,n.TuiActiveZoneModule,o.TuiSvgModule,o.TuiScrollbarModule,o.TuiTooltipModule,o.TuiHostedDropdownModule,r.TuiTagModule,o.TuiWrapperModule],providers:[n.TuiScrollService],declarations:[y],exports:[y]})],t)}();t.TUI_INPUT_TAG_DEFAULT_OPTIONS=v,t.TUI_INPUT_TAG_OPTIONS=b,t.TuiInputTagComponent=y,t.TuiInputTagModule=w,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
15
|
+
***************************************************************************** */var c=function(t,e){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function h(t,e,i,n){var o,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a}function g(t,e){return function(i,n){e(i,n,t)}}function m(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,o,r=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return a}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}var v={separator:",",uniqueTags:!0},b=new e.InjectionToken("Default parameters for input-tag",{factory:function(){return v}}),y=function(t){function u(i,o,r,a,l,u,p,c,h,g,m,f){var v=t.call(this,i,o)||this;return v.tuiScrollService=r,v.elementRef=a,v.appearance=l,v.modeDirective=u,v.mode$=p,v.tagStatus=c,v.hintController=h,v.controller=g,v.options=m,v.parentHostedDropdown=f,v.tags=n.EMPTY_QUERY,v.scrollToStart$=new s.Subject,v.scrollToEnd$=new s.Subject,v.allowSpaces=!0,v.separator=v.options.separator,v.icon="",v.iconAlign="right",v.search="",v.editable=!0,v.tagValidator=n.ALWAYS_TRUE_HANDLER,v.expandable=!0,v.inputHidden=!1,v.uniqueTags=v.options.uniqueTags,v.disabledItemHandler=n.ALWAYS_FALSE_HANDLER,v.searchChange=new e.EventEmitter,v.status$=v.mode$.pipe(d.map((function(t){return t?"default":v.tagStatus}))),v.open=!1,v}var p;return function(t,e){function i(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(u,t),p=u,Object.defineProperty(u.prototype,"pseudoFocusedSetter",{set:function(t){t||this.focused||this.scrollToStart$.next(),this.pseudoFocused=t},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"scrollerSetter",{set:function(t){this.initScrollerSubscrition(t)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"nativeFocusableElement",{get:function(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"focused",{get:function(){var t;return n.isNativeFocusedIn(this.elementRef.nativeElement)||!!(null===(t=this.hostedDropdown)||void 0===t?void 0:t.focused)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"size",{get:function(){return this.controller.size},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"labelOutside",{get:function(){var t=this.controller,e=t.size,i=t.labelOutside;return"s"===e||i},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasCleaner",{get:function(){return this.controller.cleaner&&this.hasValue&&this.interactive},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasNativeValue",{get:function(){return!!this.search},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasValue",{get:function(){return!!this.value.length||this.hasNativeValue},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasPlaceholder",{get:function(){return!this.labelOutside||!this.hasValue&&(!this.hasExampleText||this.inputHidden)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"placeholderRaised",{get:function(){return!this.labelOutside&&(this.computedFocused&&!this.readOnly||this.hasValue)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasExampleText",{get:function(){return!!this.controller.exampleText&&this.computedFocused&&!this.hasValue&&!this.readOnly},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasTooltip",{get:function(){return!!this.hintController.content&&!this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"iconAlignLeft",{get:function(){return!!this.icon&&"left"===this.iconAlign},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"iconAlignRight",{get:function(){return!!this.icon&&"right"===this.iconAlign},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasRightIcons",{get:function(){return this.hasCleaner||this.hasTooltip||this.iconAlignRight},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"status",{get:function(){return this.modeDirective&&this.modeDirective.mode?"default":this.tagStatus},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"canOpen",{get:function(){return this.interactive&&!!this.datalist},enumerable:!0,configurable:!0}),u.prototype.getLeftContent=function(t){return!this.tagValidator(t)&&this.errorIconTemplate?this.errorIconTemplate:""},u.prototype.onCleanerClick=function(){var t;this.updateSearch(""),this.clear(),this.focusInput(),null===(t=this.parentHostedDropdown)||void 0===t||t.updateOpen(!0)},u.prototype.onActiveZone=function(t){this.open=!1,this.addTag(),this.updateFocused(t),this.computedFocused||this.scrollToStart$.next()},u.prototype.onMouseDown=function(t){var e=n.getActualTarget(t);!this.focusableElement||e===this.focusableElement.nativeElement||!(t.target instanceof Element)||this.cleanerSvg&&this.cleanerSvg.nativeElement.contains(t.target)||this.tagsContainer&&e!==this.tagsContainer.nativeElement&&this.tagsContainer.nativeElement.contains(e)||(t.preventDefault(),this.focusInput())},u.prototype.onFieldKeyDownBackspace=function(t){this.labelOutside||this.hasNativeValue||!this.value.length?this.onFieldKeyDownArrowLeft(t):this.deleteLastEnabledItem()},u.prototype.onFieldKeyDownArrowLeft=function(t){this.labelOutside&&!this.hasNativeValue&&this.value.length&&(t.preventDefault(),n.setNativeFocused(this.tags.last.nativeElement))},u.prototype.onFieldKeyDownEnter=function(){this.addTag(),this.scrollToEnd$.next()},u.prototype.onTagKeyDownArrowLeft=function(t){t>0&&this.onScrollKeyDown(t,-1)},u.prototype.onTagKeyDownArrowRight=function(t){t===this.value.length-1?this.focusInput():this.onScrollKeyDown(t,1)},u.prototype.onTagEdited=function(t,e){var i=this;this.focusInput(),this.updateValue(this.value.map((function(n,o){return o!==e?n:t.split(i.separator).map((function(t){return t.trim()})).filter(Boolean)})).reduce((function(t,e){return t.concat(e)}),[]))},u.prototype.handleOption=function(t){this.focusInput(),this.updateSearch(""),this.updateValue(this.value.concat(t)),this.open=!1,this.scrollToEnd$.next()},u.prototype.onInput=function(t){var e=this,i=this.allowSpaces?t.split(this.separator):t.split(r.ALLOWED_SPACE_REGEXP),n=i.map((function(t){return t.trim()})).filter((function(t,e,i){var n=i.length;return t.length>0&&e!==n-1})).filter((function(t){return!e.disabledItemHandler(t)}));i.length>1?(this.updateSearch(i[i.length-1].trim()),this.updateValue(f(this.value,n))):this.updateSearch(t),this.open=this.hasNativeValue},u.prototype.onHoveredChange=function(t){this.updateHovered(t)},u.prototype.setDisabledState=function(){t.prototype.setDisabledState.call(this),this.open=!1},u.prototype.updateValue=function(e){var i=this,n=new Set;t.prototype.updateValue.call(this,e.reverse().filter((function(t){return!i.uniqueTags||!!t&&!n.has(t)&&n.add(t)})).reverse())},u.prototype.onScrollKeyDown=function(t,e){var i=this.tags.find((function(i,n){return n===t+e}));i&&this.scrollBar&&(n.setNativeFocused(i.nativeElement),e*this.scrollBar.nativeElement.clientWidth-e*i.nativeElement.offsetLeft-i.nativeElement.clientWidth<0&&(this.scrollBar.nativeElement.scrollLeft+=e*i.nativeElement.clientWidth))},u.prototype.initScrollerSubscrition=function(t){var e=this;if(t&&t.browserScrollRef){var i=t.browserScrollRef.nativeElement,o=n.typedFromEvent(i,"wheel",{passive:!1}).pipe(d.filter((function(t){return 0===t.deltaX&&e.shouldScroll(i)})),n.preventDefault(),d.map((function(t){var e=t.deltaY;return Math.max(i.scrollLeft+3*e,0)}))),r=this.scrollToStart$.pipe(d.mapTo(0)),a=this.scrollToEnd$.pipe(d.map((function(){return i.scrollWidth})));s.merge(o,r,a).pipe(d.switchMap((function(t){return e.tuiScrollService.scroll$(i,0,t)})),d.takeUntil(this.destroy$)).subscribe()}},u.prototype.updateSearch=function(t){this.focusableElement&&(this.focusableElement.nativeElement.value=t),this.search=t,this.searchChange.emit(t)},u.prototype.shouldScroll=function(t){return t.scrollWidth>t.offsetWidth},u.prototype.addTag=function(){var t=this.search.trim();t&&!this.disabledItemHandler(t)&&(this.updateSearch(""),this.updateValue(this.value.concat(t)))},u.prototype.deleteLastEnabledItem=function(){for(var t=this.value.length-1;t>=0;t--)if(!this.disabledItemHandler(this.value[t])){this.updateValue(f(this.value.slice(0,t),this.value.slice(t+1,this.value.length)));break}},u.prototype.focusInput=function(t){void 0===t&&(t=!1),this.nativeFocusableElement&&n.setNativeFocused(this.nativeFocusableElement,!0,t)},u.ctorParameters=function(){return[{type:i.NgControl,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[i.NgControl]}]},{type:e.ChangeDetectorRef,decorators:[{type:e.Inject,args:[e.ChangeDetectorRef]}]},{type:n.TuiScrollService,decorators:[{type:e.Inject,args:[n.TuiScrollService]}]},{type:e.ElementRef,decorators:[{type:e.Inject,args:[e.ElementRef]}]},{type:String,decorators:[{type:e.Inject,args:[o.TUI_TEXTFIELD_APPEARANCE]}]},{type:o.TuiModeDirective,decorators:[{type:e.Optional},{type:e.Inject,args:[o.TuiModeDirective]}]},{type:s.Observable,decorators:[{type:e.Inject,args:[o.TUI_MODE]}]},{type:void 0,decorators:[{type:e.Inject,args:[l.TUI_TAG_STATUS]}]},{type:o.TuiHintControllerDirective,decorators:[{type:e.Inject,args:[o.TUI_HINT_WATCHED_CONTROLLER]}]},{type:o.TuiTextfieldController,decorators:[{type:e.Inject,args:[o.TUI_TEXTFIELD_WATCHED_CONTROLLER]}]},{type:void 0,decorators:[{type:e.Inject,args:[b]}]},{type:o.TuiHostedDropdownComponent,decorators:[{type:e.Optional},{type:e.Inject,args:[o.TuiHostedDropdownComponent]}]}]},h([e.ViewChild(o.TuiHostedDropdownComponent)],u.prototype,"hostedDropdown",void 0),h([e.ViewChild("focusableElement")],u.prototype,"focusableElement",void 0),h([e.ViewChild("tagsContainer")],u.prototype,"tagsContainer",void 0),h([e.ViewChildren("tag",{read:e.ElementRef})],u.prototype,"tags",void 0),h([e.ViewChild("cleaner",{read:e.ElementRef})],u.prototype,"cleanerSvg",void 0),h([e.ViewChild(o.TuiScrollbarComponent,{read:e.ElementRef})],u.prototype,"scrollBar",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"allowSpaces",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"separator",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"icon",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"iconAlign",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"search",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"editable",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"tagValidator",void 0),h([e.Input(),e.HostBinding("class._expandable"),n.tuiDefaultProp()],u.prototype,"expandable",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"inputHidden",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"uniqueTags",void 0),h([e.Input(),n.tuiDefaultProp()],u.prototype,"disabledItemHandler",void 0),h([e.Input("pseudoFocused")],u.prototype,"pseudoFocusedSetter",null),h([e.Output()],u.prototype,"searchChange",void 0),h([e.ContentChild(o.TuiDataListDirective,{read:e.TemplateRef})],u.prototype,"datalist",void 0),h([e.ViewChild("errorIcon")],u.prototype,"errorIconTemplate",void 0),h([e.ViewChild(o.TuiScrollbarComponent)],u.prototype,"scrollerSetter",null),h([e.HostBinding("attr.data-size")],u.prototype,"size",null),h([e.HostBinding("class._label-outside")],u.prototype,"labelOutside",null),u=p=h([e.Component({selector:"tui-input-tag",changeDetection:e.ChangeDetectionStrategy.OnPush,template:'<tui-hosted-dropdown\n class="t-hosted"\n [canOpen]="canOpen"\n [content]="datalist || \'\'"\n [(open)]="open"\n (tuiActiveZoneChange)="onActiveZone($event)"\n>\n <tui-wrapper\n [appearance]="appearance"\n [readOnly]="readOnly"\n [focused]="computedFocused"\n [hovered]="computedHovered"\n [disabled]="computedDisabled"\n [invalid]="computedInvalid"\n (tuiHoveredChange)="onHoveredChange($event)"\n (mousedown)="onMouseDown($event)"\n >\n <div class="t-content">\n <div *ngIf="iconAlignLeft" class="t-icons t-icons_left">\n <tui-svg class="t-icon" [src]="icon"></tui-svg>\n </div>\n <div class="t-wrapper">\n <div class="t-absolute-wrapper">\n <div\n *ngIf="hasPlaceholder"\n automation-id="tui-input-tag__placeholder"\n class="t-placeholder"\n [class.t-placeholder_raised]="placeholderRaised"\n >\n <ng-content></ng-content>\n </div>\n </div>\n <tui-scrollbar\n *ngIf="!expandable; else items"\n class="t-scrollbar"\n [hidden]="true"\n >\n <ng-container *ngTemplateOutlet="items"></ng-container>\n </tui-scrollbar>\n <ng-template #items>\n <div #tagsContainer class="t-tags">\n <ng-container *ngIf="labelOutside; else text">\n <tui-tag\n *ngFor="let item of value; index as index"\n #tag\n automation-id="tui-input-tag__tag"\n class="t-tag"\n [status]="status$ | async"\n [leftContent]="getLeftContent(item)"\n [allowSpaces]="allowSpaces"\n [tuiFocusable]="false"\n [disabled]="computedDisabled || disabledItemHandler(item)"\n [editable]="editable && !readOnly"\n [hoverable]="!readOnly"\n [removable]="!readOnly"\n [separator]="separator"\n [maxLength]="controller.maxLength"\n [size]="controller.size"\n [value]="item.toString()"\n (edited)="onTagEdited($event, index)"\n (keydown.arrowLeft.prevent)="onTagKeyDownArrowLeft(index)"\n (keydown.arrowRight.prevent)="onTagKeyDownArrowRight(index)"\n ></tui-tag>\n </ng-container>\n <ng-template #text>\n <span\n *ngFor="let item of value"\n class="t-text"\n [class.t-text_disabled]="disabledItemHandler(item)"\n [class.t-text_error]="!tagValidator(item)"\n [innerText]="item"\n ></span>\n </ng-template>\n <div\n class="t-input-wrapper"\n [class.t-input-wrapper_collapsed]="computedDisabled || readOnly || inputHidden"\n >\n <div class="t-ghost">{{ search }}</div>\n <input\n #focusableElement\n type="text"\n automation-id="tui-input-tag__native"\n class="t-native"\n [placeholder]="controller.exampleText"\n [class.t-native_hidden]="inputHidden"\n [attr.maxLength]="controller.maxLength"\n [id]="id"\n [disabled]="computedDisabled"\n [readOnly]="readOnly || inputHidden"\n [tuiFocusable]="computedFocusable"\n [ngModel]="search"\n (ngModelChange)="onInput($event)"\n (keydown.arrowLeft)="onFieldKeyDownArrowLeft($event)"\n (keydown.backspace)="onFieldKeyDownBackspace($event)"\n (keydown.enter.prevent)="onFieldKeyDownEnter()"\n />\n </div>\n </div>\n </ng-template>\n </div>\n <div *ngIf="hasRightIcons" class="t-icons t-icons_right">\n <tui-svg\n *ngIf="hasCleaner"\n #cleaner\n automation-id="tui-input-tag__cleaner"\n src="tuiIconCloseLarge"\n class="t-cleaner"\n (click.stop)="onCleanerClick()"\n ></tui-svg>\n <tui-tooltip\n *ngIf="hasTooltip"\n automation-id="tui-input-tag__tooltip"\n describeId="placeholer_until_accesibility_is_added"\n class="t-tooltip"\n [direction]="hintController.direction"\n [mode]="hintController.mode"\n [content]="hintController.content"\n [showDelay]="hintController.showDelay"\n [hideDelay]="hintController.hideDelay"\n ></tui-tooltip>\n <tui-svg\n *ngIf="iconAlignRight"\n class="t-icon"\n [src]="icon"\n ></tui-svg>\n </div>\n </div>\n <ng-template #errorIcon>\n <tui-svg src="tuiIconAttention" class="t-error-icon"></tui-svg>\n </ng-template>\n </tui-wrapper>\n</tui-hosted-dropdown>\n',providers:[{provide:n.TUI_FOCUSABLE_ITEM_ACCESSOR,useExisting:e.forwardRef((function(){return p}))},{provide:o.TUI_DATA_LIST_HOST,useExisting:e.forwardRef((function(){return p}))},a.FIXED_DROPDOWN_CONTROLLER_PROVIDER,o.TEXTFIELD_CONTROLLER_PROVIDER,o.HINT_CONTROLLER_PROVIDER,o.MODE_PROVIDER],styles:[":host{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;border-radius:var(--tui-radius-m);text-align:left}:host[data-size='s']{height:var(--tui-height-s);min-height:var(--tui-height-s);max-height:var(--tui-height-s)}:host[data-size='m']{height:var(--tui-height-m);min-height:var(--tui-height-m);max-height:var(--tui-height-m)}:host[data-size='l']{height:var(--tui-height-l);min-height:var(--tui-height-l);max-height:var(--tui-height-l);font:var(--tui-font-text-m);line-height:1.25rem}.t-input{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);border:solid transparent;border-width:0 var(--border-end,0) 0 var(--border-start,0);border-inline-start-width:var(--border-start,0);border-inline-end-width:var(--border-end,0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}.t-input:-webkit-autofill,.t-input:-webkit-autofill:focus,.t-input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill,.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:focus,.t-input :host-context(tui-primitive-textfield[data-mode=onDark]):-webkit-autofill:hover,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:focus,.t-input :host-context(tui-text-area[data-mode=onDark]):-webkit-autofill:hover,:host[data-mode=onDark] .t-input:-webkit-autofill,:host[data-mode=onDark] .t-input:-webkit-autofill:focus,:host[data-mode=onDark] .t-input:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill-night) inset!important}.t-input :host-context(tui-primitive-textfield[data-size='s']):not(tui-primitive-textfield),.t-input :host-context(tui-text-area[data-size='s']):not(tui-text-area),:host[data-size='s'] .t-input{padding:0 var(--tui-padding-s)}.t-input :host-context(tui-primitive-textfield[data-size='l']):not(tui-primitive-textfield),.t-input :host-context(tui-text-area[data-size='l']):not(tui-text-area),:host[data-size='l'] .t-input{padding:0 var(--tui-padding-l)}.t-input :host-context(tui-primitive-textfield._disabled),.t-input :host-context(tui-text-area._disabled),:host._disabled .t-input{pointer-events:none}.t-input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='l']:not(._label-outside) .t-input{padding-top:1.25rem}.t-input :host-context(tui-primitive-textfield[data-size='l']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='l']:not(._label-outside) .t-input:-webkit-autofill+.content .placeholder{font-size:.8156rem;transform:translateY(-.625rem)}.t-input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield),:host[data-size='m']:not(._label-outside) .t-input{padding-top:1.125rem}.t-input :host-context(tui-primitive-textfield[data-size='m']:not(._label-outside)):not(tui-primitive-textfield):-webkit-autofill+.content .placeholder,:host[data-size='m']:not(._label-outside) .t-input:-webkit-autofill+.content .placeholder{font-size:.69rem;transform:translateY(-.5rem)}.t-input :host-context(tui-primitive-textfield._hidden),:host._hidden input.t-input{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content{display:flex;height:100%;width:100%;padding:0 var(--tui-padding-m);box-sizing:border-box;align-items:center;overflow:hidden}:host[data-size='s'] .t-content{padding:0 var(--tui-padding-s)}:host[data-size='l'] .t-content{padding:0 var(--tui-padding-l)}.t-content:after{content:'';margin-right:-.25rem}:host[data-size='m'] .t-content:after{display:none}.t-wrapper{flex:1;min-width:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem;-webkit-padding-start:0;padding-inline-start:0}.t-placeholder{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none}.t-placeholder_raised{transform:translateY(-.625rem)}:host[data-size='m'] .t-placeholder_raised{font:var(--tui-font-text-xs);transform:translateY(-.5rem);letter-spacing:.025rem}:host._invalid:not(._focused) .t-placeholder_raised,:host._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill)}:host[data-mode=onDark]._invalid:not(._focused) .t-placeholder_raised,:host[data-mode=onDark]._invalid:not(._focused):hover .t-placeholder_raised{color:var(--tui-error-fill-night)}:host._focused .t-placeholder,:host[data-size='l']._focused._label-outside .t-placeholder,:host[data-size='m']._focused._label-outside .t-placeholder{color:var(--tui-text-03)}:host[data-size='l'] .t-placeholder{font-size:.9375rem}:host[data-size='l'] .t-placeholder_raised{font-size:.8156rem}:host[data-size='l']._focused:not(._label-outside) .t-placeholder,:host[data-size='m']._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01)}:host[data-mode=onDark] .t-placeholder{color:var(--tui-text-02-night)}:host[data-size='l'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused:not(._label-outside) .t-placeholder{color:var(--tui-text-01-night)}:host[data-mode=onDark]._focused .t-placeholder,:host[data-size='l'][data-mode=onDark]._focused._label-outside .t-placeholder,:host[data-size='m'][data-mode=onDark]._focused._label-outside .t-placeholder{color:var(--tui-text-02-night)}@supports (-webkit-hyphens:none){.t-placeholder{transition-property:transform,color,letter-spacing}}.t-cleaner{transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}.t-cleaner:hover{color:var(--tui-text-02)}:host._disabled .t-cleaner,:host._readonly .t-cleaner{pointer-events:none}:host[data-mode=onDark] .t-cleaner{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-cleaner:hover{color:var(--tui-text-01-night)}.t-icon{display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03)}:host[data-mode=onDark] .t-icon{color:var(--tui-text-03-night)}.t-icon_left{margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host[data-size='s'] .t-icon_left{margin-right:.25rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem}:host{cursor:text}:host._expandable{height:auto;max-height:none}:host._disabled{pointer-events:none}:host._readonly{cursor:default}.t-hosted{display:block;border-radius:inherit}.t-scrollbar{margin:0 -.25rem;padding:0 .25rem}.t-tags{display:flex;align-items:center;box-sizing:border-box}:host._expandable .t-tags{flex-wrap:wrap;white-space:normal}:host._readonly .t-tags{pointer-events:none}:host[data-size='s'] .t-tags{min-height:var(--tui-height-s);padding:.25rem .25rem .25rem 0}:host[data-size='m'] .t-tags{min-height:var(--tui-height-m);padding:.5rem .25rem .5rem 0}:host[data-size='l'] .t-tags{min-height:var(--tui-height-l);padding:.625rem .25rem .625rem 0}:host[data-size='m']:not(._label-outside) .t-tags{padding:1.1875rem 1rem 0 0}:host[data-size='l']:not(._label-outside) .t-tags{padding:1.6875rem 1rem .5625rem 0}.t-tags :host[data-size]{-webkit-padding-start:0;padding-inline-start:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem}:host[data-size]:not(._label-outside) .t-tags{-webkit-padding-end:1rem;padding-inline-end:1rem}.t-content{align-items:flex-start}.t-icons{display:flex;align-items:center;padding:0 0 0 .75rem;-webkit-padding-start:.75rem;padding-inline-start:.75rem;-webkit-padding-end:0;padding-inline-end:0}.t-icons_left{padding:0;margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}:host._expandable .t-icons_right{margin:0 0 0 -.625rem;-webkit-margin-start:-.625rem;margin-inline-start:-.625rem;-webkit-margin-end:0;margin-inline-end:0}:host[data-size='s'] .t-icons{height:var(--tui-height-s)}:host[data-size='m'] .t-icons{height:var(--tui-height-m)}:host[data-size='l'] .t-icons{height:var(--tui-height-l)}.t-absolute-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}:host[data-size='m'] .t-absolute-wrapper{height:var(--tui-height-m)}:host[data-size='l'] .t-absolute-wrapper{height:var(--tui-height-l)}.t-wrapper{position:relative;padding:0}.t-tag{margin:.125rem .5rem .125rem -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem;max-width:100%;flex-shrink:0}.t-text:after{content:',\\00a0'}.t-text_disabled{color:var(--tui-text-03)}.t-text_error{color:var(--tui-negative)}:host:not(._expandable) .t-text{white-space:nowrap}:host:not(._focused) .t-text:last-of-type:after{content:''}.t-input-wrapper{position:relative;flex:1;max-width:100%}.t-input-wrapper_collapsed{flex:0;margin:0 0 0 -.5rem;-webkit-margin-start:-.5rem;margin-inline-start:-.5rem;-webkit-margin-end:0;margin-inline-end:0}:host[data-size='s'] .t-input-wrapper{min-height:1.5rem}:host[data-size='m'] .t-input-wrapper{min-height:calc(var(--tui-height-xs) + 2 * .125rem)}:host[data-size='l'] .t-input-wrapper{min-height:calc(var(--tui-height-s) + 2 * .125rem)}:host:not(._label-outside) .t-input-wrapper{min-height:1.25rem}.t-ghost{visibility:hidden;white-space:pre;text-overflow:clip;min-width:.125rem}:host:not(._expandable) .t-ghost{min-width:2rem}.t-native{border:0;border-radius:inherit;background:0 0;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;padding:0;cursor:inherit}.t-native:-webkit-autofill,.t-native:-webkit-autofill:focus,.t-native:-webkit-autofill:hover{border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 1000px var(--tui-autofill) inset!important}.t-native_hidden{opacity:0;text-indent:-10em}.t-native::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}.t-native::placeholder{color:var(--tui-text-03);opacity:0}:host[data-mode=onDark] .t-native::-ms-input-placeholder{color:var(--tui-text-03-night)}:host[data-mode=onDark] .t-native::placeholder{color:var(--tui-text-03-night)}:host._focused .t-native:not(:read-only)::-ms-input-placeholder{opacity:1}:host._focused .t-native:not(:-moz-read-only)::placeholder{opacity:1}:host._focused .t-native:not(:read-only)::placeholder{opacity:1}.t-error-icon{display:block;color:var(--tui-error-fill);width:1rem;height:1rem}"]}),g(0,e.Optional()),g(0,e.Self()),g(0,e.Inject(i.NgControl)),g(1,e.Inject(e.ChangeDetectorRef)),g(2,e.Inject(n.TuiScrollService)),g(3,e.Inject(e.ElementRef)),g(4,e.Inject(o.TUI_TEXTFIELD_APPEARANCE)),g(5,e.Optional()),g(5,e.Inject(o.TuiModeDirective)),g(6,e.Inject(o.TUI_MODE)),g(7,e.Inject(l.TUI_TAG_STATUS)),g(8,e.Inject(o.TUI_HINT_WATCHED_CONTROLLER)),g(9,e.Inject(o.TUI_TEXTFIELD_WATCHED_CONTROLLER)),g(10,e.Inject(b)),g(11,e.Optional()),g(11,e.Inject(o.TuiHostedDropdownComponent))],u)}(n.AbstractTuiMultipleControl),w=function(){function t(){}return t=h([e.NgModule({imports:[u.CommonModule,i.FormsModule,p.PolymorpheusModule,n.TuiFocusableModule,n.TuiHoveredModule,n.TuiActiveZoneModule,o.TuiSvgModule,o.TuiScrollbarModule,o.TuiTooltipModule,o.TuiHostedDropdownModule,r.TuiTagModule,o.TuiWrapperModule],providers:[n.TuiScrollService],declarations:[y],exports:[y]})],t)}();t.TUI_INPUT_TAG_DEFAULT_OPTIONS=v,t.TUI_INPUT_TAG_OPTIONS=b,t.TuiInputTagComponent=y,t.TuiInputTagModule=w,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=taiga-ui-kit-components-input-tag.umd.min.js.map
|