@nyaruka/temba-components 0.39.0 → 0.40.0
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/CHANGELOG.md +17 -0
- package/dist/{9ac0723e.js → b885f7d6.js} +7 -34
- package/dist/index.js +7 -34
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/templates/components-body.html +1 -1
- package/dist/templates/components-head.html +1 -1
- package/out-tsc/src/contacts/ContactBadges.js +5 -5
- package/out-tsc/src/contacts/ContactBadges.js.map +1 -1
- package/out-tsc/src/list/TembaMenu.js +77 -168
- package/out-tsc/src/list/TembaMenu.js.map +1 -1
- package/out-tsc/src/utils/index.js +2 -0
- package/out-tsc/src/utils/index.js.map +1 -1
- package/out-tsc/src/vectoricon/index.js +2 -0
- package/out-tsc/src/vectoricon/index.js.map +1 -1
- package/out-tsc/test/temba-label.test.js +4 -4
- package/out-tsc/test/temba-label.test.js.map +1 -1
- package/out-tsc/test/temba-menu.test.js +58 -7
- package/out-tsc/test/temba-menu.test.js.map +1 -1
- package/package.json +1 -1
- package/screenshots/truth/label/custom.png +0 -0
- package/screenshots/truth/label/danger.png +0 -0
- package/screenshots/truth/label/default-icon.png +0 -0
- package/screenshots/truth/label/shadow.png +0 -0
- package/screenshots/truth/menu/menu-focus.png +0 -0
- package/screenshots/truth/menu/menu-focused-with items.png +0 -0
- package/screenshots/truth/menu/menu-refresh-1.png +0 -0
- package/screenshots/truth/menu/menu-refresh-2.png +0 -0
- package/screenshots/truth/menu/menu-root.png +0 -0
- package/screenshots/truth/menu/menu-submenu.png +0 -0
- package/screenshots/truth/menu/menu-tasks-nextup.png +0 -0
- package/screenshots/truth/menu/menu-tasks.png +0 -0
- package/src/contacts/ContactBadges.ts +5 -5
- package/src/list/TembaMenu.ts +89 -181
- package/src/utils/index.ts +3 -0
- package/src/vectoricon/index.ts +2 -0
- package/test/temba-label.test.ts +4 -4
- package/test/temba-menu.test.ts +73 -7
- package/test-assets/menu/menu-root.json +33 -0
- package/test-assets/menu/menu-schedule.json +21 -0
- package/test-assets/{list → menu}/menu-tasks.json +0 -0
- package/screenshots/truth/list/menu-root.png +0 -0
- package/screenshots/truth/list/menu-submenu.png +0 -0
- package/test-assets/list/menu-root.json +0 -17
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"next": null,
|
|
3
|
+
"previous": null,
|
|
4
|
+
"results": [
|
|
5
|
+
{
|
|
6
|
+
"id": "chooser",
|
|
7
|
+
"avatar": "My Account",
|
|
8
|
+
"popup": true,
|
|
9
|
+
"inline": false,
|
|
10
|
+
"bottom": false,
|
|
11
|
+
"items": [
|
|
12
|
+
{
|
|
13
|
+
"id": "account-other",
|
|
14
|
+
"avatar": "Other Account",
|
|
15
|
+
"name": "Other Account"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "tasks",
|
|
21
|
+
"name": "Tasks",
|
|
22
|
+
"icon": "coffee",
|
|
23
|
+
"endpoint": "/test-assets/menu/menu-tasks.json"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "schedule",
|
|
27
|
+
"name": "Schedule",
|
|
28
|
+
"icon": "calendar",
|
|
29
|
+
"endpoint": "/test-assets/menu/menu-schedule.json"
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"next": null,
|
|
3
|
+
"previous": null,
|
|
4
|
+
"results": [
|
|
5
|
+
{
|
|
6
|
+
"id": "Jan",
|
|
7
|
+
"name": "January",
|
|
8
|
+
"count": 23
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": "Feb",
|
|
12
|
+
"name": "February",
|
|
13
|
+
"count": 39
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"id": "Mar",
|
|
17
|
+
"name": "March",
|
|
18
|
+
"count": 17
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"next": null,
|
|
3
|
-
"previous": null,
|
|
4
|
-
"results": [
|
|
5
|
-
{
|
|
6
|
-
"id": "tasks",
|
|
7
|
-
"name": "Tasks",
|
|
8
|
-
"icon": "coffee",
|
|
9
|
-
"endpoint": "/test-assets/list/menu-tasks.json"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"id": "calendar",
|
|
13
|
-
"name": "Schedule",
|
|
14
|
-
"icon": "calendar"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|