@orangelogic/design-system 2.145.0 → 2.147.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 (116) hide show
  1. package/library/chunks/{asset-link-format.D6XVEha7.js → asset-link-format.DyUDG8er.js} +882 -783
  2. package/library/chunks/{button.Bx7AnUu4.js → button.W0tW1LJ-.js} +1 -1
  3. package/library/chunks/{color-swatch-group.DORzYTrn.js → color-swatch-group.BQYOjoiA.js} +1571 -1529
  4. package/library/chunks/{color-swatch.Pczcitrc.js → color-swatch.B7X9wSl2.js} +1 -1
  5. package/library/chunks/{confirm-popover.DLb5agj9.js → confirm-popover.DWLFTk2n.js} +3 -3
  6. package/library/chunks/{dialog.B1uHEUsi.js → dialog.yZCtJRtl.js} +2 -2
  7. package/library/chunks/{document-viewer.CMHuC2Di.js → document-viewer.Cr-tkwYo.js} +5 -5
  8. package/library/chunks/{dot-pagination.171qk-p2.js → dot-pagination.C8dxu87e.js} +1 -1
  9. package/library/chunks/{folder-select.COFTAu2f.js → folder-select.CLDy4FKy.js} +4 -4
  10. package/library/chunks/{header.DP4ZGEwN.js → header.BJnsijee.js} +1 -1
  11. package/library/chunks/{i18n.DYXys45m.js → i18n.D07sG_CU.js} +2 -1
  12. package/library/chunks/{icon-button.B0L-_zT9.js → icon-button.CaUkGny9.js} +1 -1
  13. package/library/chunks/{iframe._3_Z5IJc.js → iframe.Bj3JzA9b.js} +1 -1
  14. package/library/chunks/{image.DVbY2O89.js → image.DaYfKRf4.js} +1 -1
  15. package/library/chunks/{image.BzmclWBR.js → image.QVlPFadX.js} +1 -1
  16. package/library/chunks/{input.CSI9KLz7.js → input.CtpPKmen.js} +1 -1
  17. package/library/chunks/{number.B4PQLJIg.js → number.CtCaI0T_.js} +23 -17
  18. package/library/chunks/{option.BweUpygr.js → option.DoCfNbP9.js} +1 -1
  19. package/library/chunks/{pagination.CyY982g0.js → pagination.B0VIa8Pm.js} +5 -5
  20. package/library/chunks/{tab-group.BJImZf-n.js → tab-group.CRIY9Wby.js} +3 -3
  21. package/library/chunks/{time.BSmpFe2G.js → time.DWfbnPnM.js} +1 -1
  22. package/library/chunks/transformation.DGzjBg6V.js +163 -0
  23. package/library/chunks/{tree.CvxvKWUm.js → tree.uSEgW--4.js} +1 -1
  24. package/library/components/alert.js +2 -2
  25. package/library/components/asset-link-format.js +5 -5
  26. package/library/components/atoms.js +13 -13
  27. package/library/components/audio.js +3 -3
  28. package/library/components/border-input-group.js +2 -2
  29. package/library/components/breadcrumb.js +1 -1
  30. package/library/components/button.js +2 -2
  31. package/library/components/color-picker.js +3 -3
  32. package/library/components/color-swatch-group.js +3 -3
  33. package/library/components/color-swatch.js +2 -2
  34. package/library/components/confirm-popover.js +4 -4
  35. package/library/components/copy-button.js +1 -1
  36. package/library/components/corner-position-input-group.js +3 -3
  37. package/library/components/cropper.js +2 -2
  38. package/library/components/date-calendar.js +1 -1
  39. package/library/components/details.js +1 -1
  40. package/library/components/dialog.js +3 -3
  41. package/library/components/document-viewer.js +3 -3
  42. package/library/components/dot-pagination.js +2 -2
  43. package/library/components/drawer.js +2 -2
  44. package/library/components/dropdown.js +2 -2
  45. package/library/components/dynamic-select.js +4 -4
  46. package/library/components/e-chart.js +1 -1
  47. package/library/components/element-clamp.js +2 -2
  48. package/library/components/file-on-demand.js +10 -10
  49. package/library/components/folder-select.js +4 -4
  50. package/library/components/format-bytes.js +1 -1
  51. package/library/components/format-date.js +1 -1
  52. package/library/components/format-number.js +1 -1
  53. package/library/components/format-time.js +2 -2
  54. package/library/components/header.js +2 -2
  55. package/library/components/icon-button.js +2 -2
  56. package/library/components/iframe.js +2 -2
  57. package/library/components/image-comparer.js +1 -1
  58. package/library/components/image.js +2 -2
  59. package/library/components/input.js +2 -2
  60. package/library/components/line-clamp.js +1 -1
  61. package/library/components/masonry.js +2 -2
  62. package/library/components/menu-item.js +1 -1
  63. package/library/components/menu.js +1 -1
  64. package/library/components/molecules.js +3 -3
  65. package/library/components/option.js +2 -2
  66. package/library/components/organisms.js +2 -2
  67. package/library/components/padding-input-group.js +1 -1
  68. package/library/components/pagination.js +6 -6
  69. package/library/components/popup.js +1 -1
  70. package/library/components/position-picker.js +1 -1
  71. package/library/components/progress-bar.js +1 -1
  72. package/library/components/progress-ring.js +1 -1
  73. package/library/components/range.js +1 -1
  74. package/library/components/rating.js +1 -1
  75. package/library/components/relative-time.js +1 -1
  76. package/library/components/select.js +2 -2
  77. package/library/components/shadow-input-group.js +1 -1
  78. package/library/components/share-option-list.js +1 -1
  79. package/library/components/sidebar.js +1 -1
  80. package/library/components/size-input-group.js +3 -3
  81. package/library/components/spinner.js +1 -1
  82. package/library/components/split-panel.js +1 -1
  83. package/library/components/tab-group.js +4 -4
  84. package/library/components/tab.js +2 -2
  85. package/library/components/tag.js +2 -2
  86. package/library/components/tooltip.js +1 -1
  87. package/library/components/tree-item.js +2 -2
  88. package/library/components/tree.js +2 -2
  89. package/library/components/typeface.js +2 -2
  90. package/library/components/types.js +9318 -9216
  91. package/library/components/video.js +2 -2
  92. package/library/css/ol-base.css +6 -6
  93. package/library/package.json +1 -1
  94. package/library/packages/events/src/cx-faceted-filter-remove.d.ts +9 -0
  95. package/library/packages/events/src/cx-table-applied-filter-remove.d.ts +9 -0
  96. package/library/packages/events/src/events.d.ts +2 -0
  97. package/library/packages/hybrid/table-core/src/table/styles/table-clickable-cell.styles.d.ts +3 -1
  98. package/library/packages/hybrid/table-core/src/table/table.d.ts +13 -0
  99. package/library/packages/molecules/src/faceted-filter/faceted-filter.d.ts +13 -1
  100. package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +4 -0
  101. package/library/packages/molecules/src/search-box/search-box.d.ts +7 -1
  102. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +12 -0
  103. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +8 -0
  104. package/library/packages/organisms/src/content-builder/configs/search-box.d.ts +2 -2
  105. package/library/packages/organisms/src/dam-custom-toolbar-buttons-editor/dam-custom-toolbar-buttons-editor.d.ts +12 -0
  106. package/library/packages/services/src/api/cms5/cms5.d.ts +7 -0
  107. package/library/packages/types/src/asset-link-format.d.ts +2 -0
  108. package/library/packages/types/src/dam-view.d.ts +23 -0
  109. package/library/packages/types/src/faceted-filter.d.ts +4 -0
  110. package/library/packages/types/src/search-box.d.ts +1 -0
  111. package/library/packages/types/src/table.d.ts +3 -0
  112. package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
  113. package/library/react-web-component.d.ts +8 -4
  114. package/library/utils.js +5 -5
  115. package/package.json +1 -1
  116. package/library/chunks/transformation.c-RS37zA.js +0 -151
