x4js 2.2.20 → 2.2.21

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/README.md CHANGED
@@ -4,18 +4,23 @@
4
4
  This is the x4 framework repository.
5
5
 
6
6
  X4 is a full typescript framework to develop Web or Desktop applications.
7
- Included more than 40 controls like grids, charts, etc. Everything needed to push the limits of your creativity.
7
+ Included more than 50 controls like grids, charts, etc.
8
+
9
+ Everything needed to push the limits of your creativity.
10
+
8
11
  If these components are not enough, you can create your in few lines.
9
12
 
10
13
  ## Home page
11
14
  see [home](https://x4js.org)
12
15
 
13
16
  ## API Documentation
14
- see
17
+ see [API](https://rlibre.github.io/x4/index.html)
18
+ see [AI](./aicontext.md)
15
19
 
16
20
  ## Ideas
17
21
 
18
- [ ] create separated elements for different kinds of input
19
- CheckInput
20
- RadioInput
21
- NumberInput
22
+ [x] aicontext.md
23
+ [ ] finish StateManager
24
+ [ ] review core_data
25
+ [ ] doc doc and doc
26
+ [ ] demo with all best practices
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x4js",
3
- "version": "2.2.20",
3
+ "version": "2.2.21",
4
4
  "type": "module",
5
5
  "main": "src/x4.ts",
6
6
  "module": "src/x4.ts",
@@ -9,7 +9,9 @@
9
9
  ".": "./src/x4.ts"
10
10
  },
11
11
  "scripts": {
12
- "build-publish": "tsx ./publish.ts"
12
+ "build-publish": "tsx ./publish.ts",
13
+ "build-doc": "typedoc",
14
+ "build-types": "npx tsc --declaration --emitDeclarationOnly --outFile types/x4.d.ts"
13
15
  },
14
16
  "files": [
15
17
  "src",
@@ -33,6 +35,7 @@
33
35
  "typescript": "^5.8.3"
34
36
  },
35
37
  "dependencies": {
36
- "typedoc": "^0.28.19"
38
+ "typedoc": "^0.28.19",
39
+ "typedoc-plugin-markdown": "^4.12.0"
37
40
  }
38
41
  }
@@ -535,6 +535,11 @@ export class Component<P extends ComponentProps = ComponentProps, E extends Comp
535
535
  * Appends content to the end of the component's DOM element.
536
536
  * Content can be a single Component, an array of Components, a string, an array of strings,
537
537
  * raw HTML, an array of raw HTML, a number, or a boolean.
538
+ * @note
539
+ * for simplicity, null is also allowed:
540
+ * setContent( [
541
+ * optional ? myControl : null,
542
+ * ])
538
543
  * @param content - The content to append.
539
544
  */
540
545