@supersoniks/concorde 3.1.92 → 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 +130 -127
- package/concorde-core.es.js +69 -83
- package/dist/concorde-core.bundle.js +130 -127
- package/dist/concorde-core.es.js +69 -83
- package/package.json +1 -1
- package/src/core/components/ui/modal/modal.ts +105 -113
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,11 +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
|
+
quartOut: "cubic-bezier(0.165, 0.84, 0.44, 1)",
|
|
10941
|
+
quadOut: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
|
|
10942
|
+
linear: "linear",
|
|
10943
|
+
translateY: "translateY(2.5rem)",
|
|
10944
|
+
durationIn: 300,
|
|
10945
|
+
durationOut: 450
|
|
10946
|
+
};
|
|
10940
10947
|
}
|
|
10941
10948
|
static create(r) {
|
|
10942
10949
|
const t = document.createElement(So);
|
|
10943
|
-
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(() => {
|
|
10944
10951
|
t.show();
|
|
10945
10952
|
}), t;
|
|
10946
10953
|
}
|
|
@@ -11036,23 +11043,17 @@ let F = class extends G(x) {
|
|
|
11036
11043
|
}
|
|
11037
11044
|
// Show the modal
|
|
11038
11045
|
async show() {
|
|
11039
|
-
this._modalElement.show(), this._animationState = "in", this.
|
|
11040
|
-
this._animationState = "visible", this.visible = !0, this.dispatchEvent(new CustomEvent("show")), this._modalElement.focus();
|
|
11041
|
-
});
|
|
11046
|
+
this._modalElement.show(), this._animationState = "in", await this.animation("in"), this._animationState = "visible", this.visible = !0, this.dispatchEvent(new CustomEvent("show")), this._modalElement.focus();
|
|
11042
11047
|
}
|
|
11043
11048
|
// Hide the modal
|
|
11044
11049
|
async hide() {
|
|
11045
|
-
this._animationState = "out", this.dispatchEvent(new CustomEvent("hide")), await
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
this.getAttribute("resetDataProviderOnHide")
|
|
11049
|
-
).set({}), this.removeHashOnHide && window.history.replaceState({}, "", window.location.pathname), this.removeOnHide && this.remove(), this.dispatchEvent(new CustomEvent("hidden"));
|
|
11050
|
-
}
|
|
11051
|
-
);
|
|
11050
|
+
this._animationState = "out", this.dispatchEvent(new CustomEvent("hide")), await this.animation("out"), this._modalElement.close(), this._animationState = "hidden", this.visible = !1, this.hasAttribute("resetDataProviderOnHide") && rt.get(this.getAttribute("resetDataProviderOnHide")).set(
|
|
11051
|
+
{}
|
|
11052
|
+
), this.removeHashOnHide && window.history.replaceState({}, "", window.location.pathname), this.removeOnHide && this.remove(), this.dispatchEvent(new CustomEvent("hidden"));
|
|
11052
11053
|
}
|
|
11053
11054
|
// Hide and remove the modal
|
|
11054
|
-
dispose() {
|
|
11055
|
-
this.hide(), this.remove();
|
|
11055
|
+
async dispose() {
|
|
11056
|
+
await this.hide(), this.remove();
|
|
11056
11057
|
}
|
|
11057
11058
|
// Hide and remove all modals
|
|
11058
11059
|
static disposeAll() {
|
|
@@ -11073,59 +11074,41 @@ let F = class extends G(x) {
|
|
|
11073
11074
|
// ------------------------
|
|
11074
11075
|
// ANIMATIONS
|
|
11075
11076
|
// ------------------------
|
|
11076
|
-
|
|
11077
|
-
return new Promise((
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11077
|
+
animation(r) {
|
|
11078
|
+
return new Promise((t) => {
|
|
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(() => {
|
|
11083
|
+
this.style.setProperty("--sc_backdrop-opacity", "0");
|
|
11084
|
+
}, 300);
|
|
11085
|
+
const p = [];
|
|
11086
|
+
this.effect === "slide" && (p.push(
|
|
11087
|
+
c.animate(
|
|
11088
|
+
[
|
|
11089
|
+
{ transform: h ? s : "translateY(0)" },
|
|
11090
|
+
{ transform: h ? "translateY(0)" : s }
|
|
11091
|
+
],
|
|
11087
11092
|
{
|
|
11088
|
-
|
|
11089
|
-
|
|
11093
|
+
duration: d,
|
|
11094
|
+
easing: h ? e : a,
|
|
11095
|
+
fill: "both",
|
|
11096
|
+
delay: h ? 100 : 0
|
|
11090
11097
|
}
|
|
11091
|
-
|
|
11092
|
-
|
|
11093
|
-
|
|
11094
|
-
|
|
11095
|
-
fill: "forwards",
|
|
11096
|
-
delay: 80
|
|
11097
|
-
}
|
|
11098
|
-
) : i = r.animate([{ opacity: 0 }, { opacity: 1 }], {
|
|
11099
|
-
duration: this._animationDuration,
|
|
11100
|
-
fill: "forwards"
|
|
11101
|
-
}), i.onfinish = () => e();
|
|
11102
|
-
});
|
|
11103
|
-
}
|
|
11104
|
-
animateOut(r, t = "slide") {
|
|
11105
|
-
return new Promise((e) => {
|
|
11106
|
-
if (!r) return e();
|
|
11107
|
-
this.style.setProperty("--sc_backdrop-opacity", "0");
|
|
11108
|
-
let i;
|
|
11109
|
-
t === "slide" ? i = r.animate(
|
|
11110
|
-
[
|
|
11098
|
+
)
|
|
11099
|
+
), p.push(
|
|
11100
|
+
c.animate(
|
|
11101
|
+
[{ opacity: h ? 0 : 1 }, { opacity: h ? 1 : 0 }],
|
|
11111
11102
|
{
|
|
11112
|
-
|
|
11113
|
-
|
|
11114
|
-
|
|
11115
|
-
|
|
11116
|
-
opacity: 0,
|
|
11117
|
-
transform: "translateY(3.25rem)"
|
|
11103
|
+
duration: d,
|
|
11104
|
+
easing: i,
|
|
11105
|
+
fill: "both",
|
|
11106
|
+
delay: h ? 100 : 0
|
|
11118
11107
|
}
|
|
11119
|
-
|
|
11120
|
-
|
|
11121
|
-
|
|
11122
|
-
|
|
11123
|
-
fill: "forwards"
|
|
11124
|
-
}
|
|
11125
|
-
) : i = r.animate([{ opacity: 1 }, { opacity: 0 }], {
|
|
11126
|
-
duration: this._animationDuration,
|
|
11127
|
-
fill: "forwards"
|
|
11128
|
-
}), i.onfinish = () => e();
|
|
11108
|
+
)
|
|
11109
|
+
)), Promise.all(p.map((m) => m.finished)).then(
|
|
11110
|
+
() => t()
|
|
11111
|
+
);
|
|
11129
11112
|
});
|
|
11130
11113
|
}
|
|
11131
11114
|
};
|
|
@@ -11133,8 +11116,8 @@ F.styles = [
|
|
|
11133
11116
|
fs,
|
|
11134
11117
|
P`
|
|
11135
11118
|
:host {
|
|
11136
|
-
--
|
|
11137
|
-
--
|
|
11119
|
+
--sc-modal-py: 2.5rem;
|
|
11120
|
+
--sc-modal-px: 1.5rem;
|
|
11138
11121
|
--sc_max-w: min(100vw, 40rem);
|
|
11139
11122
|
--sc_max-h: 85vh;
|
|
11140
11123
|
--sc_rounded: var(--sc-rounded-lg);
|
|
@@ -11165,14 +11148,13 @@ F.styles = [
|
|
|
11165
11148
|
z-index: var(--sc_z-index);
|
|
11166
11149
|
}
|
|
11167
11150
|
|
|
11168
|
-
/*#modal::backdrop {*/
|
|
11169
11151
|
#backdrop {
|
|
11170
11152
|
opacity: var(--sc_backdrop-opacity, 0);
|
|
11171
11153
|
background: var(
|
|
11172
11154
|
--sc_overlay-bg,
|
|
11173
11155
|
var(--sc-base-200, rgba(0, 0, 0, 0.12))
|
|
11174
11156
|
);
|
|
11175
|
-
transition: opacity 0.
|
|
11157
|
+
transition: opacity 0.15s linear;
|
|
11176
11158
|
inset: 0;
|
|
11177
11159
|
position: fixed;
|
|
11178
11160
|
z-index: var(--sc_z-index);
|
|
@@ -11183,13 +11165,13 @@ F.styles = [
|
|
|
11183
11165
|
flex-direction: column;
|
|
11184
11166
|
min-height: 10rem;
|
|
11185
11167
|
line-height: 1.25;
|
|
11186
|
-
padding: var(--
|
|
11168
|
+
padding: var(--sc-modal-py) var(--sc-modal-px);
|
|
11187
11169
|
}
|
|
11188
11170
|
|
|
11189
11171
|
::slotted(sonic-modal-subtitle),
|
|
11190
11172
|
sonic-modal-subtitle {
|
|
11191
11173
|
margin-top: -0.9rem;
|
|
11192
|
-
margin-bottom:
|
|
11174
|
+
margin-bottom: 2.5rem;
|
|
11193
11175
|
}
|
|
11194
11176
|
|
|
11195
11177
|
@media (max-width: 767.5px) {
|
|
@@ -11211,24 +11193,24 @@ F.styles = [
|
|
|
11211
11193
|
/* Layout des éléments slottés */
|
|
11212
11194
|
::slotted(sonic-modal-title),
|
|
11213
11195
|
sonic-modal-title {
|
|
11214
|
-
margin-bottom:
|
|
11196
|
+
margin-bottom: 2.5rem;
|
|
11215
11197
|
}
|
|
11216
11198
|
:host([align="left"]) ::slotted(sonic-modal-title),
|
|
11217
11199
|
:host([align="left"]) sonic-modal-title {
|
|
11218
11200
|
padding-right: 1em;
|
|
11219
11201
|
}
|
|
11220
11202
|
|
|
11221
|
-
:host([align="left"])
|
|
11203
|
+
:host([align="left"]) #modal-content {
|
|
11222
11204
|
text-align: left;
|
|
11223
11205
|
align-items: flex-start;
|
|
11224
11206
|
}
|
|
11225
11207
|
|
|
11226
|
-
:host([align="center"])
|
|
11208
|
+
:host([align="center"]) #modal-content {
|
|
11227
11209
|
text-align: center;
|
|
11228
11210
|
align-items: center;
|
|
11229
11211
|
}
|
|
11230
11212
|
|
|
11231
|
-
:host([align="right"])
|
|
11213
|
+
:host([align="right"]) #modal-content {
|
|
11232
11214
|
text-align: right;
|
|
11233
11215
|
align-items: flex-end;
|
|
11234
11216
|
}
|
|
@@ -11236,26 +11218,30 @@ F.styles = [
|
|
|
11236
11218
|
/* Close button */
|
|
11237
11219
|
::slotted(sonic-modal-close),
|
|
11238
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;
|
|
11239
11225
|
position: sticky;
|
|
11240
11226
|
display: block;
|
|
11241
|
-
align-self: flex-end;
|
|
11242
11227
|
height: 0;
|
|
11243
|
-
top: var(--
|
|
11244
|
-
|
|
11245
|
-
|
|
11246
|
-
|
|
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));
|
|
11247
11233
|
z-index: 20;
|
|
11248
11234
|
}
|
|
11249
11235
|
:host([align="right"]) ::slotted(sonic-modal-close),
|
|
11250
11236
|
:host([align="right"]) sonic-modal-close {
|
|
11251
11237
|
right: auto;
|
|
11252
|
-
|
|
11253
|
-
|
|
11254
|
-
|
|
11238
|
+
margin-right: auto;
|
|
11239
|
+
margin-left: 0;
|
|
11240
|
+
transform: translateX(calc(-1 * var(--sc_translate-x)));
|
|
11255
11241
|
}
|
|
11256
11242
|
|
|
11257
11243
|
/* Border radius */
|
|
11258
|
-
:host([rounded="none"]) modal {
|
|
11244
|
+
:host([rounded="none"]) #modal {
|
|
11259
11245
|
--sc-img-radius: 0 !important;
|
|
11260
11246
|
}
|
|
11261
11247
|
`
|