rd-outer-component 0.0.71 → 0.0.73

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.
@@ -3,6 +3,7 @@ import { FilterTypeEnum, ICustomFilter, StatusDisplayConfig, StatusGroupConfig }
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class RdFilterComponent {
5
5
  private cdf;
6
+ lang: string;
6
7
  filterArr: ICustomFilter[];
7
8
  defSearchChange: EventEmitter<string>;
8
9
  clearFilter: EventEmitter<any>;
@@ -14,6 +15,7 @@ export declare class RdFilterComponent {
14
15
  constructor(cdf: ChangeDetectorRef);
15
16
  handleChangeValue(value: any): void;
16
17
  clear(): void;
18
+ getClearTrans(): string;
17
19
  static ɵfac: i0.ɵɵFactoryDeclaration<RdFilterComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<RdFilterComponent, "app-rd-filter", never, { "filterArr": "filterArr"; "statusDisplayConfigs": "statusDisplayConfigs"; "statusGroupConfigs": "statusGroupConfigs"; "clearText": "clearText"; }, { "defSearchChange": "defSearchChange"; "clearFilter": "clearFilter"; }, never, never, false, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<RdFilterComponent, "app-rd-filter", never, { "lang": "lang"; "filterArr": "filterArr"; "statusDisplayConfigs": "statusDisplayConfigs"; "statusGroupConfigs": "statusGroupConfigs"; "clearText": "clearText"; }, { "defSearchChange": "defSearchChange"; "clearFilter": "clearFilter"; }, never, never, false, never>;
19
21
  }
@@ -3,6 +3,7 @@ import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator, Val
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class CustomInputComponent implements ControlValueAccessor, Validator {
5
5
  private cdr;
6
+ lang: string;
6
7
  label: string;
7
8
  symbol: string;
8
9
  name: string;
@@ -43,5 +44,5 @@ export declare class CustomInputComponent implements ControlValueAccessor, Valid
43
44
  handleValueChange(value: string): void;
44
45
  validate(control: AbstractControl | null): ValidationErrors | null;
45
46
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputComponent, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputComponent, "app-rd-input", never, { "label": "label"; "symbol": "symbol"; "name": "name"; "disabled": "disabled"; "maskNumber": "maskNumber"; "maskType": "maskType"; "type": "type"; "required": "required"; "min": "min"; "max": "max"; "minLength": "minLength"; "maxLength": "maxLength"; "pattern": "pattern"; "customValidator": "customValidator"; "errorMessages": "errorMessages"; }, { "valueChange": "valueChange"; "focus": "focus"; "blur": "blur"; }, never, ["*"], false, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputComponent, "app-rd-input", never, { "lang": "lang"; "label": "label"; "symbol": "symbol"; "name": "name"; "disabled": "disabled"; "maskNumber": "maskNumber"; "maskType": "maskType"; "type": "type"; "required": "required"; "min": "min"; "max": "max"; "minLength": "minLength"; "maxLength": "maxLength"; "pattern": "pattern"; "customValidator": "customValidator"; "errorMessages": "errorMessages"; }, { "valueChange": "valueChange"; "focus": "focus"; "blur": "blur"; }, never, ["*"], false, never>;
47
48
  }
@@ -3,6 +3,7 @@ import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } fr
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class CustomInputAmountComponent implements ControlValueAccessor, Validator {
5
5
  private cdr;
6
+ lang: string;
6
7
  label: string;
7
8
  symbol: string;
8
9
  name: string;
@@ -39,5 +40,5 @@ export declare class CustomInputAmountComponent implements ControlValueAccessor,
39
40
  validate(control: AbstractControl): ValidationErrors | null;
40
41
  writeValue(value: string | number | null): void;
41
42
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputAmountComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputAmountComponent, "app-rd-input-amount", never, { "label": "label"; "symbol": "symbol"; "name": "name"; "disabled": "disabled"; "min": "min"; "max": "max"; "nzPrecision": "nzPrecision"; "allowNegativeNumbers": "allowNegativeNumbers"; "required": "required"; "errorMessages": "errorMessages"; }, { "blur": "blur"; "focus": "focus"; "valueChange": "valueChange"; }, never, ["[slot='token']", "*"], false, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputAmountComponent, "app-rd-input-amount", never, { "lang": "lang"; "label": "label"; "symbol": "symbol"; "name": "name"; "disabled": "disabled"; "min": "min"; "max": "max"; "nzPrecision": "nzPrecision"; "allowNegativeNumbers": "allowNegativeNumbers"; "required": "required"; "errorMessages": "errorMessages"; }, { "blur": "blur"; "focus": "focus"; "valueChange": "valueChange"; }, never, ["[slot='token']", "*"], false, never>;
43
44
  }
