tycho-components 0.0.10-SNAPSHOT-4 → 0.0.10-SNAPSHOT-5
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/dist/AppColorpicker/AppColorpicker.d.ts +1 -1
- package/dist/AppEditable/AppEditable.d.ts +2 -2
- package/dist/AppEditable/AppEditableField.d.ts +2 -2
- package/dist/AppEditable/FormField.d.ts +3 -3
- package/dist/AppEditable/FormFieldOption.d.ts +1 -2
- package/dist/Participants/types/Participant.d.ts +1 -1
- package/dist/Participants/types/ParticipantService.d.ts +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import FormFieldOption from './FormFieldOption';
|
|
1
|
+
import { FormFieldOption } from './FormFieldOption';
|
|
2
2
|
export type FieldOperations = 'create' | 'update' | 'delete';
|
|
3
|
-
export
|
|
3
|
+
export type FormField = {
|
|
4
4
|
name: string;
|
|
5
5
|
title?: string;
|
|
6
6
|
type: string;
|
|
@@ -11,5 +11,5 @@ export default interface FormField {
|
|
|
11
11
|
default?: string | boolean | number;
|
|
12
12
|
role?: string;
|
|
13
13
|
fn?: (value: any) => string;
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
export declare const validateFormField: (entity: Record<string, unknown>, fields: FormField[]) => FormField[];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export type FieldValue = string | number | boolean | Date | null;
|
|
2
|
-
type FormFieldOption = {
|
|
2
|
+
export type FormFieldOption = {
|
|
3
3
|
label: string;
|
|
4
4
|
value: FieldValue;
|
|
5
5
|
};
|
|
6
6
|
export declare const convertEnum: (values: any, skipEmpty?: boolean) => FormFieldOption[];
|
|
7
7
|
export declare const convertList: (values: Array<Record<string, unknown>>, keyAttr: string, valueAttr: string) => FormFieldOption[];
|
|
8
|
-
export default FormFieldOption;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AppEditableField from '../../AppEditable/AppEditableField';
|
|
1
|
+
import { AppEditableField } from '../../AppEditable/AppEditableField';
|
|
2
2
|
import Participant, { ParticipantCreateRequest } from './Participant';
|
|
3
3
|
declare function add(uid: string, request: ParticipantCreateRequest): Promise<import("axios").AxiosResponse<Participant, any>>;
|
|
4
4
|
declare function update(field: AppEditableField): Promise<import("axios").AxiosResponse<any, any>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,3 +8,8 @@ export { default as AppModalRemove } from './AppModal/AppModalRemove';
|
|
|
8
8
|
export { commonResources } from './configs/Localization';
|
|
9
9
|
export { CommonProvider } from './configs/CommonContext';
|
|
10
10
|
export { useMessageUtils } from './configs/useMessageUtils';
|
|
11
|
+
export { validateFormField } from './AppEditable/FormField';
|
|
12
|
+
export { convertEnum, convertList } from './AppEditable/FormFieldOption';
|
|
13
|
+
export type { FormFieldOption } from './AppEditable/FormFieldOption';
|
|
14
|
+
export type { AppEditableField } from './AppEditable/AppEditableField';
|
|
15
|
+
export type { FieldOperations, FormField } from './AppEditable/FormField';
|
package/dist/index.js
CHANGED
|
@@ -8,3 +8,5 @@ export { default as AppModalRemove } from './AppModal/AppModalRemove';
|
|
|
8
8
|
export { commonResources } from './configs/Localization';
|
|
9
9
|
export { CommonProvider } from './configs/CommonContext';
|
|
10
10
|
export { useMessageUtils } from './configs/useMessageUtils';
|
|
11
|
+
export { validateFormField } from './AppEditable/FormField';
|
|
12
|
+
export { convertEnum, convertList } from './AppEditable/FormFieldOption';
|