@orangelogic/design-system 2.78.0 → 2.79.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 (184) hide show
  1. package/library/chunks/{AxisLabelRadial.BTpA5dYy.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.hIO71GLG.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.w9C0GR9v.js → CandlestickSeries.CkXGtRWE.js} +2 -2
  4. package/library/chunks/{Circle.tOnnO-F-.js → Circle.DBa5Ok8V.js} +1 -1
  5. package/library/chunks/{ColumnSeries.Ckz75x1M.js → ColumnSeries.DGazbfza.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.CCMTJT7K.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
  7. package/library/chunks/{EditableLabel.DPmicdjK.js → EditableLabel.BWeq6fgX.js} +1 -1
  8. package/library/chunks/{Gradient.BrDBLm8v.js → Gradient.CdcsPIru.js} +1 -1
  9. package/library/chunks/{LinearGradient.CxfXxvMw.js → LinearGradient.B1z9AGUt.js} +2 -2
  10. package/library/chunks/{Picture.BNASYM-P.js → Picture.YSPC0l0Q.js} +1 -1
  11. package/library/chunks/{Polygon.Dr-GV2hn.js → Polygon.BwMvXN2H.js} +1 -1
  12. package/library/chunks/{ProgressPie.4mPA6xqm.js → ProgressPie.DlCwXN17.js} +5 -5
  13. package/library/chunks/{RadialLabel.HfsGiN4x.js → RadialLabel.DyVOf2K8.js} +1 -1
  14. package/library/chunks/{Scrollbar.Bgg-RhjP.js → Scrollbar.BdZVb_Z-.js} +1 -1
  15. package/library/chunks/{Slice.Dm56LTKj.js → Slice.DiEswWa6.js} +1 -1
  16. package/library/chunks/{Slider.FKJwoPq2.js → Slider.C20No2z5.js} +1 -1
  17. package/library/chunks/{SpriteResizer.-qJDgug8.js → SpriteResizer.DFnmcy0h.js} +1 -1
  18. package/library/chunks/{Triangle.BECgi7mc.js → Triangle.BaOef7HV.js} +1 -1
  19. package/library/chunks/{ZoomTools.cgwuIB0e.js → ZoomTools.D5JPehoL.js} +1 -1
  20. package/library/chunks/{am-chart.oZVBmpnn.js → am-chart.H2jnOzFc.js} +253 -261
  21. package/library/chunks/{animation.DU8t6mrk.js → animation.7ifl4x2S.js} +3 -7
  22. package/library/chunks/{button.DS64Tr8Z.js → button.B-ktz-w4.js} +7 -40
  23. package/library/chunks/button.styles.CKqn956w.js +5 -0
  24. package/library/chunks/{color-swatch-group.C7T6-sY7.js → color-swatch-group.DvllHUil.js} +46 -216
  25. package/library/chunks/{color-swatch.BuUP5yG4.js → color-swatch.Bx-HOp9f.js} +18 -202
  26. package/library/chunks/{colorPicker.C4w_vDjh.js → colorPicker.06n6P3aK.js} +5 -5
  27. package/library/chunks/component.styles.CRO4Odto.js +5 -0
  28. package/library/chunks/confirm-popover.BbHneK19.js +121 -0
  29. package/library/chunks/{cropper.D1lO3pl-.js → cropper.DTokTzP9.js} +2533 -2904
  30. package/library/chunks/{dialog.BdXQkCKY.js → dialog.B1nzoJak.js} +40 -251
  31. package/library/chunks/dot-pagination.C26bQ3vy.js +204 -0
  32. package/library/chunks/{exporting.BdjsEGF8.js → exporting.Chnl3UWi.js} +2 -2
  33. package/library/chunks/file-on-demand.D_Mia7M9.js +1956 -0
  34. package/library/chunks/{flow.D0FqdfOy.js → flow.D2CqFQa7.js} +5 -5
  35. package/library/chunks/{folder-select.B2qxSKA5.js → folder-select.DOsefkAC.js} +20 -226
  36. package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
  37. package/library/chunks/{gantt.DfUM7Gvb.js → gantt.DSHD2gjO.js} +8 -8
  38. package/library/chunks/header.D68fIfe2.js +170 -0
  39. package/library/chunks/{hierarchy.5kfBCoGt.js → hierarchy.DwVsMmsP.js} +5 -5
  40. package/library/chunks/icon-button.BuhCp--_.js +149 -0
  41. package/library/chunks/iframe.BQFZQMTe.js +73 -0
  42. package/library/chunks/{image.DHBgKeJp.js → image.4eLWAZ3-.js} +16 -272
  43. package/library/chunks/{index.BkoLctE9.js → index.C9khsiad.js} +17 -17
  44. package/library/chunks/{json.BjaT7cyo.js → json.zyETMOw-.js} +3 -3
  45. package/library/chunks/{list-editor.DluUZa06.js → list-editor.DNa6ROgr.js} +45 -360
  46. package/library/chunks/{map.DbgNAGxD.js → map.CqM2O6LB.js} +2 -2
  47. package/library/chunks/option.DljDoFx4.js +123 -0
  48. package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
  49. package/library/chunks/{pagination.g4zErKN2.js → pagination.BiRyMwhM.js} +45 -141
  50. package/library/chunks/{percent.DO4FjAdu.js → percent.DuQwbCCg.js} +3 -3
  51. package/library/chunks/{radar.Dd5fJVMg.js → radar.FpYl3UH5.js} +4 -4
  52. package/library/chunks/{sliceGrouper.DA3aeuJ-.js → sliceGrouper.BsE7fGMt.js} +1 -1
  53. package/library/chunks/{stock.BfI5MUyK.js → stock.BR-ag4Pt.js} +9 -9
  54. package/library/chunks/{tab-group.Dg6a82ei.js → tab-group.9HbDE1AF.js} +30 -581
  55. package/library/chunks/{table.CcqrVieF.js → table.B8LpbiGE.js} +192 -2133
  56. package/library/chunks/{timeline.BxMLjB5J.js → timeline.DkzkmgEM.js} +5 -5
  57. package/library/chunks/{tree.OXvhEOjS.js → tree.q7xRVYyh.js} +31 -399
  58. package/library/chunks/typography.DJC_UXgs.js +52 -0
  59. package/library/chunks/{venn.CxFupTb9.js → venn.D739bOV3.js} +1 -1
  60. package/library/chunks/{wc.ThQubbN2.js → wc.DzW311D-.js} +1 -1
  61. package/library/chunks/{xy.q6e68du3.js → xy.DCRDfTsa.js} +10 -10
  62. package/library/components/alert.js +9 -177
  63. package/library/components/am-chart.js +2 -2
  64. package/library/components/animated-image.js +12 -100
  65. package/library/components/animation.js +2 -2
  66. package/library/components/array-line-clamp.js +7 -88
  67. package/library/components/asset-link-format.js +48 -626
  68. package/library/components/atoms.js +17 -17
  69. package/library/components/avatar.js +5 -94
  70. package/library/components/badge.js +11 -139
  71. package/library/components/bicolor-picker.js +4 -23
  72. package/library/components/border-input-group.js +4 -25
  73. package/library/components/breadcrumb-item.js +24 -155
  74. package/library/components/breadcrumb.js +3 -21
  75. package/library/components/button-group.js +3 -28
  76. package/library/components/button.js +3 -3
  77. package/library/components/card.js +4 -126
  78. package/library/components/checkbox.js +11 -252
  79. package/library/components/color-picker.js +54 -725
  80. package/library/components/color-swatch-group.js +5 -5
  81. package/library/components/color-swatch.js +3 -3
  82. package/library/components/confirm-popover.js +5 -5
  83. package/library/components/copy-button.js +9 -254
  84. package/library/components/corner-position-input-group.js +4 -57
  85. package/library/components/cropper.js +2 -2
  86. package/library/components/details.js +6 -152
  87. package/library/components/dialog.js +4 -4
  88. package/library/components/divider.js +5 -67
  89. package/library/components/dot-pagination.js +2 -2
  90. package/library/components/dot-status.js +25 -95
  91. package/library/components/drawer.js +8 -239
  92. package/library/components/dropdown.js +47 -149
  93. package/library/components/dynamic-select.js +7 -72
  94. package/library/components/e-chart.js +6 -49
  95. package/library/components/element-clamp.js +5 -78
  96. package/library/components/file-on-demand.js +9 -9
  97. package/library/components/folder-select.js +3 -3
  98. package/library/components/format-date.js +2 -6
  99. package/library/components/format-time.js +2 -12
  100. package/library/components/grid-item.js +4 -171
  101. package/library/components/grid.js +5 -41
  102. package/library/components/header.js +2 -2
  103. package/library/components/icon-button.js +2 -2
  104. package/library/components/icon.js +8 -2448
  105. package/library/components/iframe.js +2 -2
  106. package/library/components/image-comparer.js +7 -127
  107. package/library/components/image.js +2 -2
  108. package/library/components/include.js +2 -6
  109. package/library/components/input-group.js +4 -29
  110. package/library/components/input.js +21 -715
  111. package/library/components/line-clamp.js +7 -83
  112. package/library/components/list-editor.js +7 -7
  113. package/library/components/markdown.js +1 -3
  114. package/library/components/masonry.js +22 -221
  115. package/library/components/menu-item.js +9 -309
  116. package/library/components/menu-label.js +3 -20
  117. package/library/components/menu-section.js +3 -17
  118. package/library/components/menu.js +4 -112
  119. package/library/components/molecules.js +5 -5
  120. package/library/components/mutation-observer.js +2 -6
  121. package/library/components/option.js +2 -2
  122. package/library/components/organisms.js +2 -2
  123. package/library/components/padding-input-group.js +5 -16
  124. package/library/components/pagination.js +5 -5
  125. package/library/components/popup.js +204 -538
  126. package/library/components/position-picker.js +3 -93
  127. package/library/components/progress-bar.js +18 -135
  128. package/library/components/progress-ring.js +3 -94
  129. package/library/components/qr-code.js +4 -16
  130. package/library/components/radio-button.js +4 -24
  131. package/library/components/radio-card.js +7 -175
  132. package/library/components/radio-group.js +20 -151
  133. package/library/components/radio.js +13 -170
  134. package/library/components/range.js +120 -657
  135. package/library/components/rating.js +56 -236
  136. package/library/components/relative-time.js +2 -12
  137. package/library/components/resize-observer.js +3 -7
  138. package/library/components/select.js +225 -933
  139. package/library/components/shadow-input-group.js +5 -24
  140. package/library/components/share-option-list.js +18 -310
  141. package/library/components/sidebar.js +14 -220
  142. package/library/components/size-input-group.js +10 -75
  143. package/library/components/skeleton.js +7 -80
  144. package/library/components/space.js +6 -143
  145. package/library/components/spinner.js +6 -75
  146. package/library/components/split-panel.js +16 -123
  147. package/library/components/step.js +21 -272
  148. package/library/components/stepper-wizard.js +9 -43
  149. package/library/components/stepper.js +16 -33
  150. package/library/components/switch.js +11 -274
  151. package/library/components/tab-group.js +4 -4
  152. package/library/components/tab-panel.js +4 -31
  153. package/library/components/tab.js +9 -255
  154. package/library/components/table.js +6 -6
  155. package/library/components/tag.js +14 -165
  156. package/library/components/textarea.js +14 -363
  157. package/library/components/timecode.js +4 -23
  158. package/library/components/tooltip.js +8 -92
  159. package/library/components/tree-item.js +2 -2
  160. package/library/components/tree.js +2 -2
  161. package/library/components/typeface.js +18 -117
  162. package/library/components/types.js +777 -12001
  163. package/library/components/typography.js +2 -2
  164. package/library/components/video.js +3522 -5919
  165. package/library/components/visually-hidden.js +3 -15
  166. package/library/package.json +4 -1
  167. package/library/packages/atoms/src/components/pagination/pagination.d.ts +2 -1
  168. package/library/packages/atoms/src/components/select/select.d.ts +11 -0
  169. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
  170. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +32 -1
  171. package/library/packages/types/src/table.d.ts +2 -0
  172. package/library/react-web-component.d.ts +7 -3
  173. package/package.json +4 -1
  174. package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
  175. package/library/chunks/component.styles.DMSLciL5.js +0 -71
  176. package/library/chunks/confirm-popover.BNjRvnN0.js +0 -288
  177. package/library/chunks/dot-pagination.CIVxMAAS.js +0 -325
  178. package/library/chunks/file-on-demand.BTTdth3o.js +0 -3802
  179. package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
  180. package/library/chunks/header.m7v3M94Z.js +0 -777
  181. package/library/chunks/icon-button.C3eqeQl9.js +0 -683
  182. package/library/chunks/iframe.CNEyWhcM.js +0 -160
  183. package/library/chunks/option.Csqefux_.js +0 -296
  184. package/library/chunks/typography.oDzoLbZS.js +0 -149
@@ -1,10 +1,10 @@
1
- import "../chunks/cropper.D1lO3pl-.js";
2
- import { C as q } from "../chunks/button.DS64Tr8Z.js";
1
+ import "../chunks/cropper.DTokTzP9.js";
2
+ import { C as q } from "../chunks/button.B-ktz-w4.js";
3
3
  import H from "./space.js";
4
- import { C as W } from "../chunks/typography.oDzoLbZS.js";
4
+ import { C as W } from "../chunks/typography.DJC_UXgs.js";
5
5
  import { n as l, C as F } from "../chunks/lib-cortex-element.CVMmyPMC.js";
6
6
  import { b as rt, c as ht } from "../chunks/asset.DWZ2Lzb6.js";
7
- import { c as E } from "../chunks/component.styles.DMSLciL5.js";
7
+ import { c as E } from "../chunks/component.styles.CRO4Odto.js";
8
8
  import { T as c, U as o } from "../chunks/asset-link-format.BSRDqHg7.js";
9
9
  import { c as N } from "../chunks/custom-element.L4WJXn1j.js";
10
10
  import { L as O } from "../chunks/i18n.BUW7B9hr.js";
@@ -16,9 +16,9 @@ import { n as G } from "../chunks/when.Dr1es41R.js";
16
16
  import L from "./details.js";
17
17
  import nt from "./divider.js";
18
18
  import j from "./icon.js";
19
- import { C as K } from "../chunks/icon-button.C3eqeQl9.js";
19
+ import { C as K } from "../chunks/icon-button.BuhCp--_.js";
20
20
  import tt from "./input.js";
21
- import { C as X } from "../chunks/option.Csqefux_.js";
21
+ import { C as X } from "../chunks/option.DljDoFx4.js";
22
22
  import Y from "./select.js";
23
23
  import { c as ct } from "../chunks/image.mbpyiQpQ.js";
24
24
  import { e as T } from "../chunks/query.BBf1UFkC.js";
@@ -27,43 +27,7 @@ import { o as M } from "../chunks/style-map.llVFPd__.js";
27
27
  import at from "./tooltip.js";
28
28
  import pt from "./button-group.js";
29
29
  import dt from "./checkbox.js";
30
- const ut = D`
31
- .asset-link-format__details {
32
- --header-padding: var(--cx-spacing-small) var(--cx-spacing-medium);
33
- }
34
-
35
- .asset-link-format__details::part(icon) {
36
- width: var(--cx-font-size-3x-large);
37
- height: var(--cx-font-size-3x-large);
38
- display: flex;
39
- align-items: center;
40
- justify-content: center;
41
- background-color: var(--cx-color-neutral-100);
42
- border-radius: var(--cx-border-radius-large);
43
- color: var(--cx-color-neutral-600);
44
- font-size: var(--cx-font-size-large);
45
- }
46
-
47
- .asset-link-format__details::part(input-label) {
48
- color: var(--cx-color-neutral-400);
49
- margin-inline-start: var(--cx-spacing-small);
50
- }
51
-
52
- .asset-link-format__header {
53
- padding: var(--cx-spacing-medium);
54
- }
55
-
56
- .asset-link-format__section-header {
57
- padding: 0 var(--cx-spacing-medium);
58
- border-top: solid 1px var(--cx-color-neutral-200);
59
- background-color: var(--cx-color-neutral-50);
60
- }
61
-
62
- .asset-link-format__undo {
63
- --color: var(--cx-color-primary);
64
- --background-color: transparent;
65
- }
66
- `;
30
+ const ut = D`.asset-link-format__details{--header-padding:var(--cx-spacing-small) var(--cx-spacing-medium)}.asset-link-format__details::part(icon){width:var(--cx-font-size-3x-large);height:var(--cx-font-size-3x-large);background-color:var(--cx-color-neutral-100);border-radius:var(--cx-border-radius-large);color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-large);justify-content:center;align-items:center;display:flex}.asset-link-format__details::part(input-label){color:var(--cx-color-neutral-400);margin-inline-start:var(--cx-spacing-small)}.asset-link-format__header{padding:var(--cx-spacing-medium)}.asset-link-format__section-header{padding:0 var(--cx-spacing-medium);border-top:solid 1px var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-50)}.asset-link-format__undo{--color:var(--cx-color-primary);--background-color:transparent}`;
67
31
  function J({
68
32
  asset: t,
69
33
  baseUrl: e,
@@ -189,28 +153,7 @@ function J({
189
153
  );
190
154
  }), y.length > 0 && (r += `?${y.join("&")}`), r.endsWith("/") && (r = r.slice(0, -1)), r;
191
155
  }
192
- const gt = D`
193
- cx-details::part(base) {
194
- border-bottom-width: 0;
195
- }
196
-
197
- cx-space {
198
- width: 100%;
199
- }
200
-
201
- cx-space cx-input {
202
- flex: 1;
203
- }
204
-
205
- .crop__unit-select {
206
- width: 120px;
207
- }
208
-
209
- .crop__input-group {
210
- display: flex;
211
- flex: 1;
212
- }
213
- `;
156
+ const gt = D`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.crop__unit-select{width:120px}.crop__input-group{flex:1;display:flex}`;
214
157
  var mt = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, g = (t, e, i, s) => {
215
158
  for (var a = s > 1 ? void 0 : s ? xt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
216
159
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
@@ -437,140 +380,39 @@ let u = class extends F {
437
380
  }
438
381
  render() {
439
382
  const t = this.cropModes.filter((i) => !i.auto), e = this.cropModes.filter((i) => i.auto);
440
- return b`<cx-details
441
- class="details"
442
- ?open=${this.open}
443
- @cx-show=${this.onShowDetails}
444
- @cx-hide=${this.onHideDetails}
445
- >
446
- <cx-space slot="summary" align-items="center">
447
- <div part="icon">
448
- <cx-icon name="crop"></cx-icon>
449
- </div>
450
- <cx-typography variant="body2">
451
- ${this.localize.term("crop")}
452
- </cx-typography>
453
- </cx-space>
454
- <cx-space direction="vertical" spacing="small">
455
- <cx-select
456
- data-testid="cx-asset-link-format-crop-mode"
457
- value=${this.cropMode}
458
- hoist
459
- style=${M({
383
+ return b`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="crop"></cx-icon></div><cx-typography variant="body2">${this.localize.term("crop")}</cx-typography></cx-space><cx-space direction="vertical" spacing="small"><cx-select data-testid="cx-asset-link-format-crop-mode" value=${this.cropMode} hoist style=${M({
460
384
  width: "100%"
461
- })}
462
- @cx-change=${this.onCropModeChange}
463
- ?disabled=${this.loading}
464
- >
465
- ${Q(
385
+ })} @cx-change=${this.onCropModeChange} ?disabled=${this.loading}>${Q(
466
386
  t,
467
387
  (i) => i.value,
468
388
  ({ label: i, value: s }) => b`<cx-option value=${s}>${i}</cx-option>`
469
389
  )}
470
390
  ${G(
471
391
  e.length > 0,
472
- () => b`<cx-divider></cx-divider>
473
- <small>${this.localize.term("autoCropping")}</small>`
392
+ () => b`<cx-divider></cx-divider><small>${this.localize.term("autoCropping")}</small>`
474
393
  )}
475
394
  ${Q(
476
395
  e,
477
396
  (i) => i.value,
478
397
  ({ label: i, value: s }) => b`<cx-option value=${s}>${i}</cx-option>`
479
- )}
480
- </cx-select>
481
- <cx-space spacing="small">
482
- <div class="crop__input-group">
483
- <cx-input
484
- data-testid="cx-asset-link-format-crop-width"
485
- placeholder=${this.localize.term("width")}
486
- type="number"
487
- step="1"
488
- value=${this.unit === o.Pixel ? this.width.toString() : this.ratioWidth.toString()}
489
- @cx-change=${this.handleInputChange}
490
- @cx-input=${this.handleWidthChange}
491
- required
492
- ?disabled=${this.loading}
493
- >
494
- <cx-typography slot="prefix" variant="body3" part="input-label">
398
+ )}</cx-select><cx-space spacing="small"><div class="crop__input-group"><cx-input data-testid="cx-asset-link-format-crop-width" placeholder=${this.localize.term("width")} type="number" step="1" value=${this.unit === o.Pixel ? this.width.toString() : this.ratioWidth.toString()} @cx-change=${this.handleInputChange} @cx-input=${this.handleWidthChange} required ?disabled=${this.loading}><cx-typography slot="prefix" variant="body3" part="input-label">
495
399
  W
496
- </cx-typography>
497
- </cx-input>
498
- <cx-icon-button
499
- data-testid="cx-asset-link-format-crop-aspect-ratio"
500
- name=${this.keepAspectRatio ? "insert_link" : "link_off"}
501
- @click=${this.handleAspectRatioClick}
502
- style=${M({
400
+ </cx-typography></cx-input><cx-icon-button data-testid="cx-asset-link-format-crop-aspect-ratio" name=${this.keepAspectRatio ? "insert_link" : "link_off"} @click=${this.handleAspectRatioClick} style=${M({
503
401
  color: this.keepAspectRatio ? "var(--cx-color-primary)" : void 0
504
- })}
505
- ?disabled=${this.loading}
506
- ></cx-icon-button>
507
- <cx-input
508
- data-testid="cx-asset-link-format-crop-height"
509
- placeholder=${this.localize.term("height")}
510
- type="number"
511
- step="1"
512
- value=${this.unit === o.Pixel ? this.height.toString() : this.ratioHeight.toString()}
513
- ?disabled=${this.loading}
514
- @cx-change=${this.handleInputChange}
515
- @cx-input=${this.handleHeightChange}
516
- required
517
- >
518
- <cx-typography slot="prefix" variant="body3" part="input-label">
402
+ })} ?disabled=${this.loading}></cx-icon-button><cx-input data-testid="cx-asset-link-format-crop-height" placeholder=${this.localize.term("height")} type="number" step="1" value=${this.unit === o.Pixel ? this.height.toString() : this.ratioHeight.toString()} ?disabled=${this.loading} @cx-change=${this.handleInputChange} @cx-input=${this.handleHeightChange} required><cx-typography slot="prefix" variant="body3" part="input-label">
519
403
  H
520
- </cx-typography>
521
- </cx-input>
522
- </div>
523
- <cx-select
524
- data-testid="cx-asset-link-format-crop-unit"
525
- value=${this.unit}
526
- hoist
527
- class="crop__unit-select"
528
- ?disabled=${this.loading}
529
- @cx-change=${this.onUnitChange}
530
- >
531
- <cx-option value=${o.Pixel}>
532
- ${this.localize.term("pixels")}
533
- </cx-option>
534
- <cx-option value=${o.AspectRatio}>
535
- ${this.localize.term("aspectRatio")}
536
- </cx-option>
537
- </cx-select>
538
- </cx-space>
539
- ${G(
404
+ </cx-typography></cx-input></div><cx-select data-testid="cx-asset-link-format-crop-unit" value=${this.unit} hoist class="crop__unit-select" ?disabled=${this.loading} @cx-change=${this.onUnitChange}><cx-option value=${o.Pixel}>${this.localize.term("pixels")}</cx-option><cx-option value=${o.AspectRatio}>${this.localize.term("aspectRatio")}</cx-option></cx-select></cx-space>${G(
540
405
  this.focusModes.length > 0,
541
- () => b`
542
- <cx-select
543
- data-testid="cx-asset-link-format-crop-focus-mode"
544
- value=${this.focusMode}
545
- hoist
546
- style=${M({
406
+ () => b`<cx-select data-testid="cx-asset-link-format-crop-focus-mode" value=${this.focusMode} hoist style=${M({
547
407
  width: "100%"
548
- })}
549
- @cx-change=${this.onFocusModeChange}
550
- ?disabled=${this.loading || this.selectedMode?.disabledSize}
551
- >
552
- ${Q(
408
+ })} @cx-change=${this.onFocusModeChange} ?disabled=${this.loading || this.selectedMode?.disabledSize}>${Q(
553
409
  this.focusModes,
554
410
  (i) => i.value,
555
411
  ({ label: i, value: s }) => b`<cx-option value=${s}>${i}</cx-option>`
556
- )}
557
- </cx-select>
558
- `
559
- )}
560
- <cx-button
561
- data-testid="cx-asset-link-format-crop-apply"
562
- variant="primary"
563
- ?disabled=${this.disabledApply || this.invalidHeight || this.invalidWidth}
564
- ?loading=${this.loading}
565
- style=${M({
412
+ )}</cx-select>`
413
+ )}<cx-button data-testid="cx-asset-link-format-crop-apply" variant="primary" ?disabled=${this.disabledApply || this.invalidHeight || this.invalidWidth} ?loading=${this.loading} style=${M({
566
414
  marginLeft: "auto"
567
- })}
568
- @click=${this.handleApply}
569
- >
570
- ${this.localize.term("apply")}
571
- </cx-button>
572
- </cx-space>
573
- </cx-details>`;
415
+ })} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
574
416
  }
575
417
  };
576
418
  u.styles = [E, gt];
@@ -664,18 +506,7 @@ g([
664
506
  u = g([
665
507
  N("cx-asset-link-format-crop")
666
508
  ], u);
667
- const ft = D`
668
- .extension {
669
- padding: var(--cx-spacing-small) var(--cx-spacing-medium);
670
- border: solid 1px var(--cx-color-neutral-200);
671
- background-color: var(--cx-color-neutral-0);
672
-
673
- cx-select {
674
- flex: 1;
675
- width: 100%;
676
- }
677
- }
678
- `;
509
+ const ft = D`.extension{padding:var(--cx-spacing-small) var(--cx-spacing-medium);border:solid 1px var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-0);& cx-select{flex:1;width:100%}}`;
679
510
  var yt = Object.defineProperty, vt = Object.getOwnPropertyDescriptor, et = (t, e, i, s) => {
680
511
  for (var a = s > 1 ? void 0 : s ? vt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
681
512
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
@@ -692,28 +523,11 @@ let U = class extends F {
692
523
  });
693
524
  }
694
525
  render() {
695
- return b`
696
- <cx-space direction="vertical" spacing="small" class="extension">
697
- <cx-typography variant="body2">
698
- ${this.localize.term("extension")}
699
- </cx-typography>
700
- <cx-select
701
- data-label=${this.localize.term("extension")}
702
- data-testid="cx-asset-link-format-extension-select"
703
- value=${this.value}
704
- hoist
705
- @cx-change=${this.handleExtensionChange}
706
- >
707
- ${Q(
526
+ return b`<cx-space direction="vertical" spacing="small" class="extension"><cx-typography variant="body2">${this.localize.term("extension")}</cx-typography><cx-select data-label=${this.localize.term("extension")} data-testid="cx-asset-link-format-extension-select" value=${this.value} hoist @cx-change=${this.handleExtensionChange}>${Q(
708
527
  this.items,
709
528
  (t) => t.value,
710
- (t) => b`
711
- <cx-option value=${t.value}>${t.displayName}</cx-option>
712
- `
713
- )}
714
- </cx-select>
715
- </cx-space>
716
- `;
529
+ (t) => b`<cx-option value=${t.value}>${t.displayName}</cx-option>`
530
+ )}</cx-select></cx-space>`;
717
531
  }
718
532
  };
719
533
  U.styles = [E, ft];
@@ -732,11 +546,7 @@ et([
732
546
  U = et([
733
547
  N("cx-asset-link-format-extension")
734
548
  ], U);
735
- const wt = D`
736
- cx-details::part(base) {
737
- border-bottom-width: 0;
738
- }
739
- `;
549
+ const wt = D`cx-details::part(base){border-bottom-width:0}`;
740
550
  var zt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, _ = (t, e, i, s) => {
741
551
  for (var a = s > 1 ? void 0 : s ? St(e, i) : e, h = t.length - 1, r; h >= 0; h--)
742
552
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
@@ -788,53 +598,13 @@ let C = class extends F {
788
598
  t.target !== this.base && t.stopPropagation();
789
599
  }
790
600
  render() {
791
- return b`
792
- <cx-details
793
- class="details"
794
- ?open=${this.open}
795
- @cx-show=${this.onShowDetails}
796
- @cx-hide=${this.onHideDetails}
797
- >
798
- <cx-space slot="summary" align-items="center">
799
- <div part="icon">
800
- <cx-icon name="photo_size_select_large"></cx-icon>
801
- </div>
802
- <cx-typography variant="body2">
803
- ${this.localize.term("format")}
804
- </cx-typography>
805
- </cx-space>
806
- <cx-space direction="vertical" spacing="small" class="format">
807
- <cx-select
808
- data-label=${this.localize.term("imageFormat")}
809
- data-testid="cx-asset-link-format-proxy-select"
810
- value=${this.scopedValue}
811
- hoist
812
- @cx-change=${this.handleProxyChange}
813
- ?disabled=${this.loading}
814
- >
815
- ${Q(
601
+ return b`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="photo_size_select_large"></cx-icon></div><cx-typography variant="body2">${this.localize.term("format")}</cx-typography></cx-space><cx-space direction="vertical" spacing="small" class="format"><cx-select data-label=${this.localize.term("imageFormat")} data-testid="cx-asset-link-format-proxy-select" value=${this.scopedValue} hoist @cx-change=${this.handleProxyChange} ?disabled=${this.loading}>${Q(
816
602
  this.items,
817
603
  (t) => t.id,
818
- (t) => b`
819
- <cx-option value=${t.id}>${t.proxyLabel}</cx-option>
820
- `
821
- )}
822
- </cx-select>
823
- <cx-button
824
- data-testid="cx-asset-link-format-proxy-apply"
825
- variant="primary"
826
- style=${M({
604
+ (t) => b`<cx-option value=${t.id}>${t.proxyLabel}</cx-option>`
605
+ )}</cx-select><cx-button data-testid="cx-asset-link-format-proxy-apply" variant="primary" style=${M({
827
606
  "margin-left": "auto"
828
- })}
829
- ?disabled=${this.scopedValue === this.value}
830
- ?loading=${this.loading}
831
- @click=${this.handleApply}
832
- >
833
- ${this.localize.term("apply")}
834
- </cx-button>
835
- </cx-space>
836
- </cx-details>
837
- `;
607
+ })} ?disabled=${this.scopedValue === this.value} ?loading=${this.loading} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
838
608
  }
