@orangelogic/design-system 4.70.0 → 4.72.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.
Files changed (156) hide show
  1. package/library/chunks/{alert.R0uU2KH7.js → alert.BMbwDsmP.js} +2 -2
  2. package/library/chunks/{array-line-clamp.sdjI6U9A.js → array-line-clamp.Bl0fIoAD.js} +2 -2
  3. package/library/chunks/{asset-link-format.dq41gJTI.js → asset-link-format.BmITtYaD.js} +732 -657
  4. package/library/chunks/{audio.Bh_OVMPq.js → audio.WFMBpGdz.js} +2 -2
  5. package/library/chunks/{bicolor-picker.BiEM_IkN.js → bicolor-picker.skJkmoUd.js} +1 -1
  6. package/library/chunks/{block-width.DVoxwnhY.js → block-width.DKfE_VQE.js} +34 -34
  7. package/library/chunks/{border-input-group.zw5e2uZT.js → border-input-group.Ba-GRAjx.js} +3 -3
  8. package/library/chunks/{breadcrumb.BUMgMApw.js → breadcrumb.D9bL86V1.js} +1 -1
  9. package/library/chunks/{button.Dja-uoTw.js → button.cbOwOkfp.js} +2 -2
  10. package/library/chunks/{color-picker.dyBoEYVk.js → color-picker.VzqG5t7K.js} +10 -10
  11. package/library/chunks/{color-swatch-group.D7ezyFa4.js → color-swatch-group.kMkHmhiw.js} +18 -18
  12. package/library/chunks/{color-swatch.y7Bpth0U.js → color-swatch.Bf8fvLkg.js} +3 -3
  13. package/library/chunks/{config-manager.DxNqEyoQ.js → config-manager.C7trh0mp.js} +27 -27
  14. package/library/chunks/{configs-controller.Dw2p65Lp.js → configs-controller.AIDqz286.js} +7 -7
  15. package/library/chunks/{confirm-popover.CBU6yy6Y.js → confirm-popover.CWujDeV1.js} +4 -4
  16. package/library/chunks/{copy-button.FXPqVprU.js → copy-button.D4K7M_oK.js} +2 -2
  17. package/library/chunks/{corner-position-input-group.itPK9LEh.js → corner-position-input-group.C7mPoW0O.js} +4 -4
  18. package/library/chunks/{date-calendar.CVCAmoi6.js → date-calendar.QUer9O4E.js} +2 -2
  19. package/library/chunks/{details.DmHi0fqd.js → details.tNVJTWTC.js} +1 -1
  20. package/library/chunks/{dialog.DpY6WRVN.js → dialog.Cda1uhdF.js} +3 -3
  21. package/library/chunks/{document-viewer.b3Nej7rG.js → document-viewer.Bimlwspw.js} +14 -14
  22. package/library/chunks/{dot-pagination.ByrS9Fz0.js → dot-pagination.QSoeQPKs.js} +2 -2
  23. package/library/chunks/{drawer.B9v7mKrO.js → drawer.D7McF8LV.js} +2 -2
  24. package/library/chunks/{dropdown.BPVXbna1.js → dropdown.POAxHVKf.js} +4 -4
  25. package/library/chunks/{dynamic-select.D2zWyFJw.js → dynamic-select.CMKK0x3-.js} +5 -5
  26. package/library/chunks/{e-chart.Dbh7iFWT.js → e-chart.CYtsjq1T.js} +2 -2
  27. package/library/chunks/{element-clamp.CM3ydK4k.js → element-clamp.n_Lrq1kt.js} +2 -2
  28. package/library/chunks/{file-on-demand.BqWBYhdM.js → file-on-demand.Vuq_z55i.js} +16 -16
  29. package/library/chunks/{folder-select.oEUjUT-R.js → folder-select.DzBr3XOi.js} +7 -7
  30. package/library/chunks/{format-time.QdzoTicK.js → format-time.JhYL2G9j.js} +1 -1
  31. package/library/chunks/{header.l6qj73ci.js → header.ClRvFgwz.js} +2 -2
  32. package/library/chunks/{i18n.BYpiX0kX.js → i18n.X_3rP_Iz.js} +2 -0
  33. package/library/chunks/{icon-button.4VGhMghV.js → icon-button.CAfxRI1U.js} +2 -2
  34. package/library/chunks/{iframe.CQ4J2A_9.js → iframe.DkQJMbzH.js} +1 -1
  35. package/library/chunks/{image-comparer.DMCUgZXb.js → image-comparer.CaUpG5Zj.js} +1 -1
  36. package/library/chunks/{image.DQCunWsS.js → image.CVuRwLzz.js} +2 -2
  37. package/library/chunks/{input.DWh_E1GV.js → input.C6fbxRuC.js} +1 -1
  38. package/library/chunks/{line-clamp.DgWfU-Yi.js → line-clamp.C8G30nOV.js} +2 -2
  39. package/library/chunks/{markdown.7JZ0SpEP.js → markdown.C6AfbcBc.js} +2 -2
  40. package/library/chunks/{masonry.CMGXrgQ8.js → masonry.Bd2v23iE.js} +3 -3
  41. package/library/chunks/{menu-item.CJFkQ-YV.js → menu-item.BotPBD7O.js} +3 -3
  42. package/library/chunks/{menu.BYeW0I0d.js → menu.YdOirIbC.js} +2 -2
  43. package/library/chunks/{option.Dk32KiRr.js → option.DXF1O3-h.js} +1 -1
  44. package/library/chunks/{padding-input-group.BlSd4VCs.js → padding-input-group.B8ph-5ls.js} +1 -1
  45. package/library/chunks/{pagination.C0Zu1uP7.js → pagination.CfcHNNGZ.js} +7 -7
  46. package/library/chunks/{popup.DaV-mbsU.js → popup.jgKP0_Eq.js} +1 -1
  47. package/library/chunks/{position-picker.mxReT7rl.js → position-picker.BSOusbGw.js} +1 -1
  48. package/library/chunks/{progress-bar.OOVw3Ho1.js → progress-bar.D5DPdmL-.js} +1 -1
  49. package/library/chunks/{progress-ring.DDNC-hmO.js → progress-ring.DAcWv9zS.js} +1 -1
  50. package/library/chunks/{radio-card.CbaIYFEi.js → radio-card.Bmd-28FP.js} +1 -1
  51. package/library/chunks/{range.1d77B-YM.js → range.CI4oCDot.js} +2 -2
  52. package/library/chunks/{rating.u1DIMFu_.js → rating.CwqqF6CH.js} +1 -1
  53. package/library/chunks/{relative-time.Ca958bVn.js → relative-time.CXeuhQzB.js} +1 -1
  54. package/library/chunks/{select.Blx7Am5x.js → select.BU4_Zp_n.js} +59 -52
  55. package/library/chunks/{shadow-input-group.E6JTidSM.js → shadow-input-group.gRlvsMVd.js} +2 -2
  56. package/library/chunks/{share-option-list.CVazDKnW.js → share-option-list.B9Raz9GO.js} +2 -2
  57. package/library/chunks/{sidebar.2H_HDEhd.js → sidebar.BXNfenxV.js} +4 -4
  58. package/library/chunks/{size-input-group.CxTubAwO.js → size-input-group.P_kaEj4l.js} +5 -5
  59. package/library/chunks/{spinner.AokDNIMB.js → spinner.BfyplUu3.js} +1 -1
  60. package/library/chunks/{split-panel.B0tLqJqx.js → split-panel.CUs1jgH4.js} +1 -1
  61. package/library/chunks/{src.D6mhR5h1.js → src.BlG-Kifa.js} +48 -48
  62. package/library/chunks/{src.BQtwu7L_.js → src.Bs5rZ16K.js} +1 -1
  63. package/library/chunks/{step.qMEvWQSa.js → step.BRT1Duvf.js} +3 -3
  64. package/library/chunks/{stepper-wizard.DbU4i26F.js → stepper-wizard.CAzhXeYZ.js} +2 -2
  65. package/library/chunks/{stepper.BxTR5LWg.js → stepper.C_a00Rul.js} +1 -1
  66. package/library/chunks/{tab-group.CBg0wLFC.js → tab-group.Bj4mUm_k.js} +7 -7
  67. package/library/chunks/{tab.Dmb7JL1e.js → tab.BbIB084o.js} +3 -3
  68. package/library/chunks/{tag.BGu9ORJf.js → tag.3vLG7AWG.js} +3 -3
  69. package/library/chunks/{tooltip.CboSydrY.js → tooltip.CaAdk5m9.js} +2 -2
  70. package/library/chunks/{tree.CJcVgjAA.js → tree.D_yv5J9e.js} +3 -3
  71. package/library/chunks/{typeface.rz2bQ3m1.js → typeface.J4nY7adt.js} +3 -3
  72. package/library/chunks/{video.vPLA5d28.js → video.D07SfJEm.js} +3 -3
  73. package/library/components/alert.js +1 -1
  74. package/library/components/array-line-clamp.js +1 -1
  75. package/library/components/asset-link-format.js +1 -1
  76. package/library/components/atoms.js +52 -52
  77. package/library/components/audio.js +1 -1
  78. package/library/components/bicolor-picker.js +1 -1
  79. package/library/components/border-input-group.js +1 -1
  80. package/library/components/breadcrumb.js +1 -1
  81. package/library/components/button.js +1 -1
  82. package/library/components/color-picker.js +1 -1
  83. package/library/components/color-swatch-group.js +1 -1
  84. package/library/components/color-swatch.js +1 -1
  85. package/library/components/confirm-popover.js +1 -1
  86. package/library/components/copy-button.js +1 -1
  87. package/library/components/corner-position-input-group.js +1 -1
  88. package/library/components/date-calendar.js +1 -1
  89. package/library/components/details.js +1 -1
  90. package/library/components/dialog.js +1 -1
  91. package/library/components/document-viewer.js +1 -1
  92. package/library/components/dot-pagination.js +1 -1
  93. package/library/components/drawer.js +1 -1
  94. package/library/components/dropdown.js +1 -1
  95. package/library/components/dynamic-select.js +1 -1
  96. package/library/components/e-chart.js +1 -1
  97. package/library/components/element-clamp.js +1 -1
  98. package/library/components/file-on-demand.js +1 -1
  99. package/library/components/folder-select.js +1 -1
  100. package/library/components/format-bytes.js +1 -1
  101. package/library/components/format-date.js +1 -1
  102. package/library/components/format-number.js +1 -1
  103. package/library/components/format-time.js +1 -1
  104. package/library/components/header.js +1 -1
  105. package/library/components/icon-button.js +1 -1
  106. package/library/components/iframe.js +1 -1
  107. package/library/components/image-comparer.js +1 -1
  108. package/library/components/image.js +1 -1
  109. package/library/components/input.js +1 -1
  110. package/library/components/line-clamp.js +1 -1
  111. package/library/components/markdown.js +1 -1
  112. package/library/components/masonry.js +1 -1
  113. package/library/components/menu-item.js +1 -1
  114. package/library/components/menu.js +1 -1
  115. package/library/components/molecules.js +17 -17
  116. package/library/components/option.js +1 -1
  117. package/library/components/organisms.js +3 -3
  118. package/library/components/padding-input-group.js +1 -1
  119. package/library/components/pagination.js +1 -1
  120. package/library/components/popup.js +1 -1
  121. package/library/components/position-picker.js +1 -1
  122. package/library/components/progress-bar.js +1 -1
  123. package/library/components/progress-ring.js +1 -1
  124. package/library/components/radio-card.js +1 -1
  125. package/library/components/range.js +1 -1
  126. package/library/components/rating.js +1 -1
  127. package/library/components/relative-time.js +1 -1
  128. package/library/components/select.js +1 -1
  129. package/library/components/shadow-input-group.js +1 -1
  130. package/library/components/share-option-list.js +1 -1
  131. package/library/components/sidebar.js +1 -1
  132. package/library/components/size-input-group.js +1 -1
  133. package/library/components/spinner.js +1 -1
  134. package/library/components/split-panel.js +1 -1
  135. package/library/components/step.js +1 -1
  136. package/library/components/stepper-wizard.js +1 -1
  137. package/library/components/stepper.js +1 -1
  138. package/library/components/tab-group.js +1 -1
  139. package/library/components/tab.js +1 -1
  140. package/library/components/tag.js +1 -1
  141. package/library/components/tooltip.js +1 -1
  142. package/library/components/tree-item.js +1 -1
  143. package/library/components/tree.js +1 -1
  144. package/library/components/typeface.js +1 -1
  145. package/library/components/types.js +86 -86
  146. package/library/components/video.js +1 -1
  147. package/library/package.json +1 -1
  148. package/library/packages/atoms/src/components/select/select.d.ts +7 -5
  149. package/library/packages/hybrid/rich-text/src/rich-text.d.ts +8 -1
  150. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +43 -2
  151. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-dimensions/asset-link-format-dimensions.d.ts +12 -3
  152. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-quality/asset-link-format-quality.d.ts +1 -0
  153. package/library/packages/utils/src/custom-element/i18n.d.ts +2 -0
  154. package/library/react-web-component.d.ts +12 -4
  155. package/library/utils.js +2 -2
  156. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../chunks/video.vPLA5d28.js";
