rd-outer-component 0.1.68 → 0.1.70

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.
@@ -10,6 +10,7 @@ export declare class CustomDateComponent implements ControlValueAccessor, Valida
10
10
  disabledDate?: (d: Date) => boolean;
11
11
  label: string;
12
12
  type: 'date' | 'range';
13
+ format: 'dd/MM/yyyy' | 'MM/yyyy' | 'yyyy';
13
14
  required: boolean;
14
15
  name: string;
15
16
  placeholder: string;
@@ -19,6 +20,7 @@ export declare class CustomDateComponent implements ControlValueAccessor, Valida
19
20
  };
20
21
  datePicker: NzDatePickerComponent;
21
22
  get popupClassName(): string;
23
+ get pickerMode(): 'date' | 'month' | 'year';
22
24
  inputValue: [string, string] | string | null;
23
25
  isPickerOpen: boolean;
24
26
  isFocus: boolean;
@@ -43,5 +45,5 @@ export declare class CustomDateComponent implements ControlValueAccessor, Valida
43
45
  ngAfterViewInit(): void;
44
46
  disabledEndDate: (current: Date) => boolean;
45
47
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomDateComponent, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomDateComponent, "app-rd-date", never, { "disabled": "disabled"; "disabledDate": "disabledDate"; "label": "label"; "type": "type"; "required": "required"; "name": "name"; "placeholder": "placeholder"; "errorMessages": "errorMessages"; }, {}, never, never, false, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomDateComponent, "app-rd-date", never, { "disabled": "disabled"; "disabledDate": "disabledDate"; "label": "label"; "type": "type"; "format": "format"; "required": "required"; "name": "name"; "placeholder": "placeholder"; "errorMessages": "errorMessages"; }, {}, never, never, false, never>;
47
49
  }
@@ -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.68",
3
+ "version": "0.1.70",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "15.2.10",
6
6
  "@angular/core": "15.2.10",