@htmlbricks/hb-tooltip 0.62.1 → 0.62.3
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/main.iife.js +10 -313
- package/main.iife.js.map +1 -1
- package/manifest.json +35 -3
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +5 -2
- package/types/webcomponent.type.d.ts +7 -3
- package/types/webcomponent_events.type.d.json +21 -0
package/manifest.json
CHANGED
|
@@ -6,6 +6,27 @@
|
|
|
6
6
|
"definitions": {
|
|
7
7
|
"Events": {
|
|
8
8
|
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"visualizationChange": {
|
|
11
|
+
"additionalProperties": false,
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"show": {
|
|
17
|
+
"type": "boolean"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"id",
|
|
22
|
+
"show"
|
|
23
|
+
],
|
|
24
|
+
"type": "object"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": [
|
|
28
|
+
"visualizationChange"
|
|
29
|
+
],
|
|
9
30
|
"type": "object"
|
|
10
31
|
}
|
|
11
32
|
}
|
|
@@ -20,13 +41,16 @@
|
|
|
20
41
|
"id": {
|
|
21
42
|
"type": "string"
|
|
22
43
|
},
|
|
44
|
+
"show": {
|
|
45
|
+
"type": "boolean"
|
|
46
|
+
},
|
|
23
47
|
"style": {
|
|
24
48
|
"type": "string"
|
|
25
49
|
},
|
|
26
50
|
"tooltip": {
|
|
27
51
|
"anyOf": [
|
|
28
52
|
{
|
|
29
|
-
"$ref": "#/definitions/
|
|
53
|
+
"$ref": "#/definitions/TTooltip"
|
|
30
54
|
},
|
|
31
55
|
{
|
|
32
56
|
"type": "string"
|
|
@@ -36,7 +60,7 @@
|
|
|
36
60
|
},
|
|
37
61
|
"type": "object"
|
|
38
62
|
},
|
|
39
|
-
"
|
|
63
|
+
"TTooltip": {
|
|
40
64
|
"additionalProperties": false,
|
|
41
65
|
"properties": {
|
|
42
66
|
"animation": {
|
|
@@ -160,6 +184,14 @@
|
|
|
160
184
|
"control": {
|
|
161
185
|
"type": "object"
|
|
162
186
|
}
|
|
187
|
+
},
|
|
188
|
+
"show": {
|
|
189
|
+
"control": {
|
|
190
|
+
"type": "boolean"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"visualizationChange": {
|
|
194
|
+
"action": "visualizationChange"
|
|
163
195
|
}
|
|
164
196
|
},
|
|
165
197
|
"styleSetup": {
|
|
@@ -235,5 +267,5 @@
|
|
|
235
267
|
"size": {},
|
|
236
268
|
"iifePath": "main.iife.js",
|
|
237
269
|
"repoName": "@htmlbricks/hb-tooltip",
|
|
238
|
-
"version": "0.62.
|
|
270
|
+
"version": "0.62.3"
|
|
239
271
|
}
|
package/package.json
CHANGED
|
@@ -8,13 +8,16 @@
|
|
|
8
8
|
"id": {
|
|
9
9
|
"type": "string"
|
|
10
10
|
},
|
|
11
|
+
"show": {
|
|
12
|
+
"type": "boolean"
|
|
13
|
+
},
|
|
11
14
|
"style": {
|
|
12
15
|
"type": "string"
|
|
13
16
|
},
|
|
14
17
|
"tooltip": {
|
|
15
18
|
"anyOf": [
|
|
16
19
|
{
|
|
17
|
-
"$ref": "#/definitions/
|
|
20
|
+
"$ref": "#/definitions/TTooltip"
|
|
18
21
|
},
|
|
19
22
|
{
|
|
20
23
|
"type": "string"
|
|
@@ -24,7 +27,7 @@
|
|
|
24
27
|
},
|
|
25
28
|
"type": "object"
|
|
26
29
|
},
|
|
27
|
-
"
|
|
30
|
+
"TTooltip": {
|
|
28
31
|
"additionalProperties": false,
|
|
29
32
|
"properties": {
|
|
30
33
|
"animation": {
|
|
@@ -9,7 +9,7 @@ export interface TooltipStyle {
|
|
|
9
9
|
disableDefaultStyle?: boolean;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export interface
|
|
12
|
+
export interface TTooltip {
|
|
13
13
|
title: string;
|
|
14
14
|
placement?: "auto" | "top" | "bottom" | "left" | "right";
|
|
15
15
|
animation?: boolean;
|
|
@@ -32,7 +32,11 @@ export interface Tooltip {
|
|
|
32
32
|
export type Component = {
|
|
33
33
|
id?: string;
|
|
34
34
|
style?: string;
|
|
35
|
-
tooltip?:
|
|
35
|
+
tooltip?: TTooltip | string;
|
|
36
|
+
show?: boolean;
|
|
36
37
|
};
|
|
37
38
|
|
|
38
|
-
export type Events = {
|
|
39
|
+
export type Events = {
|
|
40
|
+
visualizationChange: { id: string, show: boolean };
|
|
41
|
+
|
|
42
|
+
};
|
|
@@ -4,6 +4,27 @@
|
|
|
4
4
|
"definitions": {
|
|
5
5
|
"Events": {
|
|
6
6
|
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"visualizationChange": {
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"id": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"show": {
|
|
15
|
+
"type": "boolean"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"id",
|
|
20
|
+
"show"
|
|
21
|
+
],
|
|
22
|
+
"type": "object"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"visualizationChange"
|
|
27
|
+
],
|
|
7
28
|
"type": "object"
|
|
8
29
|
}
|
|
9
30
|
}
|