839
609
  };
840
610
  C.styles = [E, wt];
@@ -874,11 +644,7 @@ _([
874
644
  C = _([
875
645
  N("cx-asset-link-format-proxy")
876
646
  ], C);
877
- const bt = D`
878
- cx-details::part(base) {
879
- border-bottom-width: 0;
880
- }
881
- `;
647
+ const bt = D`cx-details::part(base){border-bottom-width:0}`;
882
648
  var kt = Object.defineProperty, $t = Object.getOwnPropertyDescriptor, I = (t, e, i, s) => {
883
649
  for (var a = s > 1 ? void 0 : s ? $t(e, i) : e, h = t.length - 1, r; h >= 0; h--)
884
650
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
@@ -930,56 +696,9 @@ let A = class extends F {
930
696
  t.target !== this.base && t.stopPropagation();
931
697
  }
932
698
  render() {
933
- return b`
934
- <cx-details
935
- class="details"
936
- ?open=${this.open}
937
- @cx-show=${this.onShowDetails}
938
- @cx-hide=${this.onHideDetails}
939
- >
940
- <cx-space slot="summary" align-items="center">
941
- <div class="details__summary__icon">
942
- <div part="icon">
943
- <cx-icon name="blur_on"></cx-icon>
944
- </div>
945
- </div>
946
- <cx-typography variant="body2">
947
- ${this.localize.term("quality")}
948
- </cx-typography>
949
- </cx-space>
950
- <cx-space spacing="small">
951
- <cx-tooltip
952
- data-testid="cx-asset-link-format-quality-tooltip"
953
- content=${this.localize.term("qualityHelpText")}
954
- hoist
955
- >
956
- <cx-input
957
- data-testid="cx-asset-link-format-quality"
958
- class="details__checkbox"
959
- type="number"
960
- value=${this.scopedValue}
961
- min="0"
962
- max="100"
963
- step="1"
964
- style=${M({
699
+ return b`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div class="details__summary__icon"><div part="icon"><cx-icon name="blur_on"></cx-icon></div></div><cx-typography variant="body2">${this.localize.term("quality")}</cx-typography></cx-space><cx-space spacing="small"><cx-tooltip data-testid="cx-asset-link-format-quality-tooltip" content=${this.localize.term("qualityHelpText")} hoist><cx-input data-testid="cx-asset-link-format-quality" class="details__checkbox" type="number" value=${this.scopedValue} min="0" max="100" step="1" style=${M({
965
700
  flex: "1"
966
- })}
967
- @cx-input=${this.handleQualityChange}
968
- >
969
- </cx-input>
970
- </cx-tooltip>
971
- <cx-button
972
- data-testid="cx-asset-link-format-quality-apply"
973
- variant="primary"
974
- ?disabled=${this.invalidValue}
975
- ?loading=${this.loading}
976
- @click=${this.handleApply}
977
- >
978
- ${this.localize.term("apply")}
979
- </cx-button>
980
- </cx-space>
981
- </cx-details>
982
- `;
701
+ })} @cx-input=${this.handleQualityChange}></cx-input></cx-tooltip><cx-button data-testid="cx-asset-link-format-quality-apply" variant="primary" ?disabled=${this.invalidValue} ?loading=${this.loading} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
983
702
  }
984
703
  };
985
704
  A.styles = [E, bt];
@@ -1013,28 +732,7 @@ I([
1013
732
  A = I([
1014
733
  N("cx-asset-link-format-quality")
1015
734
  ], A);
1016
- const Ct = D`
1017
- cx-details::part(base) {
1018
- border-bottom-width: 0;
1019
- }
1020
-
1021
- cx-space {
1022
- width: 100%;
1023
- }
1024
-
1025
- cx-space cx-input {
1026
- flex: 1;
1027
- }
1028
-
1029
- .resize__unit-select {
1030
- width: 120px;
1031
- }
1032
-
1033
- .resize__input-group {
1034
- display: flex;
1035
- flex: 1;
1036
- }
1037
- `;
735
+ const Ct = D`cx-details::part(base){border-bottom-width:0}cx-space{width:100%}cx-space cx-input{flex:1}.resize__unit-select{width:120px}.resize__input-group{flex:1;display:flex}`;
1038
736
  var At = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, S = (t, e, i, s) => {
1039
737
  for (var a = s > 1 ? void 0 : s ? Rt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
1040
738
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
@@ -1176,90 +874,15 @@ let f = class extends F {
1176
874
  });
1177
875
  }
1178
876
  render() {
1179
- return b`<cx-details
1180
- class="details"
1181
- ?open=${this.open}
1182
- @cx-show=${this.onShowDetails}
1183
- @cx-hide=${this.onHideDetails}
1184
- >
1185
- <cx-space slot="summary" align-items="center">
1186
- <div part="icon">
1187
- <cx-icon name="aspect_ratio"></cx-icon>
1188
- </div>
1189
- <cx-typography variant="body2">
1190
- ${this.localize.term("resize")}
1191
- </cx-typography>
1192
- </cx-space>
1193
- <cx-space direction="vertical" spacing="small">
1194
- <cx-space spacing="small">
1195
- <div class="resize__input-group">
1196
- <cx-input
1197
- data-testid="cx-asset-link-format-resize-width"
1198
- placeholder=${this.localize.term("width")}
1199
- type="number"
1200
- step="1"
1201
- value=${this.unit === o.Pixel ? this.width.toString() : this.ratioWidth.toString()}
1202
- @cx-input=${this.handleWidthChange}
1203
- required
1204
- ?disabled=${this.loading}
1205
- >
1206
- <cx-typography slot="prefix" variant="body3" part="input-label">
877
+ return b`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="aspect_ratio"></cx-icon></div><cx-typography variant="body2">${this.localize.term("resize")}</cx-typography></cx-space><cx-space direction="vertical" spacing="small"><cx-space spacing="small"><div class="resize__input-group"><cx-input data-testid="cx-asset-link-format-resize-width" placeholder=${this.localize.term("width")} type="number" step="1" value=${this.unit === o.Pixel ? this.width.toString() : this.ratioWidth.toString()} @cx-input=${this.handleWidthChange} required ?disabled=${this.loading}><cx-typography slot="prefix" variant="body3" part="input-label">
1207
878
  W
1208
- </cx-typography>
1209
- </cx-input>
1210
- <cx-icon-button
1211
- data-testid="cx-asset-link-format-resize-aspect-ratio"
1212
- name=${this.keepAspectRatio ? "insert_link" : "link_off"}
1213
- @click=${this.handleAspectRatioClick}
1214
- style=${M({
879
+ </cx-typography></cx-input><cx-icon-button data-testid="cx-asset-link-format-resize-aspect-ratio" name=${this.keepAspectRatio ? "insert_link" : "link_off"} @click=${this.handleAspectRatioClick} style=${M({
1215
880
  color: this.keepAspectRatio ? "var(--cx-color-primary)" : void 0
1216
- })}
1217
- ?disabled=${this.loading}
1218
- ></cx-icon-button>
1219
- <cx-input
1220
- data-testid="cx-asset-link-format-resize-height"
1221
- placeholder=${this.localize.term("height")}
1222
- type="number"
1223
- step="1"
1224
- value=${this.unit === o.Pixel ? this.height.toString() : this.ratioHeight.toString()}
1225
- @cx-input=${this.handleHeightChange}
1226
- required
1227
- ?disabled=${this.loading}
1228
- >
1229
- <cx-typography slot="prefix" variant="body3" part="input-label">
881
+ })} ?disabled=${this.loading}></cx-icon-button><cx-input data-testid="cx-asset-link-format-resize-height" placeholder=${this.localize.term("height")} type="number" step="1" value=${this.unit === o.Pixel ? this.height.toString() : this.ratioHeight.toString()} @cx-input=${this.handleHeightChange} required ?disabled=${this.loading}><cx-typography slot="prefix" variant="body3" part="input-label">
1230
882
  H
1231
- </cx-typography>
1232
- </cx-input>
1233
- </div>
1234
- <cx-select
1235
- data-testid="cx-asset-link-format-resize-unit"
1236
- value=${this.unit}
1237
- hoist
1238
- class="resize__unit-select"
1239
- @cx-change=${this.onUnitChange}
1240
- >
1241
- <cx-option value=${o.Pixel}>
1242
- ${this.localize.term("pixels")}
1243
- </cx-option>
1244
- <cx-option value=${o.AspectRatio}>
1245
- ${this.localize.term("aspectRatio")}
1246
- </cx-option>
1247
- </cx-select>
1248
- </cx-space>
1249
- <cx-button
1250
- data-testid="cx-asset-link-format-resize-apply"
1251
- variant="primary"
1252
- ?disabled=${this.disabledApply || this.invalidHeight || this.invalidWidth}
1253
- ?loading=${this.loading}
1254
- style=${M({
883
+ </cx-typography></cx-input></div><cx-select data-testid="cx-asset-link-format-resize-unit" value=${this.unit} hoist class="resize__unit-select" @cx-change=${this.onUnitChange}><cx-option value=${o.Pixel}>${this.localize.term("pixels")}</cx-option><cx-option value=${o.AspectRatio}>${this.localize.term("aspectRatio")}</cx-option></cx-select></cx-space><cx-button data-testid="cx-asset-link-format-resize-apply" variant="primary" ?disabled=${this.disabledApply || this.invalidHeight || this.invalidWidth} ?loading=${this.loading} style=${M({
1255
884
  marginLeft: "auto"
1256
- })}
1257
- @click=${this.handleApply}
1258
- >
1259
- ${this.localize.term("apply")}
1260
- </cx-button>
1261
- </cx-space>
1262
- </cx-details>`;
885
+ })} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
1263
886
  }
