@tickean/checkout-elements 0.2.1 → 0.2.22
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/dist/index.d.mts +77 -3
- package/dist/index.d.ts +77 -3
- package/dist/index.js +3064 -210
- package/dist/index.mjs +3063 -210
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckoutController, CheckoutState } from '@tickean/checkout-js';
|
|
1
|
+
import { CheckoutController, CheckoutState, PurchaseAttendee } from '@tickean/checkout-js';
|
|
2
2
|
|
|
3
3
|
type Locale = "es-AR" | "es-CL" | "en";
|
|
4
4
|
|
|
@@ -33,44 +33,118 @@ declare abstract class TickeanElementBase extends NativeHTMLElement {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
declare class TickeanTicketSelector extends TickeanElementBase {
|
|
36
|
+
private firstPaint;
|
|
36
37
|
protected renderBody(): string;
|
|
37
38
|
protected afterRender(): void;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
declare class TickeanDiscount extends TickeanElementBase {
|
|
42
|
+
private lastSuccess;
|
|
43
|
+
static get observedAttributes(): string[];
|
|
44
|
+
private mode;
|
|
41
45
|
protected renderBody(): string;
|
|
42
46
|
protected afterRender(): void;
|
|
47
|
+
private applyCode;
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
declare class TickeanBuyerVerification extends TickeanElementBase {
|
|
46
|
-
private
|
|
51
|
+
private country;
|
|
52
|
+
private national;
|
|
47
53
|
private name;
|
|
48
54
|
private email;
|
|
49
55
|
private code;
|
|
56
|
+
private geoResolved;
|
|
57
|
+
private countryTouched;
|
|
58
|
+
private step;
|
|
59
|
+
private knownBuyer;
|
|
60
|
+
private busy;
|
|
61
|
+
private firstPaint;
|
|
62
|
+
private formError;
|
|
63
|
+
connectedCallback(): void;
|
|
64
|
+
private apiBaseUrl;
|
|
65
|
+
private resolveGeoCountry;
|
|
66
|
+
private fullPhone;
|
|
67
|
+
protected renderBody(): string;
|
|
68
|
+
protected afterRender(): void;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Collects per-ticket attendee names when the event requires it.
|
|
73
|
+
* Emits `attendees-change` with `{ attendees: PurchaseAttendee[] }`.
|
|
74
|
+
*/
|
|
75
|
+
declare class TickeanAttendees extends TickeanElementBase {
|
|
76
|
+
private slots;
|
|
77
|
+
private hydrated;
|
|
78
|
+
private termsAccepted;
|
|
79
|
+
private optionName;
|
|
80
|
+
private rebuildSlots;
|
|
81
|
+
private emitAttendees;
|
|
82
|
+
isComplete(): boolean;
|
|
83
|
+
getAttendees(): PurchaseAttendee[];
|
|
50
84
|
protected renderBody(): string;
|
|
51
85
|
protected afterRender(): void;
|
|
52
86
|
}
|
|
53
87
|
|
|
54
88
|
declare class TickeanPayment extends TickeanElementBase {
|
|
89
|
+
private busy;
|
|
90
|
+
private selectedMethod;
|
|
91
|
+
private copiedKey;
|
|
92
|
+
private copiedTimer;
|
|
93
|
+
private redirectedUrl;
|
|
55
94
|
static get observedAttributes(): string[];
|
|
95
|
+
disconnectedCallback(): void;
|
|
96
|
+
private view;
|
|
97
|
+
private methods;
|
|
98
|
+
private resolveMethod;
|
|
56
99
|
protected renderBody(): string;
|
|
100
|
+
private redirectUrl;
|
|
101
|
+
private renderMethodView;
|
|
102
|
+
private renderTransferView;
|
|
57
103
|
protected afterRender(): void;
|
|
58
104
|
}
|
|
59
105
|
|
|
60
106
|
declare class TickeanOrderSummary extends TickeanElementBase {
|
|
107
|
+
private optionName;
|
|
61
108
|
protected renderBody(): string;
|
|
62
109
|
}
|
|
63
110
|
|
|
64
111
|
declare class TickeanCheckout extends TickeanElementBase {
|
|
65
112
|
private ownedControllerId;
|
|
66
113
|
private ownedController;
|
|
114
|
+
private stepIndex;
|
|
115
|
+
private shellMounted;
|
|
116
|
+
private shellLayout;
|
|
117
|
+
private attendees;
|
|
118
|
+
private attendeesComplete;
|
|
119
|
+
/** After "Cambiar método", stay on payment until they confirm again. */
|
|
120
|
+
private suppressTransferAutoAdvance;
|
|
67
121
|
static get observedAttributes(): string[];
|
|
122
|
+
/** Used by payment element / hosts. */
|
|
123
|
+
getAttendees(): PurchaseAttendee[];
|
|
68
124
|
connectedCallback(): void;
|
|
69
125
|
disconnectedCallback(): void;
|
|
70
126
|
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
127
|
+
private get layout();
|
|
128
|
+
private needsAttendees;
|
|
129
|
+
private needsTransferStep;
|
|
130
|
+
private stepIds;
|
|
131
|
+
private currentStep;
|
|
71
132
|
private teardownOwnedController;
|
|
72
133
|
private ensureController;
|
|
134
|
+
private restartCheckout;
|
|
135
|
+
private poweredByHtml;
|
|
136
|
+
private eventHeaderHtml;
|
|
137
|
+
private loadingShell;
|
|
138
|
+
protected render(): void;
|
|
73
139
|
protected renderBody(): string;
|
|
140
|
+
private sharedChildAttrs;
|
|
141
|
+
private renderStacked;
|
|
142
|
+
private stepLabel;
|
|
143
|
+
private renderSteps;
|
|
144
|
+
private canGoNext;
|
|
145
|
+
private getAttendeesCompleteFromDom;
|
|
146
|
+
private syncStepsChrome;
|
|
147
|
+
protected afterRender(): void;
|
|
74
148
|
}
|
|
75
149
|
|
|
76
150
|
type AppearanceTheme = "default" | "flat" | "night" | "none";
|
|
@@ -87,4 +161,4 @@ declare function defineTickeanElements(): void;
|
|
|
87
161
|
declare function attachController(el: HTMLElement, controller: CheckoutController, id?: string): string;
|
|
88
162
|
declare function detachController(id: string): void;
|
|
89
163
|
|
|
90
|
-
export { type Appearance, type AppearanceTheme, TickeanBuyerVerification, TickeanCheckout, TickeanDiscount, TickeanOrderSummary, TickeanPayment, TickeanTicketSelector, applyAppearance, attachController, defineTickeanElements, detachController, getController, registerController, unregisterController };
|
|
164
|
+
export { type Appearance, type AppearanceTheme, TickeanAttendees, TickeanBuyerVerification, TickeanCheckout, TickeanDiscount, TickeanOrderSummary, TickeanPayment, TickeanTicketSelector, applyAppearance, attachController, defineTickeanElements, detachController, getController, registerController, unregisterController };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckoutController, CheckoutState } from '@tickean/checkout-js';
|
|
1
|
+
import { CheckoutController, CheckoutState, PurchaseAttendee } from '@tickean/checkout-js';
|
|
2
2
|
|
|
3
3
|
type Locale = "es-AR" | "es-CL" | "en";
|
|
4
4
|
|
|
@@ -33,44 +33,118 @@ declare abstract class TickeanElementBase extends NativeHTMLElement {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
declare class TickeanTicketSelector extends TickeanElementBase {
|
|
36
|
+
private firstPaint;
|
|
36
37
|
protected renderBody(): string;
|
|
37
38
|
protected afterRender(): void;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
declare class TickeanDiscount extends TickeanElementBase {
|
|
42
|
+
private lastSuccess;
|
|
43
|
+
static get observedAttributes(): string[];
|
|
44
|
+
private mode;
|
|
41
45
|
protected renderBody(): string;
|
|
42
46
|
protected afterRender(): void;
|
|
47
|
+
private applyCode;
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
declare class TickeanBuyerVerification extends TickeanElementBase {
|
|
46
|
-
private
|
|
51
|
+
private country;
|
|
52
|
+
private national;
|
|
47
53
|
private name;
|
|
48
54
|
private email;
|
|
49
55
|
private code;
|
|
56
|
+
private geoResolved;
|
|
57
|
+
private countryTouched;
|
|
58
|
+
private step;
|
|
59
|
+
private knownBuyer;
|
|
60
|
+
private busy;
|
|
61
|
+
private firstPaint;
|
|
62
|
+
private formError;
|
|
63
|
+
connectedCallback(): void;
|
|
64
|
+
private apiBaseUrl;
|
|
65
|
+
private resolveGeoCountry;
|
|
66
|
+
private fullPhone;
|
|
67
|
+
protected renderBody(): string;
|
|
68
|
+
protected afterRender(): void;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Collects per-ticket attendee names when the event requires it.
|
|
73
|
+
* Emits `attendees-change` with `{ attendees: PurchaseAttendee[] }`.
|
|
74
|
+
*/
|
|
75
|
+
declare class TickeanAttendees extends TickeanElementBase {
|
|
76
|
+
private slots;
|
|
77
|
+
private hydrated;
|
|
78
|
+
private termsAccepted;
|
|
79
|
+
private optionName;
|
|
80
|
+
private rebuildSlots;
|
|
81
|
+
private emitAttendees;
|
|
82
|
+
isComplete(): boolean;
|
|
83
|
+
getAttendees(): PurchaseAttendee[];
|
|
50
84
|
protected renderBody(): string;
|
|
51
85
|
protected afterRender(): void;
|
|
52
86
|
}
|
|
53
87
|
|
|
54
88
|
declare class TickeanPayment extends TickeanElementBase {
|
|
89
|
+
private busy;
|
|
90
|
+
private selectedMethod;
|
|
91
|
+
private copiedKey;
|
|
92
|
+
private copiedTimer;
|
|
93
|
+
private redirectedUrl;
|
|
55
94
|
static get observedAttributes(): string[];
|
|
95
|
+
disconnectedCallback(): void;
|
|
96
|
+
private view;
|
|
97
|
+
private methods;
|
|
98
|
+
private resolveMethod;
|
|
56
99
|
protected renderBody(): string;
|
|
100
|
+
private redirectUrl;
|
|
101
|
+
private renderMethodView;
|
|
102
|
+
private renderTransferView;
|
|
57
103
|
protected afterRender(): void;
|
|
58
104
|
}
|
|
59
105
|
|
|
60
106
|
declare class TickeanOrderSummary extends TickeanElementBase {
|
|
107
|
+
private optionName;
|
|
61
108
|
protected renderBody(): string;
|
|
62
109
|
}
|
|
63
110
|
|
|
64
111
|
declare class TickeanCheckout extends TickeanElementBase {
|
|
65
112
|
private ownedControllerId;
|
|
66
113
|
private ownedController;
|
|
114
|
+
private stepIndex;
|
|
115
|
+
private shellMounted;
|
|
116
|
+
private shellLayout;
|
|
117
|
+
private attendees;
|
|
118
|
+
private attendeesComplete;
|
|
119
|
+
/** After "Cambiar método", stay on payment until they confirm again. */
|
|
120
|
+
private suppressTransferAutoAdvance;
|
|
67
121
|
static get observedAttributes(): string[];
|
|
122
|
+
/** Used by payment element / hosts. */
|
|
123
|
+
getAttendees(): PurchaseAttendee[];
|
|
68
124
|
connectedCallback(): void;
|
|
69
125
|
disconnectedCallback(): void;
|
|
70
126
|
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
127
|
+
private get layout();
|
|
128
|
+
private needsAttendees;
|
|
129
|
+
private needsTransferStep;
|
|
130
|
+
private stepIds;
|
|
131
|
+
private currentStep;
|
|
71
132
|
private teardownOwnedController;
|
|
72
133
|
private ensureController;
|
|
134
|
+
private restartCheckout;
|
|
135
|
+
private poweredByHtml;
|
|
136
|
+
private eventHeaderHtml;
|
|
137
|
+
private loadingShell;
|
|
138
|
+
protected render(): void;
|
|
73
139
|
protected renderBody(): string;
|
|
140
|
+
private sharedChildAttrs;
|
|
141
|
+
private renderStacked;
|
|
142
|
+
private stepLabel;
|
|
143
|
+
private renderSteps;
|
|
144
|
+
private canGoNext;
|
|
145
|
+
private getAttendeesCompleteFromDom;
|
|
146
|
+
private syncStepsChrome;
|
|
147
|
+
protected afterRender(): void;
|
|
74
148
|
}
|
|
75
149
|
|
|
76
150
|
type AppearanceTheme = "default" | "flat" | "night" | "none";
|
|
@@ -87,4 +161,4 @@ declare function defineTickeanElements(): void;
|
|
|
87
161
|
declare function attachController(el: HTMLElement, controller: CheckoutController, id?: string): string;
|
|
88
162
|
declare function detachController(id: string): void;
|
|
89
163
|
|
|
90
|
-
export { type Appearance, type AppearanceTheme, TickeanBuyerVerification, TickeanCheckout, TickeanDiscount, TickeanOrderSummary, TickeanPayment, TickeanTicketSelector, applyAppearance, attachController, defineTickeanElements, detachController, getController, registerController, unregisterController };
|
|
164
|
+
export { type Appearance, type AppearanceTheme, TickeanAttendees, TickeanBuyerVerification, TickeanCheckout, TickeanDiscount, TickeanOrderSummary, TickeanPayment, TickeanTicketSelector, applyAppearance, attachController, defineTickeanElements, detachController, getController, registerController, unregisterController };
|