@orangelogic/design-system 2.67.0 → 2.68.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.
|
@@ -216,7 +216,7 @@ var mt = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, g = (t, e,
|
|
|
216
216
|
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
217
217
|
return s && a && mt(e, i, a), a;
|
|
218
218
|
};
|
|
219
|
-
let
|
|
219
|
+
let u = class extends F {
|
|
220
220
|
constructor() {
|
|
221
221
|
super(...arguments), this.localize = new O(this), this.open = !1, this.width = 0, this.height = 0, this.maxWidth = 0, this.maxHeight = 0, this.ratioWidth = 1, this.ratioHeight = 1, this.percentageWidth = 0, this.percentageHeight = 0, this.unit = o.Pixel, this.disabledApply = !1, this.lastAppliedSetting = {
|
|
222
222
|
[o.Pixel]: {
|
|
@@ -573,8 +573,8 @@ let d = class extends F {
|
|
|
573
573
|
</cx-details>`;
|
|
574
574
|
}
|
|
575
575
|
};
|
|
576
|
-
|
|
577
|
-
|
|
576
|
+
u.styles = [E, gt];
|
|
577
|
+
u.dependencies = {
|
|
578
578
|
"cx-button": q,
|
|
579
579
|
"cx-details": L,
|
|
580
580
|
"cx-divider": nt,
|
|
@@ -588,82 +588,82 @@ d.dependencies = {
|
|
|
588
588
|
};
|
|
589
589
|
g([
|
|
590
590
|
T(".details")
|
|
591
|
-
],
|
|
591
|
+
], u.prototype, "base", 2);
|
|
592
592
|
g([
|
|
593
593
|
l({ reflect: !0, type: Boolean })
|
|
594
|
-
],
|
|
594
|
+
], u.prototype, "open", 2);
|
|
595
595
|
g([
|
|
596
596
|
l({ reflect: !0, type: Number })
|
|
597
|
-
],
|
|
597
|
+
], u.prototype, "width", 2);
|
|
598
598
|
g([
|
|
599
599
|
l({ reflect: !0, type: Number })
|
|
600
|
-
],
|
|
600
|
+
], u.prototype, "height", 2);
|
|
601
601
|
g([
|
|
602
602
|
l({ attribute: "max-width", reflect: !0, type: Number })
|
|
603
|
-
],
|
|
603
|
+
], u.prototype, "maxWidth", 2);
|
|
604
604
|
g([
|
|
605
605
|
l({ attribute: "max-height", reflect: !0, type: Number })
|
|
606
|
-
],
|
|
606
|
+
], u.prototype, "maxHeight", 2);
|
|
607
607
|
g([
|
|
608
608
|
l({ attribute: "ratio-width", reflect: !0, type: Number })
|
|
609
|
-
],
|
|
609
|
+
], u.prototype, "ratioWidth", 2);
|
|
610
610
|
g([
|
|
611
611
|
l({ attribute: "ratio-height", reflect: !0, type: Number })
|
|
612
|
-
],
|
|
612
|
+
], u.prototype, "ratioHeight", 2);
|
|
613
613
|
g([
|
|
614
614
|
l({ attribute: "percentage-width", reflect: !0, type: Number })
|
|
615
|
-
],
|
|
615
|
+
], u.prototype, "percentageWidth", 2);
|
|
616
616
|
g([
|
|
617
617
|
l({ attribute: "percentage-height", reflect: !0, type: Number })
|
|
618
|
-
],
|
|
618
|
+
], u.prototype, "percentageHeight", 2);
|
|
619
619
|
g([
|
|
620
620
|
l({ reflect: !0, type: String })
|
|
621
|
-
],
|
|
621
|
+
], u.prototype, "unit", 2);
|
|
622
622
|
g([
|
|
623
623
|
l({ attribute: "disabled-apply", reflect: !0, type: Boolean })
|
|
624
|
-
],
|
|
624
|
+
], u.prototype, "disabledApply", 2);
|
|
625
625
|
g([
|
|
626
626
|
l({ attribute: "last-applied-setting", reflect: !1, type: Object })
|
|
627
|
-
],
|
|
627
|
+
], u.prototype, "lastAppliedSetting", 2);
|
|
628
628
|
g([
|
|
629
629
|
l({ reflect: !0, type: Boolean })
|
|
630
|
-
],
|
|
630
|
+
], u.prototype, "loading", 2);
|
|
631
631
|
g([
|
|
632
632
|
l({ attribute: "crop-modes", reflect: !1, type: Array })
|
|
633
|
-
],
|
|
633
|
+
], u.prototype, "cropModes", 2);
|
|
634
634
|
g([
|
|
635
635
|
l({ attribute: "focus-modes", reflect: !1, type: Object })
|
|
636
|
-
],
|
|
636
|
+
], u.prototype, "focusModes", 2);
|
|
637
637
|
g([
|
|
638
638
|
l({ attribute: "focus-mode", reflect: !0, type: String })
|
|
639
|
-
],
|
|
639
|
+
], u.prototype, "focusMode", 2);
|
|
640
640
|
g([
|
|
641
641
|
l({ attribute: "crop-mode", reflect: !0, type: String })
|
|
642
|
-
],
|
|
642
|
+
], u.prototype, "cropMode", 2);
|
|
643
643
|
g([
|
|
644
644
|
l({ attribute: "keep-aspect-ratio", reflect: !0, type: Boolean })
|
|
645
|
-
],
|
|
645
|
+
], u.prototype, "keepAspectRatio", 2);
|
|
646
646
|
g([
|
|
647
647
|
z()
|
|
648
|
-
],
|
|
648
|
+
], u.prototype, "invalidWidth", 2);
|
|
649
649
|
g([
|
|
650
650
|
z()
|
|
651
|
-
],
|
|
651
|
+
], u.prototype, "invalidHeight", 2);
|
|
652
652
|
g([
|
|
653
653
|
z()
|
|
654
|
-
],
|
|
654
|
+
], u.prototype, "aspectRatio", 2);
|
|
655
655
|
g([
|
|
656
656
|
k("cropMode", { waitUntilFirstUpdate: !0 }),
|
|
657
657
|
k("maxWidth", { waitUntilFirstUpdate: !0 }),
|
|
658
658
|
k("maxHeight", { waitUntilFirstUpdate: !0 }),
|
|
659
659
|
k("keepAspectRatio")
|
|
660
|
-
],
|
|
660
|
+
], u.prototype, "handleCropModeChange", 1);
|
|
661
661
|
g([
|
|
662
662
|
k("open")
|
|
663
|
-
],
|
|
664
|
-
|
|
663
|
+
], u.prototype, "handleOpenChange", 1);
|
|
664
|
+
u = g([
|
|
665
665
|
N("cx-asset-link-format-crop")
|
|
666
|
-
],
|
|
666
|
+
], u);
|
|
667
667
|
const ft = D`
|
|
668
668
|
.extension {
|
|
669
669
|
padding: var(--cx-spacing-small) var(--cx-spacing-medium);
|
|
@@ -1566,14 +1566,14 @@ Z([
|
|
|
1566
1566
|
P = Z([
|
|
1567
1567
|
N("cx-asset-link-format-metadata")
|
|
1568
1568
|
], P);
|
|
1569
|
-
var Et = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor,
|
|
1569
|
+
var Et = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor, d = (t, e, i, s) => {
|
|
1570
1570
|
for (var a = s > 1 ? void 0 : s ? Nt(e, i) : e, h = t.length - 1, r; h >= 0; h--)
|
|
1571
1571
|
(r = t[h]) && (a = (s ? r(e, i, a) : r(a)) || a);
|
|
1572
1572
|
return s && a && Et(e, i, a), a;
|
|
1573
1573
|
};
|
|
1574
1574
|
let p = class extends F {
|
|
1575
1575
|
constructor() {
|
|
1576
|
-
super(), this.localize = new O(this), this.baseUrl = void 0, this.asset = void 0, this.cropModes = [
|
|
1576
|
+
super(), this.localize = new O(this), this.baseUrl = void 0, this.token = void 0, this.asset = void 0, this.cropModes = [
|
|
1577
1577
|
{
|
|
1578
1578
|
label: "Free",
|
|
1579
1579
|
value: "free"
|
|
@@ -1789,6 +1789,7 @@ let p = class extends F {
|
|
|
1789
1789
|
assetId: this.asset.id,
|
|
1790
1790
|
extension: this.asset.extension,
|
|
1791
1791
|
format: e?.proxyName ?? "",
|
|
1792
|
+
token: this.token,
|
|
1792
1793
|
transformations: this.transformationString
|
|
1793
1794
|
}).then((s) => {
|
|
1794
1795
|
this.loading = !1, !(!s?.relativePath || !this.selectedFormat) && (this.lastAction === c.Rotate && (this.rotation = 0), this.lastAction = void 0, this.lastImageSize = {
|
|
@@ -1838,6 +1839,7 @@ let p = class extends F {
|
|
|
1838
1839
|
assetId: this.asset.id,
|
|
1839
1840
|
extension: this.selectedFormat.extension,
|
|
1840
1841
|
format: t?.proxyName ?? "",
|
|
1842
|
+
token: this.token,
|
|
1841
1843
|
transformations: this.transformationString
|
|
1842
1844
|
});
|
|
1843
1845
|
if (this.loading = !1, !e?.relativePath || !this.selectedFormat)
|
|
@@ -2513,7 +2515,7 @@ let p = class extends F {
|
|
|
2513
2515
|
};
|
|
2514
2516
|
p.styles = [E, ut];
|
|
2515
2517
|
p.dependencies = {
|
|
2516
|
-
"cx-asset-link-format-crop":
|
|
2518
|
+
"cx-asset-link-format-crop": u,
|
|
2517
2519
|
"cx-asset-link-format-extension": U,
|
|
2518
2520
|
"cx-asset-link-format-metadata": P,
|
|
2519
2521
|
"cx-asset-link-format-proxy": C,
|
|
@@ -2524,91 +2526,94 @@ p.dependencies = {
|
|
|
2524
2526
|
"cx-space": H,
|
|
2525
2527
|
"cx-typography": W
|
|
2526
2528
|
};
|
|
2527
|
-
|
|
2528
|
-
l({ attribute: "base-url",
|
|
2529
|
+
d([
|
|
2530
|
+
l({ attribute: "base-url", type: String })
|
|
2529
2531
|
], p.prototype, "baseUrl", 2);
|
|
2530
|
-
|
|
2532
|
+
d([
|
|
2533
|
+
l({ attribute: "token", type: String })
|
|
2534
|
+
], p.prototype, "token", 2);
|
|
2535
|
+
d([
|
|
2531
2536
|
l({ reflect: !1, type: Object })
|
|
2532
2537
|
], p.prototype, "asset", 2);
|
|
2533
|
-
|
|
2538
|
+
d([
|
|
2534
2539
|
l({ attribute: "crop-modes", reflect: !1, type: Array })
|
|
2535
2540
|
], p.prototype, "cropModes", 2);
|
|
2536
|
-
|
|
2541
|
+
d([
|
|
2537
2542
|
l({ attribute: "focus-modes", reflect: !1, type: Object })
|
|
2538
2543
|
], p.prototype, "focusModes", 2);
|
|
2539
|
-
|
|
2544
|
+
d([
|
|
2540
2545
|
l({ reflect: !1, type: Array })
|
|
2541
2546
|
], p.prototype, "extensions", 2);
|
|
2542
|
-
|
|
2547
|
+
d([
|
|
2543
2548
|
l({ reflect: !1, type: Array })
|
|
2544
2549
|
], p.prototype, "proxies", 2);
|
|
2545
|
-
|
|
2550
|
+
d([
|
|
2546
2551
|
l({ attribute: "for-cropper", reflect: !0, type: String })
|
|
2547
2552
|
], p.prototype, "forCropper", 2);
|
|
2548
|
-
|
|
2553
|
+
d([
|
|
2549
2554
|
l({ attribute: "use-session", reflect: !0, type: String })
|
|
2550
2555
|
], p.prototype, "useSession", 2);
|
|
2551
|
-
|
|
2556
|
+
d([
|
|
2552
2557
|
l({ reflect: !1, type: Array })
|
|
2553
2558
|
], p.prototype, "transformations", 2);
|
|
2554
|
-
|
|
2559
|
+
d([
|
|
2555
2560
|
l({ attribute: "selected-proxy", reflect: !0, type: String })
|
|
2556
2561
|
], p.prototype, "selectedProxy", 2);
|
|
2557
|
-
|
|
2562
|
+
d([
|
|
2558
2563
|
l({ attribute: "use-custom-extension", reflect: !0, type: Boolean })
|
|
2559
2564
|
], p.prototype, "useCustomExtension", 2);
|
|
2560
|
-
|
|
2565
|
+
d([
|
|
2561
2566
|
l({ attribute: "last-image-size", reflect: !1, type: Object })
|
|
2562
2567
|
], p.prototype, "lastImageSize", 2);
|
|
2563
|
-
|
|
2568
|
+
d([
|
|
2564
2569
|
l({ attribute: "hide-header", reflect: !1, type: Boolean })
|
|
2565
2570
|
], p.prototype, "hideHeader", 2);
|
|
2566
|
-
|
|
2571
|
+
d([
|
|
2567
2572
|
l({ attribute: !1, reflect: !1, type: Object })
|
|
2568
2573
|
], p.prototype, "queryElement", 2);
|
|
2569
|
-
|
|
2574
|
+
d([
|
|
2570
2575
|
z()
|
|
2571
2576
|
], p.prototype, "activeSetting", 2);
|
|
2572
|
-
|
|
2577
|
+
d([
|
|
2573
2578
|
z()
|
|
2574
2579
|
], p.prototype, "selectedFormat", 2);
|
|
2575
|
-
|
|
2580
|
+
d([
|
|
2576
2581
|
z()
|
|
2577
2582
|
], p.prototype, "resizeSize", 2);
|
|
2578
|
-
|
|
2583
|
+
d([
|
|
2579
2584
|
z()
|
|
2580
2585
|
], p.prototype, "cropSize", 2);
|
|
2581
|
-
|
|
2586
|
+
d([
|
|
2582
2587
|
z()
|
|
2583
2588
|
], p.prototype, "rotation", 2);
|
|
2584
|
-
|
|
2589
|
+
d([
|
|
2585
2590
|
z()
|
|
2586
2591
|
], p.prototype, "defaultSize", 2);
|
|
2587
|
-
|
|
2592
|
+
d([
|
|
2588
2593
|
z()
|
|
2589
2594
|
], p.prototype, "cropperElement", 2);
|
|
2590
|
-
|
|
2595
|
+
d([
|
|
2591
2596
|
z()
|
|
2592
2597
|
], p.prototype, "parameters", 2);
|
|
2593
|
-
|
|
2598
|
+
d([
|
|
2594
2599
|
z()
|
|
2595
2600
|
], p.prototype, "loading", 2);
|
|
2596
|
-
|
|
2601
|
+
d([
|
|
2597
2602
|
z()
|
|
2598
2603
|
], p.prototype, "lastAction", 2);
|
|
2599
|
-
|
|
2604
|
+
d([
|
|
2600
2605
|
z()
|
|
2601
2606
|
], p.prototype, "frozenIndex", 2);
|
|
2602
|
-
|
|
2607
|
+
d([
|
|
2603
2608
|
k(["transformations"])
|
|
2604
2609
|
], p.prototype, "handleTransformationsChange", 1);
|
|
2605
|
-
|
|
2610
|
+
d([
|
|
2606
2611
|
k("selectedProxy")
|
|
2607
2612
|
], p.prototype, "handleSelectedProxyChange", 1);
|
|
2608
|
-
|
|
2613
|
+
d([
|
|
2609
2614
|
k("loading")
|
|
2610
2615
|
], p.prototype, "handleLoadingChange", 1);
|
|
2611
|
-
p =
|
|
2616
|
+
p = d([
|
|
2612
2617
|
N("cx-asset-link-format")
|
|
2613
2618
|
], p);
|
|
2614
2619
|
export {
|
package/library/package.json
CHANGED
|
@@ -42,6 +42,10 @@ export default class CxAssetLinkFormat extends CortexElement {
|
|
|
42
42
|
* @example 'https://qa-latest.orangelogic.com'
|
|
43
43
|
*/
|
|
44
44
|
baseUrl: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The token used for authentication with the asset service.
|
|
47
|
+
*/
|
|
48
|
+
token: string | undefined;
|
|
45
49
|
/**
|
|
46
50
|
* The asset to be formatted.
|
|
47
51
|
* This is an object that contains the asset's details such as ID, original URL, image URL, width, and height.
|
|
@@ -6671,6 +6671,10 @@
|
|
|
6671
6671
|
* The base URL for the asset service. This URL is used to fetch the asset link and apply transformations. This is useful for integration with different environments that are outside of the Orange Logic platform, such as Content Browser SDK. If not provided, the component will use the current window location as the base URL. <br/>@example 'https://qa-latest.orangelogic.com'
|
|
6672
6672
|
*/
|
|
6673
6673
|
baseUrl?: string;
|
|
6674
|
+
/**
|
|
6675
|
+
* The token used for authentication with the asset service.
|
|
6676
|
+
*/
|
|
6677
|
+
token?: string;
|
|
6674
6678
|
/**
|
|
6675
6679
|
* The asset to be formatted. This is an object that contains the asset's details such as ID, original URL, image URL, width, and height. This property is required for the component to function correctly.
|
|
6676
6680
|
*/
|