@orangelogic/design-system 3.1.0 → 3.2.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.Ds5nq4mo.js → asset-link-format.BnIUG_vO.js} +19 -18
- package/library/chunks/{button.BnkkUqiI.js → button.CpY4FCwE.js} +1 -1
- package/library/chunks/{color-swatch-group.d5e1sYos.js → color-swatch-group.CTcv62MK.js} +11 -10
- package/library/chunks/{color-swatch.D6Gg5bpz.js → color-swatch.Caved2kL.js} +1 -1
- package/library/chunks/{confirm-popover.tftDINBg.js → confirm-popover.BSS1VhB2.js} +3 -3
- package/library/chunks/content-builder.BX4pHujE.js +60 -0
- package/library/chunks/{dialog.CzSaiGBF.js → dialog.ICoCAj6Z.js} +4 -4
- package/library/chunks/{document-viewer.B1EEIvUY.js → document-viewer.D6PxGcEL.js} +8 -7
- package/library/chunks/{dot-pagination.BqGFeFXK.js → dot-pagination.CzVpiv00.js} +1 -1
- package/library/chunks/{folder-select.CIqVGGFl.js → folder-select.DN-JomDt.js} +4 -4
- package/library/chunks/{header.CWlWNree.js → header.BQg_JjHw.js} +1 -1
- package/library/chunks/{i18n.DbXTTLXx.js → i18n.BA19xtyU.js} +6 -3
- package/library/chunks/{icon-button.BHC52xvk.js → icon-button.BWJ1Vqn5.js} +1 -1
- package/library/chunks/{iframe.-GCTFas1.js → iframe.Dm-nXSBv.js} +1 -1
- package/library/chunks/{image.CTMzUqCC.js → image.B-4cVbol.js} +187 -188
- package/library/chunks/{input.33UmFGqR.js → input.xgeLCG8I.js} +1 -1
- package/library/chunks/{markdown.Dga4_SbU.js → markdown.bkEjjjS9.js} +2 -2
- package/library/chunks/menu-item.DgUMVYe5.js +493 -0
- package/library/chunks/{option.B6odSlS2.js → option.jeaj7_Lr.js} +1 -1
- package/library/chunks/{pagination.D50ned8_.js → pagination.CSPKsj4y.js} +5 -5
- package/library/chunks/{tab-group.DE0RsMX4.js → tab-group.BSl6GdIO.js} +4 -4
- package/library/chunks/{toast.CXEAfCvN.js → toast.C5Ir5yKA.js} +1 -1
- package/library/chunks/transformation.CWKaoGaY.js +254 -0
- package/library/chunks/{tree.CmEdKtzK.js → tree.DYFFjW1-.js} +1 -1
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +4 -4
- package/library/components/atoms.js +31 -31
- package/library/components/audio.js +2 -2
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/document-viewer.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +4 -4
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +9 -9
- package/library/components/folder-select.js +4 -4
- 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 +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +3 -4
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +3 -3
- package/library/components/masonry.js +113 -100
- package/library/components/menu-item.js +15 -486
- package/library/components/menu.js +20 -20
- package/library/components/molecules.js +3 -3
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +6 -6
- package/library/components/popup.js +101 -98
- 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/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +18 -13
- 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 +3 -3
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/tab-group.js +5 -5
- package/library/components/tab.js +2 -2
- package/library/components/tag.js +2 -2
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +15020 -14844
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/image/image.d.ts +30 -4
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +5 -2
- package/library/packages/atoms/src/components/popup/popup.d.ts +11 -0
- package/library/packages/atoms/src/components/select/select.d.ts +8 -0
- package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +10 -0
- package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +1 -0
- package/library/packages/molecules/src/masonry/masonry.d.ts +9 -0
- package/library/packages/molecules/src/view-and-sort/view-and-sort.d.ts +8 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +88 -0
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +11 -1
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +31 -6
- package/library/packages/types/src/menu-item.d.ts +12 -1
- package/library/packages/utils/src/custom-element/i18n.d.ts +3 -0
- package/library/packages/utils/src/transformation/transformation.d.ts +52 -0
- package/library/react-web-component.d.ts +17 -1
- package/library/utils.js +173 -167
- package/package.json +1 -1
- package/library/chunks/transformation.8uLv6uwG.js +0 -264
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as Se, R as Re, H as K, a as ie, b as $e } from "./resizable-component.styles.CAfXABBc.js";
|
|
2
2
|
import { c as He } from "./component.styles.CRO4Odto.js";
|
|
3
3
|
import { a as Te } from "./index.Cpamj0jB.js";
|
|
4
4
|
import { c as Ae } from "./custom-element.L4WJXn1j.js";
|
|
5
5
|
import { d as Oe } from "./debounce.DaHuiSGU.js";
|
|
6
|
-
import { L as je } from "./i18n.
|
|
7
|
-
import { w as
|
|
6
|
+
import { L as je } from "./i18n.BA19xtyU.js";
|
|
7
|
+
import { w as M } from "./watch.DJF5K-8U.js";
|
|
8
8
|
import { a as Ze } from "./url.CGdWC06g.js";
|
|
9
|
-
import { i as se, E as
|
|
10
|
-
import { n as
|
|
11
|
-
import { r as
|
|
9
|
+
import { i as se, E as X, x as L } from "./lit-element.jLBm65_O.js";
|
|
10
|
+
import { n as p } from "./lib-cortex-element.CVMmyPMC.js";
|
|
11
|
+
import { r as E } from "./state.CSDxrqLd.js";
|
|
12
12
|
import { e as G } from "./query.BBf1UFkC.js";
|
|
13
|
-
import { e as
|
|
14
|
-
import { o as
|
|
13
|
+
import { e as S } from "./class-map.BiVq-cVR.js";
|
|
14
|
+
import { o as R } from "./if-defined.BRoBj_Rp.js";
|
|
15
15
|
import { i as Ie } from "./keyed.DdOUTIg-.js";
|
|
16
16
|
import { o as Me } from "./style-map.llVFPd__.js";
|
|
17
|
-
import { n as
|
|
17
|
+
import { n as A } from "./when.Dr1es41R.js";
|
|
18
18
|
import { C as _e } from "./icon.CpHbi8tH.js";
|
|
19
19
|
import Pe from "../components/popup.js";
|
|
20
20
|
import Ne from "../components/resize-observer.js";
|
|
21
21
|
import We from "../components/skeleton.js";
|
|
22
22
|
import Be from "../components/space.js";
|
|
23
|
-
|
|
24
|
-
var Z = /* @__PURE__ */ ((i) => (i.Automatic = "automatic", i.Manual = "manual", i))(Z || {});
|
|
23
|
+
var I = /* @__PURE__ */ ((i) => (i.Automatic = "automatic", i.Manual = "manual", i))(I || {});
|
|
25
24
|
/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */
|
|
26
25
|
var $ = Object.assign || function(i) {
|
|
27
26
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -30,30 +29,30 @@ var $ = Object.assign || function(i) {
|
|
|
30
29
|
Object.prototype.hasOwnProperty.call(o, l) && (i[l] = o[l]);
|
|
31
30
|
}
|
|
32
31
|
return i;
|
|
33
|
-
},
|
|
32
|
+
}, B = function(t) {
|
|
34
33
|
return t.tagName === "IMG";
|
|
35
|
-
},
|
|
34
|
+
}, Fe = function(t) {
|
|
36
35
|
return NodeList.prototype.isPrototypeOf(t);
|
|
37
|
-
},
|
|
36
|
+
}, F = function(t) {
|
|
38
37
|
return t && t.nodeType === 1;
|
|
39
38
|
}, oe = function(t) {
|
|
40
39
|
var o = t.currentSrc || t.src;
|
|
41
40
|
return o.substr(-4).toLowerCase() === ".svg";
|
|
42
41
|
}, re = function(t) {
|
|
43
42
|
try {
|
|
44
|
-
return Array.isArray(t) ? t.filter(
|
|
43
|
+
return Array.isArray(t) ? t.filter(B) : Fe(t) ? [].slice.call(t).filter(B) : F(t) ? [t].filter(B) : typeof t == "string" ? [].slice.call(document.querySelectorAll(t)).filter(B) : [];
|
|
45
44
|
} catch {
|
|
46
45
|
throw new TypeError(`The provided selector is invalid.
|
|
47
46
|
Expects a CSS selector, a Node element, a NodeList or an array.
|
|
48
47
|
See: https://github.com/francoischalifour/medium-zoom`);
|
|
49
48
|
}
|
|
50
|
-
},
|
|
49
|
+
}, Ue = function(t) {
|
|
51
50
|
var o = document.createElement("div");
|
|
52
51
|
return o.classList.add("medium-zoom-overlay"), o.style.background = t, o;
|
|
53
|
-
},
|
|
54
|
-
var o = t.getBoundingClientRect(), l = o.top, c = o.left,
|
|
55
|
-
return b.removeAttribute("id"), b.style.position = "absolute", b.style.top = l +
|
|
56
|
-
},
|
|
52
|
+
}, De = function(t) {
|
|
53
|
+
var o = t.getBoundingClientRect(), l = o.top, c = o.left, C = o.width, k = o.height, b = t.cloneNode(), U = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, _ = window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
|
|
54
|
+
return b.removeAttribute("id"), b.style.position = "absolute", b.style.top = l + U + "px", b.style.left = c + _ + "px", b.style.width = C + "px", b.style.height = k + "px", b.style.transform = "", b;
|
|
55
|
+
}, O = function(t, o) {
|
|
57
56
|
var l = $({
|
|
58
57
|
bubbles: !1,
|
|
59
58
|
cancelable: !1,
|
|
@@ -63,106 +62,106 @@ See: https://github.com/francoischalifour/medium-zoom`);
|
|
|
63
62
|
return new CustomEvent(t, l);
|
|
64
63
|
var c = document.createEvent("CustomEvent");
|
|
65
64
|
return c.initCustomEvent(t, l.bubbles, l.cancelable, l.detail), c;
|
|
66
|
-
},
|
|
65
|
+
}, qe = function i(t) {
|
|
67
66
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, l = window.Promise || function(r) {
|
|
68
67
|
function a() {
|
|
69
68
|
}
|
|
70
69
|
r(a, a);
|
|
71
70
|
}, c = function(r) {
|
|
72
71
|
var a = r.target;
|
|
73
|
-
if (a ===
|
|
72
|
+
if (a === N) {
|
|
74
73
|
x();
|
|
75
74
|
return;
|
|
76
75
|
}
|
|
77
76
|
y.indexOf(a) !== -1 && Q({ target: a });
|
|
78
|
-
},
|
|
77
|
+
}, C = function() {
|
|
79
78
|
if (!(H || !e.original)) {
|
|
80
79
|
var r = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
|
|
81
80
|
Math.abs(ee - r) > d.scrollOffset && setTimeout(x, 150);
|
|
82
81
|
}
|
|
83
|
-
},
|
|
82
|
+
}, k = function(r) {
|
|
84
83
|
var a = r.key || r.keyCode;
|
|
85
84
|
(a === "Escape" || a === "Esc" || a === 27) && x();
|
|
86
85
|
}, b = function() {
|
|
87
86
|
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = r;
|
|
88
|
-
if (r.background && (
|
|
89
|
-
var m =
|
|
87
|
+
if (r.background && (N.style.background = r.background), r.container && r.container instanceof Object && (a.container = $({}, d.container, r.container)), r.template) {
|
|
88
|
+
var m = F(r.template) ? r.template : document.querySelector(r.template);
|
|
90
89
|
a.template = m;
|
|
91
90
|
}
|
|
92
91
|
return d = $({}, d, a), y.forEach(function(g) {
|
|
93
|
-
g.dispatchEvent(
|
|
92
|
+
g.dispatchEvent(O("medium-zoom:update", {
|
|
94
93
|
detail: { zoom: u }
|
|
95
94
|
}));
|
|
96
95
|
}), u;
|
|
97
|
-
},
|
|
96
|
+
}, U = function() {
|
|
98
97
|
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
99
98
|
return i($({}, d, r));
|
|
100
|
-
},
|
|
99
|
+
}, _ = function() {
|
|
101
100
|
for (var r = arguments.length, a = Array(r), m = 0; m < r; m++)
|
|
102
101
|
a[m] = arguments[m];
|
|
103
|
-
var g = a.reduce(function(
|
|
104
|
-
return [].concat(
|
|
102
|
+
var g = a.reduce(function(s, v) {
|
|
103
|
+
return [].concat(s, re(v));
|
|
105
104
|
}, []);
|
|
106
|
-
return g.filter(function(
|
|
107
|
-
return y.indexOf(
|
|
108
|
-
}).forEach(function(
|
|
109
|
-
y.push(
|
|
110
|
-
}),
|
|
111
|
-
var
|
|
105
|
+
return g.filter(function(s) {
|
|
106
|
+
return y.indexOf(s) === -1;
|
|
107
|
+
}).forEach(function(s) {
|
|
108
|
+
y.push(s), s.classList.add("medium-zoom-image");
|
|
109
|
+
}), P.forEach(function(s) {
|
|
110
|
+
var v = s.type, z = s.listener, T = s.options;
|
|
112
111
|
g.forEach(function(w) {
|
|
113
|
-
w.addEventListener(
|
|
112
|
+
w.addEventListener(v, z, T);
|
|
114
113
|
});
|
|
115
114
|
}), u;
|
|
116
115
|
}, de = function() {
|
|
117
116
|
for (var r = arguments.length, a = Array(r), m = 0; m < r; m++)
|
|
118
117
|
a[m] = arguments[m];
|
|
119
118
|
e.zoomed && x();
|
|
120
|
-
var g = a.length > 0 ? a.reduce(function(
|
|
121
|
-
return [].concat(
|
|
119
|
+
var g = a.length > 0 ? a.reduce(function(s, v) {
|
|
120
|
+
return [].concat(s, re(v));
|
|
122
121
|
}, []) : y;
|
|
123
|
-
return g.forEach(function(
|
|
124
|
-
|
|
122
|
+
return g.forEach(function(s) {
|
|
123
|
+
s.classList.remove("medium-zoom-image"), s.dispatchEvent(O("medium-zoom:detach", {
|
|
125
124
|
detail: { zoom: u }
|
|
126
125
|
}));
|
|
127
|
-
}), y = y.filter(function(
|
|
128
|
-
return g.indexOf(
|
|
126
|
+
}), y = y.filter(function(s) {
|
|
127
|
+
return g.indexOf(s) === -1;
|
|
129
128
|
}), u;
|
|
130
129
|
}, ce = function(r, a) {
|
|
131
130
|
var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
132
131
|
return y.forEach(function(g) {
|
|
133
132
|
g.addEventListener("medium-zoom:" + r, a, m);
|
|
134
|
-
}),
|
|
133
|
+
}), P.push({ type: "medium-zoom:" + r, listener: a, options: m }), u;
|
|
135
134
|
}, me = function(r, a) {
|
|
136
135
|
var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
137
136
|
return y.forEach(function(g) {
|
|
138
137
|
g.removeEventListener("medium-zoom:" + r, a, m);
|
|
139
|
-
}),
|
|
138
|
+
}), P = P.filter(function(g) {
|
|
140
139
|
return !(g.type === "medium-zoom:" + r && g.listener.toString() === a.toString());
|
|
141
140
|
}), u;
|
|
142
141
|
}, J = function() {
|
|
143
142
|
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = r.target, m = function() {
|
|
144
|
-
var
|
|
143
|
+
var s = {
|
|
145
144
|
width: document.documentElement.clientWidth,
|
|
146
145
|
height: document.documentElement.clientHeight,
|
|
147
146
|
left: 0,
|
|
148
147
|
top: 0,
|
|
149
148
|
right: 0,
|
|
150
149
|
bottom: 0
|
|
151
|
-
},
|
|
150
|
+
}, v = void 0, z = void 0;
|
|
152
151
|
if (d.container)
|
|
153
152
|
if (d.container instanceof Object)
|
|
154
|
-
|
|
153
|
+
s = $({}, s, d.container), v = s.width - s.left - s.right - d.margin * 2, z = s.height - s.top - s.bottom - d.margin * 2;
|
|
155
154
|
else {
|
|
156
|
-
var T =
|
|
157
|
-
|
|
158
|
-
width:
|
|
155
|
+
var T = F(d.container) ? d.container : document.querySelector(d.container), w = T.getBoundingClientRect(), D = w.width, fe = w.height, ve = w.left, ye = w.top;
|
|
156
|
+
s = $({}, s, {
|
|
157
|
+
width: D,
|
|
159
158
|
height: fe,
|
|
160
159
|
left: ve,
|
|
161
160
|
top: ye
|
|
162
161
|
});
|
|
163
162
|
}
|
|
164
|
-
|
|
165
|
-
var
|
|
163
|
+
v = v || s.width - d.margin * 2, z = z || s.height - d.margin * 2;
|
|
164
|
+
var Z = e.zoomedHd || e.original, ze = oe(Z) ? v : Z.naturalWidth || v, be = oe(Z) ? z : Z.naturalHeight || z, W = Z.getBoundingClientRect(), xe = W.top, we = W.left, q = W.width, Y = W.height, Ee = Math.min(Math.max(q, ze), v) / q, Ce = Math.min(Math.max(Y, be), z) / Y, V = Math.min(Ee, Ce), ke = (-we + (v - q) / 2 + d.margin + s.left) / V, Le = (-xe + (z - Y) / 2 + d.margin + s.top) / V, te = "scale(" + V + ") translate3d(" + ke + "px, " + Le + "px, 0)";
|
|
166
165
|
e.zoomed.style.transform = te, e.zoomedHd && (e.zoomedHd.style.transform = te);
|
|
167
166
|
};
|
|
168
167
|
return new l(function(g) {
|
|
@@ -170,8 +169,8 @@ See: https://github.com/francoischalifour/medium-zoom`);
|
|
|
170
169
|
g(u);
|
|
171
170
|
return;
|
|
172
171
|
}
|
|
173
|
-
var
|
|
174
|
-
H = !1, e.zoomed.removeEventListener("transitionend",
|
|
172
|
+
var s = function D() {
|
|
173
|
+
H = !1, e.zoomed.removeEventListener("transitionend", D), e.original.dispatchEvent(O("medium-zoom:opened", {
|
|
175
174
|
detail: { zoom: u }
|
|
176
175
|
})), g(u);
|
|
177
176
|
};
|
|
@@ -182,21 +181,21 @@ See: https://github.com/francoischalifour/medium-zoom`);
|
|
|
182
181
|
if (a)
|
|
183
182
|
e.original = a;
|
|
184
183
|
else if (y.length > 0) {
|
|
185
|
-
var
|
|
186
|
-
e.original =
|
|
184
|
+
var v = y;
|
|
185
|
+
e.original = v[0];
|
|
187
186
|
} else {
|
|
188
187
|
g(u);
|
|
189
188
|
return;
|
|
190
189
|
}
|
|
191
|
-
if (e.original.dispatchEvent(
|
|
190
|
+
if (e.original.dispatchEvent(O("medium-zoom:open", {
|
|
192
191
|
detail: { zoom: u }
|
|
193
|
-
})), ee = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, H = !0, e.zoomed =
|
|
194
|
-
var z =
|
|
192
|
+
})), ee = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, H = !0, e.zoomed = De(e.original), document.body.appendChild(N), d.template) {
|
|
193
|
+
var z = F(d.template) ? d.template : document.querySelector(d.template);
|
|
195
194
|
e.template = document.createElement("div"), e.template.appendChild(z.content.cloneNode(!0)), document.body.appendChild(e.template);
|
|
196
195
|
}
|
|
197
196
|
if (e.original.parentElement && e.original.parentElement.tagName === "PICTURE" && e.original.currentSrc && (e.zoomed.src = e.original.currentSrc), document.body.appendChild(e.zoomed), window.requestAnimationFrame(function() {
|
|
198
197
|
document.body.classList.add("medium-zoom--opened");
|
|
199
|
-
}), e.original.classList.add("medium-zoom-image--hidden"), e.zoomed.classList.add("medium-zoom-image--opened"), e.zoomed.addEventListener("click", x), e.zoomed.addEventListener("transitionend",
|
|
198
|
+
}), e.original.classList.add("medium-zoom-image--hidden"), e.zoomed.classList.add("medium-zoom-image--opened"), e.zoomed.addEventListener("click", x), e.zoomed.addEventListener("transitionend", s), e.original.getAttribute("data-zoom-src")) {
|
|
200
199
|
e.zoomedHd = e.zoomed.cloneNode(), e.zoomedHd.removeAttribute("srcset"), e.zoomedHd.removeAttribute("sizes"), e.zoomedHd.removeAttribute("loading"), e.zoomedHd.src = e.zoomed.getAttribute("data-zoom-src"), e.zoomedHd.onerror = function() {
|
|
201
200
|
clearInterval(T), console.warn("Unable to reach the zoom image target " + e.zoomedHd.src), e.zoomedHd = null, m();
|
|
202
201
|
};
|
|
@@ -218,11 +217,11 @@ See: https://github.com/francoischalifour/medium-zoom`);
|
|
|
218
217
|
return;
|
|
219
218
|
}
|
|
220
219
|
var a = function m() {
|
|
221
|
-
e.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(e.zoomed), e.zoomedHd && document.body.removeChild(e.zoomedHd), document.body.removeChild(
|
|
220
|
+
e.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(e.zoomed), e.zoomedHd && document.body.removeChild(e.zoomedHd), document.body.removeChild(N), e.zoomed.classList.remove("medium-zoom-image--opened"), e.template && document.body.removeChild(e.template), H = !1, e.zoomed.removeEventListener("transitionend", m), e.original.dispatchEvent(O("medium-zoom:closed", {
|
|
222
221
|
detail: { zoom: u }
|
|
223
222
|
})), e.original = null, e.zoomed = null, e.zoomedHd = null, e.template = null, r(u);
|
|
224
223
|
};
|
|
225
|
-
H = !0, document.body.classList.remove("medium-zoom--opened"), e.zoomed.style.transform = "", e.zoomedHd && (e.zoomedHd.style.transform = ""), e.template && (e.template.style.transition = "opacity 150ms", e.template.style.opacity = 0), e.original.dispatchEvent(
|
|
224
|
+
H = !0, document.body.classList.remove("medium-zoom--opened"), e.zoomed.style.transform = "", e.zoomedHd && (e.zoomedHd.style.transform = ""), e.template && (e.template.style.transition = "opacity 150ms", e.template.style.opacity = 0), e.original.dispatchEvent(O("medium-zoom:close", {
|
|
226
225
|
detail: { zoom: u }
|
|
227
226
|
})), e.zoomed.addEventListener("transitionend", a);
|
|
228
227
|
});
|
|
@@ -235,29 +234,29 @@ See: https://github.com/francoischalifour/medium-zoom`);
|
|
|
235
234
|
return y;
|
|
236
235
|
}, pe = function() {
|
|
237
236
|
return e.original;
|
|
238
|
-
}, y = [],
|
|
237
|
+
}, y = [], P = [], H = !1, ee = 0, d = o, e = {
|
|
239
238
|
original: null,
|
|
240
239
|
zoomed: null,
|
|
241
240
|
zoomedHd: null,
|
|
242
241
|
template: null
|
|
243
242
|
// If the selector is omitted, it's replaced by the options
|
|
244
243
|
};
|
|
245
|
-
Object.prototype.toString.call(t) === "[object Object]" ? d = t : (t || typeof t == "string") &&
|
|
244
|
+
Object.prototype.toString.call(t) === "[object Object]" ? d = t : (t || typeof t == "string") && _(t), d = $({
|
|
246
245
|
margin: 0,
|
|
247
246
|
background: "#fff",
|
|
248
247
|
scrollOffset: 40,
|
|
249
248
|
container: null,
|
|
250
249
|
template: null
|
|
251
250
|
}, d);
|
|
252
|
-
var
|
|
253
|
-
document.addEventListener("click", c), document.addEventListener("keyup",
|
|
251
|
+
var N = Ue(d.background);
|
|
252
|
+
document.addEventListener("click", c), document.addEventListener("keyup", k), document.addEventListener("scroll", C), window.addEventListener("resize", x);
|
|
254
253
|
var u = {
|
|
255
254
|
open: J,
|
|
256
255
|
close: x,
|
|
257
256
|
toggle: Q,
|
|
258
257
|
update: b,
|
|
259
|
-
clone:
|
|
260
|
-
attach:
|
|
258
|
+
clone: U,
|
|
259
|
+
attach: _,
|
|
261
260
|
detach: de,
|
|
262
261
|
on: ce,
|
|
263
262
|
off: me,
|
|
@@ -267,7 +266,7 @@ See: https://github.com/francoischalifour/medium-zoom`);
|
|
|
267
266
|
};
|
|
268
267
|
return u;
|
|
269
268
|
};
|
|
270
|
-
function
|
|
269
|
+
function Ye(i, t) {
|
|
271
270
|
t === void 0 && (t = {});
|
|
272
271
|
var o = t.insertAt;
|
|
273
272
|
if (!(typeof document > "u")) {
|
|
@@ -275,9 +274,9 @@ function Ve(i, t) {
|
|
|
275
274
|
c.type = "text/css", o === "top" && l.firstChild ? l.insertBefore(c, l.firstChild) : l.appendChild(c), c.styleSheet ? c.styleSheet.cssText = i : c.appendChild(document.createTextNode(i));
|
|
276
275
|
}
|
|
277
276
|
}
|
|
278
|
-
var
|
|
279
|
-
Ve
|
|
280
|
-
const
|
|
277
|
+
var Ve = ".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}";
|
|
278
|
+
Ye(Ve);
|
|
279
|
+
const Ke = se`: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)}`, Xe = se`
|
|
281
280
|
:host {
|
|
282
281
|
--justify-content: flex-start;
|
|
283
282
|
--border-radius: 0px;
|
|
@@ -331,7 +330,7 @@ const Xe = se`:host([effect=jump]) .container,:host([effect=text-reveal]) .conta
|
|
|
331
330
|
max-height: 100%;
|
|
332
331
|
}
|
|
333
332
|
|
|
334
|
-
${
|
|
333
|
+
${Ke}
|
|
335
334
|
|
|
336
335
|
:host([block]) {
|
|
337
336
|
width: 100%;
|
|
@@ -523,18 +522,6 @@ const Xe = se`:host([effect=jump]) .container,:host([effect=text-reveal]) .conta
|
|
|
523
522
|
--border-radius: 0;
|
|
524
523
|
}
|
|
525
524
|
|
|
526
|
-
.retry-spinner {
|
|
527
|
-
position: absolute;
|
|
528
|
-
inset: 0;
|
|
529
|
-
display: flex;
|
|
530
|
-
align-items: center;
|
|
531
|
-
justify-content: center;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
.retry-spinner cx-spinner {
|
|
535
|
-
font-size: var(--cx-font-size-3x-large);
|
|
536
|
-
}
|
|
537
|
-
|
|
538
525
|
.fallback {
|
|
539
526
|
align-items: center;
|
|
540
527
|
display: flex;
|
|
@@ -548,16 +535,16 @@ const Xe = se`:host([effect=jump]) .container,:host([effect=text-reveal]) .conta
|
|
|
548
535
|
color: var(--fallback-icon-color);
|
|
549
536
|
}
|
|
550
537
|
`;
|
|
551
|
-
var
|
|
538
|
+
var Ge = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, le = (i) => {
|
|
552
539
|
throw TypeError(i);
|
|
553
540
|
}, h = (i, t, o, l) => {
|
|
554
|
-
for (var c = l > 1 ? void 0 : l ?
|
|
555
|
-
(
|
|
556
|
-
return l && c &&
|
|
557
|
-
}, he = (i, t, o) => t.has(i) || le("Cannot " + o), ae = (i, t, o) => (he(i, t, "read from private field"), o ? o.call(i) : t.get(i)),
|
|
558
|
-
let
|
|
541
|
+
for (var c = l > 1 ? void 0 : l ? Je(t, o) : t, C = i.length - 1, k; C >= 0; C--)
|
|
542
|
+
(k = i[C]) && (c = (l ? k(t, o, c) : k(c)) || c);
|
|
543
|
+
return l && c && Ge(t, o, c), c;
|
|
544
|
+
}, he = (i, t, o) => t.has(i) || le("Cannot " + o), ae = (i, t, o) => (he(i, t, "read from private field"), o ? o.call(i) : t.get(i)), Qe = (i, t, o) => t.has(i) ? le("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, o), ne = (i, t, o, l) => (he(i, t, "write to private field"), t.set(i, o), o), j;
|
|
545
|
+
let n = class extends Re {
|
|
559
546
|
constructor() {
|
|
560
|
-
super(...arguments), this.localize = new je(this), this.retryCount = 0, this.retryTimer = null, this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryIndex = 0, this.src = "", this.placeholder = "", this.alt = "", this.objectFit = Te.Fill, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.noCrossorigin = !1, this.clickHandlerType =
|
|
547
|
+
super(...arguments), this.localize = new je(this), this.retryCount = 0, this.retryTimer = null, this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryIndex = 0, this.src = "", this.srcset = "", this.sizes = "", this.placeholder = "", this.alt = "", this.objectFit = Te.Fill, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.noCrossorigin = !1, this.clickHandlerType = I.Automatic, this.retryOnError = !1, this.maxRetries = 3, this.isZoomed = !1, this.imageRatio = 1, this.parsedAlt = "", this.parsedAltDarkMode = "", this.zoom = null, this.lastPatchedWidth = null, Qe(this, j, "");
|
|
561
548
|
}
|
|
562
549
|
get currentAltValue() {
|
|
563
550
|
return this.alt;
|
|
@@ -566,15 +553,15 @@ let s = class extends Se {
|
|
|
566
553
|
return this.src;
|
|
567
554
|
}
|
|
568
555
|
get highlighterTabindex() {
|
|
569
|
-
return this.hasZoomAction && this.clickHandlerType ===
|
|
556
|
+
return this.hasZoomAction && this.clickHandlerType === I.Automatic ? "0" : void 0;
|
|
570
557
|
}
|
|
571
558
|
get highlighterRole() {
|
|
572
|
-
return this.hasZoomAction && this.clickHandlerType ===
|
|
559
|
+
return this.hasZoomAction && this.clickHandlerType === I.Automatic ? "button" : "img";
|
|
573
560
|
}
|
|
574
561
|
get highlighterClass() {
|
|
575
562
|
return {
|
|
576
563
|
"highlightable-item": !0,
|
|
577
|
-
"highlightable-item--effect-text-reveal": this.effect ===
|
|
564
|
+
"highlightable-item--effect-text-reveal": this.effect === K.TextReveal,
|
|
578
565
|
[`highlightable-item--text-reveal-style-${this.textRevealStyle}`]: !0
|
|
579
566
|
};
|
|
580
567
|
}
|
|
@@ -595,6 +582,17 @@ let s = class extends Se {
|
|
|
595
582
|
get crossorigin() {
|
|
596
583
|
return this.noCrossorigin ? void 0 : "anonymous";
|
|
597
584
|
}
|
|
585
|
+
/**
|
|
586
|
+
* Whether to hold the box with a skeleton rather than the loaded image.
|
|
587
|
+
*
|
|
588
|
+
* Retries are included: a retry is still "not loaded yet", so it keeps the same
|
|
589
|
+
* skeleton instead of swapping in a spinner. A spinner would restate what the
|
|
590
|
+
* skeleton already shows while changing the visual weight of the cell mid-load,
|
|
591
|
+
* which reads as a layout change on an image-heavy page.
|
|
592
|
+
*/
|
|
593
|
+
get showPlaceholderSkeleton() {
|
|
594
|
+
return this.isError ? !1 : this.skeleton && !this.isLoaded || this.loading || this.isRetrying;
|
|
595
|
+
}
|
|
598
596
|
/**
|
|
599
597
|
* Whether the image have zoom action.
|
|
600
598
|
*/
|
|
@@ -638,7 +636,7 @@ let s = class extends Se {
|
|
|
638
636
|
await this.updateComplete, this.requestUpdate();
|
|
639
637
|
}
|
|
640
638
|
handleSrcChange() {
|
|
641
|
-
this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryCount = 0, this.retryIndex = 0, ne(this,
|
|
639
|
+
this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryCount = 0, this.retryIndex = 0, ne(this, j, ""), this.clearRetryTimer();
|
|
642
640
|
}
|
|
643
641
|
clearRetryTimer() {
|
|
644
642
|
this.retryTimer !== null && (clearTimeout(this.retryTimer), this.retryTimer = null);
|
|
@@ -646,15 +644,15 @@ let s = class extends Se {
|
|
|
646
644
|
scheduleRetry() {
|
|
647
645
|
const i = Math.min(1e3 * Math.pow(2, this.retryCount - 1), 1e4);
|
|
648
646
|
this.retryTimer = setTimeout(() => {
|
|
649
|
-
this.retryTimer = null, ne(this,
|
|
647
|
+
this.retryTimer = null, ne(this, j, `${this.retryCount}-${Math.random().toString(36).slice(2)}`), this.retryIndex += 1;
|
|
650
648
|
}, i);
|
|
651
649
|
}
|
|
652
650
|
/** Appends the retry cache-bust param to `src` while a retry attempt is in flight, so a CDN edge caching a corrupted/truncated response is bypassed in favor of a fresh origin fetch. */
|
|
653
651
|
applyRetryCacheBust(i) {
|
|
654
|
-
return this.retryIndex === 0 || !ae(this,
|
|
652
|
+
return this.retryIndex === 0 || !ae(this, j) || !i ? i : Ze(i, "cachebust", ae(this, j));
|
|
655
653
|
}
|
|
656
654
|
async initZoom() {
|
|
657
|
-
this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom =
|
|
655
|
+
this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom = qe(this.zoomImageElement, {
|
|
658
656
|
background: "light-dark(rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.8))",
|
|
659
657
|
margin: 0,
|
|
660
658
|
scrollOffset: 0
|
|
@@ -694,7 +692,7 @@ let s = class extends Se {
|
|
|
694
692
|
* Support CMS5 click action for the image.
|
|
695
693
|
*/
|
|
696
694
|
handleClickAction(i) {
|
|
697
|
-
!(i.target instanceof HTMLElement) || this.clickHandlerType ===
|
|
695
|
+
!(i.target instanceof HTMLElement) || this.clickHandlerType === I.Manual || this.canZoom && this.openZoom();
|
|
698
696
|
}
|
|
699
697
|
updated(i) {
|
|
700
698
|
super.updated(i), (i.has("width") || i.has("height") || i.has("heightMode") || i.has("resizeSize")) && this.handleSizeChange();
|
|
@@ -706,150 +704,151 @@ let s = class extends Se {
|
|
|
706
704
|
const i = this.applyRetryCacheBust(this.currentSrc), t = this.currentAltValue;
|
|
707
705
|
if (this.retryOnError) {
|
|
708
706
|
if (this.isError && this.retryCount >= this.maxRetries)
|
|
709
|
-
return
|
|
707
|
+
return X;
|
|
710
708
|
} else if (this.isError)
|
|
711
|
-
return
|
|
712
|
-
return
|
|
709
|
+
return X;
|
|
710
|
+
return L`<div part="content" slot="anchor" class=${S(this.highlighterClass)}>${Ie(
|
|
713
711
|
this.retryIndex,
|
|
714
|
-
|
|
712
|
+
L`<img part="image" class=${S(this.imageClass)} src=${i || this.placeholder} srcset=${R(this.srcset || void 0)} sizes=${R(this.sizes || void 0)} alt=${t} aria-label=${t} crossorigin=${R(this.crossorigin)} @load=${this.handleLoad} @error=${this.handleError} loading=${this.retryIndex > 0 ? "eager" : this.htmlLoading} decoding="async" width=${R(this.width || void 0)} height=${R(this.height || void 0)}>`
|
|
715
713
|
)}</div>`;
|
|
716
714
|
}
|
|
717
715
|
render() {
|
|
718
716
|
const i = this.hasZoomAction, t = this.currentAltValue, o = !this.currentSrc && !this.placeholder;
|
|
719
|
-
return
|
|
717
|
+
return L`<div part="base" class=${S({
|
|
720
718
|
container: !0,
|
|
721
719
|
"container--empty": o,
|
|
722
720
|
"container--loading": this.loading,
|
|
723
721
|
"container--resizing": this.resizable && this.isResizeActive
|
|
724
722
|
})} style=${Me({
|
|
725
723
|
"--easing": this.easeCSSVariable
|
|
726
|
-
})} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${
|
|
724
|
+
})} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${R(this.highlighterTabindex)} role=${this.highlighterRole} aria-label=${t} aria-roledescription=${this.localize.term("image")} class=${S(o ? {} : this.getHighlighterClass(this.isError))} @click=${this.handleClickAction} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave} @blur=${this.handleBlur}>${A(
|
|
727
725
|
o,
|
|
728
|
-
() =>
|
|
729
|
-
() =>
|
|
730
|
-
this.effect ===
|
|
731
|
-
() =>
|
|
726
|
+
() => X,
|
|
727
|
+
() => A(
|
|
728
|
+
this.effect === K.Jump || this.effect === K.Zoom,
|
|
729
|
+
() => L`<cx-popup class="popup-container" strategy="absolute" active placement="center" sync="both">${this.renderContent()}</cx-popup>`,
|
|
732
730
|
() => this.renderContent()
|
|
733
731
|
)
|
|
734
|
-
)}<div class="zoom-image-container">${
|
|
732
|
+
)}<div class="zoom-image-container">${A(
|
|
735
733
|
i,
|
|
736
|
-
() =>
|
|
734
|
+
() => L`<img part="zoom-image" class=${S({
|
|
737
735
|
"zoom-image": !0,
|
|
738
736
|
"zoom-image--hidden": !this.isZoomed
|
|
739
|
-
})} src=${this.applyRetryCacheBust(this.currentSrc) || this.placeholder} alt="" aria-hidden="true" decoding="async" draggable="false" crossorigin=${
|
|
740
|
-
)}</div>${S(
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
})}><cx-skeleton effect="sheen"></cx-skeleton></div></slot>`
|
|
745
|
-
)}
|
|
746
|
-
${S(this.isRetrying, () => E`<div part="retry-spinner" class=${C({ "retry-spinner": !0 })}><cx-spinner></cx-spinner></div>`)}
|
|
747
|
-
${S(this.isError, () => E`<slot name="fallback" part="fallback"><cx-space class=${C({ 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>${S(this.resizable && this.isResizeActive, () => this.renderResizer())}</div>`;
|
|
737
|
+
})} src=${this.applyRetryCacheBust(this.currentSrc) || this.placeholder} alt="" aria-hidden="true" decoding="async" draggable="false" crossorigin=${R(this.crossorigin)}>`
|
|
738
|
+
)}</div>${A(this.showPlaceholderSkeleton, () => L`<slot name="skeleton" part="skeleton"><div class=${S({
|
|
739
|
+
skeleton: !0
|
|
740
|
+
})}><cx-skeleton effect="sheen" role="status" aria-live="polite" aria-label=${this.localize.term("loading")}></cx-skeleton></div></slot>`)}
|
|
741
|
+
${A(this.isError, () => L`<slot name="fallback" part="fallback"><cx-space class=${S({ 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>${A(this.resizable && this.isResizeActive, () => this.renderResizer())}</div>`;
|
|
748
742
|
}
|
|
749
743
|
};
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
744
|
+
j = /* @__PURE__ */ new WeakMap();
|
|
745
|
+
n.styles = [He, Se, Xe];
|
|
746
|
+
n.dependencies = {
|
|
753
747
|
"cx-icon": _e,
|
|
754
748
|
"cx-popup": Pe,
|
|
755
749
|
"cx-resize-observer": Ne,
|
|
756
750
|
"cx-skeleton": We,
|
|
757
|
-
"cx-space": Be
|
|
758
|
-
"cx-spinner": Fe
|
|
751
|
+
"cx-space": Be
|
|
759
752
|
};
|
|
760
753
|
h([
|
|
761
754
|
G(".image")
|
|
762
|
-
],
|
|
755
|
+
], n.prototype, "imageElement", 2);
|
|
763
756
|
h([
|
|
764
757
|
G(".zoom-image")
|
|
765
|
-
],
|
|
758
|
+
], n.prototype, "zoomImageElement", 2);
|
|
766
759
|
h([
|
|
767
760
|
G(".highlighter")
|
|
768
|
-
],
|
|
761
|
+
], n.prototype, "highlighterElement", 2);
|
|
762
|
+
h([
|
|
763
|
+
E()
|
|
764
|
+
], n.prototype, "isLoaded", 2);
|
|
765
|
+
h([
|
|
766
|
+
E()
|
|
767
|
+
], n.prototype, "isError", 2);
|
|
769
768
|
h([
|
|
770
|
-
|
|
771
|
-
],
|
|
769
|
+
E()
|
|
770
|
+
], n.prototype, "isRetrying", 2);
|
|
772
771
|
h([
|
|
773
|
-
|
|
774
|
-
],
|
|
772
|
+
E()
|
|
773
|
+
], n.prototype, "retryIndex", 2);
|
|
775
774
|
h([
|
|
776
|
-
|
|
777
|
-
],
|
|
775
|
+
p({ reflect: !0, type: String })
|
|
776
|
+
], n.prototype, "src", 2);
|
|
778
777
|
h([
|
|
779
|
-
|
|
780
|
-
],
|
|
778
|
+
p({ reflect: !0, type: String })
|
|
779
|
+
], n.prototype, "srcset", 2);
|
|
781
780
|
h([
|
|
782
|
-
|
|
783
|
-
],
|
|
781
|
+
p({ reflect: !0, type: String })
|
|
782
|
+
], n.prototype, "sizes", 2);
|
|
784
783
|
h([
|
|
785
|
-
|
|
786
|
-
],
|
|
784
|
+
p({ reflect: !0, type: String })
|
|
785
|
+
], n.prototype, "placeholder", 2);
|
|
787
786
|
h([
|
|
788
|
-
|
|
789
|
-
],
|
|
787
|
+
p({ reflect: !0, type: String })
|
|
788
|
+
], n.prototype, "alt", 2);
|
|
790
789
|
h([
|
|
791
|
-
|
|
792
|
-
],
|
|
790
|
+
p({ attribute: "object-fit", reflect: !0 })
|
|
791
|
+
], n.prototype, "objectFit", 2);
|
|
793
792
|
h([
|
|
794
|
-
|
|
795
|
-
],
|
|
793
|
+
p({ reflect: !0, type: Boolean })
|
|
794
|
+
], n.prototype, "skeleton", 2);
|
|
796
795
|
h([
|
|
797
|
-
|
|
798
|
-
],
|
|
796
|
+
p({ reflect: !0, type: Boolean })
|
|
797
|
+
], n.prototype, "fallback", 2);
|
|
799
798
|
h([
|
|
800
|
-
|
|
801
|
-
],
|
|
799
|
+
p({ attribute: "can-zoom", reflect: !0, type: Boolean })
|
|
800
|
+
], n.prototype, "canZoom", 2);
|
|
802
801
|
h([
|
|
803
|
-
|
|
804
|
-
],
|
|
802
|
+
p({ reflect: !0, type: Boolean })
|
|
803
|
+
], n.prototype, "loading", 2);
|
|
805
804
|
h([
|
|
806
|
-
|
|
807
|
-
],
|
|
805
|
+
p({ reflect: !0, type: Boolean })
|
|
806
|
+
], n.prototype, "block", 2);
|
|
808
807
|
h([
|
|
809
|
-
|
|
810
|
-
],
|
|
808
|
+
p({ attribute: "html-loading", reflect: !0, type: String })
|
|
809
|
+
], n.prototype, "htmlLoading", 2);
|
|
811
810
|
h([
|
|
812
|
-
|
|
813
|
-
],
|
|
811
|
+
p({ attribute: "no-crossorigin", reflect: !0, type: Boolean })
|
|
812
|
+
], n.prototype, "noCrossorigin", 2);
|
|
814
813
|
h([
|
|
815
|
-
|
|
816
|
-
],
|
|
814
|
+
p({ attribute: "click-handler-type", reflect: !0, type: String })
|
|
815
|
+
], n.prototype, "clickHandlerType", 2);
|
|
817
816
|
h([
|
|
818
|
-
|
|
819
|
-
],
|
|
817
|
+
p({ attribute: "retry-on-error", reflect: !0, type: Boolean })
|
|
818
|
+
], n.prototype, "retryOnError", 2);
|
|
820
819
|
h([
|
|
821
|
-
|
|
822
|
-
],
|
|
820
|
+
p({ attribute: "max-retries", type: Number })
|
|
821
|
+
], n.prototype, "maxRetries", 2);
|
|
823
822
|
h([
|
|
824
|
-
|
|
825
|
-
],
|
|
823
|
+
E()
|
|
824
|
+
], n.prototype, "isZoomed", 2);
|
|
826
825
|
h([
|
|
827
|
-
|
|
828
|
-
],
|
|
826
|
+
E()
|
|
827
|
+
], n.prototype, "imageRatio", 2);
|
|
829
828
|
h([
|
|
830
|
-
|
|
831
|
-
],
|
|
829
|
+
E()
|
|
830
|
+
], n.prototype, "parsedAlt", 2);
|
|
832
831
|
h([
|
|
833
|
-
|
|
834
|
-
],
|
|
832
|
+
E()
|
|
833
|
+
], n.prototype, "parsedAltDarkMode", 2);
|
|
835
834
|
h([
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
],
|
|
835
|
+
M("isLoaded"),
|
|
836
|
+
M("canZoom", { waitUntilFirstUpdate: !0 })
|
|
837
|
+
], n.prototype, "handleCanZoomChange", 1);
|
|
839
838
|
h([
|
|
840
|
-
|
|
841
|
-
],
|
|
839
|
+
M("objectFit", { waitUntilFirstUpdate: !0 })
|
|
840
|
+
], n.prototype, "handleObjectFitChange", 1);
|
|
842
841
|
h([
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
],
|
|
842
|
+
M("src"),
|
|
843
|
+
M("srcDarkMode")
|
|
844
|
+
], n.prototype, "handleSrcChange", 1);
|
|
846
845
|
h([
|
|
847
846
|
Oe(100)
|
|
848
|
-
],
|
|
849
|
-
|
|
847
|
+
], n.prototype, "updateLastPatchedWidth", 1);
|
|
848
|
+
n = h([
|
|
850
849
|
Ae("cx-image")
|
|
851
|
-
],
|
|
850
|
+
], n);
|
|
852
851
|
export {
|
|
853
|
-
|
|
854
|
-
|
|
852
|
+
n as C,
|
|
853
|
+
I as a
|
|
855
854
|
};
|