@orangelogic/design-system 2.116.0 → 2.117.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.QzzboHHE.js +6 -0
- package/library/chunks/asset.CIWxY-Aw.js +469 -0
- package/library/chunks/{endpoints.DBlquU2-.js → endpoints.D4h8hp1m.js} +90 -90
- package/library/chunks/{folder-select.Bc9x2hMO.js → folder-select.CrWjwQcw.js} +2 -2
- package/library/chunks/{list-editor.on8VVRn-.js → list-editor.BfpDIsU5.js} +127 -122
- package/library/chunks/{transformation.BlQCWMfI.js → transformation.c-RS37zA.js} +1 -1
- package/library/components/asset-link-format.js +3 -3
- package/library/components/audio.js +165 -103
- package/library/components/cropper.js +1 -1
- package/library/components/folder-select.js +2 -2
- package/library/components/list-editor.js +1 -1
- package/library/components/molecules.js +2 -2
- package/library/components/select.js +107 -107
- package/library/components/types.js +23956 -24118
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/audio/audio.d.ts +32 -5
- package/library/packages/molecules/src/asset-data-display/asset-data-display.d.ts +2 -1
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
- package/library/packages/molecules/src/index.d.ts +0 -1
- package/library/packages/molecules/src/page-outline/page-outline.d.ts +1 -2
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +4 -1
- package/library/packages/organisms/src/content-builder/configs/audio.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -0
- package/library/packages/services/src/api/asset/asset.d.ts +6 -3
- package/library/packages/services/src/api/endpoints.d.ts +2 -1
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +6 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +2 -0
- package/library/packages/types/src/asset-link-format.d.ts +1 -0
- package/library/packages/types/src/content-builder.d.ts +4 -0
- package/library/react-web-component.d.ts +741 -721
- package/library/utils.js +1 -1
- package/package.json +1 -1
- package/library/chunks/asset-link-format.B0c92pSs.js +0 -6
- package/library/chunks/asset.D_xAgoOX.js +0 -460
- package/library/packages/molecules/src/timeline/timeline.d.ts +0 -71
- package/library/packages/molecules/src/timeline/timeline.styles.d.ts +0 -2
package/library/utils.js
CHANGED
|
@@ -31,7 +31,7 @@ import { g as Kr, a as ta } from "./chunks/responsive.C8NCkfCG.js";
|
|
|
31
31
|
import { c as ra, b as aa, e as sa, f as oa, l as na, g as ia, j as la, p as ca, v as ua, r as ma, a as fa, d as ha, s as ga, k as da, o as pa, m as Da, n as Ta, q as wa, t as Ma, u as xa } from "./chunks/string.DUgD4c9f.js";
|
|
32
32
|
import { g as Ca, a as Sa } from "./chunks/template.ClovJacp.js";
|
|
33
33
|
import { c as Aa, f as Ia, a as La, g as Fa } from "./chunks/time.BSmpFe2G.js";
|
|
34
|
-
import { b as va } from "./chunks/transformation.
|
|
34
|
+
import { b as va } from "./chunks/transformation.c-RS37zA.js";
|
|
35
35
|
function o(t) {
|
|
36
36
|
const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), s = String(t.getDate()).padStart(2, "0");
|
|
37
37
|
return `${e}-${r}-${s}`;
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var u = /* @__PURE__ */ ((t) => (t.AspectRatio = "%", t.Pixel = "px", t))(u || {}), e = /* @__PURE__ */ ((t) => (t.Album = "Album", t.Audio = "Audio", t.Image = "Image", t.Multimedia = "Multimedia", t.ProjectDocument = "ProjectDocument", t.Story = "Story", t.Video = "Video", t.Widget = "Widget", t))(e || {}), r = /* @__PURE__ */ ((t) => (t.Crop = "Crop", t.Metadata = "Metadata", t.Proxy = "Proxy", t.Quality = "Quality", t.Resize = "Resize", t.Rotate = "Rotate", t))(r || {});
|
|
2
|
-
export {
|
|
3
|
-
e as M,
|
|
4
|
-
r as T,
|
|
5
|
-
u as U
|
|
6
|
-
};
|
|
@@ -1,460 +0,0 @@
|
|
|
1
|
-
import { h as l, S as q, A as x, a as V, b as Z } from "./endpoints.DBlquU2-.js";
|
|
2
|
-
import { M as b } from "./asset-link-format.B0c92pSs.js";
|
|
3
|
-
import "./debounce.CIEhztrj.js";
|
|
4
|
-
import "./lit-element.jLBm65_O.js";
|
|
5
|
-
import "./form.B-5nQJva.js";
|
|
6
|
-
import "./i18n.CH-wak_P.js";
|
|
7
|
-
import { a as z } from "./string.DUgD4c9f.js";
|
|
8
|
-
import "./date-picker.D0SJADN6.js";
|
|
9
|
-
import "./content-builder.OsUmm8Wu.js";
|
|
10
|
-
import "./unsafe-html.Dff7-rCx.js";
|
|
11
|
-
import { b as X } from "./_baseUniq.HFKneygy.js";
|
|
12
|
-
function Y(e) {
|
|
13
|
-
return e && e.length ? X(e) : [];
|
|
14
|
-
}
|
|
15
|
-
function Q(e) {
|
|
16
|
-
return typeof e == "object" && e !== null && "URI" in e;
|
|
17
|
-
}
|
|
18
|
-
const J = {
|
|
19
|
-
artist: "Artist",
|
|
20
|
-
color: "Color",
|
|
21
|
-
createDate: "CreateDate",
|
|
22
|
-
directParentFolderIdentifier: "DirectParentFolderIdentifier",
|
|
23
|
-
docSubType: "DocSubType",
|
|
24
|
-
docType: "DocType",
|
|
25
|
-
editDate: "EditDate",
|
|
26
|
-
fileExtension: "Fileextension",
|
|
27
|
-
keyword: "Keyword",
|
|
28
|
-
mediaDate: "MediaDate",
|
|
29
|
-
mediaNumber: "MediaNumber",
|
|
30
|
-
nativeKeyword: "NativeKeyword",
|
|
31
|
-
orientation: "Orientation",
|
|
32
|
-
parentFolderIdentifier: "ParentFolderIdentifier",
|
|
33
|
-
path: "Path",
|
|
34
|
-
photographer: "Photographer",
|
|
35
|
-
purpose: "Purpose",
|
|
36
|
-
recordId: "RecordID",
|
|
37
|
-
systemIdentifier: "SystemIdentifier",
|
|
38
|
-
text: "Text",
|
|
39
|
-
title: "Title"
|
|
40
|
-
}, ee = /* @__PURE__ */ new Set(["mediaDate", "createDate", "editDate"]);
|
|
41
|
-
function g(e) {
|
|
42
|
-
return !/[\s&+/*"\\:(),'<>~|[\]{}]/.test(e) && !/^(?:OR|AND|NOT)$/.test(e) ? e : `"${e.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
43
|
-
}
|
|
44
|
-
function G(e, t) {
|
|
45
|
-
const o = (Array.isArray(t) ? t : [t]).map((s) => `${e}:${g(s)}`);
|
|
46
|
-
return o.length > 1 ? `(${o.join(" OR ")})` : o[0] ?? "";
|
|
47
|
-
}
|
|
48
|
-
function te(e, t) {
|
|
49
|
-
return (Array.isArray(t) ? t : [t]).map((o) => `${e}${o.operator}${o.value}`).join(" AND ");
|
|
50
|
-
}
|
|
51
|
-
function re(e) {
|
|
52
|
-
const t = [];
|
|
53
|
-
for (const r of Object.keys(e)) {
|
|
54
|
-
const o = r, s = e[o];
|
|
55
|
-
if (s == null)
|
|
56
|
-
continue;
|
|
57
|
-
if (o === "custom") {
|
|
58
|
-
for (const [n, f] of Object.entries(
|
|
59
|
-
s
|
|
60
|
-
))
|
|
61
|
-
t.push(G(n, f));
|
|
62
|
-
continue;
|
|
63
|
-
}
|
|
64
|
-
const u = J[o];
|
|
65
|
-
if (u) {
|
|
66
|
-
if (ee.has(o)) {
|
|
67
|
-
t.push(
|
|
68
|
-
te(u, s)
|
|
69
|
-
);
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
if (o === "color") {
|
|
73
|
-
t.push(`${u}:${s}`);
|
|
74
|
-
continue;
|
|
75
|
-
}
|
|
76
|
-
if (o === "parentFolderIdentifier") {
|
|
77
|
-
const n = Array.isArray(s) ? s : [s];
|
|
78
|
-
if (n.length === 0)
|
|
79
|
-
continue;
|
|
80
|
-
const f = [
|
|
81
|
-
...n.map((p) => `ParentFolderIdentifier:${g(String(p))}`),
|
|
82
|
-
...n.map((p) => `ParentAlbumIdentifier:${g(String(p))}`)
|
|
83
|
-
];
|
|
84
|
-
t.push(`(${f.join(" OR ")})`);
|
|
85
|
-
continue;
|
|
86
|
-
}
|
|
87
|
-
t.push(G(u, s));
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return t.join(" AND ");
|
|
91
|
-
}
|
|
92
|
-
function y(e) {
|
|
93
|
-
if ("and" in e)
|
|
94
|
-
return e.and.map(y).filter(Boolean).join(" AND ");
|
|
95
|
-
if ("or" in e) {
|
|
96
|
-
const t = e.or.map(y).filter(Boolean);
|
|
97
|
-
return t.length > 1 ? `(${t.join(" OR ")})` : t[0] ?? "";
|
|
98
|
-
}
|
|
99
|
-
if ("not" in e) {
|
|
100
|
-
const t = y(e.not);
|
|
101
|
-
return t ? `NOT (${t})` : "";
|
|
102
|
-
}
|
|
103
|
-
return re(e);
|
|
104
|
-
}
|
|
105
|
-
const C = "CoreField.LargeSizePreview", M = "CoreField.DocType", oe = "Document.Title", ne = "Document.CaptionLong", U = "Document.FileExtension", v = "CoreField.FileSize", j = "CoreField.Identifier", W = "CoreField.Keywords", w = "CoreField.MaxHeight", H = "CoreField.MaxWidth", T = "Document.RecordID", $ = "CoreField.DocSubType", k = "CoreField.TitleWithFallback", h = "CoreField.OriginalFileName", F = "CoreField.UpdatedFileName", I = "CoreField.OriginalPreview", S = {
|
|
106
|
-
DEFAULT_VIEW_SIZE: "Document.LargeSizePreview",
|
|
107
|
-
FIELD_TITLE_WITH_FALLBACK: "Document.TitleWithFallback",
|
|
108
|
-
ORIGINAL_VIEW_SIZE: "Document.OriginalPreview"
|
|
109
|
-
}, B = {
|
|
110
|
-
[C]: S.DEFAULT_VIEW_SIZE,
|
|
111
|
-
[k]: S.FIELD_TITLE_WITH_FALLBACK,
|
|
112
|
-
[I]: S.ORIGINAL_VIEW_SIZE
|
|
113
|
-
}, se = Object.fromEntries(
|
|
114
|
-
Object.entries(B).map(([e, t]) => [
|
|
115
|
-
t,
|
|
116
|
-
e
|
|
117
|
-
])
|
|
118
|
-
);
|
|
119
|
-
function ae(e) {
|
|
120
|
-
return B[e] ?? e;
|
|
121
|
-
}
|
|
122
|
-
function ie(e) {
|
|
123
|
-
const t = {};
|
|
124
|
-
for (const [r, o] of Object.entries(e)) {
|
|
125
|
-
const s = se[r] ?? r;
|
|
126
|
-
t[s] = o;
|
|
127
|
-
}
|
|
128
|
-
return t;
|
|
129
|
-
}
|
|
130
|
-
async function K({
|
|
131
|
-
countPerPage: e,
|
|
132
|
-
fields: t,
|
|
133
|
-
getPermanentAssetsPaths: r,
|
|
134
|
-
pageNumber: o,
|
|
135
|
-
query: s,
|
|
136
|
-
securityByPassToken: u,
|
|
137
|
-
siteUrl: n,
|
|
138
|
-
sort: f,
|
|
139
|
-
token: p,
|
|
140
|
-
useSession: E
|
|
141
|
-
}) {
|
|
142
|
-
const A = t?.map(ae);
|
|
143
|
-
try {
|
|
144
|
-
return (await l.request({
|
|
145
|
-
baseURL: n,
|
|
146
|
-
headers: p ? { Authorization: `Bearer ${p}` } : void 0,
|
|
147
|
-
method: "GET",
|
|
148
|
-
params: {
|
|
149
|
-
CountPerPage: e,
|
|
150
|
-
Fields: Y(A),
|
|
151
|
-
Format: "json",
|
|
152
|
-
GetPermanentAssetsPaths: r || void 0,
|
|
153
|
-
PageNumber: o,
|
|
154
|
-
Query: y(s),
|
|
155
|
-
SecurityByPassToken: u || void 0,
|
|
156
|
-
Sort: f || void 0,
|
|
157
|
-
UseSession: E || void 0
|
|
158
|
-
},
|
|
159
|
-
paramsSerializer: { indexes: null },
|
|
160
|
-
responseType: "json",
|
|
161
|
-
transformResponse: [
|
|
162
|
-
...Array.isArray(l.defaults.transformResponse) ? l.defaults.transformResponse : [],
|
|
163
|
-
(a) => ({
|
|
164
|
-
items: (a.APIResponse?.Items ?? []).map(ie),
|
|
165
|
-
sort: a.APIResponse?.GlobalInfo?.Sort ?? "",
|
|
166
|
-
totalCount: a.APIResponse?.GlobalInfo?.TotalCount ?? 0
|
|
167
|
-
})
|
|
168
|
-
],
|
|
169
|
-
url: q["4.0"]
|
|
170
|
-
})).data;
|
|
171
|
-
} catch {
|
|
172
|
-
return { items: [], sort: "", totalCount: 0 };
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
async function Te({
|
|
176
|
-
assetId: e,
|
|
177
|
-
extension: t,
|
|
178
|
-
format: r,
|
|
179
|
-
siteUrl: o,
|
|
180
|
-
token: s,
|
|
181
|
-
transformations: u,
|
|
182
|
-
useSession: n
|
|
183
|
-
}) {
|
|
184
|
-
try {
|
|
185
|
-
return (await l.request({
|
|
186
|
-
baseURL: o,
|
|
187
|
-
method: "GET",
|
|
188
|
-
params: {
|
|
189
|
-
SourceAssetFormat: r,
|
|
190
|
-
SourceAssetRecordID: e,
|
|
191
|
-
TargetExtension: z(t),
|
|
192
|
-
Token: s || void 0,
|
|
193
|
-
Transformations: u,
|
|
194
|
-
UseSession: n || void 0
|
|
195
|
-
},
|
|
196
|
-
/**
|
|
197
|
-
* https://link.orangelogic.com/Tasks/41S1XH
|
|
198
|
-
*/
|
|
199
|
-
timeout: 3e5,
|
|
200
|
-
// 5 minutes
|
|
201
|
-
url: x.GET_TRANSFORM_ASSET_LINK
|
|
202
|
-
})).data;
|
|
203
|
-
} catch {
|
|
204
|
-
return null;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
const ce = 50;
|
|
208
|
-
function ue(e, t) {
|
|
209
|
-
const r = [];
|
|
210
|
-
for (let o = 0; o < e.length; o += t)
|
|
211
|
-
r.push(e.slice(o, o + t));
|
|
212
|
-
return r;
|
|
213
|
-
}
|
|
214
|
-
async function he({
|
|
215
|
-
extraFields: e,
|
|
216
|
-
getPermanentAssetsPaths: t,
|
|
217
|
-
recordIds: r,
|
|
218
|
-
securityByPassToken: o,
|
|
219
|
-
token: s
|
|
220
|
-
}) {
|
|
221
|
-
if (!Array.isArray(r) || r.length === 0)
|
|
222
|
-
return { facets: [], items: [], totalCount: 0 };
|
|
223
|
-
const u = e?.filter((a) => a && typeof a == "string") ?? [], n = [
|
|
224
|
-
...u,
|
|
225
|
-
I,
|
|
226
|
-
F,
|
|
227
|
-
h,
|
|
228
|
-
oe,
|
|
229
|
-
ne,
|
|
230
|
-
T
|
|
231
|
-
], f = ue(r, ce), p = await Promise.all(
|
|
232
|
-
f.map(
|
|
233
|
-
(a) => K({
|
|
234
|
-
countPerPage: a.length,
|
|
235
|
-
fields: n,
|
|
236
|
-
getPermanentAssetsPaths: t,
|
|
237
|
-
pageNumber: 1,
|
|
238
|
-
query: { recordId: a },
|
|
239
|
-
securityByPassToken: o,
|
|
240
|
-
token: s
|
|
241
|
-
})
|
|
242
|
-
)
|
|
243
|
-
), E = new Map(r.map((a, d) => [a, d])), A = p.flatMap((a) => a.items).map((a) => {
|
|
244
|
-
let d = c(a, F);
|
|
245
|
-
return d === "" && (d = c(a, h)), {
|
|
246
|
-
name: d,
|
|
247
|
-
originalUrl: c(a, I),
|
|
248
|
-
recordId: c(a, T),
|
|
249
|
-
...u.reduce(
|
|
250
|
-
(_, i) => (_[i] = c(a, i), _),
|
|
251
|
-
{}
|
|
252
|
-
)
|
|
253
|
-
};
|
|
254
|
-
}).sort(
|
|
255
|
-
(a, d) => (E.get(a.recordId) ?? 1 / 0) - (E.get(d.recordId) ?? 1 / 0)
|
|
256
|
-
), D = p.reduce(
|
|
257
|
-
(a, d) => a + d.totalCount,
|
|
258
|
-
0
|
|
259
|
-
);
|
|
260
|
-
return { facets: [], items: A, totalCount: D };
|
|
261
|
-
}
|
|
262
|
-
function c(e, t) {
|
|
263
|
-
const r = e[t];
|
|
264
|
-
return r == null ? "" : typeof r == "string" ? r : typeof r == "number" || typeof r == "boolean" ? String(r) : Q(r) ? r.URI : "";
|
|
265
|
-
}
|
|
266
|
-
async function Fe({
|
|
267
|
-
countPerPage: e,
|
|
268
|
-
directParentFolderIdentifier: t,
|
|
269
|
-
extraFields: r,
|
|
270
|
-
getPermanentAssetsPaths: o,
|
|
271
|
-
limitedDocTypes: s,
|
|
272
|
-
pageNumber: u,
|
|
273
|
-
parentFolderIdentifier: n,
|
|
274
|
-
searchTerm: f,
|
|
275
|
-
securityByPassToken: p,
|
|
276
|
-
sortOrder: E,
|
|
277
|
-
token: A
|
|
278
|
-
}) {
|
|
279
|
-
if (!t && !n)
|
|
280
|
-
return { facets: [], items: [], totalCount: 0 };
|
|
281
|
-
const D = (r?.filter((i) => i && typeof i == "string") ?? []).map((i) => i.replace("%20", " ")), a = {
|
|
282
|
-
directParentFolderIdentifier: t,
|
|
283
|
-
parentFolderIdentifier: n,
|
|
284
|
-
...s.length > 0 ? { docType: [b.Image, b.Audio] } : {}
|
|
285
|
-
}, d = await K({
|
|
286
|
-
countPerPage: e,
|
|
287
|
-
fields: [
|
|
288
|
-
...D,
|
|
289
|
-
k,
|
|
290
|
-
C,
|
|
291
|
-
I,
|
|
292
|
-
W,
|
|
293
|
-
H,
|
|
294
|
-
w,
|
|
295
|
-
v,
|
|
296
|
-
M,
|
|
297
|
-
$,
|
|
298
|
-
j,
|
|
299
|
-
U,
|
|
300
|
-
T,
|
|
301
|
-
h,
|
|
302
|
-
F
|
|
303
|
-
],
|
|
304
|
-
getPermanentAssetsPaths: o,
|
|
305
|
-
pageNumber: u,
|
|
306
|
-
query: a,
|
|
307
|
-
securityByPassToken: p,
|
|
308
|
-
sort: void 0,
|
|
309
|
-
token: A
|
|
310
|
-
}), _ = d.items.map((i) => {
|
|
311
|
-
let m = c(i, U), L = c(i, F), R = c(i, C);
|
|
312
|
-
m && !m.startsWith(".") && (m = "." + m), L === "" && (L = c(i, h)), m.toLowerCase() === ".gif" && (R = c(i, I));
|
|
313
|
-
const N = c(i, T);
|
|
314
|
-
return {
|
|
315
|
-
docSubType: c(i, $),
|
|
316
|
-
docType: c(i, M) || "",
|
|
317
|
-
extension: m,
|
|
318
|
-
height: c(i, w) || "0",
|
|
319
|
-
id: N,
|
|
320
|
-
identifier: c(i, j),
|
|
321
|
-
imageUrl: R,
|
|
322
|
-
name: L,
|
|
323
|
-
originalUrl: c(i, I),
|
|
324
|
-
recordId: N,
|
|
325
|
-
size: c(i, v) || "0 MB",
|
|
326
|
-
tags: c(i, W),
|
|
327
|
-
width: c(i, H) || "0",
|
|
328
|
-
...D.reduce(
|
|
329
|
-
(P, O) => (P[O] = c(i, O), P),
|
|
330
|
-
{}
|
|
331
|
-
)
|
|
332
|
-
};
|
|
333
|
-
});
|
|
334
|
-
return {
|
|
335
|
-
facets: [],
|
|
336
|
-
items: _,
|
|
337
|
-
totalCount: d.totalCount
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
async function Le({
|
|
341
|
-
autoCropMode: e,
|
|
342
|
-
cropHeight: t,
|
|
343
|
-
cropWidth: r,
|
|
344
|
-
imageUrl: o,
|
|
345
|
-
useSession: s
|
|
346
|
-
}) {
|
|
347
|
-
try {
|
|
348
|
-
return (await l.request({
|
|
349
|
-
method: "GET",
|
|
350
|
-
params: {
|
|
351
|
-
AutoCropMode: e,
|
|
352
|
-
CropHeight: t,
|
|
353
|
-
CropWidth: r,
|
|
354
|
-
ImageUrl: o && new URL(o, window.location.origin).href,
|
|
355
|
-
UseSession: s || void 0
|
|
356
|
-
},
|
|
357
|
-
responseType: "json",
|
|
358
|
-
timeout: 3e5,
|
|
359
|
-
// 5 minutes
|
|
360
|
-
transformResponse: [
|
|
361
|
-
...Array.isArray(l.defaults.transformResponse) ? l.defaults.transformResponse : [],
|
|
362
|
-
(n) => ({
|
|
363
|
-
height: n.cropHeight,
|
|
364
|
-
width: n.cropWidth,
|
|
365
|
-
x: n.cropX,
|
|
366
|
-
y: n.cropY
|
|
367
|
-
})
|
|
368
|
-
],
|
|
369
|
-
url: x.GET_CROP_ZONE_SUGGESTION
|
|
370
|
-
})).data;
|
|
371
|
-
} catch {
|
|
372
|
-
return null;
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
async function Se({
|
|
376
|
-
assetRecordId: e,
|
|
377
|
-
siteUrl: t,
|
|
378
|
-
token: r,
|
|
379
|
-
useSession: o
|
|
380
|
-
}) {
|
|
381
|
-
try {
|
|
382
|
-
return (await l.request({
|
|
383
|
-
baseURL: t,
|
|
384
|
-
method: "GET",
|
|
385
|
-
params: {
|
|
386
|
-
RecordId: e,
|
|
387
|
-
Token: r,
|
|
388
|
-
UseSession: o || void 0
|
|
389
|
-
},
|
|
390
|
-
responseType: "json",
|
|
391
|
-
transformResponse: [
|
|
392
|
-
...Array.isArray(l.defaults.transformResponse) ? l.defaults.transformResponse : [],
|
|
393
|
-
(u) => !u || typeof u != "object" ? [] : u.proxies?.map((n) => ({
|
|
394
|
-
cdnName: n.cdnName,
|
|
395
|
-
extension: n.extension,
|
|
396
|
-
formatHeight: n.formatHeight,
|
|
397
|
-
formatWidth: n.formatWidth,
|
|
398
|
-
height: n.height,
|
|
399
|
-
permanentLink: n.permanentLink,
|
|
400
|
-
proxyLabel: n.proxyLabel,
|
|
401
|
-
proxyName: n.proxyName,
|
|
402
|
-
width: n.width
|
|
403
|
-
})) ?? []
|
|
404
|
-
],
|
|
405
|
-
url: Z
|
|
406
|
-
})).data;
|
|
407
|
-
} catch {
|
|
408
|
-
return [];
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
async function ge({
|
|
412
|
-
siteUrl: e
|
|
413
|
-
} = {}) {
|
|
414
|
-
try {
|
|
415
|
-
return (await l.request({
|
|
416
|
-
baseURL: e,
|
|
417
|
-
method: "GET",
|
|
418
|
-
responseType: "json",
|
|
419
|
-
transformResponse: [
|
|
420
|
-
...Array.isArray(l.defaults.transformResponse) ? l.defaults.transformResponse : [],
|
|
421
|
-
(r) => !r || typeof r != "object" ? {
|
|
422
|
-
formatsByDocType: {
|
|
423
|
-
Audio: {},
|
|
424
|
-
Image: {},
|
|
425
|
-
Multimedia: {},
|
|
426
|
-
Video: {}
|
|
427
|
-
}
|
|
428
|
-
} : {
|
|
429
|
-
formatsByDocType: r.formatsByDocType ?? {}
|
|
430
|
-
}
|
|
431
|
-
],
|
|
432
|
-
url: V
|
|
433
|
-
})).data;
|
|
434
|
-
} catch {
|
|
435
|
-
return { formatsByDocType: {} };
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
export {
|
|
439
|
-
C as D,
|
|
440
|
-
oe as F,
|
|
441
|
-
I as O,
|
|
442
|
-
he as a,
|
|
443
|
-
k as b,
|
|
444
|
-
Te as c,
|
|
445
|
-
Le as d,
|
|
446
|
-
ge as e,
|
|
447
|
-
K as f,
|
|
448
|
-
T as g,
|
|
449
|
-
Fe as h,
|
|
450
|
-
Q as i,
|
|
451
|
-
w as j,
|
|
452
|
-
H as k,
|
|
453
|
-
M as l,
|
|
454
|
-
U as m,
|
|
455
|
-
Se as n,
|
|
456
|
-
v as o,
|
|
457
|
-
j as p,
|
|
458
|
-
$ as q,
|
|
459
|
-
Y as u
|
|
460
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { default as CxIconButton } from '../../../atoms/src/components/icon-button/icon-button.ts';
|
|
2
|
-
import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
|
|
3
|
-
import { default as CxTab } from '../../../atoms/src/components/tab/tab.ts';
|
|
4
|
-
import { default as CxTabGroup } from '../../../atoms/src/components/tab-group/tab-group.ts';
|
|
5
|
-
import { default as CxTabPanel } from '../../../atoms/src/components/tab-panel/tab-panel.ts';
|
|
6
|
-
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
7
|
-
import { Transformation } from '../../../types/src/asset-link-format';
|
|
8
|
-
import { TimelineItem } from '../../../types/src/timeline';
|
|
9
|
-
import { CSSResultGroup } from 'lit';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @summary CxTimeline
|
|
13
|
-
*/
|
|
14
|
-
export default class CxTimeline extends CortexElement {
|
|
15
|
-
#private;
|
|
16
|
-
static readonly styles: CSSResultGroup;
|
|
17
|
-
static readonly dependencies: {
|
|
18
|
-
'cx-icon-button': typeof CxIconButton;
|
|
19
|
-
'cx-space': typeof CxSpace;
|
|
20
|
-
'cx-tab': typeof CxTab;
|
|
21
|
-
'cx-tab-group': typeof CxTabGroup;
|
|
22
|
-
'cx-tab-panel': typeof CxTabPanel;
|
|
23
|
-
};
|
|
24
|
-
private readonly localize;
|
|
25
|
-
private apiSearchAssets;
|
|
26
|
-
private thumbnailRequestVersion;
|
|
27
|
-
private get isInEditMode();
|
|
28
|
-
tabGroup?: CxTabGroup;
|
|
29
|
-
data: TimelineItem[];
|
|
30
|
-
/**
|
|
31
|
-
* Whether to show navigation arrows
|
|
32
|
-
*/
|
|
33
|
-
navigationArrows: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Whether to show thumbnails
|
|
36
|
-
*/
|
|
37
|
-
showThumbnails: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* The number of tabs per page. This applies when overflow variant is pagination.
|
|
40
|
-
*/
|
|
41
|
-
tabsPerPage: number;
|
|
42
|
-
/**
|
|
43
|
-
* Whether to show multi-language.
|
|
44
|
-
*/
|
|
45
|
-
multiLanguage: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* The minimum width of the tab.
|
|
48
|
-
*/
|
|
49
|
-
minTabWidth: number;
|
|
50
|
-
/**
|
|
51
|
-
* Asset transformation proxy format key.
|
|
52
|
-
*/
|
|
53
|
-
format: string;
|
|
54
|
-
/**
|
|
55
|
-
* Asset transformations applied to the image.
|
|
56
|
-
*/
|
|
57
|
-
transformations: Transformation[];
|
|
58
|
-
siteBuilderToken: string;
|
|
59
|
-
/** Proxy URLs resolved from apiSearchAssets, keyed by item.id. */
|
|
60
|
-
private resolvedThumbnails;
|
|
61
|
-
handleDataChange(): Promise<void>;
|
|
62
|
-
private persistResolvedThumbnailsToData;
|
|
63
|
-
private handlePreviousClick;
|
|
64
|
-
private handleNextClick;
|
|
65
|
-
render(): import('lit').TemplateResult<1>;
|
|
66
|
-
}
|
|
67
|
-
declare global {
|
|
68
|
-
interface HTMLElementTagNameMap {
|
|
69
|
-
'cx-timeline': CxTimeline;
|
|
70
|
-
}
|
|
71
|
-
}
|