@orangelogic/design-system 3.79.0 → 3.81.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/{alert.D8Gwfkvy.js → alert.B2tfKtSz.js} +2 -2
- package/library/chunks/{array-line-clamp.B1e77kEp.js → array-line-clamp.eDLjR1nZ.js} +2 -2
- package/library/chunks/{asset-link-format.PQt5Mb9Q.js → asset-link-format.BCaHv6rQ.js} +394 -388
- package/library/chunks/{audio.DOJNYr0C.js → audio.Dr0Hus7H.js} +8 -5
- package/library/chunks/{bicolor-picker.B8Og3cEe.js → bicolor-picker.BIxYmH8T.js} +1 -1
- package/library/chunks/{block-width.BgXEUBL9.js → block-width.DDBxasyy.js} +484 -460
- package/library/chunks/{border-input-group.D3fEj_NT.js → border-input-group.DYJ0TvAS.js} +3 -3
- package/library/chunks/{breadcrumb.C_NpOjQB.js → breadcrumb.WKQKC3f1.js} +1 -1
- package/library/chunks/{button.DeRJNqpr.js → button.D58Q0tW6.js} +2 -2
- package/library/chunks/{color-picker.YQfGbc4_.js → color-picker.DQzgEk7r.js} +10 -10
- package/library/chunks/{color-swatch-group.BQxH1WM1.js → color-swatch-group.D6W7Zrig.js} +60 -60
- package/library/chunks/{color-swatch.-69F8jvl.js → color-swatch.DlzNqa0X.js} +3 -3
- package/library/chunks/{config-manager.BO-EItzn.js → config-manager.CXUj_qfl.js} +36 -36
- package/library/chunks/{configs-controller.DS_tmFst.js → configs-controller.C34CcFSA.js} +65 -65
- package/library/chunks/{confirm-popover.D3kp6Bg-.js → confirm-popover.BF6FfiVI.js} +4 -4
- package/library/chunks/{copy-button.B4Q_8B50.js → copy-button.BzYFM1nx.js} +2 -2
- package/library/chunks/{corner-position-input-group.lsTSrT61.js → corner-position-input-group.Aos2Z9cJ.js} +4 -4
- package/library/chunks/{date-calendar.Dc3XKO0t.js → date-calendar.DzLGaro8.js} +1 -1
- package/library/chunks/{details.BacO3ROq.js → details.B_IIkM1I.js} +1 -1
- package/library/chunks/{dialog.CfbeRoZl.js → dialog.Cagz5vxR.js} +3 -3
- package/library/chunks/{document-viewer.CJ8zqnoz.js → document-viewer.BKdDZ9MG.js} +28 -19
- package/library/chunks/{dot-pagination.CH4nRyA8.js → dot-pagination.ka2dgd3K.js} +2 -2
- package/library/chunks/{drawer.DdZl0Tae.js → drawer.CqpMBED_.js} +2 -2
- package/library/chunks/{dropdown.CHSfZeHp.js → dropdown.DhjYWqJb.js} +4 -4
- package/library/chunks/{dynamic-select.BLoP9tvq.js → dynamic-select.L12vKCOX.js} +5 -5
- package/library/chunks/{e-chart.fGTLKIDX.js → e-chart.CAAz1JC5.js} +2 -2
- package/library/chunks/{element-clamp.BXz2Lc5M.js → element-clamp.M1T8iWvk.js} +2 -2
- package/library/chunks/{file-on-demand.bgCbasKa.js → file-on-demand.BAwB-Znv.js} +17 -17
- package/library/chunks/{folder-select.Cc9PkoVE.js → folder-select.BajqQkzA.js} +7 -7
- package/library/chunks/{format-time.DZCXUWmw.js → format-time.CxaGqngb.js} +1 -1
- package/library/chunks/{header.Dz7W1DJC.js → header.CfCULafs.js} +2 -2
- package/library/chunks/{i18n.BJ2p4em8.js → i18n.deOPJlBG.js} +1 -0
- package/library/chunks/{icon-button.Dd-oDRfX.js → icon-button.DSSgDKO8.js} +2 -2
- package/library/chunks/{iframe.DsOaw03m.js → iframe.BVnWzC6u.js} +1 -1
- package/library/chunks/{image-comparer.FB0ZzA0d.js → image-comparer.6hxOR7VL.js} +1 -1
- package/library/chunks/{image.WBQUoc3j.js → image.wVxvwZxr.js} +76 -81
- package/library/chunks/{input.w9KQVNnx.js → input.AS0kZ6ks.js} +1 -1
- package/library/chunks/{line-clamp.DAhcB8_D.js → line-clamp.biFX066w.js} +2 -2
- package/library/chunks/{markdown.C1P0ctPs.js → markdown.BwIil8g5.js} +2 -2
- package/library/chunks/{masonry.BnIxslnb.js → masonry.D4DxZZ03.js} +3 -3
- package/library/chunks/{menu-item.CX4NV4BU.js → menu-item.Bi9zjGsW.js} +3 -3
- package/library/chunks/{menu.Al_SBJNI.js → menu.DqKFF1tH.js} +2 -2
- package/library/chunks/{option.DckbOkYC.js → option.CKvalzr2.js} +1 -1
- package/library/chunks/{padding-input-group.BTjH4scb.js → padding-input-group.BURYDFGi.js} +1 -1
- package/library/chunks/{pagination.B17Ykd-G.js → pagination.DEGvwJXh.js} +7 -7
- package/library/chunks/{popup.Bk9xpj1E.js → popup.DQcD7riQ.js} +1 -1
- package/library/chunks/{position-picker.DwDC9gDl.js → position-picker.Cjk5OdB5.js} +1 -1
- package/library/chunks/{progress-bar.BJfkoZ6G.js → progress-bar.BSTyftIm.js} +1 -1
- package/library/chunks/{progress-ring.BSfnNF9M.js → progress-ring.cC63wJQr.js} +1 -1
- package/library/chunks/{radio-card.B7uO9Xs1.js → radio-card.Crn-znqj.js} +1 -1
- package/library/chunks/{range.20iIQxEz.js → range.BEXR2sEB.js} +2 -2
- package/library/chunks/{rating.BgUId4FT.js → rating.DZrii8F_.js} +1 -1
- package/library/chunks/{relative-time.BSSaZxeD.js → relative-time.DZ5rhLwg.js} +1 -1
- package/library/chunks/{select.BivTPBtv.js → select.CmdHRMy_.js} +6 -6
- package/library/chunks/{shadow-input-group.7NODSHPt.js → shadow-input-group.BKu3bgVT.js} +2 -2
- package/library/chunks/{share-option-list.C28_ddOP.js → share-option-list.IgLnP5Ib.js} +2 -2
- package/library/chunks/{sidebar.B1MjUxBY.js → sidebar.CGFDNY9i.js} +1 -1
- package/library/chunks/{size-input-group.CFgOvLnO.js → size-input-group.DzSQz6mI.js} +5 -5
- package/library/chunks/{spinner.o3Rjsff7.js → spinner.DagKrwY5.js} +1 -1
- package/library/chunks/{split-panel.CVyqM2Dr.js → split-panel.Gfbbe8BX.js} +1 -1
- package/library/chunks/{src.CtGMXA2r.js → src.DoJoeNZB.js} +48 -48
- package/library/chunks/src.cBRbsOdC.js +720 -0
- package/library/chunks/{step.C-T63mG1.js → step.Dw2VfEhD.js} +3 -3
- package/library/chunks/{stepper-wizard.BCmR5WiA.js → stepper-wizard.Bozu8x6U.js} +2 -2
- package/library/chunks/{stepper.DR3oqUpm.js → stepper.cJSgSSMJ.js} +1 -1
- package/library/chunks/{tab-group.BafStohF.js → tab-group.D5yMsNTe.js} +7 -7
- package/library/chunks/{tab.uRk_KNV2.js → tab.BXcVzB6d.js} +3 -3
- package/library/chunks/{tag.B6BfN7x-.js → tag.kF4Izxei.js} +3 -3
- package/library/chunks/{tooltip.fZNjia6Z.js → tooltip.O-5jGui7.js} +2 -2
- package/library/chunks/{tree.B9-viK2b.js → tree.BP9r-4UR.js} +3 -3
- package/library/chunks/{typeface.BHErcYfd.js → typeface.B75hLESf.js} +3 -3
- package/library/chunks/{url.CZO_DV8Y.js → url.BCc06dE7.js} +15 -6
- package/library/chunks/{video.D9JTlBJ9.js → video.C9tEIck_.js} +2 -2
- package/library/components/alert.js +1 -1
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +53 -53
- package/library/components/audio.js +1 -1
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/color-swatch.js +1 -1
- package/library/components/confirm-popover.js +1 -1
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/dot-pagination.js +1 -1
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +1 -1
- package/library/components/icon-button.js +1 -1
- package/library/components/iframe.js +1 -1
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +1 -1
- package/library/components/input.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +1 -1
- package/library/components/masonry.js +1 -1
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +16 -16
- package/library/components/option.js +1 -1
- package/library/components/organisms.js +3 -3
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +1 -1
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/tab.js +1 -1
- package/library/components/tag.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +1 -1
- package/library/components/tree.js +1 -1
- package/library/components/typeface.js +1 -1
- package/library/components/types.js +10308 -10206
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/audio/audio.d.ts +2 -0
- package/library/packages/atoms/src/components/document-viewer/document-viewer.d.ts +6 -0
- package/library/packages/atoms/src/components/image/image.d.ts +0 -3
- package/library/packages/events/src/events.d.ts +0 -4
- package/library/packages/organisms/src/content-builder/blocks/audio/audio.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/blocks/button/button.d.ts +8 -0
- package/library/packages/organisms/src/content-builder/blocks/column/column.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/blocks/column-group/column-group.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/blocks/document-viewer/document-viewer.d.ts +8 -0
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +7 -6
- package/library/packages/organisms/src/content-builder/blocks/timeline/timeline.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/blocks/video/video.d.ts +9 -0
- package/library/packages/organisms/src/content-builder/components/template-manager/template-manager.d.ts +11 -0
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +17 -1
- package/library/packages/organisms/src/content-builder-viewer/content-builder-viewer.d.ts +13 -4
- package/library/packages/organisms/src/form/control-renderer/control-renderer.d.ts +1 -1
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +28 -0
- package/library/packages/utils/src/asset-url-mode/asset-url-mode.d.ts +22 -0
- package/library/packages/utils/src/asset-url-mode/index.d.ts +1 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
- package/library/packages/utils/src/url/url.d.ts +7 -0
- package/library/react-web-component.d.ts +21 -1
- package/library/utils.js +29 -707
- package/package.json +1 -1
- package/library/packages/events/src/cx-image-src-resolved.d.ts +0 -9
- package/library/packages/events/src/cx-timeline-data-resolved.d.ts +0 -9
- package/library/packages/events/src/cx-video-src-resolved.d.ts +0 -8
- package/library/packages/events/src/cx-video-thumbnail-resolved.d.ts +0 -8
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c as e, d as t, r as n } from "./lit.CyJqR2kf.js";
|
|
2
2
|
import { a as r, i, n as a, r as o } from "./cortex-element.DTrNUtdr.js";
|
|
3
3
|
import { t as s } from "./query.B1yi7t71.js";
|
|
4
|
-
import { t as c } from "./popup.
|
|
4
|
+
import { t as c } from "./popup.DQcD7riQ.js";
|
|
5
5
|
import { t as l } from "./component.styles.0xM1ZmBs.js";
|
|
6
6
|
import { t as u } from "./custom-element.BEMYNDK1.js";
|
|
7
|
-
import { t as d } from "./i18n.
|
|
7
|
+
import { t as d } from "./i18n.deOPJlBG.js";
|
|
8
8
|
import { t as f } from "./watch.Ub5r8btz.js";
|
|
9
9
|
import { t as p } from "./class-map.D8nsNOVJ.js";
|
|
10
10
|
import { t as m } from "./if-defined.B29V_rEp.js";
|
|
@@ -17,40 +17,39 @@ import { t as w } from "./resize-observer.D9EHlnZI.js";
|
|
|
17
17
|
import { n as T } from "./position-picker.dY_vgF_H.js";
|
|
18
18
|
import { a as E } from "./src.BJhIYoMP.js";
|
|
19
19
|
import { t as D } from "./space.Dd8jezXK.js";
|
|
20
|
-
import {
|
|
21
|
-
import { t as k } from "./
|
|
22
|
-
import { t as A } from "./skeleton.BtwugOTG.js";
|
|
20
|
+
import { t as O } from "./keyed.zYwdaCfO.js";
|
|
21
|
+
import { t as k } from "./skeleton.BtwugOTG.js";
|
|
23
22
|
//#region ../../packages/types/src/image.ts
|
|
24
|
-
var
|
|
23
|
+
var A = /* @__PURE__ */ function(e) {
|
|
25
24
|
return e.Automatic = "automatic", e.Manual = "manual", e;
|
|
26
|
-
}({}),
|
|
25
|
+
}({}), j = Object.assign || function(e) {
|
|
27
26
|
for (var t = 1; t < arguments.length; t++) {
|
|
28
27
|
var n = arguments[t];
|
|
29
28
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
30
29
|
}
|
|
31
30
|
return e;
|
|
32
|
-
},
|
|
31
|
+
}, M = function(e) {
|
|
33
32
|
return e.tagName === "IMG";
|
|
34
|
-
},
|
|
33
|
+
}, N = function(e) {
|
|
35
34
|
return NodeList.prototype.isPrototypeOf(e);
|
|
36
|
-
},
|
|
35
|
+
}, P = function(e) {
|
|
37
36
|
return e && e.nodeType === 1;
|
|
38
|
-
},
|
|
37
|
+
}, F = function(e) {
|
|
39
38
|
return (e.currentSrc || e.src).substr(-4).toLowerCase() === ".svg";
|
|
40
|
-
},
|
|
39
|
+
}, I = function(e) {
|
|
41
40
|
try {
|
|
42
|
-
return Array.isArray(e) ? e.filter(
|
|
41
|
+
return Array.isArray(e) ? e.filter(M) : N(e) ? [].slice.call(e).filter(M) : P(e) ? [e].filter(M) : typeof e == "string" ? [].slice.call(document.querySelectorAll(e)).filter(M) : [];
|
|
43
42
|
} catch {
|
|
44
43
|
throw TypeError("The provided selector is invalid.\nExpects a CSS selector, a Node element, a NodeList or an array.\nSee: https://github.com/francoischalifour/medium-zoom");
|
|
45
44
|
}
|
|
46
|
-
},
|
|
45
|
+
}, L = function(e) {
|
|
47
46
|
var t = document.createElement("div");
|
|
48
47
|
return t.classList.add("medium-zoom-overlay"), t.style.background = e, t;
|
|
49
|
-
},
|
|
48
|
+
}, R = function(e) {
|
|
50
49
|
var t = e.getBoundingClientRect(), n = t.top, r = t.left, i = t.width, a = t.height, o = e.cloneNode(), s = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, c = window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
|
|
51
50
|
return o.removeAttribute("id"), o.style.position = "absolute", o.style.top = n + s + "px", o.style.left = r + c + "px", o.style.width = i + "px", o.style.height = a + "px", o.style.transform = "", o;
|
|
52
|
-
},
|
|
53
|
-
var n =
|
|
51
|
+
}, z = function(e, t) {
|
|
52
|
+
var n = j({
|
|
54
53
|
bubbles: !1,
|
|
55
54
|
cancelable: !1,
|
|
56
55
|
detail: void 0
|
|
@@ -58,7 +57,7 @@ var j = /* @__PURE__ */ function(e) {
|
|
|
58
57
|
if (typeof window.CustomEvent == "function") return new CustomEvent(e, n);
|
|
59
58
|
var r = document.createEvent("CustomEvent");
|
|
60
59
|
return r.initCustomEvent(e, n.bubbles, n.cancelable, n.detail), r;
|
|
61
|
-
},
|
|
60
|
+
}, B = function e(t) {
|
|
62
61
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = window.Promise || function(e) {
|
|
63
62
|
function t() {}
|
|
64
63
|
e(t, t);
|
|
@@ -79,15 +78,15 @@ var j = /* @__PURE__ */ function(e) {
|
|
|
79
78
|
(t === "Escape" || t === "Esc" || t === 27) && m();
|
|
80
79
|
}, s = function() {
|
|
81
80
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e;
|
|
82
|
-
return e.background && (T.style.background = e.background), e.container && e.container instanceof Object && (t.container =
|
|
83
|
-
e.dispatchEvent(
|
|
81
|
+
return e.background && (T.style.background = e.background), e.container && e.container instanceof Object && (t.container = j({}, C.container, e.container)), e.template && (t.template = P(e.template) ? e.template : document.querySelector(e.template)), C = j({}, C, t), y.forEach(function(e) {
|
|
82
|
+
e.dispatchEvent(z("medium-zoom:update", { detail: { zoom: E } }));
|
|
84
83
|
}), E;
|
|
85
84
|
}, c = function() {
|
|
86
85
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
87
|
-
return e(
|
|
86
|
+
return e(j({}, C, t));
|
|
88
87
|
}, l = function() {
|
|
89
88
|
var e = [...arguments].reduce(function(e, t) {
|
|
90
|
-
return [].concat(e,
|
|
89
|
+
return [].concat(e, I(t));
|
|
91
90
|
}, []);
|
|
92
91
|
return e.filter(function(e) {
|
|
93
92
|
return y.indexOf(e) === -1;
|
|
@@ -103,10 +102,10 @@ var j = /* @__PURE__ */ function(e) {
|
|
|
103
102
|
var e = [...arguments];
|
|
104
103
|
w.zoomed && m();
|
|
105
104
|
var t = e.length > 0 ? e.reduce(function(e, t) {
|
|
106
|
-
return [].concat(e,
|
|
105
|
+
return [].concat(e, I(t));
|
|
107
106
|
}, []) : y;
|
|
108
107
|
return t.forEach(function(e) {
|
|
109
|
-
e.classList.remove("medium-zoom-image"), e.dispatchEvent(
|
|
108
|
+
e.classList.remove("medium-zoom-image"), e.dispatchEvent(z("medium-zoom:detach", { detail: { zoom: E } }));
|
|
110
109
|
}), y = y.filter(function(e) {
|
|
111
110
|
return t.indexOf(e) === -1;
|
|
112
111
|
}), E;
|
|
@@ -137,10 +136,10 @@ var j = /* @__PURE__ */ function(e) {
|
|
|
137
136
|
bottom: 0
|
|
138
137
|
}, t = void 0, n = void 0;
|
|
139
138
|
if (C.container) {
|
|
140
|
-
if (C.container instanceof Object) e =
|
|
139
|
+
if (C.container instanceof Object) e = j({}, e, C.container), t = e.width - e.left - e.right - C.margin * 2, n = e.height - e.top - e.bottom - C.margin * 2;
|
|
141
140
|
else {
|
|
142
|
-
var r = (
|
|
143
|
-
e =
|
|
141
|
+
var r = (P(C.container) ? C.container : document.querySelector(C.container)).getBoundingClientRect(), i = r.width, a = r.height, o = r.left, s = r.top;
|
|
142
|
+
e = j({}, e, {
|
|
144
143
|
width: i,
|
|
145
144
|
height: a,
|
|
146
145
|
left: o,
|
|
@@ -149,7 +148,7 @@ var j = /* @__PURE__ */ function(e) {
|
|
|
149
148
|
}
|
|
150
149
|
}
|
|
151
150
|
t ||= e.width - C.margin * 2, n ||= e.height - C.margin * 2;
|
|
152
|
-
var c = w.zoomedHd || w.original, l =
|
|
151
|
+
var c = w.zoomedHd || w.original, l = F(c) ? t : c.naturalWidth || t, u = F(c) ? n : c.naturalHeight || n, d = c.getBoundingClientRect(), f = d.top, p = d.left, m = d.width, h = d.height, g = Math.min(Math.max(m, l), t) / m, _ = Math.min(Math.max(h, u), n) / h, v = Math.min(g, _), y = (-p + (t - m) / 2 + C.margin + e.left) / v, b = (-f + (n - h) / 2 + C.margin + e.top) / v, x = "scale(" + v + ") translate3d(" + y + "px, " + b + "px, 0)";
|
|
153
152
|
w.zoomed.style.transform = x, w.zoomedHd && (w.zoomedHd.style.transform = x);
|
|
154
153
|
};
|
|
155
154
|
return new r(function(n) {
|
|
@@ -158,7 +157,7 @@ var j = /* @__PURE__ */ function(e) {
|
|
|
158
157
|
return;
|
|
159
158
|
}
|
|
160
159
|
var r = function e() {
|
|
161
|
-
x = !1, w.zoomed.removeEventListener("transitionend", e), w.original.dispatchEvent(
|
|
160
|
+
x = !1, w.zoomed.removeEventListener("transitionend", e), w.original.dispatchEvent(z("medium-zoom:opened", { detail: { zoom: E } })), n(E);
|
|
162
161
|
};
|
|
163
162
|
if (w.zoomed) {
|
|
164
163
|
n(E);
|
|
@@ -170,8 +169,8 @@ var j = /* @__PURE__ */ function(e) {
|
|
|
170
169
|
n(E);
|
|
171
170
|
return;
|
|
172
171
|
}
|
|
173
|
-
if (w.original.dispatchEvent(
|
|
174
|
-
var i =
|
|
172
|
+
if (w.original.dispatchEvent(z("medium-zoom:open", { detail: { zoom: E } })), S = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, x = !0, w.zoomed = R(w.original), document.body.appendChild(T), C.template) {
|
|
173
|
+
var i = P(C.template) ? C.template : document.querySelector(C.template);
|
|
175
174
|
w.template = document.createElement("div"), w.template.appendChild(i.content.cloneNode(!0)), document.body.appendChild(w.template);
|
|
176
175
|
}
|
|
177
176
|
if (w.original.parentElement && w.original.parentElement.tagName === "PICTURE" && w.original.currentSrc && (w.zoomed.src = w.original.currentSrc), document.body.appendChild(w.zoomed), window.requestAnimationFrame(function() {
|
|
@@ -197,9 +196,9 @@ var j = /* @__PURE__ */ function(e) {
|
|
|
197
196
|
return;
|
|
198
197
|
}
|
|
199
198
|
var t = function t() {
|
|
200
|
-
w.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(w.zoomed), w.zoomedHd && document.body.removeChild(w.zoomedHd), document.body.removeChild(T), w.zoomed.classList.remove("medium-zoom-image--opened"), w.template && document.body.removeChild(w.template), x = !1, w.zoomed.removeEventListener("transitionend", t), w.original.dispatchEvent(
|
|
199
|
+
w.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(w.zoomed), w.zoomedHd && document.body.removeChild(w.zoomedHd), document.body.removeChild(T), w.zoomed.classList.remove("medium-zoom-image--opened"), w.template && document.body.removeChild(w.template), x = !1, w.zoomed.removeEventListener("transitionend", t), w.original.dispatchEvent(z("medium-zoom:closed", { detail: { zoom: E } })), w.original = null, w.zoomed = null, w.zoomedHd = null, w.template = null, e(E);
|
|
201
200
|
};
|
|
202
|
-
x = !0, document.body.classList.remove("medium-zoom--opened"), w.zoomed.style.transform = "", w.zoomedHd && (w.zoomedHd.style.transform = ""), w.template && (w.template.style.transition = "opacity 150ms", w.template.style.opacity = 0), w.original.dispatchEvent(
|
|
201
|
+
x = !0, document.body.classList.remove("medium-zoom--opened"), w.zoomed.style.transform = "", w.zoomedHd && (w.zoomedHd.style.transform = ""), w.template && (w.template.style.transition = "opacity 150ms", w.template.style.opacity = 0), w.original.dispatchEvent(z("medium-zoom:close", { detail: { zoom: E } })), w.zoomed.addEventListener("transitionend", t);
|
|
203
202
|
});
|
|
204
203
|
}, h = function() {
|
|
205
204
|
var e = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).target;
|
|
@@ -216,14 +215,14 @@ var j = /* @__PURE__ */ function(e) {
|
|
|
216
215
|
zoomedHd: null,
|
|
217
216
|
template: null
|
|
218
217
|
};
|
|
219
|
-
Object.prototype.toString.call(t) === "[object Object]" ? C = t : (t || typeof t == "string") && l(t), C =
|
|
218
|
+
Object.prototype.toString.call(t) === "[object Object]" ? C = t : (t || typeof t == "string") && l(t), C = j({
|
|
220
219
|
margin: 0,
|
|
221
220
|
background: "#fff",
|
|
222
221
|
scrollOffset: 40,
|
|
223
222
|
container: null,
|
|
224
223
|
template: null
|
|
225
224
|
}, C);
|
|
226
|
-
var T =
|
|
225
|
+
var T = L(C.background);
|
|
227
226
|
document.addEventListener("click", i), document.addEventListener("keyup", o), document.addEventListener("scroll", a), window.addEventListener("resize", m);
|
|
228
227
|
var E = {
|
|
229
228
|
open: p,
|
|
@@ -241,7 +240,7 @@ var j = /* @__PURE__ */ function(e) {
|
|
|
241
240
|
};
|
|
242
241
|
return E;
|
|
243
242
|
};
|
|
244
|
-
function
|
|
243
|
+
function V(e, t) {
|
|
245
244
|
t === void 0 && (t = {});
|
|
246
245
|
var n = t.insertAt;
|
|
247
246
|
if (e && typeof document < "u") {
|
|
@@ -249,10 +248,10 @@ function H(e, t) {
|
|
|
249
248
|
i.type = "text/css", n === "top" && r.firstChild ? r.insertBefore(i, r.firstChild) : r.appendChild(i), i.styleSheet ? i.styleSheet.cssText = e : i.appendChild(document.createTextNode(e));
|
|
250
249
|
}
|
|
251
250
|
}
|
|
252
|
-
|
|
251
|
+
V(".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}");
|
|
253
252
|
//#endregion
|
|
254
253
|
//#region ../../packages/atoms/src/components/image/image.styles.ts
|
|
255
|
-
var
|
|
254
|
+
var H = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container,:host([effect=zoom]) .container{overflow:initial}:host([effect=jump]) .highlighter{transition:all var(--transition-duration,.5s) var(--easing,linear), transform var(--transition-transform-duration,.5s) var(--easing,linear)}:host([effect=jump]) .highlighter:hover{transform:translateY(calc(var(--highlightable-item-effect-jump-distance,0) * -1))}:host([effect=zoom][zoom-style=pop-out]){overflow-clip-margin:var(--column-padding,10px);overflow:clip}.highlighter--effect-text-reveal,:host([effect=zoom]) .highlighter--zoom-style-within-borders{overflow:hidden}:host([effect=zoom][zoom-style=pop-out]) .highlighter:hover{z-index:3;animation:none}:host([effect=zoom][zoom-style=pop-out]) .highlighter:not(:hover){animation:drop-z var(--transition-transform-duration) forwards}@keyframes drop-z{0%{z-index:2}99%{z-index:2}to{z-index:0}}.highlighter--can-hover:hover:after,.highlighter--selected:after,.highlighter--color-overlay:after{content:"";pointer-events:none;width:100%;height:100%;transition:all var(--transition-duration,.5s) var(--easing,linear);position:absolute;top:0;left:0}.highlighter--can-hover:hover:after,.highlighter--selected:after{outline:2px solid var(--cx-color-primary)}.highlighter--border:hover .image{border-color:var(--highlightable-item-highlight-border-color,var(--cx-color-primary))}.highlighter--color-overlay:after{border-radius:var(--border-radius,none)}.highlighter--color-overlay:hover:after{background-color:var(--highlightable-item-highlight-color-overlay-color,transparent)}.highlighter--drop-shadow:hover .image{box-shadow:var(--highlightable-item-highlight-drop-shadow,none)}.highlighter--background:hover .highlightable-item{--content-background-color:var(--highlightable-item-highlight-background,transparent);--highlightable-item-background-color:var(--highlightable-item-highlight-background,transparent)}.highlighter--opacity{opacity:var(--highlightable-item-highlight-opacity,1)}:host([effect=zoom][zoom-style=within-borders]) .highlighter .image,:host([effect=zoom][zoom-style=pop-out]) .highlighter{transition:transform var(--transition-transform-duration,.5s) var(--easing,linear)}:host([effect=zoom][zoom-style=within-borders]) .highlighter:hover .image,:host([effect=zoom][zoom-style=pop-out]) .highlighter:hover{transform:scale(var(--highlightable-item-effect-zoom-scale,1))}.highlightable-item{transition:background-color var(--transition-duration,.5s) var(--easing,linear), border-color var(--transition-duration,.5s) var(--easing,linear), box-shadow var(--transition-duration,.5s) var(--easing,linear), opacity var(--transition-duration,.5s) var(--easing,linear), transform var(--transition-transform-duration,.5s) var(--easing,linear), visibility var(--transition-duration,.5s) var(--easing,linear)}`, U = t`
|
|
256
255
|
:host {
|
|
257
256
|
--justify-content: flex-start;
|
|
258
257
|
--border-radius: 0px;
|
|
@@ -306,7 +305,7 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
|
|
|
306
305
|
max-height: 100%;
|
|
307
306
|
}
|
|
308
307
|
|
|
309
|
-
${
|
|
308
|
+
${H}
|
|
310
309
|
|
|
311
310
|
:host([block]) {
|
|
312
311
|
width: 100%;
|
|
@@ -616,23 +615,22 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
|
|
|
616
615
|
--font-size: var(--cx-font-size-4x-large);
|
|
617
616
|
color: var(--fallback-icon-color);
|
|
618
617
|
}
|
|
619
|
-
`,
|
|
618
|
+
`, W = class extends b {
|
|
620
619
|
constructor(...e) {
|
|
621
|
-
super(...e), this.localize = new d(this), this.retryCount = 0, this.retryTimer = null, this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryIndex = 0, this.src = "", this.aspectRatio = 0, this.srcset = "", this.sizes = "", this.placeholder = "", this.alt = "", this.objectFit = E.Fill, this.cropFocus = T.CenterCenter, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.noCrossorigin = !1, this.clickHandlerType =
|
|
620
|
+
super(...e), this.localize = new d(this), this.retryCount = 0, this.retryTimer = null, this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryIndex = 0, this.src = "", this.aspectRatio = 0, this.srcset = "", this.sizes = "", this.placeholder = "", this.alt = "", this.objectFit = E.Fill, this.cropFocus = T.CenterCenter, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.noCrossorigin = !1, this.clickHandlerType = A.Automatic, this.retryOnError = !1, this.maxRetries = 10, this.isZoomed = !1, this.imageRatio = 1, this.parsedAlt = "", this.parsedAltDarkMode = "", this.zoom = null, this.lastPatchedWidth = null;
|
|
622
621
|
}
|
|
623
622
|
static #e = this.styles = [
|
|
624
623
|
l,
|
|
625
624
|
S,
|
|
626
|
-
|
|
625
|
+
U
|
|
627
626
|
];
|
|
628
627
|
static #t = this.dependencies = {
|
|
629
628
|
"cx-icon": g,
|
|
630
629
|
"cx-popup": c,
|
|
631
630
|
"cx-resize-observer": w,
|
|
632
|
-
"cx-skeleton":
|
|
631
|
+
"cx-skeleton": k,
|
|
633
632
|
"cx-space": D
|
|
634
633
|
};
|
|
635
|
-
#n;
|
|
636
634
|
get currentAltValue() {
|
|
637
635
|
return this.alt;
|
|
638
636
|
}
|
|
@@ -640,10 +638,10 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
|
|
|
640
638
|
return this.src;
|
|
641
639
|
}
|
|
642
640
|
get highlighterTabindex() {
|
|
643
|
-
return this.hasZoomAction && this.clickHandlerType ===
|
|
641
|
+
return this.hasZoomAction && this.clickHandlerType === A.Automatic ? "0" : void 0;
|
|
644
642
|
}
|
|
645
643
|
get highlighterRole() {
|
|
646
|
-
return this.hasZoomAction && this.clickHandlerType ===
|
|
644
|
+
return this.hasZoomAction && this.clickHandlerType === A.Automatic ? "button" : "img";
|
|
647
645
|
}
|
|
648
646
|
get highlighterCropFocusClass() {
|
|
649
647
|
return this.objectFit === E.Contain ? { [`highlightable-item--crop-focus-${this.cropFocus}`]: !0 } : {};
|
|
@@ -722,7 +720,7 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
|
|
|
722
720
|
await this.updateComplete, this.requestUpdate();
|
|
723
721
|
}
|
|
724
722
|
handleSrcChange() {
|
|
725
|
-
this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryCount = 0, this.retryIndex = 0, this
|
|
723
|
+
this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryCount = 0, this.retryIndex = 0, this.clearRetryTimer();
|
|
726
724
|
}
|
|
727
725
|
clearRetryTimer() {
|
|
728
726
|
this.retryTimer !== null && (clearTimeout(this.retryTimer), this.retryTimer = null);
|
|
@@ -730,14 +728,11 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
|
|
|
730
728
|
scheduleRetry() {
|
|
731
729
|
let e = Math.min(1e3 * 2 ** (this.retryCount - 1), 1e4);
|
|
732
730
|
this.retryTimer = setTimeout(() => {
|
|
733
|
-
this.retryTimer = null, this
|
|
731
|
+
this.retryTimer = null, this.retryIndex += 1;
|
|
734
732
|
}, e);
|
|
735
733
|
}
|
|
736
|
-
applyRetryCacheBust(e) {
|
|
737
|
-
return this.retryIndex === 0 || !this.#n || !e ? e : O(e, "cachebust", this.#n);
|
|
738
|
-
}
|
|
739
734
|
async initZoom() {
|
|
740
|
-
this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom =
|
|
735
|
+
this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom = B(this.zoomImageElement, {
|
|
741
736
|
background: "light-dark(rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.8))",
|
|
742
737
|
margin: 0,
|
|
743
738
|
scrollOffset: 0
|
|
@@ -772,7 +767,7 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
|
|
|
772
767
|
this.lastPatchedWidth = e, this.requestUpdate();
|
|
773
768
|
}
|
|
774
769
|
handleClickAction(e) {
|
|
775
|
-
e.target instanceof HTMLElement && this.clickHandlerType !==
|
|
770
|
+
e.target instanceof HTMLElement && this.clickHandlerType !== A.Manual && this.canZoom && this.openZoom();
|
|
776
771
|
}
|
|
777
772
|
updated(e) {
|
|
778
773
|
super.updated(e);
|
|
@@ -783,11 +778,11 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
|
|
|
783
778
|
this.zoom && this.zoom.open();
|
|
784
779
|
}
|
|
785
780
|
renderContent() {
|
|
786
|
-
let t = this.
|
|
781
|
+
let t = this.currentSrc, r = this.currentAltValue;
|
|
787
782
|
if (this.retryOnError) {
|
|
788
783
|
if (this.isError && this.retryCount >= this.maxRetries) return n;
|
|
789
784
|
} else if (this.isError) return n;
|
|
790
|
-
return e`<div part="content" slot="anchor" class=${p(this.highlighterClass)}>${
|
|
785
|
+
return e`<div part="content" slot="anchor" class=${p(this.highlighterClass)}>${O(this.retryIndex, e`<img part="image" class=${p(this.imageClass)} src=${t || this.placeholder} srcset=${m(this.srcset || void 0)} sizes=${m(this.sizes || void 0)} alt=${r} aria-label=${r} crossorigin=${m(this.crossorigin)} @load=${this.handleLoad} @error=${this.handleError} loading=${this.retryIndex > 0 ? "eager" : this.htmlLoading} decoding="async" width=${m(this.width || void 0)} height=${m(this.height || void 0)}>`)}</div>`;
|
|
791
786
|
}
|
|
792
787
|
render() {
|
|
793
788
|
let t = this.hasZoomAction, r = this.currentAltValue;
|
|
@@ -799,93 +794,93 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
|
|
|
799
794
|
})} style=${_({ "--easing": this.easeCSSVariable })} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${m(this.highlighterTabindex)} role=${m(this.highlighterRole)} aria-label=${m(this.highlighterRole ? r : void 0)} aria-roledescription=${m(this.highlighterRole ? this.localize.term("image") : void 0)} class=${p(this.isEmpty ? {} : this.getHighlighterClass(this.isError))} @click=${this.handleClickAction} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave} @blur=${this.handleBlur}>${h(this.isEmpty, () => n, () => h(this.effect === x.Jump || this.effect === x.Zoom, () => e`<cx-popup class="popup-container" strategy="absolute" active placement="center" sync="both">${this.renderContent()}</cx-popup>`, () => this.renderContent()))}<div class="zoom-image-container">${h(t, () => e`<img part="zoom-image" class=${p({
|
|
800
795
|
"zoom-image": !0,
|
|
801
796
|
"zoom-image--hidden": !this.isZoomed
|
|
802
|
-
})} src=${this.
|
|
797
|
+
})} src=${this.currentSrc || this.placeholder} alt="" aria-hidden="true" decoding="async" draggable="false" crossorigin=${m(this.crossorigin)}>`)}</div>${h(this.showPlaceholderSkeleton, () => e`<slot name="skeleton" part="skeleton"><div class=${p({ skeleton: !0 })}><cx-skeleton effect="sheen" role="status" aria-live="polite" aria-label=${this.localize.term("loading")}></cx-skeleton></div></slot>`)}
|
|
803
798
|
${h(this.isError, () => e`<slot name="fallback" part="fallback"><cx-space class=${p({ fallback: !0 })} direction="column" align-items="center" justify-content="center"><cx-icon name="hide_image" part="fallback-icon"> </cx-icon></cx-space></slot>`)}</div></cx-resize-observer>${h(this.resizable && this.isResizeActive, () => this.renderResizer())}</div>`;
|
|
804
799
|
}
|
|
805
800
|
};
|
|
806
|
-
a([s(".image"), o("design:type", typeof HTMLImageElement > "u" ? Object : HTMLImageElement)],
|
|
801
|
+
a([s(".image"), o("design:type", typeof HTMLImageElement > "u" ? Object : HTMLImageElement)], W.prototype, "imageElement", void 0), a([s(".zoom-image"), o("design:type", typeof HTMLImageElement > "u" ? Object : HTMLImageElement)], W.prototype, "zoomImageElement", void 0), a([s(".highlighter"), o("design:type", typeof HTMLDivElement > "u" ? Object : HTMLDivElement)], W.prototype, "highlighterElement", void 0), a([i(), o("design:type", Object)], W.prototype, "isLoaded", void 0), a([i(), o("design:type", Object)], W.prototype, "isError", void 0), a([i(), o("design:type", Object)], W.prototype, "isRetrying", void 0), a([i(), o("design:type", Object)], W.prototype, "retryIndex", void 0), a([r({
|
|
807
802
|
reflect: !0,
|
|
808
803
|
type: String
|
|
809
|
-
}), o("design:type", String)],
|
|
804
|
+
}), o("design:type", String)], W.prototype, "src", void 0), a([r({
|
|
810
805
|
attribute: "aspect-ratio",
|
|
811
806
|
reflect: !0,
|
|
812
807
|
type: Number
|
|
813
|
-
}), o("design:type", Object)],
|
|
808
|
+
}), o("design:type", Object)], W.prototype, "aspectRatio", void 0), a([r({
|
|
814
809
|
reflect: !0,
|
|
815
810
|
type: String
|
|
816
|
-
}), o("design:type", Object)],
|
|
811
|
+
}), o("design:type", Object)], W.prototype, "srcset", void 0), a([r({
|
|
817
812
|
reflect: !0,
|
|
818
813
|
type: String
|
|
819
|
-
}), o("design:type", Object)],
|
|
814
|
+
}), o("design:type", Object)], W.prototype, "sizes", void 0), a([r({
|
|
820
815
|
reflect: !0,
|
|
821
816
|
type: String
|
|
822
|
-
}), o("design:type", Object)],
|
|
817
|
+
}), o("design:type", Object)], W.prototype, "placeholder", void 0), a([r({
|
|
823
818
|
reflect: !0,
|
|
824
819
|
type: String
|
|
825
|
-
}), o("design:type", Object)],
|
|
820
|
+
}), o("design:type", Object)], W.prototype, "alt", void 0), a([r({
|
|
826
821
|
attribute: "object-fit",
|
|
827
822
|
reflect: !0
|
|
828
|
-
}), o("design:type", E === void 0 ? Object : E)],
|
|
823
|
+
}), o("design:type", E === void 0 ? Object : E)], W.prototype, "objectFit", void 0), a([r({
|
|
829
824
|
attribute: "crop-focus",
|
|
830
825
|
reflect: !0
|
|
831
|
-
}), o("design:type", T === void 0 ? Object : T)],
|
|
826
|
+
}), o("design:type", T === void 0 ? Object : T)], W.prototype, "cropFocus", void 0), a([r({
|
|
832
827
|
reflect: !0,
|
|
833
828
|
type: Boolean
|
|
834
|
-
}), o("design:type", Object)],
|
|
829
|
+
}), o("design:type", Object)], W.prototype, "skeleton", void 0), a([r({
|
|
835
830
|
reflect: !0,
|
|
836
831
|
type: Boolean
|
|
837
|
-
}), o("design:type", Object)],
|
|
832
|
+
}), o("design:type", Object)], W.prototype, "fallback", void 0), a([r({
|
|
838
833
|
attribute: "can-zoom",
|
|
839
834
|
reflect: !0,
|
|
840
835
|
type: Boolean
|
|
841
|
-
}), o("design:type", Object)],
|
|
836
|
+
}), o("design:type", Object)], W.prototype, "canZoom", void 0), a([r({
|
|
842
837
|
reflect: !0,
|
|
843
838
|
type: Boolean
|
|
844
|
-
}), o("design:type", Object)],
|
|
839
|
+
}), o("design:type", Object)], W.prototype, "loading", void 0), a([r({
|
|
845
840
|
reflect: !0,
|
|
846
841
|
type: Boolean
|
|
847
|
-
}), o("design:type", Object)],
|
|
842
|
+
}), o("design:type", Object)], W.prototype, "block", void 0), a([r({
|
|
848
843
|
attribute: "html-loading",
|
|
849
844
|
reflect: !0,
|
|
850
845
|
type: String
|
|
851
|
-
}), o("design:type", String)],
|
|
846
|
+
}), o("design:type", String)], W.prototype, "htmlLoading", void 0), a([r({
|
|
852
847
|
attribute: "no-crossorigin",
|
|
853
848
|
reflect: !0,
|
|
854
849
|
type: Boolean
|
|
855
|
-
}), o("design:type", Object)],
|
|
850
|
+
}), o("design:type", Object)], W.prototype, "noCrossorigin", void 0), a([r({
|
|
856
851
|
attribute: "click-handler-type",
|
|
857
852
|
reflect: !0,
|
|
858
853
|
type: String
|
|
859
|
-
}), o("design:type",
|
|
854
|
+
}), o("design:type", A === void 0 ? Object : A)], W.prototype, "clickHandlerType", void 0), a([r({
|
|
860
855
|
attribute: "retry-on-error",
|
|
861
856
|
reflect: !0,
|
|
862
857
|
type: Boolean
|
|
863
|
-
}), o("design:type", Object)],
|
|
858
|
+
}), o("design:type", Object)], W.prototype, "retryOnError", void 0), a([r({
|
|
864
859
|
attribute: "max-retries",
|
|
865
860
|
type: Number
|
|
866
|
-
}), o("design:type", Object)],
|
|
861
|
+
}), o("design:type", Object)], W.prototype, "maxRetries", void 0), a([i(), o("design:type", Object)], W.prototype, "isZoomed", void 0), a([i(), o("design:type", Object)], W.prototype, "imageRatio", void 0), a([i(), o("design:type", String)], W.prototype, "parsedAlt", void 0), a([i(), o("design:type", String)], W.prototype, "parsedAltDarkMode", void 0), a([
|
|
867
862
|
f("isLoaded"),
|
|
868
863
|
f("canZoom", { waitUntilFirstUpdate: !0 }),
|
|
869
864
|
o("design:type", Function),
|
|
870
865
|
o("design:paramtypes", []),
|
|
871
866
|
o("design:returntype", Promise)
|
|
872
|
-
],
|
|
867
|
+
], W.prototype, "handleCanZoomChange", null), a([
|
|
873
868
|
f("objectFit", { waitUntilFirstUpdate: !0 }),
|
|
874
869
|
o("design:type", Function),
|
|
875
870
|
o("design:paramtypes", []),
|
|
876
871
|
o("design:returntype", Promise)
|
|
877
|
-
],
|
|
872
|
+
], W.prototype, "handleObjectFitChange", null), a([
|
|
878
873
|
f("src"),
|
|
879
874
|
f("srcDarkMode"),
|
|
880
875
|
o("design:type", Function),
|
|
881
876
|
o("design:paramtypes", []),
|
|
882
877
|
o("design:returntype", void 0)
|
|
883
|
-
],
|
|
878
|
+
], W.prototype, "handleSrcChange", null), a([
|
|
884
879
|
C(100),
|
|
885
880
|
o("design:type", Function),
|
|
886
881
|
o("design:paramtypes", [Number]),
|
|
887
882
|
o("design:returntype", void 0)
|
|
888
|
-
],
|
|
889
|
-
var
|
|
883
|
+
], W.prototype, "updateLastPatchedWidth", null), W = a([u("cx-image")], W);
|
|
884
|
+
var G = W;
|
|
890
885
|
//#endregion
|
|
891
|
-
export {
|
|
886
|
+
export { A as n, G as t };
|
|
@@ -3,7 +3,7 @@ import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtd
|
|
|
3
3
|
import { t as s } from "./query.B1yi7t71.js";
|
|
4
4
|
import { t as c } from "./component.styles.0xM1ZmBs.js";
|
|
5
5
|
import { t as l } from "./custom-element.BEMYNDK1.js";
|
|
6
|
-
import { t as u } from "./i18n.
|
|
6
|
+
import { t as u } from "./i18n.deOPJlBG.js";
|
|
7
7
|
import { t as d } from "./slot.CZUlACxT.js";
|
|
8
8
|
import { t as f } from "./watch.Ub5r8btz.js";
|
|
9
9
|
import { t as p } from "./class-map.D8nsNOVJ.js";
|
|
@@ -3,10 +3,10 @@ import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtd
|
|
|
3
3
|
import { t as s } from "./query.B1yi7t71.js";
|
|
4
4
|
import { t as c } from "./component.styles.0xM1ZmBs.js";
|
|
5
5
|
import { t as l } from "./custom-element.BEMYNDK1.js";
|
|
6
|
-
import "./button.
|
|
6
|
+
import "./button.D58Q0tW6.js";
|
|
7
7
|
import { c as u } from "./browser.Ct4pHP9I.js";
|
|
8
8
|
import { t as d } from "./debounce.Ci-xdsHE.js";
|
|
9
|
-
import "./tooltip.
|
|
9
|
+
import "./tooltip.O-5jGui7.js";
|
|
10
10
|
import "./resize-observer.D9EHlnZI.js";
|
|
11
11
|
//#region ../../packages/atoms/src/components/line-clamp/line-clamp.styles.ts
|
|
12
12
|
var f = t`:host{--toggler-color:var(--cx-color-primary)}.content{text-overflow:ellipsis;white-space:normal;overflow-wrap:break-word;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.toggler{margin-top:var(--cx-spacing-2x-small);display:block}.toggler::part(base){color:var(--toggler-color);font-weight:var(--cx-font-weight-medium);text-transform:none;width:auto}.toggler::part(label){padding-left:0}`, p = class extends o {
|
|
@@ -2,9 +2,9 @@ import { o as e, t } from "./rolldown-runtime.CEFd7nDs.js";
|
|
|
2
2
|
import { c as n, d as r } from "./lit.CyJqR2kf.js";
|
|
3
3
|
import { a as i, i as a, n as o, r as s, t as c } from "./cortex-element.DTrNUtdr.js";
|
|
4
4
|
import { t as l } from "./custom-element.BEMYNDK1.js";
|
|
5
|
-
import { t as u } from "./i18n.
|
|
5
|
+
import { t as u } from "./i18n.deOPJlBG.js";
|
|
6
6
|
import { t as d } from "./watch.Ub5r8btz.js";
|
|
7
|
-
import { n as f, t as p } from "./icon-button.
|
|
7
|
+
import { n as f, t as p } from "./icon-button.DSSgDKO8.js";
|
|
8
8
|
import { g as m } from "./string.DAuTpyw8.js";
|
|
9
9
|
import { t as h } from "./unsafe-html.Cb838aX7.js";
|
|
10
10
|
//#region ../../packages/base/src/cortex-light-element.ts
|
|
@@ -5,15 +5,15 @@ import { t as c } from "./component.styles.0xM1ZmBs.js";
|
|
|
5
5
|
import { t as l } from "./custom-element.BEMYNDK1.js";
|
|
6
6
|
import { t as u } from "./watch.Ub5r8btz.js";
|
|
7
7
|
import { t as d } from "./class-map.D8nsNOVJ.js";
|
|
8
|
-
import { t as f } from "./icon-button.
|
|
8
|
+
import { t as f } from "./icon-button.DSSgDKO8.js";
|
|
9
9
|
import { t as p } from "./if-defined.B29V_rEp.js";
|
|
10
10
|
import { t as m } from "./when.BUskJLtZ.js";
|
|
11
11
|
import { t as h } from "./style-map.DPGQIxip.js";
|
|
12
|
-
import { t as g } from "./tooltip.
|
|
12
|
+
import { t as g } from "./tooltip.O-5jGui7.js";
|
|
13
13
|
import { a as _ } from "./src.BJhIYoMP.js";
|
|
14
14
|
import { t as v } from "./repeat.CKv9FPlC.js";
|
|
15
15
|
import { t as y } from "./space.Dd8jezXK.js";
|
|
16
|
-
import { t as b } from "./image.
|
|
16
|
+
import { t as b } from "./image.wVxvwZxr.js";
|
|
17
17
|
import { t as x } from "./grid.CK4PRwur.js";
|
|
18
18
|
import { t as S } from "./grid-item.CSieaU5T.js";
|
|
19
19
|
import { t as C } from "./sortable.esm.W3y3EWKS.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { c as e, d as t, r as n } from "./lit.CyJqR2kf.js";
|
|
2
2
|
import { a as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtdr.js";
|
|
3
3
|
import { t as s } from "./query.B1yi7t71.js";
|
|
4
|
-
import { t as c } from "./popup.
|
|
4
|
+
import { t as c } from "./popup.DQcD7riQ.js";
|
|
5
5
|
import { t as l } from "./component.styles.0xM1ZmBs.js";
|
|
6
6
|
import { t as u } from "./custom-element.BEMYNDK1.js";
|
|
7
|
-
import { n as d, t as f } from "./i18n.
|
|
7
|
+
import { n as d, t as f } from "./i18n.deOPJlBG.js";
|
|
8
8
|
import { r as p, t as m } from "./slot.CZUlACxT.js";
|
|
9
9
|
import { t as h } from "./watch.Ub5r8btz.js";
|
|
10
10
|
import { t as g } from "./class-map.D8nsNOVJ.js";
|
|
11
11
|
import { t as _ } from "./if-defined.B29V_rEp.js";
|
|
12
12
|
import { t as v } from "./icon.CeQpEaQz.js";
|
|
13
|
-
import { t as y } from "./spinner.
|
|
13
|
+
import { t as y } from "./spinner.DagKrwY5.js";
|
|
14
14
|
import { t as b } from "./focus-when-visible.DKscgyKo.js";
|
|
15
15
|
import { n as x, t as S } from "./ref.CU1NC5AM.js";
|
|
16
16
|
//#region ../../packages/types/src/menu-item.ts
|
|
@@ -3,9 +3,9 @@ import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtd
|
|
|
3
3
|
import { t as s } from "./query.B1yi7t71.js";
|
|
4
4
|
import { t as c } from "./component.styles.0xM1ZmBs.js";
|
|
5
5
|
import { t as l } from "./custom-element.BEMYNDK1.js";
|
|
6
|
-
import { t as u } from "./i18n.
|
|
6
|
+
import { t as u } from "./i18n.deOPJlBG.js";
|
|
7
7
|
import { t as d } from "./when.BUskJLtZ.js";
|
|
8
|
-
import { r as f, t as p } from "./menu-item.
|
|
8
|
+
import { r as f, t as p } from "./menu-item.Bi9zjGsW.js";
|
|
9
9
|
//#region ../../packages/types/src/menu.ts
|
|
10
10
|
var m = /* @__PURE__ */ function(e) {
|
|
11
11
|
return e.Default = "default", e.Multiple = "multiple", e;
|
|
@@ -3,7 +3,7 @@ import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtd
|
|
|
3
3
|
import { t as s } from "./query.B1yi7t71.js";
|
|
4
4
|
import { t as c } from "./component.styles.0xM1ZmBs.js";
|
|
5
5
|
import { t as l } from "./custom-element.BEMYNDK1.js";
|
|
6
|
-
import { t as u } from "./i18n.
|
|
6
|
+
import { t as u } from "./i18n.deOPJlBG.js";
|
|
7
7
|
import { t as d } from "./watch.Ub5r8btz.js";
|
|
8
8
|
import { t as f } from "./class-map.D8nsNOVJ.js";
|
|
9
9
|
import { t as p } from "./when.BUskJLtZ.js";
|
|
@@ -3,7 +3,7 @@ import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
|
|
|
3
3
|
import { t as o } from "./component.styles.0xM1ZmBs.js";
|
|
4
4
|
import { t as s } from "./custom-element.BEMYNDK1.js";
|
|
5
5
|
import { t as c } from "./repeat.CKv9FPlC.js";
|
|
6
|
-
import { t as l } from "./input.
|
|
6
|
+
import { t as l } from "./input.AS0kZ6ks.js";
|
|
7
7
|
import { t as u } from "./parse.CDrJ-NY7.js";
|
|
8
8
|
import { t as d } from "./input-group.Dmd8XcxL.js";
|
|
9
9
|
//#region ../../packages/molecules/src/padding-input-group/padding-input-group.styles.ts
|
|
@@ -2,20 +2,20 @@ import { c as e, d as t } from "./lit.CyJqR2kf.js";
|
|
|
2
2
|
import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtdr.js";
|
|
3
3
|
import { t as s } from "./component.styles.0xM1ZmBs.js";
|
|
4
4
|
import { t as c } from "./custom-element.BEMYNDK1.js";
|
|
5
|
-
import { t as l } from "./i18n.
|
|
5
|
+
import { t as l } from "./i18n.deOPJlBG.js";
|
|
6
6
|
import { t as u } from "./watch.Ub5r8btz.js";
|
|
7
7
|
import { t as d } from "./class-map.D8nsNOVJ.js";
|
|
8
|
-
import { n as f, t as p } from "./icon-button.
|
|
8
|
+
import { n as f, t as p } from "./icon-button.DSSgDKO8.js";
|
|
9
9
|
import { t as m } from "./when.BUskJLtZ.js";
|
|
10
|
-
import { t as h } from "./button.
|
|
11
|
-
import { t as g } from "./tooltip.
|
|
10
|
+
import { t as h } from "./button.D58Q0tW6.js";
|
|
11
|
+
import { t as g } from "./tooltip.O-5jGui7.js";
|
|
12
12
|
import { t as _ } from "./typography.B0mkhqTB.js";
|
|
13
13
|
import { t as v } from "./math.od1DVmRk.js";
|
|
14
14
|
import { t as y } from "./repeat.CKv9FPlC.js";
|
|
15
|
-
import { t as b } from "./input.
|
|
16
|
-
import { t as x } from "./option.
|
|
15
|
+
import { t as b } from "./input.AS0kZ6ks.js";
|
|
16
|
+
import { t as x } from "./option.CKvalzr2.js";
|
|
17
17
|
import { t as S } from "./space.Dd8jezXK.js";
|
|
18
|
-
import { t as C } from "./select.
|
|
18
|
+
import { t as C } from "./select.CmdHRMy_.js";
|
|
19
19
|
//#region ../../packages/types/src/pagination.ts
|
|
20
20
|
var w = /* @__PURE__ */ function(e) {
|
|
21
21
|
return e.Both = "both", e.Pages = "pages", e.Rows = "rows", e;
|
|
@@ -5,7 +5,7 @@ import { t as u } from "./base.DmbhkjF_.js";
|
|
|
5
5
|
import { t as d } from "./query.B1yi7t71.js";
|
|
6
6
|
import { t as f } from "./component.styles.0xM1ZmBs.js";
|
|
7
7
|
import { t as p } from "./custom-element.BEMYNDK1.js";
|
|
8
|
-
import { t as m } from "./i18n.
|
|
8
|
+
import { t as m } from "./i18n.deOPJlBG.js";
|
|
9
9
|
import { t as h } from "./class-map.D8nsNOVJ.js";
|
|
10
10
|
import { t as g } from "./if-defined.B29V_rEp.js";
|
|
11
11
|
import { t as _ } from "./when.BUskJLtZ.js";
|
|
@@ -2,7 +2,7 @@ import { c as e, d as t } from "./lit.CyJqR2kf.js";
|
|
|
2
2
|
import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
|
|
3
3
|
import { t as o } from "./component.styles.0xM1ZmBs.js";
|
|
4
4
|
import { t as s } from "./custom-element.BEMYNDK1.js";
|
|
5
|
-
import { t as c } from "./i18n.
|
|
5
|
+
import { t as c } from "./i18n.deOPJlBG.js";
|
|
6
6
|
import { n as l } from "./position-picker.dY_vgF_H.js";
|
|
7
7
|
import { t as u } from "./grid.CK4PRwur.js";
|
|
8
8
|
import { t as d } from "./grid-item.CSieaU5T.js";
|
|
@@ -2,7 +2,7 @@ import { c as e, d as t } from "./lit.CyJqR2kf.js";
|
|
|
2
2
|
import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
|
|
3
3
|
import { t as o } from "./component.styles.0xM1ZmBs.js";
|
|
4
4
|
import { t as s } from "./custom-element.BEMYNDK1.js";
|
|
5
|
-
import { t as c } from "./i18n.
|
|
5
|
+
import { t as c } from "./i18n.deOPJlBG.js";
|
|
6
6
|
import { t as l } from "./class-map.D8nsNOVJ.js";
|
|
7
7
|
import { t as u } from "./if-defined.B29V_rEp.js";
|
|
8
8
|
import { t as d } from "./style-map.DPGQIxip.js";
|