@seniorsistemas/angular-components 19.3.2 → 19.3.3
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/dynamic-form/dynamic-form/components/lookup/lookup.component.d.ts +2 -2
- package/dynamic-form/dynamic-form/components/lookup/types/lookup-models.d.ts +4 -0
- package/dynamic-form/dynamic-form/form-field/configurations/fields/lookup-field.d.ts +2 -1
- package/dynamic-form/public-api.d.ts +1 -0
- package/esm2022/dynamic-form/dynamic-form/components/lookup/lookup.component.mjs +7 -10
- package/esm2022/dynamic-form/dynamic-form/components/lookup/types/lookup-models.mjs +2 -0
- package/esm2022/dynamic-form/dynamic-form/form-field/configurations/fields/lookup-field.mjs +1 -1
- package/esm2022/dynamic-form/public-api.mjs +1 -1
- package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs +4 -7
- package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs.map +1 -1
- package/package.json +13 -13
|
@@ -16,6 +16,7 @@ import { TextFieldConfig } from '../../form-field/configurations/fields/text-fie
|
|
|
16
16
|
import { LookupSearchRequest } from './models/lookup-api.model';
|
|
17
17
|
import { DefaultFilter } from './types/default-filter';
|
|
18
18
|
import { LabelOptions } from './types/label-options';
|
|
19
|
+
import { LookupGridFields } from './types/lookup-models';
|
|
19
20
|
import * as i0 from "@angular/core";
|
|
20
21
|
export declare class LookupComponent implements ControlValueAccessor, OnChanges, OnInit, OnDestroy {
|
|
21
22
|
private readonly hotkeysService;
|
|
@@ -45,7 +46,7 @@ export declare class LookupComponent implements ControlValueAccessor, OnChanges,
|
|
|
45
46
|
searchFields: (DynamicType & {
|
|
46
47
|
customName?: string;
|
|
47
48
|
})[];
|
|
48
|
-
searchGridFields:
|
|
49
|
+
searchGridFields: LookupGridFields[];
|
|
49
50
|
multiSortMeta: SortMeta[];
|
|
50
51
|
placeholder?: string;
|
|
51
52
|
sortableColumnsDisabled: string[];
|
|
@@ -112,7 +113,6 @@ export declare class LookupComponent implements ControlValueAccessor, OnChanges,
|
|
|
112
113
|
getBadgeFromValue(value: unknown, field: SelectFieldConfig): Partial<Pick<import("@seniorsistemas/angular-components/badge").BadgeComponent, "type" | "iconClass" | "color" | "iconPosition">> | undefined;
|
|
113
114
|
getLabelForValue(value: unknown, field: SelectFieldConfig): string;
|
|
114
115
|
isBooleanValue(obj: any, path: string): boolean;
|
|
115
|
-
getFieldWidth(col: any): any;
|
|
116
116
|
getBooleanLabel(obj: any, path: string, optionsLabel: BooleanOptionsLabel | undefined): string | undefined;
|
|
117
117
|
isNumber(obj: any, path: string): boolean;
|
|
118
118
|
setHotkeys(): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { LookupSearchRequest } from '../../../components/lookup/models/lookup-api.model';
|
|
3
3
|
import { DynamicType, FieldConfig } from './field';
|
|
4
|
+
import { LookupGridFields } from '../../../components/lookup/types/lookup-models';
|
|
4
5
|
/**
|
|
5
6
|
* Dados retornados pelo Observable de pesquisa avançada do Lookup.
|
|
6
7
|
*/
|
|
@@ -47,7 +48,7 @@ export interface LookupFieldConfig extends FieldConfig {
|
|
|
47
48
|
* Colunas exibidas na grade de resultados do diálogo de pesquisa.
|
|
48
49
|
* Cada item define uma coluna com header e campo de dados.
|
|
49
50
|
*/
|
|
50
|
-
searchGridFields:
|
|
51
|
+
searchGridFields: LookupGridFields[];
|
|
51
52
|
/**
|
|
52
53
|
* Observable que emite sugestões para o autocompletar do input do lookup.
|
|
53
54
|
* Deve emitir um array de objetos com a propriedade `lookupDisplayField`.
|
|
@@ -31,6 +31,7 @@ export { type StarRatingFieldConfig } from './dynamic-form/form-field/configurat
|
|
|
31
31
|
export { type TextAreaFieldConfig } from './dynamic-form/form-field/configurations/fields/text-area-field';
|
|
32
32
|
export { type ContentGeneratorFieldConfig } from './dynamic-form/form-field/configurations/fields/content-generator-field';
|
|
33
33
|
export { type TextFieldConfig } from './dynamic-form/form-field/configurations/fields/text-field';
|
|
34
|
+
export { type LookupGridFields } from './dynamic-form/components/lookup/types/lookup-models';
|
|
34
35
|
export { FieldSize } from './dynamic-form/form-field/configurations/field-size';
|
|
35
36
|
export { NumberFieldComponent } from './dynamic-form/form-field/fields/number/number-field.component';
|
|
36
37
|
export type { DynamicType, FieldConfig, FieldType, FieldTypeMap, } from './dynamic-form/form-field/configurations/fields/field';
|