kwikid-forms 0.0.6 → 0.0.7

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.
@@ -13,6 +13,7 @@ export declare type TApiRequestBody = {
13
13
  };
14
14
  export declare type TApiRequestHeaders = any;
15
15
  export declare type TApiRequest = {
16
+ url: string;
16
17
  headers?: TApiRequestHeaders;
17
18
  body: TApiRequestBody;
18
19
  };
@@ -33,7 +34,6 @@ export declare type TApiStatus = {
33
34
  };
34
35
  };
35
36
  export declare type TApi = {
36
- url: string;
37
37
  request: TApiRequest;
38
38
  response: TApiResponse;
39
39
  status: TApiStatus;
@@ -1,5 +1,5 @@
1
1
  import { TuiDay } from "@taiga-ui/cdk";
2
- import { TField, TFieldType } from "../definitions/fields/form-view.fields.type.definitions";
2
+ import { TField } from "../definitions/fields/form-view.fields.type.definitions";
3
3
  export declare const findFieldFromKey: (fields: any[], key: string) => any;
4
4
  export declare const findFieldIndexFromKey: (fields: any[], key: string) => number;
5
5
  export declare const getSearchTextOptionsFromRemoteFile: (field: any, childField: any, formGroup: any) => Promise<any>;
@@ -8,7 +8,6 @@ export declare const formatSearchTextOptions: (options: {
8
8
  title: string;
9
9
  value: string;
10
10
  }[]) => string[];
11
- export declare const formatDateToStandardFormat: (date: TuiDay) => string;
12
11
  export declare function highlightFieldError(field: any, error: any): any;
13
12
  export declare const addMessage: (field: any, message: {
14
13
  type: string;
@@ -19,5 +18,7 @@ export declare const removeMessage: (field: any, message: {
19
18
  message: string;
20
19
  }) => any;
21
20
  export declare function setFieldError(fields: any, errors: any, key: string, error: boolean): any;
22
- export declare const convertValueFromKwikUIFormatToBasicFormat: (type: TFieldType, value: any) => any;
21
+ export declare const convertDateStringToTuiDayFormat: (date: string) => TuiDay;
22
+ export declare const convertTuiDayFormatToDateString: (date: TuiDay) => string;
23
+ export declare const convertValueFromKwikUIFormatToBasicFormat: (field: TField, value: any) => any;
23
24
  export declare const convertValueFromBasicFormatToKwikUIFormat: (field: TField, value: any) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kwikid-forms",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "Kwik.ID's JSON based Forms Builder and Renderer.",
5
5
  "author": {
6
6
  "name": "Baiju Dodhia"