rd-outer-component 0.1.38 → 0.1.40

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.
Files changed (30) hide show
  1. package/esm2020/lib/modules/custom-checkbox/custom-checkbox.component.mjs +6 -19
  2. package/esm2020/lib/modules/custom-date/custom-date.component.mjs +7 -25
  3. package/esm2020/lib/modules/custom-filter/custom-filter-date/custom-filter-date.component.mjs +4 -23
  4. package/esm2020/lib/modules/custom-filter/custom-filter.component.mjs +1 -1
  5. package/esm2020/lib/modules/custom-input/custom-input.component.mjs +4 -17
  6. package/esm2020/lib/modules/custom-input-amount/custom-input-amount.component.mjs +3 -17
  7. package/esm2020/lib/modules/custom-radio/custom-radio.component.mjs +4 -17
  8. package/esm2020/lib/modules/custom-select/industry-cascader/industry-cascader.component.mjs +7 -25
  9. package/esm2020/lib/modules/custom-select/pure-select-token/pure-select-token.component.mjs +1 -1
  10. package/esm2020/lib/modules/custom-select/rd-select.component.mjs +1 -1
  11. package/esm2020/lib/modules/form-item/form-item.component.mjs +4 -17
  12. package/esm2020/lib/modules/rd-button/rd-button.component.mjs +7 -18
  13. package/esm2020/lib/modules/rd-phone/rd-phone.component.mjs +5 -18
  14. package/esm2020/lib/modules/rd-select-value/rd-select-value.component.mjs +7 -27
  15. package/fesm2015/rd-outer-component.mjs +40 -205
  16. package/fesm2015/rd-outer-component.mjs.map +1 -1
  17. package/fesm2020/rd-outer-component.mjs +40 -205
  18. package/fesm2020/rd-outer-component.mjs.map +1 -1
  19. package/lib/modules/custom-checkbox/custom-checkbox.component.d.ts +1 -4
  20. package/lib/modules/custom-date/custom-date.component.d.ts +1 -4
  21. package/lib/modules/custom-filter/custom-filter-date/custom-filter-date.component.d.ts +1 -4
  22. package/lib/modules/custom-input/custom-input.component.d.ts +1 -4
  23. package/lib/modules/custom-input-amount/custom-input-amount.component.d.ts +1 -4
  24. package/lib/modules/custom-radio/custom-radio.component.d.ts +1 -4
  25. package/lib/modules/custom-select/industry-cascader/industry-cascader.component.d.ts +1 -4
  26. package/lib/modules/form-item/form-item.component.d.ts +1 -4
  27. package/lib/modules/rd-button/rd-button.component.d.ts +1 -4
  28. package/lib/modules/rd-phone/rd-phone.component.d.ts +1 -4
  29. package/lib/modules/rd-select-value/rd-select-value.component.d.ts +1 -4
  30. package/package.json +1 -1
