@getmicdrop/venue-calendar 4.3.6 → 4.3.8
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/README.md +9 -0
- package/dist/{ArrowLeftIcon-DvOokN4u.js → ArrowLeftIcon-DvIbVly-.js} +1 -1
- package/dist/{Badge-Gg5PWs7f.js → Badge-vsC_L__r.js} +1 -1
- package/dist/{BlockPlaceholder-C2PUGPNA.js → BlockPlaceholder-BMD1gnmE.js} +1 -1
- package/dist/{Calendar-BnqBcrZv.js → Calendar-CPD8dS_i.js} +28 -19
- package/dist/{CalendarFoundryView-L97Allfg.js → CalendarFoundryView-BY1uJgYA.js} +28 -28
- package/dist/{CalendarIcon-DvhQ-GaL.js → CalendarIcon-CCgHZAu4.js} +1 -1
- package/dist/{CartView-D57bwixz.js → CartView-DVugxQ3D.js} +22 -22
- package/dist/{Checkout-wUH2YI1N.js → Checkout-D7KSikhw.js} +19 -19
- package/dist/{Checkout-DQWeMchu.js → Checkout-Ddcw2_8F.js} +18 -18
- package/dist/{CheckoutTimer-8tVmatUn.js → CheckoutTimer-CgGCv_jP.js} +3 -3
- package/dist/{ChevronDownIcon-DyNmV5XZ.js → ChevronDownIcon-gELqaIeP.js} +1 -1
- package/dist/{ClockIcon-dOWVO61o.js → ClockIcon-C4MxWMqH.js} +1 -1
- package/dist/{CloseIcon-a3S2RgbP.js → CloseIcon-D3NjpzeW.js} +1 -1
- package/dist/{CollectionView-CAMsmrmW.js → CollectionView-C55yLTPR.js} +7 -7
- package/dist/{Event-BQgaaFkh.js → Event-ClxgC-gP.js} +22 -22
- package/dist/EventPage-ziJYmBIZ.js +1146 -0
- package/dist/{Heading-cKAx0Ogl.js → Heading-D7TEStkb.js} +1 -1
- package/dist/{Image-CNZLcePz.js → Image-CjM21MQP.js} +1 -1
- package/dist/{Input-D1FpSX5Q.js → Input-CIRGYHTC.js} +1 -1
- package/dist/{MailIcon-CR_eGi6n.js → MailIcon-iy7T12Hz.js} +1 -1
- package/dist/{Modal-LkN8lh_m.js → Modal-wQSo-C1f.js} +2 -2
- package/dist/{ModalFooter-B_8f1Z5p.js → ModalFooter-DlRXuHQz.js} +1 -1
- package/dist/{PasswordInput-Bt6tvpzi.js → PasswordInput-Cj8i4djG.js} +1 -1
- package/dist/{ScarcityBadge-g0dRh6K7.js → ScarcityBadge-DbUVeqpx.js} +5 -5
- package/dist/{SeriesPage-CNRwP2W0.js → SeriesPage-doki-1XH.js} +4 -4
- package/dist/{Spinner-LroI7eOC.js → Spinner-Dua8H4Z1.js} +1 -1
- package/dist/{Success--2NRdG0V.js → Success-DZOYl6St.js} +19 -19
- package/dist/{TagIcon-BhLrURo_.js → TagIcon-CCyZd0sm.js} +1 -1
- package/dist/{ViewTicketsEmbed-CvuMdTA7.js → ViewTicketsEmbed-CF2Aq-qy.js} +7 -7
- package/dist/{WarningCircleIcon-BxBY0OMQ.js → WarningCircleIcon-BuVhRrHd.js} +1 -1
- package/dist/{WarningTriIcon-QVzQiEM4.js → WarningTriIcon-0hefhcdZ.js} +1 -1
- package/dist/{__SKIP_PATHS__-B0_APtpt.js → __SKIP_PATHS__-Dyw31EsB.js} +1 -1
- package/dist/{colors-BsP3TRan.js → api-QG8CoGcM.js} +199 -202
- package/dist/{constants-PBNG9ikv.js → constants-q-jR2-bz.js} +1 -1
- package/dist/{copyToClipboard-B2F5d6Cj.js → copyToClipboard-C7KGa7gG.js} +1 -1
- package/dist/{defaultLabels-BigaGqKj.js → defaultLabels-BdLGAc3u.js} +1 -0
- package/dist/{event-rtg4-kWS.js → event-CyPf2sZS.js} +1 -1
- package/dist/{event-transform-J7U1JmeK.js → event-transform-DQmD2u_S.js} +14 -14
- package/dist/{eventStatusStream-CJVT_9Gu.js → eventStatusStream-BFOvtJyO.js} +1 -1
- package/dist/{href-Dx7B6ZiQ.js → href-CbfSre4l.js} +2 -2
- package/dist/{i18n-C0aOwSpF.js → i18n-CSftOFAS.js} +5 -5
- package/dist/{i18n-sO8wTASy.js → i18n-D54CGXK2.js} +2 -2
- package/dist/{labels-BBFJnXep.js → labels-0dEJldQX.js} +14 -14
- package/dist/{modalManager.svelte-B9mhX1cG.js → modalManager.svelte-Dnv5jhxp.js} +2 -2
- package/dist/{order-totals-DR-oXumr.js → order-totals-Ci_p6SG6.js} +3 -3
- package/dist/{orders-CFF0Hb2x.js → orders-Bat2EL64.js} +1 -1
- package/dist/{phoneUtils-C2GGZYvA.js → phoneUtils-Cm9iv40N.js} +1 -1
- package/dist/{pixels-M4FTi1Of.js → pixels-Ha6vOCaS.js} +2 -2
- package/dist/{promo--p3GbP64.js → promo-DWzTN7u9.js} +1 -1
- package/dist/{serverTotals-Dbi69SIr.js → serverTotals-BBlkfqMf.js} +1 -1
- package/dist/{shareCopyFeedback.svelte-Cb2Mdn0z.js → shareCopyFeedback.svelte-CW0Yy9Oz.js} +4 -4
- package/dist/{showcase-state-options-BZGCm4wo.js → showcase-state-options-CxRQ-phi.js} +1 -1
- package/dist/{to-event-card-props-dIhKdERf.js → to-event-card-props-BIl0qQs0.js} +3 -3
- package/dist/types/index.d.ts +39 -0
- package/dist/{utils-CbacksjX.js → utils-ChgG4jiQ.js} +2 -2
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +955 -936
- package/dist/venue-calendar.iife.js +57 -57
- package/dist/venue-calendar.umd.js +55 -55
- package/package.json +2 -2
- package/dist/EventPage-B9shaVEP.js +0 -1146
- /package/dist/locales/{4.3.6 → 4.3.8}/flow/de.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/flow/es.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/flow/id.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/flow/it.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/flow/zh.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/main/de.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/main/es.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/main/fr.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/main/id.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/main/it.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/main/ja.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/main/ko.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/main/nl.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/main/pl.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/main/tr.js +0 -0
- /package/dist/locales/{4.3.6 → 4.3.8}/main/zh.js +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { x as e } from "./defaultLabels-
|
|
2
|
-
import { a as t, c as n, f as r, p as i, u as a } from "./constants-
|
|
3
|
-
import { n as o, t as s } from "./event-
|
|
4
|
-
import { A as c,
|
|
1
|
+
import { x as e } from "./defaultLabels-BdLGAc3u.js";
|
|
2
|
+
import { a as t, c as n, f as r, p as i, u as a } from "./constants-q-jR2-bz.js";
|
|
3
|
+
import { n as o, t as s } from "./event-CyPf2sZS.js";
|
|
4
|
+
import { A as c, C as l, E as u, O as d, j as f, k as p } from "./api-QG8CoGcM.js";
|
|
5
5
|
//#region src/lib/utils/event-transform.js
|
|
6
6
|
var m = "data:image/svg+xml," + encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 300" fill="none">
|
|
7
|
-
<rect width="200" height="300" fill="${
|
|
8
|
-
<rect x="60" y="90" width="80" height="80" rx="10" fill="${
|
|
9
|
-
<circle cx="85" cy="115" r="10" fill="${
|
|
10
|
-
<path d="M70 155 L100 125 L130 155 L130 155" stroke="${
|
|
11
|
-
<text x="100" y="210" text-anchor="middle" font-family="system-ui, sans-serif" font-size="14" fill="${
|
|
7
|
+
<rect width="200" height="300" fill="${l[200]}"/>
|
|
8
|
+
<rect x="60" y="90" width="80" height="80" rx="10" fill="${l[300]}"/>
|
|
9
|
+
<circle cx="85" cy="115" r="10" fill="${l[400]}"/>
|
|
10
|
+
<path d="M70 155 L100 125 L130 155 L130 155" stroke="${l[400]}" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
11
|
+
<text x="100" y="210" text-anchor="middle" font-family="system-ui, sans-serif" font-size="14" fill="${l[500]}">Event Image</text>
|
|
12
12
|
</svg>`);
|
|
13
13
|
function h(e) {
|
|
14
14
|
return o(e, { placeholder: m });
|
|
@@ -98,7 +98,7 @@ function w(e, n, r, i) {
|
|
|
98
98
|
excludeDoorOnly: !0,
|
|
99
99
|
publicOnly: !1
|
|
100
100
|
});
|
|
101
|
-
o =
|
|
101
|
+
o = d(t);
|
|
102
102
|
}
|
|
103
103
|
return {
|
|
104
104
|
...r,
|
|
@@ -111,7 +111,7 @@ function w(e, n, r, i) {
|
|
|
111
111
|
ticketsRemaining: o.totalRemaining,
|
|
112
112
|
ticketsTotal: o.totalCapacity,
|
|
113
113
|
isSoldOut: o.isSoldOut,
|
|
114
|
-
hasPurchasableHiddenTickets:
|
|
114
|
+
hasPurchasableHiddenTickets: u(e),
|
|
115
115
|
stageId: n.stageId ?? null,
|
|
116
116
|
eventCategoryTypes: n.eventCategoryTypes ?? null,
|
|
117
117
|
ageRestriction: n.ageRestriction ?? null,
|
|
@@ -122,7 +122,7 @@ function w(e, n, r, i) {
|
|
|
122
122
|
function T(e, t, n, r, i) {
|
|
123
123
|
let a = (e.availableTickets || []).map((e) => ({
|
|
124
124
|
...e,
|
|
125
|
-
status:
|
|
125
|
+
status: p(e)
|
|
126
126
|
})), o = c(a, {
|
|
127
127
|
excludeDoorOnly: !1,
|
|
128
128
|
publicOnly: !0
|
|
@@ -140,13 +140,13 @@ function T(e, t, n, r, i) {
|
|
|
140
140
|
location: t.venue?.googleLocationNameCache || t.venue?.address || "",
|
|
141
141
|
...s,
|
|
142
142
|
coverImage: i,
|
|
143
|
-
price:
|
|
143
|
+
price: f(e.availableTickets),
|
|
144
144
|
status: t.status || "On Sale",
|
|
145
145
|
eventSummary: t.eventSummary,
|
|
146
146
|
password: t.password,
|
|
147
147
|
availableTickets: a,
|
|
148
148
|
publicTickets: o,
|
|
149
|
-
hasPurchasableHiddenTickets:
|
|
149
|
+
hasPurchasableHiddenTickets: u(e),
|
|
150
150
|
doorsOpenTime: t.doorsOpenTime,
|
|
151
151
|
venue: t.venue,
|
|
152
152
|
venueID: t.venueId,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { x as e } from "./Button-Cm6xkipe.js";
|
|
2
|
-
import { H as t, I as n } from "./orders-
|
|
2
|
+
import { H as t, I as n } from "./orders-Bat2EL64.js";
|
|
3
3
|
//#region src/lib/public-calendar-flow/eventStatusStream.ts
|
|
4
4
|
var r = e("VC"), i = /* @__PURE__ */ new Set([
|
|
5
5
|
"canceled",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as e } from "./Button-Cm6xkipe.js";
|
|
2
|
-
import { J as t } from "./constants-
|
|
3
|
-
import { t as n } from "./Image-
|
|
2
|
+
import { J as t } from "./constants-q-jR2-bz.js";
|
|
3
|
+
import { t as n } from "./Image-CjM21MQP.js";
|
|
4
4
|
import "svelte/internal/disclose-version";
|
|
5
5
|
import * as r from "svelte/internal/client";
|
|
6
6
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/CheckCircleIcon.svelte
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as e, b as t, h as n, z as r } from "./defaultLabels-
|
|
2
|
-
import { C as i, K as a, O as o, g as s, h as c, n as l, r as u, v as d } from "./constants-
|
|
3
|
-
import { l as f } from "./orders-
|
|
1
|
+
import { D as e, b as t, h as n, z as r } from "./defaultLabels-BdLGAc3u.js";
|
|
2
|
+
import { C as i, K as a, O as o, g as s, h as c, n as l, r as u, v as d } from "./constants-q-jR2-bz.js";
|
|
3
|
+
import { l as f } from "./orders-Bat2EL64.js";
|
|
4
4
|
import { t as p } from "./Text-CqjLjIF8.js";
|
|
5
|
-
import { D as m } from "./
|
|
6
|
-
import { t as h } from "./labels-
|
|
5
|
+
import { D as m } from "./api-QG8CoGcM.js";
|
|
6
|
+
import { t as h } from "./labels-0dEJldQX.js";
|
|
7
7
|
import "svelte/internal/disclose-version";
|
|
8
8
|
import * as g from "svelte/internal/client";
|
|
9
9
|
//#region src/lib/api/cta.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./defaultLabels-
|
|
2
|
-
import { l as t } from "./orders-
|
|
1
|
+
import { t as e } from "./defaultLabels-BdLGAc3u.js";
|
|
2
|
+
import { l as t } from "./orders-Bat2EL64.js";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/lib/i18n/index.js
|
|
5
5
|
var n = t({
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as e, S as t, w as n, x as r } from "./api-QG8CoGcM.js";
|
|
2
2
|
//#region src/lib/core/theme-engine.js
|
|
3
3
|
var i = {
|
|
4
4
|
primary: t.defaultThemePrimary,
|
|
5
5
|
primaryHover: r.violet[700],
|
|
6
6
|
secondary: r.green.emerald,
|
|
7
7
|
accent: r.amber[500],
|
|
8
|
-
background:
|
|
9
|
-
surface:
|
|
10
|
-
surfaceHover:
|
|
11
|
-
text:
|
|
12
|
-
textMuted:
|
|
13
|
-
textOnPrimary:
|
|
14
|
-
border:
|
|
15
|
-
borderMuted:
|
|
8
|
+
background: n.background.primary,
|
|
9
|
+
surface: e[50],
|
|
10
|
+
surfaceHover: e[100],
|
|
11
|
+
text: e[800],
|
|
12
|
+
textMuted: e[500],
|
|
13
|
+
textOnPrimary: n.text.inverted,
|
|
14
|
+
border: e[200],
|
|
15
|
+
borderMuted: e[100],
|
|
16
16
|
radiusSm: "4px",
|
|
17
17
|
radiusMd: "8px",
|
|
18
18
|
radiusLg: "12px",
|
|
@@ -28,17 +28,17 @@ var i = {
|
|
|
28
28
|
shadowMd: "0 4px 6px rgba(0, 0, 0, 0.1)",
|
|
29
29
|
shadowLg: "0 10px 15px rgba(0, 0, 0, 0.1)",
|
|
30
30
|
badgeScarcityBg: r.red[600],
|
|
31
|
-
badgeScarcityText:
|
|
32
|
-
badgeSoldOutBg:
|
|
33
|
-
badgeSoldOutText:
|
|
31
|
+
badgeScarcityText: n.text.inverted,
|
|
32
|
+
badgeSoldOutBg: e[500],
|
|
33
|
+
badgeSoldOutText: n.text.inverted,
|
|
34
34
|
badgeAgeBg: r.amber[500],
|
|
35
|
-
badgeAgeText:
|
|
35
|
+
badgeAgeText: e[800],
|
|
36
36
|
statusOnSale: r.green.emerald,
|
|
37
37
|
statusSellingFast: r.amber[500],
|
|
38
38
|
statusSoldOut: r.red[600],
|
|
39
39
|
spacingUnit: "4px"
|
|
40
40
|
};
|
|
41
|
-
({ ...i }), { ...i }, r.violet[500], r.violet[400],
|
|
41
|
+
({ ...i }), { ...i }, r.violet[500], r.violet[400], e[900], e[800], e[700], e[50], e[400], e[700], e[600], { ...i }, e[700], e[800], n.background.primary, e[50], e[200], { ...i }, r.red[600], r.red[700], t.defaultThemePrimary;
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/lib/public-calendar-flow/i18n/labels.js
|
|
44
44
|
var a = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as e } from "./defaultLabels-
|
|
2
|
-
import { o as t } from "./ModalFooter-
|
|
1
|
+
import { V as e } from "./defaultLabels-BdLGAc3u.js";
|
|
2
|
+
import { o as t } from "./ModalFooter-DlRXuHQz.js";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as n from "svelte/internal/client";
|
|
5
5
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalHeader.svelte
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as e } from "./defaultLabels-
|
|
2
|
-
import { D as t, O as n } from "./constants-
|
|
3
|
-
import { n as r } from "./promo
|
|
1
|
+
import { R as e } from "./defaultLabels-BdLGAc3u.js";
|
|
2
|
+
import { D as t, O as n } from "./constants-q-jR2-bz.js";
|
|
3
|
+
import { n as r } from "./promo-DWzTN7u9.js";
|
|
4
4
|
var i = .029, a = .3;
|
|
5
5
|
function o(e) {
|
|
6
6
|
return e.discountedPrice ?? e.price;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as e, S as t, x as n } from "./Button-Cm6xkipe.js";
|
|
2
|
-
import { I as r, T as i, a, k as o, o as s } from "./defaultLabels-
|
|
2
|
+
import { I as r, T as i, a, k as o, o as s } from "./defaultLabels-BdLGAc3u.js";
|
|
3
3
|
import * as c from "svelte/internal/client";
|
|
4
4
|
//#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/ApiError.js
|
|
5
5
|
var l = class e extends i {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e } from "./constants-
|
|
1
|
+
import { J as e } from "./constants-q-jR2-bz.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as t from "svelte/internal/client";
|
|
4
4
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/ExclamationTriangleOutline.svelte
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { x as e } from "./Button-Cm6xkipe.js";
|
|
2
|
-
import { D as t } from "./defaultLabels-
|
|
3
|
-
import { S as n, T as r, x as i } from "./orders-
|
|
2
|
+
import { D as t } from "./defaultLabels-BdLGAc3u.js";
|
|
3
|
+
import { S as n, T as r, x as i } from "./orders-Bat2EL64.js";
|
|
4
4
|
//#region src/lib/embed-bridge.js
|
|
5
5
|
var a = e("embed-bridge"), o = "micdrop-calendar", s = Object.freeze({
|
|
6
6
|
NAVIGATION: "MICDROP_NAVIGATION",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as e, b as t, h as n, x as r } from "./defaultLabels-
|
|
2
|
-
import { J as i, a, m as o } from "./constants-
|
|
3
|
-
import { t as s } from "./copyToClipboard-
|
|
4
|
-
import { r as c, t as l } from "./event-
|
|
1
|
+
import { D as e, b as t, h as n, x as r } from "./defaultLabels-BdLGAc3u.js";
|
|
2
|
+
import { J as i, a, m as o } from "./constants-q-jR2-bz.js";
|
|
3
|
+
import { t as s } from "./copyToClipboard-C7KGa7gG.js";
|
|
4
|
+
import { r as c, t as l } from "./event-CyPf2sZS.js";
|
|
5
5
|
import { t as u } from "./venue-CBos8YTa.js";
|
|
6
6
|
import "svelte/internal/disclose-version";
|
|
7
7
|
import * as d from "svelte/internal/client";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as e } from "./Button-Cm6xkipe.js";
|
|
2
|
-
import { D as t, b as n, h as r, i, t as a, v as o } from "./defaultLabels-
|
|
3
|
-
import { a as s, i as c, r as l, u } from "./constants-
|
|
4
|
-
import { t as d } from "./Badge-
|
|
2
|
+
import { D as t, b as n, h as r, i, t as a, v as o } from "./defaultLabels-BdLGAc3u.js";
|
|
3
|
+
import { a as s, i as c, r as l, u } from "./constants-q-jR2-bz.js";
|
|
4
|
+
import { t as d } from "./Badge-vsC_L__r.js";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
6
6
|
import * as f from "svelte/internal/client";
|
|
7
7
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/BlurBackdropImage/BlurBackdropImage.svelte
|
package/dist/types/index.d.ts
CHANGED
|
@@ -177,6 +177,11 @@ export interface CalendarProps extends BaseInitOptions {
|
|
|
177
177
|
* own onEventClick to take over click handling entirely.
|
|
178
178
|
*/
|
|
179
179
|
inlineEntityViews?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* The host's brand scheme, applied on the widget's root so every calendar
|
|
182
|
+
* surface — time buttons included — wears it. null = the default palette.
|
|
183
|
+
*/
|
|
184
|
+
colors?: ColorSchemeColors | null;
|
|
180
185
|
}
|
|
181
186
|
|
|
182
187
|
/**
|
|
@@ -402,6 +407,40 @@ export function applyTheme(
|
|
|
402
407
|
*/
|
|
403
408
|
export function generateThemeCSS(_theme: Partial<ThemeColors>): string;
|
|
404
409
|
|
|
410
|
+
// ============================================================================
|
|
411
|
+
// Brand scheme → calendar CSS variables
|
|
412
|
+
// ============================================================================
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* The builder's saved colour scheme: token name → hex string. Partial schemes
|
|
416
|
+
* are fine — a missing or invalid token is left to the stylesheet's default.
|
|
417
|
+
*/
|
|
418
|
+
export type ColorSchemeColors = Record<string, string>;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Map a scheme to venue-calendar's CSS variables (`--brand-primary` …) as
|
|
422
|
+
* wrapper-less HSL strings ("209 99% 50%").
|
|
423
|
+
*/
|
|
424
|
+
export function schemeColorsToCSSVars(
|
|
425
|
+
_colors: ColorSchemeColors | null | undefined
|
|
426
|
+
): Record<string, string>;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Write a scheme onto an element as inline custom properties. Pass the
|
|
430
|
+
* widget's own root: the stylesheet declares the default palette on that root,
|
|
431
|
+
* so a variable set on an ancestor never reaches it. Returns the names written.
|
|
432
|
+
*/
|
|
433
|
+
export function applySchemeColors(
|
|
434
|
+
_colors: ColorSchemeColors | null | undefined,
|
|
435
|
+
_container: HTMLElement
|
|
436
|
+
): string[];
|
|
437
|
+
|
|
438
|
+
/** Remove what applySchemeColors wrote. */
|
|
439
|
+
export function clearSchemeColors(
|
|
440
|
+
_container: HTMLElement,
|
|
441
|
+
_names: string[]
|
|
442
|
+
): void;
|
|
443
|
+
|
|
405
444
|
// ============================================================================
|
|
406
445
|
// Scarcity Canon
|
|
407
446
|
// ============================================================================
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { x as e } from "./Button-Cm6xkipe.js";
|
|
2
|
-
import { $ as t, I as n, M as r, Y as i, Z as a, j as o, k as s, q as c } from "./orders-
|
|
3
|
-
import "./event-transform-
|
|
2
|
+
import { $ as t, I as n, M as r, Y as i, Z as a, j as o, k as s, q as c } from "./orders-Bat2EL64.js";
|
|
3
|
+
import "./event-transform-DQmD2u_S.js";
|
|
4
4
|
//#region node_modules/js-cookie/dist/js.cookie.mjs
|
|
5
5
|
function l(e) {
|
|
6
6
|
for (var t = 1; t < arguments.length; t++) {
|