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

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.
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.17",
4
4
  "description": "Xamu shared types",
5
5
  "author": "@xamu-co",
6
6
  "main": "src/index.ts",
package/src/plugin.ts CHANGED
@@ -106,13 +106,11 @@ export interface iPluginOptions<ComponentType = unknown> {
106
106
  */
107
107
  country?: string;
108
108
  /**
109
- * Countries API base endpoint
109
+ * Countries API base endpoint (full URL)
110
110
  *
111
111
  * If using nuxt, get better performance with the module
112
112
  * @see https://www.npmjs.com/package/nuxt-countries-api
113
113
  *
114
- * Using an absolute path will enable the module
115
- *
116
114
  * @default "https://countries.xamu.com.co/api/v1"
117
115
  */
118
116
  countriesUrl?: string;
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
  */