@@ -9,9 +9,6 @@ export declare class CustomCheckboxComponent implements ControlValueAccessor {
9
9
  disabled: boolean;
10
10
  type: '' | 'isBpn';
11
11
  /** Local color context. Omit to inherit body `.theme-light` / `.theme-dark`. */
12
- theme?: 'light' | 'dark';
13
- get hostThemeLight(): boolean;
14
- get hostThemeDark(): boolean;
15
12
  set options(val: any);
16
13
  get options(): any;
17
14
  valueChange: EventEmitter<ISelectOption[]>;
@@ -27,5 +24,5 @@ export declare class CustomCheckboxComponent implements ControlValueAccessor {
27
24
  registerOnTouched(fn: any): void;
28
25
  handleValueChange(value: ISelectOption[]): void;
29
26
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomCheckboxComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomCheckboxComponent, "app-rd-checkbox", never, { "label": "label"; "name": "name"; "disabled": "disabled"; "type": "type"; "theme": "theme"; "options": "options"; }, { "valueChange": "valueChange"; }, never, never, false, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomCheckboxComponent, "app-rd-checkbox", never, { "label": "label"; "name": "name"; "disabled": "disabled"; "type": "type"; "options": "options"; }, { "valueChange": "valueChange"; }, never, never, false, never>;
31
28
  }
@@ -14,13 +14,10 @@ export declare class CustomDateComponent implements ControlValueAccessor, Valida
14
14
  name: string;
15
15
  placeholder: string;
16
16
  /** Local color context. Omit to inherit body `.theme-light` / `.theme-dark`. */
17
- theme?: 'light' | 'dark';
18
17
  errorMessages: {
19
18
  [key: string]: string;
20
19
  };
21
20
  datePicker: NzDatePickerComponent;
22
- get hostThemeLight(): boolean;
23
- get hostThemeDark(): boolean;
24
21
  get popupClassName(): string;
25
22
  inputValue: [string, string] | string | null;
26
23
  isPickerOpen: boolean;
@@ -46,5 +43,5 @@ export declare class CustomDateComponent implements ControlValueAccessor, Valida
46
43
  ngAfterViewInit(): void;
47
44
  disabledEndDate: (current: Date) => boolean;
48
45
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomDateComponent, never>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomDateComponent, "app-rd-date", never, { "disabled": "disabled"; "disabledDate": "disabledDate"; "label": "label"; "type": "type"; "required": "required"; "name": "name"; "placeholder": "placeholder"; "theme": "theme"; "errorMessages": "errorMessages"; }, {}, never, never, false, 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>;
50
47
  }
@@ -10,9 +10,6 @@ export declare class RdFilterDateComponent implements OnChanges {
10
10
  handleChangeValue: EventEmitter<any>;
11
11
  isPickerOpen: boolean;
12
12
  inputValue: Date[];
13
- theme?: 'light' | 'dark';
14
- get hostThemeLight(): boolean;
15
- get hostThemeDark(): boolean;
16
13
  disabledDate: (current: Date) => boolean;
17
14
  ngOnChanges(changes: SimpleChanges): void;
18
15
  openPicker(): void;
@@ -20,5 +17,5 @@ export declare class RdFilterDateComponent implements OnChanges {
20
17
  onOpenChange(open: any): void;
21
18
  get popupClassName(): string;
22
19
  static ɵfac: i0.ɵɵFactoryDeclaration<RdFilterDateComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<RdFilterDateComponent, "app-rd-filter-date", never, { "item": "item"; "theme": "theme"; }, { "handleChangeValue": "handleChangeValue"; }, never, never, false, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<RdFilterDateComponent, "app-rd-filter-date", never, { "item": "item"; }, { "handleChangeValue": "handleChangeValue"; }, never, never, false, never>;
24
21
  }
@@ -14,7 +14,6 @@ export declare class CustomInputComponent implements ControlValueAccessor, Valid
14
14
  type: 'password' | 'text' | 'select';
15
15
  allowNegativeNumbers: boolean;
16
16
  /** Local color context. Omit to inherit body `.theme-light` / `.theme-dark`. */
17
- theme?: 'light' | 'dark';
18
17
  required: boolean;
19
18
  placeholder?: string;
20
19
  min?: number;
@@ -30,8 +29,6 @@ export declare class CustomInputComponent implements ControlValueAccessor, Valid
30
29
  valueChange: EventEmitter<string>;
31
30
  focus: EventEmitter<void>;
32
31
  blur: EventEmitter<void>;
33
- get hostThemeLight(): boolean;
34
- get hostThemeDark(): boolean;
35
32
  value: string;
36
33
  isFocused: boolean;
37
34
  private touched;
@@ -53,5 +50,5 @@ export declare class CustomInputComponent implements ControlValueAccessor, Valid
53
50
  handleValueChange(value: string): void;
54
51
  validate(control: AbstractControl | null): ValidationErrors | null;
55
52
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputComponent, never>;
56
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputComponent, "app-rd-input", never, { "label": "label"; "symbol": "symbol"; "name": "name"; "disabled": "disabled"; "maskNumber": "maskNumber"; "maskType": "maskType"; "type": "type"; "allowNegativeNumbers": "allowNegativeNumbers"; "theme": "theme"; "required": "required"; "placeholder": "placeholder"; "min": "min"; "max": "max"; "minLength": "minLength"; "maxLength": "maxLength"; "pattern": "pattern"; "customValidator": "customValidator"; "size": "size"; "errorMessages": "errorMessages"; }, { "valueChange": "valueChange"; "focus": "focus"; "blur": "blur"; }, never, ["*"], false, never>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputComponent, "app-rd-input", never, { "label": "label"; "symbol": "symbol"; "name": "name"; "disabled": "disabled"; "maskNumber": "maskNumber"; "maskType": "maskType"; "type": "type"; "allowNegativeNumbers": "allowNegativeNumbers"; "required": "required"; "placeholder": "placeholder"; "min": "min"; "max": "max"; "minLength": "minLength"; "maxLength": "maxLength"; "pattern": "pattern"; "customValidator": "customValidator"; "size": "size"; "errorMessages": "errorMessages"; }, { "valueChange": "valueChange"; "focus": "focus"; "blur": "blur"; }, never, ["*"], false, never>;
57
54
  }
