@orangelogic/design-system 3.58.0 → 3.63.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/library/chunks/{block-width.DO9qMNf6.js → block-width.fhdy5WRS.js} +361 -446
- package/library/chunks/{config-manager.BKmXLHaH.js → config-manager.Dr_5Nx4Q.js} +20 -20
- package/library/chunks/{configs-controller.CrajsBAF.js → configs-controller.CM0Jf3I2.js} +918 -831
- package/library/chunks/{src.qAKiRBjl.js → src.C34JrW8T.js} +2 -2
- package/library/chunks/{step.DbfZAAd2.js → step._Tv5amzP.js} +10 -3
- package/library/chunks/{stepper-wizard.lIqA749z.js → stepper-wizard.C6TrheIf.js} +3 -3
- package/library/chunks/{stepper.BdIYewYh.js → stepper.CRlduUfA.js} +1 -1
- package/library/components/atoms.js +3 -3
- package/library/components/molecules.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/types.js +13516 -13426
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/step/step.d.ts +4 -0
- package/library/packages/organisms/src/capacity-planner/components/capacity-week-bar/capacity-week-bar.d.ts +60 -8
- package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +5 -0
- package/library/packages/organisms/src/space-selector/space-selector.d.ts +4 -1
- package/library/packages/tools/src/tiptap/extensions/subscript/index.d.ts +2 -0
- package/library/packages/tools/src/tiptap/extensions/superscript/index.d.ts +2 -0
- package/library/packages/types/src/stepper-wizard.d.ts +1 -0
- package/library/react-web-component.d.ts +6 -2
- package/package.json +1 -1
package/library/package.json
CHANGED
|
@@ -66,6 +66,10 @@ export default class CxStep extends CortexElement {
|
|
|
66
66
|
* This is the one that draws the circle
|
|
67
67
|
*/
|
|
68
68
|
color: string;
|
|
69
|
+
/**
|
|
70
|
+
* Overrides the active label color, used as-is (no contrast adjustment). Defaults to `color`.
|
|
71
|
+
*/
|
|
72
|
+
textColor: string;
|
|
69
73
|
/**
|
|
70
74
|
* Draws the step with a circle indicator instead of an arrow.
|
|
71
75
|
*/
|
|
@@ -42,7 +42,7 @@ export interface CapacityBand {
|
|
|
42
42
|
* @cssproperty [--cx-capacity-bar-height=22px] - Height of the bar.
|
|
43
43
|
* @cssproperty [--cx-capacity-bar-radius=6px] - Corner radius of the bar.
|
|
44
44
|
* @cssproperty --cx-capacity-track-bg - Background of the track behind the bands.
|
|
45
|
-
* @cssproperty [--cx-capacity-zero-handle-width=10px] - Width of the grab handle shown for a 0-hour band.
|
|
45
|
+
* @cssproperty [--cx-capacity-zero-handle-width=10px] - Width of the grab handle shown for a 0-hour band. Must be a px length: the label layout reads it in px.
|
|
46
46
|
*
|
|
47
47
|
* @event {{ barWidth: number, categoryId: string, pointerEvent: PointerEvent }} cx-capacity-week-bar-band-pointer-down - Fired when a resizable band is pressed.
|
|
48
48
|
* @event {{ categoryId: string, deltaHours: number }} cx-capacity-week-bar-band-step - Fired when a band is stepped via the keyboard.
|
|
@@ -76,11 +76,22 @@ export default class CxCapacityWeekBar extends CortexElement {
|
|
|
76
76
|
* 0-hours category keeps its handle and stays grabbable to grow back.
|
|
77
77
|
*/
|
|
78
78
|
collapseZeroBands: boolean;
|
|
79
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* Minimum px width of the room a band has for the full "{h}h · {name}" label
|
|
81
|
+
* (the band less any 0-hour handles over it). The label is shown only when it
|
|
82
|
+
* also fits its measured text.
|
|
83
|
+
*/
|
|
80
84
|
fullLabelThreshold: number;
|
|
81
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* Minimum px width of the room a band has for the number-only label. The label
|
|
87
|
+
* is shown only when it also fits its measured text.
|
|
88
|
+
*/
|
|
82
89
|
shortLabelThreshold: number;
|
|
83
90
|
private readonly barEl;
|
|
91
|
+
/** Hidden full-label span whose computed font is what the full label is measured in. */
|
|
92
|
+
private readonly fullMeasureEl;
|
|
93
|
+
/** Hidden number-only-label span whose computed font is what that label is measured in. */
|
|
94
|
+
private readonly shortMeasureEl;
|
|
84
95
|
private summary;
|
|
85
96
|
/** Hours not held by an editable band: capacity − Σ non-derived hours (≥ 0). */
|
|
86
97
|
private spareHours;
|
|
@@ -90,13 +101,22 @@ export default class CxCapacityWeekBar extends CortexElement {
|
|
|
90
101
|
private geometries;
|
|
91
102
|
/** Actual rendered width of the bar element, updated by ResizeObserver. */
|
|
92
103
|
renderedBarWidth: number;
|
|
104
|
+
/**
|
|
105
|
+
* Bumped each time a web font finishes loading, so label widths measured in
|
|
106
|
+
* the fallback font are measured again. Not `private` (like `renderedBarWidth`):
|
|
107
|
+
* `willUpdate` reads it through `changed.has`, which only accepts public keys.
|
|
108
|
+
*/
|
|
109
|
+
fontEpoch: number;
|
|
93
110
|
private barResizeObserver;
|
|
111
|
+
constructor();
|
|
94
112
|
connectedCallback(): void;
|
|
95
113
|
disconnectedCallback(): void;
|
|
96
114
|
runFirstUpdated(): void;
|
|
97
115
|
willUpdate(changed: PropertyValues<this>): void;
|
|
98
116
|
/** Measure the live bar width; falls back to the cached prop if unmeasurable. */
|
|
99
117
|
private measuredBarWidth;
|
|
118
|
+
/** A web font finished loading: drop the cached widths and fit the labels again. */
|
|
119
|
+
private handleFontsLoaded;
|
|
100
120
|
private handleBandPointerDown;
|
|
101
121
|
private handleBandKeyDown;
|
|
102
122
|
private bandValueMax;
|
|
@@ -106,10 +126,13 @@ export default class CxCapacityWeekBar extends CortexElement {
|
|
|
106
126
|
* `render` so the tip shows/hides in exact sync with the inline label (and so
|
|
107
127
|
* the tip text tracks a band being resized under a captured pointer).
|
|
108
128
|
*
|
|
109
|
-
* Every band is on the same fixed scale, so the label
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
* `collapsed` instead.
|
|
129
|
+
* Every band is on the same fixed scale, so the label fit sees the band's
|
|
130
|
+
* real width. A real 0-hour band on a resizable bar is `zero` (0px, grabbed
|
|
131
|
+
* through its handle); in `collapseZeroBands` mode a 0-hour band is
|
|
132
|
+
* `collapsed` instead. Only the width and zero flags are set here: the handle
|
|
133
|
+
* placement comes from `placeZeroHandles`, the label insets from
|
|
134
|
+
* `insetLabelsPastHandles` and the labels from `applyLabelFit`, which run
|
|
135
|
+
* after it, in that order.
|
|
113
136
|
*/
|
|
114
137
|
private bandGeometry;
|
|
115
138
|
/**
|
|
@@ -118,9 +141,38 @@ export default class CxCapacityWeekBar extends CortexElement {
|
|
|
118
141
|
* spot, so each run of them gets increasing indices and the handles are laid
|
|
119
142
|
* side by side. A run that starts at (or past) the right edge of the bar is
|
|
120
143
|
* drawn leftwards instead, so the edge does not clip it. Bands that take no
|
|
121
|
-
* width (other 0-hour bands) do not break a run.
|
|
144
|
+
* width (other 0-hour bands) do not break a run. Returns the runs, with where
|
|
145
|
+
* each starts along a bar of `barPx`, for `insetLabelsPastHandles`.
|
|
122
146
|
*/
|
|
123
147
|
private placeZeroHandles;
|
|
148
|
+
/**
|
|
149
|
+
* Write `labelInsetStartPx` / `labelInsetEndPx` into `geometries`: how far the
|
|
150
|
+
* handles reach into each band from its left and right end, so its label can
|
|
151
|
+
* be padded past them. A run's handles cover `[startPx, startPx + length *
|
|
152
|
+
* handleWidth]`, or `[startPx - length * handleWidth, startPx]` for a run
|
|
153
|
+
* drawn leftwards at the right edge, clipped to the bar (a run clipped away
|
|
154
|
+
* entirely, such as an `atEnd` run past the bar in an over-capacity week,
|
|
155
|
+
* covers nothing). A run wider than the band beside it also reaches the bands
|
|
156
|
+
* after it. Must run after `placeZeroHandles`.
|
|
157
|
+
*/
|
|
158
|
+
private insetLabelsPastHandles;
|
|
159
|
+
/**
|
|
160
|
+
* Decide which label each band shows, writing `showFull` / `showShort` into
|
|
161
|
+
* `geometries`. A label shows only when the room the band has (its width less
|
|
162
|
+
* the handles over it) both reaches the label's threshold and fits the
|
|
163
|
+
* label's measured text. Where the text cannot be measured (the hidden
|
|
164
|
+
* measuring spans are not rendered yet, or there is no canvas), only the
|
|
165
|
+
* thresholds apply. Must run after `insetLabelsPastHandles`.
|
|
166
|
+
*/
|
|
167
|
+
private applyLabelFit;
|
|
168
|
+
/** Width (px) of a 0-hour handle, read from the host's CSS custom property. */
|
|
169
|
+
private zeroHandleWidth;
|
|
170
|
+
/**
|
|
171
|
+
* Font and horizontal padding a hidden measuring span resolves to (it carries
|
|
172
|
+
* the label classes and no inset, so these are exactly a label's);
|
|
173
|
+
* `undefined` before it renders.
|
|
174
|
+
*/
|
|
175
|
+
private labelMetrics;
|
|
124
176
|
private renderBand;
|
|
125
177
|
render(): TemplateResult;
|
|
126
178
|
}
|
|
@@ -11,6 +11,11 @@ type FontPickerStoredValues = {
|
|
|
11
11
|
style: string;
|
|
12
12
|
weight: string;
|
|
13
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* Validates an "Open link" target: an absolute or intranet URL, or a relative
|
|
16
|
+
* URL resolved against the current site at click time (see `openLink`).
|
|
17
|
+
*/
|
|
18
|
+
export declare function isValidClickLink(clickLink: string): boolean;
|
|
14
19
|
export declare function getTemplateClass(templateId: string): string;
|
|
15
20
|
export declare function getContentConfigs(traits: PropertyConfig[], adHocProperties: string[]): string[];
|
|
16
21
|
export declare function getLimitedBlocks(blockType: BlockType): BlockType[];
|
|
@@ -87,7 +87,10 @@ export default class CxSpaceSelector extends CortexElement {
|
|
|
87
87
|
triggerIcon: string;
|
|
88
88
|
/** Accessible name of the trigger, used when it renders as an icon button. */
|
|
89
89
|
triggerLabel: string;
|
|
90
|
-
/**
|
|
90
|
+
/**
|
|
91
|
+
* `button` shows the space name, `icon-button` is the compact header variant, sized `small` like
|
|
92
|
+
* the other header icon buttons.
|
|
93
|
+
*/
|
|
91
94
|
triggerVariant: 'button' | 'icon-button';
|
|
92
95
|
/** Whether the space list is currently being fetched. */
|
|
93
96
|
private loading;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
export type CxMentionsAutocompleteItem = { "id": string; "label": string; "name": string; "suffixContent": string; "suffixIcon": string; "suffixTooltip": string; "suffixType": "badge"; "title": string; "type": string; };
|
|
30
30
|
export type CxMultiSelectColumnData = { "dividerColor": string; "id": string; "items": { "disabled": boolean; "group": string; "id": string; "index": string; "metadata": dictionary; "text": string; "tooltip": string; "type": string; }[]; "sort": boolean; "title": string; };
|
|
31
31
|
export type CxShareOptionListShareOptionListItem = { "disabled": boolean; "icon": string; "id": string; "name": string; "tooltip": string; };
|
|
32
|
-
export type CxStepperWizardStepData = { "color": string; "description": string; "icon": string; "iconVariant": "outlined" | "filled" | "fa"; "id": string; "name": string; "readonly": boolean; "state": "Done" | "Active" | "None" | "Disabled"; };
|
|
32
|
+
export type CxStepperWizardStepData = { "color": string; "description": string; "icon": string; "iconVariant": "outlined" | "filled" | "fa"; "id": string; "name": string; "readonly": boolean; "state": "Done" | "Active" | "None" | "Disabled"; "textColor": string; };
|
|
33
33
|
export type CxAssetLinkFormatAsset = { "allowATSLink": boolean; "docSubType": string; "docType": "Album" | "Audio" | "Audio segment" | "Image" | "Multimedia" | "ProjectDocument" | "Story" | "Video" | "Widget"; "extension": string; "height": string; "id": string; "identifier": string; "imageUrl": string; "name": string; "scrubUrl": string; "size": string; "width": string; };
|
|
34
34
|
export type CxAssetLinkFormatCropMode = { "auto": boolean; "disabledSize": boolean; "label": string; "value": string; };
|
|
35
35
|
export type CxAssetLinkFormatFocusMode = { "auto": boolean; "label": string; "value": string; };
|
|
@@ -4772,6 +4772,10 @@
|
|
|
4772
4772
|
* This is the one that draws the circle
|
|
4773
4773
|
*/
|
|
4774
4774
|
color?: string;
|
|
4775
|
+
/**
|
|
4776
|
+
* Overrides the active label color, used as-is (no contrast adjustment). Defaults to `color`.
|
|
4777
|
+
*/
|
|
4778
|
+
textColor?: string;
|
|
4775
4779
|
/**
|
|
4776
4780
|
* Draws the step with a circle indicator instead of an arrow.
|
|
4777
4781
|
*/
|
|
@@ -10995,7 +10999,7 @@
|
|
|
10995
10999
|
*/
|
|
10996
11000
|
triggerLabel?: string;
|
|
10997
11001
|
/**
|
|
10998
|
-
* `button` shows the space name, `icon-button` is the compact header variant.
|
|
11002
|
+
* `button` shows the space name, `icon-button` is the compact header variant, sized `small` like the other header icon buttons.
|
|
10999
11003
|
*/
|
|
11000
11004
|
triggerVariant?: "button" | "icon-button";
|
|
11001
11005
|
/**
|