@nebula.js/sn-org-chart 1.9.0 → 1.10.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.
- package/README.md +14 -1
- package/api-specifications/properties.json +1 -1
- package/api-specifications/sn-org-chart.json +8 -8
- package/core/esm/index.js +3 -3
- package/dist/sn-org-chart.js +3 -3
- package/dist/sn-org-chart.systemjs.js +3 -3
- package/package.json +18 -18
- package/sn-org-chart-ext/dist/sn-org-chart.js +3 -3
- package/sn-org-chart-ext/sn-org-chart.qext +1 -1
package/README.md
CHANGED
|
@@ -64,9 +64,22 @@ pnpm install
|
|
|
64
64
|
pnpm start # dev server on http://localhost:8000
|
|
65
65
|
pnpm test:unit # vitest
|
|
66
66
|
pnpm test:e2e # playwright rendering tests
|
|
67
|
-
pnpm build # dist/, core/esm/ and the Qlik Sense extension in sn-org-chart-ext/
|
|
68
67
|
```
|
|
69
68
|
|
|
69
|
+
### Building
|
|
70
|
+
|
|
71
|
+
`pnpm install` runs the `prepare` script, which generates translations and then runs `pnpm run generate` to generate the TypeSpec outputs, including the JSON Schema at `tsp-output/@typespec/json-schema/sn-org-chart.json`. These generated files are ignored by Git, so installation must complete before building, including in CI.
|
|
72
|
+
|
|
73
|
+
Run `pnpm generate` again after changing the TypeSpec definitions. If installation was run with lifecycle scripts disabled (for example, `pnpm install --ignore-scripts`), run `pnpm run prepare` manually to generate both translations and TypeSpec outputs.
|
|
74
|
+
|
|
75
|
+
Builds copy the existing schema without regenerating it. The build calls `copyJsonSchema()` from `tools/copy-json-schema.js` to copy it to `api-specifications/sn-org-chart.json` before bundling:
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
pnpm build
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
For a development build, run `pnpm build:dev`. To rebuild on changes, run `pnpm build:watch`.
|
|
82
|
+
|
|
70
83
|
See [.github/CONTRIBUTION.md](./.github/CONTRIBUTION.md) for the contribution workflow.
|
|
71
84
|
|
|
72
85
|
## Documentation
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"x-schema-version": "1.
|
|
2
|
+
"x-schema-version": "1.10.0",
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"$id": "sn-org-chart.json",
|
|
5
5
|
"$defs": {
|
|
6
|
-
"
|
|
6
|
+
"/schemas/properties": {
|
|
7
7
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
8
8
|
"$id": "/schemas/properties",
|
|
9
9
|
"type": "object",
|
|
10
10
|
"properties": {
|
|
11
11
|
"version": {
|
|
12
12
|
"type": "string",
|
|
13
|
-
"default": "1.
|
|
13
|
+
"default": "1.10.0",
|
|
14
14
|
"description": "Current version of this generic object definition"
|
|
15
15
|
},
|
|
16
16
|
"qInfo": {
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"$id": "NxMetaDef.json",
|
|
189
189
|
"type": "object",
|
|
190
190
|
"properties": {},
|
|
191
|
-
"description": "Used to collect
|
|
191
|
+
"description": "Used to collect metadata.\n\n### Properties\nSemantic type with an empty structure."
|
|
192
192
|
},
|
|
193
193
|
"HyperCubeDef": {
|
|
194
194
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -321,11 +321,11 @@
|
|
|
321
321
|
},
|
|
322
322
|
"qContextSetExpression": {
|
|
323
323
|
"type": "string",
|
|
324
|
-
"description": "Set
|
|
324
|
+
"description": "Set expression valid for the whole cube, limiting computations to the specified set."
|
|
325
325
|
},
|
|
326
326
|
"qSuppressMeasureTotals": {
|
|
327
327
|
"type": "boolean",
|
|
328
|
-
"description": "
|
|
328
|
+
"description": "When true, suppresses any grand totals for measures, regardless of the AggrFunc setting."
|
|
329
329
|
}
|
|
330
330
|
},
|
|
331
331
|
"description": "Defines the properties of a hypercube.\nFor more information about the definition of a hypercube, see _Generic object_."
|
|
@@ -993,7 +993,7 @@
|
|
|
993
993
|
},
|
|
994
994
|
"qAggrFunc": {
|
|
995
995
|
"type": "string",
|
|
996
|
-
"description": "
|
|
996
|
+
"description": "Indicates how to aggregate the measure to create a grand total. \\\"None\\\" - No total calculation is performed. \\\"Expr\\\" - Total is calculated based on the measure expression. The default value is an empty string, which has the same effect as \\\"Expr\\\". This parameter is optional."
|
|
997
997
|
},
|
|
998
998
|
"qAccumulate": {
|
|
999
999
|
"type": "integer",
|
|
@@ -2240,7 +2240,7 @@
|
|
|
2240
2240
|
},
|
|
2241
2241
|
"description": "Image placement and shape settings for chart cards."
|
|
2242
2242
|
},
|
|
2243
|
-
"
|
|
2243
|
+
"/schemas/layout": {
|
|
2244
2244
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2245
2245
|
"$id": "/schemas/layout",
|
|
2246
2246
|
"type": "object",
|