@orangelogic/design-system 4.38.0 → 4.40.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/{alert.D8Gwfkvy.js → alert.C7jo45Pq.js} +2 -2
- package/library/chunks/{array-line-clamp.DSzPRb_y.js → array-line-clamp.BWWMLJhi.js} +2 -2
- package/library/chunks/asset-link-format.COPyGdND.js +22 -0
- package/library/chunks/{asset-link-format.vbmd2KkO.js → asset-link-format.P8WKO488.js} +1124 -578
- package/library/chunks/{audio.RwF9cR3b.js → audio.C8rPv9iZ.js} +2 -2
- package/library/chunks/{bicolor-picker.CoEkuFFa.js → bicolor-picker.Dbag6AHo.js} +1 -1
- package/library/chunks/{block-width.Bpxcj778.js → block-width.C5qELJEx.js} +394 -389
- package/library/chunks/{border-input-group.B7tkimlE.js → border-input-group.B12EFZFD.js} +3 -3
- package/library/chunks/{breadcrumb.C_NpOjQB.js → breadcrumb.BLCAOe89.js} +1 -1
- package/library/chunks/{button.BlhGCsjP.js → button.DnOMjl_G.js} +2 -2
- package/library/chunks/{color-picker.Cs91unvg.js → color-picker.Dz6vVcZS.js} +10 -10
- package/library/chunks/{color-swatch-group.BF_AFUh6.js → color-swatch-group.CZx1bZyC.js} +22 -22
- package/library/chunks/{color-swatch.By2bJtpB.js → color-swatch.C3Elv0dG.js} +3 -3
- package/library/chunks/{config-manager.CfFtxFHj.js → config-manager.Dsb1DCbi.js} +28 -28
- package/library/chunks/{configs-controller.DSc6DiFO.js → configs-controller.Cm21QV6C.js} +425 -416
- package/library/chunks/{confirm-popover.CNgNi7H6.js → confirm-popover.CahmeTbf.js} +4 -4
- package/library/chunks/{copy-button.D9kDKwlR.js → copy-button.D2ZwXadV.js} +2 -2
- package/library/chunks/{corner-position-input-group.Cc0hzrPR.js → corner-position-input-group.BV8b7GsS.js} +4 -4
- package/library/chunks/{cropper.D4ymxgab.js → cropper.BRsN8h2t.js} +1 -1
- package/library/chunks/{date-calendar.Dc3XKO0t.js → date-calendar.BpfgvrtE.js} +1 -1
- package/library/chunks/{details.BacO3ROq.js → details.BGlfx87d.js} +1 -1
- package/library/chunks/{dialog.Ci7Q_ZOR.js → dialog.BfGASgvs.js} +3 -3
- package/library/chunks/{document-viewer.CdA65_RB.js → document-viewer.BtB-RTvP.js} +14 -14
- package/library/chunks/{dot-pagination.DDt0UoT8.js → dot-pagination.BUZhiikk.js} +2 -2
- package/library/chunks/{drawer.BeMBXsqi.js → drawer.BEXLFfil.js} +2 -2
- package/library/chunks/{dropdown.DFLP9K18.js → dropdown.CnT7uTzf.js} +4 -4
- package/library/chunks/{dynamic-select.wu648W9-.js → dynamic-select.BeqPRh6t.js} +5 -5
- package/library/chunks/{e-chart.fGTLKIDX.js → e-chart.BkqfNGfV.js} +2 -2
- package/library/chunks/{element-clamp.B509oA2s.js → element-clamp.CwFlUOET.js} +2 -2
- package/library/chunks/{file-on-demand.C17w6fng.js → file-on-demand.BEAjdrt_.js} +16 -16
- package/library/chunks/{folder-select.CQllI-Id.js → folder-select.B02Mdr8b.js} +31 -34
- package/library/chunks/{format-time.DZCXUWmw.js → format-time.ysWqJKLC.js} +1 -1
- package/library/chunks/{header.BDEqW3TI.js → header.NoiopyyV.js} +2 -2
- package/library/chunks/{i18n.BJ2p4em8.js → i18n.CQPiI18Q.js} +3 -0
- package/library/chunks/{icon-button.Dd-oDRfX.js → icon-button.BAUsYiQh.js} +2 -2
- package/library/chunks/{iframe.DsOaw03m.js → iframe.CKoHB0lA.js} +1 -1
- package/library/chunks/{image-comparer.FB0ZzA0d.js → image-comparer.WUKRGHqI.js} +1 -1
- package/library/chunks/{image.Cmh2WYdP.js → image.CRrj-94o.js} +2 -2
- package/library/chunks/{input.Fmdh6pnf.js → input.D1UkXp3F.js} +1 -1
- package/library/chunks/{line-clamp.CgiUerew.js → line-clamp.B7QEzpUF.js} +2 -2
- package/library/chunks/{markdown.DMexA2xN.js → markdown.CrAalbNm.js} +2 -2
- package/library/chunks/{masonry.DqU7fvCr.js → masonry.B5kwpjVE.js} +4 -4
- package/library/chunks/{menu-item.Du9N-cKj.js → menu-item.BgoL4QFj.js} +3 -3
- package/library/chunks/{menu.gmy0sy3a.js → menu.DJBOpi__.js} +2 -2
- package/library/chunks/{option._7i4rjM5.js → option.C97GEvQ6.js} +1 -1
- package/library/chunks/{padding-input-group.E8trRZI5.js → padding-input-group.CGDq3Cct.js} +1 -1
- package/library/chunks/{pagination.C0YML9vO.js → pagination.GiwV5ZHF.js} +7 -7
- package/library/chunks/{popup.uU7UtxmR.js → popup.C2ySgZ9I.js} +1 -1
- package/library/chunks/{position-picker.DwDC9gDl.js → position-picker.DzRyAx7a.js} +1 -1
- package/library/chunks/{progress-bar.BJfkoZ6G.js → progress-bar.BfHPsueW.js} +1 -1
- package/library/chunks/{progress-ring.BSfnNF9M.js → progress-ring.Cn08Dbar.js} +1 -1
- package/library/chunks/{radio-card.DOnTPgND.js → radio-card.BPumEe9b.js} +1 -1
- package/library/chunks/{range.blqKtzMI.js → range.E1wPWa7j.js} +2 -2
- package/library/chunks/{rating.BgUId4FT.js → rating.BjGQtyCk.js} +1 -1
- package/library/chunks/{relative-time.BSSaZxeD.js → relative-time.BcpFkSZT.js} +1 -1
- package/library/chunks/{select.BddyhkLW.js → select.DGL9C_32.js} +6 -6
- package/library/chunks/{shadow-input-group.k4MBg4Pf.js → shadow-input-group.CaCaO1C9.js} +2 -2
- package/library/chunks/{share-option-list.8OSETkgd.js → share-option-list.u2Q0zMae.js} +2 -2
- package/library/chunks/{sidebar.B1MjUxBY.js → sidebar.CwAW3KaC.js} +1 -1
- package/library/chunks/{size-input-group.CR0wHbEO.js → size-input-group.Ciupfrja.js} +5 -5
- package/library/chunks/{sortable.esm.W3y3EWKS.js → sortable.esm.BVU0_hc5.js} +339 -334
- package/library/chunks/{spinner.o3Rjsff7.js → spinner.DsWszid8.js} +1 -1
- package/library/chunks/{split-panel.CVyqM2Dr.js → split-panel.KzmC5IAW.js} +1 -1
- package/library/chunks/{src.BBVUYHbX.js → src.HY1opSC4.js} +47 -47
- package/library/chunks/{src.CDbx_BKW.js → src.QIRlv8bQ.js} +53 -53
- package/library/chunks/{step.7RkKgH1n.js → step.CpXaHTmn.js} +3 -3
- package/library/chunks/{stepper-wizard.D7XpenfO.js → stepper-wizard.DZ7up5KF.js} +2 -2
- package/library/chunks/{stepper.BhLxi6eC.js → stepper.BAqogLwg.js} +1 -1
- package/library/chunks/{endpoints.jOHOmF_t.js → string-array.Dstcqyjm.js} +5 -2
- package/library/chunks/{tab-group.DPhCgEOG.js → tab-group.Ib4bahXC.js} +7 -7
- package/library/chunks/{tab.Cv9UFQjo.js → tab.BOJ3V4IE.js} +3 -3
- package/library/chunks/{tag.V9YP_T0h.js → tag.BySfbRok.js} +3 -3
- package/library/chunks/{tooltip.GjnTzFeL.js → tooltip.DWx9VYtS.js} +2 -2
- package/library/chunks/{tree.Cvx7TQer.js → tree.B3qvSTCo.js} +4 -4
- package/library/chunks/{typeface.CHo-Lj6f.js → typeface.BcNOEnVy.js} +3 -3
- package/library/chunks/{video.DFfkHdKQ.js → video.DVuLcN2J.js} +3 -3
- package/library/components/alert.js +1 -1
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +48 -48
- package/library/components/audio.js +1 -1
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/color-swatch.js +1 -1
- package/library/components/confirm-popover.js +1 -1
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/cropper.js +1 -1
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/dot-pagination.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/e-chart.js +1 -1
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- 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 +1 -1
- package/library/components/icon-button.js +1 -1
- package/library/components/iframe.js +1 -1
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +1 -1
- package/library/components/input.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +1 -1
- package/library/components/masonry.js +1 -1
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +17 -17
- package/library/components/option.js +1 -1
- package/library/components/organisms.js +3 -3
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +1 -1
- 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/radio-card.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 +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.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/tab-group.js +1 -1
- package/library/components/tab.js +1 -1
- package/library/components/tag.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +1 -1
- package/library/components/tree.js +1 -1
- package/library/components/typeface.js +1 -1
- package/library/components/types.js +98 -98
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/events/src/cx-asset-link-format-crop-toggle.d.ts +6 -0
- package/library/packages/events/src/cx-asset-link-format-reorder.d.ts +10 -0
- package/library/packages/events/src/events.d.ts +2 -0
- package/library/packages/hybrid/video-advanced/src/react/plugins/Timeline/Viewer.d.ts +1 -0
- package/library/packages/hybrid/video-advanced/src/react/utils/segmentTime.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +176 -18
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +10 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-dimensions/asset-link-format-dimensions.d.ts +103 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-dimensions/asset-link-format-dimensions.styles.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-quality/asset-link-format-quality.d.ts +30 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +6 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +7 -7
- package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -3
- package/library/packages/types/src/asset-link-format.d.ts +63 -0
- package/library/packages/types/src/content-builder.d.ts +3 -3
- package/library/packages/utils/src/custom-element/i18n.d.ts +3 -0
- package/library/react-web-component.d.ts +18 -26
- package/library/utils.js +2 -2
- package/package.json +1 -1
- package/library/chunks/asset-link-format.DhdgEsA0.js +0 -12
|
@@ -63,6 +63,11 @@ export type Asset = {
|
|
|
63
63
|
};
|
|
64
64
|
export declare enum TransformationAction {
|
|
65
65
|
Crop = "Crop",
|
|
66
|
+
/**
|
|
67
|
+
* Fits the image inside `width` x `height` pixels, keeping its aspect ratio and never
|
|
68
|
+
* scaling it up.
|
|
69
|
+
*/
|
|
70
|
+
Dimensions = "Dimensions",
|
|
66
71
|
Metadata = "Metadata",
|
|
67
72
|
Proxy = "Proxy",
|
|
68
73
|
Quality = "Quality",
|
|
@@ -105,3 +110,61 @@ export type FocusMode = {
|
|
|
105
110
|
value: string;
|
|
106
111
|
};
|
|
107
112
|
export type DefaultFocusMode = 'manual' | 'center';
|
|
113
|
+
export declare enum AssetLinkFormatPart {
|
|
114
|
+
Crop = "crop",
|
|
115
|
+
Dimensions = "dimensions",
|
|
116
|
+
Metadata = "metadata",
|
|
117
|
+
Proxy = "proxy",
|
|
118
|
+
Quality = "quality",
|
|
119
|
+
Resize = "resize",
|
|
120
|
+
Rotate = "rotate"
|
|
121
|
+
}
|
|
122
|
+
export declare enum AssetLinkFormatLayout {
|
|
123
|
+
Accordion = "accordion",
|
|
124
|
+
Formats = "formats"
|
|
125
|
+
}
|
|
126
|
+
export declare enum AssetLinkFormatApplyBehavior {
|
|
127
|
+
Automatic = "automatic",
|
|
128
|
+
Legacy = "legacy",
|
|
129
|
+
Manual = "manual"
|
|
130
|
+
}
|
|
131
|
+
export declare enum DimensionsUnit {
|
|
132
|
+
Percent = "percent",
|
|
133
|
+
Pixel = "px"
|
|
134
|
+
}
|
|
135
|
+
export declare enum DimensionsMode {
|
|
136
|
+
Custom = "custom",
|
|
137
|
+
Preset = "preset"
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* A Dimensions preset. A `value` of `<width>_<height>` or `<width>x<height>` (pixels) is the
|
|
141
|
+
* size it fits into; any other value, such as `original`, sets no size.
|
|
142
|
+
*/
|
|
143
|
+
export type DimensionsItem = {
|
|
144
|
+
disabled?: boolean;
|
|
145
|
+
group?: string;
|
|
146
|
+
label: string;
|
|
147
|
+
value: string;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Quality presets use unique numeric values from 1 to 100.
|
|
151
|
+
*/
|
|
152
|
+
export type QualityItem = {
|
|
153
|
+
description?: string;
|
|
154
|
+
disabled?: boolean;
|
|
155
|
+
label: string;
|
|
156
|
+
value: number;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* The Dimensions dropdown's choice: a preset, or a custom size. Percent is only offered when
|
|
160
|
+
* the panel allows it.
|
|
161
|
+
*/
|
|
162
|
+
export type DimensionsValue = {
|
|
163
|
+
mode: DimensionsMode.Preset;
|
|
164
|
+
value: string;
|
|
165
|
+
} | {
|
|
166
|
+
height: number;
|
|
167
|
+
mode: DimensionsMode.Custom;
|
|
168
|
+
unit: DimensionsUnit;
|
|
169
|
+
width: number;
|
|
170
|
+
};
|
|
@@ -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.js';
|
|
4
|
+
import { AssetLinkFormatPart } from './asset-link-format';
|
|
4
5
|
import { DownloadDocType } from './download-format-picker';
|
|
5
6
|
import { FolderSelectApi, FolderSelectVariant } from './folder-select';
|
|
6
7
|
import { FontFamily, FontTypeface } from './font-picker';
|
|
@@ -78,9 +79,8 @@ export type PropertyConfig<T = Record<string, any>> = Omit<TraitProperties, 'opt
|
|
|
78
79
|
*/
|
|
79
80
|
manualFormatKey?: string;
|
|
80
81
|
multiple?: boolean;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
noRotate?: boolean;
|
|
82
|
+
/** Panels to show inside cx-asset-transformation-dialog's cx-asset-link-format, in display order. */
|
|
83
|
+
parts?: AssetLinkFormatPart[];
|
|
84
84
|
/** The block-attribute key that stores the gallery records array to bulk-resolve src URLs after a format change. */
|
|
85
85
|
recordsKey?: string;
|
|
86
86
|
/** The block-attribute key that stores the resolved image source URL. */
|
|
@@ -357,6 +357,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
357
357
|
details: string;
|
|
358
358
|
detailsSourceField: string;
|
|
359
359
|
dimensions: string;
|
|
360
|
+
dimensionsPercent?: string;
|
|
360
361
|
directRelationOnRelation: (label: string) => string;
|
|
361
362
|
disabledHeightInputHelpText: string;
|
|
362
363
|
discardAllPendingEffects: string;
|
|
@@ -902,6 +903,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
902
903
|
removeFolder: (num: number) => string;
|
|
903
904
|
removeGradientStop: string;
|
|
904
905
|
renderAudio: string;
|
|
906
|
+
reorderTransformation?: (name: string) => string;
|
|
905
907
|
replace: string;
|
|
906
908
|
replaceAll: string;
|
|
907
909
|
replaceWith: string;
|
|
@@ -1138,6 +1140,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
1138
1140
|
topRight: string;
|
|
1139
1141
|
total: string;
|
|
1140
1142
|
trackingParameters: string;
|
|
1143
|
+
transformationOrderHint: string;
|
|
1141
1144
|
transformations: string;
|
|
1142
1145
|
transitionDuration: string;
|
|
1143
1146
|
transitionToExisting: string;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
export type CxAssetLinkFormatCropMode = { "auto": boolean; "disabledSize": boolean; "label": string; "value": string; };
|
|
35
35
|
export type CxAssetLinkFormatFocusMode = { "auto": boolean; "label": string; "value": string; };
|
|
36
36
|
export type CxAssetLinkFormatProxy = { "cdnName": string; "extension": string; "formatHeight": number; "formatWidth": number; "height": number; "id": string; "permanentLink": string; "proxyLabel": string; "proxyName": string; "width": number; };
|
|
37
|
-
export type CxAssetLinkFormatTransformation = { "key": "Crop" | "Metadata" | "Proxy" | "Quality" | "Resize" | "Rotate"; "value": { "disabledSize": boolean; "focusMode": string; "height": number; "isFocusModeAuto": boolean; "keepMetadata": boolean; "mode": string; "position": "bottom-center" | "bottom-left" | "bottom-right" | "center-center" | "center-left" | "center-right" | "top-center" | "top-left" | "top-right"; "quality": number; "ratioHeight": number; "ratioWidth": number; "rotation": number; "unit": "%" | "px"; "width": number; "x": number; "y": number; }; };
|
|
37
|
+
export type CxAssetLinkFormatTransformation = { "key": "Crop" | "Dimensions" | "Metadata" | "Proxy" | "Quality" | "Resize" | "Rotate"; "value": { "disabledSize": boolean; "focusMode": string; "height": number; "isFocusModeAuto": boolean; "keepMetadata": boolean; "mode": string; "position": "bottom-center" | "bottom-left" | "bottom-right" | "center-center" | "center-left" | "center-right" | "top-center" | "top-left" | "top-right"; "quality": number; "ratioHeight": number; "ratioWidth": number; "rotation": number; "unit": "%" | "px"; "width": number; "x": number; "y": number; }; };
|
|
38
38
|
export type CxBentoGridGalleryItem = { "additions": string[]; "alt": string; "backgroundColor": string; "cardType": "asset" | "folder" | "link" | "page" | "space"; "className": string; "cropFocus": "bottom-center" | "bottom-left" | "bottom-right" | "center-center" | "center-left" | "center-right" | "top-center" | "top-left" | "top-right"; "details": string; "docType": "" | "Album" | "Audio" | "Audio segment" | "Image" | "Multimedia" | "ProjectDocument" | "Story" | "Video" | "Widget"; "extension": string; "filler": boolean; "header": string; "id": string; "isClone": boolean; "maxHeight": string; "maxWidth": string; "name": string; "objectFit": "contain" | "cover" | "fill" | "none" | "scale-down"; "openInNewTab": boolean; "pageId": string; "rawId": string; "size": string; "src": string; "srcset": string; "url": string; };
|
|
39
39
|
export type CxCarouselGalleryItem = { "additions": string[]; "alt": string; "backgroundColor": string; "cardType": "asset" | "folder" | "link" | "page" | "space"; "className": string; "cropFocus": "bottom-center" | "bottom-left" | "bottom-right" | "center-center" | "center-left" | "center-right" | "top-center" | "top-left" | "top-right"; "details": string; "docType": "" | "Album" | "Audio" | "Audio segment" | "Image" | "Multimedia" | "ProjectDocument" | "Story" | "Video" | "Widget"; "extension": string; "filler": boolean; "header": string; "id": string; "isClone": boolean; "maxHeight": string; "maxWidth": string; "name": string; "objectFit": "contain" | "cover" | "fill" | "none" | "scale-down"; "openInNewTab": boolean; "pageId": string; "rawId": string; "size": string; "src": string; "srcset": string; "url": string; };
|
|
40
40
|
export type CxChatbotChatbotEvent = { "event": string; "excludedFromPurposes": string[]; "label": string; };
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
export type CxTablePick = { "value": any; "field": string; };
|
|
53
53
|
export type CxColorSwatchGroupColorSwatchData = { "cmyk": string; "color": string; "hex": string; "id": string; "metadata": dictionary; "name": string; "palette": string; "pms": string; "rgb": string; };
|
|
54
54
|
export type CxColorSwatchGroupColorSwatchCustomColumn = { "alignment": "center" | "left" | "right"; "color": string; "constraints": boolean; "fontFamily": string; "fontSize": string; "fontStyle": string; "fontWeight": string; "id": string; "maxWidth": string; "minWidth": string; "name": string; "width": string; "widthMode": "custom" | "fill-container" | "hug-contents"; };
|
|
55
|
-
export type CxColumnTransformation = { "key": "Crop" | "Metadata" | "Proxy" | "Quality" | "Resize" | "Rotate"; "value": { "disabledSize": boolean; "focusMode": string; "height": number; "isFocusModeAuto": boolean; "keepMetadata": boolean; "mode": string; "position": "bottom-center" | "bottom-left" | "bottom-right" | "center-center" | "center-left" | "center-right" | "top-center" | "top-left" | "top-right"; "quality": number; "ratioHeight": number; "ratioWidth": number; "rotation": number; "unit": "%" | "px"; "width": number; "x": number; "y": number; }; };
|
|
56
|
-
export type CxColumnGroupTransformation = { "key": "Crop" | "Metadata" | "Proxy" | "Quality" | "Resize" | "Rotate"; "value": { "disabledSize": boolean; "focusMode": string; "height": number; "isFocusModeAuto": boolean; "keepMetadata": boolean; "mode": string; "position": "bottom-center" | "bottom-left" | "bottom-right" | "center-center" | "center-left" | "center-right" | "top-center" | "top-left" | "top-right"; "quality": number; "ratioHeight": number; "ratioWidth": number; "rotation": number; "unit": "%" | "px"; "width": number; "x": number; "y": number; }; };
|
|
55
|
+
export type CxColumnTransformation = { "key": "Crop" | "Dimensions" | "Metadata" | "Proxy" | "Quality" | "Resize" | "Rotate"; "value": { "disabledSize": boolean; "focusMode": string; "height": number; "isFocusModeAuto": boolean; "keepMetadata": boolean; "mode": string; "position": "bottom-center" | "bottom-left" | "bottom-right" | "center-center" | "center-left" | "center-right" | "top-center" | "top-left" | "top-right"; "quality": number; "ratioHeight": number; "ratioWidth": number; "rotation": number; "unit": "%" | "px"; "width": number; "x": number; "y": number; }; };
|
|
56
|
+
export type CxColumnGroupTransformation = { "key": "Crop" | "Dimensions" | "Metadata" | "Proxy" | "Quality" | "Resize" | "Rotate"; "value": { "disabledSize": boolean; "focusMode": string; "height": number; "isFocusModeAuto": boolean; "keepMetadata": boolean; "mode": string; "position": "bottom-center" | "bottom-left" | "bottom-right" | "center-center" | "center-left" | "center-right" | "top-center" | "top-left" | "top-right"; "quality": number; "ratioHeight": number; "ratioWidth": number; "rotation": number; "unit": "%" | "px"; "width": number; "x": number; "y": number; }; };
|
|
57
57
|
export type CxDamCustomToolbarButtonsEditorDamCustomToolbarButton = { "accessLevel": string; "action": "create-record" | "execute-workflow" | "open-form" | "open-link" | "open-page" | "open-space"; "appearance": "icon-and-label" | "icon-only" | "label-only"; "completionMessage": string; "formId": string; "icon": string; "id": string; "label": string; "link": string; "name": string; "openInNewTab": boolean; "pageId": string; "pageUrl": string; "recordSubType": string; "recordType": string; "spaceId": string; "tooltip": string; "type": "primary" | "secondary"; "workflowId": string; };
|
|
58
58
|
export type CxGalleryGalleryRecord = { "cropFocus": "bottom-center" | "bottom-left" | "bottom-right" | "center-center" | "center-left" | "center-right" | "top-center" | "top-left" | "top-right"; "id": string; "objectFit": "contain" | "cover" | "fill" | "none" | "scale-down"; "rawId": string; "src": string; };
|
|
59
|
-
export type CxGalleryTransformation = { "key": "Crop" | "Metadata" | "Proxy" | "Quality" | "Resize" | "Rotate"; "value": { "disabledSize": boolean; "focusMode": string; "height": number; "isFocusModeAuto": boolean; "keepMetadata": boolean; "mode": string; "position": "bottom-center" | "bottom-left" | "bottom-right" | "center-center" | "center-left" | "center-right" | "top-center" | "top-left" | "top-right"; "quality": number; "ratioHeight": number; "ratioWidth": number; "rotation": number; "unit": "%" | "px"; "width": number; "x": number; "y": number; }; };
|
|
59
|
+
export type CxGalleryTransformation = { "key": "Crop" | "Dimensions" | "Metadata" | "Proxy" | "Quality" | "Resize" | "Rotate"; "value": { "disabledSize": boolean; "focusMode": string; "height": number; "isFocusModeAuto": boolean; "keepMetadata": boolean; "mode": string; "position": "bottom-center" | "bottom-left" | "bottom-right" | "center-center" | "center-left" | "center-right" | "top-center" | "top-left" | "top-right"; "quality": number; "ratioHeight": number; "ratioWidth": number; "rotation": number; "unit": "%" | "px"; "width": number; "x": number; "y": number; }; };
|
|
60
60
|
export type CxTimelineTimelineItem = { "cropFocus": "bottom-center" | "bottom-left" | "bottom-right" | "center-center" | "center-left" | "center-right" | "top-center" | "top-left" | "top-right"; "id": string; "label": string; "objectFit": "contain" | "cover" | "fill" | "none" | "scale-down"; "recordId": string; "srcset": string; "thumbnail": string; };
|
|
61
|
-
export type CxTimelineTransformation = { "key": "Crop" | "Metadata" | "Proxy" | "Quality" | "Resize" | "Rotate"; "value": { "disabledSize": boolean; "focusMode": string; "height": number; "isFocusModeAuto": boolean; "keepMetadata": boolean; "mode": string; "position": "bottom-center" | "bottom-left" | "bottom-right" | "center-center" | "center-left" | "center-right" | "top-center" | "top-left" | "top-right"; "quality": number; "ratioHeight": number; "ratioWidth": number; "rotation": number; "unit": "%" | "px"; "width": number; "x": number; "y": number; }; };
|
|
61
|
+
export type CxTimelineTransformation = { "key": "Crop" | "Dimensions" | "Metadata" | "Proxy" | "Quality" | "Resize" | "Rotate"; "value": { "disabledSize": boolean; "focusMode": string; "height": number; "isFocusModeAuto": boolean; "keepMetadata": boolean; "mode": string; "position": "bottom-center" | "bottom-left" | "bottom-right" | "center-center" | "center-left" | "center-right" | "top-center" | "top-left" | "top-right"; "quality": number; "ratioHeight": number; "ratioWidth": number; "rotation": number; "unit": "%" | "px"; "width": number; "x": number; "y": number; }; };
|
|
62
62
|
export type CxContentBuilderDevice = { "canvasWidth": string; "height": string; "id": string; "maxWidth": string; "name": string; };
|
|
63
63
|
export type CxContentBuilderContentBuilderSection = { "containerSelector": string; "id": string; "initialData": string; };
|
|
64
64
|
export type CxDashboardFilterDashboardFilterControl = { "controlId": string; "controlType": string; "id": string; "label": string; "maxOptionsVisible": number; "optionColumnMapping": CxDashboardFilterPartial; "options": CxDashboardFilterDashboardFilterOption[] | dictionary[]; "placeholder": string; "type": string; };
|
|
@@ -8124,7 +8124,7 @@
|
|
|
8124
8124
|
preRender?: boolean;
|
|
8125
8125
|
}
|
|
8126
8126
|
/**
|
|
8127
|
-
* The `cx-asset-link-format` component is used to format an asset link with various transformations such as cropping, resizing, rotating, and applying quality settings.
|
|
8127
|
+
* The `cx-asset-link-format` component is used to format an asset link with various transformations such as cropping, resizing, rotating, and applying quality settings.<br/> Dimensions is a step like the others: its own segment (`re_w_width,re_h_height,re_rm_Fit,re_allowupscale_false`) at its place in the chain. A `Resize` entry stays a Resize.<br/> Without an asset, the crop's pixel size is capped by the steps above it.
|
|
8128
8128
|
*/
|
|
8129
8129
|
interface CxAssetLinkFormatAttributes extends HTMLAttributes<CxAssetLinkFormat> {
|
|
8130
8130
|
|
|
@@ -8189,25 +8189,25 @@
|
|
|
8189
8189
|
*/
|
|
8190
8190
|
useCustomExtension?: boolean;
|
|
8191
8191
|
/**
|
|
8192
|
-
*
|
|
8192
|
+
* Space-separated list of panels to show, in display order (e.g. "proxy crop resize"). Valid tokens: proxy, dimensions, crop, resize, rotate, quality, metadata.
|
|
8193
8193
|
*/
|
|
8194
|
-
|
|
8194
|
+
parts?: "crop" | "dimensions" | "metadata" | "proxy" | "quality" | "resize" | "rotate"[];
|
|
8195
8195
|
/**
|
|
8196
|
-
*
|
|
8196
|
+
* The accordion UI (default) or the always-visible Formats UI.
|
|
8197
8197
|
*/
|
|
8198
|
-
|
|
8198
|
+
layout?: "accordion" | "formats";
|
|
8199
8199
|
/**
|
|
8200
|
-
*
|
|
8200
|
+
* Whether the inline Crop controls are enabled in the Formats layout.
|
|
8201
8201
|
*/
|
|
8202
|
-
|
|
8202
|
+
cropEnabled?: boolean;
|
|
8203
8203
|
/**
|
|
8204
|
-
*
|
|
8204
|
+
* Allow reordering Crop, Resize, Rotate and Quality. Only effective without an asset.
|
|
8205
8205
|
*/
|
|
8206
|
-
|
|
8206
|
+
reorderable?: boolean;
|
|
8207
8207
|
/**
|
|
8208
|
-
*
|
|
8208
|
+
* Include Custom (a width and height in pixels or percent) in the Dimensions dropdown. A percent size writes no segment.
|
|
8209
8209
|
*/
|
|
8210
|
-
|
|
8210
|
+
canCustomDimensions?: boolean;
|
|
8211
8211
|
/**
|
|
8212
8212
|
*
|
|
8213
8213
|
*/
|
|
@@ -8279,17 +8279,9 @@
|
|
|
8279
8279
|
*/
|
|
8280
8280
|
multiple?: boolean;
|
|
8281
8281
|
/**
|
|
8282
|
-
*
|
|
8283
|
-
*/
|
|
8284
|
-
noCrop?: boolean;
|
|
8285
|
-
/**
|
|
8286
|
-
* Hide the resize panel inside cx-asset-link-format.
|
|
8287
|
-
*/
|
|
8288
|
-
noResize?: boolean;
|
|
8289
|
-
/**
|
|
8290
|
-
* Hide the rotate panel inside cx-asset-link-format.
|
|
8282
|
+
* Panels to show inside cx-asset-link-format, in display order. Forwarded directly to its `parts` property. The metadata panel is omitted from the default, matching this dialog's previous hardcoded `no-metadata` behavior.
|
|
8291
8283
|
*/
|
|
8292
|
-
|
|
8284
|
+
parts?: "crop" | "dimensions" | "metadata" | "proxy" | "quality" | "resize" | "rotate"[];
|
|
8293
8285
|
/**
|
|
8294
8286
|
* Show a Reset button inside cx-asset-link-format that clears all transformations.
|
|
8295
8287
|
*/
|
package/library/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, i as t, n, o as r, r as i, t as a } from "./chunks/event.C11S4obG.js";
|
|
2
2
|
import { t as o } from "./chunks/custom-element.BEMYNDK1.js";
|
|
3
|
-
import { r as s, t as c } from "./chunks/i18n.
|
|
3
|
+
import { r as s, t as c } from "./chunks/i18n.CQPiI18Q.js";
|
|
4
4
|
import { n as l, r as u, t as d } from "./chunks/slot.CZUlACxT.js";
|
|
5
5
|
import { t as f } from "./chunks/watch.Ub5r8btz.js";
|
|
6
6
|
import { C as p, S as m, _ as h, a as g, b as _, c as v, d as y, f as b, g as x, h as S, i as C, l as w, m as T, n as E, o as D, p as O, r as k, s as A, t as j, u as M, v as N, w as P, x as F, y as I } from "./chunks/string.DAuTpyw8.js";
|
|
@@ -23,7 +23,7 @@ import { i as rt, n as it, r as at, t as ot } from "./chunks/scroll.CEH_a4pm.js"
|
|
|
23
23
|
import { t as st } from "./chunks/user-agent.D2bRhUeS.js";
|
|
24
24
|
import { t as ct } from "./chunks/parse.CDrJ-NY7.js";
|
|
25
25
|
import { S as lt, _ as ut, b as dt, d as ft, f as pt, g as mt, h as ht, m as gt, p as _t, t as vt, u as yt, v as bt, x as xt, y as St } from "./chunks/date.BL4L64Hx.js";
|
|
26
|
-
import { $ as Ct, A as wt, B as Tt, F as Et, G as Dt, H as Ot, I as kt, J as At, K as jt, L as Mt, M as Nt, N as Pt, O as Ft, P as It, Q as Lt, R as Rt, U as zt, V as Bt, W as Vt, X as Ht, Y as Ut, Z as Wt, _ as Gt, a as Kt, at as qt, b as Jt, c as Yt, ct as Xt, d as Zt, dt as Qt, et as $t, f as en, ft as tn, g as nn, h as rn, i as an, it as on, j as sn, k as cn, l as ln, lt as un, m as dn, mt as fn, n as pn, nt as mn, o as hn, ot as gn, p as _n, pt as vn, q as yn, r as bn, rt as xn, s as Sn, st as Cn, t as wn, tt as Tn, u as En, ut as Dn, v as On, y as kn, z as An } from "./chunks/src.
|
|
26
|
+
import { $ as Ct, A as wt, B as Tt, F as Et, G as Dt, H as Ot, I as kt, J as At, K as jt, L as Mt, M as Nt, N as Pt, O as Ft, P as It, Q as Lt, R as Rt, U as zt, V as Bt, W as Vt, X as Ht, Y as Ut, Z as Wt, _ as Gt, a as Kt, at as qt, b as Jt, c as Yt, ct as Xt, d as Zt, dt as Qt, et as $t, f as en, ft as tn, g as nn, h as rn, i as an, it as on, j as sn, k as cn, l as ln, lt as un, m as dn, mt as fn, n as pn, nt as mn, o as hn, ot as gn, p as _n, pt as vn, q as yn, r as bn, rt as xn, s as Sn, st as Cn, t as wn, tt as Tn, u as En, ut as Dn, v as On, y as kn, z as An } from "./chunks/src.QIRlv8bQ.js";
|
|
27
27
|
import { n as jn } from "./chunks/modal.775mgCbW.js";
|
|
28
28
|
import { a as Mn, c as Nn, d as Pn, f as Fn, i as In, l as Ln, m as Rn, n as zn, o as Bn, p as Vn, r as Hn, s as Un, t as Wn, u as Gn } from "./chunks/url.BCc06dE7.js";
|
|
29
29
|
import { a as Kn, c as qn, d as Jn, f as Yn, h as Xn, i as Zn, l as Qn, m as $n, n as er, o as tr, p as nr, r as rr, s as ir, t as ar, u as or } from "./chunks/color.CIOzHtLK.js";
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region ../../packages/types/src/asset-link-format.ts
|
|
2
|
-
var e = /* @__PURE__ */ function(e) {
|
|
3
|
-
return e.AspectRatio = "%", e.Pixel = "px", e;
|
|
4
|
-
}({}), t = /* @__PURE__ */ function(e) {
|
|
5
|
-
return e.Center = "Center", e.East = "East", e.North = "North", e.Northeast = "Northeast", e.Northwest = "Northwest", e.South = "South", e.Southeast = "Southeast", e.Southwest = "Southwest", e.West = "West", e;
|
|
6
|
-
}({}), n = /* @__PURE__ */ function(e) {
|
|
7
|
-
return e.Album = "Album", e.Audio = "Audio", e.AudioSegment = "Audio segment", e.Image = "Image", e.Multimedia = "Multimedia", e.ProjectDocument = "ProjectDocument", e.Story = "Story", e.Video = "Video", e.Widget = "Widget", e;
|
|
8
|
-
}({}), r = /* @__PURE__ */ function(e) {
|
|
9
|
-
return e.Crop = "Crop", e.Metadata = "Metadata", e.Proxy = "Proxy", e.Quality = "Quality", e.Resize = "Resize", e.Rotate = "Rotate", e;
|
|
10
|
-
}({});
|
|
11
|
-
//#endregion
|
|
12
|
-
export { e as i, n, r, t };
|