@orangelogic/design-system 4.26.0 → 4.28.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/{asset-link-format.CyUiMsk0.js → asset-link-format.BEJh0Fqs.js} +3 -3
- package/library/chunks/{bicolor-picker.CojUr8VQ.js → bicolor-picker.C0PxxFzf.js} +1 -1
- package/library/chunks/{block-width.BHqoh68k.js → block-width.CU2PEBrV.js} +19 -19
- package/library/chunks/{border-input-group.hX_u5As5.js → border-input-group.w-T10AEY.js} +1 -1
- package/library/chunks/{color-picker.C3u13jWP.js → color-picker.CDUhOLEs.js} +3 -3
- package/library/chunks/{color-swatch-group.D4KGIN_7.js → color-swatch-group.DUskDB_p.js} +1076 -1058
- package/library/chunks/{config-manager._UPFF51v.js → config-manager.C9OGzzbe.js} +16 -16
- package/library/chunks/{configs-controller.CfLKthEL.js → configs-controller.D3dYYbfz.js} +4 -4
- package/library/chunks/{confirm-popover.Ca_p-aec.js → confirm-popover.CaNKM2dH.js} +2 -2
- package/library/chunks/{corner-position-input-group.B6oea4JC.js → corner-position-input-group.CPrsYabs.js} +1 -1
- package/library/chunks/{dialog.Dw-WUyD8.js → dialog.BuirdRW8.js} +1 -1
- package/library/chunks/{document-viewer.DvSw5R7C.js → document-viewer.C7WOv7ns.js} +3 -3
- package/library/chunks/{drawer.tfa9-G6a.js → drawer.BO3puoiw.js} +1 -1
- package/library/chunks/{dropdown.CLzQHntD.js → dropdown.HoJsYnUC.js} +35 -30
- package/library/chunks/{dynamic-select.C18Su1Hi.js → dynamic-select.G1V7Da24.js} +1 -1
- package/library/chunks/{file-on-demand._LRRo_VV.js → file-on-demand.DUWFRJnE.js} +4 -4
- package/library/chunks/{folder-select.i1Map6Gy.js → folder-select.CzNXsgl_.js} +1 -1
- package/library/chunks/{menu.DDiovK72.js → menu.BRFXqBpq.js} +28 -22
- package/library/chunks/{modal.CrMcpGz2.js → modal.775mgCbW.js} +9 -9
- package/library/chunks/{pagination.Dm29rNz4.js → pagination.By0sijVv.js} +1 -1
- package/library/chunks/{select.CPCSCV1h.js → select.v6t2pNH4.js} +16 -11
- package/library/chunks/{shadow-input-group.CyzUfNfD.js → shadow-input-group.C9DU0Ehy.js} +1 -1
- package/library/chunks/{size-input-group.BUyxMiGb.js → size-input-group.Z_9n7Nv6.js} +1 -1
- package/library/chunks/{src.DOywg1GE.js → src.QS2741a8.js} +9 -9
- package/library/chunks/{tab-group.kPeSvnQU.js → tab-group.DP9EvXFy.js} +2 -2
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +10 -10
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/confirm-popover.js +1 -1
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/dialog.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +8 -8
- package/library/components/organisms.js +3 -3
- package/library/components/pagination.js +1 -1
- package/library/components/select.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/types.js +161 -161
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +1 -0
- package/library/packages/atoms/src/components/menu/menu.d.ts +5 -1
- package/library/packages/atoms/src/components/select/select.d.ts +5 -0
- package/library/packages/hybrid/video-advanced/src/react/plugins/CommentLine/CommentAvatar.d.ts +0 -2
- package/library/packages/molecules/src/multi-select/components/board/board.d.ts +9 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +2 -0
- package/library/react-web-component.d.ts +4 -0
- package/library/utils.js +5 -5
- package/package.json +1 -1
package/library/package.json
CHANGED
|
@@ -111,6 +111,7 @@ export default class CxDropdown extends CortexElement {
|
|
|
111
111
|
getMenu(): CxMenu | undefined;
|
|
112
112
|
private handleKeyDown;
|
|
113
113
|
private handleDocumentKeyDown;
|
|
114
|
+
private hasFocusInside;
|
|
114
115
|
private handleDocumentMouseDown;
|
|
115
116
|
private handlePanelSelect;
|
|
116
117
|
handleTriggerClick(): Promise<void>;
|
|
@@ -13,7 +13,7 @@ export interface MenuSelectEventDetail {
|
|
|
13
13
|
* Menus support keyboard interactions, including type-to-select an option.
|
|
14
14
|
*
|
|
15
15
|
* @slot (default) - The menu's content, including menu items, menu labels, and dividers.
|
|
16
|
-
* @slot back-button - A
|
|
16
|
+
* @slot back-button - A custom back button for 'multiple' variant menus: a `cx-menu-item` or a control such as `cx-button`.
|
|
17
17
|
*
|
|
18
18
|
* @attr {boolean} no-uncheck - When true, checkbox items do not toggle off when activated while already checked; applies to all checkbox items in this menu and combines with each item's own `no-uncheck`.
|
|
19
19
|
*
|
|
@@ -56,6 +56,10 @@ export default class CxMenu extends CortexElement {
|
|
|
56
56
|
private setRovingTabIndex;
|
|
57
57
|
private isMenuSection;
|
|
58
58
|
private isMenuItem;
|
|
59
|
+
/** Menu items only, for tabindex: a custom back control keeps its own Tab stop (tabindex on its host is unreliable). */
|
|
60
|
+
private getMenuItems;
|
|
61
|
+
/** Whether `el` is a custom back control (e.g. `cx-button`), not a menu item. */
|
|
62
|
+
private isBackControl;
|
|
59
63
|
/** Focuses a panel's tab stop, so focus doesn't stay behind in the panel that is being hidden. */
|
|
60
64
|
private focusPanelTabStop;
|
|
61
65
|
/** @internal Gets all menu items, back button first, ignoring dividers, headers, and other elements. */
|
|
@@ -99,6 +99,11 @@ export default class CxSelect extends CortexElement implements CortexFormControl
|
|
|
99
99
|
* The original unmatched value is preserved for form submission.
|
|
100
100
|
*/
|
|
101
101
|
fallbackOptionValue: string;
|
|
102
|
+
/**
|
|
103
|
+
* Lets an empty value select the option whose value is an empty string, such as a "None" option.
|
|
104
|
+
* Off by default because an option without a declared value also has an empty value.
|
|
105
|
+
*/
|
|
106
|
+
matchEmptyValue: boolean;
|
|
102
107
|
/**
|
|
103
108
|
* The default value of the form control. Primarily used for resetting the form control.
|
|
104
109
|
*/
|
|
@@ -99,6 +99,9 @@ export default class CxBoard extends CortexElement {
|
|
|
99
99
|
private end;
|
|
100
100
|
private previous;
|
|
101
101
|
private lastSelectedItem;
|
|
102
|
+
/** Last pointer `clientY` during a drag. */
|
|
103
|
+
private dragPointerY;
|
|
104
|
+
private dragScrollFrame;
|
|
102
105
|
get selectedCount(): number;
|
|
103
106
|
/**
|
|
104
107
|
* Whether the tick, rather than the dash, is what the header should show.
|
|
@@ -123,6 +126,8 @@ export default class CxBoard extends CortexElement {
|
|
|
123
126
|
*/
|
|
124
127
|
get selectableItems(): BoardItem[];
|
|
125
128
|
constructor();
|
|
129
|
+
runConnectedCallback(): void;
|
|
130
|
+
disconnectedCallback(): void;
|
|
126
131
|
private resetSelectedItems;
|
|
127
132
|
/** Handles the update of items in the board. */
|
|
128
133
|
private handleUpdateEvent;
|
|
@@ -154,6 +159,9 @@ export default class CxBoard extends CortexElement {
|
|
|
154
159
|
private selectSingleItem;
|
|
155
160
|
private handleItemKeydown;
|
|
156
161
|
handleStart(evt: Sortable.SortableEvent): void;
|
|
162
|
+
private handleDragPointerMove;
|
|
163
|
+
/** Replaces Sortable's auto-scroll, which cannot see lists inside the shadow root. */
|
|
164
|
+
private autoScrollDraggedList;
|
|
157
165
|
handleUpdate(evt: Sortable.SortableEvent): void;
|
|
158
166
|
/**
|
|
159
167
|
* Keeps disabled (`readonly`) rows fixed relative to each other when other rows are reordered.
|
|
@@ -184,6 +192,7 @@ export default class CxBoard extends CortexElement {
|
|
|
184
192
|
* real item.
|
|
185
193
|
*/
|
|
186
194
|
private resolveRealInsertIndex;
|
|
195
|
+
private resolveDropIndex;
|
|
187
196
|
private initSortable;
|
|
188
197
|
/** Initializes the sortable functionality for the list element. */
|
|
189
198
|
runFirstUpdated(): void;
|
|
@@ -24,6 +24,8 @@ export type CxAssetLinkFormatChangeEvent = CustomEvent<string>;
|
|
|
24
24
|
* @property {boolean} no-crop - When true, hides the crop panel.
|
|
25
25
|
* @property {boolean} no-resize - When true, hides the resize panel.
|
|
26
26
|
* @property {boolean} no-rotate - When true, hides the rotation panel.
|
|
27
|
+
*
|
|
28
|
+
* @slot footer - Additional content rendered in normal flow after the transformation controls.
|
|
27
29
|
*/
|
|
28
30
|
export default class CxAssetLinkFormat extends CortexElement {
|
|
29
31
|
static readonly styles: CSSResultGroup;
|
|
@@ -1986,6 +1986,10 @@
|
|
|
1986
1986
|
* The fallback option value used when the select value does not match any explicitly declared option. The original unmatched value is preserved for form submission.
|
|
1987
1987
|
*/
|
|
1988
1988
|
fallbackOptionValue?: string;
|
|
1989
|
+
/**
|
|
1990
|
+
* Lets an empty value select the option whose value is an empty string, such as a "None" option. Off by default because an option without a declared value also has an empty value.
|
|
1991
|
+
*/
|
|
1992
|
+
matchEmptyValue?: boolean;
|
|
1989
1993
|
/**
|
|
1990
1994
|
* The default value of the form control. Primarily used for resetting the form control.
|
|
1991
1995
|
*/
|
package/library/utils.js
CHANGED
|
@@ -17,14 +17,14 @@ import { t as ft } from "./chunks/default-value.opqQgoRT.js";
|
|
|
17
17
|
import { a as pt, c as mt, i as ht, l as gt, n as _t, o as vt, r as yt, s as bt, t as xt } from "./chunks/gradient.rrDxmV60.js";
|
|
18
18
|
import { t as St } from "./chunks/drag.s0AcVpKh.js";
|
|
19
19
|
import { n as Ct, t as wt } from "./chunks/math.od1DVmRk.js";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { n as Ot, t as kt } from "./chunks/
|
|
20
|
+
import { n as Tt, t as Et } from "./chunks/active-elements.Tk45XSNQ.js";
|
|
21
|
+
import { t as Dt } from "./chunks/focus-when-visible.DKscgyKo.js";
|
|
22
|
+
import { n as Ot, t as kt } from "./chunks/tabbable.Bflg1dha.js";
|
|
23
23
|
import { i as At, n as jt, r as Mt, t as Nt } from "./chunks/scroll.CEH_a4pm.js";
|
|
24
24
|
import { t as Pt } from "./chunks/user-agent.D2bRhUeS.js";
|
|
25
25
|
import { t as Ft } from "./chunks/parse.CDrJ-NY7.js";
|
|
26
26
|
import { S as It, _ as Lt, b as Rt, d as zt, f as Bt, g as Vt, h as Ht, m as Ut, p as Wt, t as Gt, u as Kt, v as qt, x as Jt, y as Yt } from "./chunks/date.BL4L64Hx.js";
|
|
27
|
-
import { n as Xt } from "./chunks/modal.
|
|
27
|
+
import { n as Xt } from "./chunks/modal.775mgCbW.js";
|
|
28
28
|
import { a as Zt, c as Qt, d as $t, f as en, i as tn, l as nn, n as rn, o as O, p as an, r as on, s as sn, t as cn, u as ln } from "./chunks/url.CZO_DV8Y.js";
|
|
29
29
|
import { a as un, c as dn, d as fn, f as pn, h as mn, i as hn, l as gn, m as _n, n as vn, o as yn, p as bn, r as xn, s as Sn, t as Cn, u as wn } from "./chunks/color.CIOzHtLK.js";
|
|
30
30
|
import { t as Tn } from "./chunks/converters.CFh-tT4P.js";
|
|
@@ -708,4 +708,4 @@ function Ar({ duration: e, frameWidth: t, playbackSpeed: n, scale: r }) {
|
|
|
708
708
|
return i > e && (i = e / 2), i;
|
|
709
709
|
}
|
|
710
710
|
//#endregion
|
|
711
|
-
export { _r as AUTO_FALLBACK_FORMAT, q as AUTO_FORMAT_EXTENSION, br as AUTO_ORIGINAL_FORMAT_MAX_BYTES, Cn as CMYK_VALIDATION_REGEX, Kt as CalendarGrid, vn as ColorType, Un as CortexPopupController, On as DEFAULT_BREAKPOINTS, Gt as DateRangePresets, Wn as DragScroll, Ae as FormControlController, xn as HEX_ALPHA_VALIDATION_REGEX, hn as HEX_VALIDATION_REGEX, d as HasSlotController, nr as HistoryManager, rr as KeyboardKey, c as LocalizeController, xt as MIN_GRADIENT_STOPS, gr as ORIGINAL_FORMAT, Er as PRECISION, cn as RELATIVE_URL_REGEX, un as RGB_VALIDATION_REGEX, G as SRCSET_WIDTH_LADDER, rn as URL_DOMAIN_VALIDATION_REGEX, on as URL_INTRANET_DOMAIN_VALIDATION_REGEX, tn as URL_PROTOCOL_VALIDATION_REGEX, Zt as URL_VALIDATION_REGEX,
|
|
711
|
+
export { _r as AUTO_FALLBACK_FORMAT, q as AUTO_FORMAT_EXTENSION, br as AUTO_ORIGINAL_FORMAT_MAX_BYTES, Cn as CMYK_VALIDATION_REGEX, Kt as CalendarGrid, vn as ColorType, Un as CortexPopupController, On as DEFAULT_BREAKPOINTS, Gt as DateRangePresets, Wn as DragScroll, Ae as FormControlController, xn as HEX_ALPHA_VALIDATION_REGEX, hn as HEX_VALIDATION_REGEX, d as HasSlotController, nr as HistoryManager, rr as KeyboardKey, c as LocalizeController, xt as MIN_GRADIENT_STOPS, gr as ORIGINAL_FORMAT, Er as PRECISION, cn as RELATIVE_URL_REGEX, un as RGB_VALIDATION_REGEX, G as SRCSET_WIDTH_LADDER, rn as URL_DOMAIN_VALIDATION_REGEX, on as URL_INTRANET_DOMAIN_VALIDATION_REGEX, tn as URL_PROTOCOL_VALIDATION_REGEX, Zt as URL_VALIDATION_REGEX, Et as activeElements, zt as addMonths, Hn as adjustRelativeValues, n as animateTo, O as appendProtocol, sn as appendQueryParam, J as applyTransformationsToUrl, Y as applyWidthToAssetUrl, wr as buildAssetSrcset, Tr as buildSizesFromDisplayWidth, K as buildTransformationString, dt as buildWaveformPath, lt as calculateAspectRatioFit, wt as clamp, at as cleanImageFileName, Ge as clearZeroDurationParts, yn as convertColor, et as convertDataUnits, Xe as convertDurationToMilliseconds, Qe as convertPixelsToAspectRatio, st as convertSrcToBlob, _t as createStopId, rt as cropImage, x as cssValueToPx, o as customElement, T as customErrorValidityState, Ve as debounce, ft as defaultValue, In as downloadAsset, St as drag, pe as emptyToSpace, ce as escapeXML, Sn as extractColor, de as extractExtension, kr as extractFrames, ae as extractRootData, Je as extractValueAndUnit, ut as extractWaveformPeaks, qn as fetchCortexApi, ze as findAncestorWithBuggyStyle, Fe as findContainingBlock, Le as findCuttingAncestor, $ as findFrameByColAndRow, Ln as findIndexByProp, Dt as focusWhenVisible, E as formCollections, Ke as formatAspectRatioString, dn as formatColorCodeSeparator, Ue as formatDurationPartsManually, gn as formatHexCode, Bt as formatIsoToDisplay, Wt as formatMonthYearLabel, Ze as formatNumberWithGrouping, g as formatSecondsToTime, le as formatTimeToSeconds, We as formatWithIntlDurationFormat, $e as gcd, Ee as getActiveElement, Xt as getActiveModals, w as getAssociatedForm, y as getAttributes, fe as getAttributesString, En as getBreakpointsFromCSS, Zn as getBrowserFontVariants, wn as getColorType, tt as getContainedImageSize, Ce as getCortexPopupLayer, v as getCurrentZIndex, Ut as getDateMask, Tt as getDeepestActiveElement, Dn as getDeviceType, He as getDurationPartsByUnitsFormat, De as getElementFromHTMLString, b as getElementFromTemplate, Ht as getFirstDayOfWeek, Yn as getFontFamilyOptionValue, $n as getFontFamilyVariants, H as getFormControls, An as getHighlightedTitle, kn as getHighlightedTitleHtml, l as getInnerHTML, Ar as getInterval, fn as getLightDarkCssString, ot as getNaturalWidthHeight, ye as getNeededPaddingForBoxShadow, Ne as getNextAncestor, At as getOffset, we as getRelativeClickPercentage, ee as getRootIDString, kt as getTabbableBoundary, Ot as getTabbableElements, u as getTextContent, Vt as getTodayIsoDate, Jn as getTypefaceOptionValue, Bn as groupBy, mr as hasTransformSegment, oe as htmlToPlainText, P as insertAtIndex, Dr as insertFrameToCache, F as insertMultipleAtIndex, yt as interpolateStopColor, je as isChrome, Pt as isCortexAdobePlugin, S as isDomElement, be as isElementInHorizontalView, Qt as isExpiredAssetUrl, Ie as isFirefox, Xn as isFontFamilyAvailable, tr as isFormInteracted, me as isGalleryItemCardType, ht as isGradientString, Re as isIOS, xe as isInElement, Gn as isModKey, Me as isSafari, ct as isSaveSrcValid, nn as isValidDomainOrIntranetUrl, Lt as isValidIsoDate, ln as isValidUrl, qt as isoToDate, jn as isoWeekNumber, Oe as loadScript, Nt as lockBodyScrolling, pn as luminanceTextColor, zn as moveMultipleToIndex, Rn as moveToIndex, Vn as multiSelectTo, pt as normalizeAngle, Yt as normalizeToIsoDate, ir as omit, Mn as openAssetOverview, Nn as openFolderOverview, Pn as openLink, te as padPath, ne as parseBooleanString, bn as parseBorder, Rt as parseDisplayToIso, i as parseDuration, Q as parseFileSizeToBytes, vt as parseGradient, Jt as parseIsoDate, or as parseJsonString, _n as parseLightDark, sr as parseListString, mn as parseShadow, fr as parseTransformations, ar as pick, Pe as popoverSupported, t as prefersReducedMotion, Ct as quantizeLargestRemainder, R as quoteFontFamily, cr as readLocalStorageValue, Te as readSearchConsistency, ue as reducePathToDirectChild, s as registerTranslation, M as removeAtIndex, N as removeMultipleAtIndex, nt as resizeImage, Cr as resolveAutoFormat, Sr as resolveAutoMaxWidth, $t as resolveSpaceUrl, qe as rotateBox, it as rotateImage, se as safeExtension, ie as safeString, re as sanitizeHTML, Ye as sanitizeRotation, jt as scrollIntoView, er as serialize, bt as serializeGradient, Fn as shareAsset, e as shimKeyframesHeightAuto, Se as sortByTopPosition, mt as sortStops, V as sortTypefaceVariants, Ft as splitBoxValues, h as splitCamelCaseFormatted, gt as splitTopLevel, r as stopAnimations, Be as supportHLS, B as testFontAvailability, Tn as timecodeConverter, he as toCamelCase, It as toIsoDate, ve as toKebabCase, _ as toPascalCase, en as toRelativeUrl, _e as toTitleCase, an as toUrlPathKey, ur as toast, m as truncateTextMiddle, p as unescapeXML, Mt as unlockBodyScrolling, z as unquoteFontFamily, ge as upperFirst, C as validValidityState, ke as valueMissingValidityState, a as waitForEvent, f as watch, lr as writeLocalStorageValue };
|