shop-components 0.2.6 → 0.2.8
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/shop-components.cjs +3883 -1
- package/dist/shop-components.mjs +12481 -65
- package/dist/stories/device-viewer/slot/slot-item.d.ts +55 -23
- package/package.json +4 -15
- package/dist/assets/loader.worker-fysOIq2s.js +0 -7
- package/dist/cropper.cjs +0 -1244
- package/dist/cropper.mjs +0 -25459
- package/dist/device-viewer.cjs +0 -414
- package/dist/device-viewer.mjs +0 -708
- package/dist/query-YTc5aJd1.mjs +0 -708
- package/dist/query-l2HhpUKG.js +0 -39
- package/dist/scene-Ibg8IbTP.js +0 -3893
- package/dist/scene-Uu7Z9Hmw.mjs +0 -13407
|
@@ -1,34 +1,66 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
1
|
export interface SlotItemProps {
|
|
3
2
|
name: string;
|
|
4
3
|
isMobile?: boolean;
|
|
5
4
|
logo?: string;
|
|
6
5
|
onRemove?: () => void;
|
|
7
6
|
}
|
|
8
|
-
export declare class SlotItem extends
|
|
9
|
-
|
|
7
|
+
export declare class SlotItem extends HTMLElement {
|
|
8
|
+
private _props;
|
|
9
|
+
private _slot;
|
|
10
10
|
private _size;
|
|
11
11
|
private _showDialog;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
12
|
+
private _selected;
|
|
13
|
+
private _focused;
|
|
14
|
+
private _toBeInstalled;
|
|
15
|
+
private _toBeReplaced;
|
|
16
|
+
private _hasError;
|
|
17
|
+
private _canInstall;
|
|
18
|
+
private _hide;
|
|
19
|
+
private _disable;
|
|
20
|
+
private _filled;
|
|
21
|
+
private _allFunctions;
|
|
22
|
+
private _functions;
|
|
23
|
+
private _deviceName;
|
|
24
|
+
private _deviceLogo;
|
|
25
|
+
private _renderQueued;
|
|
26
|
+
private _needsRender;
|
|
27
|
+
constructor(props?: SlotItemProps);
|
|
28
|
+
connectedCallback(): void;
|
|
29
|
+
get props(): SlotItemProps;
|
|
30
|
+
set props(value: SlotItemProps);
|
|
31
|
+
get slot(): any;
|
|
32
|
+
set slot(value: any);
|
|
33
|
+
get selected(): boolean;
|
|
34
|
+
set selected(value: boolean);
|
|
35
|
+
get focused(): boolean;
|
|
36
|
+
set focused(value: boolean);
|
|
37
|
+
get toBeInstalled(): boolean;
|
|
38
|
+
set toBeInstalled(value: boolean);
|
|
39
|
+
get toBeReplaced(): boolean;
|
|
40
|
+
set toBeReplaced(value: boolean);
|
|
41
|
+
get hasError(): boolean;
|
|
42
|
+
set hasError(value: boolean);
|
|
43
|
+
get canInstall(): boolean;
|
|
44
|
+
set canInstall(value: boolean);
|
|
45
|
+
get hide(): boolean;
|
|
46
|
+
set hide(value: boolean);
|
|
47
|
+
get disable(): boolean;
|
|
48
|
+
set disable(value: boolean);
|
|
49
|
+
get filled(): boolean;
|
|
50
|
+
set filled(value: boolean);
|
|
51
|
+
get allFunctions(): string[];
|
|
52
|
+
set allFunctions(functions: string[]);
|
|
53
|
+
get functions(): string[];
|
|
54
|
+
set functions(values: string[]);
|
|
55
|
+
get deviceName(): string;
|
|
56
|
+
set deviceName(value: string);
|
|
57
|
+
get deviceLogo(): string;
|
|
58
|
+
set deviceLogo(value: string);
|
|
28
59
|
get hasMoreFunctions(): boolean;
|
|
29
|
-
removeDevice: () => void;
|
|
30
|
-
onClick(e: MouseEvent): void;
|
|
31
60
|
setSize(size?: number): void;
|
|
32
|
-
|
|
33
|
-
|
|
61
|
+
removeDevice(): void;
|
|
62
|
+
addFunction(func: string): void;
|
|
63
|
+
private scheduleRender;
|
|
64
|
+
private render;
|
|
65
|
+
private handleShadowClick;
|
|
34
66
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shop-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Shop components",
|
|
5
5
|
"main": "dist/shop-components.umd.js",
|
|
6
6
|
"module": "dist/shop-components.mjs",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"dts": "tsc --emitDeclarationOnly & tsc & storybook build -o dist",
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
-
"dev": "
|
|
11
|
+
"dev": "vite dev --open",
|
|
12
|
+
"storybook": "storybook dev -p 6006",
|
|
12
13
|
"build": "storybook build -o dist",
|
|
13
14
|
"vite": "vite build",
|
|
14
|
-
"vitedev": "vite dev",
|
|
15
15
|
"version": "auto-changelog -p && git add CHANGELOG.md"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
@@ -23,18 +23,8 @@
|
|
|
23
23
|
"license": "ISC",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@needle-tools/gltf-progressive": "^3.3.5",
|
|
26
|
-
"@storybook/addon-essentials": "^8.0.6",
|
|
27
|
-
"@storybook/addon-links": "^8.0.6",
|
|
28
|
-
"@storybook/addon-mdx-gfm": "^8.0.6",
|
|
29
|
-
"@storybook/addon-themes": "^8.0.6",
|
|
30
|
-
"@storybook/blocks": "^8.0.6",
|
|
31
|
-
"@storybook/web-components": "^8.0.6",
|
|
32
|
-
"@storybook/web-components-vite": "^8.0.6",
|
|
33
26
|
"auto-changelog": "^2.4.0",
|
|
34
|
-
"
|
|
35
|
-
"react-dom": "^18.2.0",
|
|
36
|
-
"storybook": "^8.0.6",
|
|
37
|
-
"vite": "^5.1.6",
|
|
27
|
+
"vite": "5.1.6",
|
|
38
28
|
"vite-plugin-dts": "^3.7.3"
|
|
39
29
|
},
|
|
40
30
|
"resolutions": {
|
|
@@ -50,7 +40,6 @@
|
|
|
50
40
|
"bezier-js": "^6.1.4",
|
|
51
41
|
"eventemitter3": "^5.0.1",
|
|
52
42
|
"howler": "^2.2.4",
|
|
53
|
-
"lit": "^3.1.0",
|
|
54
43
|
"stats-fps.js": "0.0.6",
|
|
55
44
|
"stylus": "^0.63.0",
|
|
56
45
|
"terser": "^5.44.0",
|