rd-outer-component 0.1.67 → 0.1.69

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.
@@ -9,6 +9,10 @@ export declare class CustomInputAmountComponent implements ControlValueAccessor,
9
9
  label: string;
10
10
  /** Optional display text shown to the right of the amount label. */
11
11
  amountBalanceLabel: string;
12
+ showMax: boolean;
13
+ /** Available balance, independent of the transaction limit in `max`. */
14
+ maxAmount?: string | number | null;
15
+ maxLabel: string;
12
16
  symbol: string;
13
17
  name: string;
14
18
  placeholder: string;
@@ -35,6 +39,10 @@ export declare class CustomInputAmountComponent implements ControlValueAccessor,
35
39
  constructor(cdr: ChangeDetectorRef, translate: TranslateService);
36
40
  get currentErrorMessage(): string;
37
41
  get showError(): boolean;
42
+ get maxDisabled(): boolean;
43
+ get showMaxButton(): boolean;
44
+ private get availableMaxAmount();
45
+ selectMax(): void;
38
46
  handleValueChange(value: string): void;
39
47
  onBlur(): void;
40
48
  onFocus(): void;
@@ -45,5 +53,5 @@ export declare class CustomInputAmountComponent implements ControlValueAccessor,
45
53
  validate(control: AbstractControl): ValidationErrors | null;
46
54
  writeValue(value: string | number | null): void;
47
55
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputAmountComponent, never>;
48
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputAmountComponent, "app-rd-input-amount", never, { "lang": "lang"; "label": "label"; "amountBalanceLabel": "amountBalanceLabel"; "symbol": "symbol"; "name": "name"; "placeholder": "placeholder"; "disabled": "disabled"; "min": "min"; "max": "max"; "nzPrecision": "nzPrecision"; "allowNegativeNumbers": "allowNegativeNumbers"; "required": "required"; "nzSize": "nzSize"; "errorMessages": "errorMessages"; "clearError": "clearError"; }, { "blur": "blur"; "focus": "focus"; "valueChange": "valueChange"; }, never, ["[slot='token']", "*"], false, never>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputAmountComponent, "app-rd-input-amount", never, { "lang": "lang"; "label": "label"; "amountBalanceLabel": "amountBalanceLabel"; "showMax": "showMax"; "maxAmount": "maxAmount"; "maxLabel": "maxLabel"; "symbol": "symbol"; "name": "name"; "placeholder": "placeholder"; "disabled": "disabled"; "min": "min"; "max": "max"; "nzPrecision": "nzPrecision"; "allowNegativeNumbers": "allowNegativeNumbers"; "required": "required"; "nzSize": "nzSize"; "errorMessages": "errorMessages"; "clearError": "clearError"; }, { "blur": "blur"; "focus": "focus"; "valueChange": "valueChange"; }, never, ["[slot='token']", "*"], false, never>;
49
57
  }
@@ -5,8 +5,9 @@ import * as i3 from "@angular/forms";
5
5
  import * as i4 from "ng-zorro-antd/input";
6
6
  import * as i5 from "ngx-mask";
7
7
  import * as i6 from "@ngx-translate/core";
8
+ import * as i7 from "../rd-button/rd-button.module";
8
9
  export declare class RdInputAmountModule {
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<RdInputAmountModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<RdInputAmountModule, [typeof i1.CustomInputAmountComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i3.FormsModule, typeof i4.NzInputModule, typeof i5.NgxMaskModule, typeof i6.TranslateModule], [typeof i1.CustomInputAmountComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RdInputAmountModule, [typeof i1.CustomInputAmountComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i3.FormsModule, typeof i4.NzInputModule, typeof i5.NgxMaskModule, typeof i6.TranslateModule, typeof i7.RdButtonModule], [typeof i1.CustomInputAmountComponent]>;
11
12
  static ɵinj: i0.ɵɵInjectorDeclaration<RdInputAmountModule>;
12
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rd-outer-component",
3
- "version": "0.1.67",
3
+ "version": "0.1.69",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "15.2.10",
6
6
  "@angular/core": "15.2.10",
@@ -178,6 +178,10 @@ textarea[disabled] {
178
178
 
179
179
  &-symbol {
180
180
  flex-shrink: 0;
181
+ font-size: 24px;
182
+ font-weight: 500;
183
+ line-height: 34px;
184
+ color: var(--rd-copy-primary);
181
185
  }
182
186
  }
183
187
 
@@ -196,7 +200,8 @@ textarea[disabled] {
196
200
  border-color: var(--rd-input-fg-disable);
197
201
 
198
202
  .rd-item-label,
199
- .rd-item-content-value {
203
+ .rd-item-content-value,
204
+ .rd-item-content-symbol {
200
205
  background: var(--rd-input-bg-disable);
201
206
  color: var(--rd-copy-disable);
202
207
  }