@supersoniks/concorde 1.0.0 → 1.0.4
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 +2 -11
- package/dist/concorde.bundle.js +1738 -905
- package/package.json +3 -2
- package/types/components/giftcards/giftcard/giftcard.d.ts +1 -0
- package/types/components/product/prices-form/price-button/price-button.d.ts +1 -0
- package/types/components/theme/theme.d.ts +3 -1
- package/types/components/ui/button/button.d.ts +13 -0
- package/types/components/ui/loader/loader.d.ts +5 -2
- package/types/components/ui/modal/modal.d.ts +17 -0
- package/types/components/ui/toast/toast.d.ts +20 -11
- package/types/core/components/queue.d.ts +15 -0
- package/types/core/core.d.ts +1 -0
- package/types/core/mixins/Subscriber.d.ts +1 -0
- package/types/core/utils/api.d.ts +6 -5
- package/types/index.d.ts +2 -0
- package/types/components/event/event-illustration/ssks-event-illustration.d.ts +0 -14
- package/types/components/event/event-prices/ssks-event-price.d.ts +0 -8
- package/types/components/event/event-prices/ssks-event-prices.d.ts +0 -8
- package/types/components/event/event-title/ssks-event-title.d.ts +0 -7
- package/types/components/event/ssks-event.d.ts +0 -8
- package/types/components/misc/ssks-fetch.d.ts +0 -6
- package/types/components/misc/ssks-list.d.ts +0 -8
- package/types/components/misc/ssks-subscriber.d.ts +0 -6
- package/types/components/misc/ssks-taxonomy.d.ts +0 -13
- package/types/components/misc/ssks-text-formatted.d.ts +0 -14
- package/types/components/misc/ssks-text.d.ts +0 -12
- package/types/giftcards/giftcard.d.ts +0 -12
- package/types/giftcards/giftcards.d.ts +0 -15
- package/types/illustration/illustration.d.ts +0 -14
- package/types/mixins/Fetcher.d.ts +0 -9
- package/types/mixins/Subscriber.d.ts +0 -12
- package/types/styles/text-formatted/text-formatted.d.ts +0 -1
- package/types/utils/api.d.ts +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supersoniks/concorde",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
"serve": "tsc && vite preview"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
+
"@lit-labs/motion": "^1.0.1",
|
|
24
25
|
"lit": "^2.0.2",
|
|
25
|
-
"publisherproxy": "^2.5.
|
|
26
|
+
"publisherproxy": "^2.5.5"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
29
|
"@types/node": "^14.14.37",
|
|
@@ -12,6 +12,7 @@ export declare class SonicPricesButton extends SonicPricesButton_base {
|
|
|
12
12
|
priceNameClass: string;
|
|
13
13
|
price_help_text: string;
|
|
14
14
|
btnIconClass: string;
|
|
15
|
+
loading: boolean;
|
|
15
16
|
_cleanPrice(price: string | undefined): string | undefined;
|
|
16
17
|
_handleClick(): Promise<void>;
|
|
17
18
|
render(): import("lit-html").TemplateResult<1> | undefined;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
|
|
2
|
+
declare const SonicTheme_base: (new (...args: any[]) => import("../../core/mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
3
|
+
export declare class SonicTheme extends SonicTheme_base {
|
|
3
4
|
static styles: import("lit").CSSResult[];
|
|
4
5
|
theme: string;
|
|
5
6
|
render(): import("lit-html").TemplateResult<1>;
|
|
6
7
|
}
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
declare const SonicButton_base: (new (...args: any[]) => import("../../../core/mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
3
|
+
export declare class SonicButton extends SonicButton_base {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
type: "" | "primary" | "warning" | "danger" | "success" | "info";
|
|
6
|
+
variant: "" | "ghost" | "outline";
|
|
7
|
+
size: "" | "xs" | "sm" | "lg";
|
|
8
|
+
shape: "" | "circle" | "square";
|
|
9
|
+
className: string;
|
|
10
|
+
href: string;
|
|
11
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -2,10 +2,13 @@ import { LitElement } from "lit";
|
|
|
2
2
|
declare const SonicLoader_base: (new (...args: any[]) => import("../../../core/mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
3
3
|
export declare class SonicLoader extends SonicLoader_base {
|
|
4
4
|
static styles: import("lit").CSSResult[];
|
|
5
|
-
static
|
|
5
|
+
static loader: SonicLoader;
|
|
6
|
+
static callCounter: number;
|
|
7
|
+
static show(conf?: {
|
|
6
8
|
mode?: string;
|
|
9
|
+
container?: HTMLElement;
|
|
7
10
|
}): void;
|
|
8
|
-
static
|
|
11
|
+
static hide(): void;
|
|
9
12
|
mode: string;
|
|
10
13
|
render(): import("lit-html").TemplateResult<1>;
|
|
11
14
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
declare const SonicModal_base: (new (...args: any[]) => import("../../../core/mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
3
|
+
export declare class SonicModal extends SonicModal_base {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
className: string;
|
|
6
|
+
title: string;
|
|
7
|
+
text: string;
|
|
8
|
+
visibility: "visible" | "hidden";
|
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
10
|
+
hide(): void;
|
|
11
|
+
static show(conf: {
|
|
12
|
+
title: string;
|
|
13
|
+
text?: string;
|
|
14
|
+
styled?: boolean;
|
|
15
|
+
}): void;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
+
declare type ToastStatus = "success" | "error" | "info";
|
|
3
|
+
declare type Toast = {
|
|
4
|
+
id?: number;
|
|
5
|
+
text: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
status?: ToastStatus;
|
|
8
|
+
preserve?: boolean;
|
|
9
|
+
styled?: boolean;
|
|
10
|
+
};
|
|
2
11
|
declare const SonicToast_base: (new (...args: any[]) => import("../../../core/mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
3
12
|
export declare class SonicToast extends SonicToast_base {
|
|
4
13
|
static styles: import("lit").CSSResult[];
|
|
5
|
-
|
|
6
|
-
text: string;
|
|
7
|
-
status?: string;
|
|
8
|
-
toastTitle?: string;
|
|
9
|
-
styled?: boolean;
|
|
10
|
-
}): void;
|
|
11
|
-
status: string;
|
|
12
|
-
toastTitle: string;
|
|
13
|
-
text: string;
|
|
14
|
+
toasts: Toast[];
|
|
14
15
|
className: string;
|
|
15
|
-
|
|
16
|
+
styled: boolean;
|
|
16
17
|
render(): import("lit-html").TemplateResult<1>;
|
|
17
|
-
|
|
18
|
+
static add(conf: Toast): {
|
|
19
|
+
id: number;
|
|
20
|
+
text: string;
|
|
21
|
+
title: string | undefined;
|
|
22
|
+
status: ToastStatus | undefined;
|
|
23
|
+
preserve: boolean | undefined;
|
|
24
|
+
};
|
|
25
|
+
removeItem(item: Toast): void;
|
|
26
|
+
autoRemoveItem(item: Toast): void;
|
|
18
27
|
}
|
|
19
28
|
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
declare const SonicQueue_base: (new (...args: any[]) => import("../mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
3
|
+
export declare class SonicQueue extends SonicQueue_base {
|
|
4
|
+
template: HTMLTemplateElement | null;
|
|
5
|
+
lastRequestTime: number;
|
|
6
|
+
targetRequestDuration: number;
|
|
7
|
+
limit: number;
|
|
8
|
+
static instanceCounter: number;
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
nextPublisher: any;
|
|
11
|
+
dataProviderExpression: string;
|
|
12
|
+
next(e?: CustomEvent): void;
|
|
13
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
package/types/core/core.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare class SubscriberInterface {
|
|
|
6
6
|
publisher: any;
|
|
7
7
|
dataProvider: String;
|
|
8
8
|
makeShadow(props: Record<string, any>, value: any): any;
|
|
9
|
+
dispatchEvent(event: Event): void;
|
|
9
10
|
connectedCallback(): void;
|
|
10
11
|
}
|
|
11
12
|
declare const Subscriber: <T extends Constructor<LitElement>>(superClass: T) => Constructor<SubscriberInterface> & T;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
declare class API {
|
|
2
|
-
serviceURL:
|
|
3
|
-
userName:
|
|
4
|
-
password:
|
|
5
|
-
token:
|
|
6
|
-
tokenProvider:
|
|
2
|
+
serviceURL: string | null;
|
|
3
|
+
userName: string | null;
|
|
4
|
+
password: string | null;
|
|
5
|
+
token: string | null | undefined;
|
|
6
|
+
tokenProvider: string | null;
|
|
7
7
|
nologin: Boolean;
|
|
8
|
+
static tokens: Map<string | null, string | null | undefined>;
|
|
8
9
|
constructor(config: any);
|
|
9
10
|
auth(): Promise<void>;
|
|
10
11
|
get(path: String): Promise<any>;
|
package/types/index.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ import './components/event/event-card/event-card';
|
|
|
4
4
|
import './components/illustration/illustration';
|
|
5
5
|
import './components/giftcards/giftcard/giftcard';
|
|
6
6
|
import './components/product/prices-form/prices-form';
|
|
7
|
+
import './components/ui/button/button';
|
|
7
8
|
import './components/ui/tooltip/tooltip';
|
|
9
|
+
import './components/ui/modal/modal';
|
|
8
10
|
import './components/ui/toast/toast';
|
|
9
11
|
import './components/ui/loader/loader';
|
|
10
12
|
import './components/theme/theme';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
declare const SonicEventIllustration_base: (new (...args: any[]) => import("../../../mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
3
|
-
export declare class SonicEventIllustration extends SonicEventIllustration_base {
|
|
4
|
-
static styles: import("lit").CSSResult;
|
|
5
|
-
illustration: string;
|
|
6
|
-
loadingMode: string;
|
|
7
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
8
|
-
}
|
|
9
|
-
declare global {
|
|
10
|
-
interface HTMLElementTagNameMap {
|
|
11
|
-
"sonic-event-illustation": SonicEventIllustration;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
declare const SonicEventPrice_base: (new (...args: any[]) => import("../../../mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
3
|
-
export declare class SonicEventPrice extends SonicEventPrice_base {
|
|
4
|
-
price_name: string;
|
|
5
|
-
price_amount: string;
|
|
6
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
-
}
|
|
8
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
import './sonic-event-price';
|
|
3
|
-
declare const SonicEventPrices_base: (new (...args: any[]) => import("../../../mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
4
|
-
export declare class SonicEventPrices extends SonicEventPrices_base {
|
|
5
|
-
prices: never[];
|
|
6
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
-
}
|
|
8
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
declare const SonicEventTitle_base: (new (...args: any[]) => import("../../../mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
3
|
-
export declare class SonicEventTitle extends SonicEventTitle_base {
|
|
4
|
-
title: string;
|
|
5
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
6
|
-
}
|
|
7
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
import './event-card/event-card';
|
|
3
|
-
import './event-title/event-title';
|
|
4
|
-
declare const SonicEvent_base: (new (...args: any[]) => import("../../mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
5
|
-
export declare class SonicEvent extends SonicEvent_base {
|
|
6
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
-
}
|
|
8
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
declare const SonicFetch_base: (new (...args: any[]) => import("../../mixins/Subscriber").SubscriberInterface) & (new (...args: any[]) => import("../../mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
3
|
-
export declare class SonicFetch extends SonicFetch_base {
|
|
4
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
5
|
-
}
|
|
6
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
declare const SonicList_base: (new (...args: any[]) => import("../../mixins/Subscriber").SubscriberInterface) & (new (...args: any[]) => import("../../mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
3
|
-
export declare class SonicList extends SonicList_base {
|
|
4
|
-
template: HTMLTemplateElement | null;
|
|
5
|
-
connectedCallback(): void;
|
|
6
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
-
}
|
|
8
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
declare const SonicSubscriber_base: (new (...args: any[]) => import("../../mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
3
|
-
export declare class SonicSubscriber extends SonicSubscriber_base {
|
|
4
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
5
|
-
}
|
|
6
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
declare const SonicTaxonomy_base: (new (...args: any[]) => import("../../mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
3
|
-
export declare class SonicTaxonomy extends SonicTaxonomy_base {
|
|
4
|
-
taxonomy: never[];
|
|
5
|
-
separator: string;
|
|
6
|
-
render(): import("lit-html").TemplateResult<1> | undefined;
|
|
7
|
-
}
|
|
8
|
-
declare global {
|
|
9
|
-
interface HTMLElementTagNameMap {
|
|
10
|
-
"sonic-taxonomy": SonicTaxonomy;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
declare const SonicTextFormatted_base: (new (...args: any[]) => import("../../mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
3
|
-
export declare class SonicTextFormatted extends SonicTextFormatted_base {
|
|
4
|
-
static styles: import("lit").CSSResult[];
|
|
5
|
-
html: string;
|
|
6
|
-
leading: string;
|
|
7
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
8
|
-
}
|
|
9
|
-
declare global {
|
|
10
|
-
interface HTMLElementTagNameMap {
|
|
11
|
-
"sonic-text-formatted": SonicTextFormatted;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
declare const SonicText_base: (new (...args: any[]) => import("../../mixins/Subscriber").SubscriberInterface) & typeof LitElement;
|
|
3
|
-
export declare class SonicText extends SonicText_base {
|
|
4
|
-
key: string;
|
|
5
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
6
|
-
}
|
|
7
|
-
declare global {
|
|
8
|
-
interface HTMLElementTagNameMap {
|
|
9
|
-
"sonic-text": SonicText;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
import "../components/illustration/illustration";
|
|
3
|
-
declare class SonicGiftCard extends LitElement {
|
|
4
|
-
props: any;
|
|
5
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
6
|
-
}
|
|
7
|
-
declare global {
|
|
8
|
-
interface HTMLElementTagNameMap {
|
|
9
|
-
"sonic-giftcard": SonicGiftCard;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
import "./giftcard";
|
|
3
|
-
declare class SonicGiftCards extends LitElement {
|
|
4
|
-
_fetchGiftCardsData(url: string): void;
|
|
5
|
-
connectedCallback(): void;
|
|
6
|
-
giftCards: any;
|
|
7
|
-
url: string;
|
|
8
|
-
render(): import("lit-html").TemplateResult<1> | null;
|
|
9
|
-
}
|
|
10
|
-
declare global {
|
|
11
|
-
interface HTMLElementTagNameMap {
|
|
12
|
-
"sonic-giftcards": SonicGiftCards;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
declare class SonicIllustration extends LitElement {
|
|
3
|
-
static styles: import("lit").CSSResult;
|
|
4
|
-
src: string;
|
|
5
|
-
loadingMode: string;
|
|
6
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
-
protected createRenderRoot(): this;
|
|
8
|
-
}
|
|
9
|
-
declare global {
|
|
10
|
-
interface HTMLElementTagNameMap {
|
|
11
|
-
"sonic-illustration": SonicIllustration;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import API from "../utils/api";
|
|
2
|
-
import { SubscriberInterface } from "./Subscriber";
|
|
3
|
-
export declare class FetcherInterface {
|
|
4
|
-
api: API;
|
|
5
|
-
tokenProvider: Element;
|
|
6
|
-
}
|
|
7
|
-
declare type Constructor<T> = new (...args: any[]) => T;
|
|
8
|
-
declare const Fetcher: <T extends Constructor<SubscriberInterface>>(superClass: T) => Constructor<SubscriberInterface> & T;
|
|
9
|
-
export default Fetcher;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
declare type Constructor<T> = new (...args: any[]) => T;
|
|
3
|
-
export declare class SubscriberInterface {
|
|
4
|
-
props: any;
|
|
5
|
-
getAncestorAttributeValue(attributeName: String): String;
|
|
6
|
-
publisher: any;
|
|
7
|
-
dataProvider: String;
|
|
8
|
-
makeShadow(props: Record<string, any>, value: any): any;
|
|
9
|
-
connectedCallback(): void;
|
|
10
|
-
}
|
|
11
|
-
declare const Subscriber: <T extends Constructor<LitElement>>(superClass: T) => Constructor<SubscriberInterface> & T;
|
|
12
|
-
export default Subscriber;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const cssTextFormatted: import("lit").CSSResult;
|
package/types/utils/api.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare class API {
|
|
2
|
-
serviceURL: String | null;
|
|
3
|
-
userName: String | null;
|
|
4
|
-
password: String | null;
|
|
5
|
-
token: String | null;
|
|
6
|
-
tokenProvider: String | null;
|
|
7
|
-
nologin: Boolean;
|
|
8
|
-
constructor(config: any);
|
|
9
|
-
auth(): Promise<void>;
|
|
10
|
-
get(path: String): Promise<any>;
|
|
11
|
-
createHeaders(): Promise<any>;
|
|
12
|
-
computeURL(path: String): string;
|
|
13
|
-
put(path: String, data: any): Promise<any>;
|
|
14
|
-
}
|
|
15
|
-
export default API;
|