1
+ import { n as e, t } from "../chunks/video.D07SfJEm.js";
2
2
  export { t as VIDEO_BACKGROUND_SIZE_BY_OBJECT_FIT, e as default };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "4.70.0",
4
+ "version": "4.72.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -12,11 +12,13 @@ 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
+ * @slot footer - Options pinned at the bottom of the listbox, below a separator line. The line is only drawn while an
16
+ * option is visible both above it and in the footer, so it is gone when a search hides every other option or
17
+ * every footer option. Footer options stay visible while the other options scroll above them and come last in
18
+ * keyboard order. They are selected, filtered and emitted like any other option. Set `slot="footer"` on each
19
+ * `<cx-option>` itself, not on a wrapper. Do not add a `<cx-divider>`: the line is drawn for you, and a
20
+ * `separator` role is not allowed inside a listbox. Buttons and other controls are not supported either,
21
+ * because the footer is part of the listbox.
20
22
  * @slot label - The input's label. Alternatively, you can use the `label` attribute.
21
23
  * @slot prefix - Used to prepend a presentational icon or similar element to the combobox.
22
24
  * @slot suffix - Used to append a presentational icon or similar element to the combobox.
@@ -68,7 +68,7 @@ import { RichTextMenuBarSpec, RichTextStyleFormat, RichTextToolbarSpec } from '.
68
68
  * Optional **`fire-change-on-same-content`** (default true): when false, `cx-rich-text-change` is not emitted if `editor.getHTML()` matches the last emitted HTML.
