@nyaruka/temba-components 0.33.3 → 0.33.5

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.
Files changed (61) hide show
  1. package/.github/workflows/build.yml +4 -5
  2. package/CHANGELOG.md +33 -3
  3. package/demo/index.html +1 -1
  4. package/dist/{7b0d8aca.js → 72be961a.js} +304 -78
  5. package/dist/index.js +304 -78
  6. package/dist/sw.js +1 -1
  7. package/dist/sw.js.map +1 -1
  8. package/dist/templates/components-body.html +1 -1
  9. package/dist/templates/components-head.html +1 -1
  10. package/out-tsc/src/FormElement.js +9 -6
  11. package/out-tsc/src/FormElement.js.map +1 -1
  12. package/out-tsc/src/contacts/ContactDetails.js +1 -1
  13. package/out-tsc/src/contacts/ContactDetails.js.map +1 -1
  14. package/out-tsc/src/contacts/ContactFields.js +6 -5
  15. package/out-tsc/src/contacts/ContactFields.js.map +1 -1
  16. package/out-tsc/src/contacts/ContactHistory.js +4 -4
  17. package/out-tsc/src/contacts/ContactHistory.js.map +1 -1
  18. package/out-tsc/src/fields/FieldManager.js +323 -0
  19. package/out-tsc/src/fields/FieldManager.js.map +1 -0
  20. package/out-tsc/src/interfaces.js +3 -0
  21. package/out-tsc/src/interfaces.js.map +1 -1
  22. package/out-tsc/src/list/SortableList.js +193 -0
  23. package/out-tsc/src/list/SortableList.js.map +1 -0
  24. package/out-tsc/src/store/Store.js +28 -17
  25. package/out-tsc/src/store/Store.js.map +1 -1
  26. package/out-tsc/src/store/StoreElement.js +1 -0
  27. package/out-tsc/src/store/StoreElement.js.map +1 -1
  28. package/out-tsc/src/vectoricon/index.js +7 -3
  29. package/out-tsc/src/vectoricon/index.js.map +1 -1
  30. package/out-tsc/temba-modules.js +4 -0
  31. package/out-tsc/temba-modules.js.map +1 -1
  32. package/out-tsc/test/temba-field-manager.test.js +47 -0
  33. package/out-tsc/test/temba-field-manager.test.js.map +1 -0
  34. package/out-tsc/test/temba-sortable-list.test.js +48 -0
  35. package/out-tsc/test/temba-sortable-list.test.js.map +1 -0
  36. package/out-tsc/test/temba-store.test.js +1 -1
  37. package/out-tsc/test/temba-store.test.js.map +1 -1
  38. package/package.json +1 -1
  39. package/screenshots/truth/list/fields-dragging.png +0 -0
  40. package/screenshots/truth/list/fields-filtered.png +0 -0
  41. package/screenshots/truth/list/fields-hovered.png +0 -0
  42. package/screenshots/truth/list/fields.png +0 -0
  43. package/screenshots/truth/list/sortable-dragging.png +0 -0
  44. package/screenshots/truth/list/sortable-dropped.png +0 -0
  45. package/screenshots/truth/list/sortable.png +0 -0
  46. package/src/FormElement.ts +9 -6
  47. package/src/contacts/ContactDetails.ts +1 -1
  48. package/src/contacts/ContactFields.ts +6 -5
  49. package/src/contacts/ContactHistory.ts +4 -4
  50. package/src/fields/FieldManager.ts +353 -0
  51. package/src/interfaces.ts +5 -1
  52. package/src/list/SortableList.ts +224 -0
  53. package/src/store/Store.ts +34 -21
  54. package/src/store/StoreElement.ts +1 -0
  55. package/src/vectoricon/index.ts +7 -3
  56. package/static/svg/index.pdf +274 -0
  57. package/temba-modules.ts +4 -0
  58. package/test/temba-field-manager.test.ts +60 -0
  59. package/test/temba-sortable-list.test.ts +58 -0
  60. package/test/temba-store.test.ts +1 -1
  61. package/test-assets/store/fields.json +50 -5
@@ -7,10 +7,9 @@ jobs:
7
7
  runs-on: macOS-11
8
8
  steps:
9
9
  - uses: actions/checkout@v1
10
- - name: Use Node.js 12.x
11
- uses: actions/setup-node@v1
10
+ - uses: actions/setup-node@v3
12
11
  with:
13
- node-version: 12
12
+ node-version: 16
14
13
  - name: Screenshot Tests
15
14
  run: |
16
15
  yarn install
@@ -23,7 +22,7 @@ jobs:
23
22
  name: screenshots
24
23
  path: screenshots/
25
24
  - name: Upload coverage to Codecov
26
- uses: codecov/codecov-action@v1.0.4
25
+ uses: codecov/codecov-action@v3
27
26
  with:
28
27
  token: ${{secrets.CODECOV_TOKEN}}
