treege 2.0.0 → 2.1.0

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.
Files changed (28) hide show
  1. package/CHANGELOG.md +3 -25
  2. package/dist/components/DataDisplay/Tree/useTree.d.ts +1 -1
  3. package/dist/constants/fields.d.ts +16 -16
  4. package/dist/features/Treege/components/Forms/AssignValueToChildren/AssignValueToChildren.d.ts +1 -3
  5. package/dist/features/Treege/components/Forms/FormTreeCardMutation/Fields/ApiFieldsConfigAccordion.d.ts +32 -0
  6. package/dist/features/Treege/components/Forms/FormTreeCardMutation/Fields/FillerFieldAccordion.d.ts +14 -0
  7. package/dist/features/Treege/components/Forms/FormTreeCardMutation/FormTreeCardMutation.d.ts +1 -2
  8. package/dist/features/Treege/components/Forms/FormTreeCardMutation/useFormTreeCardMutation.d.ts +4 -9
  9. package/dist/features/Treege/components/Inputs/AutocompleteSelectType/useAutocompleteSelectType.d.ts +32 -32
  10. package/dist/features/Treege/components/TreeGrid/useTreeGrid.d.ts +0 -2
  11. package/dist/features/Treege/context/TreegeProvider.d.ts +5 -4
  12. package/dist/features/Treege/reducer/treeReducer.d.ts +20 -19
  13. package/dist/locales/en/form-en.d.ts +16 -8
  14. package/dist/locales/en/translation-en.d.ts +2 -0
  15. package/dist/locales/fr/form-fr.d.ts +16 -8
  16. package/dist/locales/fr/translation-fr.d.ts +2 -0
  17. package/dist/main.js +4334 -5031
  18. package/dist/main.umd.cjs +42 -53
  19. package/dist/utils/tree/removeNode/removeNode.d.ts +3 -3
  20. package/dist/utils/tree/updateNodeInTree/updateNodeInTree.d.ts +3 -3
  21. package/package.json +25 -24
  22. package/dist/context/Snackbar/SnackbarContext.d.ts +0 -19
  23. package/dist/context/Snackbar/SnackbarProvider.d.ts +0 -6
  24. package/dist/context/Snackbar/snackbarReducer.d.ts +0 -23
  25. package/dist/features/Treege/components/Forms/ReceiveValueFromAncestor.d.ts +0 -11
  26. package/dist/hooks/useSnackbar/index.d.ts +0 -3
  27. package/dist/hooks/useSnackbar/useSnackbar.d.ts +0 -6
  28. /package/dist/features/Treege/components/Forms/FormTreeCardMutation/{ExtraField.d.ts → Fields/ExtraField.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,29 +1,7 @@
1
1
  # [Versions](https://github.com/Tracktor/treege/releases)
2
2
 
3
- ## v2.0.0
3
+ ## v2.1.0
4
4
 
5
- ### 🚀 New Features
5
+ ### 🧹 Features
6
6
 
7
- - Introduced components to assign and receive values from ancestor nodes in tree-based forms, improving dynamic data binding and API parameterization.
8
- - Added an object mapping example component to aid in key path selection within nested objects.
9
-
10
- ### ✨ Enhancements
11
-
12
- - Redesigned form layouts with a responsive two-column grid and enhanced large modal handling.
13
- - Expanded English and French localization with detailed guidance on dynamic data, ancestor values, and API parameters.
14
- - Upgraded multiple dependencies to latest versions for improved stability and features.
15
-
16
- ### 🐛 Bug Fixes
17
-
18
- - Improved modal and dialog behaviors for better accessibility and consistency.
19
-
20
- ### 🔨 Refactor
21
-
22
- - Removed legacy components and utilities related to ancestor and tree name extraction.
23
- - Consolidated and simplified ancestor retrieval utilities.
24
- - Cleaned up ancestor references when removing nodes from the tree.
25
-
26
- ### 🧹 Chores
27
-
28
- - Deleted unused files and tests tied to deprecated tree utilities.
29
- - Added new tests validating updated ancestor retrieval and node removal functionality.
7
+ - UX improvements and bug fixes.
@@ -3,7 +3,7 @@ declare const useTree: () => {
3
3
  height: number;
4
4
  width: number;
5
5
  };
6
- refContainer: (ref: null | Element) => Element | null;
6
+ refContainer: (ref: null | HTMLDivElement) => void;
7
7
  translate: {
8
8
  x: number;
9
9
  y: number;
@@ -83,6 +83,22 @@ declare const fields: readonly [{
83
83
  readonly isRepeatableDisabled: false;
84
84
  readonly isRequiredDisabled: false;
85
85
  readonly type: "timeRange";
86
+ }, {
87
+ readonly initialQueryEnable: true;
88
+ readonly isBooleanField: false;
89
+ readonly isDecisionField: false;
90
+ readonly isPatternEnabled: false;
91
+ readonly isRepeatableDisabled: true;
92
+ readonly isRequiredDisabled: false;
93
+ readonly type: "autocomplete";
94
+ }, {
95
+ readonly isBooleanField: false;
96
+ readonly isDecisionField: false;
97
+ readonly isMultiple: false;
98
+ readonly isPatternEnabled: false;
99
+ readonly isRepeatableDisabled: false;
100
+ readonly isRequiredDisabled: false;
101
+ readonly type: "dynamicSelect";
86
102
  }, {
87
103
  readonly isBooleanField: true;
88
104
  readonly isDecisionField: false;
@@ -125,22 +141,6 @@ declare const fields: readonly [{
125
141
  readonly isRepeatableDisabled: true;
126
142
  readonly isRequiredDisabled: false;
127
143
  readonly type: "select";
128
- }, {
129
- readonly initialQueryEnable: true;
130
- readonly isBooleanField: false;
131
- readonly isDecisionField: false;
132
- readonly isPatternEnabled: false;
133
- readonly isRepeatableDisabled: true;
134
- readonly isRequiredDisabled: false;
135
- readonly type: "autocomplete";
136
- }, {
137
- readonly isBooleanField: false;
138
- readonly isDecisionField: false;
139
- readonly isMultiple: false;
140
- readonly isPatternEnabled: false;
141
- readonly isRepeatableDisabled: false;
142
- readonly isRequiredDisabled: false;
143
- readonly type: "dynamicSelect";
144
144
  }, {
145
145
  readonly isBooleanField: false;
146
146
  readonly isDecisionField: false;
@@ -2,9 +2,7 @@ import { DefaultValueFromAncestor } from '@tracktor/types-treege';
2
2
  interface AssignValueToChildrenProps {
3
3
  value?: DefaultValueFromAncestor | null;
4
4
  onChange?: (sourceValue?: string) => void;
5
- ancestorName: string;
6
- displayTopDivider?: boolean;
7
5
  currentType?: string;
8
6
  }
9
- declare const AssignValueToChildren: ({ onChange, value, ancestorName, displayTopDivider, currentType }: AssignValueToChildrenProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const AssignValueToChildren: ({ onChange, value, currentType }: AssignValueToChildrenProps) => import("react/jsx-runtime").JSX.Element;
10
8
  export default AssignValueToChildren;
@@ -0,0 +1,32 @@
1
+ import { Params } from '@tracktor/types-treege';
2
+ import { ChangeEvent, MouseEvent, SyntheticEvent } from 'react';
3
+ import { default as fields } from '../../../../../../src/constants/fields';
4
+ interface RouteMapping {
5
+ object: string;
6
+ label: string;
7
+ value: string;
8
+ image: string;
9
+ }
10
+ interface ApiFieldsConfigAccordionProps {
11
+ isAutocomplete?: boolean;
12
+ url?: string;
13
+ searchKey?: string;
14
+ sliceUrlParams?: string[];
15
+ apiParams?: Params[];
16
+ ancestors: {
17
+ uuid: string;
18
+ name?: string;
19
+ }[];
20
+ apiMapping?: RouteMapping;
21
+ initialQuery?: boolean;
22
+ onChangeUrlSelect?: ({ target }: ChangeEvent<HTMLInputElement>) => void;
23
+ onChangeSearchKey?: ({ target }: ChangeEvent<HTMLInputElement>) => void;
24
+ onAddParams?: () => void;
25
+ onChangeParams?: <K extends keyof Params>(index: number, property: K, value: Params[K]) => void;
26
+ onDeleteParams?: (e: MouseEvent<HTMLButtonElement> | string) => void;
27
+ onChangeApiMapping?: (property: string, event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
28
+ onChangeType?: (_: SyntheticEvent, value: (typeof fields)[number]) => void;
29
+ onChangeInitialQuery?: ({ target }: ChangeEvent<HTMLInputElement>) => void;
30
+ }
31
+ declare const ApiFieldsConfigAccordion: ({ isAutocomplete, url, searchKey, sliceUrlParams, apiParams, ancestors, apiMapping, initialQuery, onChangeSearchKey, onChangeUrlSelect, onAddParams, onChangeParams, onDeleteParams, onChangeApiMapping, onChangeType, onChangeInitialQuery, }: ApiFieldsConfigAccordionProps) => import("react/jsx-runtime").JSX.Element;
32
+ export default ApiFieldsConfigAccordion;
@@ -0,0 +1,14 @@
1
+ import { DefaultValueFromAncestor, FieldType } from '@tracktor/types-treege';
2
+ interface FillerFieldAccordionProps {
3
+ selectAncestorName?: string;
4
+ type: FieldType;
5
+ ancestors: {
6
+ uuid: string;
7
+ name?: string;
8
+ }[];
9
+ defaultValueFromAncestor?: DefaultValueFromAncestor;
10
+ onChangeValueFromAncestor?: (sourceValue?: string) => void;
11
+ onChangeAncestorRef?: (ancestorUuid?: string, ancestorName?: string) => void;
12
+ }
13
+ declare const FillerFieldAccordion: ({ selectAncestorName, type, ancestors, defaultValueFromAncestor, onChangeValueFromAncestor, onChangeAncestorRef, }: FillerFieldAccordionProps) => import("react/jsx-runtime").JSX.Element | null;
14
+ export default FillerFieldAccordion;
@@ -1,7 +1,6 @@
1
1
  interface FormTreeCardMutationProps {
2
2
  onClose(): void;
3
3
  title?: string;
4
- setIsLarge?(largeModal: boolean): void;
5
4
  }
6
- declare const FormTreeCardMutation: ({ onClose, title, setIsLarge }: FormTreeCardMutationProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const FormTreeCardMutation: ({ onClose, title }: FormTreeCardMutationProps) => import("react/jsx-runtime").JSX.Element;
7
6
  export default FormTreeCardMutation;
@@ -8,15 +8,11 @@ interface Values {
8
8
  value: string;
9
9
  message?: string;
10
10
  }
11
- interface UseFormTreeCardMutationParams {
12
- setIsLarge?(largeModal: boolean): void;
13
- }
14
- declare const useFormTreeCardMutation: ({ setIsLarge }: UseFormTreeCardMutationParams) => {
11
+ declare const useFormTreeCardMutation: () => {
15
12
  ancestors: {
16
13
  uuid: string;
17
14
  name?: string;
18
15
  }[];
19
- collapseOptions: boolean;
20
16
  currentTree: TreeNode | null;
21
17
  defaultValueFromAncestor: DefaultValueFromAncestor | undefined;
22
18
  getDisabledValueField: (index: number) => boolean;
@@ -49,12 +45,13 @@ declare const useFormTreeCardMutation: ({ setIsLarge }: UseFormTreeCardMutationP
49
45
  handleChangeTreeSelect: ({ target }: SelectChangeEvent) => void;
50
46
  handleChangeType: (_: SyntheticEvent, value: (typeof fields)[number]) => void;
51
47
  handleChangeUrlSelect: ({ target }: ChangeEvent<HTMLInputElement>) => void;
52
- handleDeleteParam: (e: MouseEvent<HTMLButtonElement>) => void;
48
+ handleDeleteParam: (arg: MouseEvent<HTMLButtonElement> | string) => void;
53
49
  handleDeleteValue: ({ currentTarget }: MouseEvent<HTMLButtonElement>) => void;
54
50
  handlePresetValues: (predicate: "value" | "label" | "message") => (event: ChangeEvent<HTMLInputElement>) => void;
55
51
  handleSubmit: (e: FormEvent) => Promise<void>;
56
52
  handleValueFromAncestor: (sourceValue?: string) => void;
57
53
  hasAncestors: boolean;
54
+ hasApiConfig: boolean;
58
55
  helperText: string;
59
56
  hiddenValue: string;
60
57
  initialQuery: boolean;
@@ -64,9 +61,7 @@ declare const useFormTreeCardMutation: ({ setIsLarge }: UseFormTreeCardMutationP
64
61
  isDecision: boolean;
65
62
  isDecisionField: boolean;
66
63
  isDisabledPast: boolean;
67
- isDynamicSelect: boolean;
68
64
  isHiddenField: boolean;
69
- isLargeView: boolean;
70
65
  isMultiple: boolean;
71
66
  isMultiplePossible: boolean;
72
67
  isPatternEnabled: boolean;
@@ -105,11 +100,11 @@ declare const useFormTreeCardMutation: ({ setIsLarge }: UseFormTreeCardMutationP
105
100
  required: boolean;
106
101
  route: Route | undefined;
107
102
  selectAncestorName: string | undefined;
108
- setCollapseOptions: import('react').Dispatch<import('react').SetStateAction<boolean>>;
109
103
  tag: string | null;
110
104
  treeSelected: string;
111
105
  type: import('@tracktor/types-treege').FieldType;
112
106
  uuid: string;
107
+ validDynamicUrlParams: string[];
113
108
  values: Values[];
114
109
  };
115
110
  export default useFormTreeCardMutation;
@@ -84,6 +84,22 @@ declare const useAutocompleteSelectType: (value: any) => {
84
84
  readonly isRepeatableDisabled: false;
85
85
  readonly isRequiredDisabled: false;
86
86
  readonly type: "timeRange";
87
+ } | {
88
+ readonly initialQueryEnable: true;
89
+ readonly isBooleanField: false;
90
+ readonly isDecisionField: false;
91
+ readonly isPatternEnabled: false;
92
+ readonly isRepeatableDisabled: true;
93
+ readonly isRequiredDisabled: false;
94
+ readonly type: "autocomplete";
95
+ } | {
96
+ readonly isBooleanField: false;
97
+ readonly isDecisionField: false;
98
+ readonly isMultiple: false;
99
+ readonly isPatternEnabled: false;
100
+ readonly isRepeatableDisabled: false;
101
+ readonly isRequiredDisabled: false;
102
+ readonly type: "dynamicSelect";
87
103
  } | {
88
104
  readonly isBooleanField: true;
89
105
  readonly isDecisionField: false;
@@ -126,22 +142,6 @@ declare const useAutocompleteSelectType: (value: any) => {
126
142
  readonly isRepeatableDisabled: true;
127
143
  readonly isRequiredDisabled: false;
128
144
  readonly type: "select";
129
- } | {
130
- readonly initialQueryEnable: true;
131
- readonly isBooleanField: false;
132
- readonly isDecisionField: false;
133
- readonly isPatternEnabled: false;
134
- readonly isRepeatableDisabled: true;
135
- readonly isRequiredDisabled: false;
136
- readonly type: "autocomplete";
137
- } | {
138
- readonly isBooleanField: false;
139
- readonly isDecisionField: false;
140
- readonly isMultiple: false;
141
- readonly isPatternEnabled: false;
142
- readonly isRepeatableDisabled: false;
143
- readonly isRequiredDisabled: false;
144
- readonly type: "dynamicSelect";
145
145
  } | {
146
146
  readonly isBooleanField: false;
147
147
  readonly isDecisionField: false;
@@ -235,6 +235,22 @@ declare const useAutocompleteSelectType: (value: any) => {
235
235
  readonly isRepeatableDisabled: false;
236
236
  readonly isRequiredDisabled: false;
237
237
  readonly type: "timeRange";
238
+ } | {
239
+ readonly initialQueryEnable: true;
240
+ readonly isBooleanField: false;
241
+ readonly isDecisionField: false;
242
+ readonly isPatternEnabled: false;
243
+ readonly isRepeatableDisabled: true;
244
+ readonly isRequiredDisabled: false;
245
+ readonly type: "autocomplete";
246
+ } | {
247
+ readonly isBooleanField: false;
248
+ readonly isDecisionField: false;
249
+ readonly isMultiple: false;
250
+ readonly isPatternEnabled: false;
251
+ readonly isRepeatableDisabled: false;
252
+ readonly isRequiredDisabled: false;
253
+ readonly type: "dynamicSelect";
238
254
  } | {
239
255
  readonly isBooleanField: true;
240
256
  readonly isDecisionField: false;
@@ -277,22 +293,6 @@ declare const useAutocompleteSelectType: (value: any) => {
277
293
  readonly isRepeatableDisabled: true;
278
294
  readonly isRequiredDisabled: false;
279
295
  readonly type: "select";
280
- } | {
281
- readonly initialQueryEnable: true;
282
- readonly isBooleanField: false;
283
- readonly isDecisionField: false;
284
- readonly isPatternEnabled: false;
285
- readonly isRepeatableDisabled: true;
286
- readonly isRequiredDisabled: false;
287
- readonly type: "autocomplete";
288
- } | {
289
- readonly isBooleanField: false;
290
- readonly isDecisionField: false;
291
- readonly isMultiple: false;
292
- readonly isPatternEnabled: false;
293
- readonly isRepeatableDisabled: false;
294
- readonly isRequiredDisabled: false;
295
- readonly type: "dynamicSelect";
296
296
  } | {
297
297
  readonly isBooleanField: false;
298
298
  readonly isDecisionField: false;
@@ -4,8 +4,6 @@ declare const useTreeGrid: () => {
4
4
  getTitleModalMutation: () => "Add a field" | "Add a field to « {{name}} »" | "Edit field « {{name}} »";
5
5
  handleChangeTree: (tree: string) => false | undefined;
6
6
  isDeleteModal: boolean;
7
- isLargeView: boolean;
8
7
  isModalMutationOpen: boolean;
9
- setIsLargeView: import('react').Dispatch<import('react').SetStateAction<boolean>>;
10
8
  };
11
9
  export default useTreeGrid;
@@ -1,6 +1,7 @@
1
1
  import { CurrentTree, ModalType, TreeNode, TreePath } from '@tracktor/types-treege';
2
2
  import { HierarchyPointNode } from 'd3-hierarchy';
3
- import { ReactNode, ReducerAction, SetStateAction } from 'react';
3
+ import { Dispatch, ReactNode, SetStateAction } from 'react';
4
+ import { TreeReducerAction } from '../../../src/features/Treege/reducer/treeReducer';
4
5
  import { BackendConfig } from '../../../src/features/Treege/Treege';
5
6
  interface TreegeProviderProps {
6
7
  children: ReactNode;
@@ -55,15 +56,15 @@ export interface TreeDefaultValue {
55
56
  * This is the tree node dispatch function
56
57
  * @param state
57
58
  */
58
- dispatchTree(state: ReducerAction<any>): void;
59
+ dispatchTree: Dispatch<TreeReducerAction>;
59
60
  /**
60
61
  * This is the function to set the modal open state
61
62
  * @param state
62
63
  */
63
64
  setCurrentHierarchyPointNode(state: SetStateAction<null | HierarchyPointNode<TreeNode>>): void;
64
65
  /**
65
- * This is the function to set the current tree information
66
- * Not the node to display tree
66
+ * This is the function to set the current tree information,
67
+ * Not the node to display a tree
67
68
  * @param state
68
69
  */
69
70
  setCurrentTree(state: SetStateAction<CurrentTree>): void;
@@ -6,29 +6,30 @@ export declare const treeReducerActionType: {
6
6
  readonly resetTree: "resetTree";
7
7
  readonly setTree: "setTree";
8
8
  };
9
- export declare const appendTreeCard: (path: string | null, uuid: string, children: TreeNode) => {
10
- children: TreeNode;
9
+ export type TreeReducerAction = {
10
+ type: typeof treeReducerActionType.appendTreeCard;
11
11
  path: string | null;
12
- type: "appendTreeCard";
13
12
  uuid: string;
14
- };
15
- export declare const replaceTreeCard: (path: string | null, uuid: string, children: TreeNode) => {
16
13
  children: TreeNode;
17
- path: string | null;
18
- type: "replaceTreeCard";
14
+ } | {
15
+ type: typeof treeReducerActionType.deleteTreeCard;
16
+ path: string | "";
19
17
  uuid: string;
20
- };
21
- export declare const deleteTreeCard: (path: string | "", uuid: string) => {
22
- path: string;
23
- type: "deleteTreeCard";
18
+ } | {
19
+ type: typeof treeReducerActionType.replaceTreeCard;
20
+ path: string | null;
24
21
  uuid: string;
22
+ children: TreeNode;
23
+ } | {
24
+ type: typeof treeReducerActionType.resetTree;
25
+ } | {
26
+ type: typeof treeReducerActionType.setTree;
27
+ tree: TreeNode | null;
25
28
  };
26
- export declare const resetTree: () => {
27
- type: "resetTree";
28
- };
29
- export declare const setTree: (tree: TreeNode) => {
30
- tree: TreeNode;
31
- type: "setTree";
32
- };
33
- declare const treeReducer: (tree: TreeNode, action: any) => any;
29
+ export declare const appendTreeCard: (path: string | null, uuid: string, children: TreeNode) => TreeReducerAction;
30
+ export declare const replaceTreeCard: (path: string | null, uuid: string, children: TreeNode) => TreeReducerAction;
31
+ export declare const deleteTreeCard: (path: string | "", uuid: string) => TreeReducerAction;
32
+ export declare const resetTree: () => TreeReducerAction;
33
+ export declare const setTree: (tree: TreeNode | null) => TreeReducerAction;
34
+ declare const treeReducer: (tree: TreeNode | null, action: any) => any;
34
35
  export default treeReducer;
@@ -1,11 +1,13 @@
1
1
  declare const FORM_EN: {
2
- readonly additionalParams: "Api parameters";
2
+ readonly addParentsBeforeIntegrateUrlVariable: "Add fields parents before integrate URL variable";
3
3
  readonly addressStructureHint: "An address type must be:";
4
+ readonly addUrlVariable: "Add URL variable";
4
5
  readonly ancestor: "Ancestor";
5
6
  readonly ancestorValue: "Get value from: {{ancestorName}}";
7
+ readonly apiConfigDescription: "When the search finds only one possible option, it is automatically displayed in the field.";
6
8
  readonly apiRoute: "Api route";
9
+ readonly baseUrl: "Base URL";
7
10
  readonly cardNumber: "Card number";
8
- readonly dataMapping: "Option mapping";
9
11
  readonly decisionField: "Decision field";
10
12
  readonly disabledPast: "Disabled Past";
11
13
  readonly dynamicSelectStructureHint: "Make sure the field accepts the ancestor value.";
@@ -16,11 +18,10 @@ declare const FORM_EN: {
16
18
  readonly key: "Key";
17
19
  readonly keyPath: "Key path (string | number)";
18
20
  readonly keyPathApiDescription: "(Option) To insert a value in a URL, use the syntax {paramName}. For example: http://api.com/userId={userId}, add {userId} in params.";
19
- readonly keyPathAssignment: "Key path to value: {{keyPath}}";
20
21
  readonly keyPathObject: "Key path to value";
21
22
  readonly label: "Label";
22
23
  readonly letter: "Letter";
23
- readonly mapObject: "Map object";
24
+ readonly mapObjectToRender: "Map the value of the object to display";
24
25
  readonly message: "Message";
25
26
  readonly mustBeUnique: "Must be unique";
26
27
  readonly newTree: "Nouvel arbre";
@@ -30,13 +31,17 @@ declare const FORM_EN: {
30
31
  readonly objectDemo: "Example of object mapping";
31
32
  readonly offMessage: "Message (disable)";
32
33
  readonly onMessage: "Message (enable)";
34
+ readonly optionConfig: "Option mapping";
33
35
  readonly pattern: "Pattern";
34
36
  readonly patternMessage: "Pattern message";
35
37
  readonly phoneNumber: "Phone number";
36
- readonly receiveValueFromParent: "Default value from ancestor";
38
+ readonly prefillField: "pre-fill field";
39
+ readonly queryParams: "query params";
40
+ readonly receiveValueFromParent: "Pre-fill field from parent";
37
41
  readonly repeatable: "Repeatable";
38
42
  readonly searchKeyPlaceholder: "text";
39
43
  readonly selectStructureHint: "Must be an value existing in the values option.";
44
+ readonly setupApi: "Setup API";
40
45
  readonly staticFields: "Static fields";
41
46
  readonly staticValue: "(Option) Static value";
42
47
  readonly staticValueDescription: "By default, it will use the ancestor value, but you can assign a static value.";
@@ -45,11 +50,11 @@ declare const FORM_EN: {
45
50
  readonly treeName: "Tree name";
46
51
  readonly type: {
47
52
  readonly address: "Address";
48
- readonly autocomplete: "Autocomplete";
53
+ readonly autocomplete: "API Field";
49
54
  readonly checkbox: "Checkbox";
50
55
  readonly date: "Date";
51
56
  readonly dateRange: "Date range";
52
- readonly dynamicSelect: "Dynamic select";
57
+ readonly dynamicSelect: "API Field";
53
58
  readonly email: "Email";
54
59
  readonly file: "File";
55
60
  readonly hidden: "Hidden field";
@@ -66,12 +71,15 @@ declare const FORM_EN: {
66
71
  readonly tree: "Tree";
67
72
  readonly url: "URL";
68
73
  };
69
- readonly typeStructureWarning: "Type structure must be: {{type}}";
70
74
  readonly url: "URL";
75
+ readonly urlBuilder: "URL Builder";
71
76
  readonly urlConstruction: "URL construction";
77
+ readonly URlVariables: "URL Variables";
72
78
  readonly useAncestorValueAsParam: "Use Ancestor value";
73
79
  readonly value: "Value";
80
+ readonly valueOfParentIsOfType: "Value of parent is of type";
74
81
  readonly values: "Values";
82
+ readonly variant: "Field type: {{variant}}";
75
83
  readonly warningApiAutocomplete: {
76
84
  readonly response: "should have as a response";
77
85
  readonly url: "The API Route";
@@ -1,5 +1,7 @@
1
1
  declare const TRANSLATION_EN: {
2
+ readonly activateSearch: "Activate search";
2
3
  readonly add: "Add";
4
+ readonly advancedConfiguration: "Advanced configuration";
3
5
  readonly cancel: "Cancel";
4
6
  readonly disabled: "Disabled";
5
7
  readonly edit: "Edit";
@@ -1,11 +1,13 @@
1
1
  declare const FORM_FR: {
2
- readonly additionalParams: "Paramètres API";
2
+ readonly addParentsBeforeIntegrateUrlVariable: "Ajouter des champs parents avant d'intégrer une variable d'URL";
3
3
  readonly addressStructureHint: "Un type d'adresse doit être :";
4
+ readonly addUrlVariable: "Ajouter une variable d'URL";
4
5
  readonly ancestor: "Ancêtre";
5
6
  readonly ancestorValue: "Récupération de la valeur de : {{ancestorName}}";
7
+ readonly apiConfigDescription: "Lorsque la recherche ne trouve qu’un seul choix possible, ce choix est directement affiché dans le champ.";
6
8
  readonly apiRoute: "Api route";
9
+ readonly baseUrl: "URL de base";
7
10
  readonly cardNumber: "Numéro de carte";
8
- readonly dataMapping: "Mapping des options";
9
11
  readonly decisionField: "Champs de décision";
10
12
  readonly disabledPast: "Passé désactivé";
11
13
  readonly dynamicSelectStructureHint: "Assurez-vous que le champ accepte la valeur de l'ancêtre.";
@@ -16,11 +18,10 @@ declare const FORM_FR: {
16
18
  readonly key: "Clé";
17
19
  readonly keyPath: "Chemin de la clé (string | number)";
18
20
  readonly keyPathApiDescription: "Pour insérer une valeur dans une URL, utilisez la syntaxe {paramName}. Par exemple : http://api.com/userId={userId}, ajouter {userId} en params.";
19
- readonly keyPathAssignment: "Chemin vers la valeur : {{keyPath}}";
20
21
  readonly keyPathObject: "Clé vers la valeur";
21
22
  readonly label: "Label";
22
23
  readonly letter: "Lettre";
23
- readonly mapObject: "Mapper l'objet";
24
+ readonly mapObjectToRender: "Mapper la valeur de l'objet à afficher";
24
25
  readonly message: "Message";
25
26
  readonly mustBeUnique: "Doit être unique";
26
27
  readonly newTree: "Nouvel arbre";
@@ -30,13 +31,17 @@ declare const FORM_FR: {
30
31
  readonly objectDemo: "Exemple de mapping d'objet";
31
32
  readonly offMessage: "Message (désactiver)";
32
33
  readonly onMessage: "Message (activer)";
34
+ readonly optionConfig: "Configuration des options";
33
35
  readonly pattern: "Expression régulière";
34
36
  readonly patternMessage: "Message d'aide invalide";
35
37
  readonly phoneNumber: "Numéro de téléphone";
36
- readonly receiveValueFromParent: "Valeur par défaut depuis l'ancêtre";
38
+ readonly prefillField: "pré-remplir le champ";
39
+ readonly queryParams: "Query params";
40
+ readonly receiveValueFromParent: "Pré-remplissage du champ depuis un parent";
37
41
  readonly repeatable: "Répétable";
38
42
  readonly searchKeyPlaceholder: "text";
39
43
  readonly selectStructureHint: "Doit être une valeur existante dans les options de valeurs.";
44
+ readonly setupApi: "Configurer l'API";
40
45
  readonly staticFields: "Champs statiques";
41
46
  readonly staticValue: "(Option) Valeur statique";
42
47
  readonly staticValueDescription: "Par défaut, il utilisera la valeur de l'ancêtre, mais vous pouvez assigner une valeur statique.";
@@ -45,11 +50,11 @@ declare const FORM_FR: {
45
50
  readonly treeName: "Nom de l'arbre";
46
51
  readonly type: {
47
52
  readonly address: "Adresse";
48
- readonly autocomplete: "Autocomplétion";
53
+ readonly autocomplete: "Champs API";
49
54
  readonly checkbox: "Case à cocher";
50
55
  readonly date: "Date";
51
56
  readonly dateRange: "Plage de dates";
52
- readonly dynamicSelect: "Sélection dynamique";
57
+ readonly dynamicSelect: "Champs API";
53
58
  readonly email: "Email";
54
59
  readonly file: "Fichier";
55
60
  readonly hidden: "Champs caché";
@@ -66,12 +71,15 @@ declare const FORM_FR: {
66
71
  readonly tree: "Arbre";
67
72
  readonly url: "URL";
68
73
  };
69
- readonly typeStructureWarning: "Le type d'input doit être : {{type}}";
70
74
  readonly url: "URL";
75
+ readonly urlBuilder: "URL Builder";
71
76
  readonly urlConstruction: "Construction de l'URL";
77
+ readonly URlVariables: "Variables d'URL";
72
78
  readonly useAncestorValueAsParam: "Utiliser une valeur ancêtre";
73
79
  readonly value: "Valeur";
80
+ readonly valueOfParentIsOfType: "La valeur du parent est de type";
74
81
  readonly values: "Valeurs";
82
+ readonly variant: "Champ de type : {{variant}}";
75
83
  readonly warningApiAutocomplete: {
76
84
  readonly response: "dois avoir comme réponse";
77
85
  readonly url: "La route de l'API";
@@ -1,5 +1,7 @@
1
1
  declare const TRANSLATION_FR: {
2
+ readonly activateSearch: "Activer la recherche";
2
3
  readonly add: "Ajouter";
4
+ readonly advancedConfiguration: "Configuration avancée";
3
5
  readonly cancel: "Annuler";
4
6
  readonly disabled: "Désactivé";
5
7
  readonly edit: "Éditer";