@orangelogic/design-system 3.11.0 → 3.12.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.CxDu37Om.js → asset-link-format.f7Khv8SZ.js} +129 -128
- package/library/chunks/{color-swatch-group.DGPlxYsp.js → color-swatch-group.Ib1WYbMl.js} +2 -2
- package/library/chunks/{document-viewer.DhJ4jBNe.js → document-viewer.CMET1HRd.js} +2 -2
- package/library/chunks/{image.1ufrCtW1.js → image.rtjsax7e.js} +1 -1
- package/library/chunks/{index.BAJfz5QI.js → index.BBLDucoY.js} +4 -4
- package/library/chunks/{toast.CCWVobz5.js → toast.CGIDPKV8.js} +1 -1
- package/library/chunks/transformation.OaRYixzE.js +385 -0
- package/library/chunks/{types.D0NvE1EB.js → types.IAKAUHSg.js} +4733 -4721
- package/library/components/asset-link-format.js +2 -2
- package/library/components/atoms.js +2 -2
- package/library/components/color-swatch-group.js +3 -3
- package/library/components/document-viewer.js +2 -2
- package/library/components/image.js +1 -1
- package/library/components/masonry.js +1 -1
- package/library/components/organisms.js +2 -2
- package/library/components/types.js +130 -131
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/blocks/video/video.d.ts +1 -0
- package/library/packages/utils/src/transformation/transformation.d.ts +10 -29
- package/library/utils.js +94 -95
- package/package.json +1 -1
- package/library/chunks/transformation.D27sTUdZ.js +0 -392
|
@@ -10,12 +10,12 @@ import "./form.C8LMdQB4.js";
|
|
|
10
10
|
import { L as G } from "./i18n.CNnI4-0K.js";
|
|
11
11
|
import { a as se } from "./string.Demn8Xmk.js";
|
|
12
12
|
import "./date-picker.BGHn6qg8.js";
|
|
13
|
-
import { a as
|
|
13
|
+
import { a as Rt, r as jt, b as ae, c as oe, d as lt } from "./transformation.OaRYixzE.js";
|
|
14
14
|
import "./unsafe-html.Dff7-rCx.js";
|
|
15
|
-
import { b as
|
|
15
|
+
import { b as re } from "./_baseUniq.lwMgmtt2.js";
|
|
16
16
|
import { c as Q } from "./component.styles.CRO4Odto.js";
|
|
17
17
|
import { M as ct, U as o, T as f } from "./asset-link-format.ClaYu_v8.js";
|
|
18
|
-
import { v as
|
|
18
|
+
import { v as ne } from "./v4.CKZ6klMF.js";
|
|
19
19
|
import { P as N } from "./position-picker.DjnhxIKF.js";
|
|
20
20
|
import { c as X } from "./custom-element.L4WJXn1j.js";
|
|
21
21
|
import { w as P } from "./watch.DJF5K-8U.js";
|
|
@@ -25,25 +25,25 @@ import { n as M } from "./when.Dr1es41R.js";
|
|
|
25
25
|
import st from "../components/details.js";
|
|
26
26
|
import Vt from "../components/divider.js";
|
|
27
27
|
import { C as at } from "./icon.CpHbi8tH.js";
|
|
28
|
-
import { C as
|
|
29
|
-
import { C as
|
|
28
|
+
import { C as Pt } from "./icon-button.ENVA7x3u.js";
|
|
29
|
+
import { C as Ft } from "./input.BJ5LN8of.js";
|
|
30
30
|
import { C as vt } from "./option.B34is9Z5.js";
|
|
31
31
|
import zt from "../components/select.js";
|
|
32
|
-
import
|
|
33
|
-
import { c as
|
|
32
|
+
import he from "../components/position-picker.js";
|
|
33
|
+
import { c as le } from "./image.Y5c_hFx8.js";
|
|
34
34
|
import { e as J } from "./query.BBf1UFkC.js";
|
|
35
35
|
import { c as ot } from "./repeat.CFjcER6_.js";
|
|
36
36
|
import { o as O } from "./style-map.llVFPd__.js";
|
|
37
37
|
import Gt from "../components/tooltip.js";
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
function
|
|
41
|
-
return t && t.length ?
|
|
38
|
+
import ce from "../components/button-group.js";
|
|
39
|
+
import pe from "../components/checkbox.js";
|
|
40
|
+
function de(t) {
|
|
41
|
+
return t && t.length ? re(t) : [];
|
|
42
42
|
}
|
|
43
43
|
function Qt(t) {
|
|
44
44
|
return typeof t == "object" && t !== null && "URI" in t;
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const ue = {
|
|
47
47
|
artist: "Artist",
|
|
48
48
|
color: "Color",
|
|
49
49
|
createDate: "CreateDate",
|
|
@@ -65,18 +65,18 @@ const me = {
|
|
|
65
65
|
systemIdentifier: "SystemIdentifier",
|
|
66
66
|
text: "Text",
|
|
67
67
|
title: "Title"
|
|
68
|
-
},
|
|
69
|
-
function
|
|
68
|
+
}, me = /* @__PURE__ */ new Set(["mediaDate", "createDate", "editDate"]);
|
|
69
|
+
function $t(t) {
|
|
70
70
|
return !/[\s&+/*"\\:(),'<>~|[\]{}]/.test(t) && !/^(?:OR|AND|NOT)$/.test(t) ? t : `"${t.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
71
71
|
}
|
|
72
72
|
function Wt(t, e) {
|
|
73
|
-
const s = (Array.isArray(e) ? e : [e]).map((a) => `${t}:${
|
|
73
|
+
const s = (Array.isArray(e) ? e : [e]).map((a) => `${t}:${$t(a)}`);
|
|
74
74
|
return s.length > 1 ? `(${s.join(" OR ")})` : s[0] ?? "";
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function fe(t, e) {
|
|
77
77
|
return (Array.isArray(e) ? e : [e]).map((s) => `${t}${s.operator}${s.value}`).join(" AND ");
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function ge(t) {
|
|
80
80
|
const e = [];
|
|
81
81
|
for (const i of Object.keys(t)) {
|
|
82
82
|
const s = i, a = t[s];
|
|
@@ -89,11 +89,11 @@ function xe(t) {
|
|
|
89
89
|
e.push(Wt(n, l));
|
|
90
90
|
continue;
|
|
91
91
|
}
|
|
92
|
-
const r =
|
|
92
|
+
const r = ue[s];
|
|
93
93
|
if (r) {
|
|
94
|
-
if (
|
|
94
|
+
if (me.has(s)) {
|
|
95
95
|
e.push(
|
|
96
|
-
|
|
96
|
+
fe(r, a)
|
|
97
97
|
);
|
|
98
98
|
continue;
|
|
99
99
|
}
|
|
@@ -106,8 +106,8 @@ function xe(t) {
|
|
|
106
106
|
if (n.length === 0)
|
|
107
107
|
continue;
|
|
108
108
|
const l = [
|
|
109
|
-
...n.map((d) => `ParentFolderIdentifier:${
|
|
110
|
-
...n.map((d) => `ParentAlbumIdentifier:${
|
|
109
|
+
...n.map((d) => `ParentFolderIdentifier:${$t(String(d))}`),
|
|
110
|
+
...n.map((d) => `ParentAlbumIdentifier:${$t(String(d))}`)
|
|
111
111
|
];
|
|
112
112
|
e.push(`(${l.join(" OR ")})`);
|
|
113
113
|
continue;
|
|
@@ -128,34 +128,34 @@ function dt(t) {
|
|
|
128
128
|
const e = dt(t.not);
|
|
129
129
|
return e ? `NOT (${e})` : "";
|
|
130
130
|
}
|
|
131
|
-
return
|
|
131
|
+
return ge(t);
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const xe = "CoreField.LargeSizePreview", ut = "CoreField.DocType", ye = "Document.Title", Se = "Document.CaptionLong", rt = "Document.FileExtension", mt = "CoreField.FileSize", Dt = "CoreField.Identifier", ft = "CoreField.MaxHeight", gt = "CoreField.MaxWidth", xt = "Document.RecordID", Nt = "CoreField.DocSubType", Xt = "CoreField.TitleWithFallback", yt = "CoreField.OriginalFileName", St = "CoreField.UpdatedFileName", _t = "__width", Ae = "CoreField.OriginalPreview", Ui = "Document.DocSubType", Bi = "Document.InPoint", qi = "Document.OutPoint", Ct = {
|
|
134
134
|
DEFAULT_VIEW_SIZE: "Document.LargeSizePreview",
|
|
135
135
|
FIELD_TITLE_WITH_FALLBACK: "Document.TitleWithFallback",
|
|
136
136
|
ORIGINAL_VIEW_SIZE: "Document.OriginalPreview"
|
|
137
137
|
}, Kt = {
|
|
138
|
-
[
|
|
138
|
+
[xe]: Ct.DEFAULT_VIEW_SIZE,
|
|
139
139
|
[Xt]: Ct.FIELD_TITLE_WITH_FALLBACK,
|
|
140
|
-
[
|
|
141
|
-
},
|
|
140
|
+
[Ae]: Ct.ORIGINAL_VIEW_SIZE
|
|
141
|
+
}, ve = Object.fromEntries(
|
|
142
142
|
Object.entries(Kt).map(([t, e]) => [
|
|
143
143
|
e,
|
|
144
144
|
t
|
|
145
145
|
])
|
|
146
146
|
);
|
|
147
|
-
function
|
|
147
|
+
function ze(t) {
|
|
148
148
|
return Kt[t] ?? t;
|
|
149
149
|
}
|
|
150
150
|
function Ot(t) {
|
|
151
151
|
const e = {};
|
|
152
152
|
for (const [i, s] of Object.entries(t)) {
|
|
153
|
-
const a =
|
|
153
|
+
const a = ve[i] ?? i;
|
|
154
154
|
e[a] = s;
|
|
155
155
|
}
|
|
156
156
|
return e;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function be(t) {
|
|
159
159
|
const e = new URLSearchParams();
|
|
160
160
|
for (const [i, s] of Object.entries(t))
|
|
161
161
|
s != null && (Array.isArray(s) ? s.forEach((a) => e.append(i, String(a))) : e.append(i, String(s)));
|
|
@@ -175,9 +175,9 @@ async function Zt({
|
|
|
175
175
|
token: c,
|
|
176
176
|
useSession: S
|
|
177
177
|
}) {
|
|
178
|
-
const A = e?.map(
|
|
178
|
+
const A = e?.map(ze), p = {
|
|
179
179
|
CountPerPage: t,
|
|
180
|
-
Fields:
|
|
180
|
+
Fields: de(A),
|
|
181
181
|
Format: "json",
|
|
182
182
|
GetPermanentAssetsPaths: i || void 0,
|
|
183
183
|
PageNumber: r,
|
|
@@ -193,7 +193,7 @@ async function Zt({
|
|
|
193
193
|
method: s,
|
|
194
194
|
// POST large RecordID queries as a urlencoded body to dodge the ~2KB URL cap;
|
|
195
195
|
// GET keeps the same fields on the query string.
|
|
196
|
-
...x ? { data:
|
|
196
|
+
...x ? { data: be(p) } : { params: p, paramsSerializer: { indexes: null } },
|
|
197
197
|
responseType: "json",
|
|
198
198
|
transformResponse: [
|
|
199
199
|
...Array.isArray(E.defaults.transformResponse) ? E.defaults.transformResponse : [],
|
|
@@ -213,7 +213,7 @@ async function Zt({
|
|
|
213
213
|
return { items: [], sort: "", totalCount: 0 };
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
async function
|
|
216
|
+
async function Ce({
|
|
217
217
|
assetId: t,
|
|
218
218
|
extension: e,
|
|
219
219
|
format: i,
|
|
@@ -245,14 +245,14 @@ async function we({
|
|
|
245
245
|
return null;
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
-
const
|
|
249
|
-
function
|
|
248
|
+
const we = 50;
|
|
249
|
+
function ke(t, e) {
|
|
250
250
|
const i = [];
|
|
251
251
|
for (let s = 0; s < t.length; s += e)
|
|
252
252
|
i.push(t.slice(s, s + e));
|
|
253
253
|
return i;
|
|
254
254
|
}
|
|
255
|
-
async function
|
|
255
|
+
async function Re({
|
|
256
256
|
extraFields: t,
|
|
257
257
|
getPermanentAssetsPaths: e,
|
|
258
258
|
isSiteBuilder: i,
|
|
@@ -266,10 +266,10 @@ async function $e({
|
|
|
266
266
|
...n,
|
|
267
267
|
St,
|
|
268
268
|
yt,
|
|
269
|
+
ye,
|
|
269
270
|
Se,
|
|
270
|
-
Ae,
|
|
271
271
|
xt
|
|
272
|
-
], d =
|
|
272
|
+
], d = ke(s, we), g = await Promise.all(
|
|
273
273
|
d.map(
|
|
274
274
|
(p) => Zt({
|
|
275
275
|
countPerPage: p.length,
|
|
@@ -292,7 +292,7 @@ async function $e({
|
|
|
292
292
|
(w, u) => {
|
|
293
293
|
w[u] = _(p, u);
|
|
294
294
|
const C = Yt(p, u);
|
|
295
|
-
return C !== void 0 && (w[`${u}${
|
|
295
|
+
return C !== void 0 && (w[`${u}${_t}`] = String(C)), w;
|
|
296
296
|
},
|
|
297
297
|
{}
|
|
298
298
|
)
|
|
@@ -314,7 +314,7 @@ function Yt(t, e) {
|
|
|
314
314
|
if (!(i == null || !Qt(i)))
|
|
315
315
|
return typeof i.Width == "number" && i.Width > 0 ? i.Width : void 0;
|
|
316
316
|
}
|
|
317
|
-
async function
|
|
317
|
+
async function $e({
|
|
318
318
|
countPerPage: t,
|
|
319
319
|
directParentFolderIdentifier: e,
|
|
320
320
|
extraFields: i,
|
|
@@ -376,7 +376,7 @@ async function Pe({
|
|
|
376
376
|
(L, et) => {
|
|
377
377
|
L[et] = _(u, et);
|
|
378
378
|
const nt = Yt(u, et);
|
|
379
|
-
return nt !== void 0 && (L[`${et}${
|
|
379
|
+
return nt !== void 0 && (L[`${et}${_t}`] = String(nt)), L;
|
|
380
380
|
},
|
|
381
381
|
{}
|
|
382
382
|
)
|
|
@@ -388,7 +388,7 @@ async function Pe({
|
|
|
388
388
|
totalCount: x.totalCount
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
|
-
async function
|
|
391
|
+
async function Pe({
|
|
392
392
|
autoCropMode: t,
|
|
393
393
|
cropHeight: e,
|
|
394
394
|
cropWidth: i,
|
|
@@ -423,7 +423,7 @@ async function Fe({
|
|
|
423
423
|
return null;
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
async function
|
|
426
|
+
async function ji({
|
|
427
427
|
assetRecordId: t,
|
|
428
428
|
isSiteBuilder: e,
|
|
429
429
|
siteUrl: i,
|
|
@@ -460,7 +460,7 @@ async function Vi({
|
|
|
460
460
|
return [];
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
async function
|
|
463
|
+
async function Vi({
|
|
464
464
|
siteUrl: t
|
|
465
465
|
} = {}) {
|
|
466
466
|
try {
|
|
@@ -487,7 +487,7 @@ async function Gi({
|
|
|
487
487
|
return { formatsByDocType: {} };
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
async function
|
|
490
|
+
async function Gi({
|
|
491
491
|
recordIds: t,
|
|
492
492
|
rightsToCheck: e
|
|
493
493
|
}) {
|
|
@@ -510,7 +510,7 @@ async function Qi({
|
|
|
510
510
|
return i;
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
const wt = 20, it = "TR1", At = "TRX",
|
|
513
|
+
const wt = 20, it = "TR1", At = "TRX", Fe = /* @__PURE__ */ new Set([".gif"]), _e = /* @__PURE__ */ new Set([
|
|
514
514
|
".avif",
|
|
515
515
|
".bmp",
|
|
516
516
|
".gif",
|
|
@@ -521,9 +521,9 @@ const wt = 20, it = "TR1", At = "TRX", _e = /* @__PURE__ */ new Set([".gif"]), M
|
|
|
521
521
|
".svg",
|
|
522
522
|
".webp"
|
|
523
523
|
]);
|
|
524
|
-
function
|
|
524
|
+
function Me(t) {
|
|
525
525
|
const e = t.toLowerCase(), i = e.startsWith(".") ? e : `.${e}`;
|
|
526
|
-
return
|
|
526
|
+
return _e.has(i);
|
|
527
527
|
}
|
|
528
528
|
function Lt({
|
|
529
529
|
autoFormat: t,
|
|
@@ -538,17 +538,18 @@ function Lt({
|
|
|
538
538
|
const w = a[p];
|
|
539
539
|
if (!w)
|
|
540
540
|
return;
|
|
541
|
-
const u = a[`${p}${
|
|
541
|
+
const u = a[`${p}${_t}`], C = t ? Rt(w, [], {
|
|
542
|
+
autoFormat: !0,
|
|
542
543
|
extension: l,
|
|
543
544
|
format: x
|
|
544
545
|
}) : w;
|
|
545
546
|
return {
|
|
546
547
|
maxWidth: u,
|
|
547
548
|
src: C,
|
|
548
|
-
srcset: e ?
|
|
549
|
+
srcset: e ? ae(C, {
|
|
549
550
|
extension: l,
|
|
550
551
|
format: x,
|
|
551
|
-
maxWidth:
|
|
552
|
+
maxWidth: oe(r, u)
|
|
552
553
|
}) : ""
|
|
553
554
|
};
|
|
554
555
|
};
|
|
@@ -556,12 +557,12 @@ function Lt({
|
|
|
556
557
|
const p = jt(l, n), x = `path_${p}`;
|
|
557
558
|
return c(x, p) ?? c(g, it) ?? {};
|
|
558
559
|
}
|
|
559
|
-
if (!!l &&
|
|
560
|
+
if (!!l && Fe.has(d))
|
|
560
561
|
return c(`path_${At}`, At) ?? c(g, it) ?? {};
|
|
561
562
|
const A = s ? `path_${s}` : void 0;
|
|
562
563
|
return A && a[A] ? c(A, s) ?? {} : c(g, it) ?? {};
|
|
563
564
|
}
|
|
564
|
-
class
|
|
565
|
+
class Qi {
|
|
565
566
|
constructor(e, i) {
|
|
566
567
|
this.data = [], this.folderId = "", this.fetchedPages = /* @__PURE__ */ new Set(), this.totalCount = 0, this.maxEnd = 1 / 0, this.pageSize = wt, this.requestEpoch = 0, this.host = e, this.host.addController?.(this);
|
|
567
568
|
const s = i?.maxEnd;
|
|
@@ -616,7 +617,7 @@ class Xi {
|
|
|
616
617
|
for (let x = A; x <= p; x++) {
|
|
617
618
|
if (this.fetchedPages.has(x))
|
|
618
619
|
continue;
|
|
619
|
-
const w = await
|
|
620
|
+
const w = await $e({
|
|
620
621
|
countPerPage: this.pageSize,
|
|
621
622
|
directParentFolderIdentifier: this.folderId,
|
|
622
623
|
extraFields: [...i, ...S],
|
|
@@ -635,7 +636,7 @@ class Xi {
|
|
|
635
636
|
const C = Math.min(this.maxEnd, w.totalCount);
|
|
636
637
|
this.totalCount = C, this.data = Array.from({ length: C }, () => ({
|
|
637
638
|
alt: "",
|
|
638
|
-
id: `temp-${
|
|
639
|
+
id: `temp-${ne()}`,
|
|
639
640
|
name: "",
|
|
640
641
|
src: ""
|
|
641
642
|
}));
|
|
@@ -657,8 +658,8 @@ class Xi {
|
|
|
657
658
|
manualFormat: a,
|
|
658
659
|
size: F.size
|
|
659
660
|
});
|
|
660
|
-
let ht = et,
|
|
661
|
-
ht && n && n.length > 0 && (ht =
|
|
661
|
+
let ht = et, It = nt;
|
|
662
|
+
ht && n && n.length > 0 && (ht = Rt(ht, n), It = ""), this.data[D] = {
|
|
662
663
|
alt: F.name,
|
|
663
664
|
docType: F.docType,
|
|
664
665
|
extension: F.extension,
|
|
@@ -666,9 +667,9 @@ class Xi {
|
|
|
666
667
|
maxWidth: L,
|
|
667
668
|
name: F.name,
|
|
668
669
|
src: ht,
|
|
669
|
-
srcset:
|
|
670
|
+
srcset: It,
|
|
670
671
|
...i.reduce(
|
|
671
|
-
(
|
|
672
|
+
(Et, Tt) => (Et[Tt] = F[Tt] ?? "", Et),
|
|
672
673
|
{}
|
|
673
674
|
)
|
|
674
675
|
};
|
|
@@ -734,7 +735,7 @@ class Xi {
|
|
|
734
735
|
ft,
|
|
735
736
|
gt
|
|
736
737
|
];
|
|
737
|
-
return (await
|
|
738
|
+
return (await Re({
|
|
738
739
|
extraFields: [...S, ...g, ...c].filter((p) => p !== ""),
|
|
739
740
|
getPermanentAssetsPaths: !0,
|
|
740
741
|
isSiteBuilder: this.isSiteBuilder,
|
|
@@ -756,7 +757,7 @@ class Xi {
|
|
|
756
757
|
size: p[mt]
|
|
757
758
|
});
|
|
758
759
|
let C = w, D = u;
|
|
759
|
-
return C && r && r.length > 0 && (C =
|
|
760
|
+
return C && r && r.length > 0 && (C = Rt(C, r), D = ""), {
|
|
760
761
|
alt: p.name,
|
|
761
762
|
docType: p[ut],
|
|
762
763
|
extension: p[rt] || "",
|
|
@@ -848,11 +849,11 @@ class Xi {
|
|
|
848
849
|
this.resetPageCache();
|
|
849
850
|
}
|
|
850
851
|
}
|
|
851
|
-
const
|
|
852
|
-
var
|
|
853
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
852
|
+
const Ie = V`.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:var(--section-header-border-width,1px) solid var(--cx-color-neutral-200);background-color:var(--cx-color-neutral-50)}.asset-link-format__undo,.asset-link-format__reset{--color:var(--cx-color-primary);--background-color:transparent}`, Ee = V`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}`;
|
|
853
|
+
var Te = Object.defineProperty, He = Object.getOwnPropertyDescriptor, z = (t, e, i, s) => {
|
|
854
|
+
for (var a = s > 1 ? void 0 : s ? He(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
854
855
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
855
|
-
return s && a &&
|
|
856
|
+
return s && a && Te(e, i, a), a;
|
|
856
857
|
};
|
|
857
858
|
let v = class extends j {
|
|
858
859
|
constructor() {
|
|
@@ -968,7 +969,7 @@ let v = class extends j {
|
|
|
968
969
|
const [s, a] = e.split(":").map(Number);
|
|
969
970
|
if (this.unit === o.Pixel) {
|
|
970
971
|
let r = s, n = a;
|
|
971
|
-
Number.isFinite(this.maxWidth) && Number.isFinite(this.maxHeight) && ({ height: n, width: r } =
|
|
972
|
+
Number.isFinite(this.maxWidth) && Number.isFinite(this.maxHeight) && ({ height: n, width: r } = le(
|
|
972
973
|
this.maxWidth,
|
|
973
974
|
this.maxHeight,
|
|
974
975
|
s,
|
|
@@ -1131,16 +1132,16 @@ let v = class extends j {
|
|
|
1131
1132
|
})} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
|
|
1132
1133
|
}
|
|
1133
1134
|
};
|
|
1134
|
-
v.styles = [Q,
|
|
1135
|
+
v.styles = [Q, Ee];
|
|
1135
1136
|
v.dependencies = {
|
|
1136
1137
|
"cx-button": Y,
|
|
1137
1138
|
"cx-details": st,
|
|
1138
1139
|
"cx-divider": Vt,
|
|
1139
1140
|
"cx-icon": at,
|
|
1140
|
-
"cx-icon-button":
|
|
1141
|
-
"cx-input":
|
|
1141
|
+
"cx-icon-button": Pt,
|
|
1142
|
+
"cx-input": Ft,
|
|
1142
1143
|
"cx-option": vt,
|
|
1143
|
-
"cx-position-picker":
|
|
1144
|
+
"cx-position-picker": he,
|
|
1144
1145
|
"cx-select": zt,
|
|
1145
1146
|
"cx-space": B,
|
|
1146
1147
|
"cx-typography": q
|
|
@@ -1235,11 +1236,11 @@ z([
|
|
|
1235
1236
|
v = z([
|
|
1236
1237
|
X("cx-asset-link-format-crop")
|
|
1237
1238
|
], v);
|
|
1238
|
-
const
|
|
1239
|
-
var
|
|
1240
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1239
|
+
const We = V`.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%}}`;
|
|
1240
|
+
var De = Object.defineProperty, Ne = Object.getOwnPropertyDescriptor, Mt = (t, e, i, s) => {
|
|
1241
|
+
for (var a = s > 1 ? void 0 : s ? Ne(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1241
1242
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1242
|
-
return s && a &&
|
|
1243
|
+
return s && a && De(e, i, a), a;
|
|
1243
1244
|
};
|
|
1244
1245
|
let Z = class extends j {
|
|
1245
1246
|
constructor() {
|
|
@@ -1259,27 +1260,27 @@ let Z = class extends j {
|
|
|
1259
1260
|
)}</cx-select></cx-space>`;
|
|
1260
1261
|
}
|
|
1261
1262
|
};
|
|
1262
|
-
Z.styles = [Q,
|
|
1263
|
+
Z.styles = [Q, We];
|
|
1263
1264
|
Z.dependencies = {
|
|
1264
1265
|
"cx-option": vt,
|
|
1265
1266
|
"cx-select": zt,
|
|
1266
1267
|
"cx-space": B,
|
|
1267
1268
|
"cx-typography": q
|
|
1268
1269
|
};
|
|
1269
|
-
|
|
1270
|
+
Mt([
|
|
1270
1271
|
h({ reflect: !0, type: String })
|
|
1271
1272
|
], Z.prototype, "value", 2);
|
|
1272
|
-
|
|
1273
|
+
Mt([
|
|
1273
1274
|
h({ reflect: !1, type: Array })
|
|
1274
1275
|
], Z.prototype, "items", 2);
|
|
1275
|
-
Z =
|
|
1276
|
+
Z = Mt([
|
|
1276
1277
|
X("cx-asset-link-format-extension")
|
|
1277
1278
|
], Z);
|
|
1278
|
-
const
|
|
1279
|
-
var
|
|
1280
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1279
|
+
const Oe = V`cx-details::part(base){border-bottom-width:0}`;
|
|
1280
|
+
var Le = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, W = (t, e, i, s) => {
|
|
1281
|
+
for (var a = s > 1 ? void 0 : s ? Ue(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1281
1282
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1282
|
-
return s && a &&
|
|
1283
|
+
return s && a && Le(e, i, a), a;
|
|
1283
1284
|
};
|
|
1284
1285
|
const kt = "auto";
|
|
1285
1286
|
let I = class extends j {
|
|
@@ -1355,7 +1356,7 @@ let I = class extends j {
|
|
|
1355
1356
|
})} ?disabled=${this.scopedValue === this.committedValue} ?loading=${this.loading} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
|
|
1356
1357
|
}
|
|
1357
1358
|
};
|
|
1358
|
-
I.styles = [Q,
|
|
1359
|
+
I.styles = [Q, Oe];
|
|
1359
1360
|
I.dependencies = {
|
|
1360
1361
|
"cx-button": Y,
|
|
1361
1362
|
"cx-details": st,
|
|
@@ -1400,11 +1401,11 @@ W([
|
|
|
1400
1401
|
I = W([
|
|
1401
1402
|
X("cx-asset-link-format-proxy")
|
|
1402
1403
|
], I);
|
|
1403
|
-
const
|
|
1404
|
-
var
|
|
1405
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1404
|
+
const Be = V`cx-details::part(base){border-bottom-width:0}`;
|
|
1405
|
+
var qe = Object.defineProperty, je = Object.getOwnPropertyDescriptor, tt = (t, e, i, s) => {
|
|
1406
|
+
for (var a = s > 1 ? void 0 : s ? je(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1406
1407
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1407
|
-
return s && a &&
|
|
1408
|
+
return s && a && qe(e, i, a), a;
|
|
1408
1409
|
};
|
|
1409
1410
|
let H = class extends j {
|
|
1410
1411
|
constructor() {
|
|
@@ -1457,12 +1458,12 @@ let H = class extends j {
|
|
|
1457
1458
|
})} @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>`;
|
|
1458
1459
|
}
|
|
1459
1460
|
};
|
|
1460
|
-
H.styles = [Q,
|
|
1461
|
+
H.styles = [Q, Be];
|
|
1461
1462
|
H.dependencies = {
|
|
1462
1463
|
"cx-button": Y,
|
|
1463
1464
|
"cx-details": st,
|
|
1464
1465
|
"cx-icon": at,
|
|
1465
|
-
"cx-input":
|
|
1466
|
+
"cx-input": Ft,
|
|
1466
1467
|
"cx-space": B,
|
|
1467
1468
|
"cx-tooltip": Gt,
|
|
1468
1469
|
"cx-typography": q
|
|
@@ -1488,11 +1489,11 @@ tt([
|
|
|
1488
1489
|
H = tt([
|
|
1489
1490
|
X("cx-asset-link-format-quality")
|
|
1490
1491
|
], H);
|
|
1491
|
-
const
|
|
1492
|
-
var
|
|
1493
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1492
|
+
const Ve = V`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}`;
|
|
1493
|
+
var Ge = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, $ = (t, e, i, s) => {
|
|
1494
|
+
for (var a = s > 1 ? void 0 : s ? Qe(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1494
1495
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1495
|
-
return s && a &&
|
|
1496
|
+
return s && a && Ge(e, i, a), a;
|
|
1496
1497
|
};
|
|
1497
1498
|
let k = class extends j {
|
|
1498
1499
|
constructor() {
|
|
@@ -1649,13 +1650,13 @@ let k = class extends j {
|
|
|
1649
1650
|
})} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
|
|
1650
1651
|
}
|
|
1651
1652
|
};
|
|
1652
|
-
k.styles = [Q,
|
|
1653
|
+
k.styles = [Q, Ve];
|
|
1653
1654
|
k.dependencies = {
|
|
1654
1655
|
"cx-button": Y,
|
|
1655
1656
|
"cx-details": st,
|
|
1656
1657
|
"cx-icon": at,
|
|
1657
|
-
"cx-icon-button":
|
|
1658
|
-
"cx-input":
|
|
1658
|
+
"cx-icon-button": Pt,
|
|
1659
|
+
"cx-input": Ft,
|
|
1659
1660
|
"cx-option": vt,
|
|
1660
1661
|
"cx-select": zt,
|
|
1661
1662
|
"cx-space": B,
|
|
@@ -1721,11 +1722,11 @@ $([
|
|
|
1721
1722
|
k = $([
|
|
1722
1723
|
X("cx-asset-link-format-resize")
|
|
1723
1724
|
], k);
|
|
1724
|
-
const
|
|
1725
|
-
var
|
|
1726
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1725
|
+
const Xe = V`cx-details::part(base){border-bottom-width:0}`;
|
|
1726
|
+
var Ke = Object.defineProperty, Ze = Object.getOwnPropertyDescriptor, K = (t, e, i, s) => {
|
|
1727
|
+
for (var a = s > 1 ? void 0 : s ? Ze(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1727
1728
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1728
|
-
return s && a &&
|
|
1729
|
+
return s && a && Ke(e, i, a), a;
|
|
1729
1730
|
};
|
|
1730
1731
|
let T = class extends j {
|
|
1731
1732
|
constructor() {
|
|
@@ -1773,13 +1774,13 @@ let T = class extends j {
|
|
|
1773
1774
|
})} @cx-input=${this.handleRotationChange}></cx-input><cx-button data-testid="cx-asset-link-format-rotation-apply" variant="primary" ?disabled=${this.value === this.lastAppliedValue} ?loading=${this.loading} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></cx-space></cx-details>`;
|
|
1774
1775
|
}
|
|
1775
1776
|
};
|
|
1776
|
-
T.styles = [Q,
|
|
1777
|
+
T.styles = [Q, Xe];
|
|
1777
1778
|
T.dependencies = {
|
|
1778
1779
|
"cx-button": Y,
|
|
1779
|
-
"cx-button-group":
|
|
1780
|
+
"cx-button-group": ce,
|
|
1780
1781
|
"cx-details": st,
|
|
1781
1782
|
"cx-icon": at,
|
|
1782
|
-
"cx-icon-button":
|
|
1783
|
+
"cx-icon-button": Pt,
|
|
1783
1784
|
"cx-space": B,
|
|
1784
1785
|
"cx-typography": q
|
|
1785
1786
|
};
|
|
@@ -1807,11 +1808,11 @@ K([
|
|
|
1807
1808
|
T = K([
|
|
1808
1809
|
X("cx-asset-link-format-rotation")
|
|
1809
1810
|
], T);
|
|
1810
|
-
const
|
|
1811
|
-
var
|
|
1812
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1811
|
+
const Ye = V`cx-details::part(base){border-bottom-width:0}`;
|
|
1812
|
+
var Je = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, bt = (t, e, i, s) => {
|
|
1813
|
+
for (var a = s > 1 ? void 0 : s ? ti(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1813
1814
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1814
|
-
return s && a &&
|
|
1815
|
+
return s && a && Je(e, i, a), a;
|
|
1815
1816
|
};
|
|
1816
1817
|
let U = class extends j {
|
|
1817
1818
|
constructor() {
|
|
@@ -1842,10 +1843,10 @@ let U = class extends j {
|
|
|
1842
1843
|
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>`;
|
|
1843
1844
|
}
|
|
1844
1845
|
};
|
|
1845
|
-
U.styles = [Q,
|
|
1846
|
+
U.styles = [Q, Ye];
|
|
1846
1847
|
U.dependencies = {
|
|
1847
1848
|
"cx-button": Y,
|
|
1848
|
-
"cx-checkbox":
|
|
1849
|
+
"cx-checkbox": pe,
|
|
1849
1850
|
"cx-details": st,
|
|
1850
1851
|
"cx-icon": at,
|
|
1851
1852
|
"cx-space": B,
|
|
@@ -1864,10 +1865,10 @@ bt([
|
|
|
1864
1865
|
U = bt([
|
|
1865
1866
|
X("cx-asset-link-format-metadata")
|
|
1866
1867
|
], U);
|
|
1867
|
-
var
|
|
1868
|
-
for (var a = s > 1 ? void 0 : s ?
|
|
1868
|
+
var ei = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, y = (t, e, i, s) => {
|
|
1869
|
+
for (var a = s > 1 ? void 0 : s ? ii(e, i) : e, r = t.length - 1, n; r >= 0; r--)
|
|
1869
1870
|
(n = t[r]) && (a = (s ? n(e, i, a) : n(a)) || a);
|
|
1870
|
-
return s && a &&
|
|
1871
|
+
return s && a && ei(e, i, a), a;
|
|
1871
1872
|
};
|
|
1872
1873
|
let m = class extends j {
|
|
1873
1874
|
constructor() {
|
|
@@ -1967,7 +1968,7 @@ let m = class extends j {
|
|
|
1967
1968
|
}, this.rotation = 0, this.defaultSize = {
|
|
1968
1969
|
height: 0,
|
|
1969
1970
|
width: 0
|
|
1970
|
-
}, this.cropperElement = null, this.parameters = [], this.loading = !1, this.lastAction = void 0, this.frozenIndex = void 0, this.preResetTransformations = void 0, this.preResetAutoFormat = void 0, this.preResetSelectedProxy = void 0, this.apiGetTransformAssetLink =
|
|
1971
|
+
}, this.cropperElement = null, this.parameters = [], this.loading = !1, this.lastAction = void 0, this.frozenIndex = void 0, this.preResetTransformations = void 0, this.preResetAutoFormat = void 0, this.preResetSelectedProxy = void 0, this.apiGetTransformAssetLink = Ce, this.apiGetCropFocusMode = Pe, this.onCropComplete = this.onCropComplete.bind(this), this.onCropDragStart = this.onCropDragStart.bind(this);
|
|
1971
1972
|
}
|
|
1972
1973
|
/**
|
|
1973
1974
|
* Transform requests must resolve to a web-displayable image (the browser renders the
|
|
@@ -1976,7 +1977,7 @@ let m = class extends j {
|
|
|
1976
1977
|
* extension fallback in asset-transformation-dialog.
|
|
1977
1978
|
*/
|
|
1978
1979
|
static getTransformExtension(t) {
|
|
1979
|
-
return !t ||
|
|
1980
|
+
return !t || Me(t) ? t : "jpg";
|
|
1980
1981
|
}
|
|
1981
1982
|
/** True when there are transformations beyond the frozen index (i.e. user has added new ones). */
|
|
1982
1983
|
get hasUnfrozenTransformations() {
|
|
@@ -3172,7 +3173,7 @@ let m = class extends j {
|
|
|
3172
3173
|
)}</div>`;
|
|
3173
3174
|
}
|
|
3174
3175
|
};
|
|
3175
|
-
m.styles = [Q,
|
|
3176
|
+
m.styles = [Q, Ie];
|
|
3176
3177
|
m.dependencies = {
|
|
3177
3178
|
"cx-asset-link-format-crop": v,
|
|
3178
3179
|
"cx-asset-link-format-extension": Z,
|
|
@@ -3313,27 +3314,27 @@ m = y([
|
|
|
3313
3314
|
], m);
|
|
3314
3315
|
export {
|
|
3315
3316
|
m as C,
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3317
|
+
Qi as F,
|
|
3318
|
+
_t as M,
|
|
3319
|
+
Re as a,
|
|
3319
3320
|
Zt as b,
|
|
3320
3321
|
rt as c,
|
|
3321
3322
|
xt as d,
|
|
3322
3323
|
Qt as e,
|
|
3323
|
-
|
|
3324
|
+
ye as f,
|
|
3324
3325
|
Xt as g,
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3326
|
+
Vi as h,
|
|
3327
|
+
Me as i,
|
|
3328
|
+
Gi as j,
|
|
3329
|
+
ji as k,
|
|
3329
3330
|
ut as l,
|
|
3330
3331
|
mt as m,
|
|
3331
3332
|
Dt as n,
|
|
3332
3333
|
ft as o,
|
|
3333
3334
|
gt as p,
|
|
3334
3335
|
Nt as q,
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3336
|
+
Ui as r,
|
|
3337
|
+
Bi as s,
|
|
3338
|
+
qi as t,
|
|
3339
|
+
de as u
|
|
3339
3340
|
};
|