@orangelogic/design-system 2.126.0 → 2.127.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.
|
@@ -23638,10 +23638,10 @@ ro.dependencies = {
|
|
|
23638
23638
|
"cx-typography": pn
|
|
23639
23639
|
};
|
|
23640
23640
|
zo([
|
|
23641
|
-
M({
|
|
23641
|
+
M({ type: Array })
|
|
23642
23642
|
], ro.prototype, "categories", 2);
|
|
23643
23643
|
zo([
|
|
23644
|
-
M({
|
|
23644
|
+
M({ type: Array })
|
|
23645
23645
|
], ro.prototype, "weeks", 2);
|
|
23646
23646
|
zo([
|
|
23647
23647
|
M({ attribute: "weekly-capacity", reflect: !0, type: Number })
|
package/library/package.json
CHANGED
|
@@ -38,11 +38,7 @@ export default class CxCapacityPlanner extends CortexElement {
|
|
|
38
38
|
'cx-typography': typeof CxTypography;
|
|
39
39
|
};
|
|
40
40
|
private readonly localize;
|
|
41
|
-
/**
|
|
42
|
-
* Work categories (≤10). `color` is optional; a stable one is derived if
|
|
43
|
-
* absent. JS-only (array of objects) — never reflected to/parsed from an
|
|
44
|
-
* attribute.
|
|
45
|
-
*/
|
|
41
|
+
/** Work categories (≤10). `color` is optional; a stable one is derived if absent. */
|
|
46
42
|
categories: CapacityCategory[];
|
|
47
43
|
/** Per-week allocations for the visible horizon (weeks ordered ascending). */
|
|
48
44
|
weeks: CapacityWeek[];
|
|
@@ -8053,6 +8053,14 @@
|
|
|
8053
8053
|
*/
|
|
8054
8054
|
interface CxCapacityPlannerAttributes extends HTMLAttributes<CxCapacityPlanner> {
|
|
8055
8055
|
|
|
8056
|
+
/**
|
|
8057
|
+
* Work categories (≤10). `color` is optional; a stable one is derived if absent.
|
|
8058
|
+
*/
|
|
8059
|
+
categories?: { id: string; name: string; color: string; }[];
|
|
8060
|
+
/**
|
|
8061
|
+
* Per-week allocations for the visible horizon (weeks ordered ascending).
|
|
8062
|
+
*/
|
|
8063
|
+
weeks?: { weekStart: string; allocations: { categoryId: string; hours: number; }[]; }[];
|
|
8056
8064
|
/**
|
|
8057
8065
|
* Total hours available per week (C). Defaults to 40.
|
|
8058
8066
|
*/
|