@@ -1,6 +1,7 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class CustomPaginatorComponent {
4
+ lang: string;
4
5
  pageIndex: number;
5
6
  pageSize: number;
6
7
  currentTotalSize: number;
@@ -16,5 +17,5 @@ export declare class CustomPaginatorComponent {
16
17
  nzPageSizeChange(e: any): void;
17
18
  nzPageIndexChange(e: any): void;
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomPaginatorComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomPaginatorComponent, "app-rd-pagination", never, { "pageIndex": "pageIndex"; "pageSize": "pageSize"; "currentTotalSize": "currentTotalSize"; "totalSize": "totalSize"; "specilMargin": "specilMargin"; "showLeftPageDorp": "showLeftPageDorp"; "isWhiteBg": "isWhiteBg"; "totalItemsText": "totalItemsText"; "pageText": "pageText"; }, { "changePageSize": "changePageSize"; "changePageIndex": "changePageIndex"; }, never, never, false, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomPaginatorComponent, "app-rd-pagination", never, { "lang": "lang"; "pageIndex": "pageIndex"; "pageSize": "pageSize"; "currentTotalSize": "currentTotalSize"; "totalSize": "totalSize"; "specilMargin": "specilMargin"; "showLeftPageDorp": "showLeftPageDorp"; "isWhiteBg": "isWhiteBg"; "totalItemsText": "totalItemsText"; "pageText": "pageText"; }, { "changePageSize": "changePageSize"; "changePageIndex": "changePageIndex"; }, never, never, false, never>;
20
21
  }
@@ -4,6 +4,7 @@ import { ISelectOption } from '../../types/common.type';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class CustomSelectComponent implements ControlValueAccessor {
6
6
  private cdr;
7
+ lang: string;
7
8
  label: string;
8
9
  customTpl: any;
9
10
  optionTpl: any;
@@ -47,5 +48,5 @@ export declare class CustomSelectComponent implements ControlValueAccessor {
47
48
  onSearch(searchValue: string): void;
48
49
  handleOpenChange(value: boolean): void;
49
50
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomSelectComponent, never>;
50
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomSelectComponent, "app-rd-select", never, { "label": "label"; "customTpl": "customTpl"; "optionTpl": "optionTpl"; "name": "name"; "disabled": "disabled"; "nzMode": "nzMode"; "isCurrency": "isCurrency"; "currencyUrlMap": "currencyUrlMap"; "optionHeightPx": "optionHeightPx"; "isLoading": "isLoading"; "isShowSearch": "isShowSearch"; "isRemoteSearch": "isRemoteSearch"; "options": "options"; "errorMessages": "errorMessages"; }, { "searchChange": "searchChange"; "valueChange": "valueChange"; "scrollToBottomEmit": "scrollToBottomEmit"; }, never, never, false, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomSelectComponent, "app-rd-select", never, { "lang": "lang"; "label": "label"; "customTpl": "customTpl"; "optionTpl": "optionTpl"; "name": "name"; "disabled": "disabled"; "nzMode": "nzMode"; "isCurrency": "isCurrency"; "currencyUrlMap": "currencyUrlMap"; "optionHeightPx": "optionHeightPx"; "isLoading": "isLoading"; "isShowSearch": "isShowSearch"; "isRemoteSearch": "isRemoteSearch"; "options": "options"; "errorMessages": "errorMessages"; }, { "searchChange": "searchChange"; "valueChange": "valueChange"; "scrollToBottomEmit": "scrollToBottomEmit"; }, never, never, false, never>;
51
52
  }
@@ -3,6 +3,7 @@ import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator, Val
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class CustomTextareaComponent implements ControlValueAccessor, Validator {
5
5
  private cdr;
6
+ lang: string;
6
7
  label: string;
7
8
  name: string;
8
9
  disabled: boolean;
@@ -37,5 +38,5 @@ export declare class CustomTextareaComponent implements ControlValueAccessor, Va
37
38
  handleValueChange(value: string): void;
38
39
  validate(control: AbstractControl | null): ValidationErrors | null;
39
40
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomTextareaComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomTextareaComponent, "app-rd-textarea", never, { "label": "label"; "name": "name"; "disabled": "disabled"; "required": "required"; "minLength": "minLength"; "maxLength": "maxLength"; "pattern": "pattern"; "customValidator": "customValidator"; "nzAutosize": "nzAutosize"; "errorMessages": "errorMessages"; }, { "valueChange": "valueChange"; "focus": "focus"; "blur": "blur"; }, never, never, false, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomTextareaComponent, "app-rd-textarea", never, { "lang": "lang"; "label": "label"; "name": "name"; "disabled": "disabled"; "required": "required"; "minLength": "minLength"; "maxLength": "maxLength"; "pattern": "pattern"; "customValidator": "customValidator"; "nzAutosize": "nzAutosize"; "errorMessages": "errorMessages"; }, { "valueChange": "valueChange"; "focus": "focus"; "blur": "blur"; }, never, never, false, never>;
41
42
  }
@@ -0,0 +1,17 @@
1
+ export interface TranslationKeys {
2
+ pleaseEnter: string;
3
+ lengthCannotBeLess: string;
4
+ lengthCannotExceed: string;
5
+ validationFailed: string;
6
+ cannotBeLessThan: string;
7
+ cannotExceed: string;
8
+ maxDecimalPlaces: string;
9
+ clearFilter: string;
10
+ }
11
+ export interface Translations {
12
+ en: TranslationKeys;
13
+ zh: TranslationKeys;
14
+ [key: string]: TranslationKeys;
15
+ }
16
+ export declare const translations: Translations;
17
+ export declare function getTranslation(lang: string, key: keyof TranslationKeys): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rd-outer-component",
3
- "version": "0.0.71",
3
+ "version": "0.0.73",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "15.2.10",
6
6
  "@angular/core": "15.2.10",