rd-outer-component 0.0.46 → 0.0.47
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.
- package/esm2020/lib/modules/custom-select/custom-select.component.mjs +52 -5
- package/esm2020/lib/modules/custom-select/custom-select.module.mjs +7 -3
- package/esm2020/lib/modules/custom-select/pure-select-token/pure-select-token.component.mjs +2 -2
- package/esm2020/lib/modules/custom-textarea/custom-textarea.component.mjs +2 -2
- package/esm2020/lib/modules/form-item/form-item.component.mjs +5 -3
- package/fesm2015/rd-outer-component.mjs +103 -50
- package/fesm2015/rd-outer-component.mjs.map +1 -1
- package/fesm2020/rd-outer-component.mjs +101 -50
- package/fesm2020/rd-outer-component.mjs.map +1 -1
- package/lib/modules/custom-select/custom-select.component.d.ts +12 -2
- package/lib/modules/custom-select/custom-select.module.d.ts +2 -1
- package/lib/modules/form-item/form-item.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, ValidationErrors } from '@angular/forms';
|
|
3
3
|
import { ISelectOption } from '../../types/common.type';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CustomSelectComponent implements ControlValueAccessor {
|
|
@@ -12,11 +12,15 @@ export declare class CustomSelectComponent implements ControlValueAccessor {
|
|
|
12
12
|
nzMode: 'multiple' | 'default';
|
|
13
13
|
isCurrency?: boolean;
|
|
14
14
|
currencyUrlMap?: Record<string, string>;
|
|
15
|
+
optionHeightPx?: number;
|
|
15
16
|
isLoading: boolean;
|
|
16
17
|
isShowSearch: boolean;
|
|
17
18
|
isRemoteSearch: boolean;
|
|
18
19
|
set options(val: ISelectOption[]);
|
|
19
20
|
get options(): ISelectOption[];
|
|
21
|
+
errorMessages: {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
20
24
|
searchChange: EventEmitter<string>;
|
|
21
25
|
valueChange: EventEmitter<ISelectOption | ISelectOption[]>;
|
|
22
26
|
scrollToBottomEmit: EventEmitter<void>;
|
|
@@ -28,7 +32,12 @@ export declare class CustomSelectComponent implements ControlValueAccessor {
|
|
|
28
32
|
onChange: (value: ISelectOption | ISelectOption[] | undefined) => void;
|
|
29
33
|
onTouched: () => void;
|
|
30
34
|
isFocus: boolean;
|
|
35
|
+
isOpen: boolean;
|
|
36
|
+
private control;
|
|
37
|
+
get currentErrorMessage(): string;
|
|
38
|
+
get showError(): boolean;
|
|
31
39
|
constructor(cdr: ChangeDetectorRef);
|
|
40
|
+
validate(control: AbstractControl | null): ValidationErrors | null;
|
|
32
41
|
setDisabledState(isDisabled: boolean): void;
|
|
33
42
|
writeValue(value: ISelectOption | ISelectOption[]): void;
|
|
34
43
|
registerOnChange(fn: any): void;
|
|
@@ -36,6 +45,7 @@ export declare class CustomSelectComponent implements ControlValueAccessor {
|
|
|
36
45
|
handleValueChange(value: ISelectOption['value'] | ISelectOption['value'][]): void;
|
|
37
46
|
onScrollToBottom(): void;
|
|
38
47
|
onSearch(searchValue: string): void;
|
|
48
|
+
handleOpenChange(value: boolean): void;
|
|
39
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomSelectComponent, never>;
|
|
40
|
-
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"; "isLoading": "isLoading"; "isShowSearch": "isShowSearch"; "isRemoteSearch": "isRemoteSearch"; "options": "options"; }, { "searchChange": "searchChange"; "valueChange": "valueChange"; "scrollToBottomEmit": "scrollToBottomEmit"; }, never, never, false, 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>;
|
|
41
51
|
}
|
|
@@ -4,8 +4,9 @@ import * as i2 from "@angular/common";
|
|
|
4
4
|
import * as i3 from "@angular/forms";
|
|
5
5
|
import * as i4 from "ng-zorro-antd/spin";
|
|
6
6
|
import * as i5 from "ng-zorro-antd/select";
|
|
7
|
+
import * as i6 from "../form-item/form-item.module";
|
|
7
8
|
export declare class RdSelectModule {
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdSelectModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RdSelectModule, [typeof i1.CustomSelectComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.NzSpinModule, typeof i5.NzSelectModule], [typeof i1.CustomSelectComponent]>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RdSelectModule, [typeof i1.CustomSelectComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.NzSpinModule, typeof i5.NzSelectModule, typeof i6.FormItemModule], [typeof i1.CustomSelectComponent]>;
|
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<RdSelectModule>;
|
|
11
12
|
}
|
|
@@ -5,8 +5,9 @@ export declare class FormItemComponent {
|
|
|
5
5
|
label?: string;
|
|
6
6
|
type?: 'select';
|
|
7
7
|
focus?: boolean;
|
|
8
|
+
value?: string | number | any;
|
|
8
9
|
size?: 'small' | 'normal';
|
|
9
10
|
get isShowSelectIcon(): boolean;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormItemComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormItemComponent, "app-rd-form-item", never, { "errorMessage": "errorMessage"; "disabled": "disabled"; "label": "label"; "type": "type"; "focus": "focus"; "size": "size"; }, {}, never, ["*"], false, never>;
|
|
12
|
+
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>;
|
|
12
13
|
}
|