@orangelogic/design-system 3.74.0 → 3.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/chunks/{asset-link-format.H-8Ub7b2.js → asset-link-format.PQt5Mb9Q.js} +84 -83
- package/library/chunks/{block-width.C-oaiP0S.js → block-width.DM8nhLsL.js} +4 -4
- package/library/chunks/{config-manager.BnX64fGI.js → config-manager.D5mVHTEg.js} +67 -37
- package/library/chunks/{configs-controller.DIDTvuY-.js → configs-controller.C8ccAQpx.js} +2 -2
- package/library/chunks/{endpoints.jOHOmF_t.js → endpoints.CqXqfyiN.js} +1 -1
- package/library/chunks/{folder-select.2sj5IssM.js → folder-select.Cc9PkoVE.js} +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +4 -4
- package/library/components/folder-select.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/organisms.js +1 -1
- package/library/components/types.js +11409 -11403
- package/library/package.json +1 -1
- package/library/packages/events/src/cx-content-builder-translatable-value-change.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +8 -2
- package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +8 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +1 -1
- package/library/packages/services/src/api/endpoints.d.ts +2 -1
- package/package.json +1 -1
- package/library/chunks/{src.B1UeMiG_.js → src.D2a7u_Hs.js} +1 -1
|
@@ -26,22 +26,22 @@ import { t as w } from "./select.BivTPBtv.js";
|
|
|
26
26
|
import { t as T } from "./details.BacO3ROq.js";
|
|
27
27
|
import { t as se } from "./divider.CqSNZCU8.js";
|
|
28
28
|
import { i as E, n as D, r as O } from "./asset-link-format.DhdgEsA0.js";
|
|
29
|
-
import { applyTransformationsToUrl as
|
|
30
|
-
import { t as
|
|
29
|
+
import { applyTransformationsToUrl as ce, buildAssetSrcset as le, buildTransformationString as k, resolveAutoFormat as ue, resolveAutoMaxWidth as de } from "../utils.js";
|
|
30
|
+
import { t as fe } from "./v4.JyXW8GUB.js";
|
|
31
31
|
import "./cropper.D5Vh9xD_.js";
|
|
32
|
-
import { t as
|
|
33
|
-
import { a as
|
|
34
|
-
import { t as
|
|
32
|
+
import { t as pe } from "./_baseUniq.h_pGICPH.js";
|
|
33
|
+
import { a as me, f as A, n as he, o as ge, r as _e, t as ve, u as ye } from "./endpoints.CqXqfyiN.js";
|
|
34
|
+
import { t as j } from "./position-picker.DwDC9gDl.js";
|
|
35
35
|
//#region ../../node_modules/lodash-es/uniq.js
|
|
36
|
-
function
|
|
37
|
-
return e && e.length ?
|
|
36
|
+
function be(e) {
|
|
37
|
+
return e && e.length ? pe(e) : [];
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region ../../packages/services/src/api/asset/asset.utils.ts
|
|
41
|
-
function
|
|
41
|
+
function M(e) {
|
|
42
42
|
return typeof e == "object" && !!e && "URI" in e;
|
|
43
43
|
}
|
|
44
|
-
var
|
|
44
|
+
var xe = {
|
|
45
45
|
artist: "Artist",
|
|
46
46
|
color: "Color",
|
|
47
47
|
createDate: "CreateDate",
|
|
@@ -63,34 +63,34 @@ var be = {
|
|
|
63
63
|
systemIdentifier: "SystemIdentifier",
|
|
64
64
|
text: "Text",
|
|
65
65
|
title: "Title"
|
|
66
|
-
},
|
|
66
|
+
}, Se = /* @__PURE__ */ new Set([
|
|
67
67
|
"mediaDate",
|
|
68
68
|
"createDate",
|
|
69
69
|
"editDate"
|
|
70
70
|
]);
|
|
71
|
-
function
|
|
71
|
+
function N(e) {
|
|
72
72
|
return !/[\s&+/*"\\:(),'<>~|[\]{}]/.test(e) && !/^(?:OR|AND|NOT)$/.test(e) ? e : `"${e.replace(/\\/g, "\\\\").replace(/"/g, "\\\"")}"`;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
let n = (Array.isArray(t) ? t : [t]).map((t) => `${e}:${
|
|
74
|
+
function Ce(e, t) {
|
|
75
|
+
let n = (Array.isArray(t) ? t : [t]).map((t) => `${e}:${N(t)}`);
|
|
76
76
|
return n.length > 1 ? `(${n.join(" OR ")})` : n[0] ?? "";
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function we(e, t) {
|
|
79
79
|
return (Array.isArray(t) ? t : [t]).map((t) => `${e}${t.operator}${t.value}`).join(" AND ");
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Te(e) {
|
|
82
82
|
let t = [];
|
|
83
83
|
for (let n of Object.keys(e)) {
|
|
84
84
|
let r = n, i = e[r];
|
|
85
85
|
if (i == null) continue;
|
|
86
86
|
if (r === "custom") {
|
|
87
|
-
for (let [e, n] of Object.entries(i)) t.push(
|
|
87
|
+
for (let [e, n] of Object.entries(i)) t.push(Ce(e, n));
|
|
88
88
|
continue;
|
|
89
89
|
}
|
|
90
|
-
let a =
|
|
90
|
+
let a = xe[r];
|
|
91
91
|
if (a) {
|
|
92
|
-
if (
|
|
93
|
-
t.push(
|
|
92
|
+
if (Se.has(r)) {
|
|
93
|
+
t.push(we(a, i));
|
|
94
94
|
continue;
|
|
95
95
|
}
|
|
96
96
|
if (r === "color") {
|
|
@@ -100,41 +100,41 @@ function we(e) {
|
|
|
100
100
|
if (r === "parentFolderIdentifier") {
|
|
101
101
|
let e = Array.isArray(i) ? i : [i];
|
|
102
102
|
if (e.length === 0) continue;
|
|
103
|
-
let n = [...e.map((e) => `ParentFolderIdentifier:${
|
|
103
|
+
let n = [...e.map((e) => `ParentFolderIdentifier:${N(String(e))}`), ...e.map((e) => `ParentAlbumIdentifier:${N(String(e))}`)];
|
|
104
104
|
t.push(`(${n.join(" OR ")})`);
|
|
105
105
|
continue;
|
|
106
106
|
}
|
|
107
|
-
t.push(
|
|
107
|
+
t.push(Ce(a, i));
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
return t.join(" AND ");
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
if ("and" in e) return e.and.map(
|
|
112
|
+
function P(e) {
|
|
113
|
+
if ("and" in e) return e.and.map(P).filter(Boolean).join(" AND ");
|
|
114
114
|
if ("or" in e) {
|
|
115
|
-
let t = e.or.map(
|
|
115
|
+
let t = e.or.map(P).filter(Boolean);
|
|
116
116
|
return t.length > 1 ? `(${t.join(" OR ")})` : t[0] ?? "";
|
|
117
117
|
}
|
|
118
118
|
if ("not" in e) {
|
|
119
|
-
let t =
|
|
119
|
+
let t = P(e.not);
|
|
120
120
|
return t ? `NOT (${t})` : "";
|
|
121
121
|
}
|
|
122
|
-
return
|
|
122
|
+
return Te(e);
|
|
123
123
|
}
|
|
124
124
|
//#endregion
|
|
125
125
|
//#region ../../packages/services/src/api/asset/asset.ts
|
|
126
|
-
var
|
|
126
|
+
var Ee = "CoreField.LargeSizePreview", F = "CoreField.DocType", I = "Document.Title", De = "Document.CaptionLong", L = "Document.FileExtension", R = "CoreField.FileSize", z = "CoreField.Identifier", Oe = "CoreField.MaxHeight", ke = "CoreField.MaxWidth", B = "Document.RecordID", V = "CoreField.DocSubType", Ae = "CoreField.TitleWithFallback", H = "CoreField.OriginalFileName", je = "__width", Me = "__height", Ne = "CoreField.OriginalPreview", Pe = "Document.DocSubType", Fe = "Document.InPoint", Ie = "Document.OutPoint", Le = {
|
|
127
127
|
DEFAULT_VIEW_SIZE: "Document.LargeSizePreview",
|
|
128
128
|
ORIGINAL_VIEW_SIZE: "Document.OriginalPreview"
|
|
129
129
|
}, Re = {
|
|
130
|
-
[
|
|
130
|
+
[Ee]: Le.DEFAULT_VIEW_SIZE,
|
|
131
131
|
[Ne]: Le.ORIGINAL_VIEW_SIZE
|
|
132
132
|
}, ze = Object.fromEntries(Object.entries(Re).map(([e, t]) => [t, e]));
|
|
133
133
|
function Be(e) {
|
|
134
134
|
return Re[e] ?? e;
|
|
135
135
|
}
|
|
136
136
|
function Ve(e) {
|
|
137
|
-
return e === "CoreField.TitleWithFallback" ? [
|
|
137
|
+
return e === "CoreField.TitleWithFallback" ? [I, H] : [Be(e)];
|
|
138
138
|
}
|
|
139
139
|
function He(e) {
|
|
140
140
|
let t = {};
|
|
@@ -147,7 +147,7 @@ function He(e) {
|
|
|
147
147
|
function Ue(e, t, n) {
|
|
148
148
|
e[n] = U(t, n);
|
|
149
149
|
let r = t[n];
|
|
150
|
-
return r != null &&
|
|
150
|
+
return r != null && M(r) && (typeof r.Width == "number" && r.Width > 0 && (e[`${n}${je}`] = String(r.Width)), typeof r.Height == "number" && r.Height > 0 && (e[`${n}${Me}`] = String(r.Height))), e;
|
|
151
151
|
}
|
|
152
152
|
function We(e) {
|
|
153
153
|
let t = new URLSearchParams();
|
|
@@ -161,26 +161,26 @@ async function Ge({ consistency: e, countPerPage: t, fields: n, getPermanentAsse
|
|
|
161
161
|
}, g = {
|
|
162
162
|
Consistency: e || void 0,
|
|
163
163
|
CountPerPage: t,
|
|
164
|
-
Fields:
|
|
164
|
+
Fields: be(p),
|
|
165
165
|
Format: "json",
|
|
166
166
|
GetPermanentAssetsPaths: r || void 0,
|
|
167
167
|
PageNumber: o,
|
|
168
|
-
Query:
|
|
168
|
+
Query: P(s),
|
|
169
169
|
SecurityByPassToken: c || void 0,
|
|
170
170
|
Sort: u || void 0,
|
|
171
171
|
UseSession: f || void 0
|
|
172
172
|
}, _ = i === "POST";
|
|
173
173
|
try {
|
|
174
|
-
return (await
|
|
174
|
+
return (await A.request({
|
|
175
175
|
baseURL: l,
|
|
176
176
|
headers: d ? { Authorization: `Bearer ${d}` } : void 0,
|
|
177
177
|
method: i,
|
|
178
|
-
..._ ? { data: We(g) } : {
|
|
178
|
+
..._ ? { data: a ? g : We(g) } : {
|
|
179
179
|
params: g,
|
|
180
180
|
paramsSerializer: { indexes: null }
|
|
181
181
|
},
|
|
182
182
|
responseType: "json",
|
|
183
|
-
transformResponse: [...Array.isArray(
|
|
183
|
+
transformResponse: [...Array.isArray(A.defaults.transformResponse) ? A.defaults.transformResponse : [], a ? (e) => ({
|
|
184
184
|
items: (e.results?.Items ?? []).map(h),
|
|
185
185
|
sort: e.results?.GlobalInfo?.Sort ?? "",
|
|
186
186
|
totalCount: e.results?.GlobalInfo?.TotalCount ?? 0
|
|
@@ -189,7 +189,7 @@ async function Ge({ consistency: e, countPerPage: t, fields: n, getPermanentAsse
|
|
|
189
189
|
sort: e.APIResponse?.GlobalInfo?.Sort ?? "",
|
|
190
190
|
totalCount: e.APIResponse?.GlobalInfo?.TotalCount ?? 0
|
|
191
191
|
})],
|
|
192
|
-
url: a ?
|
|
192
|
+
url: a ? _ ? ge.SEARCH_ASSETS_POST : ge.SEARCH_ASSETS : ye["4.0"]
|
|
193
193
|
})).data;
|
|
194
194
|
} catch {
|
|
195
195
|
return {
|
|
@@ -201,7 +201,7 @@ async function Ge({ consistency: e, countPerPage: t, fields: n, getPermanentAsse
|
|
|
201
201
|
}
|
|
202
202
|
async function Ke({ assetId: e, extension: t, format: n, siteUrl: r, token: i, transformations: a, useSession: o }) {
|
|
203
203
|
try {
|
|
204
|
-
return (await
|
|
204
|
+
return (await A.request({
|
|
205
205
|
baseURL: r,
|
|
206
206
|
method: "GET",
|
|
207
207
|
params: {
|
|
@@ -213,7 +213,7 @@ async function Ke({ assetId: e, extension: t, format: n, siteUrl: r, token: i, t
|
|
|
213
213
|
UseSession: o || void 0
|
|
214
214
|
},
|
|
215
215
|
timeout: 3e5,
|
|
216
|
-
url:
|
|
216
|
+
url: he.GET_TRANSFORM_ASSET_LINK
|
|
217
217
|
})).data;
|
|
218
218
|
} catch {
|
|
219
219
|
return null;
|
|
@@ -234,15 +234,15 @@ async function Ye({ consistency: e, extraFields: t, getPermanentAssetsPaths: n,
|
|
|
234
234
|
let s = t?.filter((e) => e && typeof e == "string") ?? [], c = [
|
|
235
235
|
...s,
|
|
236
236
|
H,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
237
|
+
I,
|
|
238
|
+
De,
|
|
239
|
+
B
|
|
240
240
|
], l = Je(i, qe), u = await Promise.all(l.map((t) => Ge({
|
|
241
241
|
consistency: e,
|
|
242
242
|
countPerPage: t.length,
|
|
243
243
|
fields: c,
|
|
244
244
|
getPermanentAssetsPaths: n,
|
|
245
|
-
httpMethod:
|
|
245
|
+
httpMethod: "POST",
|
|
246
246
|
isSiteBuilder: r,
|
|
247
247
|
pageNumber: 1,
|
|
248
248
|
query: { recordId: t },
|
|
@@ -253,7 +253,7 @@ async function Ye({ consistency: e, extraFields: t, getPermanentAssetsPaths: n,
|
|
|
253
253
|
facets: [],
|
|
254
254
|
items: u.flatMap((e) => e.items).map((e) => ({
|
|
255
255
|
name: U(e, H),
|
|
256
|
-
recordId: U(e,
|
|
256
|
+
recordId: U(e, B),
|
|
257
257
|
...s.reduce((t, n) => Ue(t, e, n), {})
|
|
258
258
|
})).sort((e, t) => (d.get(e.recordId) ?? Infinity) - (d.get(t.recordId) ?? Infinity)),
|
|
259
259
|
totalCount: u.reduce((e, t) => e + t.totalCount, 0)
|
|
@@ -261,7 +261,7 @@ async function Ye({ consistency: e, extraFields: t, getPermanentAssetsPaths: n,
|
|
|
261
261
|
}
|
|
262
262
|
function U(e, t) {
|
|
263
263
|
let n = e[t];
|
|
264
|
-
return n == null ? "" : typeof n == "string" ? n : typeof n == "number" || typeof n == "boolean" ? String(n) :
|
|
264
|
+
return n == null ? "" : typeof n == "string" ? n : typeof n == "number" || typeof n == "boolean" ? String(n) : M(n) ? n.URI : "";
|
|
265
265
|
}
|
|
266
266
|
async function Xe({ consistency: e, countPerPage: t, directParentFolderIdentifier: n, extraFields: r, getPermanentAssetsPaths: i, isSiteBuilder: a, limitedDocTypes: o, pageNumber: s, parentFolderIdentifier: c, searchTerm: l, securityByPassToken: u, sortOrder: d, token: f }) {
|
|
267
267
|
if (!n && !c) return {
|
|
@@ -280,15 +280,16 @@ async function Xe({ consistency: e, countPerPage: t, directParentFolderIdentifie
|
|
|
280
280
|
fields: [
|
|
281
281
|
...p,
|
|
282
282
|
Ae,
|
|
283
|
-
z,
|
|
284
|
-
I,
|
|
285
|
-
ke,
|
|
286
|
-
B,
|
|
287
283
|
R,
|
|
284
|
+
F,
|
|
288
285
|
V,
|
|
286
|
+
z,
|
|
287
|
+
L,
|
|
288
|
+
B,
|
|
289
289
|
H
|
|
290
290
|
],
|
|
291
291
|
getPermanentAssetsPaths: i,
|
|
292
|
+
httpMethod: "POST",
|
|
292
293
|
isSiteBuilder: a,
|
|
293
294
|
pageNumber: s,
|
|
294
295
|
query: m,
|
|
@@ -299,15 +300,15 @@ async function Xe({ consistency: e, countPerPage: t, directParentFolderIdentifie
|
|
|
299
300
|
return {
|
|
300
301
|
facets: [],
|
|
301
302
|
items: h.items.map((e) => {
|
|
302
|
-
let t = U(e,
|
|
303
|
+
let t = U(e, L);
|
|
303
304
|
t && !t.startsWith(".") && (t = "." + t);
|
|
304
|
-
let n = U(e,
|
|
305
|
+
let n = U(e, B);
|
|
305
306
|
return {
|
|
306
|
-
docSubType: U(e,
|
|
307
|
+
docSubType: U(e, V),
|
|
307
308
|
docType: U(e, "CoreField.DocType") || "",
|
|
308
309
|
extension: t,
|
|
309
310
|
id: n,
|
|
310
|
-
identifier: U(e,
|
|
311
|
+
identifier: U(e, z),
|
|
311
312
|
name: U(e, H),
|
|
312
313
|
recordId: n,
|
|
313
314
|
size: U(e, "CoreField.FileSize") || "0 MB",
|
|
@@ -319,7 +320,7 @@ async function Xe({ consistency: e, countPerPage: t, directParentFolderIdentifie
|
|
|
319
320
|
}
|
|
320
321
|
async function Ze({ autoCropMode: e, cropHeight: t, cropWidth: n, imageUrl: r, useSession: i }) {
|
|
321
322
|
try {
|
|
322
|
-
return (await
|
|
323
|
+
return (await A.request({
|
|
323
324
|
method: "GET",
|
|
324
325
|
params: {
|
|
325
326
|
AutoCropMode: e,
|
|
@@ -330,13 +331,13 @@ async function Ze({ autoCropMode: e, cropHeight: t, cropWidth: n, imageUrl: r, u
|
|
|
330
331
|
},
|
|
331
332
|
responseType: "json",
|
|
332
333
|
timeout: 3e5,
|
|
333
|
-
transformResponse: [...Array.isArray(
|
|
334
|
+
transformResponse: [...Array.isArray(A.defaults.transformResponse) ? A.defaults.transformResponse : [], (e) => ({
|
|
334
335
|
height: e.cropHeight,
|
|
335
336
|
width: e.cropWidth,
|
|
336
337
|
x: e.cropX,
|
|
337
338
|
y: e.cropY
|
|
338
339
|
})],
|
|
339
|
-
url:
|
|
340
|
+
url: he.GET_CROP_ZONE_SUGGESTION
|
|
340
341
|
})).data;
|
|
341
342
|
} catch {
|
|
342
343
|
return null;
|
|
@@ -344,7 +345,7 @@ async function Ze({ autoCropMode: e, cropHeight: t, cropWidth: n, imageUrl: r, u
|
|
|
344
345
|
}
|
|
345
346
|
async function Qe({ assetRecordId: e, isSiteBuilder: t, siteUrl: n, token: r, useSession: i }) {
|
|
346
347
|
try {
|
|
347
|
-
return (await
|
|
348
|
+
return (await A.request({
|
|
348
349
|
baseURL: n,
|
|
349
350
|
method: "GET",
|
|
350
351
|
params: {
|
|
@@ -353,7 +354,7 @@ async function Qe({ assetRecordId: e, isSiteBuilder: t, siteUrl: n, token: r, us
|
|
|
353
354
|
UseSession: i || void 0
|
|
354
355
|
},
|
|
355
356
|
responseType: "json",
|
|
356
|
-
transformResponse: [...Array.isArray(
|
|
357
|
+
transformResponse: [...Array.isArray(A.defaults.transformResponse) ? A.defaults.transformResponse : [], (e) => !e || typeof e != "object" ? [] : e.proxies?.map((e) => ({
|
|
357
358
|
cdnName: e.cdnName,
|
|
358
359
|
extension: e.extension,
|
|
359
360
|
formatHeight: e.formatHeight,
|
|
@@ -364,7 +365,7 @@ async function Qe({ assetRecordId: e, isSiteBuilder: t, siteUrl: n, token: r, us
|
|
|
364
365
|
proxyName: e.proxyName,
|
|
365
366
|
width: e.width
|
|
366
367
|
})) ?? []],
|
|
367
|
-
url: t ?
|
|
368
|
+
url: t ? ge.GET_AVAILABLE_PROXIES : me
|
|
368
369
|
})).data;
|
|
369
370
|
} catch {
|
|
370
371
|
return [];
|
|
@@ -372,17 +373,17 @@ async function Qe({ assetRecordId: e, isSiteBuilder: t, siteUrl: n, token: r, us
|
|
|
372
373
|
}
|
|
373
374
|
async function $e({ siteUrl: e } = {}) {
|
|
374
375
|
try {
|
|
375
|
-
return (await
|
|
376
|
+
return (await A.request({
|
|
376
377
|
baseURL: e,
|
|
377
378
|
method: "GET",
|
|
378
379
|
responseType: "json",
|
|
379
|
-
transformResponse: [...Array.isArray(
|
|
380
|
+
transformResponse: [...Array.isArray(A.defaults.transformResponse) ? A.defaults.transformResponse : [], (e) => !e || typeof e != "object" ? { formatsByDocType: {
|
|
380
381
|
Audio: {},
|
|
381
382
|
Image: {},
|
|
382
383
|
Multimedia: {},
|
|
383
384
|
Video: {}
|
|
384
385
|
} } : { formatsByDocType: e.formatsByDocType ?? {} }],
|
|
385
|
-
url:
|
|
386
|
+
url: ve
|
|
386
387
|
})).data;
|
|
387
388
|
} catch {
|
|
388
389
|
return { formatsByDocType: {} };
|
|
@@ -396,7 +397,7 @@ async function et({ recordIds: e, rightsToCheck: t }) {
|
|
|
396
397
|
invalidObjects: []
|
|
397
398
|
};
|
|
398
399
|
try {
|
|
399
|
-
let { data: n } = await
|
|
400
|
+
let { data: n } = await A.request({
|
|
400
401
|
method: "GET",
|
|
401
402
|
params: {
|
|
402
403
|
RecordIDs: e,
|
|
@@ -404,7 +405,7 @@ async function et({ recordIds: e, rightsToCheck: t }) {
|
|
|
404
405
|
},
|
|
405
406
|
paramsSerializer: { indexes: null },
|
|
406
407
|
responseType: "json",
|
|
407
|
-
url:
|
|
408
|
+
url: _e.GET_AUTHORIZED_OBJECTS
|
|
408
409
|
});
|
|
409
410
|
return n;
|
|
410
411
|
} catch {
|
|
@@ -435,7 +436,7 @@ function ot({ autoFormat: e, buildSrcset: t, docType: n, extension: r, format: i
|
|
|
435
436
|
let c = r?.toLowerCase() ?? "", l = c.startsWith(".") ? c : `.${c}`, u = `path_${W}`, d = (n, r) => {
|
|
436
437
|
let i = a[n];
|
|
437
438
|
if (!i) return;
|
|
438
|
-
let s = a[`${n}${je}`], l = a[`${n}${Me}`], u = e ?
|
|
439
|
+
let s = a[`${n}${je}`], l = a[`${n}${Me}`], u = e ? ce(i, [], {
|
|
439
440
|
autoFormat: !o,
|
|
440
441
|
extension: c,
|
|
441
442
|
format: r
|
|
@@ -444,15 +445,15 @@ function ot({ autoFormat: e, buildSrcset: t, docType: n, extension: r, format: i
|
|
|
444
445
|
maxHeight: l,
|
|
445
446
|
maxWidth: s,
|
|
446
447
|
src: u,
|
|
447
|
-
srcset: t ?
|
|
448
|
+
srcset: t ? le(u, {
|
|
448
449
|
extension: c,
|
|
449
450
|
format: r,
|
|
450
|
-
maxWidth:
|
|
451
|
+
maxWidth: de(o, s)
|
|
451
452
|
}) : ""
|
|
452
453
|
};
|
|
453
454
|
};
|
|
454
455
|
if (!o) {
|
|
455
|
-
let e =
|
|
456
|
+
let e = ue(c, s);
|
|
456
457
|
return d(`path_${e}`, e) ?? d(u, W) ?? {};
|
|
457
458
|
}
|
|
458
459
|
let f = i ? `path_${i}` : void 0;
|
|
@@ -513,7 +514,7 @@ var st = class {
|
|
|
513
514
|
let e = Math.min(this.maxEnd, i.totalCount);
|
|
514
515
|
this.totalCount = e, this.data = Array.from({ length: e }, () => ({
|
|
515
516
|
alt: "",
|
|
516
|
-
id: `temp-${
|
|
517
|
+
id: `temp-${fe()}`,
|
|
517
518
|
name: "",
|
|
518
519
|
src: ""
|
|
519
520
|
}));
|
|
@@ -532,7 +533,7 @@ var st = class {
|
|
|
532
533
|
manualFormat: r,
|
|
533
534
|
size: s.size
|
|
534
535
|
}), f = u, p = d;
|
|
535
|
-
f && a && a.length > 0 && (f =
|
|
536
|
+
f && a && a.length > 0 && (f = ce(f, a), p = ""), this.data[o] = {
|
|
536
537
|
alt: s.name,
|
|
537
538
|
docType: s.docType,
|
|
538
539
|
extension: s.extension,
|
|
@@ -577,7 +578,7 @@ var st = class {
|
|
|
577
578
|
a,
|
|
578
579
|
`path_${W}`,
|
|
579
580
|
`path_${G}`
|
|
580
|
-
].filter((e) => !!e))], s = [
|
|
581
|
+
].filter((e) => !!e))], s = [L, R], c = [...e, F];
|
|
581
582
|
return (await Ye({
|
|
582
583
|
consistency: this.consistency,
|
|
583
584
|
extraFields: [
|
|
@@ -594,16 +595,16 @@ var st = class {
|
|
|
594
595
|
let { maxHeight: r, maxWidth: a, src: o, srcset: s } = ot({
|
|
595
596
|
autoFormat: this.autoFormat,
|
|
596
597
|
buildSrcset: this.buildSrcset,
|
|
597
|
-
docType: e[
|
|
598
|
-
extension: e[
|
|
598
|
+
docType: e[F],
|
|
599
|
+
extension: e[L],
|
|
599
600
|
format: t,
|
|
600
601
|
item: e,
|
|
601
602
|
manualFormat: n,
|
|
602
|
-
size: e[
|
|
603
|
+
size: e[R]
|
|
603
604
|
}), l = o, u = s;
|
|
604
|
-
return l && i && i.length > 0 && (l =
|
|
605
|
+
return l && i && i.length > 0 && (l = ce(l, i), u = ""), {
|
|
605
606
|
alt: e.name,
|
|
606
|
-
docType: e[
|
|
607
|
+
docType: e[F],
|
|
607
608
|
extension: e["Document.FileExtension"] || "",
|
|
608
609
|
id: e.recordId,
|
|
609
610
|
maxHeight: r,
|
|
@@ -699,7 +700,7 @@ var st = class {
|
|
|
699
700
|
"cx-icon-button": p,
|
|
700
701
|
"cx-input": oe,
|
|
701
702
|
"cx-option": S,
|
|
702
|
-
"cx-position-picker":
|
|
703
|
+
"cx-position-picker": j,
|
|
703
704
|
"cx-select": w,
|
|
704
705
|
"cx-space": C,
|
|
705
706
|
"cx-typography": b
|
|
@@ -867,7 +868,7 @@ var st = class {
|
|
|
867
868
|
${m(this.showPositionPicker && this.focusMode === "manual", () => e`<cx-position-picker data-testid="cx-asset-link-format-crop-position" value=${this.position} @cx-change=${this.onPositionChange}></cx-position-picker>`)}<cx-button data-testid="cx-asset-link-format-crop-apply" variant="primary" ?disabled=${this.disabledApply || this.invalidHeight || this.invalidWidth} ?loading=${this.loading} style=${g({ marginLeft: "auto" })} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
|
|
868
869
|
}
|
|
869
870
|
};
|
|
870
|
-
a([c(".details"), o("design:type", T === void 0 ? Object : T)], K.prototype, "base", void 0), a([c("cx-position-picker"), o("design:type",
|
|
871
|
+
a([c(".details"), o("design:type", T === void 0 ? Object : T)], K.prototype, "base", void 0), a([c("cx-position-picker"), o("design:type", j === void 0 ? Object : j)], K.prototype, "positionPicker", void 0), a([r({
|
|
871
872
|
reflect: !0,
|
|
872
873
|
type: Boolean
|
|
873
874
|
}), o("design:type", Boolean)], K.prototype, "open", void 0), a([r({
|
|
@@ -1602,7 +1603,7 @@ var Ct = Q, wt, $ = class extends s {
|
|
|
1602
1603
|
return this.asset ? 0 : this.transformations.findLast((e) => e.key === O.Rotate)?.value.rotation ?? 0;
|
|
1603
1604
|
}
|
|
1604
1605
|
get transformationString() {
|
|
1605
|
-
return
|
|
1606
|
+
return k({
|
|
1606
1607
|
asset: this.asset,
|
|
1607
1608
|
baseUrl: "",
|
|
1608
1609
|
parameters: this.parameters,
|
|
@@ -1723,7 +1724,7 @@ var Ct = Q, wt, $ = class extends s {
|
|
|
1723
1724
|
width: e.width
|
|
1724
1725
|
});
|
|
1725
1726
|
});
|
|
1726
|
-
let t =
|
|
1727
|
+
let t = k({
|
|
1727
1728
|
asset: this.asset,
|
|
1728
1729
|
baseUrl: "",
|
|
1729
1730
|
extension: this.selectedFormat.extension,
|
|
@@ -1785,7 +1786,7 @@ var Ct = Q, wt, $ = class extends s {
|
|
|
1785
1786
|
}
|
|
1786
1787
|
async handleTransformationsChange() {
|
|
1787
1788
|
if (await this.updateComplete, !this.asset) {
|
|
1788
|
-
this.emit("cx-asset-link-format-change", { detail:
|
|
1789
|
+
this.emit("cx-asset-link-format-change", { detail: k({
|
|
1789
1790
|
asset: this.asset,
|
|
1790
1791
|
baseUrl: "",
|
|
1791
1792
|
options: { omitZeroXY: !0 },
|
|
@@ -1916,7 +1917,7 @@ var Ct = Q, wt, $ = class extends s {
|
|
|
1916
1917
|
url: this.baseUrl && this.baseUrl.length > 0 ? `${this.baseUrl}/${e.relativePath}` : e.relativePath,
|
|
1917
1918
|
width: e.width
|
|
1918
1919
|
};
|
|
1919
|
-
let r =
|
|
1920
|
+
let r = k({
|
|
1920
1921
|
asset: this.asset,
|
|
1921
1922
|
baseUrl: "",
|
|
1922
1923
|
extension: this.selectedFormat.extension,
|
|
@@ -2134,7 +2135,7 @@ var Ct = Q, wt, $ = class extends s {
|
|
|
2134
2135
|
this.activeSetting === e.target.localName && (this.activeSetting = "");
|
|
2135
2136
|
}
|
|
2136
2137
|
get autoResolvedProxyId() {
|
|
2137
|
-
let e =
|
|
2138
|
+
let e = ue(this.asset?.extension, this.asset?.size);
|
|
2138
2139
|
return this.proxies?.find((t) => t.proxyName === e)?.id ?? "";
|
|
2139
2140
|
}
|
|
2140
2141
|
onProxyChange(e) {
|
|
@@ -2554,4 +2555,4 @@ a([r({
|
|
|
2554
2555
|
], $.prototype, "handleLoadingChange", null), $ = wt = a([u("cx-asset-link-format"), o("design:paramtypes", [])], $);
|
|
2555
2556
|
var Tt = $;
|
|
2556
2557
|
//#endregion
|
|
2557
|
-
export { Ge as C, Qe as S,
|
|
2558
|
+
export { Ge as C, Qe as S, be as T, Ae as _, Pe as a, Ye as b, L as c, Fe as d, Oe as f, V as g, B as h, it as i, R as l, Ie as m, st as n, I as o, ke as p, at as r, F as s, Tt as t, z as u, je as v, M as w, et as x, $e as y };
|
|
@@ -15,7 +15,7 @@ import { t as y } from "./when.BUskJLtZ.js";
|
|
|
15
15
|
import { t as ie } from "./icon.CeQpEaQz.js";
|
|
16
16
|
import { t as ae } from "./spinner.o3Rjsff7.js";
|
|
17
17
|
import { n as oe } from "./tslib.es6.DJNsMHqv.js";
|
|
18
|
-
import { t as se } from "./src.
|
|
18
|
+
import { t as se } from "./src.D2a7u_Hs.js";
|
|
19
19
|
import { t as ce } from "./style-map.DPGQIxip.js";
|
|
20
20
|
import { t as b } from "./button.DeRJNqpr.js";
|
|
21
21
|
import { E as x, S as le, r as ue } from "./string.DAuTpyw8.js";
|
|
@@ -71,16 +71,16 @@ import { n as gt, t as _t } from "./confirm-popover.DYtD5qtp.js";
|
|
|
71
71
|
import { t as vt } from "./corner-position-input-group.lsTSrT61.js";
|
|
72
72
|
import { t as yt } from "./cropper.D5Vh9xD_.js";
|
|
73
73
|
import { t as bt } from "./dynamic-select.BLoP9tvq.js";
|
|
74
|
-
import { i as xt, n as M, r as St, t as N } from "./folder-select.
|
|
74
|
+
import { i as xt, n as M, r as St, t as N } from "./folder-select.Cc9PkoVE.js";
|
|
75
75
|
import { t as Ct } from "./choose.C2vpqhLc.js";
|
|
76
76
|
import { t as wt } from "./masonry.BnIxslnb.js";
|
|
77
77
|
import { t as Tt } from "./padding-input-group.BTjH4scb.js";
|
|
78
78
|
import { t as Et } from "./position-picker.DwDC9gDl.js";
|
|
79
79
|
import { t as Dt } from "./shadow-input-group.kaLCMX3c.js";
|
|
80
80
|
import { t as Ot } from "./size-input-group.CFgOvLnO.js";
|
|
81
|
-
import { C as kt, S as At, T as jt, _ as Mt, b as Nt, c as Pt, f as Ft, g as It, h as Lt, i as Rt, l as zt, n as Bt, o as Vt, p as Ht, r as Ut, s as Wt, t as Gt, u as Kt, v as qt, w as Jt, x as Yt, y as Xt } from "./asset-link-format.
|
|
81
|
+
import { C as kt, S as At, T as jt, _ as Mt, b as Nt, c as Pt, f as Ft, g as It, h as Lt, i as Rt, l as zt, n as Bt, o as Vt, p as Ht, r as Ut, s as Wt, t as Gt, u as Kt, v as qt, w as Jt, x as Yt, y as Xt } from "./asset-link-format.PQt5Mb9Q.js";
|
|
82
82
|
import { c as Zt, d as Qt, f as $t, n as en, u as tn } from "./color-swatch-group.CefCwg8T.js";
|
|
83
|
-
import { C as nn, E as rn, H as an, J as on, K as sn, L as P, M as cn, S as ln, X as un, Y as dn, Z as fn, _ as pn, at as F, b as mn, g as hn, it as gn, nt as _n, ot as vn, q as yn, rt as I } from "./configs-controller.
|
|
83
|
+
import { C as nn, E as rn, H as an, J as on, K as sn, L as P, M as cn, S as ln, X as un, Y as dn, Z as fn, _ as pn, at as F, b as mn, g as hn, it as gn, nt as _n, ot as vn, q as yn, rt as I } from "./configs-controller.C8ccAQpx.js";
|
|
84
84
|
import { a as bn } from "./cloneDeep.C6x5LNv3.js";
|
|
85
85
|
//#region ../../packages/types/src/icon-picker.ts
|
|
86
86
|
var xn = /* @__PURE__ */ function(e) {
|