Skip to content

Commit

Permalink
Merge pull request #1128 from zyfra/feat/release_3_7_0__1
Browse files Browse the repository at this point in the history
feat: update changelog 3.7.0
  • Loading branch information
ZurabDev authored Dec 5, 2023
2 parents 93b50f5 + 0d08744 commit daed085
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 39 deletions.
2 changes: 1 addition & 1 deletion apps/doc/src/app/about-prizm/changelog/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to this project will be documented in this file.

## [1.11.0, 2.8.0, 3.7.0](https:/zyfra/Prizm) (01-12-2023)
## [1.11.0, 2.8.0, 3.7.0](https:/zyfra/Prizm) (04-12-2023)

### Features

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import {
PrizmMultiSelectItemStringifyFunc,
PrizmMultiSelectItemWithChecked,
PrizmMultiSelectSearchMatcher,
PrizmMultiSelectValueTransformer,
} from './multi-select.model';
import { PrizmOverlayOutsidePlacement } from '../../../modules/overlay/models';
import { PrizmScrollbarComponent, PrizmScrollbarVisibility } from '../../scrollbar';
Expand All @@ -46,7 +47,6 @@ import { CommonModule } from '@angular/common';
import { PrizmIconComponent } from '../../icon';
import { PrizmDataListComponent } from '../../data-list';
import { PrizmCheckboxComponent } from '../../checkbox';
import { PrizmMultiSelectValueTransformer } from './multi-select.model';

// TODO create abstract select component and move to abstract common logic
@Component({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
Input,
OnInit,
ViewChild,
} from '@angular/core';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input } from '@angular/core';
import { PrizmDestroyService } from '@prizm-ui/helpers';
import { fromEvent, merge } from 'rxjs';
import { switchMap, take, takeUntil, tap } from 'rxjs/operators';

import { PrizmInputLayoutComponent } from '../common/input-layout/input-layout.component';
import { PrizmInputPasswordDirective } from './input-password.directive';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,10 @@ export class PrizmInputTextComponent<VALUE extends string | number | null = stri
this.stateChanges.next();
}

override readonly testId_ = 'ui_input_text';

private _required: boolean | undefined;

public invalid = false;
private _required: boolean | undefined;

override readonly testId_ = 'ui_input_text';
/**
* Input value input
*/
Expand Down Expand Up @@ -132,11 +130,12 @@ export class PrizmInputTextComponent<VALUE extends string | number | null = stri
@HostBinding('class.empty')
public empty!: boolean;

readonly parentLayout = inject(PrizmInputLayoutComponent, {
optional: true,
});
readonly maybeMask = inject(NgxMaskDirective, {
optional: true,
}) as NgxMaskDirective;

readonly parentLayout = inject(PrizmInputLayoutComponent, {
optional: true,
});
/**
* Focus state
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,10 @@ export class PrizmInputTextComponent<VALUE extends string | number | null = stri
this.stateChanges.next();
}

override readonly testId_ = 'ui_input_text';

private _required: boolean | undefined;

public invalid = false;
private _required: boolean | undefined;

override readonly testId_ = 'ui_input_text';
/**
* Input value input
*/
Expand Down Expand Up @@ -132,10 +130,13 @@ export class PrizmInputTextComponent<VALUE extends string | number | null = stri
@HostBinding('class.empty')
public empty!: boolean;

readonly parentLayout = inject(PrizmInputLayoutComponent);
readonly maybeMask = inject(MaskDirective, {
optional: true,
});

readonly parentLayout = inject(PrizmInputLayoutComponent, {
optional: true,
});
/**
* Focus state
*/
Expand Down Expand Up @@ -179,7 +180,7 @@ export class PrizmInputTextComponent<VALUE extends string | number | null = stri

private safeClearNgxMaskListener() {
// TODO: fix ngxMask bug when clear value
this.parentLayout.clear
this.parentLayout?.clear
.pipe(
tap(() => {
this.maybeMask, this.maybeMask?.writeValue(null as any);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,10 @@ export class PrizmInputTextComponent<VALUE extends string | number | null = stri
this.stateChanges.next();
}

override readonly testId_ = 'ui_input_text';

private _required: boolean | undefined;

public invalid = false;
private _required: boolean | undefined;

override readonly testId_ = 'ui_input_text';
/**
* Input value input
*/
Expand Down Expand Up @@ -132,10 +130,12 @@ export class PrizmInputTextComponent<VALUE extends string | number | null = stri
@HostBinding('class.empty')
public empty!: boolean;

readonly parentLayout = inject(PrizmInputLayoutComponent);
readonly maybeMask = inject(NgxMaskDirective, {
optional: true,
});
readonly parentLayout = inject(PrizmInputLayoutComponent, {
optional: true,
});
/**
* Focus state
*/
Expand Down Expand Up @@ -179,7 +179,7 @@ export class PrizmInputTextComponent<VALUE extends string | number | null = stri

private safeClearNgxMaskListener() {
// TODO: fix ngxMask bug when clear value
this.parentLayout.clear
this.parentLayout?.clear
.pipe(
tap(() => {
this.maybeMask, this.maybeMask?.writeValue(null as any);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { NgxMaskDirective } from 'ngx-mask';

@Component({
selector:
// eslint-disable-next-line @angular-eslint/component-selector
// eslint-disable-next-line @angular-eslint/component-selector
'input[prizmInput]:not([type=number]), textarea[prizmInput], input[prizmInputPassword]',
template: '',
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
Expand Down Expand Up @@ -87,12 +87,10 @@ export class PrizmInputTextComponent<VALUE extends string | number | null = stri
this.stateChanges.next();
}

override readonly testId_ = 'ui_input_text';

private _required: boolean | undefined;

public invalid = false;
private _required: boolean | undefined;

override readonly testId_ = 'ui_input_text';
/**
* Input value input
*/
Expand Down Expand Up @@ -132,9 +130,12 @@ export class PrizmInputTextComponent<VALUE extends string | number | null = stri
@HostBinding('class.empty')
public empty!: boolean;

readonly parentLayout = inject(PrizmInputLayoutComponent);
readonly maybeMask = inject(NgxMaskDirective, {
optional: true,
}) as NgxMaskDirective;

readonly parentLayout = inject(PrizmInputLayoutComponent, {
optional: true,
});
/**
* Focus state
Expand Down Expand Up @@ -179,7 +180,7 @@ export class PrizmInputTextComponent<VALUE extends string | number | null = stri

private safeClearNgxMaskListener() {
// TODO: fix ngxMask bug when clear value
this.parentLayout.clear
this.parentLayout?.clear
.pipe(
tap(() => {
this.maybeMask, this.maybeMask?.writeValue(null as any);
Expand Down

0 comments on commit daed085

Please sign in to comment.