@@ -21,7 +21,6 @@ export declare class CustomInputAmountComponent implements ControlValueAccessor,
21
21
  blur: EventEmitter<void>;
22
22
  focus: EventEmitter<void>;
23
23
  valueChange: EventEmitter<string>;
24
- theme?: 'light' | 'dark';
25
24
  inputValue: string;
26
25
  private value;
27
26
  private touched;
@@ -31,8 +30,6 @@ export declare class CustomInputAmountComponent implements ControlValueAccessor,
31
30
  private onTouched;
32
31
  private onValidatorChange;
33
32
  constructor(cdr: ChangeDetectorRef, translate: TranslateService);
34
- get hostThemeLight(): boolean;
35
- get hostThemeDark(): boolean;
36
33
  get currentErrorMessage(): string;
37
34
  get showError(): boolean;
38
35
  handleValueChange(value: string): void;
@@ -45,5 +42,5 @@ export declare class CustomInputAmountComponent implements ControlValueAccessor,
45
42
  validate(control: AbstractControl): ValidationErrors | null;
46
43
  writeValue(value: string | number | null): void;
47
44
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputAmountComponent, never>;
48
- 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"; "nzSize": "nzSize"; "errorMessages": "errorMessages"; "clearError": "clearError"; "theme": "theme"; }, { "blur": "blur"; "focus": "focus"; "valueChange": "valueChange"; }, never, ["[slot='token']", "*"], false, never>;
45
+ 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"; "nzSize": "nzSize"; "errorMessages": "errorMessages"; "clearError": "clearError"; }, { "blur": "blur"; "focus": "focus"; "valueChange": "valueChange"; }, never, ["[slot='token']", "*"], false, never>;
49
46
  }
