@everymatrix/lottery-selection 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-9b8fe4ee.js +1215 -0
- package/dist/cjs/index.cjs.js +10 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/lottery-selection-3122c2e3.js +214 -0
- package/dist/cjs/lottery-selection.cjs.entry.js +10 -0
- package/dist/cjs/lottery-selection.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/lottery-selection/index.js +1 -0
- package/dist/collection/components/lottery-selection/lottery-selection.css +64 -0
- package/dist/collection/components/lottery-selection/lottery-selection.js +342 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/utils.js +11 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-ab825ca6.js +1188 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/lottery-selection-75fcc811.js +212 -0
- package/dist/esm/lottery-selection.entry.js +2 -0
- package/dist/esm/lottery-selection.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/lottery-selection/app-globals-0f993ce5.js +1 -0
- package/dist/lottery-selection/index-ab825ca6.js +2 -0
- package/dist/lottery-selection/index.esm.js +1 -0
- package/dist/lottery-selection/lottery-selection-75fcc811.js +1 -0
- package/dist/lottery-selection/lottery-selection.entry.js +1 -0
- package/dist/lottery-selection/lottery-selection.esm.js +1 -0
- package/dist/stencil.config.dev.js +19 -0
- package/dist/stencil.config.js +19 -0
- package/dist/storybook/main.js +43 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-selection/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-selection/.stencil/packages/stencil/lottery-selection/stencil.config.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-selection/.stencil/packages/stencil/lottery-selection/stencil.config.dev.d.ts +2 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-selection/.stencil/packages/stencil/lottery-selection/storybook/main.d.ts +3 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-selection/.stencil/packages/stencil/lottery-selection/storybook/preview.d.ts +70 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-selection/.stencil/tools/plugins/index.d.ts +4 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-selection/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-selection/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-selection/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-selection/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
- package/dist/types/components/lottery-selection/index.d.ts +1 -0
- package/dist/types/components/lottery-selection/lottery-selection.d.ts +68 -0
- package/dist/types/components.d.ts +149 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/utils.d.ts +2 -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 +27 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class LotterySelection {
|
|
3
|
+
/**
|
|
4
|
+
* The current value of the selection.
|
|
5
|
+
* Can be 0 (unselected) or 1 (selected), or a string value.
|
|
6
|
+
*/
|
|
7
|
+
value: number | string;
|
|
8
|
+
/**
|
|
9
|
+
* The text label displayed inside the button.
|
|
10
|
+
*/
|
|
11
|
+
text: string;
|
|
12
|
+
/**
|
|
13
|
+
* The index of this selection item, useful for identification in lists.
|
|
14
|
+
*/
|
|
15
|
+
idx: number;
|
|
16
|
+
/**
|
|
17
|
+
* The type of the selection button which determines its behavior and appearance.
|
|
18
|
+
* Possible values: 'toggle', 'delete', 'input', 'readonly', 'disabled'.
|
|
19
|
+
* Defaults to 'toggle'.
|
|
20
|
+
*/
|
|
21
|
+
type: 'toggle' | 'delete' | 'input' | 'readonly' | 'disabled';
|
|
22
|
+
/**
|
|
23
|
+
* Client custom styling via message bus source identifier.
|
|
24
|
+
*/
|
|
25
|
+
mbSource: string;
|
|
26
|
+
/**
|
|
27
|
+
* Client custom styling via raw CSS string.
|
|
28
|
+
*/
|
|
29
|
+
clientStyling: string;
|
|
30
|
+
/**
|
|
31
|
+
* Client custom styling via CSS file URL.
|
|
32
|
+
*/
|
|
33
|
+
clientStylingUrl: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the button has a border. Defaults to true.
|
|
36
|
+
*/
|
|
37
|
+
hasBorder: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the button has a background color. Defaults to true.
|
|
40
|
+
*/
|
|
41
|
+
hasBackground: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Custom SVG string for the delete icon. If provided, it overrides the default Ant Design delete icon.
|
|
44
|
+
* **WARNING**: Directly using `innerHTML` with user-provided content can lead to XSS vulnerabilities.
|
|
45
|
+
* Ensure that the `deleteIconSvg` value is sanitized by the consumer of this component before passing it,
|
|
46
|
+
* or ensure it comes from a trusted source. This component performs basic sanitization but it is not
|
|
47
|
+
* a foolproof protection against all possible SVG-based XSS attacks.
|
|
48
|
+
*/
|
|
49
|
+
deleteIconSvg: string;
|
|
50
|
+
/**
|
|
51
|
+
* Width for the delete icon (applies to default icon if no custom SVG is provided).
|
|
52
|
+
*/
|
|
53
|
+
deleteIconWidth: string;
|
|
54
|
+
/**
|
|
55
|
+
* Height for the delete icon (applies to default icon if no custom SVG is provided).
|
|
56
|
+
*/
|
|
57
|
+
deleteIconHeight: string;
|
|
58
|
+
private stylingContainer;
|
|
59
|
+
private stylingSubscription;
|
|
60
|
+
handleClientStylingChange(newValue: any, oldValue: any): void;
|
|
61
|
+
handleClientStylingUrlChange(newValue: any, oldValue: any): void;
|
|
62
|
+
handleMbSourceChange(newValue: any, oldValue: any): void;
|
|
63
|
+
componentDidLoad(): void;
|
|
64
|
+
disconnectedCallback(): void;
|
|
65
|
+
lotteryBulletClickHandler: EventEmitter<any>;
|
|
66
|
+
private handleClick;
|
|
67
|
+
render(): any;
|
|
68
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
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 LotterySelection {
|
|
10
|
+
/**
|
|
11
|
+
* Client custom styling via raw CSS string.
|
|
12
|
+
*/
|
|
13
|
+
"clientStyling": string;
|
|
14
|
+
/**
|
|
15
|
+
* Client custom styling via CSS file URL.
|
|
16
|
+
*/
|
|
17
|
+
"clientStylingUrl": string;
|
|
18
|
+
/**
|
|
19
|
+
* Height for the delete icon (applies to default icon if no custom SVG is provided).
|
|
20
|
+
*/
|
|
21
|
+
"deleteIconHeight": string;
|
|
22
|
+
/**
|
|
23
|
+
* Custom SVG string for the delete icon. If provided, it overrides the default Ant Design delete icon. **WARNING**: Directly using `innerHTML` with user-provided content can lead to XSS vulnerabilities. Ensure that the `deleteIconSvg` value is sanitized by the consumer of this component before passing it, or ensure it comes from a trusted source. This component performs basic sanitization but it is not a foolproof protection against all possible SVG-based XSS attacks.
|
|
24
|
+
*/
|
|
25
|
+
"deleteIconSvg": string;
|
|
26
|
+
/**
|
|
27
|
+
* Width for the delete icon (applies to default icon if no custom SVG is provided).
|
|
28
|
+
*/
|
|
29
|
+
"deleteIconWidth": string;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the button has a background color. Defaults to true.
|
|
32
|
+
*/
|
|
33
|
+
"hasBackground": boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the button has a border. Defaults to true.
|
|
36
|
+
*/
|
|
37
|
+
"hasBorder": boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The index of this selection item, useful for identification in lists.
|
|
40
|
+
*/
|
|
41
|
+
"idx": number;
|
|
42
|
+
/**
|
|
43
|
+
* Client custom styling via message bus source identifier.
|
|
44
|
+
*/
|
|
45
|
+
"mbSource": string;
|
|
46
|
+
/**
|
|
47
|
+
* The text label displayed inside the button.
|
|
48
|
+
*/
|
|
49
|
+
"text": string;
|
|
50
|
+
/**
|
|
51
|
+
* The type of the selection button which determines its behavior and appearance. Possible values: 'toggle', 'delete', 'input', 'readonly', 'disabled'. Defaults to 'toggle'.
|
|
52
|
+
*/
|
|
53
|
+
"type": 'toggle' | 'delete' | 'input' | 'readonly' | 'disabled';
|
|
54
|
+
/**
|
|
55
|
+
* The current value of the selection. Can be 0 (unselected) or 1 (selected), or a string value.
|
|
56
|
+
*/
|
|
57
|
+
"value": number | string;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export interface LotterySelectionCustomEvent<T> extends CustomEvent<T> {
|
|
61
|
+
detail: T;
|
|
62
|
+
target: HTMLLotterySelectionElement;
|
|
63
|
+
}
|
|
64
|
+
declare global {
|
|
65
|
+
interface HTMLLotterySelectionElementEventMap {
|
|
66
|
+
"lotteryBulletClick": any;
|
|
67
|
+
}
|
|
68
|
+
interface HTMLLotterySelectionElement extends Components.LotterySelection, HTMLStencilElement {
|
|
69
|
+
addEventListener<K extends keyof HTMLLotterySelectionElementEventMap>(type: K, listener: (this: HTMLLotterySelectionElement, ev: LotterySelectionCustomEvent<HTMLLotterySelectionElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
70
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
71
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
72
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
73
|
+
removeEventListener<K extends keyof HTMLLotterySelectionElementEventMap>(type: K, listener: (this: HTMLLotterySelectionElement, ev: LotterySelectionCustomEvent<HTMLLotterySelectionElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
74
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
75
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
76
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
77
|
+
}
|
|
78
|
+
var HTMLLotterySelectionElement: {
|
|
79
|
+
prototype: HTMLLotterySelectionElement;
|
|
80
|
+
new (): HTMLLotterySelectionElement;
|
|
81
|
+
};
|
|
82
|
+
interface HTMLElementTagNameMap {
|
|
83
|
+
"lottery-selection": HTMLLotterySelectionElement;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
declare namespace LocalJSX {
|
|
87
|
+
interface LotterySelection {
|
|
88
|
+
/**
|
|
89
|
+
* Client custom styling via raw CSS string.
|
|
90
|
+
*/
|
|
91
|
+
"clientStyling"?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Client custom styling via CSS file URL.
|
|
94
|
+
*/
|
|
95
|
+
"clientStylingUrl"?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Height for the delete icon (applies to default icon if no custom SVG is provided).
|
|
98
|
+
*/
|
|
99
|
+
"deleteIconHeight"?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Custom SVG string for the delete icon. If provided, it overrides the default Ant Design delete icon. **WARNING**: Directly using `innerHTML` with user-provided content can lead to XSS vulnerabilities. Ensure that the `deleteIconSvg` value is sanitized by the consumer of this component before passing it, or ensure it comes from a trusted source. This component performs basic sanitization but it is not a foolproof protection against all possible SVG-based XSS attacks.
|
|
102
|
+
*/
|
|
103
|
+
"deleteIconSvg"?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Width for the delete icon (applies to default icon if no custom SVG is provided).
|
|
106
|
+
*/
|
|
107
|
+
"deleteIconWidth"?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Whether the button has a background color. Defaults to true.
|
|
110
|
+
*/
|
|
111
|
+
"hasBackground"?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Whether the button has a border. Defaults to true.
|
|
114
|
+
*/
|
|
115
|
+
"hasBorder"?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* The index of this selection item, useful for identification in lists.
|
|
118
|
+
*/
|
|
119
|
+
"idx"?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Client custom styling via message bus source identifier.
|
|
122
|
+
*/
|
|
123
|
+
"mbSource"?: string;
|
|
124
|
+
"onLotteryBulletClick"?: (event: LotterySelectionCustomEvent<any>) => void;
|
|
125
|
+
/**
|
|
126
|
+
* The text label displayed inside the button.
|
|
127
|
+
*/
|
|
128
|
+
"text"?: string;
|
|
129
|
+
/**
|
|
130
|
+
* The type of the selection button which determines its behavior and appearance. Possible values: 'toggle', 'delete', 'input', 'readonly', 'disabled'. Defaults to 'toggle'.
|
|
131
|
+
*/
|
|
132
|
+
"type"?: 'toggle' | 'delete' | 'input' | 'readonly' | 'disabled';
|
|
133
|
+
/**
|
|
134
|
+
* The current value of the selection. Can be 0 (unselected) or 1 (selected), or a string value.
|
|
135
|
+
*/
|
|
136
|
+
"value"?: number | string;
|
|
137
|
+
}
|
|
138
|
+
interface IntrinsicElements {
|
|
139
|
+
"lottery-selection": LotterySelection;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
export { LocalJSX as JSX };
|
|
143
|
+
declare module "@stencil/core" {
|
|
144
|
+
export namespace JSX {
|
|
145
|
+
interface IntrinsicElements {
|
|
146
|
+
"lottery-selection": LocalJSX.LotterySelection & JSXBase.HTMLAttributes<HTMLLotterySelectionElement>;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/lottery-selection';
|