@ntix/components-scorad 1.0.3 → 1.0.5

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 (42) hide show
  1. package/README.md +0 -4
  2. package/dist/@ntix/components-scorad.es.js +31 -18
  3. package/dist/@ntix/components-scorad.umd.js +11 -11
  4. package/dist/HTMLScoradValueElement.d.ts +37 -0
  5. package/dist/ScoradData.d.ts +1 -1
  6. package/dist/ScoradExtentData.d.ts +11 -7
  7. package/dist/ScoradExtentWeights.d.ts +1 -1
  8. package/dist/ScoradIntensityData.d.ts +11 -7
  9. package/dist/ScoradResources.d.ts +11 -0
  10. package/dist/ScoradScore.d.ts +14 -1
  11. package/dist/ScoradSubjectiveData.d.ts +7 -3
  12. package/dist/component.d.ts +35 -7
  13. package/dist/componentsScoradLogger.d.ts +8 -0
  14. package/dist/constants.d.ts +19 -4
  15. package/dist/extent/component.d.ts +45 -8
  16. package/dist/getScoradScore.d.ts +1 -2
  17. package/dist/index.d.ts +1 -0
  18. package/dist/intensity/component.d.ts +39 -7
  19. package/dist/label/component.d.ts +1 -1
  20. package/dist/options/component.d.ts +4 -7
  21. package/dist/subjective/component.d.ts +40 -7
  22. package/dist/weightings/component.d.ts +30 -7
  23. package/docs/HTMLScoradValueElement.md +35 -0
  24. package/docs/README.md +36 -0
  25. package/docs/ScoradData.md +13 -0
  26. package/docs/ScoradExtentData.md +63 -0
  27. package/docs/ScoradExtentWeights.md +13 -0
  28. package/docs/ScoradIntensityData.md +64 -0
  29. package/docs/ScoradResources.md +41 -0
  30. package/docs/ScoradScore.md +47 -0
  31. package/docs/ScoradSubjectiveData.md +32 -0
  32. package/docs/component.md +68 -0
  33. package/docs/componentsScoradLogger.md +14 -0
  34. package/docs/constants.md +99 -0
  35. package/docs/extent.component.md +86 -0
  36. package/docs/getScoradScore.md +25 -0
  37. package/docs/intensity.component.md +77 -0
  38. package/docs/selectScoradWeights.md +25 -0
  39. package/docs/subjective.component.md +77 -0
  40. package/docs/validateScoradData.md +26 -0
  41. package/docs/weightings.component.md +59 -0
  42. package/package.json +4 -2
@@ -0,0 +1,59 @@
1
+ [**@ntix/components-scorad**](README.md)
2
+
3
+ ***
4
+
5
+ ## Classes
6
+
7
+ ### HTMLScoradWeightingsElement
8
+
9
+ A toggle component to switch between 'Adult' and 'Child' SCORAD calculation weightings.
10
+ This component maps a boolean state to specific clinical weighting logic,
11
+ primarily influencing the surface area calculation in the Extent (Section A) component.
12
+
13
+ #### Extends
14
+
15
+ - `HTMLComponentElement`\<[`HTMLScoradValueElement`](HTMLScoradValueElement.md#htmlscoradvalueelement)\<`boolean`\>\>
16
+
17
+ #### Events
18
+
19
+ ##### valueChange
20
+
21
+ ```ts
22
+ readonly valueChange: EventEmitter<boolean>;
23
+ ```
24
+
25
+ Fired when the value is finalized or "committed" by the user.
26
+
27
+ ###### Param
28
+
29
+ The final updated value.
30
+
31
+ ##### valueInput
32
+
33
+ ```ts
34
+ readonly valueInput: EventEmitter<boolean>;
35
+ ```
36
+
37
+ Fired immediately as the user interacts with the input (high frequency).
38
+
39
+ ###### Param
40
+
41
+ The current value during input.
42
+
43
+ #### Properties
44
+
45
+ ##### readonly
46
+
47
+ ```ts
48
+ readonly: boolean = false;
49
+ ```
50
+
51
+ Value is readonly
52
+
53
+ ##### value
54
+
55
+ ```ts
56
+ value: boolean = false;
57
+ ```
58
+
59
+ The current value of the component.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ntix/components-scorad",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "homepage": "https://antix.co.uk/scorad",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -18,6 +18,7 @@
18
18
  }
19
19
  },
20
20
  "files": [
21
+ "docs",
21
22
  "dist",
22
23
  "README.md",
23
24
  "LICENSE.md",
@@ -26,7 +27,8 @@
26
27
  "scripts": {
27
28
  "dev": "vite",
28
29
  "test": "vitest run",
29
- "build": "vite build",
30
+ "docs": "typedoc",
31
+ "build": "vite build && npm run docs",
30
32
  "preview": "vite preview",
31
33
  "prepublishOnly": "npm run test && npm run build"
32
34
  }