kwikid-forms 0.6.8 → 0.6.10

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.
@@ -167,4 +167,14 @@ export declare const FIELD_PROPERTIES: {
167
167
  searchable: boolean;
168
168
  containerStyles: string;
169
169
  };
170
+ "star-rating": {
171
+ color: string;
172
+ containerStyles: string;
173
+ icon: string;
174
+ iconMarked: string;
175
+ max: number;
176
+ min: number;
177
+ placeholder: string;
178
+ size: string;
179
+ };
170
180
  };
@@ -3,6 +3,7 @@ import { TTrigger } from "./form-view.triggers.definition";
3
3
  export declare enum EApiStatusType {
4
4
  DEFAULT = "default",
5
5
  LOADING = "loading",
6
+ RETRY = "retry",
6
7
  SUCCESS = "success",
7
8
  FAILED = "failed"
8
9
  }
@@ -39,12 +40,13 @@ export declare type TApiResponse = {
39
40
  validation: TValidation;
40
41
  value?: any;
41
42
  };
42
- export declare type TApiStatusType = EApiStatusType.DEFAULT | EApiStatusType.LOADING | EApiStatusType.SUCCESS | EApiStatusType.FAILED;
43
+ export declare type TApiStatusType = EApiStatusType.DEFAULT | EApiStatusType.LOADING | EApiStatusType.RETRY | EApiStatusType.SUCCESS | EApiStatusType.FAILED;
43
44
  export declare type TApiStatus = {
44
45
  value: TApiStatusType;
45
46
  labels: {
46
47
  default: EApiStatusType.DEFAULT;
47
48
  loading: EApiStatusType.LOADING;
49
+ retry: EApiStatusType.RETRY;
48
50
  success: EApiStatusType.SUCCESS;
49
51
  failed: EApiStatusType.FAILED;
50
52
  };
@@ -26,9 +26,10 @@ export declare enum EFieldType {
26
26
  FILE = "file",
27
27
  PASSWORD = "password",
28
28
  EMAIL = "email",
29
- CAPTURE = "capture"
29
+ CAPTURE = "capture",
30
+ STAR_RATING = "star-rating"
30
31
  }
31
- export declare type TFieldType = EFieldType.HTML | EFieldType.TITLE | EFieldType.BUTTON | EFieldType.TEXT | EFieldType.TEXTAREA | EFieldType.CHECKBOX | EFieldType.NUMBER | EFieldType.DATE | EFieldType.PREVIEW_IMAGE | EFieldType.PHONE | EFieldType.RADIO | EFieldType.DROPDOWN_WITH_SEARCH | EFieldType.SELECT | EFieldType.API | EFieldType.API_CALL | EFieldType.OTP | EFieldType.AADHAAR_NUMBER | EFieldType.SLIDER | EFieldType.FILE | EFieldType.PASSWORD | EFieldType.EMAIL | EFieldType.CAPTURE;
32
+ export declare type TFieldType = EFieldType.HTML | EFieldType.TITLE | EFieldType.BUTTON | EFieldType.TEXT | EFieldType.TEXTAREA | EFieldType.CHECKBOX | EFieldType.NUMBER | EFieldType.DATE | EFieldType.PREVIEW_IMAGE | EFieldType.PHONE | EFieldType.RADIO | EFieldType.DROPDOWN_WITH_SEARCH | EFieldType.SELECT | EFieldType.API | EFieldType.API_CALL | EFieldType.OTP | EFieldType.AADHAAR_NUMBER | EFieldType.SLIDER | EFieldType.FILE | EFieldType.PASSWORD | EFieldType.EMAIL | EFieldType.CAPTURE | EFieldType.STAR_RATING;
32
33
  export declare type TFieldSelectOption = {
33
34
  title: string;
34
35
  value: string;
@@ -176,6 +177,15 @@ export declare type TFieldCaptureProperties = TFieldProperties & {
176
177
  };
177
178
  };
178
179
  };
180
+ export declare type TFieldStarRatingProperties = TFieldProperties & {
181
+ color: string;
182
+ icon: string;
183
+ iconMarked: string;
184
+ min: number;
185
+ max: number;
186
+ placeholder: string;
187
+ size: string;
188
+ };
179
189
  export declare type TField = {
180
190
  label: string;
181
191
  type: TFieldType;
@@ -246,3 +256,6 @@ export declare type TFieldPreviewImage = TField & {
246
256
  export declare type TFieldCapture = TField & {
247
257
  properties: TFieldCaptureProperties;
248
258
  };
259
+ export declare type TFieldStarRating = TField & {
260
+ properties: TFieldStarRatingProperties;
261
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kwikid-forms",
3
- "version": "0.6.8",
3
+ "version": "0.6.10",
4
4
  "description": "KwikID's JSON Configuration based Forms Renderer and Builder",
5
5
  "author": {
6
6
  "name": "Baiju Dodhia"
@@ -22,10 +22,10 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "jsonpath": "^1.1.1",
25
- "lodash": "^4.17.21",
26
- "kwikid-toolkit": "^0.1.6",
27
25
  "kwikid-camera": "0.0.8",
28
- "kwikui": "^0.3.3",
26
+ "kwikid-toolkit": "^0.1.6",
27
+ "kwikui": "^0.3.4",
28
+ "lodash": "^4.17.21",
29
29
  "tslib": "^2.2.0"
30
30
  },
31
31
  "main": "bundles/kwikid-forms.umd.js",