@orangelogic/design-system 4.58.0 → 4.60.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.zO0t0oA3.js → asset-link-format.dG974FMS.js} +1 -1
- package/library/chunks/{bicolor-picker.DZY5PP24.js → bicolor-picker.ePTFxpv-.js} +1 -1
- package/library/chunks/{block-width.Dbc3rT3Y.js → block-width.DN6TdcDq.js} +19 -19
- package/library/chunks/{border-input-group.BymzNWba.js → border-input-group.B-GD9YGF.js} +1 -1
- package/library/chunks/{color-picker.Ch5-Ylm8.js → color-picker.DzBT5QXr.js} +3 -3
- package/library/chunks/{color-swatch-group.Bcw5aIqG.js → color-swatch-group.CCMYA-co.js} +6 -6
- package/library/chunks/{config-manager.BfkCA0F3.js → config-manager.ijFjACzv.js} +16 -16
- package/library/chunks/{configs-controller.uTcM4iX4.js → configs-controller.US9PZfsX.js} +4 -4
- package/library/chunks/{confirm-popover.DUrgLQjC.js → confirm-popover.C2X0sUMv.js} +2 -2
- package/library/chunks/{corner-position-input-group.mrOiz-0k.js → corner-position-input-group.B1SMOWGF.js} +1 -1
- package/library/chunks/{dialog.BcCTa8Bd.js → dialog.CPvHVWDJ.js} +421 -416
- package/library/chunks/{document-viewer.Ch5h5Wte.js → document-viewer.DmXykwuU.js} +3 -3
- package/library/chunks/{dropdown.DDQXJMth.js → dropdown.B4vsoK98.js} +1 -1
- package/library/chunks/{dynamic-select.Dwcz7UjN.js → dynamic-select.BHCgqRwF.js} +1 -1
- package/library/chunks/{file-on-demand.BmRBmyyq.js → file-on-demand.C2qiTIH9.js} +4 -4
- package/library/chunks/{folder-select.Buoz3ioX.js → folder-select.Cf2KaF54.js} +1 -1
- package/library/chunks/{menu-item.CtFgeM0H.js → menu-item.SGtyl6pY.js} +24 -5
- package/library/chunks/{menu.BEVPnl3Y.js → menu.69SdPYy6.js} +2 -2
- package/library/chunks/{pagination.DULLxssA.js → pagination.B6alBgDy.js} +1 -1
- package/library/chunks/{select.S9rnkI_b.js → select.D_899gsk.js} +50 -38
- package/library/chunks/{shadow-input-group.B_W5gJ4u.js → shadow-input-group.DG3s_mso.js} +1 -1
- package/library/chunks/{size-input-group.DUyTc5na.js → size-input-group.Df-P7xql.js} +1 -1
- package/library/chunks/{src.D0Zj6Eo1.js → src.CBMYFQxL.js} +9 -9
- package/library/chunks/{tab-group.kyiPblS9.js → tab-group.FZnVZRnT.js} +3 -3
- 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/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-item.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 +3018 -2994
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/dialog/dialog.d.ts +15 -4
- package/library/packages/atoms/src/components/menu/menu.d.ts +1 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +4 -1
- package/library/packages/atoms/src/components/menu-item/submenu-controller.d.ts +9 -0
- package/library/packages/atoms/src/components/select/select.d.ts +12 -1
- package/library/packages/organisms/src/downloader/data/core/worker/utilities/FilePathFixer.d.ts +5 -1
- package/library/packages/types/src/dialog.d.ts +9 -0
- package/library/react-web-component.d.ts +5 -1
- package/package.json +1 -1
package/library/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as CortexElement } from '../../../../base/src/cortex-element.ts';
|
|
2
|
-
import { DialogDividerPosition } from '../../../../types/src/dialog';
|
|
2
|
+
import { DialogDividerPosition, DialogPlacement } from '../../../../types/src/dialog';
|
|
3
3
|
import { default as Modal } from '../../../../utils/src/custom-element/modal';
|
|
4
4
|
import { CSSResultGroup, PropertyValues } from 'lit';
|
|
5
5
|
import { ScrollbarsAutoHideBehavior } from 'overlayscrollbars';
|
|
@@ -59,7 +59,11 @@ import { default as CxPopup } from '../popup/popup';
|
|
|
59
59
|
* `no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.
|
|
60
60
|
* @property noHeader - Disables the header. This will also remove the default close button, so please ensure you provide an easy,
|
|
61
61
|
* accessible way for users to dismiss the dialog.
|
|
62
|
-
* @property boundary - The element
|
|
62
|
+
* @property boundary - The element inside which the dialog is placed.
|
|
63
|
+
* @property placement - Where the dialog sits inside its boundary: `center` (the default), `top`, `left`, `right`,
|
|
64
|
+
* `top-left` or `top-right`. `left` and `right` are physical sides and do not flip in right-to-left layouts. Use a top
|
|
65
|
+
* placement for a dialog whose content expands or collapses, so it grows downward and keeps its header and visible
|
|
66
|
+
* fields in place.
|
|
63
67
|
* @property disableOverlayClick - Prevents the dialog from closing when clicking the overlay.
|
|
64
68
|
* @property modal - Exposes the internal modal utility that controls focus trapping. To temporarily disable focus
|
|
65
69
|
* trapping and allow third-party modals spawned from an active Shoelace modal, call `modal.activateExternal()` when
|
|
@@ -97,12 +101,19 @@ export default class CxDialog extends CortexElement {
|
|
|
97
101
|
*/
|
|
98
102
|
noHeader: boolean;
|
|
99
103
|
/**
|
|
100
|
-
* The element
|
|
101
|
-
* If not provided, the dialog
|
|
104
|
+
* The element inside which the dialog is placed (see `placement`).
|
|
105
|
+
* If not provided, the dialog is placed inside the document body.
|
|
102
106
|
*/
|
|
103
107
|
boundary: HTMLElement;
|
|
104
108
|
/** The position of the divider. */
|
|
105
109
|
dividerPosition: DialogDividerPosition;
|
|
110
|
+
/**
|
|
111
|
+
* Where the dialog sits inside its boundary. `center` centers it; `top` places it at the top center; `left` and
|
|
112
|
+
* `right` keep it vertically centered against that side; `top-left` and `top-right` place it in a top corner.
|
|
113
|
+
* `left` and `right` are physical sides and do not flip in right-to-left layouts. With a top placement, a dialog
|
|
114
|
+
* whose content expands or collapses grows downward and keeps its header and visible fields in place.
|
|
115
|
+
*/
|
|
116
|
+
placement: DialogPlacement;
|
|
106
117
|
/**
|
|
107
118
|
* Enables the overlay scrollbar plugin, which provides a custom scrollbar that does not take up any content space.
|
|
108
119
|
* This is useful for dialogs that contain scrollable content.
|
|
@@ -22,6 +22,7 @@ export interface MenuSelectEventDetail {
|
|
|
22
22
|
* @cssproperty [--cx-panel-border-width=1px] - Border width of the menu and width of its dividers.
|
|
23
23
|
* @cssproperty [--cx-panel-background-color=var(--cx-color-neutral-0)] - Background color of the menu.
|
|
24
24
|
* @cssproperty [--cx-panel-border-color=var(--cx-color-neutral-200)] - Border color of the menu and color of its dividers.
|
|
25
|
+
* @cssproperty [--cx-menu-divider-spacing=var(--cx-spacing-x-small)] - Space above and below every divider in the menu, including the lines drawn between menu sections and under the Back item. It inherits, so setting it on the page or on a component reaches the menus inside other components too. Set `0` so a row's hover background reaches the divider.
|
|
25
26
|
*/
|
|
26
27
|
export default class CxMenu extends CortexElement {
|
|
27
28
|
static styles: CSSResultGroup;
|
|
@@ -52,7 +52,10 @@ export default class CxMenuItem extends CortexElement {
|
|
|
52
52
|
type: MenuItemType;
|
|
53
53
|
/** Overrides the ARIA role derived from `type`. */
|
|
54
54
|
itemRole?: MenuItemRole;
|
|
55
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* The trigger type for the submenu. With `both`, hovering opens the submenu and a mouse click only opens
|
|
57
|
+
* it, while a tap (touch or pen) toggles it. With `click`, every click toggles it.
|
|
58
|
+
*/
|
|
56
59
|
submenuTrigger: 'hover' | 'click' | 'both';
|
|
57
60
|
/** Draws the item in a checked state. */
|
|
58
61
|
checked: boolean;
|
|
@@ -4,6 +4,7 @@ import { default as CxPopup } from '../popup/popup';
|
|
|
4
4
|
import { default as CxMenuItem } from './menu-item';
|
|
5
5
|
/** A reactive controller to manage the registration of event listeners for submenus. */
|
|
6
6
|
export declare class SubmenuController implements ReactiveController {
|
|
7
|
+
#private;
|
|
7
8
|
private readonly host;
|
|
8
9
|
private readonly popupRef;
|
|
9
10
|
private parent;
|
|
@@ -49,6 +50,14 @@ export declare class SubmenuController implements ReactiveController {
|
|
|
49
50
|
*/
|
|
50
51
|
private focusFirstMenuItemAfterLazyLoad;
|
|
51
52
|
private handleKeyDown;
|
|
53
|
+
private handlePointerDown;
|
|
54
|
+
private handlePointerCancel;
|
|
55
|
+
/**
|
|
56
|
+
* A press released outside the host never produces a click on it (the click goes to the common ancestor),
|
|
57
|
+
* so forget its pointer type. Otherwise a later click with no pointerdown of its own (assistive technology,
|
|
58
|
+
* `el.click()`) would read it as a mouse click and leave the submenu open.
|
|
59
|
+
*/
|
|
60
|
+
private handleDocumentPointerUp;
|
|
52
61
|
private handleClick;
|
|
53
62
|
private handleSubmenuIconClick;
|
|
54
63
|
private handleDocumentMouseDown;
|
|
@@ -12,6 +12,11 @@ import { default as CxTag } from '../tag/tag';
|
|
|
12
12
|
* @slot - The listbox options. Can be any HTML element, nested or not, as long as they have role="option".
|
|
13
13
|
* However, default logic supports only `<cx-option>` elements. Make sure to override the default logic. See region Overridable.
|
|
14
14
|
* You can use `<cx-divider>` to group items visually.
|
|
15
|
+
* @slot footer - Options pinned at the bottom of the listbox, below a separator line. They stay visible while the other
|
|
16
|
+
* options scroll above them and come last in keyboard order. They are selected, filtered and emitted like any
|
|
17
|
+
* other option. Set `slot="footer"` on each `<cx-option>` itself, not on a wrapper. Do not add a `<cx-divider>`:
|
|
18
|
+
* the line is drawn for you, and a `separator` role is not allowed inside a listbox. Buttons and other controls
|
|
19
|
+
* are not supported either, because the footer is part of the listbox.
|
|
15
20
|
* @slot label - The input's label. Alternatively, you can use the `label` attribute.
|
|
16
21
|
* @slot prefix - Used to prepend a presentational icon or similar element to the combobox.
|
|
17
22
|
* @slot suffix - Used to append a presentational icon or similar element to the combobox.
|
|
@@ -40,6 +45,8 @@ import { default as CxTag } from '../tag/tag';
|
|
|
40
45
|
* @csspart suffix - The container that wraps the suffix slot.
|
|
41
46
|
* @csspart display-input - The element that displays the selected option's label, an `<input>` element.
|
|
42
47
|
* @csspart listbox - The listbox container where options are slotted.
|
|
48
|
+
* @csspart listbox-footer - The container that wraps the `footer` slot, pinned at the bottom of the listbox. Its `::before`
|
|
49
|
+
* draws the separator line.
|
|
43
50
|
* @csspart tags - The container that houses option tags when `multiselect` is used.
|
|
44
51
|
* @csspart tag - The individual tags that represent each multiselect option.
|
|
45
52
|
* @csspart tag__base - The tag's base part.
|
|
@@ -118,6 +125,10 @@ export default class CxSelect extends CortexElement implements CortexFormControl
|
|
|
118
125
|
displayInput: HTMLInputElement;
|
|
119
126
|
valueInput: HTMLInputElement | null;
|
|
120
127
|
listbox: HTMLSlotElement;
|
|
128
|
+
/**
|
|
129
|
+
* Wraps the default slot. It only scrolls when the `footer` slot is used; otherwise the listbox scrolls.
|
|
130
|
+
*/
|
|
131
|
+
private optionsContainer;
|
|
121
132
|
private hasFocus;
|
|
122
133
|
displayLabel: string;
|
|
123
134
|
currentOption: HTMLElement | undefined;
|
|
@@ -404,7 +415,7 @@ export default class CxSelect extends CortexElement implements CortexFormControl
|
|
|
404
415
|
handleDefaultSlotChange(): void;
|
|
405
416
|
private handleTagRemove;
|
|
406
417
|
/**
|
|
407
|
-
* Gets an array of all <cx-option> elements
|
|
418
|
+
* Gets an array of all <cx-option> elements, in keyboard order (footer options last)
|
|
408
419
|
*/
|
|
409
420
|
private getAllOptions;
|
|
410
421
|
/**
|
package/library/packages/organisms/src/downloader/data/core/worker/utilities/FilePathFixer.d.ts
CHANGED
|
@@ -10,6 +10,9 @@ export declare class FilePathFixer {
|
|
|
10
10
|
truncateAll: Set<string>;
|
|
11
11
|
};
|
|
12
12
|
constructor(storage: IStorage, userPromptService: IUserPromptService, logger: ILogger);
|
|
13
|
+
private static pathKey;
|
|
14
|
+
static getTakenPaths(files: DownloadFile[], filesToFix: DownloadFile[]): Set<string>;
|
|
15
|
+
private isTaken;
|
|
13
16
|
shouldFixPath(file: DownloadFile): Promise<boolean>;
|
|
14
17
|
/**
|
|
15
18
|
* Checks if a file path contains any invalid characters
|
|
@@ -22,5 +25,6 @@ export declare class FilePathFixer {
|
|
|
22
25
|
*/
|
|
23
26
|
sanitizeFilePath(filePath: string, replacement?: string): string;
|
|
24
27
|
private truncatePath;
|
|
25
|
-
|
|
28
|
+
/** @param takenPaths from getTakenPaths; the path given to this file is added to it */
|
|
29
|
+
tryFixPath(file: DownloadFile, invalidPaths: string[], takenPaths: Set<string>): Promise<void>;
|
|
26
30
|
}
|
|
@@ -4,3 +4,12 @@ export declare enum DialogDividerPosition {
|
|
|
4
4
|
Header = "header",
|
|
5
5
|
None = "none"
|
|
6
6
|
}
|
|
7
|
+
/** Where the dialog panel sits inside its boundary. */
|
|
8
|
+
export declare enum DialogPlacement {
|
|
9
|
+
Center = "center",
|
|
10
|
+
Left = "left",
|
|
11
|
+
Right = "right",
|
|
12
|
+
Top = "top",
|
|
13
|
+
TopLeft = "top-left",
|
|
14
|
+
TopRight = "top-right"
|
|
15
|
+
}
|
|
@@ -557,7 +557,7 @@
|
|
|
557
557
|
*/
|
|
558
558
|
itemRole?: "menuitemcheckbox" | "menuitem" | "menuitemradio";
|
|
559
559
|
/**
|
|
560
|
-
* The trigger type for the submenu.
|
|
560
|
+
* The trigger type for the submenu. With `both`, hovering opens the submenu and a mouse click only opens it, while a tap (touch or pen) toggles it. With `click`, every click toggles it.
|
|
561
561
|
*/
|
|
562
562
|
submenuTrigger?: "both" | "hover" | "click";
|
|
563
563
|
/**
|
|
@@ -2666,6 +2666,10 @@
|
|
|
2666
2666
|
* The position of the divider.
|
|
2667
2667
|
*/
|
|
2668
2668
|
dividerPosition?: "both" | "footer" | "header" | "none";
|
|
2669
|
+
/**
|
|
2670
|
+
* Where the dialog sits inside its boundary. `center` centers it; `top` places it at the top center; `left` and `right` keep it vertically centered against that side; `top-left` and `top-right` place it in a top corner. `left` and `right` are physical sides and do not flip in right-to-left layouts. With a top placement, a dialog whose content expands or collapses grows downward and keeps its header and visible fields in place.
|
|
2671
|
+
*/
|
|
2672
|
+
placement?: "center" | "left" | "right" | "top" | "top-left" | "top-right";
|
|
2669
2673
|
/**
|
|
2670
2674
|
* Enables the overlay scrollbar plugin, which provides a custom scrollbar that does not take up any content space. This is useful for dialogs that contain scrollable content. Note that the scrollbar will only be visible when the content is overflowing.
|
|
2671
2675
|
*/
|