@supersoniks/concorde 3.1.93 → 3.1.94
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/build-infos.json +1 -1
- package/concorde-core.bundle.js +127 -124
- package/concorde-core.es.js +42 -38
- package/dist/concorde-core.bundle.js +127 -124
- package/dist/concorde-core.es.js +42 -38
- package/package.json +1 -1
- package/src/core/components/ui/modal/modal.ts +28 -21
package/concorde-core.es.js
CHANGED
|
@@ -559,7 +559,7 @@ let T = (k = class {
|
|
|
559
559
|
const h = await new Response(a.readable).arrayBuffer();
|
|
560
560
|
return new TextDecoder().decode(h);
|
|
561
561
|
}
|
|
562
|
-
}, k.buildDate = "
|
|
562
|
+
}, k.buildDate = "Thu Aug 21 2025 10:27:12 GMT+0200 (Central European Summer Time)", k.changed = !1, k.saving = !1, k.saveId = 0, k.instance = null, k.instances = /* @__PURE__ */ new Map(), k.modifiedCollectore = [], k);
|
|
563
563
|
if (typeof window < "u") {
|
|
564
564
|
const r = window;
|
|
565
565
|
r[Os + "PublisherManager"] = r[Os + "PublisherManager"] || T;
|
|
@@ -10936,17 +10936,18 @@ var Fh = Object.defineProperty, zh = Object.getOwnPropertyDescriptor, st = (r, t
|
|
|
10936
10936
|
const So = "sonic-modal";
|
|
10937
10937
|
let F = class extends G(x) {
|
|
10938
10938
|
constructor() {
|
|
10939
|
-
super(...arguments), this.forceAction = !1, this.removeOnHide = !1, this.removeHashOnHide = !1, this.align = "left", this.padding = "var(--
|
|
10939
|
+
super(...arguments), this.forceAction = !1, this.removeOnHide = !1, this.removeHashOnHide = !1, this.align = "left", this.padding = "var(--sc-modal-py) var(--sc-modal-px)", this.maxWidth = "var(--sc_max-w)", this.maxHeight = "var(--sc_max-h)", this.width = "100%", this.height = "fit-content", this.zIndex = "var(--sc_z-index)", this.effect = "slide", this.fullScreen = !1, this.visible = !1, this.closeOnLocationChange = !1, this.location = "", this._animationState = "hidden", this._animationDuration = 300, this._animationConfig = {
|
|
10940
10940
|
quartOut: "cubic-bezier(0.165, 0.84, 0.44, 1)",
|
|
10941
10941
|
quadOut: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
|
|
10942
10942
|
linear: "linear",
|
|
10943
10943
|
translateY: "translateY(2.5rem)",
|
|
10944
|
-
|
|
10944
|
+
durationIn: 300,
|
|
10945
|
+
durationOut: 450
|
|
10945
10946
|
};
|
|
10946
10947
|
}
|
|
10947
10948
|
static create(r) {
|
|
10948
10949
|
const t = document.createElement(So);
|
|
10949
|
-
return t.options = r, r.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), r.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), r.closeOnLocationChange === !0 && t.setAttribute("closeOnLocationChange", "true"), r.maxWidth && (t.maxWidth = r == null ? void 0 : r.maxWidth), r.width && (t.width = r == null ? void 0 : r.width), r.maxHeight && (t.maxHeight = r == null ? void 0 : r.maxHeight), r.height && (t.height = r == null ? void 0 : r.height), r.forceAction && (t.forceAction = !0), r.fullScreen && (t.fullScreen = r == null ? void 0 : r.fullScreen), r.effect && (t.effect = r == null ? void 0 : r.effect), r.paddingX && t.style.setProperty("--
|
|
10950
|
+
return t.options = r, r.removeHashOnHide === !0 && t.setAttribute("removeHashOnHide", "true"), r.removeOnHide === !0 && t.setAttribute("removeOnHide", "true"), r.closeOnLocationChange === !0 && t.setAttribute("closeOnLocationChange", "true"), r.maxWidth && (t.maxWidth = r == null ? void 0 : r.maxWidth), r.width && (t.width = r == null ? void 0 : r.width), r.maxHeight && (t.maxHeight = r == null ? void 0 : r.maxHeight), r.height && (t.height = r == null ? void 0 : r.height), r.forceAction && (t.forceAction = !0), r.fullScreen && (t.fullScreen = r == null ? void 0 : r.fullScreen), r.effect && (t.effect = r == null ? void 0 : r.effect), r.paddingX && t.style.setProperty("--sc-modal-px", r == null ? void 0 : r.paddingX), r.paddingY && t.style.setProperty("--sc-modal-py", r == null ? void 0 : r.paddingY), r.zIndex && t.style.setProperty("--sc_z-index", r == null ? void 0 : r.zIndex), yt.getPopContainer().appendChild(t), t.updateComplete.then(() => {
|
|
10950
10951
|
t.show();
|
|
10951
10952
|
}), t;
|
|
10952
10953
|
}
|
|
@@ -11075,37 +11076,37 @@ let F = class extends G(x) {
|
|
|
11075
11076
|
// ------------------------
|
|
11076
11077
|
animation(r) {
|
|
11077
11078
|
return new Promise((t) => {
|
|
11078
|
-
const { quartOut: e, linear: i, translateY: s,
|
|
11079
|
-
if (!
|
|
11080
|
-
const
|
|
11081
|
-
|
|
11079
|
+
const { quartOut: e, linear: i, translateY: s, durationIn: o, durationOut: n, quadOut: a } = this._animationConfig, c = this._modalElement;
|
|
11080
|
+
if (!c) return t();
|
|
11081
|
+
const h = r === "in", d = h ? o : n;
|
|
11082
|
+
h ? this.style.setProperty("--sc_backdrop-opacity", "0.8") : setTimeout(() => {
|
|
11082
11083
|
this.style.setProperty("--sc_backdrop-opacity", "0");
|
|
11083
11084
|
}, 300);
|
|
11084
|
-
const
|
|
11085
|
-
this.effect === "slide" && (
|
|
11086
|
-
|
|
11085
|
+
const p = [];
|
|
11086
|
+
this.effect === "slide" && (p.push(
|
|
11087
|
+
c.animate(
|
|
11087
11088
|
[
|
|
11088
|
-
{ transform:
|
|
11089
|
-
{ transform:
|
|
11089
|
+
{ transform: h ? s : "translateY(0)" },
|
|
11090
|
+
{ transform: h ? "translateY(0)" : s }
|
|
11090
11091
|
],
|
|
11091
11092
|
{
|
|
11092
|
-
duration:
|
|
11093
|
-
easing:
|
|
11093
|
+
duration: d,
|
|
11094
|
+
easing: h ? e : a,
|
|
11094
11095
|
fill: "both",
|
|
11095
|
-
delay:
|
|
11096
|
+
delay: h ? 100 : 0
|
|
11096
11097
|
}
|
|
11097
11098
|
)
|
|
11098
|
-
),
|
|
11099
|
-
|
|
11100
|
-
[{ opacity:
|
|
11099
|
+
), p.push(
|
|
11100
|
+
c.animate(
|
|
11101
|
+
[{ opacity: h ? 0 : 1 }, { opacity: h ? 1 : 0 }],
|
|
11101
11102
|
{
|
|
11102
|
-
duration:
|
|
11103
|
+
duration: d,
|
|
11103
11104
|
easing: i,
|
|
11104
11105
|
fill: "both",
|
|
11105
|
-
delay:
|
|
11106
|
+
delay: h ? 100 : 0
|
|
11106
11107
|
}
|
|
11107
11108
|
)
|
|
11108
|
-
)), Promise.all(
|
|
11109
|
+
)), Promise.all(p.map((m) => m.finished)).then(
|
|
11109
11110
|
() => t()
|
|
11110
11111
|
);
|
|
11111
11112
|
});
|
|
@@ -11115,8 +11116,8 @@ F.styles = [
|
|
|
11115
11116
|
fs,
|
|
11116
11117
|
P`
|
|
11117
11118
|
:host {
|
|
11118
|
-
--
|
|
11119
|
-
--
|
|
11119
|
+
--sc-modal-py: 2.5rem;
|
|
11120
|
+
--sc-modal-px: 1.5rem;
|
|
11120
11121
|
--sc_max-w: min(100vw, 40rem);
|
|
11121
11122
|
--sc_max-h: 85vh;
|
|
11122
11123
|
--sc_rounded: var(--sc-rounded-lg);
|
|
@@ -11147,7 +11148,6 @@ F.styles = [
|
|
|
11147
11148
|
z-index: var(--sc_z-index);
|
|
11148
11149
|
}
|
|
11149
11150
|
|
|
11150
|
-
/*#modal::backdrop {*/
|
|
11151
11151
|
#backdrop {
|
|
11152
11152
|
opacity: var(--sc_backdrop-opacity, 0);
|
|
11153
11153
|
background: var(
|
|
@@ -11165,7 +11165,7 @@ F.styles = [
|
|
|
11165
11165
|
flex-direction: column;
|
|
11166
11166
|
min-height: 10rem;
|
|
11167
11167
|
line-height: 1.25;
|
|
11168
|
-
padding: var(--
|
|
11168
|
+
padding: var(--sc-modal-py) var(--sc-modal-px);
|
|
11169
11169
|
}
|
|
11170
11170
|
|
|
11171
11171
|
::slotted(sonic-modal-subtitle),
|
|
@@ -11200,17 +11200,17 @@ F.styles = [
|
|
|
11200
11200
|
padding-right: 1em;
|
|
11201
11201
|
}
|
|
11202
11202
|
|
|
11203
|
-
:host([align="left"])
|
|
11203
|
+
:host([align="left"]) #modal-content {
|
|
11204
11204
|
text-align: left;
|
|
11205
11205
|
align-items: flex-start;
|
|
11206
11206
|
}
|
|
11207
11207
|
|
|
11208
|
-
:host([align="center"])
|
|
11208
|
+
:host([align="center"]) #modal-content {
|
|
11209
11209
|
text-align: center;
|
|
11210
11210
|
align-items: center;
|
|
11211
11211
|
}
|
|
11212
11212
|
|
|
11213
|
-
:host([align="right"])
|
|
11213
|
+
:host([align="right"]) #modal-content {
|
|
11214
11214
|
text-align: right;
|
|
11215
11215
|
align-items: flex-end;
|
|
11216
11216
|
}
|
|
@@ -11218,26 +11218,30 @@ F.styles = [
|
|
|
11218
11218
|
/* Close button */
|
|
11219
11219
|
::slotted(sonic-modal-close),
|
|
11220
11220
|
sonic-modal-close {
|
|
11221
|
+
--sc_translate-x: calc(var(--sc-modal-px) - 0.25rem);
|
|
11222
|
+
--sc_translate-y: calc(-1 * var(--sc-modal-py) - 0.25rem);
|
|
11223
|
+
--sc_top: 0.25rem;
|
|
11224
|
+
--sc_x: 0.25rem;
|
|
11221
11225
|
position: sticky;
|
|
11222
11226
|
display: block;
|
|
11223
|
-
align-self: flex-end;
|
|
11224
11227
|
height: 0;
|
|
11225
|
-
top: var(--
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
|
|
11228
|
+
top: var(--sc_top);
|
|
11229
|
+
margin-left: auto;
|
|
11230
|
+
margin-top: calc(-1 * var(--sc-modal-py) - 0.25rem);
|
|
11231
|
+
margin-bottom: var(--sc-modal-py);
|
|
11232
|
+
transform: translateX(var(--sc_translate-x));
|
|
11229
11233
|
z-index: 20;
|
|
11230
11234
|
}
|
|
11231
11235
|
:host([align="right"]) ::slotted(sonic-modal-close),
|
|
11232
11236
|
:host([align="right"]) sonic-modal-close {
|
|
11233
11237
|
right: auto;
|
|
11234
|
-
|
|
11235
|
-
|
|
11236
|
-
|
|
11238
|
+
margin-right: auto;
|
|
11239
|
+
margin-left: 0;
|
|
11240
|
+
transform: translateX(calc(-1 * var(--sc_translate-x)));
|
|
11237
11241
|
}
|
|
11238
11242
|
|
|
11239
11243
|
/* Border radius */
|
|
11240
|
-
:host([rounded="none"]) modal {
|
|
11244
|
+
:host([rounded="none"]) #modal {
|
|
11241
11245
|
--sc-img-radius: 0 !important;
|
|
11242
11246
|
}
|
|
11243
11247
|
`
|