@orangelogic/design-system 2.89.0 → 2.90.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.
|
@@ -10,7 +10,7 @@ import { c as N } from "../chunks/custom-element.L4WJXn1j.js";
|
|
|
10
10
|
import { L as O } from "../chunks/i18n.CgwQHLcP.js";
|
|
11
11
|
import { w as k } from "../chunks/watch.BCJD77bD.js";
|
|
12
12
|
import { s as it, c as st } from "../chunks/number.CjNxU7Xs.js";
|
|
13
|
-
import { i as
|
|
13
|
+
import { i as U, x as b, E as lt } from "../chunks/lit-element.jLBm65_O.js";
|
|
14
14
|
import { r as z } from "../chunks/state.CSDxrqLd.js";
|
|
15
15
|
import { n as G } from "../chunks/when.Dr1es41R.js";
|
|
16
16
|
import L from "./details.js";
|
|
@@ -27,7 +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 =
|
|
30
|
+
const ut = U`.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}`;
|
|
31
31
|
function J({
|
|
32
32
|
asset: t,
|
|
33
33
|
baseUrl: e,
|
|
@@ -166,7 +166,7 @@ function J({
|
|
|
166
166
|
);
|
|
167
167
|
}), w.length > 0 && (r += `?${w.join("&")}`), r.endsWith("/") && (r = r.slice(0, -1)), r;
|
|
168
168
|
}
|
|
169
|
-
const gt =
|
|
169
|
+
const gt = U`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}`;
|
|
170
170
|
var mt = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, f = (t, e, i, s) => {
|
|
171
171
|
for (var a = s > 1 ? void 0 : s ? xt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
172
172
|
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
@@ -519,13 +519,13 @@ f([
|
|
|
519
519
|
u = f([
|
|
520
520
|
N("cx-asset-link-format-crop")
|
|
521
521
|
], u);
|
|
522
|
-
const ft =
|
|
522
|
+
const ft = U`.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%}}`;
|
|
523
523
|
var yt = Object.defineProperty, vt = Object.getOwnPropertyDescriptor, et = (t, e, i, s) => {
|
|
524
524
|
for (var a = s > 1 ? void 0 : s ? vt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
525
525
|
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
526
526
|
return s && a && yt(e, i, a), a;
|
|
527
527
|
};
|
|
528
|
-
let
|
|
528
|
+
let D = class extends F {
|
|
529
529
|
constructor() {
|
|
530
530
|
super(...arguments), this.localize = new O(this), this.value = "", this.items = [];
|
|
531
531
|
}
|
|
@@ -543,8 +543,8 @@ let U = class extends F {
|
|
|
543
543
|
)}</cx-select></cx-space>`;
|
|
544
544
|
}
|
|
545
545
|
};
|
|
546
|
-
|
|
547
|
-
|
|
546
|
+
D.styles = [E, ft];
|
|
547
|
+
D.dependencies = {
|
|
548
548
|
"cx-option": X,
|
|
549
549
|
"cx-select": Y,
|
|
550
550
|
"cx-space": H,
|
|
@@ -552,14 +552,14 @@ U.dependencies = {
|
|
|
552
552
|
};
|
|
553
553
|
et([
|
|
554
554
|
l({ reflect: !0, type: String })
|
|
555
|
-
],
|
|
555
|
+
], D.prototype, "value", 2);
|
|
556
556
|
et([
|
|
557
557
|
l({ reflect: !1, type: Array })
|
|
558
|
-
],
|
|
559
|
-
|
|
558
|
+
], D.prototype, "items", 2);
|
|
559
|
+
D = et([
|
|
560
560
|
N("cx-asset-link-format-extension")
|
|
561
|
-
],
|
|
562
|
-
const wt =
|
|
561
|
+
], D);
|
|
562
|
+
const wt = U`cx-details::part(base){border-bottom-width:0}`;
|
|
563
563
|
var zt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, _ = (t, e, i, s) => {
|
|
564
564
|
for (var a = s > 1 ? void 0 : s ? St(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
565
565
|
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
@@ -657,7 +657,7 @@ _([
|
|
|
657
657
|
C = _([
|
|
658
658
|
N("cx-asset-link-format-proxy")
|
|
659
659
|
], C);
|
|
660
|
-
const bt =
|
|
660
|
+
const bt = U`cx-details::part(base){border-bottom-width:0}`;
|
|
661
661
|
var kt = Object.defineProperty, $t = Object.getOwnPropertyDescriptor, I = (t, e, i, s) => {
|
|
662
662
|
for (var a = s > 1 ? void 0 : s ? $t(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
663
663
|
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
@@ -745,7 +745,7 @@ I([
|
|
|
745
745
|
A = I([
|
|
746
746
|
N("cx-asset-link-format-quality")
|
|
747
747
|
], A);
|
|
748
|
-
const Ct =
|
|
748
|
+
const Ct = U`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}`;
|
|
749
749
|
var At = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, S = (t, e, i, s) => {
|
|
750
750
|
for (var a = s > 1 ? void 0 : s ? Rt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
751
751
|
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
@@ -967,7 +967,7 @@ S([
|
|
|
967
967
|
v = S([
|
|
968
968
|
N("cx-asset-link-format-resize")
|
|
969
969
|
], v);
|
|
970
|
-
const Mt =
|
|
970
|
+
const Mt = U`cx-details::part(base){border-bottom-width:0}`;
|
|
971
971
|
var _t = Object.defineProperty, Pt = Object.getOwnPropertyDescriptor, V = (t, e, i, s) => {
|
|
972
972
|
for (var a = s > 1 ? void 0 : s ? Pt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
973
973
|
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
@@ -1049,7 +1049,7 @@ V([
|
|
|
1049
1049
|
R = V([
|
|
1050
1050
|
N("cx-asset-link-format-rotation")
|
|
1051
1051
|
], R);
|
|
1052
|
-
const Ht =
|
|
1052
|
+
const Ht = U`cx-details::part(base){border-bottom-width:0}`;
|
|
1053
1053
|
var Wt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, Z = (t, e, i, s) => {
|
|
1054
1054
|
for (var a = s > 1 ? void 0 : s ? Ft(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
1055
1055
|
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
@@ -1329,6 +1329,7 @@ let p = class extends F {
|
|
|
1329
1329
|
assetId: this.asset.id,
|
|
1330
1330
|
extension: this.asset.extension,
|
|
1331
1331
|
format: e?.proxyName ?? "",
|
|
1332
|
+
siteUrl: this.baseUrl,
|
|
1332
1333
|
token: this.token,
|
|
1333
1334
|
transformations: this.transformationString
|
|
1334
1335
|
}).then((s) => {
|
|
@@ -1379,6 +1380,7 @@ let p = class extends F {
|
|
|
1379
1380
|
assetId: this.asset.id,
|
|
1380
1381
|
extension: this.selectedFormat.extension,
|
|
1381
1382
|
format: t?.proxyName ?? "",
|
|
1383
|
+
siteUrl: this.baseUrl,
|
|
1382
1384
|
token: this.token,
|
|
1383
1385
|
transformations: this.transformationString
|
|
1384
1386
|
});
|
|
@@ -1631,7 +1633,10 @@ let p = class extends F {
|
|
|
1631
1633
|
width: s,
|
|
1632
1634
|
x: a,
|
|
1633
1635
|
y: h
|
|
1634
|
-
} = e
|
|
1636
|
+
} = e;
|
|
1637
|
+
if (s === 0 || i === 0)
|
|
1638
|
+
return;
|
|
1639
|
+
const r = this.cropSize.percentageWidth !== s, y = this.cropSize.percentageHeight !== i;
|
|
1635
1640
|
let w = this.cropSize.height, x = this.cropSize.width;
|
|
1636
1641
|
r && (x = Math.round(s * this.selectedFormat.width / 100)), y && (w = Math.round(
|
|
1637
1642
|
i * this.selectedFormat.height / 100
|
|
@@ -1951,7 +1956,7 @@ let p = class extends F {
|
|
|
1951
1956
|
p.styles = [E, ut];
|
|
1952
1957
|
p.dependencies = {
|
|
1953
1958
|
"cx-asset-link-format-crop": u,
|
|
1954
|
-
"cx-asset-link-format-extension":
|
|
1959
|
+
"cx-asset-link-format-extension": D,
|
|
1955
1960
|
"cx-asset-link-format-metadata": P,
|
|
1956
1961
|
"cx-asset-link-format-proxy": C,
|
|
1957
1962
|
"cx-asset-link-format-quality": A,
|
package/library/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orangelogic/design-system",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.90.0",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"types": "library/types.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"build-worker": "vite build --config ./vite.worker.config.js",
|
|
11
11
|
"build": "vite build --config vite.config.ts && bun run build-worker && node ./scripts/remove-index-html-file.js && node ./scripts/copy-entry-file.js",
|
|
12
12
|
"start": "vite",
|
|
13
|
+
"dev-build": "vite build --config vite.dev-build.config.ts",
|
|
13
14
|
"open": "npx playwright test --project=chromium --ui",
|
|
14
15
|
"playwright": "npx playwright test --project=chromium",
|
|
15
16
|
"build-library": "bun run build && vite build --config ./vite.library.config.ts",
|
|
@@ -27,8 +28,12 @@
|
|
|
27
28
|
"types": "./library/types.d.ts"
|
|
28
29
|
},
|
|
29
30
|
"./components/*": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
31
|
+
"types": "./library/components/*.d.ts",
|
|
32
|
+
"import": "./library/components/*.js"
|
|
33
|
+
},
|
|
34
|
+
"./components/*.js": {
|
|
35
|
+
"types": "./library/components/*.d.ts",
|
|
36
|
+
"import": "./library/components/*.js"
|
|
32
37
|
},
|
|
33
38
|
"./utils": {
|
|
34
39
|
"types": "./library/utils.d.ts",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orangelogic/design-system",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.90.0",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"types": "library/types.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"build-worker": "vite build --config ./vite.worker.config.js",
|
|
11
11
|
"build": "vite build --config vite.config.ts && bun run build-worker && node ./scripts/remove-index-html-file.js && node ./scripts/copy-entry-file.js",
|
|
12
12
|
"start": "vite",
|
|
13
|
+
"dev-build": "vite build --config vite.dev-build.config.ts",
|
|
13
14
|
"open": "npx playwright test --project=chromium --ui",
|
|
14
15
|
"playwright": "npx playwright test --project=chromium",
|
|
15
16
|
"build-library": "bun run build && vite build --config ./vite.library.config.ts",
|
|
@@ -27,8 +28,12 @@
|
|
|
27
28
|
"types": "./library/types.d.ts"
|
|
28
29
|
},
|
|
29
30
|
"./components/*": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
31
|
+
"types": "./library/components/*.d.ts",
|
|
32
|
+
"import": "./library/components/*.js"
|
|
33
|
+
},
|
|
34
|
+
"./components/*.js": {
|
|
35
|
+
"types": "./library/components/*.d.ts",
|
|
36
|
+
"import": "./library/components/*.js"
|
|
32
37
|
},
|
|
33
38
|
"./utils": {
|
|
34
39
|
"types": "./library/utils.d.ts",
|