@@ -12,9 +12,6 @@ export declare class CustomRadioComponent implements ControlValueAccessor {
12
12
  direction: 'horizontal' | 'vertical';
13
13
  allowDeselect: boolean;
14
14
  /** Local color context. Omit to inherit body `.theme-light` / `.theme-dark`. */
15
- theme?: 'light' | 'dark';
16
- get hostThemeLight(): boolean;
17
- get hostThemeDark(): boolean;
18
15
  set options(val: ISelectOption[]);
19
16
  get options(): ISelectOption[];
20
17
  valueChange: EventEmitter<ISelectOption | null>;
@@ -36,5 +33,5 @@ export declare class CustomRadioComponent implements ControlValueAccessor {
36
33
  handleRadioClick(optionValue: any): void;
37
34
  isOptionSelected(optionValue: any): boolean;
38
35
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomRadioComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomRadioComponent, "app-rd-radio", never, { "label": "label"; "name": "name"; "disabled": "disabled"; "size": "size"; "direction": "direction"; "allowDeselect": "allowDeselect"; "theme": "theme"; "options": "options"; }, { "valueChange": "valueChange"; }, never, never, false, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomRadioComponent, "app-rd-radio", never, { "label": "label"; "name": "name"; "disabled": "disabled"; "size": "size"; "direction": "direction"; "allowDeselect": "allowDeselect"; "options": "options"; }, { "valueChange": "valueChange"; }, never, never, false, never>;
40
37
  }
@@ -18,9 +18,6 @@ export declare class IndustryCascaderComponent implements OnInit, OnChanges, Con
18
18
  label: string;
19
19
  name: string;
20
20
  /** Local color context. Omit to inherit body `.theme-light` / `.theme-dark`. */
21
- theme?: 'light' | 'dark';
22
- get hostThemeLight(): boolean;
23
- get hostThemeDark(): boolean;
24
21
  get drawerWrapClassName(): string;
25
22
  options: NzCascaderOption[];
26
23
  searchInput: string;
@@ -77,5 +74,5 @@ export declare class IndustryCascaderComponent implements OnInit, OnChanges, Con
77
74
  openChildrenMobile(opt: any): void;
78
75
  doMobileSearch(value: string): void;
79
76
  static ɵfac: i0.ɵɵFactoryDeclaration<IndustryCascaderComponent, never>;
80
- static ɵcmp: i0.ɵɵComponentDeclaration<IndustryCascaderComponent, "app-industry-cascader", never, { "disabled": "disabled"; "errorMessages": "errorMessages"; "industryCodes": "industryCodes"; "label": "label"; "name": "name"; "theme": "theme"; }, { "valueChange": "valueChange"; }, never, never, false, never>;
77
+ static ɵcmp: i0.ɵɵComponentDeclaration<IndustryCascaderComponent, "app-industry-cascader", never, { "disabled": "disabled"; "errorMessages": "errorMessages"; "industryCodes": "industryCodes"; "label": "label"; "name": "name"; }, { "valueChange": "valueChange"; }, never, never, false, never>;
81
78
  }
@@ -8,11 +8,8 @@ export declare class FormItemComponent {
8
8
  value?: string | number | any;
9
9
  size?: 'small' | 'normal';
10
10
  /** Local color context. Omit to inherit body `.theme-light` / `.theme-dark`. */
11
- theme?: 'light' | 'dark';
12
- get hostThemeLight(): boolean;
13
- get hostThemeDark(): boolean;
14
11
  get isShowSelectIcon(): boolean;
15
12
  get isShowDateIcon(): boolean;
16
13
  static ɵfac: i0.ɵɵFactoryDeclaration<FormItemComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<FormItemComponent, "app-rd-form-item", never, { "errorMessage": "errorMessage"; "disabled": "disabled"; "label": "label"; "type": "type"; "focus": "focus"; "value": "value"; "size": "size"; "theme": "theme"; }, {}, never, ["*"], false, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormItemComponent, "app-rd-form-item", never, { "errorMessage": "errorMessage"; "disabled": "disabled"; "label": "label"; "type": "type"; "focus": "focus"; "value": "value"; "size": "size"; }, {}, never, ["*"], false, never>;
18
15
  }
