@donotdev/crud 0.0.2 → 0.0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"CrudService.d.ts","sourceRoot":"","sources":["../src/CrudService.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,YAAY,EAAE,YAAY,EAAE,CAAC;AAC7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,WAAW,oBAAoB;IACnC,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,GAAG,CAAC,CAAC,EACH,UAAU,EAAE,MAAM,EAClB,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GACrB,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACrB,GAAG,CAAC,CAAC,EACH,UAAU,EAAE,MAAM,EAClB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,CAAC,EACP,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GACrB,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,MAAM,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,GAAG,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;I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IAwCrD,GAAG,CAAC,CAAC,EACT,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,CAAC,EACP,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GACrB,OAAO,CAAC,MAAM,CAAC;IAyCZ,KAAK,CAAC,CAAC,EACX,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,YAAY,EACrB,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GACrB,OAAO,CAAC,CAAC,EAAE,CAAC;IA8Cf,SAAS,CAAC,CAAC,EACT,UAAU,EAAE,MAAM,EAClB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,EACjD,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GACrB,MAAM,IAAI;IA8Bb,qBAAqB,CAAC,CAAC,EACrB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,EAC5C,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GACrB,MAAM,IAAI;CAmCd;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,mBAE1B,CAAC"}
@@ -1 +1 @@
1
- import{toast as h}from"@donotdev/components";import{createSingleton as c,handleError as o}from"@donotdev/core";import{FirestoreAdapter as l}from"./adapters/FirestoreAdapter";import{FunctionsAdapter as g}from"./adapters/FunctionsAdapter";class u{adapter=null;backend=null;store=null;setStore(t){this.store=t}async initialize(t){if(!(this.backend===t&&this.adapter)){if(this.backend=t,t==="functions")this.adapter=new g;else if(t==="firestore")this.adapter=new l;else throw new Error(`Unknown backend: ${t}`);this.store&&(this.store.getState().setBackend(t),this.store.getState().setCrudService(this))}}async get(t,r,i){this.adapter||await this.initialize("firestore"),this.store&&(this.store.getState().setLoading(t,!0),this.store.getState().setError(t,null));try{if(!this.adapter)throw new Error("Adapter not initialized");const e=await this.adapter.get(t,r,i);return this.store&&e&&this.store.getState().setData(t,r,e),e}catch(e){const s=o(e,{userMessage:`Failed to fetch ${t}`,showNotification:!0});throw this.store&&this.store.getState().setError(t,s),s}finally{this.store&&this.store.getState().setLoading(t,!1)}}async set(t,r,i,e){this.adapter||await this.initialize("firestore"),this.store&&(this.store.getState().setLoading(t,!0),this.store.getState().setError(t,null));try{if(!this.adapter)throw new Error("Adapter not initialized");await this.adapter.set(t,r,i,e),this.store&&this.store.getState().setData(t,r,i),h("success",`${t} saved successfully`)}catch(s){const a=o(s,{userMessage:`Failed to save ${t}`,showNotification:!0});throw this.store&&this.store.getState().setError(t,a),a}finally{this.store&&this.store.getState().setLoading(t,!1)}}async update(t,r,i){this.adapter||await this.initialize("firestore"),this.store&&(this.store.getState().setLoading(t,!0),this.store.getState().setError(t,null));try{if(!this.adapter)throw new Error("Adapter not initialized");if(await this.adapter.update(t,r,i),this.store){const e=this.store.getState().getData(t,r);e&&this.store.getState().setData(t,r,{...e,...i})}h("success",`${t} updated successfully`)}catch(e){const s=o(e,{userMessage:`Failed to update ${t}`,showNotification:!0});throw this.store&&this.store.getState().setError(t,s),s}finally{this.store&&this.store.getState().setLoading(t,!1)}}async delete(t,r){this.adapter||await this.initialize("firestore"),this.store&&(this.store.getState().setLoading(t,!0),this.store.getState().setError(t,null));try{if(!this.adapter)throw new Error("Adapter not initialized");await this.adapter.delete(t,r),this.store&&this.store.getState().removeData(t,r),h("success",`${t} deleted successfully`)}catch(i){const e=o(i,{userMessage:`Failed to delete ${t}`,showNotification:!0});throw this.store&&this.store.getState().setError(t,e),e}finally{this.store&&this.store.getState().setLoading(t,!1)}}async add(t,r,i){this.adapter||await this.initialize("firestore"),this.store&&(this.store.getState().setLoading(t,!0),this.store.getState().setError(t,null));try{if(!this.adapter)throw new Error("Adapter not initialized");const e=await this.adapter.add(t,r,i);return this.store&&e&&this.store.getState().setData(t,e,{...r,id:e}),h("success",`${t} created successfully`),e}catch(e){const s=o(e,{userMessage:`Failed to create ${t}`,showNotification:!0});throw this.store&&this.store.getState().setError(t,s),s}finally{this.store&&this.store.getState().setLoading(t,!1)}}async query(t,r,i){this.adapter||await this.initialize("firestore"),this.store&&(this.store.getState().setLoading(t,!0),this.store.getState().setError(t,null));try{if(!this.adapter)throw new Error("Adapter not initialized");const e=await this.adapter.query(t,r,i);if(this.store)for(const s of e){const a=s.id;a&&this.store.getState().setData(t,a,s)}return e}catch(e){const s=o(e,{userMessage:`Failed to query ${t}`,showNotification:!0});throw this.store&&this.store.getState().setError(t,s),s}finally{this.store&&this.store.getState().setLoading(t,!1)}}subscribe(t,r,i,e){this.adapter||this.initialize("firestore").catch(()=>{});try{return this.adapter?this.adapter.subscribe(t,r,(s,a)=>{s&&this.store&&this.store.getState().setData(t,r,s),i(s,a)},e):(i(null,new Error("Adapter not initialized")),()=>{})}catch(s){return i(null,o(s)),()=>{}}}subscribeToCollection(t,r,i,e){this.adapter||this.initialize("firestore").catch(()=>{});try{return this.adapter?this.adapter.subscribeToCollection(t,r,(s,a)=>{if(s&&this.store)for(const n of s){const d=n.id;d&&this.store.getState().setData(t,d,n)}i(s,a)},e):(i([],new Error("Adapter not initialized")),()=>{})}catch(s){return i([],o(s)),()=>{}}}}const f=c(()=>new u);export{f as getCrudService};
1
+ import{toast as h}from"@donotdev/components";import{createSingleton as c,handleError as o}from"@donotdev/core";import{FirestoreAdapter as l}from"./adapters/FirestoreAdapter";import{FunctionsAdapter as g}from"./adapters/FunctionsAdapter";class u{adapter=null;backend=null;store=null;setStore(t){this.store=t}async initialize(t){if(!(this.backend===t&&this.adapter)){if(this.backend=t,t==="functions")this.adapter=new g;else if(t==="firestore")this.adapter=new l;else throw new Error(`Unknown backend: ${t}`);this.store&&(this.store.getState().setBackend(t),this.store.getState().setCrudService(this))}}async get(t,r,i){this.adapter||await this.initialize("firestore"),this.store&&(this.store.getState().setLoading(t,!0),this.store.getState().setError(t,null));try{if(!this.adapter)throw new Error("Adapter not initialized");const e=await this.adapter.get(t,r,i);return this.store&&e&&this.store.getState().setData(t,r,e),e}catch(e){const s=o(e,{userMessage:`Failed to fetch ${t}`,showNotification:!0});throw this.store&&this.store.getState().setError(t,s),s}finally{this.store&&this.store.getState().setLoading(t,!1)}}async set(t,r,i,e){this.adapter||await this.initialize("firestore"),this.store&&(this.store.getState().setLoading(t,!0),this.store.getState().setError(t,null));try{if(!this.adapter)throw new Error("Adapter not initialized");await this.adapter.set(t,r,i,e),this.store&&this.store.getState().setData(t,r,i),h("success",`${t} saved successfully`)}catch(s){const a=o(s,{userMessage:`Failed to save ${t}`,showNotification:!0});throw this.store&&this.store.getState().setError(t,a),a}finally{this.store&&this.store.getState().setLoading(t,!1)}}async update(t,r,i){this.adapter||await this.initialize("firestore"),this.store&&(this.store.getState().setLoading(t,!0),this.store.getState().setError(t,null));let e=null;this.store&&(e=this.store.getState().getData(t,r)),this.store&&e&&this.store.getState().setData(t,r,{...e,...i});try{if(!this.adapter)throw new Error("Adapter not initialized");await this.adapter.update(t,r,i),h("success",`${t} updated successfully`)}catch(s){this.store&&e&&this.store.getState().setData(t,r,e);const a=o(s,{userMessage:`Failed to update ${t}`,showNotification:!0});throw this.store&&this.store.getState().setError(t,a),a}finally{this.store&&this.store.getState().setLoading(t,!1)}}async delete(t,r){this.adapter||await this.initialize("firestore"),this.store&&(this.store.getState().setLoading(t,!0),this.store.getState().setError(t,null));try{if(!this.adapter)throw new Error("Adapter not initialized");await this.adapter.delete(t,r),this.store&&this.store.getState().removeData(t,r),h("success",`${t} deleted successfully`)}catch(i){const e=o(i,{userMessage:`Failed to delete ${t}`,showNotification:!0});throw this.store&&this.store.getState().setError(t,e),e}finally{this.store&&this.store.getState().setLoading(t,!1)}}async add(t,r,i){this.adapter||await this.initialize("firestore"),this.store&&(this.store.getState().setLoading(t,!0),this.store.getState().setError(t,null));try{if(!this.adapter)throw new Error("Adapter not initialized");const e=await this.adapter.add(t,r,i);return this.store&&e&&this.store.getState().setData(t,e,{...r,id:e}),h("success",`${t} created successfully`),e}catch(e){const s=o(e,{userMessage:`Failed to create ${t}`,showNotification:!0});throw this.store&&this.store.getState().setError(t,s),s}finally{this.store&&this.store.getState().setLoading(t,!1)}}async query(t,r,i){this.adapter||await this.initialize("firestore"),this.store&&(this.store.getState().setLoading(t,!0),this.store.getState().setError(t,null));try{if(!this.adapter)throw new Error("Adapter not initialized");const e=await this.adapter.query(t,r,i);if(this.store)for(const s of e){const a=s.id;a&&this.store.getState().setData(t,a,s)}return e}catch(e){const s=o(e,{userMessage:`Failed to query ${t}`,showNotification:!0});throw this.store&&this.store.getState().setError(t,s),s}finally{this.store&&this.store.getState().setLoading(t,!1)}}subscribe(t,r,i,e){this.adapter||this.initialize("firestore").catch(()=>{});try{return this.adapter?this.adapter.subscribe(t,r,(s,a)=>{s&&this.store&&this.store.getState().setData(t,r,s),i(s,a)},e):(i(null,new Error("Adapter not initialized")),()=>{})}catch(s){return i(null,o(s)),()=>{}}}subscribeToCollection(t,r,i,e){this.adapter||this.initialize("firestore").catch(()=>{});try{return this.adapter?this.adapter.subscribeToCollection(t,r,(s,a)=>{if(s&&this.store)for(const n of s){const d=n.id;d&&this.store.getState().setData(t,d,n)}i(s,a)},e):(i([],new Error("Adapter not initialized")),()=>{})}catch(s){return i([],o(s)),()=>{}}}}const p=c(()=>new u);export{p as getCrudService};
@@ -1,13 +1,6 @@
1
1
  import { type Control, type FieldErrors, type FieldValues } from 'react-hook-form';