1264
887
  };
1265
888
  f.styles = [E, Ct];
@@ -1331,11 +954,7 @@ S([
1331
954
  f = S([
1332
955
  N("cx-asset-link-format-resize")
1333
956
  ], f);
1334
- const Mt = D`
1335
- cx-details::part(base) {
1336
- border-bottom-width: 0;
1337
- }
1338
- `;
957
+ const Mt = D`cx-details::part(base){border-bottom-width:0}`;
1339
958
  var _t = Object.defineProperty, Pt = Object.getOwnPropertyDescriptor, V = (t, e, i, s) => {
1340
959
  for (var a = s > 1 ? void 0 : s ? Pt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
1341
960
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
@@ -1380,64 +999,10 @@ let R = class extends F {
1380
999
  });
1381
1000
  }
1382
1001
  render() {
1383
- return b`
1384
- <cx-details class="details" ?open=${this.open}>
1385
- <cx-space slot="summary" align-items="center">
1386
- <div part="icon">
1387
- <cx-icon name="rotate_90_degrees_cw"></cx-icon>
1388
- </div>
1389
- <cx-typography variant="body2">Rotate</cx-typography>
1390
- </cx-space>
1391
- <cx-space spacing="small">
1392
- <cx-button-group label=${this.localize.term("history")}>
1393
- <cx-icon-button
1394
- data-testid="cx-asset-link-format-rotation-ccw"
1395
- name="rotate_90_degrees_ccw"
1396
- label=${this.localize.term("undo")}
1397
- outline
1398
- size="small"
1399
- ?disabled=${this.loading || this.value === -360}
1400
- @click=${this.handleCounterClockwiseClick}
1401
- >
1402
- </cx-icon-button>
1403
- <cx-icon-button
1404
- data-testid="cx-asset-link-format-rotation-cw"
1405
- name="rotate_90_degrees_cw"
1406
- label=${this.localize.term("redo")}
1407
- outline
1408
- size="small"
1409
- ?disabled=${this.loading || this.value === 360}
1410
- @click=${this.handleClockwiseClick}
1411
- >
1412
- </cx-icon-button>
1413
- </cx-button-group>
1414
- <cx-input
1415
- data-testid="cx-asset-link-format-rotation"
1416
- value=${this.invalidValue ? "" : this.value.toString()}
1417
- placeholder="0"
1418
- type="number"
1419
- min="-360"
1420
- max="360"
1421
- ?disabled=${this.loading}
1422
- style=${M({
1002
+ return b`<cx-details class="details" ?open=${this.open}><cx-space slot="summary" align-items="center"><div part="icon"><cx-icon name="rotate_90_degrees_cw"></cx-icon></div><cx-typography variant="body2">Rotate</cx-typography></cx-space><cx-space spacing="small"><cx-button-group label=${this.localize.term("history")}><cx-icon-button data-testid="cx-asset-link-format-rotation-ccw" name="rotate_90_degrees_ccw" label=${this.localize.term("undo")} outline size="small" ?disabled=${this.loading || this.value === -360} @click=${this.handleCounterClockwiseClick}></cx-icon-button><cx-icon-button data-testid="cx-asset-link-format-rotation-cw" name="rotate_90_degrees_cw" label=${this.localize.term("redo")} outline size="small" ?disabled=${this.loading || this.value === 360} @click=${this.handleClockwiseClick}></cx-icon-button></cx-button-group><cx-input data-testid="cx-asset-link-format-rotation" value=${this.invalidValue ? "" : this.value.toString()} placeholder="0" type="number" min="-360" max="360" ?disabled=${this.loading} style=${M({
1423
1003
  flex: "none",
1424
1004
  width: "80px"
1425
- })}
1426
- @cx-input=${this.handleRotationChange}
1427
- step="1"
1428
- ></cx-input>
1429
- <cx-button
1430
- data-testid="cx-asset-link-format-rotation-apply"
1431
- variant="primary"
1432
- ?disabled=${this.value === 360 || this.value === -360 || this.invalidValue}
1433
- ?loading=${this.loading}
1434
- @click=${this.handleApply}
1435
- >
1436
- ${this.localize.term("apply")}
1437
- </cx-button>
1438
- </cx-space>
1439
- </cx-details>
1440
- `;
1005
+ })} @cx-input=${this.handleRotationChange} step="1"></cx-input><cx-button data-testid="cx-asset-link-format-rotation-apply" variant="primary" ?disabled=${this.value === 360 || this.value === -360 || this.invalidValue} ?loading=${this.loading} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
1441
1006
  }
1442
1007
  };
1443
1008
  R.styles = [E, Mt];
@@ -1471,11 +1036,7 @@ V([
1471
1036
  R = V([
1472
1037
  N("cx-asset-link-format-rotation")
1473
1038
  ], R);
1474
- const Ht = D`
1475
- cx-details::part(base) {
1476
- border-bottom-width: 0;
1477
- }
1478
- `;
1039
+ const Ht = D`cx-details::part(base){border-bottom-width:0}`;
1479
1040
  var Wt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, Z = (t, e, i, s) => {
1480
1041
  for (var a = s > 1 ? void 0 : s ? Ft(e, i) : e, h = t.length - 1, r; h >= 0; h--)
1481
1042
  (r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
@@ -1507,41 +1068,7 @@ let P = class extends F {
1507
1068
  t.target !== this.base && t.stopPropagation();
1508
1069
  }
1509
1070
  render() {
1510
- return b`
1511
- <cx-details
1512
- class="details"
1513
- ?open=${this.open}
1514
- @cx-show=${this.onShowDetails}
1515
- @cx-hide=${this.onHideDetails}
1516
- >
1517
- <cx-space slot="summary" align-items="center">
1518
- <div class="details__summary__icon">
1519
- <div part="icon">
1520
- <cx-icon name="short_text"></cx-icon>
1521
- </div>
1522
- </div>
1523
- <cx-typography variant="body2">
1524
- ${this.localize.term("metadata")}
1525
- </cx-typography>
1526
- </cx-space>
1527
- <cx-space spacing="small">
1528
- <cx-tooltip
1529
- data-testid="cx-asset-link-format-metadata-tooltip"
1530
- content=${this.localize.term("metadataHelpText")}
1531
- hoist
1532
- >
1533
- <cx-checkbox
1534
- data-testid="cx-asset-link-format-metadata"
1535
- class="details__checkbox"
1536
- ?checked=${this.value}
1537
- @cx-change=${this.handleApply}
1538
- >
1539
- ${this.localize.term("preserveMetadata")}
1540
- </cx-checkbox>
1541
- </cx-tooltip>
1542
- </cx-space>
1543
- </cx-details>
1544
- `;
1071
+ return b`<cx-details class="details" ?open=${this.open} @cx-show=${this.onShowDetails} @cx-hide=${this.onHideDetails}><cx-space slot="summary" align-items="center"><div class="details__summary__icon"><div part="icon"><cx-icon name="short_text"></cx-icon></div></div><cx-typography variant="body2">${this.localize.term("metadata")}</cx-typography></cx-space><cx-space spacing="small"><cx-tooltip data-testid="cx-asset-link-format-metadata-tooltip" content=${this.localize.term("metadataHelpText")} hoist><cx-checkbox data-testid="cx-asset-link-format-metadata" class="details__checkbox" ?checked=${this.value} @cx-change=${this.handleApply}>${this.localize.term("preserveMetadata")}</cx-checkbox></cx-tooltip></cx-space></cx-details>`;
1545
1072
  }
1546
1073
  };
1547
1074
  P.styles = [E, Ht];
@@ -2398,119 +1925,14 @@ let p = class extends F {
2398
1925
  });
2399
1926
  }
2400
1927
  render() {
2401
- return b`<div
2402
- class="asset-link-format"
2403
- @cx-show=${this.onDetailsShow}
2404
- @cx-hide=${this.onDetailsHide}
2405
- >
2406
- ${G(
1928
+ return b`<div class="asset-link-format" @cx-show=${this.onDetailsShow} @cx-hide=${this.onDetailsHide}>${G(
2407
1929
  !this.hideHeader,
2408
- () => b`
2409
- <cx-space
2410
- class="asset-link-format__section-header"
2411
- direction="horizontal"
2412
- spacing="small"
2413
- align-items="center"
2414
- justify-content="space-between"
2415
- >
2416
- <cx-typography variant="body3">
2417
- ${this.localize.term("transformations")}
2418
- </cx-typography>
2419
- <cx-button
2420
- class="asset-link-format__undo"
2421
- variant="custom"
2422
- ?disabled=${this.transformations.length === 0 || this.frozenIndex !== void 0 && this.frozenIndex >= this.transformations.length - 1}
2423
- @click=${this.handleUndo}
2424
- >
2425
- ${this.localize.term("undo")}
2426
- </cx-button>
2427
- </cx-space>
2428
- `,
1930
+ () => b`<cx-space class="asset-link-format__section-header" direction="horizontal" spacing="small" align-items="center" justify-content="space-between"><cx-typography variant="body3">${this.localize.term("transformations")}</cx-typography><cx-button class="asset-link-format__undo" variant="custom" ?disabled=${this.transformations.length === 0 || this.frozenIndex !== void 0 && this.frozenIndex >= this.transformations.length - 1} @click=${this.handleUndo}>${this.localize.term("undo")}</cx-button></cx-space>`,
2429
1931
  () => lt
2430
- )}
2431
- <cx-asset-link-format-proxy
2432
- class="asset-link-format__details"
2433
- value=${this.selectedProxy || this.proxies?.[0]?.id || ""}
2434
- ?open=${this.activeSetting === "cx-asset-link-format-proxy"}
2435
- .items=${this.formats}
2436
- ?loading=${this.loading && this.lastAction === c.Proxy}
2437
- @cx-asset-link-format-proxy-change=${this.onProxyChange}
2438
- ></cx-asset-link-format-proxy>
2439
- <cx-asset-link-format-crop
2440
- class="asset-link-format__details"
2441
- ?open=${this.activeSetting === "cx-asset-link-format-crop"}
2442
- ?disabled-apply=${this.disabledCropApply}
2443
- ?loading=${this.loading && this.lastAction === c.Crop}
2444
- ?keep-aspect-ratio=${this.cropSize.keepAspectRatio}
2445
- focus-mode=${this.cropSize.focusMode}
2446
- crop-mode=${this.cropSize.cropMode}
2447
- width=${this.cropSize.width}
2448
- height=${this.cropSize.height}
2449
- max-width=${this.lastResizeSize[o.Pixel].width}
2450
- max-height=${this.lastResizeSize[o.Pixel].height}
2451
- percentage-width=${this.cropSize.percentageWidth}
2452
- percentage-height=${this.cropSize.percentageHeight}
2453
- ratio-width=${this.cropSize.ratioWidth}
2454
- ratio-height=${this.cropSize.ratioHeight}
2455
- unit=${this.cropSize.unit}
2456
- .lastAppliedSetting=${this.lastCropSize}
2457
- .cropModes=${this.cropModes}
2458
- .focusModes=${this.focusModes}
2459
- @cx-asset-link-format-crop-mode-change=${this.onCropModeChange}
2460
- @cx-asset-link-format-crop-focus-mode-change=${this.onCropFocusModeChange}
2461
- @cx-asset-link-format-crop-change=${this.onCropChange}
2462
- @cx-asset-link-format-crop-changed=${this.onCropChanged}
2463
- @cx-asset-link-format-crop-apply=${this.onCropApply}
2464
- ></cx-asset-link-format-crop>
2465
- <cx-asset-link-format-resize
2466
- class="asset-link-format__details"
2467
- ?open=${this.activeSetting === "cx-asset-link-format-resize"}
2468
- ?loading=${this.loading && this.lastAction === c.Resize}
2469
- ?keep-aspect-ratio=${this.resizeSize.keepAspectRatio}
2470
- width=${this.resizeSize.width}
2471
- height=${this.resizeSize.height}
2472
- max-width=${this.imageSize.width}
2473
- max-height=${this.imageSize.height}
2474
- ratio-width=${this.resizeSize.ratioWidth}
2475
- ratio-height=${this.resizeSize.ratioHeight}
2476
- unit=${this.resizeSize.unit}
2477
- .lastAppliedSetting=${this.lastResizeSize}
2478
- @cx-asset-link-format-resize-change=${this.onResizeChange}
2479
- @cx-asset-link-format-resize-apply=${this.onResizeApply}
2480
- ></cx-asset-link-format-resize>
2481
- <cx-asset-link-format-rotation
2482
- class="asset-link-format__details"
2483
- ?loading=${this.loading && this.lastAction === c.Rotate}
2484
- ?open=${this.activeSetting === "cx-asset-link-format-rotation"}
2485
- value=${this.rotation}
2486
- @cx-asset-link-format-rotation-change=${this.onRotationChange}
2487
- @cx-asset-link-format-rotation-apply=${this.onRotationApply}
2488
- ></cx-asset-link-format-rotation>
2489
- <cx-asset-link-format-quality
2490
- class="asset-link-format__details"
2491
- ?loading=${this.loading && this.lastAction === c.Quality}
2492
- ?open=${this.activeSetting === "cx-asset-link-format-quality"}
2493
- value=${this.selectedFormat?.quality ?? 100}
2494
- @cx-asset-link-format-quality-change=${this.onQualityChange}
2495
- ></cx-asset-link-format-quality>
2496
- <cx-asset-link-format-metadata
2497
- class="asset-link-format__details"
2498
- ?open=${this.activeSetting === "cx-asset-link-format-metadata"}
2499
- .value=${this.selectedFormat?.keepMetadata ?? !1}
2500
- @cx-asset-link-format-metadata-change=${this.onMetadataChange}
2501
- >
2502
- </cx-asset-link-format-metadata>
2503
- ${G(
1932
+ )}<cx-asset-link-format-proxy class="asset-link-format__details" value=${this.selectedProxy || this.proxies?.[0]?.id || ""} ?open=${this.activeSetting === "cx-asset-link-format-proxy"} .items=${this.formats} ?loading=${this.loading && this.lastAction === c.Proxy} @cx-asset-link-format-proxy-change=${this.onProxyChange}></cx-asset-link-format-proxy><cx-asset-link-format-crop class="asset-link-format__details" ?open=${this.activeSetting === "cx-asset-link-format-crop"} ?disabled-apply=${this.disabledCropApply} ?loading=${this.loading && this.lastAction === c.Crop} ?keep-aspect-ratio=${this.cropSize.keepAspectRatio} focus-mode=${this.cropSize.focusMode} crop-mode=${this.cropSize.cropMode} width=${this.cropSize.width} height=${this.cropSize.height} max-width=${this.lastResizeSize[o.Pixel].width} max-height=${this.lastResizeSize[o.Pixel].height} percentage-width=${this.cropSize.percentageWidth} percentage-height=${this.cropSize.percentageHeight} ratio-width=${this.cropSize.ratioWidth} ratio-height=${this.cropSize.ratioHeight} unit=${this.cropSize.unit} .lastAppliedSetting=${this.lastCropSize} .cropModes=${this.cropModes} .focusModes=${this.focusModes} @cx-asset-link-format-crop-mode-change=${this.onCropModeChange} @cx-asset-link-format-crop-focus-mode-change=${this.onCropFocusModeChange} @cx-asset-link-format-crop-change=${this.onCropChange} @cx-asset-link-format-crop-changed=${this.onCropChanged} @cx-asset-link-format-crop-apply=${this.onCropApply}></cx-asset-link-format-crop><cx-asset-link-format-resize class="asset-link-format__details" ?open=${this.activeSetting === "cx-asset-link-format-resize"} ?loading=${this.loading && this.lastAction === c.Resize} ?keep-aspect-ratio=${this.resizeSize.keepAspectRatio} width=${this.resizeSize.width} height=${this.resizeSize.height} max-width=${this.imageSize.width} max-height=${this.imageSize.height} ratio-width=${this.resizeSize.ratioWidth} ratio-height=${this.resizeSize.ratioHeight} unit=${this.resizeSize.unit} .lastAppliedSetting=${this.lastResizeSize} @cx-asset-link-format-resize-change=${this.onResizeChange} @cx-asset-link-format-resize-apply=${this.onResizeApply}></cx-asset-link-format-resize><cx-asset-link-format-rotation class="asset-link-format__details" ?loading=${this.loading && this.lastAction === c.Rotate} ?open=${this.activeSetting === "cx-asset-link-format-rotation"} value=${this.rotation} @cx-asset-link-format-rotation-change=${this.onRotationChange} @cx-asset-link-format-rotation-apply=${this.onRotationApply}></cx-asset-link-format-rotation><cx-asset-link-format-quality class="asset-link-format__details" ?loading=${this.loading && this.lastAction === c.Quality} ?open=${this.activeSetting === "cx-asset-link-format-quality"} value=${this.selectedFormat?.quality ?? 100} @cx-asset-link-format-quality-change=${this.onQualityChange}></cx-asset-link-format-quality><cx-asset-link-format-metadata class="asset-link-format__details" ?open=${this.activeSetting === "cx-asset-link-format-metadata"} .value=${this.selectedFormat?.keepMetadata ?? !1} @cx-asset-link-format-metadata-change=${this.onMetadataChange}></cx-asset-link-format-metadata>${G(
2504
1933
  this.useCustomExtension,
2505
- () => b`
2506
- <cx-asset-link-format-extension
2507
- .items=${this.extensions}
2508
- value=${this.selectedFormat?.extension ?? ""}
2509
- @cx-asset-link-format-extension-change=${this.onExtensionChange}
2510
- ></cx-asset-link-format-extension>
2511
- `
2512
- )}
2513
- </div>`;
1934
+ () => b`<cx-asset-link-format-extension .items=${this.extensions} value=${this.selectedFormat?.extension ?? ""} @cx-asset-link-format-extension-change=${this.onExtensionChange}></cx-asset-link-format-extension>`
1935
+ )}</div>`;
2514
1936
  }
2515
1937
  };
2516
1938
  p.styles = [E, ut];