@@ -38,9 +38,6 @@ export declare class RdButtonComponent {
38
38
  click: EventEmitter<MouseEvent>;
39
39
  minWidth: number;
40
40
  /** Local color context. Omit to inherit body `.theme-light` / `.theme-dark`. */
41
- theme?: 'light' | 'dark';
42
- get hostThemeLight(): boolean;
43
- get hostThemeDark(): boolean;
44
41
  /** 获取 ng-zorro 的 nzType,兼容现有代码 */
45
42
  get nzType(): NzButtonType;
46
43
  /** 获取 ng-zorro 的 nzShape */
@@ -56,6 +53,6 @@ export declare class RdButtonComponent {
56
53
  /** 检查是否有内容(除了图标) */
57
54
  get hasContent(): boolean;
58
55
  static ɵfac: i0.ɵɵFactoryDeclaration<RdButtonComponent, never>;
59
- static ɵcmp: i0.ɵɵComponentDeclaration<RdButtonComponent, "app-rd-button", never, { "type": "type"; "size": "size"; "shape": "shape"; "disabled": "disabled"; "loading": "loading"; "block": "block"; "htmlType": "htmlType"; "outline": "outline"; "ghost": "ghost"; "dashed": "dashed"; "icon": "icon"; "danger": "danger"; "minWidth": "minWidth"; "theme": "theme"; }, { "click": "click"; }, never, ["*"], false, never>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<RdButtonComponent, "app-rd-button", never, { "type": "type"; "size": "size"; "shape": "shape"; "disabled": "disabled"; "loading": "loading"; "block": "block"; "htmlType": "htmlType"; "outline": "outline"; "ghost": "ghost"; "dashed": "dashed"; "icon": "icon"; "danger": "danger"; "minWidth": "minWidth"; }, { "click": "click"; }, never, ["*"], false, never>;
60
57
  }
61
58
  export {};
@@ -9,18 +9,15 @@ export declare class RdPhoneComponent implements OnInit, OnDestroy {
9
9
  label: string;
10
10
  required: boolean;
11
11
  /** Local color context. Omit to inherit body `.theme-light` / `.theme-dark`. */
12
- theme?: 'light' | 'dark';
13
12
  /** Area codes to exclude from the dropdown (e.g. ['+86']) */
14
13
  excludeAreaCodes: any[];
15
14
  /** Full area-code list from the host (e.g. commonService.areaDictionary) */
16
15
  areaCodeOptions: any[];
17
16
  get filteredAreaCodeOptions(): any[];
18
17
  private destroy$;
19
- get hostThemeLight(): boolean;
20
- get hostThemeDark(): boolean;
21
18
  constructor();
22
19
  ngOnInit(): void;
23
20
  ngOnDestroy(): void;
24
21
  static ɵfac: i0.ɵɵFactoryDeclaration<RdPhoneComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<RdPhoneComponent, "app-rd-phone", never, { "form": "form"; "areaCodeControlName": "areaCodeControlName"; "phoneControlName": "phoneControlName"; "label": "label"; "required": "required"; "theme": "theme"; "excludeAreaCodes": "excludeAreaCodes"; "areaCodeOptions": "areaCodeOptions"; }, {}, never, never, false, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<RdPhoneComponent, "app-rd-phone", never, { "form": "form"; "areaCodeControlName": "areaCodeControlName"; "phoneControlName": "phoneControlName"; "label": "label"; "required": "required"; "excludeAreaCodes": "excludeAreaCodes"; "areaCodeOptions": "areaCodeOptions"; }, {}, never, never, false, never>;
26
23
  }
@@ -15,9 +15,6 @@ export declare class RdSelectValueComponent implements ControlValueAccessor {
15
15
  label: string;
16
16
  name: string;
17
17
  /** Local color context. Omit to inherit body `.theme-light` / `.theme-dark`. */
18
- theme?: 'light' | 'dark';
19
- get hostThemeLight(): boolean;
20
- get hostThemeDark(): boolean;
21
18
  get dropdownClassName(): string;
22
19
  value: any;
23
20
  isDisabled: boolean;
@@ -37,5 +34,5 @@ export declare class RdSelectValueComponent implements ControlValueAccessor {
37
34
  registerOnTouched(fn: () => void): void;
38
35
  setDisabledState(isDisabled: boolean): void;
39
36
  static ɵfac: i0.ɵɵFactoryDeclaration<RdSelectValueComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<RdSelectValueComponent, "app-rd-select-value", never, { "options": "options"; "isShowSearch": "isShowSearch"; "isShowErrorTip": "isShowErrorTip"; "placeholder": "placeholder"; "label": "label"; "name": "name"; "theme": "theme"; }, {}, never, never, false, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<RdSelectValueComponent, "app-rd-select-value", never, { "options": "options"; "isShowSearch": "isShowSearch"; "isShowErrorTip": "isShowErrorTip"; "placeholder": "placeholder"; "label": "label"; "name": "name"; }, {}, never, never, false, never>;
41
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rd-outer-component",
3
- "version": "0.1.38",
3
+ "version": "0.1.40",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "15.2.10",
6
6
  "@angular/core": "15.2.10",