69
69
  *
70
70
  * @event {{ files: FileList }} cx-rich-text-image-drop - Emitted when an image is dropped onto the editor; `detail.files` is the dropped files.
71
- * @event {{ content: string }} cx-rich-text-change - Emitted when the document changes; `detail.content` is `editor.getHTML()`.
71
+ * @event {{ content: string }} cx-rich-text-change - Emitted when the document changes; `detail.content` is the published HTML, as `getValue()` returns it.
72
72
  * @event cx-rich-text-blur - Emitted when the editor loses focus.
73
73
  * @event cx-rich-text-focus - Emitted when the editor gains focus.
74
74
  * @event cx-rich-text-click - Emitted when the user clicks inside the toolbar, editor, or table bubble.
@@ -86,6 +86,12 @@ export default class CxRichText extends CortexElement {
86
86
  'cx-rich-text-toolbar': typeof CxRichTextToolbar;
87
87
  'cx-rich-text-video-viewer': typeof CxRichTextVideoViewer;
88
88
  };
89
+ /**
90
+ * The whole document is one paragraph with nothing in it: TinyMCE's rule for an empty field.
91
+ * Narrower than `editor.isEmpty`, which also counts several empty lines, or a table or list
92
+ * without text, as empty. A pending suggestion on that paragraph (`attrs.track`) counts as content.
93
+ */
94
+ private static isOnlyEmptyParagraph;
89
95
  readonly localize: LocalizeController;
