treege 0.17.0 → 0.18.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.
@@ -102,6 +102,7 @@ declare const fields: readonly [{
102
102
  readonly isRequiredDisabled: false;
103
103
  readonly type: "select";
104
104
  }, {
105
+ readonly initialQueryEnable: true;
105
106
  readonly isBooleanField: false;
106
107
  readonly isDecisionField: false;
107
108
  readonly isRepeatableDisabled: true;
@@ -103,6 +103,7 @@ declare const useFieldSelect: () => {
103
103
  readonly isRequiredDisabled: false;
104
104
  readonly type: "select";
105
105
  } | {
106
+ readonly initialQueryEnable: true;
106
107
  readonly isBooleanField: false;
107
108
  readonly isDecisionField: false;
108
109
  readonly isRepeatableDisabled: true;
@@ -7,6 +7,7 @@ declare const useFormTreeCardMutation: () => {
7
7
  handleAddValue: () => void;
8
8
  handleChangeHelperText: (event: ChangeEvent<HTMLInputElement>) => void;
9
9
  handleChangeHiddenValue: (event: ChangeEvent<HTMLInputElement>) => void;
10
+ handleChangeInitialQuery: (event: ChangeEvent<HTMLInputElement>) => void;
10
11
  handleChangeIsDecisionField: (event: ChangeEvent<HTMLInputElement>) => void;
11
12
  handleChangeLabel: (event: ChangeEvent<HTMLInputElement>) => void;
12
13
  handleChangeMessage: (nameMessage: "on" | "off") => (event: ChangeEvent<HTMLInputElement>) => void;
@@ -35,6 +36,7 @@ declare const useFormTreeCardMutation: () => {
35
36
  handleSubmit: (e: FormEvent) => Promise<void>;
36
37
  helperText: string;
37
38
  hiddenValue: string;
39
+ initialQuery: boolean;
38
40
  isAutocomplete: boolean;
39
41
  isBooleanField: boolean;
40
42
  isDecision: boolean;
@@ -51,6 +51,7 @@ export interface TreeNode extends Omit<RawNodeDatum, "attributes" | "children">
51
51
  hiddenValue?: string;
52
52
  route?: Route;
53
53
  parentRef?: string;
54
+ initialQuery?: boolean;
54
55
  } | {
55
56
  depth: number;
56
57
  tag?: string;
@@ -72,6 +73,7 @@ export interface TreeNode extends Omit<RawNodeDatum, "attributes" | "children">
72
73
  hiddenValue?: never;
73
74
  route?: Route;
74
75
  parentRef?: string;
76
+ initialQuery?: boolean;
75
77
  };
76
78
  children: TreeNode[];
77
79
  treeId?: string;
@@ -3,6 +3,7 @@ declare const TRANSLATION_EN: {
3
3
  readonly cancel: "Cancel";
4
4
  readonly disabled: "Disabled";
5
5
  readonly edit: "Edit";
6
+ readonly initialQueryEnable: "Enable initial API call";
6
7
  readonly isABranch: "Is a branch";
7
8
  readonly isAHidden: "Is a hidden field";
8
9
  readonly isALeaf: "Is a leaf";
@@ -3,6 +3,7 @@ declare const TRANSLATION_FR: {
3
3
  readonly cancel: "Annuler";
4
4
  readonly disabled: "Désactivé";
5
5
  readonly edit: "Éditer";
6
+ readonly initialQueryEnable: "Activer un appel API intiale";
6
7
  readonly isABranch: "Est une branche";
7
8
  readonly isAHidden: "Est un champs caché";
8
9
  readonly isALeaf: "Est une feuille";
@@ -37,6 +37,7 @@ declare const appendNode: ({ tree, path, name, child }: AppendChildParams) => Tr
37
37
  hiddenValue?: string | undefined;
38
38
  route?: import('../../../features/Treege/type/TreeNode').Route | undefined;
39
39
  parentRef?: string | undefined;
40
+ initialQuery?: boolean | undefined;
40
41
  } | {
41
42
  isLeaf: boolean;
42
43
  isRoot: boolean;
@@ -58,6 +59,7 @@ declare const appendNode: ({ tree, path, name, child }: AppendChildParams) => Tr
58
59
  hiddenValue?: undefined;
59
60
  route?: import('../../../features/Treege/type/TreeNode').Route | undefined;
60
61
  parentRef?: string | undefined;
62
+ initialQuery?: boolean | undefined;
61
63
  };
62
64
  name: string;
63
65
  children: TreeNode[];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "treege",
3
3
  "description": "Form decision tree generator",
4
4
  "license": "ISC",
5
- "version": "0.17.0",
5
+ "version": "0.18.0",
6
6
  "type": "module",
7
7
  "types": "./dist/main.d.ts",
8
8
  "main": "./dist/main.umd.cjs",