29
- file: coverage/lcov.info
28
+ files: coverage/lcov.info
package/CHANGELOG.md CHANGED
@@ -4,8 +4,26 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [v0.33.5](https://github.com/nyaruka/temba-components/compare/v0.33.4...v0.33.5)
8
+
9
+ - Workspace icon [`#221`](https://github.com/nyaruka/temba-components/pull/221)
10
+ - Update icons [`841c5bb`](https://github.com/nyaruka/temba-components/commit/841c5bbd8fcf76e6ee5f7662037beb22020a05f6)
11
+ - Change workspace icon [`b2c3d0e`](https://github.com/nyaruka/temba-components/commit/b2c3d0ed5f81564e8052556fcdb6efa18b1e8ad9)
12
+
13
+ #### [v0.33.4](https://github.com/nyaruka/temba-components/compare/v0.33.3...v0.33.4)
14
+
15
+ > 29 November 2022
16
+
17
+ - Switch to node 16 [`#219`](https://github.com/nyaruka/temba-components/pull/219)
18
+ - Add sortable and field manager [`#218`](https://github.com/nyaruka/temba-components/pull/218)
19
+ - Add tests for field manager [`291efb6`](https://github.com/nyaruka/temba-components/commit/291efb6c0a0beb3b949e984f87e74ec85267d05d)
20
+ - pinned to featured [`63a75f8`](https://github.com/nyaruka/temba-components/commit/63a75f85b3b14a42dabd322b41dd8ae765e948f8)
21
+ - Remove useless test [`43dccae`](https://github.com/nyaruka/temba-components/commit/43dccae2a0dea7625a511826885d5064a2e5c887)
22
+
7
23
  #### [v0.33.3](https://github.com/nyaruka/temba-components/compare/v0.33.2...v0.33.3)
8
24
 
25
+ > 21 November 2022
26
+
9
27
  - Tweak tab alignment, nicer hovers [`#216`](https://github.com/nyaruka/temba-components/pull/216)
10
28
  - Add link icon [`ae8d181`](https://github.com/nyaruka/temba-components/commit/ae8d181134287e11b6b11206e66eaa4df7cf41a0)
11
29
 
@@ -128,13 +146,19 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
128
146
  - Allow null labels [`ca6e105`](https://github.com/nyaruka/temba-components/commit/ca6e10560fa3ee2099043d26ae1a11c43610d29e)
129
147
  - Fix checkboxes with no label [`0587ed9`](https://github.com/nyaruka/temba-components/commit/0587ed9fb6fd1833d2b669d3b6e0f8cb9d710557)
130
148
 
131
- #### [v0.31.0](https://github.com/nyaruka/temba-components/compare/v0.29.3...v0.31.0)
149
+ #### [v0.31.0](https://github.com/nyaruka/temba-components/compare/v0.30.0...v0.31.0)
132
150
 
133
151
  > 23 August 2022
134
152
 
135
153
  - Add RunList component [`#191`](https://github.com/nyaruka/temba-components/pull/191)
136
154
  - fixed goofy checkbox label background hover [`#190`](https://github.com/nyaruka/temba-components/pull/190)
137
155
  - added trim for whitespace to remove goofy label background hover [`fd6ed1a`](https://github.com/nyaruka/temba-components/commit/fd6ed1aa961844d997376d025ff817725d63f1cb)
156
+
157
+ #### [v0.30.0](https://github.com/nyaruka/temba-components/compare/v0.29.3...v0.30.0)
158
+
159
+ > 23 August 2022
160
+
161
+ - Add RunList component [`4135992`](https://github.com/nyaruka/temba-components/commit/41359924c09ed0b75f73207e7f182bebb325b5e3)
138
162
  - Remove comment, tweak formatting [`f31ac4b`](https://github.com/nyaruka/temba-components/commit/f31ac4b423b38d0feaf59a05a254f8aac726f4da)
139
163
  - Reduce wait for screenshot a bit [`1ef77ae`](https://github.com/nyaruka/temba-components/commit/1ef77aecb941e2cc0442308e580aa6a55920d127)
140
164
 
@@ -685,13 +709,19 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
685
709
 
686
710
  - Create index build [`68cff93`](https://github.com/nyaruka/temba-components/commit/68cff937919ff4dec7a7764a9b60363d33f1209a)
687
711
 
688
- #### [v0.11.1](https://github.com/nyaruka/temba-components/compare/v0.10.3...v0.11.1)
712
+ #### [v0.11.1](https://github.com/nyaruka/temba-components/compare/v0.11.0...v0.11.1)
689
713
 
690
714
  > 27 April 2021
691
715
 
692
716
  - Revert "Create bundle index" [`94b11ca`](https://github.com/nyaruka/temba-components/commit/94b11caecf0004f53c75780720548e0f1240908d)
693
- - Create bundle index [`c39f230`](https://github.com/nyaruka/temba-components/commit/c39f2304271f2c437e87eab6918babe8191371de)
694
717
  - Revert "version" [`ea3cd27`](https://github.com/nyaruka/temba-components/commit/ea3cd27f218c970b8ef018275c05d0802bd202b2)
718
+ - version [`6a211a0`](https://github.com/nyaruka/temba-components/commit/6a211a0447d7f2c14954e8d9b97843daf8bca15b)
719
+
720
+ #### [v0.11.0](https://github.com/nyaruka/temba-components/compare/v0.10.3...v0.11.0)
721
+
722
+ > 27 April 2021
723
+
724
+ - Create bundle index [`c39f230`](https://github.com/nyaruka/temba-components/commit/c39f2304271f2c437e87eab6918babe8191371de)
695
725
 
696
726
  #### [v0.10.3](https://github.com/nyaruka/temba-components/compare/v0.10.2...v0.10.3)
697
727
 
package/demo/index.html CHANGED
@@ -148,7 +148,7 @@
148
148
 
149
149
  <div class="header">temba-components</div>
150
150
 
151
- <temba-tabs collapses index="1">
151
+ <temba-tabs collapses>
152
152
  <temba-tab name="Overview" icon="list">
153
153
  <div style="display:flex;flex-wrap: wrap;">
154
154