90
96
  private caretAnimationId?;
91
97
  readonly editorContainer: HTMLDivElement;
@@ -295,6 +301,7 @@ export default class CxRichText extends CortexElement {
295
301
  * The content as it should be published: stored, rendered by a viewer, or sent as email.
296
302
  * `editor.getHTML()` stays a faithful serialization of the document, wrappers the schema forces
297
303
  * included; this resolves those away. Hosts that persist the value should read this.
304
+ * A document holding only an empty paragraph publishes as an empty string.
298
305
  */
299
306
  getValue(): string;
300
307
  private teardownEditor;
@@ -33,6 +33,13 @@ type ImageSizeBound = {
33
33
  * Without an asset, the crop's pixel size is capped by the steps above it.
34
34
  *
35
35
  * @event `cx-asset-link-format-change` - Emitted when the asset link format is changed.
36
+ * Without an asset (Format Proxy, rendition picker), the detail is the transformation string. With
37
+ * `can-percent-dimensions` on, it ends with the Dimensions percent: `|<W>%,<H>%`, or `|` alone when
38
+ * the choice is not a percent (e.g. `c_w_16,c_h_9/q_level_70|50%,50%`). Both sides are the same
39
+ * whole number from 1 to 100. Every event sent while `can-percent-dimensions` is on carries it;
40
+ * setting the flag or `percent-dimensions` sends no event. Split on the last `|`.
41
+ * With an asset, the detail is `/t/<transformations>/<file>.<ext>` with no suffix: a percent is
42
+ * not reported there.
36
43
  * @event cx-asset-link-format-reorder - Emitted with parts and transformations after a user reorder, Undo or Reset of order.
37
44
  * @event cx-asset-link-format-crop-toggle - Emitted with the enabled state of Crop in the Formats layout.
38
45
  *
@@ -96,6 +103,16 @@ export default class CxAssetLinkFormat extends CortexElement {
96
103
  height: number;
97
104
  width: number;
98
105
  } | undefined;
106
+ /**
107
+ * The Dimensions choice when it is a percent size; undefined for a preset or a pixel size.
108
+ */
109
+ private static getPercentDimensions;
110
+ /**
111
+ * The percent choice of a `<W>%,<H>%` text (e.g. `50%,50%`), as the change event writes it: one
112
+ * whole scale from 1 to 100 for both sides, as the panel takes it and Cortex stores it. Undefined
113
+ * for any other text, such as decimals, sides above 100 or unequal sides.
114
+ */
115
+ private static parsePercentDimensions;
99
116
  /**
100
117
  * The largest image size after `step` (undefined: unknown). A pixel Resize sets it, Dimensions caps
101
118
  * it, Rotate turns it (bounding box), an aspect-ratio Resize makes it unknown.
@@ -133,7 +150,15 @@ export default class CxAssetLinkFormat extends CortexElement {
133
150
  * This property is required for the component to function correctly.
134
151
  */
135
152
  asset: Asset | undefined;
153
+ /**
154
+ * The crop modes offered, in order: ratio modes (`16:9`) and auto modes (`auto: true`). Free (`free`) is the
155
+ * start mode and always offered: a list without it gets it first, labelled "Free".
156
+ */
136
157
  cropModes: CropMode[];
158
+ /**
159
+ * The focus modes offered, in order. Manual focus (`manual`) is the start mode and always offered: a list
160
+ * without it, an empty one included, gets it first, labelled "Manual focus".
161
+ */
137
162
  focusModes: FocusMode[];
138
163
  /**
139
164
  * The list of available file extensions for the asset.
@@ -194,6 +219,7 @@ export default class CxAssetLinkFormat extends CortexElement {
194
219
  /**
195
220
  * Space-separated list of panels to show, in display order (e.g. "proxy crop resize").
196
221
  * Valid tokens: proxy, dimensions, crop, resize, rotate, quality, metadata.
222
+ * Set to `undefined` or `null` for the default panels; an empty list shows none.
197
223
  */
198
224
  parts: AssetLinkFormatPart[];
199
225
  /**
@@ -220,10 +246,25 @@ export default class CxAssetLinkFormat extends CortexElement {
220
246
  */
221
247
  qualityItems: QualityItem[];
222
248
  /**
223
- * Include Custom (a width and height in pixels or percent) in the Dimensions dropdown.
224
- * A percent size writes no segment.
249
+ * Include Custom (a width and height in pixels, or in percent with `can-percent-dimensions`) in the
250
+ * Dimensions dropdown. A percent size writes no segment.
225
251
  */
226
252
  canCustomDimensions: boolean;
253
+ /**
254
+ * Offer Percent as a Custom Dimensions unit and report it in `cx-asset-link-format-change`
255
+ * (without an asset only). Percent is offered only with `can-custom-dimensions`, `dimensions` in
256
+ * `parts`, and no `asset`. In the panel a percent is one whole scale from 1 to 100, with W and H
257
+ * kept equal, as Cortex stores it. Off: Percent is hidden and the event detail is unchanged.
258
+ */
259
+ canPercentDimensions: boolean;
260
+ /**
261
+ * The starting percent choice, `<W>%,<H>%` (e.g. `50%,50%`): the text the change event reports,
262
+ * without the `|`, with both sides the same whole number from 1 to 100. Applied when it changes, or when Percent becomes offered or not (e.g. an asset
263
+ * arrives), before or after `transformations`; `''` clears a percent choice. Ignored when Percent is not offered
264
+ * (see `can-percent-dimensions`), when it is invalid, or when `transformations` has a Dimensions
265
+ * step: the step wins whichever is set first.
266
+ */
267
+ percentDimensions: string;
227
268
  lastImageSize: {
228
269
  height: number;
229
270
  width: number;
@@ -10,16 +10,20 @@ import { default as CxSpace } from '../../../../../atoms/src/components/space/sp
10
10
  import { default as CxTypography } from '../../../../../atoms/src/components/typography/typography.ts';
11
11
  import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
12
12
  import { AssetLinkFormatApplyBehavior, DimensionsItem, DimensionsValue } from '../../../../../types/src/asset-link-format';
13
- import { CSSResultGroup, TemplateResult } from 'lit';
13
+ import { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
14
14
  export type CxAssetLinkFormatDimensionsChangeEvent = CustomEvent<DimensionsValue>;
15
+ /** The largest percent: Cortex stores a percent size as one whole scale from 1 to 100. */
16
+ export declare const MAX_DIMENSIONS_PERCENT = 100;
15
17
  /**
16
- * @summary Select a dimensions preset or a custom maximum width and height, in pixels or percent.
18
+ * @summary Select a dimensions preset or a custom maximum width and height, in pixels, or in percent
19
+ * with `can-percent`. A percent is one whole scale from 1 to 100: typing W or H sets both.
17
20
  * @event cx-asset-link-format-dimensions-change - Emitted with the selected dimensions value.
18
21
  * `cx-asset-link-format` turns it into its Dimensions transformation.
19
22
  * @csspart icon - The summary icon.
20
23
  * @csspart input-label - The width and height prefixes.
21
24
  */
22
25
  export default class CxAssetLinkFormatDimensions extends CortexElement {
26
+ #private;
23
27
  static readonly styles: CSSResultGroup;
24
28
  static readonly dependencies: {
25
29
  'cx-button': typeof CxButton;
@@ -59,6 +63,11 @@ export default class CxAssetLinkFormatDimensions extends CortexElement {
59
63
  * Offer custom width and height controls.
60
64
  */
61
65
  canCustom: boolean;
66
+ /**
67
+ * Offer Percent as a custom unit: one whole scale from 1 to 100, with W and H kept equal.
68
+ * Off: Percent is hidden, and a percent `value` shows as no selection.
69
+ */
70
+ canPercent: boolean;
62
71
  /**
63
72
  * Selected preset or custom size. Undefined means no selection.
64
73
  */
@@ -75,7 +84,7 @@ export default class CxAssetLinkFormatDimensions extends CortexElement {
75
84
  * The custom width and height as typed, per unit, kept while another option is selected.
76
85
  */
77
86
  private customDimensionsDrafts;
78
- handleDimensionsValueChange(): void;
87
+ willUpdate(changedProperties: PropertyValues<this>): void;
79
88
  private emitDimensionsValue;
80
89
  private getCustomDimensionsValue;
81
90
  private get pendingValue();
@@ -18,6 +18,7 @@ export type CxAssetLinkFormatQualityChangeEvent = CustomEvent<number>;
18
18
  * @event `cx-asset-link-format-quality-change` - Emitted when the quality settings are changed.
19
19
  */
20
20
  export default class CxAssetLinkFormatQuality extends CortexElement {
21
+ #private;
21
22
  static readonly styles: CSSResultGroup;
22
23
  static readonly dependencies: {
23
24
  'cx-button': typeof CxButton;
@@ -298,7 +298,9 @@ export interface Translation extends DefaultTranslation {
298
298
  createTransition: string;
299
299
  crop: string;
300
300
  cropFocus: string;
301
+ cropFreeMode: string;
301
302
  cropLimitedByDimensions: (width: number, height: number) => string;
303
+ cropManualFocus: string;
302
304
  cropStyle: string;
303
305
  cubic: string;
304
306
  currentPage: string;
@@ -8221,11 +8221,11 @@
8221
8221
  */
8222
8222
  asset?: CxAssetLinkFormatAsset;
8223
8223
  /**
8224
- *
8224
+ * The crop modes offered, in order: ratio modes (`16:9`) and auto modes (`auto: true`). Free (`free`) is the start mode and always offered: a list without it gets it first, labelled "Free".
8225
8225
  */
8226
8226
  cropModes?: CxAssetLinkFormatCropMode[];
8227
8227
  /**
8228
- *
8228
+ * The focus modes offered, in order. Manual focus (`manual`) is the start mode and always offered: a list without it, an empty one included, gets it first, labelled "Manual focus".
8229
8229
  */
8230
8230
  focusModes?: CxAssetLinkFormatFocusMode[];
8231
8231
  /**
@@ -8269,7 +8269,7 @@
8269
8269
  */
8270
8270
  useCustomExtension?: boolean;
8271
8271
  /**
8272
- * Space-separated list of panels to show, in display order (e.g. "proxy crop resize"). Valid tokens: proxy, dimensions, crop, resize, rotate, quality, metadata.
8272
+ * Space-separated list of panels to show, in display order (e.g. "proxy crop resize"). Valid tokens: proxy, dimensions, crop, resize, rotate, quality, metadata. Set to `undefined` or `null` for the default panels; an empty list shows none.
8273
8273
  */
8274
8274
  parts?: "crop" | "dimensions" | "metadata" | "proxy" | "quality" | "resize" | "rotate"[];
8275
8275
  /**
@@ -8285,9 +8285,17 @@
8285
8285
  */
8286
8286
  reorderable?: boolean;
8287
8287
  /**
8288
- * Include Custom (a width and height in pixels or percent) in the Dimensions dropdown. A percent size writes no segment.
8288
+ * Include Custom (a width and height in pixels, or in percent with `can-percent-dimensions`) in the Dimensions dropdown. A percent size writes no segment.
8289
8289
  */
8290
8290
  canCustomDimensions?: boolean;
8291
+ /**
8292
+ * Offer Percent as a Custom Dimensions unit and report it in `cx-asset-link-format-change` (without an asset only). Percent is offered only with `can-custom-dimensions`, `dimensions` in `parts`, and no `asset`. In the panel a percent is one whole scale from 1 to 100, with W and H kept equal, as Cortex stores it. Off: Percent is hidden and the event detail is unchanged.
8293
+ */
8294
+ canPercentDimensions?: boolean;
8295
+ /**
8296
+ * The starting percent choice, `<W>%,<H>%` (e.g. `50%,50%`): the text the change event reports, without the `|`, with both sides the same whole number from 1 to 100. Applied when it changes, or when Percent becomes offered or not (e.g. an asset arrives), before or after `transformations`; `''` clears a percent choice. Ignored when Percent is not offered (see `can-percent-dimensions`), when it is invalid, or when `transformations` has a Dimensions step: the step wins whichever is set first.
8297
+ */
8298
+ percentDimensions?: string;
8291
8299
  /**
8292
8300
  *
8293
8301
  */
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.BYpiX0kX.js";
3
+ import { r as s, t as c } from "./chunks/i18n.X_3rP_Iz.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 { a as p, c as m, d as h, i as g, l as _, n as v, o as y, r as b, s as x, t as S, u as C } from "./chunks/browser.gIznFIix.js";
@@ -23,7 +23,7 @@ import { i as ot, n as st, r as ct, t as lt } from "./chunks/scroll.CEH_a4pm.js"
23
23
  import { t as ut } from "./chunks/user-agent.D2bRhUeS.js";
24
24
  import { t as dt } from "./chunks/parse.CDrJ-NY7.js";
25
25
  import { C as ft, S as pt, _ as mt, b as ht, d as gt, f as _t, g as vt, h as yt, m as bt, p as xt, t as St, u as Ct, v as wt, x as Tt, y as Et } from "./chunks/date.kywrEgxd.js";
26
- import { $ as Dt, A as Ot, B as kt, F as At, G as jt, H as Mt, I as Nt, J as Pt, K as Ft, L as It, M as Lt, N as Rt, P as zt, Q as Bt, R as Vt, U as Ht, V as Ut, W as Wt, X as Gt, Y as Kt, Z as qt, _ as Jt, a as Yt, at as Xt, b as Zt, c as Qt, ct as $t, d as en, dt as tn, et as nn, f as rn, ft as an, g as on, h as sn, ht as cn, i as ln, it as un, j as dn, k as fn, l as pn, lt as mn, m as hn, mt as gn, n as _n, nt as vn, o as yn, ot as bn, p as xn, pt as Sn, q as Cn, r as wn, rt as Tn, s as En, st as Dn, t as On, tt as kn, u as An, ut as jn, v as Mn, x as Nn, y as Pn, z as Fn } from "./chunks/src.BQtwu7L_.js";
26
+ import { $ as Dt, A as Ot, B as kt, F as At, G as jt, H as Mt, I as Nt, J as Pt, K as Ft, L as It, M as Lt, N as Rt, P as zt, Q as Bt, R as Vt, U as Ht, V as Ut, W as Wt, X as Gt, Y as Kt, Z as qt, _ as Jt, a as Yt, at as Xt, b as Zt, c as Qt, ct as $t, d as en, dt as tn, et as nn, f as rn, ft as an, g as on, h as sn, ht as cn, i as ln, it as un, j as dn, k as fn, l as pn, lt as mn, m as hn, mt as gn, n as _n, nt as vn, o as yn, ot as bn, p as xn, pt as Sn, q as Cn, r as wn, rt as Tn, s as En, st as Dn, t as On, tt as kn, u as An, ut as jn, v as Mn, x as Nn, y as Pn, z as Fn } from "./chunks/src.Bs5rZ16K.js";
27
27
  import { n as In } from "./chunks/modal.eB-mqL-y.js";
28
28
  import { a as Ln, c as Rn, d as zn, f as Bn, i as Vn, l as Hn, m as Un, n as Wn, o as Gn, p as Kn, r as qn, s as Jn, t as Yn, u as Xn } from "./chunks/url.BCc06dE7.js";
29
29
  import { a as Zn, c as Qn, d as $n, f as er, h as tr, i as nr, l as rr, m as ir, n as ar, o as or, p as sr, r as cr, s as lr, t as ur, u as dr } from "./chunks/color.CIOzHtLK.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "4.70.0",
4
+ "version": "4.72.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {