@open-xamu-co/ui-common-types 3.0.0-next.15 → 3.0.0-next.16

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/values.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xamu-co/ui-common-types",
3
- "version": "3.0.0-next.15",
3
+ "version": "3.0.0-next.16",
4
4
  "description": "Xamu shared types",
5
5
  "author": "@xamu-co",
6
6
  "main": "src/index.ts",
package/src/values.ts CHANGED
@@ -2,6 +2,7 @@ export interface iSelectOption {
2
2
  value: string | number;
3
3
  alias?: string;
4
4
  selected?: boolean;
5
+ disabled?: boolean;
5
6
  }
6
7
 
7
8
  /**
@@ -25,6 +26,10 @@ export interface iProperty<
25
26
  * The parent is given since the node doesn't exist yet
26
27
  */
27
28
  createNode?: iNodeFn<P, [P?]>;
29
+ /**
30
+ * Conditionally disable creating children for this particular property
31
+ */
32
+ disableCreateNode?: (p: P) => boolean;
28
33
  /**
29
34
  * Function to clone a node within the relation
30
35
  */