@@ -1,151 +0,0 @@
1
- import { T as r } from "./asset-link-format.QzzboHHE.js";
2
- function m({
3
- asset: k,
4
- baseUrl: h,
5
- extension: y,
6
- options: f,
7
- parameters: c,
8
- transformations: l,
9
- useSession: _ = ""
10
- }) {
11
- if (h == null)
12
- return "";
13
- let a = h;
14
- const v = l?.findLast(
15
- (i) => i.key === r.Quality
16
- );
17
- if (v && (l = [
18
- ...l?.filter(
19
- (i) => i.key !== r.Quality
20
- ) || [],
21
- v
22
- ]), l) {
23
- const i = [];
24
- for (let o = 0; o < l.length; o++) {
25
- const t = l[o];
26
- if (t.key === r.Rotate) {
27
- let e = t.value.rotation ?? 0;
28
- for (; l[o + 1]?.key === r.Rotate; )
29
- o++, e += l[o].value.rotation ?? 0;
30
- e !== 0 && i.push({ key: r.Rotate, value: { rotation: e } });
31
- } else
32
- i.push(t);
33
- }
34
- l = i;
35
- }
36
- l && l.length > 0 && (a += "/t/"), l?.forEach(({ key: i, value: o }) => {
37
- if (i === r.Resize) {
38
- const t = [
39
- ...[
40
- {
41
- key: "re_w_",
42
- value: Math.round(o.width ?? 0)
43
- },
44
- {
45
- key: "re_h_",
46
- value: Math.round(o.height ?? 0)
47
- }
48
- ].filter((e) => e.value !== void 0).map((e) => ({
49
- key: e.key,
50
- value: Math.round(Number(e.value))
51
- })),
52
- {
53
- key: "re_rm_",
54
- value: "stretch"
55
- }
56
- ];
57
- t.forEach(({ key: e, value: u }, n) => {
58
- a += `${e}${u}${n < t.length - 1 ? "," : ""}`;
59
- }), a += "/";
60
- }
61
- if (i === r.Crop) {
62
- const t = [
63
- ...[
64
- {
65
- key: "c_",
66
- value: o.mode
67
- },
68
- ...o.disabledSize ? [] : [
69
- {
70
- key: "c_w_",
71
- value: Math.round(o.width ?? 0)
72
- },
73
- {
74
- key: "c_h_",
75
- value: Math.round(o.height ?? 0)
76
- },
77
- {
78
- key: "c_x_",
79
- value: Math.round(o.x ?? 0) === 0 && f?.omitZeroXY ? void 0 : Math.round(o.x ?? 0)
80
- },
81
- {
82
- key: "c_y_",
83
- value: Math.round(o.y ?? 0) === 0 && f?.omitZeroXY ? void 0 : Math.round(o.y ?? 0)
84
- }
85
- ],
86
- ...o.focusMode && o.focusMode !== "manual" ? [
87
- {
88
- key: o.isFocusModeAuto ? "acm_" : "c_g_",
89
- value: o.focusMode
90
- }
91
- ] : []
92
- ].filter((e) => e.value !== void 0 && e.value !== null).map((e) => ({
93
- key: e.key,
94
- value: e.value
95
- })),
96
- {
97
- key: "c_whu_",
98
- value: "pixel"
99
- }
100
- ];
101
- t.forEach(({ key: e, value: u }, n) => {
102
- const s = ["c_w_", "c_h_", "c_x_", "c_y_"].includes(e);
103
- a += `${e}${s ? Math.round(Number(u)) : u}${n < t.length - 1 ? "," : ""}`;
104
- }), a += "/";
105
- }
106
- if (i === r.Rotate && ([
107
- {
108
- key: "r_a_",
109
- value: o.rotation
110
- }
111
- ].filter((e) => e.value !== void 0).map((e) => ({
112
- key: e.key,
113
- value: Math.round(Number(e.value))
114
- })).forEach(({ key: e, value: u }) => {
115
- a += `${e}${u}`;
116
- }), a += "/"), i === r.Quality) {
117
- const t = [
118
- {
119
- key: "q_level_",
120
- value: o.quality
121
- }
122
- ].filter((e) => e.value !== void 0).map((e) => ({
123
- key: e.key,
124
- value: Math.round(Number(e.value))
125
- }));
126
- t.forEach(({ key: e, value: u }, n) => {
127
- a += `${e}${u}${n < t.length - 1 ? "," : ""}`;
128
- }), a += "/";
129
- }
130
- if (i === r.Metadata) {
131
- const t = [
132
- {
133
- key: "fl_keep_metadata",
134
- value: o.keepMetadata
135
- }
136
- ].filter((e) => e.value !== void 0).map((e) => ({ key: e.key, value: e.value }));
137
- t.forEach(({ key: e }, u) => {
138
- a += `${e}${u < t.length - 1 ? "," : ""}`;
139
- }), a += "/";
140
- }
141
- }), y && (a += `${k?.identifier ?? crypto.randomUUID()}${y}`);
142
- const d = [];
143
- return c && c.length > 0 && c.forEach(({ key: i, value: o }) => {
144
- d.push(
145
- `${encodeURIComponent(i.trim())}=${encodeURIComponent(o.trim())}`
146
- );
147
- }), h && _ && d.push(`UseSession=${encodeURIComponent(_)}`), d.length > 0 && (a += `?${d.join("&")}`), a.endsWith("/") && (a = a.slice(0, -1)), a;
148
- }
149
- export {
150
- m as b
151
- };