@nyaruka/temba-components 0.33.3 → 0.33.4

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 +21 -5
  3. package/demo/index.html +1 -1
  4. package/dist/{7b0d8aca.js → a374554b.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 +3 -0
  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 +3 -0
  56. package/static/svg/index.pdf +137 -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,10 +4,14 @@ 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.3](https://github.com/nyaruka/temba-components/compare/v0.33.2...v0.33.3)
7
+ #### [v0.33.4](https://github.com/nyaruka/temba-components/compare/v0.33.2...v0.33.4)
8
8
 
9
+ - Switch to node 16 [`#219`](https://github.com/nyaruka/temba-components/pull/219)
10
+ - Add sortable and field manager [`#218`](https://github.com/nyaruka/temba-components/pull/218)
9
11
  - Tweak tab alignment, nicer hovers [`#216`](https://github.com/nyaruka/temba-components/pull/216)
10
- - Add link icon [`ae8d181`](https://github.com/nyaruka/temba-components/commit/ae8d181134287e11b6b11206e66eaa4df7cf41a0)
12
+ - Add tests for field manager [`291efb6`](https://github.com/nyaruka/temba-components/commit/291efb6c0a0beb3b949e984f87e74ec85267d05d)
13
+ - pinned to featured [`63a75f8`](https://github.com/nyaruka/temba-components/commit/63a75f85b3b14a42dabd322b41dd8ae765e948f8)
14
+ - Remove useless test [`43dccae`](https://github.com/nyaruka/temba-components/commit/43dccae2a0dea7625a511826885d5064a2e5c887)
11
15
 
12
16
  #### [v0.33.2](https://github.com/nyaruka/temba-components/compare/v0.33.1...v0.33.2)
13
17
 
@@ -128,13 +132,19 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
128
132
  - Allow null labels [`ca6e105`](https://github.com/nyaruka/temba-components/commit/ca6e10560fa3ee2099043d26ae1a11c43610d29e)
129
133
  - Fix checkboxes with no label [`0587ed9`](https://github.com/nyaruka/temba-components/commit/0587ed9fb6fd1833d2b669d3b6e0f8cb9d710557)
130
134
 
131
- #### [v0.31.0](https://github.com/nyaruka/temba-components/compare/v0.29.3...v0.31.0)
135
+ #### [v0.31.0](https://github.com/nyaruka/temba-components/compare/v0.30.0...v0.31.0)
132
136
 
133
137
  > 23 August 2022
134
138
 
135
139
  - Add RunList component [`#191`](https://github.com/nyaruka/temba-components/pull/191)
136
140
  - fixed goofy checkbox label background hover [`#190`](https://github.com/nyaruka/temba-components/pull/190)
137
141
  - added trim for whitespace to remove goofy label background hover [`fd6ed1a`](https://github.com/nyaruka/temba-components/commit/fd6ed1aa961844d997376d025ff817725d63f1cb)
142
+
143
+ #### [v0.30.0](https://github.com/nyaruka/temba-components/compare/v0.29.3...v0.30.0)
144
+
145
+ > 23 August 2022
146
+
147
+ - Add RunList component [`4135992`](https://github.com/nyaruka/temba-components/commit/41359924c09ed0b75f73207e7f182bebb325b5e3)
138
148
  - Remove comment, tweak formatting [`f31ac4b`](https://github.com/nyaruka/temba-components/commit/f31ac4b423b38d0feaf59a05a254f8aac726f4da)
139
149
  - Reduce wait for screenshot a bit [`1ef77ae`](https://github.com/nyaruka/temba-components/commit/1ef77aecb941e2cc0442308e580aa6a55920d127)
140
150
 
@@ -685,13 +695,19 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
685
695
 
686
696
  - Create index build [`68cff93`](https://github.com/nyaruka/temba-components/commit/68cff937919ff4dec7a7764a9b60363d33f1209a)
687
697
 
688
- #### [v0.11.1](https://github.com/nyaruka/temba-components/compare/v0.10.3...v0.11.1)
698
+ #### [v0.11.1](https://github.com/nyaruka/temba-components/compare/v0.11.0...v0.11.1)
689
699
 
690
700
  > 27 April 2021
691
701
 
692
702
  - 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
703
  - Revert "version" [`ea3cd27`](https://github.com/nyaruka/temba-components/commit/ea3cd27f218c970b8ef018275c05d0802bd202b2)
704
+ - version [`6a211a0`](https://github.com/nyaruka/temba-components/commit/6a211a0447d7f2c14954e8d9b97843daf8bca15b)
705
+
706
+ #### [v0.11.0](https://github.com/nyaruka/temba-components/compare/v0.10.3...v0.11.0)
707
+
708
+ > 27 April 2021
709
+
710
+ - Create bundle index [`c39f230`](https://github.com/nyaruka/temba-components/commit/c39f2304271f2c437e87eab6918babe8191371de)
695
711
 
696
712
  #### [v0.10.3](https://github.com/nyaruka/temba-components/compare/v0.10.2...v0.10.3)
697
713
 
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