shop-components 0.1.17 → 0.1.19
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/device-viewer/amr.d.ts +1 -0
- package/dist/device-viewer/index.d.ts +1 -0
- package/dist/device-viewer/slot/slot-item.d.ts +6 -0
- package/dist/device-viewer/slot.d.ts +10 -0
- package/dist/shop-components.mjs +4173 -4078
- package/dist/shop-components.umd.js +149 -120
- package/package.json +1 -1
|
@@ -48,6 +48,7 @@ export declare class DeviceViewer extends LitElement {
|
|
|
48
48
|
changeShelfLevel: (e: any) => void;
|
|
49
49
|
changeAmrHeight: (e: any) => void;
|
|
50
50
|
changeAmrLevel: (e: any) => void;
|
|
51
|
+
changeAmrShelvesLevel: (e: any) => void;
|
|
51
52
|
changeGoodsSize: (e: any) => void;
|
|
52
53
|
changeColor: (s: Skin, value: string) => void;
|
|
53
54
|
selectLogo: (l: Logo) => void;
|
|
@@ -5,6 +5,7 @@ export interface SlotItemProps {
|
|
|
5
5
|
export declare class SlotItem extends LitElement {
|
|
6
6
|
props: SlotItemProps;
|
|
7
7
|
private _size;
|
|
8
|
+
private _showDialog;
|
|
8
9
|
static styles: import("lit").CSSResult;
|
|
9
10
|
constructor(props: SlotItemProps);
|
|
10
11
|
selected: boolean;
|
|
@@ -13,8 +14,13 @@ export declare class SlotItem extends LitElement {
|
|
|
13
14
|
hide: boolean;
|
|
14
15
|
disable: boolean;
|
|
15
16
|
filled: boolean;
|
|
17
|
+
allFunctions: string[];
|
|
18
|
+
functions: string[];
|
|
19
|
+
deviceName: string;
|
|
16
20
|
slot: any;
|
|
21
|
+
get hasMoreFunctions(): boolean;
|
|
17
22
|
onClick(e: MouseEvent): void;
|
|
18
23
|
setSize(size?: number): void;
|
|
24
|
+
addFunction(f: string): void;
|
|
19
25
|
protected render(): unknown;
|
|
20
26
|
}
|
|
@@ -24,6 +24,8 @@ export declare const SLOT_EVENTS: {
|
|
|
24
24
|
ON_DEVICE_SELECTED: string;
|
|
25
25
|
ON_DROP_ERROR: string;
|
|
26
26
|
ON_ERROR_STATE_CHANGE: string;
|
|
27
|
+
ON_FUNCTION_REMOVED: string;
|
|
28
|
+
ON_FUNCTION_ADDED: string;
|
|
27
29
|
};
|
|
28
30
|
export declare class Slot extends CSS2DObject {
|
|
29
31
|
private props;
|
|
@@ -39,6 +41,8 @@ export declare class Slot extends CSS2DObject {
|
|
|
39
41
|
private _loading;
|
|
40
42
|
private _selected;
|
|
41
43
|
private _deviceSelected;
|
|
44
|
+
private _allFunctions;
|
|
45
|
+
private _functions;
|
|
42
46
|
private _timer;
|
|
43
47
|
get hasDevice(): boolean;
|
|
44
48
|
deviceInfo: DeviceInfo | undefined;
|
|
@@ -49,6 +53,12 @@ export declare class Slot extends CSS2DObject {
|
|
|
49
53
|
install(info: DeviceInfo): Promise<void>;
|
|
50
54
|
getWP: (target: import("three").Vector3) => import("three").Vector3;
|
|
51
55
|
get device(): Object3D<import("three").Object3DEventMap> | null;
|
|
56
|
+
get allFunctions(): string[];
|
|
57
|
+
set allFunctions(fs: string[]);
|
|
58
|
+
get functions(): string[];
|
|
59
|
+
addFunction(f: string): void;
|
|
60
|
+
removeFunction(f: string): void;
|
|
61
|
+
addFunctions(fs: string[]): void;
|
|
52
62
|
changeName(name: string): void;
|
|
53
63
|
clearSlot(): void;
|
|
54
64
|
enable(): void;
|