@ticketlayer/elements 0.3.2 → 0.4.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/README.md +16 -15
- package/dist/cjs/{index-DfzcrE9-.js → index-I9CoYv3k.js} +277 -1798
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/money-BtmM2gt-.js +118 -0
- package/dist/cjs/{order-summary-ZMkJ5bez.js → order-summary-X3TlZxc2.js} +34 -0
- package/dist/cjs/ticketlayer-elements.cjs.js +3 -3
- package/dist/cjs/tl-buy-modal.cjs.entry.js +3 -3
- package/dist/cjs/tl-buy-tickets-button.cjs.entry.js +10 -7
- package/dist/cjs/tl-buy-tickets-wrapper.cjs.entry.js +2 -2
- package/dist/cjs/tl-cart-badge.cjs.entry.js +2 -2
- package/dist/cjs/tl-cart-drawer.cjs.entry.js +2 -2
- package/dist/cjs/tl-cart.cjs.entry.js +10 -4
- package/dist/cjs/tl-checkout-wrapper.cjs.entry.js +2 -2
- package/dist/cjs/tl-event-card.cjs.entry.js +4 -3
- package/dist/cjs/tl-event-list.cjs.entry.js +2 -2
- package/dist/cjs/tl-login.cjs.entry.js +4 -3
- package/dist/cjs/tl-my-orders.cjs.entry.js +4 -3
- package/dist/cjs/tl-occurrence-selector_2.cjs.entry.js +454 -122
- package/dist/cjs/tl-order-confirmation.cjs.entry.js +11 -8
- package/dist/cjs/tl-order-tickets_2.cjs.entry.js +3 -3
- package/dist/cjs/tl-promo-code.cjs.entry.js +4 -3
- package/dist/cjs/tl-seat-map.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/tl-buy-modal/tl-buy-modal.css +12 -13
- package/dist/collection/components/tl-buy-modal/tl-buy-modal.js +1 -1
- package/dist/collection/components/tl-buy-tickets-button/tl-buy-tickets-button.css +4 -4
- package/dist/collection/components/tl-buy-tickets-button/tl-buy-tickets-button.js +11 -8
- package/dist/collection/components/tl-buy-tickets-wrapper/tl-buy-tickets-wrapper.css +2 -2
- package/dist/collection/components/tl-cart/tl-cart.css +52 -51
- package/dist/collection/components/tl-cart/tl-cart.js +10 -4
- package/dist/collection/components/tl-cart-badge/tl-cart-badge.css +11 -11
- package/dist/collection/components/tl-cart-drawer/tl-cart-drawer.css +6 -6
- package/dist/collection/components/tl-checkout-wrapper/tl-checkout-wrapper.css +2 -2
- package/dist/collection/components/tl-event-card/tl-event-card.css +22 -22
- package/dist/collection/components/tl-event-card/tl-event-card.js +1 -1
- package/dist/collection/components/tl-event-list/tl-event-list.css +17 -17
- package/dist/collection/components/tl-login/tl-login.css +26 -26
- package/dist/collection/components/tl-login/tl-login.js +1 -1
- package/dist/collection/components/tl-my-orders/tl-my-orders.css +40 -40
- package/dist/collection/components/tl-occurrence-selector/tl-occurrence-selector.css +54 -65
- package/dist/collection/components/tl-occurrence-selector/tl-occurrence-selector.js +2 -2
- package/dist/collection/components/tl-order-confirmation/tl-order-confirmation.css +38 -38
- package/dist/collection/components/tl-order-confirmation/tl-order-confirmation.js +8 -6
- package/dist/collection/components/tl-order-tickets/tl-order-tickets.css +9 -9
- package/dist/collection/components/tl-promo-code/tl-promo-code.css +25 -25
- package/dist/collection/components/tl-promo-code/tl-promo-code.js +1 -1
- package/dist/collection/components/tl-seat-map/tl-seat-map.css +10 -10
- package/dist/collection/components/tl-ticket/tl-ticket.css +13 -13
- package/dist/collection/components/tl-ticket/tl-ticket.js +1 -1
- package/dist/collection/components/tl-ticket-selector/tl-ticket-selector.css +74 -49
- package/dist/collection/components/tl-ticket-selector/tl-ticket-selector.js +73 -127
- package/dist/collection/utils/cart-totals.js +9 -0
- package/dist/collection/utils/order-summary.js +36 -0
- package/dist/components/money.js +1 -0
- package/dist/components/order-summary.js +1 -1
- package/dist/components/tl-buy-modal.js +1 -1
- package/dist/components/tl-buy-tickets-button.js +1 -1
- package/dist/components/tl-buy-tickets-wrapper2.js +1 -1
- package/dist/components/tl-cart-badge.js +1 -1
- package/dist/components/tl-cart-drawer.js +1 -1
- package/dist/components/tl-cart2.js +1 -1
- package/dist/components/tl-checkout-wrapper2.js +1 -1
- package/dist/components/tl-event-card2.js +1 -1
- package/dist/components/tl-event-list.js +1 -1
- package/dist/components/tl-login2.js +1 -1
- package/dist/components/tl-my-orders.js +1 -1
- package/dist/components/tl-occurrence-selector2.js +1 -1
- package/dist/components/tl-order-confirmation.js +1 -1
- package/dist/components/tl-order-tickets2.js +1 -1
- package/dist/components/tl-promo-code.js +1 -1
- package/dist/components/tl-seat-map.js +1 -1
- package/dist/components/tl-ticket-selector2.js +1 -1
- package/dist/components/tl-ticket2.js +1 -1
- package/dist/elements.docs.d.ts +26 -0
- package/dist/elements.docs.json +35 -17
- package/dist/esm/{index-Ba-RZTFI.js → index-OoYV1faY.js} +277 -1798
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/money-4ig0-WB6.js +112 -0
- package/dist/esm/{order-summary-BGekdjN9.js → order-summary-DiDtvfZM.js} +34 -1
- package/dist/esm/ticketlayer-elements.js +4 -4
- package/dist/esm/tl-buy-modal.entry.js +3 -3
- package/dist/esm/tl-buy-tickets-button.entry.js +10 -7
- package/dist/esm/tl-buy-tickets-wrapper.entry.js +2 -2
- package/dist/esm/tl-cart-badge.entry.js +2 -2
- package/dist/esm/tl-cart-drawer.entry.js +2 -2
- package/dist/esm/tl-cart.entry.js +10 -4
- package/dist/esm/tl-checkout-wrapper.entry.js +2 -2
- package/dist/esm/tl-event-card.entry.js +4 -3
- package/dist/esm/tl-event-list.entry.js +2 -2
- package/dist/esm/tl-login.entry.js +4 -3
- package/dist/esm/tl-my-orders.entry.js +4 -3
- package/dist/esm/tl-occurrence-selector_2.entry.js +455 -123
- package/dist/esm/tl-order-confirmation.entry.js +11 -8
- package/dist/esm/tl-order-tickets_2.entry.js +3 -3
- package/dist/esm/tl-promo-code.entry.js +4 -3
- package/dist/esm/tl-seat-map.entry.js +2 -2
- package/dist/ticketlayer-elements/index.esm.js +1 -1
- package/dist/ticketlayer-elements/p-0814420f.entry.js +1 -0
- package/dist/ticketlayer-elements/p-0acabc26.entry.js +1 -0
- package/dist/ticketlayer-elements/{p-9372ff1f.entry.js → p-109a3feb.entry.js} +1 -1
- package/dist/ticketlayer-elements/{p-41d22d7c.entry.js → p-1a4ba71c.entry.js} +1 -1
- package/dist/ticketlayer-elements/p-318965c1.entry.js +1 -0
- package/dist/ticketlayer-elements/p-347c7fd1.entry.js +1 -0
- package/dist/ticketlayer-elements/p-3649c26d.entry.js +1 -0
- package/dist/ticketlayer-elements/p-40260cc9.entry.js +1 -0
- package/dist/ticketlayer-elements/p-4ig0-WB6.js +1 -0
- package/dist/ticketlayer-elements/p-55fd2f9f.entry.js +1 -0
- package/dist/ticketlayer-elements/p-62ee659b.entry.js +1 -0
- package/dist/ticketlayer-elements/{p-f446310d.entry.js → p-7d4ecc2b.entry.js} +1 -1
- package/dist/ticketlayer-elements/p-7f0abf95.entry.js +1 -0
- package/dist/ticketlayer-elements/p-BXpVGW51.js +1 -0
- package/dist/ticketlayer-elements/p-OoYV1faY.js +3 -0
- package/dist/ticketlayer-elements/p-a3c1b26c.entry.js +1 -0
- package/dist/ticketlayer-elements/p-ac264adc.entry.js +1 -0
- package/dist/ticketlayer-elements/{p-82752e3b.entry.js → p-aeb4c6fb.entry.js} +1 -1
- package/dist/ticketlayer-elements/{p-9c9072c8.entry.js → p-ba62541f.entry.js} +1 -1
- package/dist/ticketlayer-elements/ticketlayer-elements.css +1 -1
- package/dist/ticketlayer-elements/ticketlayer-elements.esm.js +1 -1
- package/dist/types/components/tl-cart/tl-cart.d.ts +10 -0
- package/dist/types/components/tl-ticket-selector/tl-ticket-selector.d.ts +40 -29
- package/dist/types/components.d.ts +165 -36
- package/dist/types/stencil-public-runtime.d.ts +97 -57
- package/dist/types/utils/cart-totals.d.ts +10 -0
- package/dist/types/utils/order-summary.d.ts +34 -0
- package/elements.catalogue.json +91 -22
- package/loader/index.d.ts +1 -1
- package/package.json +31 -32
- package/dist/ticketlayer-elements/p-0291df4c.entry.js +0 -1
- package/dist/ticketlayer-elements/p-11273f8f.entry.js +0 -1
- package/dist/ticketlayer-elements/p-340ab4f5.entry.js +0 -1
- package/dist/ticketlayer-elements/p-7ff43848.entry.js +0 -1
- package/dist/ticketlayer-elements/p-976770f3.entry.js +0 -1
- package/dist/ticketlayer-elements/p-9a903ff6.entry.js +0 -1
- package/dist/ticketlayer-elements/p-BGekdjN9.js +0 -1
- package/dist/ticketlayer-elements/p-Ba-RZTFI.js +0 -2
- package/dist/ticketlayer-elements/p-a5c90b68.entry.js +0 -1
- package/dist/ticketlayer-elements/p-b6d479ad.entry.js +0 -1
- package/dist/ticketlayer-elements/p-eb640760.entry.js +0 -1
- package/dist/ticketlayer-elements/p-f5846f61.entry.js +0 -1
- package/dist/ticketlayer-elements/p-fb9444c4.entry.js +0 -1
|
@@ -125,8 +125,27 @@ export interface EventOptions {
|
|
|
125
125
|
*/
|
|
126
126
|
composed?: boolean;
|
|
127
127
|
}
|
|
128
|
+
export interface AttachInternalsOptions {
|
|
129
|
+
/**
|
|
130
|
+
* Initial custom states to set on the ElementInternals.states CustomStateSet.
|
|
131
|
+
* Each key is the state name and the value is the initial boolean state.
|
|
132
|
+
*
|
|
133
|
+
* These states can be targeted with the CSS `:state()` pseudo-class.
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```tsx
|
|
137
|
+
* @AttachInternals({ states: { open: true, active: false } })
|
|
138
|
+
* internals: ElementInternals;
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
141
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/CustomStateSet
|
|
142
|
+
*/
|
|
143
|
+
states?: {
|
|
144
|
+
[stateName: string]: boolean;
|
|
145
|
+
};
|
|
146
|
+
}
|
|
128
147
|
export interface AttachInternalsDecorator {
|
|
129
|
-
(): PropertyDecorator;
|
|
148
|
+
(opts?: AttachInternalsOptions): PropertyDecorator;
|
|
130
149
|
}
|
|
131
150
|
export interface ListenDecorator {
|
|
132
151
|
(eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
|
|
@@ -660,6 +679,7 @@ export declare namespace h {
|
|
|
660
679
|
function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
661
680
|
function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
662
681
|
function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
682
|
+
function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
|
|
663
683
|
namespace JSX {
|
|
664
684
|
interface IntrinsicElements extends LocalJSX.IntrinsicElements, JSXBase.IntrinsicElements {
|
|
665
685
|
[tagName: string]: any;
|
|
@@ -673,6 +693,8 @@ export declare function h(sel: any, text: string): VNode;
|
|
|
673
693
|
export declare function h(sel: any, children: Array<VNode | undefined | null>): VNode;
|
|
674
694
|
export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
675
695
|
export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
696
|
+
export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
697
|
+
export declare function h(sel: any, data: VNodeData | null, ...children: (VNode | string | number)[]): VNode;
|
|
676
698
|
/**
|
|
677
699
|
* Automatic JSX runtime functions for TypeScript's react-jsx mode.
|
|
678
700
|
* These functions are called automatically by TypeScript when using "jsx": "react-jsx".
|
|
@@ -702,7 +724,6 @@ export declare function jsxs(type: any, props: any, key?: string): VNode;
|
|
|
702
724
|
* @returns a jsx vnode
|
|
703
725
|
*/
|
|
704
726
|
export declare function jsxDEV(type: any, props: any, key?: string | number, isStaticChildren?: boolean, source?: any, self?: any): VNode;
|
|
705
|
-
export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
706
727
|
/**
|
|
707
728
|
* A virtual DOM node
|
|
708
729
|
*/
|
|
@@ -731,7 +752,7 @@ declare namespace LocalJSX {
|
|
|
731
752
|
}
|
|
732
753
|
export { LocalJSX as JSX };
|
|
733
754
|
export declare namespace JSXBase {
|
|
734
|
-
interface IntrinsicElements {
|
|
755
|
+
export interface IntrinsicElements {
|
|
735
756
|
slot: JSXBase.SlotAttributes<HTMLSlotElement>;
|
|
736
757
|
a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
737
758
|
abbr: JSXBase.HTMLAttributes;
|
|
@@ -902,12 +923,12 @@ export declare namespace JSXBase {
|
|
|
902
923
|
use: JSXBase.SVGAttributes;
|
|
903
924
|
view: JSXBase.SVGAttributes;
|
|
904
925
|
}
|
|
905
|
-
interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
|
|
926
|
+
export interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
|
|
906
927
|
name?: string;
|
|
907
928
|
slot?: string;
|
|
908
929
|
onSlotchange?: (event: Event) => void;
|
|
909
930
|
}
|
|
910
|
-
interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
931
|
+
export interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
911
932
|
download?: any;
|
|
912
933
|
href?: string;
|
|
913
934
|
hrefLang?: string;
|
|
@@ -918,9 +939,9 @@ export declare namespace JSXBase {
|
|
|
918
939
|
target?: string;
|
|
919
940
|
referrerPolicy?: ReferrerPolicy;
|
|
920
941
|
}
|
|
921
|
-
interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
942
|
+
export interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
922
943
|
}
|
|
923
|
-
interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
944
|
+
export interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
924
945
|
alt?: string;
|
|
925
946
|
coords?: string;
|
|
926
947
|
download?: any;
|
|
@@ -932,14 +953,14 @@ export declare namespace JSXBase {
|
|
|
932
953
|
shape?: string;
|
|
933
954
|
target?: string;
|
|
934
955
|
}
|
|
935
|
-
interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
956
|
+
export interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
936
957
|
href?: string;
|
|
937
958
|
target?: string;
|
|
938
959
|
}
|
|
939
|
-
interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
960
|
+
export interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
940
961
|
cite?: string;
|
|
941
962
|
}
|
|
942
|
-
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
963
|
+
export interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
943
964
|
disabled?: boolean;
|
|
944
965
|
form?: string;
|
|
945
966
|
formAction?: string;
|
|
@@ -962,44 +983,45 @@ export declare namespace JSXBase {
|
|
|
962
983
|
commandFor?: string;
|
|
963
984
|
commandfor?: string;
|
|
964
985
|
}
|
|
965
|
-
interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
986
|
+
export interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
966
987
|
height?: number | string;
|
|
967
988
|
width?: number | string;
|
|
968
989
|
}
|
|
969
|
-
interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
990
|
+
export interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
970
991
|
span?: number;
|
|
971
992
|
}
|
|
972
|
-
interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
993
|
+
export interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
973
994
|
span?: number;
|
|
974
995
|
}
|
|
975
|
-
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
996
|
+
export interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
976
997
|
open?: boolean;
|
|
977
998
|
name?: string;
|
|
978
999
|
onToggle?: (event: ToggleEvent) => void;
|
|
979
1000
|
}
|
|
980
|
-
interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1001
|
+
export interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
981
1002
|
cite?: string;
|
|
982
1003
|
dateTime?: string;
|
|
983
1004
|
datetime?: string;
|
|
984
1005
|
}
|
|
985
|
-
interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1006
|
+
export interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
986
1007
|
onCancel?: (event: Event) => void;
|
|
987
1008
|
onClose?: (event: Event) => void;
|
|
988
1009
|
open?: boolean;
|
|
989
1010
|
returnValue?: string;
|
|
1011
|
+
closedby?: 'any' | 'closerequest' | 'none';
|
|
990
1012
|
}
|
|
991
|
-
interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1013
|
+
export interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
992
1014
|
height?: number | string;
|
|
993
1015
|
src?: string;
|
|
994
1016
|
type?: string;
|
|
995
1017
|
width?: number | string;
|
|
996
1018
|
}
|
|
997
|
-
interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1019
|
+
export interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
998
1020
|
disabled?: boolean;
|
|
999
1021
|
form?: string;
|
|
1000
1022
|
name?: string;
|
|
1001
1023
|
}
|
|
1002
|
-
interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1024
|
+
export interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1003
1025
|
acceptCharset?: string;
|
|
1004
1026
|
acceptcharset?: string;
|
|
1005
1027
|
action?: string;
|
|
@@ -1013,10 +1035,10 @@ export declare namespace JSXBase {
|
|
|
1013
1035
|
novalidate?: boolean | string;
|
|
1014
1036
|
target?: string;
|
|
1015
1037
|
}
|
|
1016
|
-
interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1038
|
+
export interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1017
1039
|
manifest?: string;
|
|
1018
1040
|
}
|
|
1019
|
-
interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1041
|
+
export interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1020
1042
|
allow?: string;
|
|
1021
1043
|
allowFullScreen?: boolean;
|
|
1022
1044
|
allowfullScreen?: string | boolean;
|
|
@@ -1024,6 +1046,8 @@ export declare namespace JSXBase {
|
|
|
1024
1046
|
allowtransparency?: string | boolean;
|
|
1025
1047
|
frameBorder?: number | string;
|
|
1026
1048
|
frameborder?: number | string;
|
|
1049
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1050
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1027
1051
|
importance?: 'low' | 'auto' | 'high';
|
|
1028
1052
|
height?: number | string;
|
|
1029
1053
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
@@ -1041,14 +1065,17 @@ export declare namespace JSXBase {
|
|
|
1041
1065
|
srcdoc?: string;
|
|
1042
1066
|
width?: number | string;
|
|
1043
1067
|
}
|
|
1044
|
-
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1068
|
+
export interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1045
1069
|
alt?: string;
|
|
1046
1070
|
crossOrigin?: string;
|
|
1047
1071
|
crossorigin?: string;
|
|
1048
1072
|
decoding?: 'async' | 'auto' | 'sync';
|
|
1073
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1074
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1049
1075
|
importance?: 'low' | 'auto' | 'high';
|
|
1050
1076
|
height?: number | string;
|
|
1051
1077
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
1078
|
+
referrerPolicy?: ReferrerPolicy;
|
|
1052
1079
|
sizes?: string;
|
|
1053
1080
|
src?: string;
|
|
1054
1081
|
srcSet?: string;
|
|
@@ -1057,12 +1084,12 @@ export declare namespace JSXBase {
|
|
|
1057
1084
|
usemap?: string;
|
|
1058
1085
|
width?: number | string;
|
|
1059
1086
|
}
|
|
1060
|
-
interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1087
|
+
export interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1061
1088
|
cite?: string;
|
|
1062
1089
|
dateTime?: string;
|
|
1063
1090
|
datetime?: string;
|
|
1064
1091
|
}
|
|
1065
|
-
interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1092
|
+
export interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1066
1093
|
accept?: string;
|
|
1067
1094
|
allowdirs?: boolean;
|
|
1068
1095
|
alt?: string;
|
|
@@ -1125,7 +1152,7 @@ export declare namespace JSXBase {
|
|
|
1125
1152
|
popoverTargetElement?: Element | null;
|
|
1126
1153
|
popoverTarget?: string;
|
|
1127
1154
|
}
|
|
1128
|
-
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1155
|
+
export interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1129
1156
|
challenge?: string;
|
|
1130
1157
|
disabled?: boolean;
|
|
1131
1158
|
form?: string;
|
|
@@ -1135,15 +1162,17 @@ export declare namespace JSXBase {
|
|
|
1135
1162
|
keyparams?: string;
|
|
1136
1163
|
name?: string;
|
|
1137
1164
|
}
|
|
1138
|
-
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1165
|
+
export interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1139
1166
|
form?: string;
|
|
1140
1167
|
htmlFor?: string;
|
|
1141
1168
|
}
|
|
1142
|
-
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1169
|
+
export interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1143
1170
|
value?: string | string[] | number;
|
|
1144
1171
|
}
|
|
1145
|
-
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1172
|
+
export interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1146
1173
|
as?: string;
|
|
1174
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1175
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1147
1176
|
href?: string;
|
|
1148
1177
|
hrefLang?: string;
|
|
1149
1178
|
hreflang?: string;
|
|
@@ -1154,13 +1183,13 @@ export declare namespace JSXBase {
|
|
|
1154
1183
|
sizes?: string;
|
|
1155
1184
|
type?: string;
|
|
1156
1185
|
}
|
|
1157
|
-
interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1186
|
+
export interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1158
1187
|
name?: string;
|
|
1159
1188
|
}
|
|
1160
|
-
interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1189
|
+
export interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1161
1190
|
type?: string;
|
|
1162
1191
|
}
|
|
1163
|
-
interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1192
|
+
export interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1164
1193
|
autoPlay?: boolean;
|
|
1165
1194
|
autoplay?: boolean | string;
|
|
1166
1195
|
controls?: boolean;
|
|
@@ -1200,7 +1229,7 @@ export declare namespace JSXBase {
|
|
|
1200
1229
|
onVolumeChange?: (event: Event) => void;
|
|
1201
1230
|
onWaiting?: (event: Event) => void;
|
|
1202
1231
|
}
|
|
1203
|
-
interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1232
|
+
export interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1204
1233
|
charSet?: string;
|
|
1205
1234
|
charset?: string;
|
|
1206
1235
|
content?: string;
|
|
@@ -1208,7 +1237,7 @@ export declare namespace JSXBase {
|
|
|
1208
1237
|
httpequiv?: string;
|
|
1209
1238
|
name?: string;
|
|
1210
1239
|
}
|
|
1211
|
-
interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1240
|
+
export interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1212
1241
|
form?: string;
|
|
1213
1242
|
high?: number;
|
|
1214
1243
|
low?: number;
|
|
@@ -1217,10 +1246,10 @@ export declare namespace JSXBase {
|
|
|
1217
1246
|
optimum?: number;
|
|
1218
1247
|
value?: string | string[] | number;
|
|
1219
1248
|
}
|
|
1220
|
-
interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1249
|
+
export interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1221
1250
|
cite?: string;
|
|
1222
1251
|
}
|
|
1223
|
-
interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1252
|
+
export interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1224
1253
|
classID?: string;
|
|
1225
1254
|
classid?: string;
|
|
1226
1255
|
data?: string;
|
|
@@ -1233,47 +1262,49 @@ export declare namespace JSXBase {
|
|
|
1233
1262
|
width?: number | string;
|
|
1234
1263
|
wmode?: string;
|
|
1235
1264
|
}
|
|
1236
|
-
interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1265
|
+
export interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1237
1266
|
reversed?: boolean;
|
|
1238
1267
|
start?: number;
|
|
1239
1268
|
}
|
|
1240
|
-
interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1269
|
+
export interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1241
1270
|
disabled?: boolean;
|
|
1242
1271
|
label?: string;
|
|
1243
1272
|
}
|
|
1244
|
-
interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1273
|
+
export interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1245
1274
|
disabled?: boolean;
|
|
1246
1275
|
label?: string;
|
|
1247
1276
|
selected?: boolean;
|
|
1248
1277
|
value?: string | string[] | number;
|
|
1249
1278
|
}
|
|
1250
|
-
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1279
|
+
export interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1251
1280
|
form?: string;
|
|
1252
1281
|
htmlFor?: string;
|
|
1253
1282
|
name?: string;
|
|
1254
1283
|
}
|
|
1255
|
-
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1284
|
+
export interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1256
1285
|
name?: string;
|
|
1257
1286
|
value?: string | string[] | number;
|
|
1258
1287
|
}
|
|
1259
|
-
interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1288
|
+
export interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1260
1289
|
max?: number | string;
|
|
1261
1290
|
value?: string | string[] | number;
|
|
1262
1291
|
}
|
|
1263
|
-
interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1292
|
+
export interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1264
1293
|
async?: boolean;
|
|
1265
1294
|
charSet?: string;
|
|
1266
1295
|
charset?: string;
|
|
1267
1296
|
crossOrigin?: string;
|
|
1268
1297
|
crossorigin?: string;
|
|
1269
1298
|
defer?: boolean;
|
|
1299
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1300
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1270
1301
|
importance?: 'low' | 'auto' | 'high';
|
|
1271
1302
|
integrity?: string;
|
|
1272
1303
|
nonce?: string;
|
|
1273
1304
|
src?: string;
|
|
1274
1305
|
type?: string;
|
|
1275
1306
|
}
|
|
1276
|
-
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1307
|
+
export interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1277
1308
|
disabled?: boolean;
|
|
1278
1309
|
form?: string;
|
|
1279
1310
|
multiple?: boolean;
|
|
@@ -1283,7 +1314,7 @@ export declare namespace JSXBase {
|
|
|
1283
1314
|
autoComplete?: string;
|
|
1284
1315
|
autocomplete?: string;
|
|
1285
1316
|
}
|
|
1286
|
-
interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1317
|
+
export interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1287
1318
|
height?: number;
|
|
1288
1319
|
media?: string;
|
|
1289
1320
|
sizes?: string;
|
|
@@ -1292,20 +1323,20 @@ export declare namespace JSXBase {
|
|
|
1292
1323
|
type?: string;
|
|
1293
1324
|
width?: number;
|
|
1294
1325
|
}
|
|
1295
|
-
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1326
|
+
export interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1296
1327
|
media?: string;
|
|
1297
1328
|
nonce?: string;
|
|
1298
1329
|
scoped?: boolean;
|
|
1299
1330
|
type?: string;
|
|
1300
1331
|
}
|
|
1301
|
-
interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1332
|
+
export interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1302
1333
|
cellPadding?: number | string;
|
|
1303
1334
|
cellpadding?: number | string;
|
|
1304
1335
|
cellSpacing?: number | string;
|
|
1305
1336
|
cellspacing?: number | string;
|
|
1306
1337
|
summary?: string;
|
|
1307
1338
|
}
|
|
1308
|
-
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1339
|
+
export interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1309
1340
|
autoComplete?: string;
|
|
1310
1341
|
autocomplete?: string;
|
|
1311
1342
|
cols?: number;
|
|
@@ -1326,12 +1357,12 @@ export declare namespace JSXBase {
|
|
|
1326
1357
|
value?: string | string[] | number;
|
|
1327
1358
|
wrap?: string;
|
|
1328
1359
|
}
|
|
1329
|
-
interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1360
|
+
export interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1330
1361
|
colSpan?: number;
|
|
1331
1362
|
headers?: string;
|
|
1332
1363
|
rowSpan?: number;
|
|
1333
1364
|
}
|
|
1334
|
-
interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1365
|
+
export interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1335
1366
|
abbr?: string;
|
|
1336
1367
|
colSpan?: number;
|
|
1337
1368
|
headers?: string;
|
|
@@ -1339,10 +1370,10 @@ export declare namespace JSXBase {
|
|
|
1339
1370
|
rowspan?: number | string;
|
|
1340
1371
|
scope?: string;
|
|
1341
1372
|
}
|
|
1342
|
-
interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1373
|
+
export interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1343
1374
|
dateTime?: string;
|
|
1344
1375
|
}
|
|
1345
|
-
interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1376
|
+
export interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1346
1377
|
default?: boolean;
|
|
1347
1378
|
kind?: string;
|
|
1348
1379
|
label?: string;
|
|
@@ -1350,14 +1381,14 @@ export declare namespace JSXBase {
|
|
|
1350
1381
|
srcLang?: string;
|
|
1351
1382
|
srclang?: string;
|
|
1352
1383
|
}
|
|
1353
|
-
interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
1384
|
+
export interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
1354
1385
|
height?: number | string;
|
|
1355
1386
|
playsInline?: boolean;
|
|
1356
1387
|
playsinline?: boolean | string;
|
|
1357
1388
|
poster?: string;
|
|
1358
1389
|
width?: number | string;
|
|
1359
1390
|
}
|
|
1360
|
-
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1391
|
+
export interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1361
1392
|
innerHTML?: string;
|
|
1362
1393
|
accessKey?: string;
|
|
1363
1394
|
autoFocus?: boolean;
|
|
@@ -1382,7 +1413,10 @@ export declare namespace JSXBase {
|
|
|
1382
1413
|
tabIndex?: number;
|
|
1383
1414
|
tabindex?: number | string;
|
|
1384
1415
|
title?: string;
|
|
1416
|
+
translate?: 'yes' | 'no' | (string & {});
|
|
1385
1417
|
popover?: string | null;
|
|
1418
|
+
focusgroup?: string;
|
|
1419
|
+
focusgroupstart?: boolean;
|
|
1386
1420
|
inputMode?: string;
|
|
1387
1421
|
inputmode?: string;
|
|
1388
1422
|
enterKeyHint?: string;
|
|
@@ -1420,7 +1454,7 @@ export declare namespace JSXBase {
|
|
|
1420
1454
|
security?: string;
|
|
1421
1455
|
unselectable?: boolean;
|
|
1422
1456
|
}
|
|
1423
|
-
interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1457
|
+
export interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1424
1458
|
class?: string | {
|
|
1425
1459
|
[className: string]: boolean;
|
|
1426
1460
|
};
|
|
@@ -1682,13 +1716,19 @@ export declare namespace JSXBase {
|
|
|
1682
1716
|
zoomAndPan?: string;
|
|
1683
1717
|
}
|
|
1684
1718
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
|
|
1685
|
-
interface ToggleEvent extends Event {
|
|
1719
|
+
export interface ToggleEvent extends Event {
|
|
1686
1720
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
|
|
1687
1721
|
readonly newState: string;
|
|
1688
1722
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
|
|
1689
1723
|
readonly oldState: string;
|
|
1690
1724
|
}
|
|
1691
|
-
|
|
1725
|
+
type AriaIDLPropertyName = {
|
|
1726
|
+
[K in keyof ARIAMixin]: ARIAMixin[K] extends string | null ? K : never;
|
|
1727
|
+
}[keyof ARIAMixin];
|
|
1728
|
+
type JSXAriaProperties = {
|
|
1729
|
+
[K in AriaIDLPropertyName]?: string | boolean | undefined;
|
|
1730
|
+
};
|
|
1731
|
+
export interface DOMAttributes<T> extends JSXAttributes<T>, JSXAriaProperties {
|
|
1692
1732
|
slot?: string;
|
|
1693
1733
|
part?: string;
|
|
1694
1734
|
exportparts?: string;
|
|
@@ -1818,8 +1858,8 @@ export declare namespace JSXBase {
|
|
|
1818
1858
|
onTransitionStart?: (event: TransitionEvent) => void;
|
|
1819
1859
|
onTransitionStartCapture?: (event: TransitionEvent) => void;
|
|
1820
1860
|
[key: `aria-${string}`]: string | boolean | undefined;
|
|
1821
|
-
[key: `aria${string}`]: string | boolean | undefined;
|
|
1822
1861
|
}
|
|
1862
|
+
export {};
|
|
1823
1863
|
}
|
|
1824
1864
|
export interface JSXAttributes<T = Element> {
|
|
1825
1865
|
key?: string | number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The money rows a cart-shaped view renders.
|
|
3
|
+
*
|
|
4
|
+
* The rule and the arithmetic moved to `@ticketlayer/elements-core` with the
|
|
5
|
+
* core split (TKT-68): it is behaviour, and behaviour lives in a core so every
|
|
6
|
+
* harness derives the same figures. This file stays as the import path the
|
|
7
|
+
* components and their specs already use.
|
|
8
|
+
*/
|
|
9
|
+
export { cartTotals, expressesFee, minorUnits, selectionTotals, FEE_LABEL_FALLBACK, } from '@ticketlayer/elements-core';
|
|
10
|
+
export type { TlCartLike, TlFeeQuote, TlSelectionLine, TlSelectionTotals, TlTotals, } from '@ticketlayer/elements-core';
|
|
@@ -65,3 +65,37 @@ export declare function isAuthError(err: unknown): boolean;
|
|
|
65
65
|
* live-api) until one owns the occurrence. Best effort: null when not found.
|
|
66
66
|
*/
|
|
67
67
|
export declare function resolveOccurrence(sdk: TicketlayerSDK, occurrenceId: string, maxEvents?: number): Promise<TlResolvedOccurrence | null>;
|
|
68
|
+
/**
|
|
69
|
+
* The money rows the order views render.
|
|
70
|
+
*
|
|
71
|
+
* Two things about the sales order view drive this (backstage-api
|
|
72
|
+
* `src/domains/orders/services/order-line-items.service.ts`, `views/index.ts`):
|
|
73
|
+
*
|
|
74
|
+
* - the fee is a LINE ITEM, `type: 'fee'`, named after the channel fee
|
|
75
|
+
* profile's `serviceFeeLabel` (the API falls back to "Service Fee"). That
|
|
76
|
+
* name is the only place the label reaches a buyer-facing response.
|
|
77
|
+
* - `order.subtotal` INCLUDES the fee line, because the order's totals sum
|
|
78
|
+
* every non-discount, non-tax line into it; and `order.totalFees` is set at
|
|
79
|
+
* order creation and never rewritten by the recalculation, so it reads 0 on
|
|
80
|
+
* a real order that charged a fee. Rendering "Subtotal" straight off the
|
|
81
|
+
* order therefore hides the fee inside it, which is the bug this fixes.
|
|
82
|
+
*
|
|
83
|
+
* So the fee comes from the fee lines first and `totalFees` only as a
|
|
84
|
+
* fallback, the subtotal is the ticket lines alone, and the total is the
|
|
85
|
+
* order's own figure - never a sum of ours.
|
|
86
|
+
*/
|
|
87
|
+
export interface TlOrderTotals {
|
|
88
|
+
currency: string;
|
|
89
|
+
/** Ticket lines only, in minor units: the fee is not folded in. */
|
|
90
|
+
subtotal: number;
|
|
91
|
+
fees: number;
|
|
92
|
+
feeLabel: string;
|
|
93
|
+
showFee: boolean;
|
|
94
|
+
tax: number;
|
|
95
|
+
discount: number;
|
|
96
|
+
/** What the buyer was charged, as the order reports it. */
|
|
97
|
+
total: number;
|
|
98
|
+
}
|
|
99
|
+
export declare function orderTotals(order: TlOrderData | null | undefined): TlOrderTotals;
|
|
100
|
+
/** The rows add up to the total the order reports. Asserted in the specs. */
|
|
101
|
+
export declare function totalsAgree(totals: TlOrderTotals): boolean;
|