@everymatrix/lottery-subscription 0.0.1
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/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-a7f3c31f.js +1204 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/lottery-subscription-99a4efee.js +8156 -0
- package/dist/cjs/lottery-subscription.cjs.entry.js +10 -0
- package/dist/cjs/lottery-subscription.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/lottery-subscription/index.js +1 -0
- package/dist/collection/components/lottery-subscription/lottery-subscription.css +17 -0
- package/dist/collection/components/lottery-subscription/lottery-subscription.js +457 -0
- package/dist/collection/components/lottery-subscription/lottery-subscription.type.js +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +35 -0
- package/dist/collection/utils/utils.js +28 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-0cefb8d0.js +1177 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/lottery-subscription-8ae08dc1.js +8154 -0
- package/dist/esm/lottery-subscription.entry.js +2 -0
- package/dist/esm/lottery-subscription.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/lottery-subscription/index.esm.js +1 -0
- package/dist/lottery-subscription/lottery-subscription.esm.js +1 -0
- package/dist/lottery-subscription/p-0117a469.js +2 -0
- package/dist/lottery-subscription/p-0de4713f.js +5614 -0
- package/dist/lottery-subscription/p-a28fd10e.entry.js +1 -0
- package/dist/lottery-subscription/p-e1255160.js +1 -0
- package/dist/stencil.config.dev.js +16 -0
- package/dist/stencil.config.js +17 -0
- package/dist/storybook/main.js +21 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/stencil.config.dev.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/storybook/main.d.ts +3 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/storybook/preview.d.ts +70 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-subscription/.stencil/packages/stencil/lottery-subscription/utils/utils.d.ts +1 -0
- package/dist/types/components/lottery-subscription/index.d.ts +1 -0
- package/dist/types/components/lottery-subscription/lottery-subscription.d.ts +73 -0
- package/dist/types/components/lottery-subscription/lottery-subscription.type.d.ts +20 -0
- package/dist/types/components.d.ts +119 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/locale.utils.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/dist/utils/utils.js +3 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +29 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{L as lottery_subscription}from"./p-0de4713f.js";import"./p-0117a469.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=()=>{};export{o as g}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
|
+
export const config = {
|
|
3
|
+
namespace: 'lottery-subscription',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: false,
|
|
6
|
+
minifyJs: true,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
9
|
+
},
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'www'
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
|
+
export const config = {
|
|
3
|
+
namespace: 'lottery-subscription',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: false,
|
|
6
|
+
minifyJs: true,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
9
|
+
},
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'dist',
|
|
14
|
+
esmLoaderPath: '../loader'
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as path from "path";
|
|
2
|
+
const config = {
|
|
3
|
+
stories: ['../**/*.@(mdx|stories.@(js|ts|tsx))'],
|
|
4
|
+
addons: ['@storybook/addon-essentials', '@storybook/addon-interactions', 'storybook-dark-mode'],
|
|
5
|
+
docs: {
|
|
6
|
+
defaultName: 'Documentation',
|
|
7
|
+
autodocs: 'tag'
|
|
8
|
+
},
|
|
9
|
+
framework: {
|
|
10
|
+
name: '@storybook/web-components-vite',
|
|
11
|
+
options: {}
|
|
12
|
+
},
|
|
13
|
+
viteFinal: async (config) => {
|
|
14
|
+
return Object.assign(Object.assign({}, config), { resolve: {
|
|
15
|
+
alias: {
|
|
16
|
+
'lottery-subscription': path.resolve(__dirname, '../../../../dist/packages/stencil/lottery-subscription')
|
|
17
|
+
}
|
|
18
|
+
} });
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export default config;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { themes } from "@storybook/theming";
|
|
2
|
+
export const parameters = {
|
|
3
|
+
darkMode: {
|
|
4
|
+
dark: Object.assign(Object.assign({}, themes.dark), { appBg: 'black' }),
|
|
5
|
+
light: Object.assign(Object.assign({}, themes.normal), { appBg: 'green' }),
|
|
6
|
+
current: 'light',
|
|
7
|
+
stylePreview: true
|
|
8
|
+
}
|
|
9
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const parameters: {
|
|
2
|
+
darkMode: {
|
|
3
|
+
dark: {
|
|
4
|
+
appBg: string;
|
|
5
|
+
base: "light" | "dark";
|
|
6
|
+
colorPrimary: string;
|
|
7
|
+
colorSecondary: string;
|
|
8
|
+
appContentBg: string;
|
|
9
|
+
appPreviewBg: string;
|
|
10
|
+
appBorderColor: string;
|
|
11
|
+
appBorderRadius: number;
|
|
12
|
+
fontBase: string;
|
|
13
|
+
fontCode: string;
|
|
14
|
+
textColor: string;
|
|
15
|
+
textInverseColor: string;
|
|
16
|
+
textMutedColor: string;
|
|
17
|
+
barTextColor: string;
|
|
18
|
+
barHoverColor: string;
|
|
19
|
+
barSelectedColor: string;
|
|
20
|
+
barBg: string;
|
|
21
|
+
buttonBg: string;
|
|
22
|
+
buttonBorder: string;
|
|
23
|
+
booleanBg: string;
|
|
24
|
+
booleanSelectedBg: string;
|
|
25
|
+
inputBg: string;
|
|
26
|
+
inputBorder: string;
|
|
27
|
+
inputTextColor: string;
|
|
28
|
+
inputBorderRadius: number;
|
|
29
|
+
brandTitle?: string;
|
|
30
|
+
brandUrl?: string;
|
|
31
|
+
brandImage?: string;
|
|
32
|
+
brandTarget?: string;
|
|
33
|
+
gridCellSize?: number;
|
|
34
|
+
};
|
|
35
|
+
light: {
|
|
36
|
+
appBg: string;
|
|
37
|
+
base: "light" | "dark";
|
|
38
|
+
colorPrimary: string;
|
|
39
|
+
colorSecondary: string;
|
|
40
|
+
appContentBg: string;
|
|
41
|
+
appPreviewBg: string;
|
|
42
|
+
appBorderColor: string;
|
|
43
|
+
appBorderRadius: number;
|
|
44
|
+
fontBase: string;
|
|
45
|
+
fontCode: string;
|
|
46
|
+
textColor: string;
|
|
47
|
+
textInverseColor: string;
|
|
48
|
+
textMutedColor: string;
|
|
49
|
+
barTextColor: string;
|
|
50
|
+
barHoverColor: string;
|
|
51
|
+
barSelectedColor: string;
|
|
52
|
+
barBg: string;
|
|
53
|
+
buttonBg: string;
|
|
54
|
+
buttonBorder: string;
|
|
55
|
+
booleanBg: string;
|
|
56
|
+
booleanSelectedBg: string;
|
|
57
|
+
inputBg: string;
|
|
58
|
+
inputBorder: string;
|
|
59
|
+
inputTextColor: string;
|
|
60
|
+
inputBorderRadius: number;
|
|
61
|
+
brandTitle?: string;
|
|
62
|
+
brandUrl?: string;
|
|
63
|
+
brandImage?: string;
|
|
64
|
+
brandTarget?: string;
|
|
65
|
+
gridCellSize?: number;
|
|
66
|
+
};
|
|
67
|
+
current: string;
|
|
68
|
+
stylePreview: boolean;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function format(first: string, middle: string, last: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LotterySubscription } from './lottery-subscription';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import "../../../../../../dist/libs/vaadin-facade/index";
|
|
3
|
+
export declare class LotterySubscription {
|
|
4
|
+
/**
|
|
5
|
+
* Translation via url
|
|
6
|
+
*/
|
|
7
|
+
translationUrl?: any;
|
|
8
|
+
/**
|
|
9
|
+
* Client custom styling via string
|
|
10
|
+
*/
|
|
11
|
+
clientStyling: string;
|
|
12
|
+
/**
|
|
13
|
+
* Client custom styling via url
|
|
14
|
+
*/
|
|
15
|
+
clientStylingUrlContent: string;
|
|
16
|
+
/**
|
|
17
|
+
* Endpoint URL for the source of data
|
|
18
|
+
*/
|
|
19
|
+
endpoint: string;
|
|
20
|
+
/**
|
|
21
|
+
* EndpointTicket URL for the source of ticket data
|
|
22
|
+
*/
|
|
23
|
+
endpointTicket: string;
|
|
24
|
+
/**
|
|
25
|
+
* Endpoint URL for the source of subscription data
|
|
26
|
+
*/
|
|
27
|
+
endpointSubscription: string;
|
|
28
|
+
/**
|
|
29
|
+
* Language of the widget
|
|
30
|
+
*/
|
|
31
|
+
language: string;
|
|
32
|
+
/**
|
|
33
|
+
* the name of the game
|
|
34
|
+
*/
|
|
35
|
+
gameName: string;
|
|
36
|
+
isSubscribed: boolean;
|
|
37
|
+
frequenceList: Array<any>;
|
|
38
|
+
frequenceState: string;
|
|
39
|
+
private filterData;
|
|
40
|
+
private subscriptionCode;
|
|
41
|
+
private conditionId;
|
|
42
|
+
private paramId;
|
|
43
|
+
private conditionRule;
|
|
44
|
+
private paramRule;
|
|
45
|
+
private peroidRule;
|
|
46
|
+
private startDateRule;
|
|
47
|
+
private endDateRule;
|
|
48
|
+
private gameNameRule;
|
|
49
|
+
private ruleType;
|
|
50
|
+
private limitStylingAppends;
|
|
51
|
+
private stylingContainer;
|
|
52
|
+
subscriptionCompleted: EventEmitter<any>;
|
|
53
|
+
subscriptionCheckChange: EventEmitter<any>;
|
|
54
|
+
componentWillLoad(): void;
|
|
55
|
+
componentDidRender(): void;
|
|
56
|
+
transDate(from: string, to: string): {
|
|
57
|
+
from: string;
|
|
58
|
+
to: string;
|
|
59
|
+
};
|
|
60
|
+
getSubscriptionData(): Promise<void>;
|
|
61
|
+
setClientStyling: () => void;
|
|
62
|
+
setClientStylingURL: () => void;
|
|
63
|
+
handleCheckboxchange(e: CustomEvent): void;
|
|
64
|
+
handleSelectionChange(event: CustomEvent): void;
|
|
65
|
+
changeDateParam: () => void;
|
|
66
|
+
handleFilterFrom: (event: Event) => void;
|
|
67
|
+
handleFilterTo: (event: Event) => void;
|
|
68
|
+
formateDate(dateParts: any): string;
|
|
69
|
+
parseDate(inputValue: string): object;
|
|
70
|
+
changeFormate(str: string): string;
|
|
71
|
+
setDateFormate(dom: any): void;
|
|
72
|
+
render(): any;
|
|
73
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface MetaDataFieldEnum {
|
|
2
|
+
key: string;
|
|
3
|
+
text: string;
|
|
4
|
+
}
|
|
5
|
+
export interface MetaDataField {
|
|
6
|
+
accessor: string;
|
|
7
|
+
code: string;
|
|
8
|
+
dataType: string;
|
|
9
|
+
enums: Array<MetaDataFieldEnum>;
|
|
10
|
+
id: string;
|
|
11
|
+
mandatory: boolean;
|
|
12
|
+
memo: string;
|
|
13
|
+
metadataId: string;
|
|
14
|
+
name: string;
|
|
15
|
+
sort: number;
|
|
16
|
+
}
|
|
17
|
+
export interface MetaData {
|
|
18
|
+
fields: Array<MetaDataField>;
|
|
19
|
+
id: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
export namespace Components {
|
|
9
|
+
interface LotterySubscription {
|
|
10
|
+
/**
|
|
11
|
+
* Client custom styling via string
|
|
12
|
+
*/
|
|
13
|
+
"clientStyling": string;
|
|
14
|
+
/**
|
|
15
|
+
* Client custom styling via url
|
|
16
|
+
*/
|
|
17
|
+
"clientStylingUrlContent": string;
|
|
18
|
+
/**
|
|
19
|
+
* Endpoint URL for the source of data
|
|
20
|
+
*/
|
|
21
|
+
"endpoint": string;
|
|
22
|
+
/**
|
|
23
|
+
* Endpoint URL for the source of subscription data
|
|
24
|
+
*/
|
|
25
|
+
"endpointSubscription": string;
|
|
26
|
+
/**
|
|
27
|
+
* EndpointTicket URL for the source of ticket data
|
|
28
|
+
*/
|
|
29
|
+
"endpointTicket": string;
|
|
30
|
+
/**
|
|
31
|
+
* the name of the game
|
|
32
|
+
*/
|
|
33
|
+
"gameName": string;
|
|
34
|
+
/**
|
|
35
|
+
* Language of the widget
|
|
36
|
+
*/
|
|
37
|
+
"language": string;
|
|
38
|
+
/**
|
|
39
|
+
* Translation via url
|
|
40
|
+
*/
|
|
41
|
+
"translationUrl"?: any;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export interface LotterySubscriptionCustomEvent<T> extends CustomEvent<T> {
|
|
45
|
+
detail: T;
|
|
46
|
+
target: HTMLLotterySubscriptionElement;
|
|
47
|
+
}
|
|
48
|
+
declare global {
|
|
49
|
+
interface HTMLLotterySubscriptionElementEventMap {
|
|
50
|
+
"subscriptionCompleted": any;
|
|
51
|
+
"subscriptionCheckChange": any;
|
|
52
|
+
}
|
|
53
|
+
interface HTMLLotterySubscriptionElement extends Components.LotterySubscription, HTMLStencilElement {
|
|
54
|
+
addEventListener<K extends keyof HTMLLotterySubscriptionElementEventMap>(type: K, listener: (this: HTMLLotterySubscriptionElement, ev: LotterySubscriptionCustomEvent<HTMLLotterySubscriptionElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
55
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
56
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
57
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
58
|
+
removeEventListener<K extends keyof HTMLLotterySubscriptionElementEventMap>(type: K, listener: (this: HTMLLotterySubscriptionElement, ev: LotterySubscriptionCustomEvent<HTMLLotterySubscriptionElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
59
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
60
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
61
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
62
|
+
}
|
|
63
|
+
var HTMLLotterySubscriptionElement: {
|
|
64
|
+
prototype: HTMLLotterySubscriptionElement;
|
|
65
|
+
new (): HTMLLotterySubscriptionElement;
|
|
66
|
+
};
|
|
67
|
+
interface HTMLElementTagNameMap {
|
|
68
|
+
"lottery-subscription": HTMLLotterySubscriptionElement;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
declare namespace LocalJSX {
|
|
72
|
+
interface LotterySubscription {
|
|
73
|
+
/**
|
|
74
|
+
* Client custom styling via string
|
|
75
|
+
*/
|
|
76
|
+
"clientStyling"?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Client custom styling via url
|
|
79
|
+
*/
|
|
80
|
+
"clientStylingUrlContent"?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Endpoint URL for the source of data
|
|
83
|
+
*/
|
|
84
|
+
"endpoint"?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Endpoint URL for the source of subscription data
|
|
87
|
+
*/
|
|
88
|
+
"endpointSubscription"?: string;
|
|
89
|
+
/**
|
|
90
|
+
* EndpointTicket URL for the source of ticket data
|
|
91
|
+
*/
|
|
92
|
+
"endpointTicket"?: string;
|
|
93
|
+
/**
|
|
94
|
+
* the name of the game
|
|
95
|
+
*/
|
|
96
|
+
"gameName"?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Language of the widget
|
|
99
|
+
*/
|
|
100
|
+
"language"?: string;
|
|
101
|
+
"onSubscriptionCheckChange"?: (event: LotterySubscriptionCustomEvent<any>) => void;
|
|
102
|
+
"onSubscriptionCompleted"?: (event: LotterySubscriptionCustomEvent<any>) => void;
|
|
103
|
+
/**
|
|
104
|
+
* Translation via url
|
|
105
|
+
*/
|
|
106
|
+
"translationUrl"?: any;
|
|
107
|
+
}
|
|
108
|
+
interface IntrinsicElements {
|
|
109
|
+
"lottery-subscription": LotterySubscription;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export { LocalJSX as JSX };
|
|
113
|
+
declare module "@stencil/core" {
|
|
114
|
+
export namespace JSX {
|
|
115
|
+
interface IntrinsicElements {
|
|
116
|
+
"lottery-subscription": LocalJSX.LotterySubscription & JSXBase.HTMLAttributes<HTMLLotterySubscriptionElement>;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/lottery-subscription';
|