2
2
  import type { FieldConfig, FieldType } from '@donotdev/core';
3
3
  import type { ReactElement } from 'react';
4
- /**
5
- * Common props for all controlled fields
6
- *
7
- * @version 0.0.1
8
- * @since 0.0.1
9
- * @author AMBROISE PARK Consulting
10
- */
11
4
  export interface ControlledFieldProps<T extends FieldValues = any, FT extends FieldType = FieldType> {
12
5
  control: Control<T>;
13
6
  errors: FieldErrors<T>;
@@ -17,140 +10,22 @@ export interface ControlledFieldProps<T extends FieldValues = any, FT extends Fi
17
10
  placeholder?: string;
18
11
  [key: string]: any;
19
12
  }
20
- /**
21
- * Controlled checkbox field component
22
- *
23
- * @version 0.0.1
24
- * @since 0.0.1
25
- * @author AMBROISE PARK Consulting
26
- */
27
- export declare const ControlledCheckboxField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
28
- /**
29
- * Controlled date field component
30
- *
31
- * @version 0.0.1
32
- * @since 0.0.1
33
- * @author AMBROISE PARK Consulting
34
- */
35
- export declare const ControlledDateField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
36
- /**
37
- * Controlled dropdown field component
38
- *
39
- * @version 0.0.1
40
- * @since 0.0.1
41
- * @author AMBROISE PARK Consulting
42
- */
43
- export declare const ControlledDropdownField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
44
- /**
45
- * Controlled file field component
46
- *
47
- * @version 0.0.1
48
- * @since 0.0.1
49
- * @author AMBROISE PARK Consulting
50
- */
51
- export declare const ControlledFileField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
52
- /**
53
- * Controlled geo point field component
54
- *
55
- * @version 0.0.1
56
- * @since 0.0.1
57
- * @author AMBROISE PARK Consulting
58
- */
59
- export declare const ControlledGeoPointField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
60
- /**
61
- * Controlled image field component
62
- *
63
- * @version 0.0.1
64
- * @since 0.0.1
65
- * @author AMBROISE PARK Consulting
66
- */
67
- export declare const ControlledImageField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
68
- /**
69
- * Controlled map field component
70
- *
71
- * @version 0.0.1
72
- * @since 0.0.1
73
- * @author AMBROISE PARK Consulting
74
- */
75
- export declare const ControlledMapField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
76
- /**
77
- * Controlled multi dropdown field component
78
- *
79
- * @version 0.0.1
80
- * @since 0.0.1
81
- * @author AMBROISE PARK Consulting
82
- */
83
- export declare const ControlledMultiDropdownField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
84
- /**
85
- * Controlled multi input field component
86
- *
87
- * @version 0.0.1
88
- * @since 0.0.1
89
- * @author AMBROISE PARK Consulting
90
- */
91
- export declare const ControlledMultiInputField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
92
- /**
93
- * Controlled number field component
94
- *
95
- * @version 0.0.1
96
- * @since 0.0.1
97
- * @author AMBROISE PARK Consulting
98
- */
99
- export declare const ControlledNumberField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
100
- /**
101
- * Controlled phone field component
102
- *
103
- * @version 0.0.1
104
- * @since 0.0.1
105
- * @author AMBROISE PARK Consulting
106
- */
107
- export declare const ControlledPhoneField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
108
- /**
109
- * Controlled range field component
110
- *
111
- * @version 0.0.1
112
- * @since 0.0.1
113
- * @author AMBROISE PARK Consulting
114
- */
115
- export declare const ControlledRangeField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
116
- /**
117
- * Controlled radio field component
118
- *
119
- * @version 0.0.1
120
- * @since 0.0.1
121
- * @author AMBROISE PARK Consulting
122
- */
123
- export declare const ControlledRadioField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
124
- /**
125
- * Controlled reference field component
126
- *
127
- * @version 0.0.1
128
- * @since 0.0.1
129
- * @author AMBROISE PARK Consulting
130
- */
131
- export declare const ControlledReferenceField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
132
- /**
133
- * Controlled text field component
134
- *
135
- * @version 0.0.1
136
- * @since 0.0.1
137
- * @author AMBROISE PARK Consulting
138
- */
139
- export declare const ControlledTextField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
140
- /**
141
- * Controlled password field component
142
- *
143
- * @version 0.0.1
144
- * @since 0.0.1
145
- * @author AMBROISE PARK Consulting
146
- */
147
- export declare const ControlledPasswordField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
148
- /**
149
- * Controlled timestamp field component
150
- *
151
- * @version 0.0.1
152
- * @since 0.0.1
153
- * @author AMBROISE PARK Consulting
154
- */
155
- export declare const ControlledTimestampField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "week" | "month" | "file" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
13
+ export declare const ControlledCheckboxField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
14
+ export declare const ControlledDateField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
15
+ export declare const ControlledDropdownField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
16
+ export declare const ControlledFileField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
17
+ export declare const ControlledGeoPointField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
18
+ export declare const ControlledImageField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
19
+ export declare const ControlledMapField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
20
+ export declare const ControlledMultiDropdownField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
21
+ export declare const ControlledMultiInputField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
22
+ export declare const ControlledNumberField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
23
+ export declare const ControlledPhoneField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
24
+ export declare const ControlledRangeField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
25
+ export declare const ControlledRadioField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
26
+ export declare const ControlledReferenceField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
27
+ export declare const ControlledTextField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
28
+ export declare const ControlledPasswordField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
29
+ export declare const ControlledTimestampField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
30
+ export declare const ControlledAddressField: (props: ControlledFieldProps<any, "number" | "boolean" | "password" | "reference" | "map" | "color" | "array" | "url" | "email" | "submit" | "file" | "week" | "month" | "address" | "avatar" | "badge" | "checkbox" | "date" | "datetime-local" | "geopoint" | "hidden" | "image" | "multiselect" | "radio" | "range" | "reset" | "select" | "tel" | "text" | "textarea" | "time" | "timestamp">) => ReactElement;
156
31
  //# sourceMappingURL=ControlledF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as k}from"react";import{Controller as $}from"react-hook-form";import{handleError as v}from"@donotdev/core";import{CheckboxFieldComponent as G,DateFieldComponent as j,DropdownComponent as S,FileFieldComponent as q,GeoPointFieldComponent as z,ImageFieldComponent as B,MultiDropdownComponent as H,MultiInputTextFieldComponent as J,NumberFieldComponent as K,PhoneNumberComponent as L,PasswordFieldComponent as O,RadioFieldComponent as Q,RangeFieldComponent as U,MapFieldComponent as V,ReferenceFieldComponent as W,TextFieldComponent as X,TimestampFieldComponent as Y}from"./form/fields";function Z(e){if(e){if(e instanceof RegExp)return e;try{const r=/^\/(.*)\/([gimyus]*)$/.exec(e);if(r){const[,n,l]=r;if(n)return new RegExp(n,l)}return new RegExp(e)}catch{return}}}function _(e){if(!e)return{};const r={...e};return e.pattern&&typeof e.pattern=="string"&&(r.pattern={value:Z(e.pattern)||/.*/,message:e.messages?.pattern||"Invalid format"}),r}function o(e,r,n){return function(l){const{control:x,errors:f,fieldConfig:p,t:Ae,onChange:s,placeholder:A,...b}=l,{name:t,label:u,options:d={},validation:g}=p,N=t,w=g?_(g):void 0;return C($,{name:N,control:x,rules:w,render:({field:M})=>{const{value:m,onChange:F,...R}=M,I=(()=>{try{return r?r(m):m}catch(a){return v(a,{userMessage:`Error transforming value for field ${u||t}`,context:{fieldName:t,fieldType:p.type},severity:"warning"}),m}})(),P=a=>{try{const c=n?n(a):a;F(c),s&&s(a)}catch(c){v(c,{userMessage:`Error updating field ${u||t}`,context:{fieldName:t,fieldType:p.type},severity:"warning"}),F(a),s&&s(a)}},{prefixIcon:y,suffixIcon:h,fieldSpecific:T,...D}=d||{},E={...R,...b,label:u,value:I,onChange:P,error:!!f[t],helperText:f[t]?.message||void 0,placeholder:A||d.placeholder,clearable:d.clearable,className:d.className,...T||{},...D,...y&&{prefixIcon:y},...h&&{suffixIcon:h}};return C(e,{...E})}})}}function i(e,r){return function(n){const l=k(()=>{try{return r(n)}catch{return n}},[n]);return C(e,{...l})}}const ee=i(S,e=>({...e,options:Array.isArray(e.options)?e.options:[]})),oe=i(H,e=>({...e,options:Array.isArray(e.options)?e.options:[]})),re=i(W,e=>({...e,options:Array.isArray(e.options)?e.options:[]})),ne=i(Q,e=>({...e,options:Array.isArray(e.options)?e.options:[]})),te=i(L,e=>({...e,phoneNumbers:Array.isArray(e.value)?e.value:[],onPhoneNumberChange:e.onChange})),ae=o(G,e=>!!e,e=>e?.target?.checked),le=o(j,e=>e??null,e=>e?.target?.value),ie=o(ee,e=>e??null,e=>e?.target?.value),se=o(q,e=>e??null,e=>e?.target?.value),de=o(z,e=>e||{lat:0,lng:0},e=>e?.target?.value),pe=o(B,e=>e??null,e=>e?.target?.value),ue=o(V,e=>e||{},e=>e?.target?.value),me=o(oe,e=>Array.isArray(e)?e:[],e=>e?.target?.value),ce=o(J,e=>Array.isArray(e)?e:[],e=>e),Ce=o(K,e=>{const r=Number(e);return Number.isNaN(r)?0:r},e=>{try{return parseFloat(e?.target?.value)}catch{return 0}}),fe=o(te,e=>Array.isArray(e)?e:[],e=>e),ge=o(U,e=>e??null,e=>e),Fe=o(ne,e=>e??null,e=>e),ye=o(re,e=>e??null,e=>e),he=o(X,e=>e??"",e=>e?.target?.value),ve=o(O,e=>e??"",e=>e?.target?.value),xe=o(Y,e=>e??null,e=>e);export{ae as ControlledCheckboxField,le as ControlledDateField,ie as ControlledDropdownField,se as ControlledFileField,de as ControlledGeoPointField,pe as ControlledImageField,ue as ControlledMapField,me as ControlledMultiDropdownField,ce as ControlledMultiInputField,Ce as ControlledNumberField,ve as ControlledPasswordField,fe as ControlledPhoneField,Fe as ControlledRadioField,ge as ControlledRangeField,ye as ControlledReferenceField,he as ControlledTextField,xe as ControlledTimestampField};
