@nyaruka/temba-components 0.58.0 → 0.58.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 (214) hide show
  1. package/.devcontainer/Dockerfile +14 -0
  2. package/.devcontainer/devcontainer.json +13 -0
  3. package/.dockerignore +1 -0
  4. package/.github/workflows/build.yml +16 -15
  5. package/.github/workflows/publish.yml +8 -9
  6. package/.yarnrc +1 -0
  7. package/.yarnrc.yml +5 -0
  8. package/CHANGELOG.md +37 -0
  9. package/README.md +0 -8
  10. package/dist/{3a61fd21.js → 98acdbde.js} +9 -4
  11. package/dist/index.js +9 -4
  12. package/dist/static/svg/index.svg +1 -1
  13. package/dist/sw.js +1 -1
  14. package/dist/sw.js.map +1 -1
  15. package/dist/templates/components-body.html +1 -1
  16. package/dist/templates/components-head.html +1 -1
  17. package/out-tsc/src/FormElement.js.map +1 -1
  18. package/out-tsc/src/fields/FieldManager.js +3 -1
  19. package/out-tsc/src/fields/FieldManager.js.map +1 -1
  20. package/out-tsc/src/label/Label.js +3 -0
  21. package/out-tsc/src/label/Label.js.map +1 -1
  22. package/out-tsc/src/store/Store.js +3 -0
  23. package/out-tsc/src/store/Store.js.map +1 -1
  24. package/out-tsc/src/vectoricon/index.js +3 -1
  25. package/out-tsc/src/vectoricon/index.js.map +1 -1
  26. package/out-tsc/test/temba-contact-details.test.js +1 -1
  27. package/out-tsc/test/temba-contact-details.test.js.map +1 -1
  28. package/out-tsc/test/temba-contact-history.test.js +1 -1
  29. package/out-tsc/test/temba-contact-history.test.js.map +1 -1
  30. package/out-tsc/test/utils.test.js.map +1 -1
  31. package/package.json +4 -5
  32. package/screenshots/truth/alert/error.png +0 -0
  33. package/screenshots/truth/alert/info.png +0 -0
  34. package/screenshots/truth/alert/warning.png +0 -0
  35. package/screenshots/truth/checkbox/checkbox-label-background-hover.png +0 -0
  36. package/screenshots/truth/checkbox/checkbox-no-label-no-background-hover.png +0 -0
  37. package/screenshots/truth/checkbox/checkbox-whitespace-label-no-background-hover.png +0 -0
  38. package/screenshots/truth/checkbox/checked.png +0 -0
  39. package/screenshots/truth/checkbox/default.png +0 -0
  40. package/screenshots/truth/colorpicker/default.png +0 -0
  41. package/screenshots/truth/colorpicker/focused.png +0 -0
  42. package/screenshots/truth/colorpicker/initialized.png +0 -0
  43. package/screenshots/truth/colorpicker/selected.png +0 -0
  44. package/screenshots/truth/compose/attachments-and-send-button.png +0 -0
  45. package/screenshots/truth/compose/attachments-no-send-button.png +0 -0
  46. package/screenshots/truth/compose/attachments-with-all-files-and-click-send.png +0 -0
  47. package/screenshots/truth/compose/attachments-with-all-files.png +0 -0
  48. package/screenshots/truth/compose/attachments-with-failure-files.png +0 -0
  49. package/screenshots/truth/compose/attachments-with-success-files-and-click-send.png +0 -0
  50. package/screenshots/truth/compose/attachments-with-success-files.png +0 -0
  51. package/screenshots/truth/compose/chatbox-attachments-counter-and-send-button.png +0 -0
  52. package/screenshots/truth/compose/chatbox-attachments-counter-no-send-button.png +0 -0
  53. package/screenshots/truth/compose/chatbox-attachments-no-counter-and-send-button.png +0 -0
  54. package/screenshots/truth/compose/chatbox-attachments-no-counter-no-send-button.png +0 -0
  55. package/screenshots/truth/compose/chatbox-counter-and-send-button.png +0 -0
  56. package/screenshots/truth/compose/chatbox-counter-no-send-button.png +0 -0
  57. package/screenshots/truth/compose/chatbox-no-counter-and-send-button.png +0 -0
  58. package/screenshots/truth/compose/chatbox-no-counter-no-send-button.png +0 -0
  59. package/screenshots/truth/compose/chatbox-no-text-attachments-with-all-files-and-click-send.png +0 -0
  60. package/screenshots/truth/compose/chatbox-no-text-attachments-with-all-files.png +0 -0
  61. package/screenshots/truth/compose/chatbox-no-text-attachments-with-failure-files.png +0 -0
  62. package/screenshots/truth/compose/chatbox-no-text-attachments-with-success-files-and-click-send.png +0 -0
  63. package/screenshots/truth/compose/chatbox-no-text-attachments-with-success-files.png +0 -0
  64. package/screenshots/truth/compose/chatbox-with-text-and-click-send.png +0 -0
  65. package/screenshots/truth/compose/chatbox-with-text-and-hit-enter.png +0 -0
  66. package/screenshots/truth/compose/chatbox-with-text-and-spaces.png +0 -0
  67. package/screenshots/truth/compose/chatbox-with-text-and-url.png +0 -0
  68. package/screenshots/truth/compose/chatbox-with-text-attachments-no-files-and-click-send.png +0 -0
  69. package/screenshots/truth/compose/chatbox-with-text-attachments-no-files-and-hit-enter.png +0 -0
  70. package/screenshots/truth/compose/chatbox-with-text-attachments-no-files.png +0 -0
  71. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files-and-click-send.png +0 -0
  72. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files-and-hit-enter.png +0 -0
  73. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files.png +0 -0
  74. package/screenshots/truth/compose/chatbox-with-text-attachments-with-failure-files.png +0 -0
  75. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files-and-click-send.png +0 -0
  76. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files-and-hit-enter.png +0 -0
  77. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files.png +0 -0
  78. package/screenshots/truth/compose/chatbox-with-text-no-spaces.png +0 -0
  79. package/screenshots/truth/compose/chatbox-with-text.png +0 -0
  80. package/screenshots/truth/contacts/badges.png +0 -0
  81. package/screenshots/truth/contacts/compose-attachments-no-text-failure.png +0 -0
  82. package/screenshots/truth/contacts/compose-attachments-no-text-success.png +0 -0
  83. package/screenshots/truth/contacts/compose-text-and-attachments-failure-attachments.png +0 -0
  84. package/screenshots/truth/contacts/compose-text-and-attachments-failure-generic.png +0 -0
  85. package/screenshots/truth/contacts/compose-text-and-attachments-failure-text-and-attachments.png +0 -0
  86. package/screenshots/truth/contacts/compose-text-and-attachments-failure-text.png +0 -0
  87. package/screenshots/truth/contacts/compose-text-and-attachments-success.png +0 -0
  88. package/screenshots/truth/contacts/compose-text-no-attachments-failure.png +0 -0
  89. package/screenshots/truth/contacts/compose-text-no-attachments-success.png +0 -0
  90. package/screenshots/truth/contacts/contact-active-default.png +0 -0
  91. package/screenshots/truth/contacts/contact-active-show-chatbox.png +0 -0
  92. package/screenshots/truth/contacts/contact-archived-hide-chatbox.png +0 -0
  93. package/screenshots/truth/contacts/contact-blocked-hide-chatbox.png +0 -0
  94. package/screenshots/truth/contacts/contact-stopped-hide-chatbox.png +0 -0
  95. package/screenshots/truth/contacts/details.png +0 -0
  96. package/screenshots/truth/contacts/fields-updated.png +0 -0
  97. package/screenshots/truth/contacts/fields.png +0 -0
  98. package/screenshots/truth/contacts/history.png +0 -0
  99. package/screenshots/truth/contacts/tickets-assignment.png +0 -0
  100. package/screenshots/truth/contacts/tickets.png +0 -0
  101. package/screenshots/truth/content-menu/button-no-items.png +0 -0
  102. package/screenshots/truth/content-menu/item-no-buttons.png +0 -0
  103. package/screenshots/truth/content-menu/items-and-buttons.png +0 -0
  104. package/screenshots/truth/counter/summary.png +0 -0
  105. package/screenshots/truth/counter/text.png +0 -0
  106. package/screenshots/truth/counter/unicode-variables.png +0 -0
  107. package/screenshots/truth/counter/unicode.png +0 -0
  108. package/screenshots/truth/counter/variable.png +0 -0
  109. package/screenshots/truth/date/date.png +0 -0
  110. package/screenshots/truth/date/datetime.png +0 -0
  111. package/screenshots/truth/date/duration.png +0 -0
  112. package/screenshots/truth/datepicker/date-truncated-time.png +0 -0
  113. package/screenshots/truth/datepicker/date.png +0 -0
  114. package/screenshots/truth/datepicker/datetime.png +0 -0
  115. package/screenshots/truth/datepicker/initial-timezone.png +0 -0
  116. package/screenshots/truth/datepicker/initial-value.png +0 -0
  117. package/screenshots/truth/datepicker/updated-keyboard-date.png +0 -0
  118. package/screenshots/truth/datepicker/updated-keyboard.png +0 -0
  119. package/screenshots/truth/dialog/focused.png +0 -0
  120. package/screenshots/truth/label/custom.png +0 -0
  121. package/screenshots/truth/label/danger.png +0 -0
  122. package/screenshots/truth/label/dark.png +0 -0
  123. package/screenshots/truth/label/default-icon.png +0 -0
  124. package/screenshots/truth/label/no-icon.png +0 -0
  125. package/screenshots/truth/label/primary.png +0 -0
  126. package/screenshots/truth/label/secondary.png +0 -0
  127. package/screenshots/truth/label/shadow.png +0 -0
  128. package/screenshots/truth/label/tertiary.png +0 -0
  129. package/screenshots/truth/lightbox/img-zoomed.png +0 -0
  130. package/screenshots/truth/lightbox/img.png +0 -0
  131. package/screenshots/truth/list/fields-dragging.png +0 -0
  132. package/screenshots/truth/list/fields-filtered.png +0 -0
  133. package/screenshots/truth/list/fields-hovered.png +0 -0
  134. package/screenshots/truth/list/fields.png +0 -0
  135. package/screenshots/truth/list/items-selected.png +0 -0
  136. package/screenshots/truth/list/items-updated.png +0 -0
  137. package/screenshots/truth/list/items.png +0 -0
  138. package/screenshots/truth/list/sortable-dragging.png +0 -0
  139. package/screenshots/truth/list/sortable-dropped.png +0 -0
  140. package/screenshots/truth/list/sortable.png +0 -0
  141. package/screenshots/truth/menu/menu-focused-with items.png +0 -0
  142. package/screenshots/truth/menu/menu-refresh-1.png +0 -0
  143. package/screenshots/truth/menu/menu-refresh-2.png +0 -0
  144. package/screenshots/truth/menu/menu-root.png +0 -0
  145. package/screenshots/truth/menu/menu-submenu.png +0 -0
  146. package/screenshots/truth/menu/menu-tasks-nextup.png +0 -0
  147. package/screenshots/truth/menu/menu-tasks.png +0 -0
  148. package/screenshots/truth/modax/form.png +0 -0
  149. package/screenshots/truth/modax/simple.png +0 -0
  150. package/screenshots/truth/options/block.png +0 -0
  151. package/screenshots/truth/select/disabled-multi-selection.png +0 -0
  152. package/screenshots/truth/select/disabled-selection.png +0 -0
  153. package/screenshots/truth/select/disabled.png +0 -0
  154. package/screenshots/truth/select/embedded.png +0 -0
  155. package/screenshots/truth/select/expression-selected.png +0 -0
  156. package/screenshots/truth/select/expressions.png +0 -0
  157. package/screenshots/truth/select/functions.png +0 -0
  158. package/screenshots/truth/select/local-options.png +0 -0
  159. package/screenshots/truth/select/remote-options.png +0 -0
  160. package/screenshots/truth/select/search-enabled.png +0 -0
  161. package/screenshots/truth/select/search-multi-no-matches.png +0 -0
  162. package/screenshots/truth/select/search-selected-focus.png +0 -0
  163. package/screenshots/truth/select/search-selected.png +0 -0
  164. package/screenshots/truth/select/search-with-selected.png +0 -0
  165. package/screenshots/truth/select/searching.png +0 -0
  166. package/screenshots/truth/select/selected-multi.png +0 -0
  167. package/screenshots/truth/select/selected-single.png +0 -0
  168. package/screenshots/truth/select/selection-clearable.png +0 -0
  169. package/screenshots/truth/select/truncated-selection.png +0 -0
  170. package/screenshots/truth/select/with-placeholder.png +0 -0
  171. package/screenshots/truth/select/without-placeholder.png +0 -0
  172. package/screenshots/truth/slider/custom-min-custom-max-valid-value.png +0 -0
  173. package/screenshots/truth/slider/custom-min-default-max-no-value.png +0 -0
  174. package/screenshots/truth/slider/default-min-custom-max-no-value.png +0 -0
  175. package/screenshots/truth/slider/default-min-default-max-invalid-value.png +0 -0
  176. package/screenshots/truth/slider/default-min-default-max-valid-value.png +0 -0
  177. package/screenshots/truth/slider/default.png +0 -0
  178. package/screenshots/truth/slider/no-visible-range-invalid-value.png +0 -0
  179. package/screenshots/truth/slider/no-visible-range-no-value.png +0 -0
  180. package/screenshots/truth/slider/no-visible-range-valid-value.png +0 -0
  181. package/screenshots/truth/slider/update-slider-on-circle-dragged.png +0 -0
  182. package/screenshots/truth/slider/update-slider-on-track-clicked.png +0 -0
  183. package/screenshots/truth/slider/update-slider-on-value-change.png +0 -0
  184. package/screenshots/truth/textinput/input-disabled.png +0 -0
  185. package/screenshots/truth/textinput/input-focused.png +0 -0
  186. package/screenshots/truth/textinput/input-form.png +0 -0
  187. package/screenshots/truth/textinput/input-inserted.png +0 -0
  188. package/screenshots/truth/textinput/input-placeholder.png +0 -0
  189. package/screenshots/truth/textinput/input-updated.png +0 -0
  190. package/screenshots/truth/textinput/input.png +0 -0
  191. package/screenshots/truth/textinput/textarea-focused.png +0 -0
  192. package/screenshots/truth/textinput/textarea.png +0 -0
  193. package/screenshots/truth/tip/bottom.png +0 -0
  194. package/screenshots/truth/tip/left.png +0 -0
  195. package/screenshots/truth/tip/right.png +0 -0
  196. package/screenshots/truth/tip/top.png +0 -0
  197. package/src/FormElement.ts +0 -1
  198. package/src/fields/FieldManager.ts +3 -1
  199. package/src/label/Label.ts +3 -0
  200. package/src/store/Store.ts +4 -0
  201. package/src/vectoricon/index.ts +3 -1
  202. package/static/css/temba-components.css +41 -41
  203. package/static/svg/index.svg +1 -1
  204. package/static/svg/work/traced/dots-grid.svg +1 -0
  205. package/static/svg/work/traced/layers-three-01.svg +1 -0
  206. package/static/svg/work/used/dots-grid.svg +11 -0
  207. package/static/svg/work/used/layers-three-01.svg +3 -0
  208. package/test/temba-contact-details.test.ts +2 -1
  209. package/test/temba-contact-history.test.ts +1 -1
  210. package/test/utils.test.ts +1 -0
  211. package/test-assets/style.css +53 -33
  212. package/web-test-runner.config.mjs +21 -17
  213. package/screenshots/truth/contact-search/manual-search.png +0 -0
  214. package/screenshots/truth/contact-search/missing-group.png +0 -0
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -35,7 +35,6 @@ export class FormElement extends RapidElement {
35
35
 
36
36
  @property({ type: Boolean })
37
37
  disabled = false;
38
-
39
38
  static formAssociated = true;
40
39
 
41
40
  protected internals: ElementInternals;
@@ -279,7 +279,9 @@ export class FieldManager extends StoreElement {
279
279
  : null}
280
280
  <div class="flex-grow:1"></div>
281
281
  </div>
282
- <div style="flex-grow:1; font-family: monospace; font-size:0.8em;">
282
+ <div
283
+ style="flex-grow:1; font-family: Roboto Mono, monospace; font-size:0.8em;"
284
+ >
283
285
  @fields.${field.key}
284
286
  </div>
285
287
  <div>${TYPE_NAMES[field.value_type]}</div>
@@ -12,6 +12,9 @@ export default class Label extends LitElement {
12
12
 
13
13
  slot {
14
14
  white-space: nowrap;
15
+ overflow-x: hidden;
16
+ text-overflow: ellipsis;
17
+ display: block;
15
18
  }
16
19
 
17
20
  .mask {
@@ -323,6 +323,10 @@ export class Store extends RapidElement {
323
323
  const group = this.groups[uuid];
324
324
  // we treat missing groups as dynamic since the
325
325
  // api excludes initializing groups
326
+ if (!group) {
327
+ console.warn('No group for ' + uuid);
328
+ }
329
+
326
330
  if (!group || group.query) {
327
331
  return true;
328
332
  }
@@ -1,5 +1,5 @@
1
1
  // for cache busting we dynamically generate a fingerprint, use yarn svg to update
2
- export const SVG_FINGERPRINT = '9e7047ba4e3340690cde2911fc99dbeb';
2
+ export const SVG_FINGERPRINT = 'fd046809342c62aaccb61aa8a97f7eba';
3
3
 
4
4
  // only icons below are included in the sprite sheet
5
5
  export enum Icon {
@@ -98,6 +98,7 @@ export enum Icon {
98
98
  flow_user = 'hard-drive',
99
99
  flows = 'flow',
100
100
  global = 'at-sign',
101
+ grid = 'dots-grid',
101
102
  group = 'users-01',
102
103
  group_smart = 'atom-01',
103
104
  help = 'help-circle',
@@ -105,6 +106,7 @@ export enum Icon {
105
106
  image = 'image-01',
106
107
  inbox = 'inbox-01',
107
108
  incoming_call = 'phone-incoming-01',
109
+ integrations = 'layers-three-01',
108
110
  info = 'user-square',
109
111
  label = 'tag-01',
110
112
  language = 'translate-01',