From 048fdb0c0edb4dd3688bc5283c759a07d2be7dc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sinan=20=C3=96zt=C3=BCrk?= Date: Wed, 29 Nov 2023 14:37:14 +0300 Subject: [PATCH 1/2] import ShowPasswordDirective to standalone components imports --- .../extensible-form/extensible-form-prop.component.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts b/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts index ca32fd3e7a..d36a218b62 100644 --- a/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts +++ b/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts @@ -1,5 +1,5 @@ import { EXTENSIONS_FORM_PROP, EXTENSIONS_FORM_PROP_DATA } from './../../tokens/extensions.token'; -import { ABP, CoreModule, TrackByService } from '@abp/ng.core'; +import { ABP, CoreModule, ShowPasswordDirective, TrackByService } from '@abp/ng.core'; import { AfterViewInit, ChangeDetectionStrategy, @@ -33,7 +33,6 @@ import { debounceTime, distinctUntilChanged, switchMap } from 'rxjs/operators'; import { DateAdapter, DisabledDirective, - PasswordComponent, TimeAdapter, } from '@abp/ng.theme.shared'; import { EXTRA_PROPERTIES_KEY } from '../../constants/extra-properties'; @@ -60,8 +59,8 @@ import {CreateInjectorPipe} from "../../pipes/create-injector.pipe"; DisabledDirective, NgxValidateCoreModule, NgbTypeaheadModule, - PasswordComponent, - CreateInjectorPipe + CreateInjectorPipe, + ShowPasswordDirective ], changeDetection: ChangeDetectionStrategy.OnPush, providers: [ExtensibleFormPropService], From 1a305596fdada46c5e0f4ab17573a16b4f975991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sinan=20=C3=96zt=C3=BCrk?= Date: Wed, 29 Nov 2023 14:38:56 +0300 Subject: [PATCH 2/2] add showPassword variable --- .../components/extensible-form/extensible-form-prop.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts b/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts index d36a218b62..de6eaedffd 100644 --- a/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts +++ b/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts @@ -90,6 +90,7 @@ export class ExtensibleFormPropComponent implements OnChanges, AfterViewInit { injectorForCustomComponent?: Injector; asterisk = ''; containerClassName = 'mb-2'; + showPassword = false; options$: Observable[]> = of([]); validators: ValidatorFn[] = []; readonly!: boolean;