1
+ "use client";import{jsx as C}from"react/jsx-runtime";import{useMemo as k}from"react";import{Controller as $}from"react-hook-form";import{handleError as h}from"@donotdev/core";import{CheckboxFieldComponent as G,DateFieldComponent as j,DropdownComponent as S,FileFieldComponent as q,GeoPointFieldComponent as z,ImageFieldComponent as B,MultiDropdownComponent as H,MultiInputTextFieldComponent as J,NumberFieldComponent as K,PhoneNumberComponent as L,PasswordFieldComponent as O,RadioFieldComponent as Q,RangeFieldComponent as U,MapFieldComponent as V,ReferenceFieldComponent as W,TextFieldComponent as X,TimestampFieldComponent as Y,AddressFieldComponent as Z}from"./form/fields";function _(e){if(e){if(e instanceof RegExp)return e;try{const r=/^\/(.*)\/([gimyus]*)$/.exec(e);if(r){const[,n,a]=r;if(n)return new RegExp(n,a)}return new RegExp(e)}catch{return}}}function ee(e){if(!e)return{};const r={...e};return e.pattern&&typeof e.pattern=="string"&&(r.pattern={value:_(e.pattern)||/.*/,message:e.messages?.pattern||"Invalid format"}),r}function o(e,r,n){return function(a){const{control:x,errors:f,fieldConfig:u,t:we,onChange:s,placeholder:A,...b}=a,{name:t,label:p,options:d={},validation:g}=u,w=t,N=g?ee(g):void 0;return C($,{name:w,control:x,rules:N,render:({field:R})=>{const{value:m,onChange:F,...I}=R,M=(()=>{try{return r?r(m):m}catch(l){return h(l,{userMessage:`Error transforming value for field ${p||t}`,context:{fieldName:t,fieldType:u.type},severity:"warning"}),m}})(),P=l=>{try{const c=n?n(l):l;F(c),s&&s(l)}catch(c){h(c,{userMessage:`Error updating field ${p||t}`,context:{fieldName:t,fieldType:u.type},severity:"warning"}),F(l),s&&s(l)}},{prefixIcon:y,suffixIcon:v,fieldSpecific:T,...D}=d||{},E={...I,...b,label:p,value:M,onChange:P,error:!!f[t],helperText:f[t]?.message||void 0,placeholder:A||d.placeholder,clearable:d.clearable,className:d.className,...T||{},...D,...y&&{prefixIcon:y},...v&&{suffixIcon:v}};return C(e,{...E})}})}}function i(e,r){return function(n){const a=k(()=>{try{return r(n)}catch{return n}},[n]);return C(e,{...a})}}const oe=i(S,e=>({...e,options:Array.isArray(e.options)?e.options:[]})),re=i(H,e=>({...e,options:Array.isArray(e.options)?e.options:[]})),ne=i(W,e=>e),te=i(Q,e=>({...e,options:Array.isArray(e.options)?e.options:[]})),le=i(L,e=>({...e,phoneNumbers:Array.isArray(e.value)?e.value:[],onPhoneNumberChange:e.onChange})),ae=o(G,e=>!!e,e=>e?.target?.checked),ie=o(j,e=>e??null,e=>e?.target?.value),se=o(oe,e=>e??null,e=>e?.target?.value),de=o(q,e=>e??null,e=>e?.target?.value),ue=o(z,e=>e||{lat:0,lng:0},e=>e?.target?.value),pe=o(B,e=>e??null,e=>e?.target?.value),me=o(V,e=>e||{},e=>e?.target?.value),ce=o(re,e=>Array.isArray(e)?e:[],e=>e?.target?.value),Ce=o(J,e=>Array.isArray(e)?e:[],e=>e),fe=o(K,e=>e??"",e=>{if(e?.target?.value===""||e?.target?.value===null)return null;try{return parseFloat(e?.target?.value)}catch{return 0}}),ge=o(le,e=>Array.isArray(e)?e:[],e=>e),Fe=o(U,e=>e??null,e=>e),ye=o(te,e=>e??null,e=>e),ve=o(ne,e=>e??null,e=>e),he=o(X,e=>e??"",e=>e?.target?.value),xe=o(O,e=>e??"",e=>e?.target?.value),Ae=o(Y,e=>e??null,e=>e),be=o(Z,e=>e??null,e=>e);export{be as ControlledAddressField,ae as ControlledCheckboxField,ie as ControlledDateField,se as ControlledDropdownField,de as ControlledFileField,ue as ControlledGeoPointField,pe as ControlledImageField,me as ControlledMapField,ce as ControlledMultiDropdownField,Ce as ControlledMultiInputField,fe as ControlledNumberField,xe as ControlledPasswordField,ge as ControlledPhoneField,ye as ControlledRadioField,Fe as ControlledRangeField,ve as ControlledReferenceField,he as ControlledTextField,Ae as ControlledTimestampField};
@@ -1 +1 @@
1
- {"version":3,"file":"FormFieldRenderer.d.ts","sourceRoot":"","sources":["../../src/components/FormFieldRenderer.tsx"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EACT,iBAAiB,EAElB,MAAM,gBAAgB,CAAC;AAmCxB,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,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AE,KAAK,CAAC;CAChB;AAGD,UAAU,eAAe,CACvB,CAAC,SAAS,SAAS,EACnB,YAAY,SAAS,WAAW,GAAG,WAAW,CAC9C,SAAQ,0BAA0B,CAAC,CAAC,CAAC;IACrC,qCAAqC;IACrC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,yBAAyB;IACzB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAGD,MAAM,MAAM,sBAAsB,CAChC,CAAC,SAAS,SAAS,EACnB,YAAY,SAAS,WAAW,GAAG,WAAW,IAC5C,iBAAiB,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;AAE5D;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,CAAC,SAAS,SAAS,EACnB,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,EACA,IAAI,EACJ,MAAM,EACN,CAAC,EACD,GAAG,KAAK,EACT,EAAE,sBAAsB,CAAC,CAAC,EAAE,YAAY,CAAC,GAAG,YAAY,CA6PxD;AAED,eAAe,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- "use client";import{jsx as e}from"react/jsx-runtime";import{handleError as m}from"@donotdev/core";import{ControlledCheckboxField as h,ControlledDateField as y,ControlledDropdownField as x,ControlledFileField as T,ControlledGeoPointField as w,ControlledImageField as M,ControlledMapField as k,ControlledMultiDropdownField as R,ControlledMultiInputField as D,ControlledNumberField as E,ControlledPasswordField as N,ControlledPhoneField as P,ControlledRangeField as A,ControlledRadioField as B,ControlledReferenceField as I,ControlledTextField as f,ControlledTimestampField as $}from"./ControlledFields";import{AvatarFieldComponent as j,BadgeFieldComponent as G,ButtonFieldComponent as F,HiddenFieldComponent as g,TextAreaComponent as H,TextFieldComponent as U}from"./form/fields";function v({name:l,config:t,t:d,...a}){const p=u=>c=>{try{u(c)}catch(o){m(o,{userMessage:`Error updating field ${t.label||l}`,context:{fieldName:l,fieldType:t.type},severity:"warning"})}};if(t.hidden)return e(g,{name:l,value:"value"in a?a.value:""});if("control"in a&&a.control){const{control:u,errors:c}=a,o={control:u,errors:c,fieldConfig:{...t,label:t.label||l},t:d,onChange:p(C=>{})},r=C=>C;switch(t.type){case"array":return e(D,{...r(o)});case"boolean":case"checkbox":return e(h,{...r(o)});case"date":case"datetime-local":return e(y,{...r(o)});case"file":return e(T,{...r(o)});case"geopoint":return e(w,{...r(o)});case"image":return e(M,{...r(o)});case"map":return e(k,{...r(o)});case"multiselect":return e(R,{...r(o)});case"number":return e(E,{...r(o)});case"radio":return e(B,{...r(o)});case"range":return e(A,{...r(o)});case"reference":return e(I,{...r(o)});case"select":return e(x,{...r(o)});case"tel":return e(P,{...r(o)});case"timestamp":return e($,{...r(o)});case"password":return e(N,{...r(o)});case"text":case"email":case"url":case"color":return e(f,{...r(o)});default:return m(new Error(`Unsupported field type: ${t.type}`),{userMessage:d("errors.unsupportedFieldType",{type:t.type}),context:{fieldName:l,fieldType:t.type},severity:"warning"}),e(f,{...r({...o,fieldConfig:{...t,type:"text"}})})}}const{value:s,onChange:b,error:n}=a,i=p(b);return(()=>{switch(t.type){case"avatar":return e(j,{config:t,value:s,onChange:i,error:!!n,helperText:n||void 0,t:d,...t.options});case"badge":return e(G,{config:t,value:s,onChange:i,error:!!n,helperText:n||void 0,t:d,...t.options});case"submit":return e(F,{label:t.label||l,type:"submit",onClick:()=>i(void 0),...t.options});case"reset":return e(F,{label:t.label||l,type:"reset",onClick:()=>i(void 0),...t.options});case"hidden":return e(g,{name:l,value:s});case"textarea":return e(H,{label:t.label||l,value:s,onChange:i,error:n||void 0,helperText:void 0,...t.options});default:return null}})()||e(U,{label:t.label||l,value:s,onChange:i,error:n||void 0,helperText:void 0,...t.options})}var O=v;export{v as FormFieldRenderer,O as default};
1
+ "use client";import{jsx as e}from"react/jsx-runtime";import{handleError as m}from"@donotdev/core";import{ControlledCheckboxField as h,ControlledDateField as y,ControlledDropdownField as x,ControlledFileField as T,ControlledGeoPointField as w,ControlledImageField as M,ControlledMapField as k,ControlledMultiDropdownField as R,ControlledMultiInputField as A,ControlledNumberField as D,ControlledPasswordField as E,ControlledPhoneField as N,ControlledRangeField as P,ControlledRadioField as B,ControlledReferenceField as I,ControlledTextField as F,ControlledTimestampField as $,ControlledAddressField as j}from"./ControlledFields";import{AvatarFieldComponent as G,BadgeFieldComponent as H,ButtonFieldComponent as f,HiddenFieldComponent as g,TextAreaComponent as U,TextFieldComponent as Q}from"./form/fields";function v({name:l,config:t,t:d,...a}){const p=u=>c=>{try{u(c)}catch(o){m(o,{userMessage:`Error updating field ${t.label||l}`,context:{fieldName:l,fieldType:t.type},severity:"warning"})}};if(t.hidden)return e(g,{name:l,value:"value"in a?a.value:""});if("control"in a&&a.control){const{control:u,errors:c}=a,o={control:u,errors:c,fieldConfig:{...t,label:t.label||l},t:d,onChange:p(C=>{})},r=C=>C;switch(t.type){case"array":return e(A,{...r(o)});case"boolean":case"checkbox":return e(h,{...r(o)});case"date":case"datetime-local":return e(y,{...r(o)});case"file":return e(T,{...r(o)});case"geopoint":return e(w,{...r(o)});case"image":return e(M,{...r(o)});case"map":return e(k,{...r(o)});case"multiselect":return e(R,{...r(o)});case"number":return e(D,{...r(o)});case"radio":return e(B,{...r(o)});case"range":return e(P,{...r(o)});case"reference":return e(I,{...r(o)});case"select":return e(x,{...r(o)});case"tel":return e(N,{...r(o)});case"timestamp":return e($,{...r(o)});case"password":return e(E,{...r(o)});case"address":return e(j,{...r(o)});case"text":case"email":case"url":case"color":return e(F,{...r(o)});default:return m(new Error(`Unsupported field type: ${t.type}`),{userMessage:d("errors.unsupportedFieldType",{type:t.type}),context:{fieldName:l,fieldType:t.type},severity:"warning"}),e(F,{...r({...o,fieldConfig:{...t,type:"text"}})})}}const{value:i,onChange:b,error:n}=a,s=p(b);return(()=>{switch(t.type){case"avatar":return e(G,{config:t,value:i,onChange:s,error:!!n,helperText:n||void 0,t:d,...t.options});case"badge":return e(H,{config:t,value:i,onChange:s,error:!!n,helperText:n||void 0,t:d,...t.options});case"submit":return e(f,{label:t.label||l,type:"submit",onClick:()=>s(void 0),...t.options});case"reset":return e(f,{label:t.label||l,type:"reset",onClick:()=>s(void 0),...t.options});case"hidden":return e(g,{name:l,value:i});case"textarea":return e(U,{label:t.label||l,value:i,onChange:s,error:n||void 0,helperText:void 0,...t.options});default:return null}})()||e(Q,{label:t.label||l,value:i,onChange:s,error:n||void 0,helperText:void 0,...t.options})}var S=v;export{v as FormFieldRenderer,S as default};
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Address field component props
3
+ */
4
+ export interface AddressFieldComponentProps {
5
+ /** Field label */
6
+ label: string;
7
+ /** Address value with formatted address and coordinates */
8
+ value?: {
9
+ formatted_address: string;
10
+ latitude?: number;
11
+ longitude?: number;
12
+ [key: string]: any;
13
+ };
14
+ /** Change handler */
15
+ onChange: (value: any) => void;
16
+ /**
17
+ * Whether to enable Google Maps autocomplete (default: false)
18
+ * Requires env var: VITE_GOOGLE_MAPS_API_KEY (Vite) or NEXT_PUBLIC_GOOGLE_MAPS_API_KEY (Next.js)
19
+ */
20
+ enableGoogleMaps?: boolean;
21
+ /** Whether to extract district code for Paris addresses */
22
+ extractDistrictCode?: boolean;
23
+ /** Error state */
24
+ error?: boolean;
25
+ /** Helper text */
26
+ helperText?: string;
27
+ }
28
+ /**
29
+ * Address field component with Google Maps autocomplete
30
+ * Integrates with Google Places API for address selection
31
+ *
32
+ * Environment variables required for Google Maps:
33
+ * - Vite: VITE_GOOGLE_MAPS_API_KEY
34
+ * - Next.js: NEXT_PUBLIC_GOOGLE_MAPS_API_KEY
35
+ *
36
+ * @component
37
+ * @param {AddressFieldComponentProps} props - Component props
38
+ * @returns {JSX.Element} Address input field with autocomplete
39
+ */
40
+ declare const AddressFieldComponent: ({ label, value, onChange, enableGoogleMaps, extractDistrictCode, error, helperText, }: AddressFieldComponentProps) => import("react/jsx-runtime").JSX.Element;
41
+ export default AddressFieldComponent;
42
+ //# sourceMappingURL=AddressFieldComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddressFieldComponent.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/AddressFieldComponent.tsx"],"names":[],"mappings":"AAgBA;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,KAAK,CAAC,EAAE;QACN,iBAAiB,EAAE,MAAM,CAAC;QAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,qBAAqB;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,2DAA2D;IAC3D,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kBAAkB;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,qBAAqB,GAAI,uFAQ5B,0BAA0B,4CAiP5B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1 @@
1
+ import{jsx as a,jsxs as S}from"react/jsx-runtime";import{useState as v,useEffect as x,useRef as C}from"react";import{Input as E,Popover as P,Command as V,Stack as M}from"@donotdev/components";import{useTranslation as W,getPlatformEnvVar as Y}from"@donotdev/core";import{MapPin as $}from"lucide-react";const F=({label:T,value:l,onChange:b,enableGoogleMaps:j=!1,extractDistrictCode:G,error:i,helperText:p})=>{const{t:m}=W(),[u,s]=v(!1),[n,g]=v(l?.formatted_address||""),[K,h]=v([]),[z,f]=v(!1),_=C(null),w=C(null),c=C(null),y=Y("GOOGLE_MAPS_API_KEY")||"",d=j&&!!y,k=e=>{w.current&&(f(!0),w.current.getDetails({placeId:e,fields:["formatted_address","geometry","address_components"]},(t,r)=>{if(f(!1),r===window.google?.maps?.places?.PlacesServiceStatus.OK&&t){const o=t.formatted_address||"",D=t.geometry?.location?.lat(),q=t.geometry?.location?.lng(),I={formatted_address:o,latitude:D,longitude:q};if(G&&t.address_components){const O=t.address_components.find(R=>R.types.includes("postal_code"))?.long_name||"",L=O.startsWith("92")?92:parseInt(O.slice(-2),10)||null;I.district_code=L}g(o),b(I),s(!1)}}))};x(()=>{l?.formatted_address&&g(l.formatted_address)},[l]),x(()=>{if(!d)return;const e=()=>{if(window.google?.maps?.places){t();return}if(document.querySelector("#google-maps-script")){const o=setInterval(()=>{window.google?.maps?.places&&(clearInterval(o),t())},100);return}const r=document.createElement("script");r.id="google-maps-script",r.src=`https://maps.googleapis.com/maps/api/js?key=${y}&libraries=places`,r.async=!0,r.defer=!0,r.onload=()=>t(),document.head.appendChild(r)},t=()=>{window.google?.maps?.places&&(_.current=new window.google.maps.places.AutocompleteService,w.current=new window.google.maps.places.PlacesService(document.createElement("div")))};e()},[d,y]),x(()=>{if(!d||!n||!_.current||!u){h([]);return}return c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{f(!0),_.current.getPlacePredictions({input:n,types:["geocode","establishment"]},(e,t)=>{if(f(!1),t===window.google?.maps?.places?.PlacesServiceStatus.OK&&e){const r=e.map(o=>({label:o.description,value:o.place_id,description:o.structured_formatting?.secondary_text,icon:a($,{style:{width:"var(--size-icon-sm)",height:"var(--size-icon-sm)"}}),onSelect:()=>k(o.place_id)}));h(r)}else h([])})},300),()=>{c.current&&clearTimeout(c.current)}},[d,n,u]);const A=e=>{g(e),b({formatted_address:e})};return d?S(M,{gap:"tight",children:[S(P,{open:u,onOpenChange:s,children:[a(P.Trigger,{asChild:!0,children:a(E,{type:"text",label:T,value:n,onChange:e=>{g(e.target.value),u||s(!0)},onFocus:()=>s(!0),placeholder:m("common.address_placeholder"),"data-variant":i?"destructive":void 0,disabled:z})}),a(P.Content,{style:{width:"var(--radix-popover-trigger-width)",padding:0},children:a(V,{placeholder:m("common.search_placeholder"),emptyMessage:m(z?"common.loading":"common.no_results"),items:K,onClose:()=>s(!1)})})]}),p&&a("p",{style:{fontSize:"var(--font-size-xs)",color:i?"var(--destructive-foreground)":"var(--muted-foreground)",marginTop:"var(--gap-sm)"},children:p})]}):S(M,{gap:"tight",children:[a(E,{type:"text",label:T,value:n,onChange:e=>A(e.target.value),placeholder:m("common.address_placeholder"),"data-variant":i?"destructive":void 0}),p&&a("p",{style:{fontSize:"var(--font-size-xs)",color:i?"var(--destructive-foreground)":"var(--muted-foreground)",marginTop:"var(--gap-sm)"},children:p})]})};var X=F;export{X as default};
@@ -1,26 +1,32 @@
1
1
  /**
2
- * @fileoverview ReferenceFieldComponent
3
- * @description Field component that renders a dropdown for selecting referenced entities
4
- *
5
- * @version 0.0.1
6
- * @since 0.0.1
7
- * @author AMBROISE PARK Consulting
2
+ * Reference field component props
8
3
  */
9
- import { type DropdownComponentProps } from './DropdownComponent';
10
- export interface ReferenceFieldComponentProps extends Omit<DropdownComponentProps, 'options'> {
11
- /** Options loaded from the reference collection */
12
- options?: Array<{
13
- value: string;
14
- label: string;
15
- }>;
4
+ export interface ReferenceFieldComponentProps {
5
+ /** Field label */
6
+ label: string;
7
+ /** Selected reference document ID */
8
+ value?: string;
9
+ /** Change handler */
10
+ onChange: (value: string) => void;
11
+ /** Collection name to query */
12
+ collection: string;
13
+ /** Fields to search in (e.g. ['name', 'email']) */
14
+ searchFields?: string[];
15
+ /** Field to display (e.g. 'name') */
16
+ displayField?: string;
17
+ /** Error state */
18
+ error?: boolean;
19
+ /** Helper text */
20
+ helperText?: string;
16
21
  }
17
22
  /**
18
- * Field component that renders a dropdown for selecting referenced entities
23
+ * Reference field component for selecting related documents
24
+ * Provides searchable dropdown with document selection
19
25
  *
20
- * @version 0.0.1
21
- * @since 0.0.1
22
- * @author AMBROISE PARK Consulting
26
+ * @component
27
+ * @param {ReferenceFieldComponentProps} props - Component props
28
+ * @returns {JSX.Element} Reference selection field with search
23
29
  */
24
- declare const ReferenceFieldComponent: (props: ReferenceFieldComponentProps) => import("react/jsx-runtime").JSX.Element;
30
+ declare const ReferenceFieldComponent: ({ label, value, onChange, collection, searchFields, displayField, error, helperText, }: ReferenceFieldComponentProps) => import("react/jsx-runtime").JSX.Element;
25
31
  export default ReferenceFieldComponent;
26
32
  //# sourceMappingURL=ReferenceFieldComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReferenceFieldComponent.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/ReferenceFieldComponent.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAA0B,EACxB,KAAK,sBAAsB,EAC5B,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CACxD,sBAAsB,EACtB,SAAS,CACV;IACC,mDAAmD;IACnD,OAAO,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACnD;AAED;;;;;;GAMG;AACH,QAAA,MAAM,uBAAuB,GAAI,OAAO,4BAA4B,4CAGnE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"ReferenceFieldComponent.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/ReferenceFieldComponent.tsx"],"names":[],"mappings":"AAuBA;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,+BAA+B;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,qCAAqC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,uBAAuB,GAAI,wFAS9B,4BAA4B,4CAyH9B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import p from"./DropdownComponent";const r=o=>t(p,{...o,options:o.options||[]});var s=r;export{s as default};
1
+ import{jsx as t,jsxs as d}from"react/jsx-runtime";import{useState as s,useEffect as w,useMemo as T}from"react";import{useCrud as j}from"../../../useCrud";import{Popover as m,Command as k,Button as _,Stack as M}from"@donotdev/components";import{useTranslation as q}from"@donotdev/core";import{Check as A,ChevronsUpDown as B}from"lucide-react";const F=({label:b,value:r,onChange:p,collection:h,searchFields:i=["name"],displayField:n="name",error:v,helperText:g})=>{const{t:l}=q(),[a,c]=s(!1),{query:u,get:f}=j(h),[y,z]=s([]),[O,x]=s(!1),[o,C]=s(null);w(()=>{r&&!o&&f(r).then(e=>{e&&C(e)})},[r,f,o]),w(()=>{a&&(async()=>{x(!0);try{const e=await u({limit:50});z(e)}catch{}finally{x(!1)}})()},[a,u,h]);const S=T(()=>y.map(e=>({label:e[n]||e.id,value:e.id,description:i[1]&&e[i[1]]?e[i[1]]:void 0,icon:t(A,{style:{width:"var(--size-icon-sm)",height:"var(--size-icon-sm)",opacity:r===e.id?1:0}}),onSelect:()=>{p(e.id),C(e),c(!1)}})),[y,n,i,r,p]);return d(M,{gap:"tight",children:[d(m,{open:a,onOpenChange:c,children:[t(m.Trigger,{asChild:!0,children:d(_,{variant:"outline",role:"combobox","aria-expanded":a,style:{width:"100%",justifyContent:"space-between",borderColor:v?"var(--destructive)":void 0},children:[t("span",{style:{flex:1,textAlign:"left"},children:o?o[n]||o.id:l("common.select_placeholder",{label:b})}),t(B,{style:{marginLeft:"var(--gap-sm)",width:"var(--size-icon-sm)",height:"var(--size-icon-sm)",opacity:.5,flexShrink:0}})]})}),t(m.Content,{style:{width:"var(--radix-popover-trigger-width)",padding:0},children:t(k,{placeholder:l("common.search_placeholder"),emptyMessage:l("common.no_results"),items:S,onClose:()=>c(!1)})})]}),g&&t("p",{style:{fontSize:"var(--font-size-xs)",color:v?"var(--destructive-foreground)":"var(--muted-foreground)",marginTop:"var(--gap-sm)"},children:g})]})};var L=F;export{L as default};
@@ -50,4 +50,6 @@ export { default as HiddenFieldComponent } from './HiddenFieldComponent';
50
50
  export type { HiddenFieldComponentProps } from './HiddenFieldComponent';
51
51
  export { default as PasswordFieldComponent } from './PasswordFieldComponent';
52
52
  export type { PasswordFieldComponentProps } from './PasswordFieldComponent';
53
+ export { default as AddressFieldComponent } from './AddressFieldComponent';
54
+ export type { AddressFieldComponentProps } from './AddressFieldComponent';
53
55
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fields/index.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,YAAY,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACz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E,MAAM,0BAA0B,CAAC;AAE5E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,YAAY,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- import{default as o}from"./AvatarFieldComponent";import{default as e}from"./BadgeFieldComponent";import{default as t}from"./TextFieldComponent";import{default as a}from"./NumberFieldComponent";import{default as m}from"./DateFieldComponent";import{default as n}from"./CheckboxFieldComponent";import{default as r}from"./DropdownComponent";import{default as p}from"./MultiDropdownComponent";import{default as d}from"./FileFieldComponent";import{default as s}from"./ImageFieldComponent";import{default as i}from"./TextAreaComponent";import{default as f}from"./RadioFieldComponent";import{default as l}from"./RangeFieldComponent";import{default as u}from"./PhoneNumberComponent";import{default as C}from"./GeoPointFieldComponent";import{default as F}from"./MapFieldComponent";import{default as x}from"./TimestampFieldComponent";import{default as b}from"./ReferenceFieldComponent";import{default as w}from"./MultiInputTextFieldComponent";import{default as M}from"./ButtonFieldComponent";import{default as R}from"./HiddenFieldComponent";import{default as T}from"./PasswordFieldComponent";export{o as AvatarFieldComponent,e as BadgeFieldComponent,M as ButtonFieldComponent,n as CheckboxFieldComponent,m as DateFieldComponent,r as DropdownComponent,d as FileFieldComponent,C as GeoPointFieldComponent,R as HiddenFieldComponent,s as ImageFieldComponent,F as MapFieldComponent,p as MultiDropdownComponent,w as MultiInputTextFieldComponent,a as NumberFieldComponent,T as PasswordFieldComponent,u as PhoneNumberComponent,f as RadioFieldComponent,l as RangeFieldComponent,b as ReferenceFieldComponent,i as TextAreaComponent,t as TextFieldComponent,x as TimestampFieldComponent};
1
+ import{default as o}from"./AvatarFieldComponent";import{default as e}from"./BadgeFieldComponent";import{default as t}from"./TextFieldComponent";import{default as a}from"./NumberFieldComponent";import{default as m}from"./DateFieldComponent";import{default as n}from"./CheckboxFieldComponent";import{default as r}from"./DropdownComponent";import{default as p}from"./MultiDropdownComponent";import{default as d}from"./FileFieldComponent";import{default as s}from"./ImageFieldComponent";import{default as i}from"./TextAreaComponent";import{default as f}from"./RadioFieldComponent";import{default as l}from"./RangeFieldComponent";import{default as u}from"./PhoneNumberComponent";import{default as C}from"./GeoPointFieldComponent";import{default as F}from"./MapFieldComponent";import{default as x}from"./TimestampFieldComponent";import{default as b}from"./ReferenceFieldComponent";import{default as w}from"./MultiInputTextFieldComponent";import{default as D}from"./ButtonFieldComponent";import{default as P}from"./HiddenFieldComponent";import{default as T}from"./PasswordFieldComponent";import{default as c}from"./AddressFieldComponent";export{c as AddressFieldComponent,o as AvatarFieldComponent,e as BadgeFieldComponent,D as ButtonFieldComponent,n as CheckboxFieldComponent,m as DateFieldComponent,r as DropdownComponent,d as FileFieldComponent,C as GeoPointFieldComponent,P as HiddenFieldComponent,s as ImageFieldComponent,F as MapFieldComponent,p as MultiDropdownComponent,w as MultiInputTextFieldComponent,a as NumberFieldComponent,T as PasswordFieldComponent,u as PhoneNumberComponent,f as RadioFieldComponent,l as RangeFieldComponent,b as ReferenceFieldComponent,i as TextAreaComponent,t as TextFieldComponent,x as TimestampFieldComponent};