@orangelogic/design-system 2.97.0 → 2.99.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.B3vySOI-.js → asset.CKtT9q4k.js} +1 -1
- package/library/chunks/{button.CAa1kvwe.js → button.DfRnA70F.js} +1 -1
- package/library/chunks/{color-swatch-group.ChcPlkPU.js → color-swatch-group.Cfn8EGfK.js} +3 -3
- package/library/chunks/{color-swatch.DJ1kUnBQ.js → color-swatch.BUwHT5Cx.js} +1 -1
- package/library/chunks/{confirm-popover.D4x0nO5g.js → confirm-popover.BMGnWZnC.js} +3 -3
- package/library/chunks/{dialog.BLaxLMSc.js → dialog._xvAZqaE.js} +2 -2
- package/library/chunks/{dot-pagination.-nDdQxJN.js → dot-pagination.BzsMmgef.js} +1 -1
- package/library/chunks/{file-on-demand.AzwoUvwB.js → file-on-demand.CIjtKP0H.js} +213 -198
- package/library/chunks/{folder-select.XpkOFzAW.js → folder-select.D4Ft0qRc.js} +3 -3
- package/library/chunks/{header.BZxyeLPK.js → header.B5C9hZiO.js} +1 -1
- package/library/chunks/{i18n.BABe9hN4.js → i18n.DK1uYlJT.js} +1 -0
- package/library/chunks/{icon-button.C2s3pHG4.js → icon-button.CN0NGNQx.js} +1 -1
- package/library/chunks/{iframe.DPccxsnE.js → iframe.BsLEwsvI.js} +1 -1
- package/library/chunks/{image.Cc4V85ID.js → image.BnB-fJ8g.js} +1 -1
- package/library/chunks/{list-editor.pVYc_70c.js → list-editor.B_mnvgtZ.js} +8 -8
- package/library/chunks/{option.DGXQzdtb.js → option.B7SoEb_q.js} +1 -1
- package/library/chunks/{pagination.DZqKSA86.js → pagination.Bi-8gmcy.js} +4 -4
- package/library/chunks/{tab-group.BhCf9Smq.js → tab-group.DpyBG0JQ.js} +3 -3
- package/library/chunks/{table.V5PGGTfO.js → table.D4HIzy47.js} +4 -4
- package/library/chunks/{tree.DZa7k-4E.js → tree.Hh8WCK7l.js} +1 -1
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +5 -5
- package/library/components/atoms.js +12 -12
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/color-picker.js +2 -2
- package/library/components/color-swatch-group.js +4 -4
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +2 -2
- package/library/components/details.js +23 -19
- package/library/components/dialog.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +9 -9
- package/library/components/folder-select.js +3 -3
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +2 -2
- package/library/components/input.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +6 -6
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +5 -5
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +2 -2
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +2 -2
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/tab-group.js +4 -4
- package/library/components/tab.js +2 -2
- package/library/components/table.js +5 -5
- package/library/components/tag.js +2 -2
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +11790 -11785
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/details/details.d.ts +3 -1
- package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +3 -2
- package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -1
- package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +1 -0
- package/library/packages/tools/src/tiptap/extensions/text-align/index.d.ts +2 -0
- package/library/packages/types/src/content-builder.d.ts +2 -1
- package/library/packages/types/src/download-format-picker.d.ts +7 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
- package/library/react-web-component.d.ts +5 -1
- package/library/utils.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c as ps, a as Fn } from "../chunks/_commonjsHelpers.DQNKXVTB.js";
|
|
2
2
|
import { r as wb } from "../chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
|
|
3
|
-
import { r as Sb, C as Cb, R as Mb } from "../chunks/image.
|
|
3
|
+
import { r as Sb, C as Cb, R as Mb } from "../chunks/image.BnB-fJ8g.js";
|
|
4
4
|
import Db from "./resize-observer.js";
|
|
5
5
|
import { c as Pb } from "../chunks/component.styles.CRO4Odto.js";
|
|
6
6
|
import { b as Lb } from "../chunks/browser.BHOCIF_A.js";
|
|
7
7
|
import { c as Rb } from "../chunks/custom-element.L4WJXn1j.js";
|
|
8
|
-
import { L as Ib } from "../chunks/i18n.
|
|
8
|
+
import { L as Ib } from "../chunks/i18n.DK1uYlJT.js";
|
|
9
9
|
import { w as gn } from "../chunks/watch.BCJD77bD.js";
|
|
10
10
|
import { i as Ob, x as Zc } from "../chunks/lit-element.jLBm65_O.js";
|
|
11
11
|
import { n as ki } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
package/library/package.json
CHANGED
|
@@ -18,7 +18,7 @@ import { default as CxIcon } from '../icon/icon';
|
|
|
18
18
|
* @csspart base - The component's base wrapper.
|
|
19
19
|
* @csspart header - The header that wraps both the summary and the expand/collapse icon.
|
|
20
20
|
* @csspart summary - The container that wraps the summary.
|
|
21
|
-
* @csspart summary-icon - The container that wraps the expand/collapse icons.
|
|
21
|
+
* @csspart summary-icon - The container that wraps the expand/collapse icons. Use `icon-start` to place this before the summary.
|
|
22
22
|
* @csspart content - The details content.
|
|
23
23
|
*
|
|
24
24
|
* @animation details.show - The animation to use when showing details. You can use `height: auto` with this animation.
|
|
@@ -46,6 +46,8 @@ export default class CxDetails extends CortexElement {
|
|
|
46
46
|
summary: string;
|
|
47
47
|
/** Disables the details so it can't be toggled. */
|
|
48
48
|
disabled: boolean;
|
|
49
|
+
/** When true, the expand/collapse icon is placed before the summary text instead of after. */
|
|
50
|
+
iconStart: boolean;
|
|
49
51
|
detailsObserver: MutationObserver;
|
|
50
52
|
runFirstUpdated(): void;
|
|
51
53
|
connectedUpdatedCallback(): void;
|
|
@@ -4,6 +4,7 @@ import { default as CxInput } from '../../../atoms/src/components/input/input.ts
|
|
|
4
4
|
import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
|
|
5
5
|
import { default as CxTypography } from '../../../atoms/src/components/typography/typography.ts';
|
|
6
6
|
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
7
|
+
import { DownloadDocType } from '../../../types/src/download-format-picker';
|
|
7
8
|
import { CSSResultGroup } from 'lit';
|
|
8
9
|
|
|
9
10
|
/**
|
|
@@ -42,7 +43,7 @@ export default class CxDownloadFormatPicker extends CortexElement {
|
|
|
42
43
|
/**
|
|
43
44
|
* Restricts the format picker to only show tabs for the specified doc types.
|
|
44
45
|
*/
|
|
45
|
-
|
|
46
|
+
prescribedDocTypes: DownloadDocType[];
|
|
46
47
|
/**
|
|
47
48
|
* Whether the download format picker is disabled.
|
|
48
49
|
*/
|
|
@@ -51,7 +52,7 @@ export default class CxDownloadFormatPicker extends CortexElement {
|
|
|
51
52
|
* A callback function that is called when the user requests to select a format.
|
|
52
53
|
* It should return a promise that resolves to a DownloadFormatValue object.
|
|
53
54
|
*/
|
|
54
|
-
onRequestDownloadFormat: ((assetIds: string[], formats?: Record<string, string[]>,
|
|
55
|
+
onRequestDownloadFormat: ((assetIds: string[], formats?: Record<string, string[]>, prescribedDocTypes?: DownloadDocType[]) => Promise<Record<string, string[]>>) | undefined;
|
|
55
56
|
/**
|
|
56
57
|
* Map of format codes to their display labels.
|
|
57
58
|
* Populated by fetching available format codes from the API.
|
|
@@ -81,10 +81,10 @@ export default class StyleController {
|
|
|
81
81
|
disabled?: boolean | ((record: Record<string, unknown>) => boolean);
|
|
82
82
|
disabledTooltip?: string;
|
|
83
83
|
downloadFormatPickerConfigs?: {
|
|
84
|
-
allowDocTypes?: string[];
|
|
85
84
|
assetIdsKey?: string;
|
|
86
85
|
isObjectFormat?: boolean;
|
|
87
86
|
objectIdKey?: string;
|
|
87
|
+
prescribedDocTypes?: import('../../../types/src/download-format-picker').DownloadDocType[];
|
|
88
88
|
};
|
|
89
89
|
folderPickerConfigs?: {
|
|
90
90
|
useFullPath: boolean;
|
|
@@ -31,6 +31,7 @@ export declare const GET_CONTENT_FIELDS: {
|
|
|
31
31
|
TITLE_WITH_FALLBACK: string;
|
|
32
32
|
};
|
|
33
33
|
export declare const CACHE_SIZE_UNIT = "GB";
|
|
34
|
+
export declare const MAX_CACHE_SIZE_GB = 9000000;
|
|
34
35
|
export declare const CACHE_SIZE_BASE = 1000;
|
|
35
36
|
export declare const SYNC_INTERVAL = 60000;
|
|
36
37
|
export declare const FOLDER_DOC_TYPES: string[];
|
|
@@ -228,6 +228,7 @@ export default class CxFileOnDemand extends CortexElement {
|
|
|
228
228
|
renderAsset(asset: Asset, listType: (typeof ASSET_LIST_TYPES)[keyof typeof ASSET_LIST_TYPES]): TemplateResult;
|
|
229
229
|
renderRecentAssets(): TemplateResult;
|
|
230
230
|
renderFavoriteAssets(): TemplateResult;
|
|
231
|
+
private renderClearUploadButton;
|
|
231
232
|
renderUploadingAssets(): TemplateResult;
|
|
232
233
|
renderPinnedAssets(): TemplateResult;
|
|
233
234
|
renderAssetsList(): TemplateResult;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
/** Meta key used to signal `ImageAlignSync` that a text-align change just happened. */
|
|
2
|
+
export declare const IMAGE_ALIGN_SYNC_META = "imageAlignSync";
|
|
1
3
|
declare const TextAlign: import('@tiptap/core').Extension<import('@tiptap/extension-text-align').TextAlignOptions, any>;
|
|
2
4
|
export default TextAlign;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Component, Editor as GrapesjsEditor, TraitProperties } from 'grapesjs';
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
3
|
import { StyleInfo } from 'lit/directives/style-map';
|
|
4
|
+
import { DownloadDocType } from './download-format-picker';
|
|
4
5
|
import { FolderSelectApi } from './folder-select';
|
|
5
6
|
|
|
6
7
|
export declare enum DeviceType {
|
|
@@ -83,10 +84,10 @@ export type PropertyConfig<T = Record<string, any>> = Omit<TraitProperties, 'opt
|
|
|
83
84
|
disabled?: boolean | ((record: Record<string, unknown>) => boolean);
|
|
84
85
|
disabledTooltip?: string;
|
|
85
86
|
downloadFormatPickerConfigs?: {
|
|
86
|
-
allowDocTypes?: string[];
|
|
87
87
|
assetIdsKey?: string;
|
|
88
88
|
isObjectFormat?: boolean;
|
|
89
89
|
objectIdKey?: string;
|
|
90
|
+
prescribedDocTypes?: DownloadDocType[];
|
|
90
91
|
};
|
|
91
92
|
folderPickerConfigs?: {
|
|
92
93
|
useFullPath: boolean;
|
|
@@ -125,6 +125,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
125
125
|
buttonAriaLabelHelpText: string;
|
|
126
126
|
cache: string;
|
|
127
127
|
cacheSizeCannotBeNegative: string;
|
|
128
|
+
cacheSizeTooLarge: (max: string) => string;
|
|
128
129
|
cacheUsageWarning: string;
|
|
129
130
|
cached: string;
|
|
130
131
|
caching: string;
|
|
@@ -1902,6 +1902,10 @@
|
|
|
1902
1902
|
* Disables the details so it can't be toggled.
|
|
1903
1903
|
*/
|
|
1904
1904
|
disabled?: boolean;
|
|
1905
|
+
/**
|
|
1906
|
+
* When true, the expand/collapse icon is placed before the summary text instead of after.
|
|
1907
|
+
*/
|
|
1908
|
+
iconStart?: boolean;
|
|
1905
1909
|
/**
|
|
1906
1910
|
* Make localization attributes reactive eslint-disable-next-line lit/no-native-attributes
|
|
1907
1911
|
*/
|
|
@@ -5841,7 +5845,7 @@
|
|
|
5841
5845
|
/**
|
|
5842
5846
|
* Restricts the format picker to only show tabs for the specified doc types.
|
|
5843
5847
|
*/
|
|
5844
|
-
|
|
5848
|
+
prescribedDocTypes?: 'Audio' | 'Graphic' | 'Image' | 'Multimedia' | 'Video'[];
|
|
5845
5849
|
/**
|
|
5846
5850
|
* Whether the download format picker is disabled.
|
|
5847
5851
|
*/
|
package/library/utils.js
CHANGED
|
@@ -13,7 +13,7 @@ import { d as ue } from "./chunks/drag.DXEXVXPv.js";
|
|
|
13
13
|
import { w as he } from "./chunks/event.mFzZi4sr.js";
|
|
14
14
|
import { f as A } from "./chunks/form.Ch1cwYzO.js";
|
|
15
15
|
import { F as de, c as ge, v as pe, a as we } from "./chunks/form.Ch1cwYzO.js";
|
|
16
|
-
import { L as Ce, r as Ee } from "./chunks/i18n.
|
|
16
|
+
import { L as Ce, r as Ee } from "./chunks/i18n.DK1uYlJT.js";
|
|
17
17
|
import { c as Ae } from "./chunks/math.DqTA6ya4.js";
|
|
18
18
|
import { g as ye, l as Se, s as Me, u as Le } from "./chunks/scroll.xtO5yojm.js";
|
|
19
19
|
import { j as x } from "./chunks/dom.0RpWet6y.js";
|