@taiga-ui/legacy 4.52.0-canary.34c26c6 → 4.52.0-canary.36b5af3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/color-selector/color-selector.module.d.ts +11 -12
- package/components/index.d.ts +0 -7
- package/components/input-phone/input-phone.component.d.ts +3 -0
- package/components/input-phone/input-phone.directive.d.ts +3 -0
- package/components/input-phone/input-phone.module.d.ts +3 -0
- package/components/input-phone/input-phone.options.d.ts +10 -1
- package/fesm2022/taiga-ui-legacy-classes.mjs +21 -21
- package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs +5 -5
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +68 -72
- package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +19 -20
- package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-color.mjs +7 -7
- package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +22 -22
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +24 -24
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-date.mjs +26 -26
- package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +10 -10
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs +19 -19
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +6 -6
- package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +26 -11
- package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs +18 -18
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +15 -16
- package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +19 -19
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-time.mjs +38 -42
- package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-year.mjs +10 -10
- package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input.mjs +10 -10
- package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +7 -7
- package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +45 -45
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +26 -26
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs +8 -8
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-select.mjs +31 -31
- package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-svg.mjs +7 -7
- package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-tag.mjs +13 -14
- package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs +21 -21
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +7 -7
- package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components.mjs +0 -7
- package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +3 -3
- package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +34 -34
- package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +3 -3
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +7 -7
- package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +7 -7
- package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +3 -3
- package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +3 -3
- package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +3 -3
- package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-services.mjs +3 -3
- package/fesm2022/taiga-ui-legacy-services.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -1
- package/package.json +28 -56
- package/styles/mixins/textfield.less +3 -1
- package/utils/icons-path-factory.d.ts +1 -1
- package/components/input-copy/index.d.ts +0 -4
- package/components/input-copy/input-copy.component.d.ts +0 -33
- package/components/input-copy/input-copy.directive.d.ts +0 -11
- package/components/input-copy/input-copy.module.d.ts +0 -18
- package/components/input-copy/input-copy.options.d.ts +0 -26
- package/components/input-date-multi/index.d.ts +0 -2
- package/components/input-date-multi/input-date-multi.component.d.ts +0 -66
- package/components/input-date-multi/input-date-multi.module.d.ts +0 -20
- package/components/input-month/index.d.ts +0 -3
- package/components/input-month/input-month.component.d.ts +0 -44
- package/components/input-month/input-month.directive.d.ts +0 -19
- package/components/input-month/input-month.module.d.ts +0 -19
- package/components/input-password/index.d.ts +0 -4
- package/components/input-password/input-password.component.d.ts +0 -33
- package/components/input-password/input-password.directive.d.ts +0 -15
- package/components/input-password/input-password.module.d.ts +0 -19
- package/components/input-password/input-password.options.d.ts +0 -25
- package/components/island/index.d.ts +0 -1
- package/components/island/island.directive.d.ts +0 -20
- package/components/sheet/components/sheet/sheet.component.d.ts +0 -31
- package/components/sheet/components/sheet/sheet.providers.d.ts +0 -2
- package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +0 -11
- package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +0 -14
- package/components/sheet/components/sheets-host/sheets-host.component.d.ts +0 -15
- package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +0 -14
- package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +0 -9
- package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +0 -14
- package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +0 -17
- package/components/sheet/index.d.ts +0 -14
- package/components/sheet/sheet-options.d.ts +0 -27
- package/components/sheet/sheet-tokens.d.ts +0 -18
- package/components/sheet/sheet.d.ts +0 -21
- package/components/sheet/sheet.directive.d.ts +0 -17
- package/components/sheet/sheet.module.d.ts +0 -24
- package/components/sheet/sheet.service.d.ts +0 -17
- package/components/table-bar/index.d.ts +0 -4
- package/components/table-bar/table-bar.component.d.ts +0 -17
- package/components/table-bar/table-bar.directive.d.ts +0 -11
- package/components/table-bar/table-bar.options.d.ts +0 -31
- package/components/table-bar/table-bars-host.component.d.ts +0 -10
- package/components/table-bar/table-bars.service.d.ts +0 -11
- package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +0 -197
- package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +0 -272
- package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-month.mjs +0 -231
- package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-password.mjs +0 -187
- package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-island.mjs +0 -68
- package/fesm2022/taiga-ui-legacy-components-island.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-sheet.mjs +0 -577
- package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +0 -145
- package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-legacy-components-input-date-multi.mjs","sources":["../../../projects/legacy/components/input-date-multi/input-date-multi.component.ts","../../../projects/legacy/components/input-date-multi/input-date-multi.template.html","../../../projects/legacy/components/input-date-multi/input-date-multi.module.ts","../../../projects/legacy/components/input-date-multi/taiga-ui-legacy-components-input-date-multi.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n ViewChild,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {type MaskitoOptions} from '@maskito/core';\nimport {maskitoDateOptionsGenerator} from '@maskito/kit';\nimport {tuiAsControl, type TuiValueTransformer} from '@taiga-ui/cdk/classes';\nimport {TUI_FALSE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {tuiDateClamp, TuiDay, TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {type TuiBooleanHandler, type TuiMapper} from '@taiga-ui/cdk/types';\nimport {changeDateSeparator, tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiMarkerHandler} from '@taiga-ui/core/components/calendar';\nimport {TUI_DATE_FORMAT, TUI_DEFAULT_DATE_FORMAT} from '@taiga-ui/core/tokens';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {\n TUI_DATE_TEXTS,\n TUI_DATE_VALUE_TRANSFORMER,\n TUI_DONE_WORD,\n TUI_INPUT_DATE_OPTIONS,\n TUI_MOBILE_CALENDAR,\n TUI_MOBILE_CALENDAR_PROVIDER,\n tuiDateStreamWithTransformer,\n type TuiInputDateOptions,\n} from '@taiga-ui/kit/tokens';\nimport {tuiToggleDay} from '@taiga-ui/kit/utils';\nimport {\n AbstractTuiMultipleControl,\n tuiAsControl as tuiAsLegacyControl,\n TuiStringifiableItem,\n} from '@taiga-ui/legacy/classes';\nimport {TuiInputTagComponent} from '@taiga-ui/legacy/components/input-tag';\nimport {TuiPrimitiveTextfieldComponent} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TUI_TEXTFIELD_SIZE} from '@taiga-ui/legacy/directives';\nimport {\n tuiAsFocusableItemAccessor,\n type TuiFocusableElementAccessor,\n} from '@taiga-ui/legacy/tokens';\nimport {map, type Observable} from 'rxjs';\n\n@Component({\n standalone: false,\n selector: 'tui-input-date[multiple]',\n templateUrl: './input-date-multi.template.html',\n styleUrls: ['../input-date/input-date.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputDateMultiComponent),\n tuiAsControl(TuiInputDateMultiComponent as any),\n tuiAsLegacyControl(TuiInputDateMultiComponent),\n tuiDateStreamWithTransformer(TUI_DATE_VALUE_TRANSFORMER),\n TUI_MOBILE_CALENDAR_PROVIDER,\n ],\n host: {\n '[class._editable]': 'editable',\n '[attr.data-size]': 'size',\n '(click)': 'onClick()',\n },\n})\nexport class TuiInputDateMultiComponent\n extends AbstractTuiMultipleControl<TuiDay>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n @ViewChild(TuiInputTagComponent)\n private readonly inputTag?: TuiInputTagComponent;\n\n private month: TuiMonth | null = null;\n private readonly mobileCalendar = inject(TUI_MOBILE_CALENDAR, {optional: true});\n private readonly options = inject(TUI_INPUT_DATE_OPTIONS);\n private readonly textfieldSize = inject(TUI_TEXTFIELD_SIZE);\n\n protected readonly dateTexts$ = inject(TUI_DATE_TEXTS);\n protected override readonly valueTransformer = inject<\n TuiValueTransformer<readonly TuiDay[]>\n >(TUI_DATE_VALUE_TRANSFORMER, {optional: true});\n\n protected open = false;\n\n protected dateFormat = TUI_DEFAULT_DATE_FORMAT;\n protected readonly isMobile = inject(TUI_IS_MOBILE);\n protected readonly doneWord$ = inject(TUI_DONE_WORD);\n protected readonly filler$: Observable<string> = this.dateTexts$.pipe(\n map((dateTexts) =>\n changeDateSeparator(\n dateTexts[this.dateFormat.mode],\n this.dateFormat.separator,\n ),\n ),\n );\n\n protected readonly dateFormat$ = inject(TUI_DATE_FORMAT)\n .pipe(tuiWatch(this.cdr), takeUntilDestroyed())\n .subscribe((format) => {\n this.dateFormat = format;\n });\n\n @Input()\n public min: TuiDay | null = this.options.min;\n\n @Input()\n public max: TuiDay | null = this.options.max;\n\n @Input()\n public disabledItemHandler: TuiBooleanHandler<TuiDay> = TUI_FALSE_HANDLER;\n\n @Input()\n public markerHandler: TuiMarkerHandler | null = null;\n\n @Input()\n public defaultActiveYearMonth = TuiMonth.currentLocal();\n\n @Input()\n public inputHidden = false;\n\n @Input()\n public editable = true;\n\n @Input()\n public search: string | null = '';\n\n @Input()\n public placeholder = '';\n\n @Input()\n public rows = 1;\n\n public readonly maskitoOptions: MaskitoOptions = maskitoDateOptionsGenerator({\n mode: 'dd/mm/yyyy',\n separator: '.',\n min: this.min?.toLocalNativeDate(),\n max: this.max?.toLocalNativeDate(),\n });\n\n public get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield?.nativeFocusableElement || null;\n }\n\n public get focused(): boolean {\n return !!this.textfield?.focused;\n }\n\n @Input()\n public tagValidator: TuiBooleanHandler<string> = (tag: TuiDay | string) => {\n const {year, month, day} = tuiIsString(tag)\n ? TuiDay.parseRawDateString(tag)\n : tag;\n const date = new TuiDay(year, month, day);\n\n return (\n (TuiDay.isValidDay(year, month, day) &&\n this.min?.daySameOrBefore(date) &&\n this.max?.daySameOrAfter(date)) ??\n false\n );\n };\n\n public override setDisabledState(): void {\n super.setDisabledState();\n this.open = false;\n }\n\n protected get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n protected get nativeDropdownMode(): boolean {\n return this.isMobile && !this.editable;\n }\n\n protected get computedMin(): TuiDay {\n return this.min ?? this.options.min;\n }\n\n protected get computedMax(): TuiDay {\n return this.max ?? this.options.max;\n }\n\n protected get computedMobile(): boolean {\n return this.isMobile && !!this.mobileCalendar;\n }\n\n protected get calendarIcon(): TuiInputDateOptions['icon'] {\n return this.options.icon;\n }\n\n protected get computedActiveYearMonth(): TuiMonth {\n return (\n this.month ||\n this.value[this.value.length - 1] ||\n tuiDateClamp(this.defaultActiveYearMonth, this.computedMin, this.computedMax)\n );\n }\n\n protected onClick(): void {\n if (!this.isMobile && this.interactive) {\n this.open = !this.open;\n }\n }\n\n protected onIconClick(): void {\n if (this.isMobile && this.interactive) {\n this.open = true;\n }\n }\n\n protected readonly disabledItemHandlerWrapper: TuiMapper<\n [TuiBooleanHandler<string> | TuiBooleanHandler<TuiDay>],\n TuiBooleanHandler<TuiStringifiableItem<any> | string>\n > = (handler) => (stringifiable) =>\n tuiIsString(stringifiable) || handler(stringifiable.item);\n\n protected readonly valueMapper: TuiMapper<\n [readonly TuiDay[]],\n ReadonlyArray<TuiStringifiableItem<TuiDay>>\n > = (value) =>\n value.map((item) => new TuiStringifiableItem(item, (item) => String(item)));\n\n protected onEnter(search: string): void {\n if (!this.tagValidator(search)) {\n return;\n }\n\n this.value = tuiToggleDay(this.value, TuiDay.normalizeParse(search));\n\n if (this.inputTag) {\n this.inputTag.search = '';\n }\n\n this.done();\n }\n\n protected onValueChange(value: ReadonlyArray<TuiStringifiableItem<TuiDay>>): void {\n this.control?.updateValueAndValidity({emitEvent: false});\n\n if (!value.length && !this.mobileCalendar) {\n this.onOpenChange(true);\n }\n\n this.value = value.map(({item}) => item);\n }\n\n protected onDayClick(value: TuiDay): void {\n this.value = tuiToggleDay(this.value, value);\n }\n\n protected done(): void {\n this.open = false;\n }\n\n protected onMonthChange(month: TuiMonth): void {\n this.month = month;\n }\n\n protected onOpenChange(open: boolean): void {\n this.open = open;\n }\n\n protected onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n}\n","<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"dropdown\"\n [tuiDropdownEnabled]=\"interactive\"\n [tuiDropdownOpen]=\"open && interactive\"\n (tuiDropdownOpenChange)=\"onOpenChange($event)\"\n>\n <tui-input-tag\n #inputTag\n class=\"t-input\"\n [disabled]=\"disabled\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerWrapper\"\n [editable]=\"editable\"\n [inputHidden]=\"inputHidden\"\n [maskito]=\"maskitoOptions\"\n [nativeId]=\"nativeId\"\n [ngModel]=\"value | tuiMapper: valueMapper\"\n [ngModelOptions]=\"{standalone: true}\"\n [placeholder]=\"placeholder\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n [removable]=\"!nativeDropdownMode\"\n [rows]=\"rows\"\n [tagValidator]=\"tagValidator | tuiMapper: disabledItemHandlerWrapper\"\n [tuiTextfieldFiller]=\"(filler$ | async) || ''\"\n [tuiTextfieldIcon]=\"calendarIcon && iconContent\"\n (keydown.enter)=\"onEnter(inputTag.search || '')\"\n (ngModelChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n </tui-input-tag>\n\n <ng-template #iconContent>\n <tui-icon\n *polymorpheusOutlet=\"calendarIcon as src; context: {$implicit: size}\"\n tuiAppearance=\"icon\"\n [class.t-icon_small]=\"size === 's'\"\n [class.t-icon]=\"!computedDisabled\"\n [icon]=\"src.toString()\"\n (click)=\"onIconClick()\"\n />\n </ng-template>\n\n <ng-template #dropdown>\n <tui-calendar\n [disabledItemHandler]=\"disabledItemHandler\"\n [markerHandler]=\"markerHandler\"\n [max]=\"computedMax\"\n [min]=\"computedMin\"\n [month]=\"computedActiveYearMonth\"\n [value]=\"value\"\n (dayClick)=\"onDayClick($event)\"\n (monthChange)=\"onMonthChange($event)\"\n (mousedown.zoneless.prevent)=\"(0)\"\n />\n <div\n class=\"t-button\"\n (mousedown.zoneless.prevent)=\"(0)\"\n >\n <button\n tuiLink\n type=\"button\"\n (click)=\"done()\"\n >\n {{ doneWord$ | async }}\n </button>\n </div>\n </ng-template>\n</div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {TuiMapperPipe} from '@taiga-ui/cdk/pipes/mapper';\nimport {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiLink} from '@taiga-ui/core/components/link';\nimport {TuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {TuiDropdown} from '@taiga-ui/core/directives/dropdown';\nimport {TuiInputTagModule} from '@taiga-ui/legacy/components/input-tag';\nimport {TuiPrimitiveTextfieldModule} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {\n TuiLegacyDropdownOpenMonitorDirective,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/legacy/directives';\nimport {PolymorpheusOutlet, PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\n\nimport {TuiInputDateMultiComponent} from './input-date-multi.component';\n\n@NgModule({\n imports: [\n CommonModule,\n MaskitoDirective,\n PolymorpheusOutlet,\n PolymorpheusTemplate,\n TuiCalendar,\n TuiLink,\n TuiInputTagModule,\n FormsModule,\n TuiMapperPipe,\n TuiTextfieldControllerModule,\n TuiPrimitiveTextfieldModule,\n TuiLegacyDropdownOpenMonitorDirective,\n TuiIcon,\n TuiAppearance,\n ...TuiDropdown,\n ],\n declarations: [TuiInputDateMultiComponent],\n exports: [TuiInputDateMultiComponent, ...TuiDropdown],\n})\nexport class TuiInputDateMultiModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["tuiAsLegacyControl","i6","i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEM,MAAO,0BACT,SAAQ,0BAAkC,CAAA;AApB9C,IAAA,WAAA,GAAA;;QA6BY,IAAA,CAAA,KAAK,GAAoB,IAAI;QACpB,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,mBAAmB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;AAC9D,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,sBAAsB,CAAC;AACxC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAExC,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,cAAc,CAAC;QAC1B,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAEnD,0BAA0B,EAAE,EAAC,QAAQ,EAAE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,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,gBAAgB;wBAChB,kBAAkB;wBAClB,oBAAoB;wBACpB,WAAW;wBACX,OAAO;wBACP,iBAAiB;wBACjB,WAAW;wBACX,aAAa;wBACb,4BAA4B;wBAC5B,2BAA2B;wBAC3B,qCAAqC;wBACrC,OAAO;wBACP,aAAa;AACb,wBAAA,GAAG,WAAW;AACjB,qBAAA;oBACD,YAAY,EAAE,CAAC,0BAA0B,CAAC;AAC1C,oBAAA,OAAO,EAAE,CAAC,0BAA0B,EAAE,GAAG,WAAW,CAAC;AACxD,iBAAA;;;ACxCD;;AAEG;;;;"}
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Input, ViewChild, ChangeDetectionStrategy, Component, Directive, NgModule } from '@angular/core';
|
|
3
|
-
import { TUI_FALSE_HANDLER } from '@taiga-ui/cdk/constants';
|
|
4
|
-
import { TuiDay, tuiDateClamp, TuiMonth } from '@taiga-ui/cdk/date-time';
|
|
5
|
-
import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
|
|
6
|
-
import { TuiMonthPipe } from '@taiga-ui/core/pipes/month';
|
|
7
|
-
import { TUI_INPUT_DATE_OPTIONS } from '@taiga-ui/kit/tokens';
|
|
8
|
-
import { AbstractTuiNullableControl, tuiAsControl, AbstractTuiTextfieldHost } from '@taiga-ui/legacy/classes';
|
|
9
|
-
import * as i3 from '@taiga-ui/legacy/components/primitive-textfield';
|
|
10
|
-
import { TuiPrimitiveTextfieldComponent, TuiTextfieldComponent, TuiPrimitiveTextfieldModule } from '@taiga-ui/legacy/components/primitive-textfield';
|
|
11
|
-
import * as i4 from '@taiga-ui/legacy/directives';
|
|
12
|
-
import { TUI_TEXTFIELD_SIZE, TuiTextfieldControllerModule, TuiLegacyDropdownOpenMonitorDirective } from '@taiga-ui/legacy/directives';
|
|
13
|
-
import { TUI_MONTH_FORMATTER, tuiAsFocusableItemAccessor, TUI_MONTH_FORMATTER_PROVIDER, tuiAsTextfieldHost } from '@taiga-ui/legacy/tokens';
|
|
14
|
-
import * as i1 from '@angular/common';
|
|
15
|
-
import { CommonModule } from '@angular/common';
|
|
16
|
-
import * as i2 from '@taiga-ui/kit/components/calendar-month';
|
|
17
|
-
import { TuiCalendarMonth } from '@taiga-ui/kit/components/calendar-month';
|
|
18
|
-
import * as i5 from '@angular/forms';
|
|
19
|
-
import { FormsModule } from '@angular/forms';
|
|
20
|
-
import * as i1$1 from '@taiga-ui/core/directives/dropdown';
|
|
21
|
-
import { TuiDropdown } from '@taiga-ui/core/directives/dropdown';
|
|
22
|
-
import * as i7 from '@taiga-ui/cdk/pipes/mapper';
|
|
23
|
-
import { TuiMapperPipe } from '@taiga-ui/cdk/pipes/mapper';
|
|
24
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
25
|
-
import { Subject, distinctUntilChanged, switchMap } from 'rxjs';
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* TODO(v5): delete it
|
|
29
|
-
* @deprecated use new version of {@link https://taiga-ui.dev/components/input-month TuiInputMonth} (from @taiga-ui/kit) instead
|
|
30
|
-
*/
|
|
31
|
-
class TuiInputMonthComponent extends AbstractTuiNullableControl {
|
|
32
|
-
constructor() {
|
|
33
|
-
super(...arguments);
|
|
34
|
-
this.isMobile = inject(TUI_IS_MOBILE);
|
|
35
|
-
this.options = inject(TUI_INPUT_DATE_OPTIONS);
|
|
36
|
-
this.textfieldSize = inject(TUI_TEXTFIELD_SIZE);
|
|
37
|
-
this.formatter = inject(TUI_MONTH_FORMATTER);
|
|
38
|
-
this.min = this.options.min;
|
|
39
|
-
this.max = this.options.max;
|
|
40
|
-
this.disabledItemHandler = TUI_FALSE_HANDLER;
|
|
41
|
-
this.defaultActiveYear = TuiDay.currentLocal();
|
|
42
|
-
this.open = false;
|
|
43
|
-
}
|
|
44
|
-
get nativeFocusableElement() {
|
|
45
|
-
return this.textfield?.nativeFocusableElement || null;
|
|
46
|
-
}
|
|
47
|
-
get focused() {
|
|
48
|
-
return !!this.textfield?.focused;
|
|
49
|
-
}
|
|
50
|
-
onValueChange(value) {
|
|
51
|
-
if (value) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
this.value = null;
|
|
55
|
-
this.onOpenChange(!this.nativePicker);
|
|
56
|
-
}
|
|
57
|
-
onMonthClick(month) {
|
|
58
|
-
this.value = month;
|
|
59
|
-
this.close();
|
|
60
|
-
}
|
|
61
|
-
setDisabledState() {
|
|
62
|
-
super.setDisabledState();
|
|
63
|
-
this.close();
|
|
64
|
-
}
|
|
65
|
-
get size() {
|
|
66
|
-
return this.textfieldSize.size;
|
|
67
|
-
}
|
|
68
|
-
get computedMin() {
|
|
69
|
-
return this.min ?? this.options.min;
|
|
70
|
-
}
|
|
71
|
-
get computedMax() {
|
|
72
|
-
return this.max ?? this.options.max;
|
|
73
|
-
}
|
|
74
|
-
get computedDefaultActiveYear() {
|
|
75
|
-
return (this.activeYear ||
|
|
76
|
-
this.value ||
|
|
77
|
-
tuiDateClamp(this.defaultActiveYear, this.computedMin, this.computedMax));
|
|
78
|
-
}
|
|
79
|
-
get calendarIcon() {
|
|
80
|
-
return this.options.icon;
|
|
81
|
-
}
|
|
82
|
-
get nativePicker() {
|
|
83
|
-
return this.isMobile && this.options.nativePicker;
|
|
84
|
-
}
|
|
85
|
-
get nativePickerMin() {
|
|
86
|
-
return this.computedMin.toJSON();
|
|
87
|
-
}
|
|
88
|
-
get nativePickerMax() {
|
|
89
|
-
return this.computedMax.toJSON();
|
|
90
|
-
}
|
|
91
|
-
get nativeValue() {
|
|
92
|
-
return this.value?.toJSON() || '';
|
|
93
|
-
}
|
|
94
|
-
onNativeChange(value) {
|
|
95
|
-
const [year = 0, month = 0] = value.split('-').map(Number);
|
|
96
|
-
this.value = value
|
|
97
|
-
? tuiDateClamp(new TuiMonth(year, month - 1), this.computedMin, this.computedMax)
|
|
98
|
-
: null;
|
|
99
|
-
}
|
|
100
|
-
onFocused(focused) {
|
|
101
|
-
this.updateFocused(focused);
|
|
102
|
-
}
|
|
103
|
-
onOpenChange(open) {
|
|
104
|
-
if (open && this.value) {
|
|
105
|
-
this.activeYear = this.value;
|
|
106
|
-
}
|
|
107
|
-
this.open = open;
|
|
108
|
-
}
|
|
109
|
-
close() {
|
|
110
|
-
this.open = false;
|
|
111
|
-
}
|
|
112
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputMonthComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
113
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputMonthComponent, isStandalone: false, selector: "tui-input-month", inputs: { min: "min", max: "max", disabledItemHandler: "disabledItemHandler", defaultActiveYear: "defaultActiveYear" }, host: { properties: { "attr.data-size": "size" } }, providers: [
|
|
114
|
-
tuiAsFocusableItemAccessor(TuiInputMonthComponent),
|
|
115
|
-
tuiAsControl(TuiInputMonthComponent),
|
|
116
|
-
TUI_MONTH_FORMATTER_PROVIDER,
|
|
117
|
-
TuiMonthPipe,
|
|
118
|
-
], viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"dropdown\"\n [tuiDropdownEnabled]=\"interactive && !nativePicker\"\n [tuiDropdownOpen]=\"open && interactive\"\n (tuiDropdownOpenChange)=\"onOpenChange($event)\"\n>\n <tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [editable]=\"false\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"calendarIcon\"\n [value]=\"(value | tuiMapper: formatter | async) || ''\"\n (focusedChange)=\"onFocused($event)\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n <input\n *ngIf=\"nativePicker\"\n type=\"month\"\n class=\"t-mobile\"\n [max]=\"nativePickerMax\"\n [min]=\"nativePickerMin\"\n [ngModel]=\"nativeValue\"\n [ngModelOptions]=\"{standalone: true}\"\n (click.stop.zoneless)=\"(0)\"\n (mousedown.stop.zoneless)=\"(0)\"\n (ngModelChange)=\"onNativeChange($event)\"\n />\n </tui-primitive-textfield>\n\n <ng-template #dropdown>\n <tui-calendar-month\n [disabledItemHandler]=\"disabledItemHandler\"\n [max]=\"computedMax\"\n [min]=\"computedMin\"\n [value]=\"value\"\n [year]=\"computedDefaultActiveYear\"\n (monthClick)=\"onMonthClick($event)\"\n (mousedown.prevent.zoneless)=\"(0)\"\n (yearChange)=\"activeYear = $event\"\n />\n </ng-template>\n</div>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-mobile{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;opacity:0;border:0}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.TuiCalendarMonth, selector: "tui-calendar-month", inputs: ["year", "disabledItemHandler", "minLength", "maxLength", "min", "max", "value"], outputs: ["monthClick", "hoveredItemChange", "yearChange"] }, { kind: "component", type: i3.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i3.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i4.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.TuiLegacyDropdownOpenMonitorDirective, selector: "[tuiDropdownOpenMonitor]" }, { kind: "directive", type: i1$1.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container):not(ng-template)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { kind: "directive", type: i1$1.TuiDropdownOpen, selector: "[tuiDropdown][tuiDropdownOpen],[tuiDropdown][tuiDropdownOpenChange]", inputs: ["tuiDropdownEnabled", "tuiDropdownOpen"], outputs: ["tuiDropdownOpenChange"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.TuiMapperPipe, name: "tuiMapper" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
119
|
-
}
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputMonthComponent, decorators: [{
|
|
121
|
-
type: Component,
|
|
122
|
-
args: [{ standalone: false, selector: 'tui-input-month', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
123
|
-
tuiAsFocusableItemAccessor(TuiInputMonthComponent),
|
|
124
|
-
tuiAsControl(TuiInputMonthComponent),
|
|
125
|
-
TUI_MONTH_FORMATTER_PROVIDER,
|
|
126
|
-
TuiMonthPipe,
|
|
127
|
-
], host: {
|
|
128
|
-
'[attr.data-size]': 'size',
|
|
129
|
-
}, template: "<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"dropdown\"\n [tuiDropdownEnabled]=\"interactive && !nativePicker\"\n [tuiDropdownOpen]=\"open && interactive\"\n (tuiDropdownOpenChange)=\"onOpenChange($event)\"\n>\n <tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [editable]=\"false\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"calendarIcon\"\n [value]=\"(value | tuiMapper: formatter | async) || ''\"\n (focusedChange)=\"onFocused($event)\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n <input\n *ngIf=\"nativePicker\"\n type=\"month\"\n class=\"t-mobile\"\n [max]=\"nativePickerMax\"\n [min]=\"nativePickerMin\"\n [ngModel]=\"nativeValue\"\n [ngModelOptions]=\"{standalone: true}\"\n (click.stop.zoneless)=\"(0)\"\n (mousedown.stop.zoneless)=\"(0)\"\n (ngModelChange)=\"onNativeChange($event)\"\n />\n </tui-primitive-textfield>\n\n <ng-template #dropdown>\n <tui-calendar-month\n [disabledItemHandler]=\"disabledItemHandler\"\n [max]=\"computedMax\"\n [min]=\"computedMin\"\n [value]=\"value\"\n [year]=\"computedDefaultActiveYear\"\n (monthClick)=\"onMonthClick($event)\"\n (mousedown.prevent.zoneless)=\"(0)\"\n (yearChange)=\"activeYear = $event\"\n />\n </ng-template>\n</div>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-mobile{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;opacity:0;border:0}\n"] }]
|
|
130
|
-
}], propDecorators: { textfield: [{
|
|
131
|
-
type: ViewChild,
|
|
132
|
-
args: [TuiPrimitiveTextfieldComponent]
|
|
133
|
-
}], min: [{
|
|
134
|
-
type: Input
|
|
135
|
-
}], max: [{
|
|
136
|
-
type: Input
|
|
137
|
-
}], disabledItemHandler: [{
|
|
138
|
-
type: Input
|
|
139
|
-
}], defaultActiveYear: [{
|
|
140
|
-
type: Input
|
|
141
|
-
}] } });
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* TODO(v5): delete it
|
|
145
|
-
* @deprecated use new version of {@link https://taiga-ui.dev/components/input-month TuiInputMonth} (from @taiga-ui/kit) instead
|
|
146
|
-
*/
|
|
147
|
-
class TuiInputMonthDirective extends AbstractTuiTextfieldHost {
|
|
148
|
-
constructor() {
|
|
149
|
-
super(...arguments);
|
|
150
|
-
this.value$ = new Subject();
|
|
151
|
-
this.localizedValue = '';
|
|
152
|
-
this.$ = this.value$
|
|
153
|
-
.pipe(distinctUntilChanged(), switchMap(inject(TUI_MONTH_FORMATTER)), takeUntilDestroyed())
|
|
154
|
-
.subscribe((localizedValue) => {
|
|
155
|
-
this.localizedValue = localizedValue;
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
get readOnly() {
|
|
159
|
-
return true;
|
|
160
|
-
}
|
|
161
|
-
get value() {
|
|
162
|
-
return this.localizedValue;
|
|
163
|
-
}
|
|
164
|
-
ngDoCheck() {
|
|
165
|
-
this.value$.next(this.host.value);
|
|
166
|
-
}
|
|
167
|
-
onValueChange(value) {
|
|
168
|
-
this.host.onValueChange(value);
|
|
169
|
-
}
|
|
170
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputMonthDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
171
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputMonthDirective, isStandalone: false, selector: "tui-input-month", providers: [tuiAsTextfieldHost(TuiInputMonthDirective)], usesInheritance: true, ngImport: i0 }); }
|
|
172
|
-
}
|
|
173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputMonthDirective, decorators: [{
|
|
174
|
-
type: Directive,
|
|
175
|
-
args: [{
|
|
176
|
-
standalone: false,
|
|
177
|
-
selector: 'tui-input-month',
|
|
178
|
-
providers: [tuiAsTextfieldHost(TuiInputMonthDirective)],
|
|
179
|
-
}]
|
|
180
|
-
}] });
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* TODO(v5): delete it
|
|
184
|
-
* @deprecated use new version of {@link https://taiga-ui.dev/components/input-month TuiInputMonth} (from @taiga-ui/kit) instead
|
|
185
|
-
*/
|
|
186
|
-
class TuiInputMonthModule {
|
|
187
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputMonthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
188
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.9", ngImport: i0, type: TuiInputMonthModule, declarations: [TuiInputMonthComponent, TuiInputMonthDirective], imports: [CommonModule,
|
|
189
|
-
TuiCalendarMonth,
|
|
190
|
-
TuiPrimitiveTextfieldModule,
|
|
191
|
-
TuiMapperPipe,
|
|
192
|
-
TuiTextfieldControllerModule,
|
|
193
|
-
FormsModule,
|
|
194
|
-
TuiLegacyDropdownOpenMonitorDirective, i1$1.TuiDropdownOptionsDirective, i1$1.TuiDropdownDriverDirective, i1$1.TuiDropdownDirective, i1$1.TuiDropdownComponent, i1$1.TuiDropdownOpen, i1$1.TuiDropdownOpenLegacy, i1$1.TuiDropdownPortal, i1$1.TuiDropdownManual, i1$1.TuiDropdownHover, i1$1.TuiDropdownContext, i1$1.TuiDropdownPosition, i1$1.TuiDropdownPositionSided, i1$1.TuiDropdownSelection], exports: [TuiInputMonthComponent,
|
|
195
|
-
TuiInputMonthDirective,
|
|
196
|
-
TuiTextfieldComponent, i1$1.TuiDropdownOptionsDirective, i1$1.TuiDropdownDriverDirective, i1$1.TuiDropdownDirective, i1$1.TuiDropdownComponent, i1$1.TuiDropdownOpen, i1$1.TuiDropdownOpenLegacy, i1$1.TuiDropdownPortal, i1$1.TuiDropdownManual, i1$1.TuiDropdownHover, i1$1.TuiDropdownContext, i1$1.TuiDropdownPosition, i1$1.TuiDropdownPositionSided, i1$1.TuiDropdownSelection] }); }
|
|
197
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputMonthModule, imports: [CommonModule,
|
|
198
|
-
TuiCalendarMonth,
|
|
199
|
-
TuiPrimitiveTextfieldModule,
|
|
200
|
-
TuiTextfieldControllerModule,
|
|
201
|
-
FormsModule, i1$1.TuiDropdownComponent] }); }
|
|
202
|
-
}
|
|
203
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputMonthModule, decorators: [{
|
|
204
|
-
type: NgModule,
|
|
205
|
-
args: [{
|
|
206
|
-
imports: [
|
|
207
|
-
CommonModule,
|
|
208
|
-
TuiCalendarMonth,
|
|
209
|
-
TuiPrimitiveTextfieldModule,
|
|
210
|
-
TuiMapperPipe,
|
|
211
|
-
TuiTextfieldControllerModule,
|
|
212
|
-
FormsModule,
|
|
213
|
-
TuiLegacyDropdownOpenMonitorDirective,
|
|
214
|
-
...TuiDropdown,
|
|
215
|
-
],
|
|
216
|
-
declarations: [TuiInputMonthComponent, TuiInputMonthDirective],
|
|
217
|
-
exports: [
|
|
218
|
-
TuiInputMonthComponent,
|
|
219
|
-
TuiInputMonthDirective,
|
|
220
|
-
TuiTextfieldComponent,
|
|
221
|
-
...TuiDropdown,
|
|
222
|
-
],
|
|
223
|
-
}]
|
|
224
|
-
}] });
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Generated bundle index. Do not edit.
|
|
228
|
-
*/
|
|
229
|
-
|
|
230
|
-
export { TuiInputMonthComponent, TuiInputMonthDirective, TuiInputMonthModule };
|
|
231
|
-
//# sourceMappingURL=taiga-ui-legacy-components-input-month.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-legacy-components-input-month.mjs","sources":["../../../projects/legacy/components/input-month/input-month.component.ts","../../../projects/legacy/components/input-month/input-month.template.html","../../../projects/legacy/components/input-month/input-month.directive.ts","../../../projects/legacy/components/input-month/input-month.module.ts","../../../projects/legacy/components/input-month/taiga-ui-legacy-components-input-month.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n ViewChild,\n} from '@angular/core';\nimport {TUI_FALSE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {tuiDateClamp, TuiDay, TuiMonth, type TuiYear} from '@taiga-ui/cdk/date-time';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {type TuiBooleanHandler} from '@taiga-ui/cdk/types';\nimport {TuiMonthPipe} from '@taiga-ui/core/pipes/month';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {TUI_INPUT_DATE_OPTIONS, type TuiInputDateOptions} from '@taiga-ui/kit/tokens';\nimport {AbstractTuiNullableControl, tuiAsControl} from '@taiga-ui/legacy/classes';\nimport {TuiPrimitiveTextfieldComponent} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TUI_TEXTFIELD_SIZE} from '@taiga-ui/legacy/directives';\nimport {\n TUI_MONTH_FORMATTER,\n TUI_MONTH_FORMATTER_PROVIDER,\n tuiAsFocusableItemAccessor,\n type TuiFocusableElementAccessor,\n} from '@taiga-ui/legacy/tokens';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/input-month TuiInputMonth} (from @taiga-ui/kit) instead\n */\n@Component({\n standalone: false,\n selector: 'tui-input-month',\n templateUrl: './input-month.template.html',\n styleUrls: ['./input-month.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputMonthComponent),\n tuiAsControl(TuiInputMonthComponent),\n TUI_MONTH_FORMATTER_PROVIDER,\n TuiMonthPipe,\n ],\n host: {\n '[attr.data-size]': 'size',\n },\n})\nexport class TuiInputMonthComponent\n extends AbstractTuiNullableControl<TuiMonth>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly isMobile = inject(TUI_IS_MOBILE);\n private readonly options = inject(TUI_INPUT_DATE_OPTIONS);\n private readonly textfieldSize = inject(TUI_TEXTFIELD_SIZE);\n\n protected readonly formatter = inject(TUI_MONTH_FORMATTER);\n protected activeYear?: TuiYear;\n\n @Input()\n public min: TuiMonth | null = this.options.min;\n\n @Input()\n public max: TuiMonth | null = this.options.max;\n\n @Input()\n public disabledItemHandler: TuiBooleanHandler<TuiMonth> = TUI_FALSE_HANDLER;\n\n @Input()\n public defaultActiveYear: TuiYear = TuiDay.currentLocal();\n\n public open = false;\n\n public get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield?.nativeFocusableElement || null;\n }\n\n public get focused(): boolean {\n return !!this.textfield?.focused;\n }\n\n public onValueChange(value: string): void {\n if (value) {\n return;\n }\n\n this.value = null;\n this.onOpenChange(!this.nativePicker);\n }\n\n public onMonthClick(month: TuiMonth): void {\n this.value = month;\n this.close();\n }\n\n public override setDisabledState(): void {\n super.setDisabledState();\n this.close();\n }\n\n protected get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n protected get computedMin(): TuiMonth {\n return this.min ?? this.options.min;\n }\n\n protected get computedMax(): TuiMonth {\n return this.max ?? this.options.max;\n }\n\n protected get computedDefaultActiveYear(): TuiYear {\n return (\n this.activeYear ||\n this.value ||\n tuiDateClamp(this.defaultActiveYear, this.computedMin, this.computedMax)\n );\n }\n\n protected get calendarIcon(): TuiInputDateOptions['icon'] {\n return this.options.icon;\n }\n\n protected get nativePicker(): boolean {\n return this.isMobile && this.options.nativePicker;\n }\n\n protected get nativePickerMin(): string {\n return this.computedMin.toJSON();\n }\n\n protected get nativePickerMax(): string {\n return this.computedMax.toJSON();\n }\n\n protected get nativeValue(): string {\n return this.value?.toJSON() || '';\n }\n\n protected onNativeChange(value: string): void {\n const [year = 0, month = 0] = value.split('-').map(Number);\n\n this.value = value\n ? tuiDateClamp(\n new TuiMonth(year, month - 1),\n this.computedMin,\n this.computedMax,\n )\n : null;\n }\n\n protected onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n protected onOpenChange(open: boolean): void {\n if (open && this.value) {\n this.activeYear = this.value;\n }\n\n this.open = open;\n }\n\n private close(): void {\n this.open = false;\n }\n}\n","<div\n tuiDropdownOpenMonitor\n class=\"t-hosted\"\n [tuiDropdown]=\"dropdown\"\n [tuiDropdownEnabled]=\"interactive && !nativePicker\"\n [tuiDropdownOpen]=\"open && interactive\"\n (tuiDropdownOpenChange)=\"onOpenChange($event)\"\n>\n <tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [editable]=\"false\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"calendarIcon\"\n [value]=\"(value | tuiMapper: formatter | async) || ''\"\n (focusedChange)=\"onFocused($event)\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n <input\n *ngIf=\"nativePicker\"\n type=\"month\"\n class=\"t-mobile\"\n [max]=\"nativePickerMax\"\n [min]=\"nativePickerMin\"\n [ngModel]=\"nativeValue\"\n [ngModelOptions]=\"{standalone: true}\"\n (click.stop.zoneless)=\"(0)\"\n (mousedown.stop.zoneless)=\"(0)\"\n (ngModelChange)=\"onNativeChange($event)\"\n />\n </tui-primitive-textfield>\n\n <ng-template #dropdown>\n <tui-calendar-month\n [disabledItemHandler]=\"disabledItemHandler\"\n [max]=\"computedMax\"\n [min]=\"computedMin\"\n [value]=\"value\"\n [year]=\"computedDefaultActiveYear\"\n (monthClick)=\"onMonthClick($event)\"\n (mousedown.prevent.zoneless)=\"(0)\"\n (yearChange)=\"activeYear = $event\"\n />\n </ng-template>\n</div>\n","import {Directive, type DoCheck, inject} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {type TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {AbstractTuiTextfieldHost} from '@taiga-ui/legacy/classes';\nimport {TUI_MONTH_FORMATTER, tuiAsTextfieldHost} from '@taiga-ui/legacy/tokens';\nimport {distinctUntilChanged, Subject, switchMap} from 'rxjs';\n\nimport {type TuiInputMonthComponent} from './input-month.component';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/input-month TuiInputMonth} (from @taiga-ui/kit) instead\n */\n@Directive({\n standalone: false,\n selector: 'tui-input-month',\n providers: [tuiAsTextfieldHost(TuiInputMonthDirective)],\n})\nexport class TuiInputMonthDirective\n extends AbstractTuiTextfieldHost<TuiInputMonthComponent>\n implements DoCheck\n{\n private readonly value$ = new Subject<TuiMonth | null>();\n\n private localizedValue = '';\n\n protected readonly $ = this.value$\n .pipe(\n distinctUntilChanged(),\n switchMap(inject(TUI_MONTH_FORMATTER)),\n takeUntilDestroyed(),\n )\n .subscribe((localizedValue) => {\n this.localizedValue = localizedValue;\n });\n\n public override get readOnly(): boolean {\n return true;\n }\n\n public override get value(): string {\n return this.localizedValue;\n }\n\n public ngDoCheck(): void {\n this.value$.next(this.host.value);\n }\n\n public onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiMapperPipe} from '@taiga-ui/cdk/pipes/mapper';\nimport {TuiDropdown} from '@taiga-ui/core/directives/dropdown';\nimport {TuiCalendarMonth} from '@taiga-ui/kit/components/calendar-month';\nimport {\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {\n TuiLegacyDropdownOpenMonitorDirective,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/legacy/directives';\n\nimport {TuiInputMonthComponent} from './input-month.component';\nimport {TuiInputMonthDirective} from './input-month.directive';\n\n/**\n * TODO(v5): delete it\n * @deprecated use new version of {@link https://taiga-ui.dev/components/input-month TuiInputMonth} (from @taiga-ui/kit) instead\n */\n@NgModule({\n imports: [\n CommonModule,\n TuiCalendarMonth,\n TuiPrimitiveTextfieldModule,\n TuiMapperPipe,\n TuiTextfieldControllerModule,\n FormsModule,\n TuiLegacyDropdownOpenMonitorDirective,\n ...TuiDropdown,\n ],\n declarations: [TuiInputMonthComponent, TuiInputMonthDirective],\n exports: [\n TuiInputMonthComponent,\n TuiInputMonthDirective,\n TuiTextfieldComponent,\n ...TuiDropdown,\n ],\n})\nexport class TuiInputMonthModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i6","i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA;;;AAGG;AAiBG,MAAO,sBACT,SAAQ,0BAAoC,CAAA;AAjBhD,IAAA,WAAA,GAAA;;AAuBqB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAC;AAChC,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,sBAAsB,CAAC;AACxC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAExC,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,mBAAmB,CAAC;AAInD,QAAA,IAAA,CAAA,GAAG,GAAoB,IAAI,CAAC,OAAO,CAAC,GAAG;AAGvC,QAAA,IAAA,CAAA,GAAG,GAAoB,IAAI,CAAC,OAAO,CAAC,GAAG;QAG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,WAAW;AACjB,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;AAC9D,oBAAA,OAAO,EAAE;wBACL,sBAAsB;wBACtB,sBAAsB;wBACtB,qBAAqB;AACrB,wBAAA,GAAG,WAAW;AACjB,qBAAA;AACJ,iBAAA;;;ACxCD;;AAEG;;;;"}
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, ViewChild, ChangeDetectionStrategy, Component, Directive, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@taiga-ui/core/directives/hint';
|
|
4
|
-
import { TuiHintOptionsDirective, TuiHint } from '@taiga-ui/core/directives/hint';
|
|
5
|
-
import { TUI_PASSWORD_TEXTS } from '@taiga-ui/kit/tokens';
|
|
6
|
-
import { AbstractTuiControl, tuiAsControl, AbstractTuiTextfieldHost } from '@taiga-ui/legacy/classes';
|
|
7
|
-
import * as i4 from '@taiga-ui/legacy/components/primitive-textfield';
|
|
8
|
-
import { TuiPrimitiveTextfieldComponent, TuiTextfieldComponent, TuiPrimitiveTextfieldModule } from '@taiga-ui/legacy/components/primitive-textfield';
|
|
9
|
-
import * as i5 from '@taiga-ui/legacy/directives';
|
|
10
|
-
import { TUI_TEXTFIELD_SIZE, TuiTextfieldControllerModule } from '@taiga-ui/legacy/directives';
|
|
11
|
-
import { tuiAsFocusableItemAccessor, tuiAsTextfieldHost } from '@taiga-ui/legacy/tokens';
|
|
12
|
-
import { EMPTY, startWith, map } from 'rxjs';
|
|
13
|
-
import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
14
|
-
import * as i2 from '@angular/common';
|
|
15
|
-
import { CommonModule } from '@angular/common';
|
|
16
|
-
import * as i3 from '@taiga-ui/polymorpheus';
|
|
17
|
-
import { PolymorpheusOutlet, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
|
|
18
|
-
import * as i6 from '@taiga-ui/core/directives/appearance';
|
|
19
|
-
import { TuiAppearance } from '@taiga-ui/core/directives/appearance';
|
|
20
|
-
import * as i7 from '@taiga-ui/core/components/icon';
|
|
21
|
-
import { TuiIcon } from '@taiga-ui/core/components/icon';
|
|
22
|
-
import { tuiIsInput } from '@taiga-ui/cdk/utils/dom';
|
|
23
|
-
import { FormsModule } from '@angular/forms';
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated use {@link TuiPassword} with {@link TuiTextfield}
|
|
27
|
-
*/
|
|
28
|
-
const TUI_INPUT_PASSWORD_DEFAULT_OPTIONS = {
|
|
29
|
-
icons: {
|
|
30
|
-
hide: () => '@tui.eye',
|
|
31
|
-
show: () => '@tui.eye-off',
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated use {@link TuiPassword} with {@link TuiTextfield}
|
|
36
|
-
*/
|
|
37
|
-
const TUI_INPUT_PASSWORD_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_INPUT_PASSWORD_OPTIONS' : '', {
|
|
38
|
-
factory: () => TUI_INPUT_PASSWORD_DEFAULT_OPTIONS,
|
|
39
|
-
});
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated use {@link TuiPassword} with {@link TuiTextfield}
|
|
42
|
-
*/
|
|
43
|
-
function tuiInputPasswordOptionsProvider(options) {
|
|
44
|
-
return tuiProvideOptions(TUI_INPUT_PASSWORD_OPTIONS, options, TUI_INPUT_PASSWORD_DEFAULT_OPTIONS);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @deprecated use {@link TuiPassword} with {@link TuiTextfield}
|
|
49
|
-
*/
|
|
50
|
-
class TuiInputPasswordComponent extends AbstractTuiControl {
|
|
51
|
-
constructor() {
|
|
52
|
-
super(...arguments);
|
|
53
|
-
this.textfieldSize = inject(TUI_TEXTFIELD_SIZE);
|
|
54
|
-
this.hintOptions = inject(TuiHintOptionsDirective, { optional: true });
|
|
55
|
-
this.directive$ = this.hintOptions?.change$ || EMPTY;
|
|
56
|
-
this.isPasswordHidden = true;
|
|
57
|
-
this.computedAppearance$ = this.directive$.pipe(startWith(null), map(() => this.hintOptions?.appearance || ''), startWith(''));
|
|
58
|
-
this.passwordTexts$ = inject(TUI_PASSWORD_TEXTS);
|
|
59
|
-
this.options = inject(TUI_INPUT_PASSWORD_OPTIONS);
|
|
60
|
-
}
|
|
61
|
-
get nativeFocusableElement() {
|
|
62
|
-
return this.computedDisabled || !this.textfield
|
|
63
|
-
? null
|
|
64
|
-
: this.textfield.nativeFocusableElement;
|
|
65
|
-
}
|
|
66
|
-
get focused() {
|
|
67
|
-
return !!this.textfield?.focused;
|
|
68
|
-
}
|
|
69
|
-
get inputType() {
|
|
70
|
-
return this.isPasswordHidden || this.computedDisabled ? 'password' : 'text';
|
|
71
|
-
}
|
|
72
|
-
onValueChange(textValue) {
|
|
73
|
-
this.value = textValue;
|
|
74
|
-
}
|
|
75
|
-
get size() {
|
|
76
|
-
return this.textfieldSize.size;
|
|
77
|
-
}
|
|
78
|
-
get icon() {
|
|
79
|
-
return this.isPasswordHidden ? this.options.icons.show : this.options.icons.hide;
|
|
80
|
-
}
|
|
81
|
-
onFocused(focused) {
|
|
82
|
-
this.updateFocused(focused);
|
|
83
|
-
}
|
|
84
|
-
togglePasswordVisibility() {
|
|
85
|
-
this.isPasswordHidden = !this.isPasswordHidden;
|
|
86
|
-
}
|
|
87
|
-
getFallbackValue() {
|
|
88
|
-
return '';
|
|
89
|
-
}
|
|
90
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputPasswordComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
91
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputPasswordComponent, isStandalone: false, selector: "tui-input-password", host: { properties: { "attr.data-size": "size" } }, providers: [
|
|
92
|
-
tuiAsFocusableItemAccessor(TuiInputPasswordComponent),
|
|
93
|
-
tuiAsControl(TuiInputPasswordComponent),
|
|
94
|
-
], viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"!computedDisabled ? iconContent : ''\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n</tui-primitive-textfield>\n\n<ng-template\n #iconContent=\"polymorpheus\"\n [polymorpheus]=\"type\"\n>\n <ng-container *ngIf=\"passwordTexts$ | async as texts\">\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n automation-id=\"tui-password__icon\"\n tuiAppearance=\"icon\"\n class=\"t-icon\"\n [class.t-icon_small]=\"size === 's'\"\n [icon]=\"src.toString()\"\n [tuiHint]=\"texts[0] && texts[1] && hintContent\"\n [tuiHintAppearance]=\"(computedAppearance$ | async) || ''\"\n [tuiHintDirection]=\"hintOptions?.direction || 'bottom-left'\"\n (click)=\"togglePasswordVisibility()\"\n (mousedown.zoneless.prevent)=\"(0)\"\n (mouseup.zoneless.prevent)=\"(0)\"\n />\n\n <ng-template\n #hintContent=\"polymorpheus\"\n polymorpheus\n >\n {{ isPasswordHidden ? texts[0] : texts[1] }}\n </ng-template>\n </ng-container>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-icon{cursor:pointer;pointer-events:auto}.t-icon_small{border-width:.25rem}.t-textfield{border-radius:inherit;text-align:inherit}\n"], dependencies: [{ kind: "directive", type: i1.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHintContext", "tuiHintAppearance", "tuiHint"], outputs: ["tuiHintVisible"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i3.PolymorpheusTemplate, selector: "ng-template[polymorpheus]", inputs: ["polymorpheus"], exportAs: ["polymorpheus"] }, { kind: "component", type: i4.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i4.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i5.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { kind: "directive", type: i6.TuiAppearance, selector: "[tuiAppearance]", inputs: ["tuiAppearance", "tuiAppearanceState", "tuiAppearanceFocus", "tuiAppearanceMode"] }, { kind: "component", type: i7.TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
95
|
-
}
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputPasswordComponent, decorators: [{
|
|
97
|
-
type: Component,
|
|
98
|
-
args: [{ standalone: false, selector: 'tui-input-password', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
99
|
-
tuiAsFocusableItemAccessor(TuiInputPasswordComponent),
|
|
100
|
-
tuiAsControl(TuiInputPasswordComponent),
|
|
101
|
-
], host: {
|
|
102
|
-
'[attr.data-size]': 'size',
|
|
103
|
-
}, template: "<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"!computedDisabled ? iconContent : ''\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n</tui-primitive-textfield>\n\n<ng-template\n #iconContent=\"polymorpheus\"\n [polymorpheus]=\"type\"\n>\n <ng-container *ngIf=\"passwordTexts$ | async as texts\">\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n automation-id=\"tui-password__icon\"\n tuiAppearance=\"icon\"\n class=\"t-icon\"\n [class.t-icon_small]=\"size === 's'\"\n [icon]=\"src.toString()\"\n [tuiHint]=\"texts[0] && texts[1] && hintContent\"\n [tuiHintAppearance]=\"(computedAppearance$ | async) || ''\"\n [tuiHintDirection]=\"hintOptions?.direction || 'bottom-left'\"\n (click)=\"togglePasswordVisibility()\"\n (mousedown.zoneless.prevent)=\"(0)\"\n (mouseup.zoneless.prevent)=\"(0)\"\n />\n\n <ng-template\n #hintContent=\"polymorpheus\"\n polymorpheus\n >\n {{ isPasswordHidden ? texts[0] : texts[1] }}\n </ng-template>\n </ng-container>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:start}:host :host-context(*:disabled){pointer-events:none}.t-icon{cursor:pointer;pointer-events:auto}.t-icon_small{border-width:.25rem}.t-textfield{border-radius:inherit;text-align:inherit}\n"] }]
|
|
104
|
-
}], propDecorators: { textfield: [{
|
|
105
|
-
type: ViewChild,
|
|
106
|
-
args: [TuiPrimitiveTextfieldComponent]
|
|
107
|
-
}] } });
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @deprecated use {@link TuiPassword} with {@link TuiTextfield}
|
|
111
|
-
*/
|
|
112
|
-
class TuiInputPasswordDirective extends AbstractTuiTextfieldHost {
|
|
113
|
-
onValueChange(value) {
|
|
114
|
-
this.host.onValueChange(value);
|
|
115
|
-
}
|
|
116
|
-
process(input) {
|
|
117
|
-
this.input = input;
|
|
118
|
-
}
|
|
119
|
-
ngDoCheck() {
|
|
120
|
-
if (this.host.nativeFocusableElement &&
|
|
121
|
-
tuiIsInput(this.host.nativeFocusableElement)) {
|
|
122
|
-
this.host.nativeFocusableElement.type = this.host.inputType;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputPasswordDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
126
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputPasswordDirective, isStandalone: false, selector: "tui-input-password", providers: [tuiAsTextfieldHost(TuiInputPasswordDirective)], usesInheritance: true, ngImport: i0 }); }
|
|
127
|
-
}
|
|
128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputPasswordDirective, decorators: [{
|
|
129
|
-
type: Directive,
|
|
130
|
-
args: [{
|
|
131
|
-
standalone: false,
|
|
132
|
-
selector: 'tui-input-password',
|
|
133
|
-
providers: [tuiAsTextfieldHost(TuiInputPasswordDirective)],
|
|
134
|
-
}]
|
|
135
|
-
}] });
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* @deprecated use {@link TuiPassword} with {@link TuiTextfield}
|
|
139
|
-
*/
|
|
140
|
-
class TuiInputPasswordModule {
|
|
141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputPasswordModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
142
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.9", ngImport: i0, type: TuiInputPasswordModule, declarations: [TuiInputPasswordComponent, TuiInputPasswordDirective], imports: [i1.TuiHintComponent, i1.TuiHintDirective, i1.TuiHintOptionsDirective, i1.TuiHintUnstyled, i1.TuiHintDriver, i1.TuiHintPosition, i1.TuiHintHover, i1.TuiHintOverflow, i1.TuiHintDescribe, i1.TuiHintHost, i1.TuiHintManual, i1.TuiHintPointer, CommonModule,
|
|
143
|
-
FormsModule,
|
|
144
|
-
PolymorpheusOutlet,
|
|
145
|
-
PolymorpheusTemplate,
|
|
146
|
-
TuiPrimitiveTextfieldModule,
|
|
147
|
-
TuiTextfieldControllerModule,
|
|
148
|
-
TuiAppearance,
|
|
149
|
-
TuiIcon], exports: [TuiInputPasswordComponent,
|
|
150
|
-
TuiInputPasswordDirective,
|
|
151
|
-
TuiTextfieldComponent, i1.TuiHintComponent, i1.TuiHintDirective, i1.TuiHintOptionsDirective, i1.TuiHintUnstyled, i1.TuiHintDriver, i1.TuiHintPosition, i1.TuiHintHover, i1.TuiHintOverflow, i1.TuiHintDescribe, i1.TuiHintHost, i1.TuiHintManual, i1.TuiHintPointer] }); }
|
|
152
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputPasswordModule, imports: [i1.TuiHintComponent, CommonModule,
|
|
153
|
-
FormsModule,
|
|
154
|
-
TuiPrimitiveTextfieldModule,
|
|
155
|
-
TuiTextfieldControllerModule,
|
|
156
|
-
TuiIcon] }); }
|
|
157
|
-
}
|
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputPasswordModule, decorators: [{
|
|
159
|
-
type: NgModule,
|
|
160
|
-
args: [{
|
|
161
|
-
imports: [
|
|
162
|
-
...TuiHint,
|
|
163
|
-
CommonModule,
|
|
164
|
-
FormsModule,
|
|
165
|
-
PolymorpheusOutlet,
|
|
166
|
-
PolymorpheusTemplate,
|
|
167
|
-
TuiPrimitiveTextfieldModule,
|
|
168
|
-
TuiTextfieldControllerModule,
|
|
169
|
-
TuiAppearance,
|
|
170
|
-
TuiIcon,
|
|
171
|
-
],
|
|
172
|
-
declarations: [TuiInputPasswordComponent, TuiInputPasswordDirective],
|
|
173
|
-
exports: [
|
|
174
|
-
TuiInputPasswordComponent,
|
|
175
|
-
TuiInputPasswordDirective,
|
|
176
|
-
TuiTextfieldComponent,
|
|
177
|
-
...TuiHint,
|
|
178
|
-
],
|
|
179
|
-
}]
|
|
180
|
-
}] });
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Generated bundle index. Do not edit.
|
|
184
|
-
*/
|
|
185
|
-
|
|
186
|
-
export { TUI_INPUT_PASSWORD_DEFAULT_OPTIONS, TUI_INPUT_PASSWORD_OPTIONS, TuiInputPasswordComponent, TuiInputPasswordDirective, TuiInputPasswordModule, tuiInputPasswordOptionsProvider };
|
|
187
|
-
//# sourceMappingURL=taiga-ui-legacy-components-input-password.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-legacy-components-input-password.mjs","sources":["../../../projects/legacy/components/input-password/input-password.options.ts","../../../projects/legacy/components/input-password/input-password.component.ts","../../../projects/legacy/components/input-password/input-password.template.html","../../../projects/legacy/components/input-password/input-password.directive.ts","../../../projects/legacy/components/input-password/input-password.module.ts","../../../projects/legacy/components/input-password/taiga-ui-legacy-components-input-password.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\n/**\n * @deprecated use {@link TuiPassword} with {@link TuiTextfield}\n */\nexport interface TuiInputPasswordOptions {\n readonly icons: Readonly<{\n hide: PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>>;\n show: PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>>;\n }>;\n}\n\n/**\n * @deprecated use {@link TuiPassword} with {@link TuiTextfield}\n */\nexport const TUI_INPUT_PASSWORD_DEFAULT_OPTIONS: TuiInputPasswordOptions = {\n icons: {\n hide: () => '@tui.eye',\n show: () => '@tui.eye-off',\n },\n};\n\n/**\n * @deprecated use {@link TuiPassword} with {@link TuiTextfield}\n */\nexport const TUI_INPUT_PASSWORD_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_INPUT_PASSWORD_OPTIONS' : '',\n {\n factory: () => TUI_INPUT_PASSWORD_DEFAULT_OPTIONS,\n },\n);\n\n/**\n * @deprecated use {@link TuiPassword} with {@link TuiTextfield}\n */\nexport function tuiInputPasswordOptionsProvider(\n options: Partial<TuiInputPasswordOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_INPUT_PASSWORD_OPTIONS,\n options,\n TUI_INPUT_PASSWORD_DEFAULT_OPTIONS,\n );\n}\n","import {ChangeDetectionStrategy, Component, inject, ViewChild} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {TuiHintOptionsDirective} from '@taiga-ui/core/directives/hint';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {TUI_PASSWORD_TEXTS} from '@taiga-ui/kit/tokens';\nimport {AbstractTuiControl, tuiAsControl} from '@taiga-ui/legacy/classes';\nimport {TuiPrimitiveTextfieldComponent} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TUI_TEXTFIELD_SIZE} from '@taiga-ui/legacy/directives';\nimport {\n tuiAsFocusableItemAccessor,\n type TuiFocusableElementAccessor,\n type TuiNativeFocusableElement,\n} from '@taiga-ui/legacy/tokens';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\nimport {EMPTY, map, type Observable, startWith} from 'rxjs';\n\nimport {TUI_INPUT_PASSWORD_OPTIONS} from './input-password.options';\n\n/**\n * @deprecated use {@link TuiPassword} with {@link TuiTextfield}\n */\n@Component({\n standalone: false,\n selector: 'tui-input-password',\n templateUrl: './input-password.template.html',\n styleUrls: ['./input-password.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputPasswordComponent),\n tuiAsControl(TuiInputPasswordComponent),\n ],\n host: {\n '[attr.data-size]': 'size',\n },\n})\nexport class TuiInputPasswordComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly textfieldSize = inject(TUI_TEXTFIELD_SIZE);\n protected readonly hintOptions = inject(TuiHintOptionsDirective, {optional: true});\n protected readonly directive$: Observable<any> = this.hintOptions?.change$ || EMPTY;\n\n protected isPasswordHidden = true;\n\n protected readonly computedAppearance$: Observable<string> = this.directive$.pipe(\n startWith(null),\n map(() => this.hintOptions?.appearance || ''),\n startWith(''),\n );\n\n protected readonly passwordTexts$ = inject(TUI_PASSWORD_TEXTS);\n protected readonly options = inject(TUI_INPUT_PASSWORD_OPTIONS);\n protected readonly type!: TuiContext<TuiSizeL | TuiSizeS>;\n\n public get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.computedDisabled || !this.textfield\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n public get focused(): boolean {\n return !!this.textfield?.focused;\n }\n\n public get inputType(): string {\n return this.isPasswordHidden || this.computedDisabled ? 'password' : 'text';\n }\n\n public onValueChange(textValue: string): void {\n this.value = textValue;\n }\n\n protected get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n protected get icon(): PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>> {\n return this.isPasswordHidden ? this.options.icons.show : this.options.icons.hide;\n }\n\n protected onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n protected togglePasswordVisibility(): void {\n this.isPasswordHidden = !this.isPasswordHidden;\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"!computedDisabled ? iconContent : ''\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n</tui-primitive-textfield>\n\n<ng-template\n #iconContent=\"polymorpheus\"\n [polymorpheus]=\"type\"\n>\n <ng-container *ngIf=\"passwordTexts$ | async as texts\">\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n automation-id=\"tui-password__icon\"\n tuiAppearance=\"icon\"\n class=\"t-icon\"\n [class.t-icon_small]=\"size === 's'\"\n [icon]=\"src.toString()\"\n [tuiHint]=\"texts[0] && texts[1] && hintContent\"\n [tuiHintAppearance]=\"(computedAppearance$ | async) || ''\"\n [tuiHintDirection]=\"hintOptions?.direction || 'bottom-left'\"\n (click)=\"togglePasswordVisibility()\"\n (mousedown.zoneless.prevent)=\"(0)\"\n (mouseup.zoneless.prevent)=\"(0)\"\n />\n\n <ng-template\n #hintContent=\"polymorpheus\"\n polymorpheus\n >\n {{ isPasswordHidden ? texts[0] : texts[1] }}\n </ng-template>\n </ng-container>\n</ng-template>\n","import {Directive, type DoCheck} from '@angular/core';\nimport {tuiIsInput} from '@taiga-ui/cdk/utils/dom';\nimport {AbstractTuiTextfieldHost} from '@taiga-ui/legacy/classes';\nimport {tuiAsTextfieldHost} from '@taiga-ui/legacy/tokens';\n\nimport {type TuiInputPasswordComponent} from './input-password.component';\n\n/**\n * @deprecated use {@link TuiPassword} with {@link TuiTextfield}\n */\n@Directive({\n standalone: false,\n selector: 'tui-input-password',\n providers: [tuiAsTextfieldHost(TuiInputPasswordDirective)],\n})\nexport class TuiInputPasswordDirective\n extends AbstractTuiTextfieldHost<TuiInputPasswordComponent>\n implements DoCheck\n{\n protected input?: HTMLInputElement;\n\n public onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n\n public override process(input: HTMLInputElement): void {\n this.input = input;\n }\n\n public ngDoCheck(): void {\n if (\n this.host.nativeFocusableElement &&\n tuiIsInput(this.host.nativeFocusableElement)\n ) {\n this.host.nativeFocusableElement.type = this.host.inputType;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {TuiHint} from '@taiga-ui/core/directives/hint';\nimport {\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n} from '@taiga-ui/legacy/components/primitive-textfield';\nimport {TuiTextfieldControllerModule} from '@taiga-ui/legacy/directives';\nimport {PolymorpheusOutlet, PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\n\nimport {TuiInputPasswordComponent} from './input-password.component';\nimport {TuiInputPasswordDirective} from './input-password.directive';\n\n/**\n * @deprecated use {@link TuiPassword} with {@link TuiTextfield}\n */\n@NgModule({\n imports: [\n ...TuiHint,\n CommonModule,\n FormsModule,\n PolymorpheusOutlet,\n PolymorpheusTemplate,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiAppearance,\n TuiIcon,\n ],\n declarations: [TuiInputPasswordComponent, TuiInputPasswordDirective],\n exports: [\n TuiInputPasswordComponent,\n TuiInputPasswordDirective,\n TuiTextfieldComponent,\n ...TuiHint,\n ],\n})\nexport class TuiInputPasswordModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;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