@nyaruka/temba-components 0.102.2 → 0.103.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.
Files changed (107) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/temba-components.js +137 -35
  3. package/dist/temba-components.js.map +1 -1
  4. package/out-tsc/src/contacts/ContactChat.js +1 -1
  5. package/out-tsc/src/contacts/ContactChat.js.map +1 -1
  6. package/out-tsc/src/contacts/ContactFields.js +5 -0
  7. package/out-tsc/src/contacts/ContactFields.js.map +1 -1
  8. package/out-tsc/src/contacts/ContactNotepad.js +129 -0
  9. package/out-tsc/src/contacts/ContactNotepad.js.map +1 -0
  10. package/out-tsc/src/contacts/ContactPending.js +7 -2
  11. package/out-tsc/src/contacts/ContactPending.js.map +1 -1
  12. package/out-tsc/src/contacts/ContactStoreElement.js +11 -2
  13. package/out-tsc/src/contacts/ContactStoreElement.js.map +1 -1
  14. package/out-tsc/src/contacts/ContactTickets.js +7 -2
  15. package/out-tsc/src/contacts/ContactTickets.js.map +1 -1
  16. package/out-tsc/src/contacts/helpers.js +3 -0
  17. package/out-tsc/src/contacts/helpers.js.map +1 -1
  18. package/out-tsc/src/fields/FieldManager.js +2 -2
  19. package/out-tsc/src/fields/FieldManager.js.map +1 -1
  20. package/out-tsc/src/flow/FlowStoreElement.js +2 -2
  21. package/out-tsc/src/flow/FlowStoreElement.js.map +1 -1
  22. package/out-tsc/src/interfaces.js +1 -0
  23. package/out-tsc/src/interfaces.js.map +1 -1
  24. package/out-tsc/src/list/TembaMenu.js +10 -0
  25. package/out-tsc/src/list/TembaMenu.js.map +1 -1
  26. package/out-tsc/src/store/{StoreElement.js → EndpointMonitorElement.js} +5 -5
  27. package/out-tsc/src/store/EndpointMonitorElement.js.map +1 -0
  28. package/out-tsc/src/store/Store.js +22 -0
  29. package/out-tsc/src/store/Store.js.map +1 -1
  30. package/out-tsc/src/store/StoreMonitorElement.js +22 -0
  31. package/out-tsc/src/store/StoreMonitorElement.js.map +1 -1
  32. package/out-tsc/src/tabpane/Tab.js +33 -0
  33. package/out-tsc/src/tabpane/Tab.js.map +1 -1
  34. package/out-tsc/src/tabpane/TabPane.js +53 -15
  35. package/out-tsc/src/tabpane/TabPane.js.map +1 -1
  36. package/out-tsc/src/vectoricon/index.js +1 -0
  37. package/out-tsc/src/vectoricon/index.js.map +1 -1
  38. package/out-tsc/temba-modules.js +2 -0
  39. package/out-tsc/temba-modules.js.map +1 -1
  40. package/package.json +1 -1
  41. package/screenshots/truth/compose/attachments-and-send-button.png +0 -0
  42. package/screenshots/truth/compose/attachments-no-send-button.png +0 -0
  43. package/screenshots/truth/compose/attachments-with-all-files-and-click-send.png +0 -0
  44. package/screenshots/truth/compose/attachments-with-all-files.png +0 -0
  45. package/screenshots/truth/compose/attachments-with-failure-files.png +0 -0
  46. package/screenshots/truth/compose/attachments-with-success-files-and-click-send.png +0 -0
  47. package/screenshots/truth/compose/attachments-with-success-files.png +0 -0
  48. package/screenshots/truth/compose/chatbox-attachments-counter-and-send-button.png +0 -0
  49. package/screenshots/truth/compose/chatbox-attachments-counter-no-send-button.png +0 -0
  50. package/screenshots/truth/compose/chatbox-attachments-no-counter-and-send-button.png +0 -0
  51. package/screenshots/truth/compose/chatbox-attachments-no-counter-no-send-button.png +0 -0
  52. package/screenshots/truth/compose/chatbox-counter-and-send-button.png +0 -0
  53. package/screenshots/truth/compose/chatbox-counter-no-send-button.png +0 -0
  54. package/screenshots/truth/compose/chatbox-no-counter-and-send-button.png +0 -0
  55. package/screenshots/truth/compose/chatbox-no-counter-no-send-button.png +0 -0
  56. package/screenshots/truth/compose/chatbox-no-text-attachments-with-all-files-and-click-send.png +0 -0
  57. package/screenshots/truth/compose/chatbox-no-text-attachments-with-all-files.png +0 -0
  58. package/screenshots/truth/compose/chatbox-no-text-attachments-with-failure-files.png +0 -0
  59. package/screenshots/truth/compose/chatbox-no-text-attachments-with-success-files-and-click-send.png +0 -0
  60. package/screenshots/truth/compose/chatbox-no-text-attachments-with-success-files.png +0 -0
  61. package/screenshots/truth/compose/chatbox-with-text-and-click-send.png +0 -0
  62. package/screenshots/truth/compose/chatbox-with-text-and-hit-enter.png +0 -0
  63. package/screenshots/truth/compose/chatbox-with-text-and-spaces.png +0 -0
  64. package/screenshots/truth/compose/chatbox-with-text-and-url.png +0 -0
  65. package/screenshots/truth/compose/chatbox-with-text-attachments-no-files-and-click-send.png +0 -0
  66. package/screenshots/truth/compose/chatbox-with-text-attachments-no-files-and-hit-enter.png +0 -0
  67. package/screenshots/truth/compose/chatbox-with-text-attachments-no-files.png +0 -0
  68. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files-and-click-send.png +0 -0
  69. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files-and-hit-enter.png +0 -0
  70. package/screenshots/truth/compose/chatbox-with-text-attachments-with-all-files.png +0 -0
  71. package/screenshots/truth/compose/chatbox-with-text-attachments-with-failure-files.png +0 -0
  72. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files-and-click-send.png +0 -0
  73. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files-and-hit-enter.png +0 -0
  74. package/screenshots/truth/compose/chatbox-with-text-attachments-with-success-files.png +0 -0
  75. package/screenshots/truth/compose/chatbox-with-text-no-spaces.png +0 -0
  76. package/screenshots/truth/compose/chatbox-with-text.png +0 -0
  77. package/screenshots/truth/contacts/compose-attachments-no-text-failure.png +0 -0
  78. package/screenshots/truth/contacts/compose-attachments-no-text-success.png +0 -0
  79. package/screenshots/truth/contacts/compose-text-and-attachments-failure-attachments.png +0 -0
  80. package/screenshots/truth/contacts/compose-text-and-attachments-failure-generic.png +0 -0
  81. package/screenshots/truth/contacts/compose-text-and-attachments-failure-text-and-attachments.png +0 -0
  82. package/screenshots/truth/contacts/compose-text-and-attachments-failure-text.png +0 -0
  83. package/screenshots/truth/contacts/compose-text-and-attachments-success.png +0 -0
  84. package/screenshots/truth/contacts/compose-text-no-attachments-failure.png +0 -0
  85. package/screenshots/truth/contacts/compose-text-no-attachments-success.png +0 -0
  86. package/screenshots/truth/contacts/contact-active-default.png +0 -0
  87. package/screenshots/truth/contacts/contact-active-show-chatbox.png +0 -0
  88. package/src/contacts/ContactChat.ts +1 -2
  89. package/src/contacts/ContactFields.ts +7 -0
  90. package/src/contacts/ContactNotepad.ts +133 -0
  91. package/src/contacts/ContactPending.ts +8 -2
  92. package/src/contacts/ContactStoreElement.ts +12 -2
  93. package/src/contacts/ContactTickets.ts +9 -2
  94. package/src/contacts/helpers.ts +5 -1
  95. package/src/fields/FieldManager.ts +2 -2
  96. package/src/flow/FlowStoreElement.ts +2 -2
  97. package/src/interfaces.ts +13 -1
  98. package/src/list/TembaMenu.ts +12 -0
  99. package/src/store/{StoreElement.ts → EndpointMonitorElement.ts} +1 -4
  100. package/src/store/Store.ts +31 -0
  101. package/src/store/StoreMonitorElement.ts +24 -0
  102. package/src/tabpane/Tab.ts +29 -0
  103. package/src/tabpane/TabPane.ts +54 -15
  104. package/src/vectoricon/index.ts +1 -0
  105. package/temba-modules.ts +2 -0
  106. package/out-tsc/src/store/StoreElement.js.map +0 -1
  107. package/screenshots/truth/contacts/history.png +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/vectoricon/index.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,kFAAkF;AAClF,MAAM,CAAC,MAAM,eAAe,GAAG,kCAAkC,CAAC;AAElE,oDAAoD;AACpD,MAAM,CAAN,IAAY,IA0PX;AA1PD,WAAY,IAAI;IACd,sCAA8B,CAAA;IAC9B,2BAAmB,CAAA;IACnB,uBAAe,CAAA;IACf,oBAAY,CAAA;IACZ,4BAAoB,CAAA;IACpB,gCAAwB,CAAA;IACxB,kCAA0B,CAAA;IAC1B,2BAAmB,CAAA;IACnB,+BAAuB,CAAA;IACvB,mCAA2B,CAAA;IAC3B,mCAA2B,CAAA;IAC3B,qCAA6B,CAAA;IAC7B,gCAAwB,CAAA;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ClB,0BAAkB,CAAA;IAClB,0BAAkB,CAAA;IAClB,0BAAkB,CAAA;IAClB,0BAAkB,CAAA;IAClB,yCAAiC,CAAA;IACjC,uCAA+B,CAAA;IAC/B,wCAAgC,CAAA;IAChC,0BAAkB,CAAA;IAClB,sCAA8B,CAAA;IAC9B,0BAAkB,CAAA;IAClB,uCAA+B,CAAA;IAC/B,wCAAgC,CAAA;IAChC,wCAAgC,CAAA;IAChC,wCAAgC,CAAA;IAChC,0BAAkB,CAAA;IAClB,0BAAkB,CAAA;IAClB,wCAAgC,CAAA;IAChC,sCAA8B,CAAA;IAC9B,qCAA6B,CAAA;IAC7B,wCAAgC,CAAA;IAChC,mCAA2B,CAAA;IAC3B,sCAA8B,CAAA;IAC9B,2BAAmB,CAAA;IACnB,qCAA6B,CAAA;IAC7B,oCAA4B,CAAA;IAC5B,yCAAiC,CAAA;IACjC,oCAA4B,CAAA;IAC5B,0BAAkB,CAAA;IAClB,0BAAkB,CAAA;IAClB,yCAAiC,CAAA;IACjC,oCAA4B,CAAA;IAC5B,uCAA+B,CAAA;IAC/B,sCAA8B,CAAA;IAC9B,oCAA4B,CAAA;IAC5B,0BAAkB,CAAA;IAClB,wCAAgC,CAAA;IAChC,2BAAmB,CAAA;IACnB,uCAA+B,CAAA;IAC/B,iCAAyB,CAAA;IACzB,oCAA4B,CAAA;IAC5B,uCAA+B,CAAA;IAC/B,wCAAgC,CAAA;IAChC,qCAA6B,CAAA;IAC7B,0BAAkB,CAAA;IAClB,wCAAgC,CAAA;IAEhC,yBAAiB,CAAA;IACjB,6BAAqB,CAAA;IACrB,uBAAe,CAAA;IAEf,OAAO;IACP,wBAAgB,CAAA;IAChB,+BAAuB,CAAA;IACvB,6BAAqB,CAAA;IACrB,0BAAkB,CAAA;IAClB,yBAAiB,CAAA;AACnB,CAAC,EA1PW,IAAI,KAAJ,IAAI,QA0Pf","sourcesContent":["/* eslint-disable @typescript-eslint/no-duplicate-enum-values */\n// for cache busting we dynamically generate a fingerprint, use yarn svg to update\nexport const SVG_FINGERPRINT = 'e5bcaf1a10896e9b870da4b40474d67b';\n\n// only icons below are included in the sprite sheet\nexport enum Icon {\n alert_warning = 'alert-square',\n account = 'user-01',\n active = 'play',\n add = 'plus',\n add_note = 'file-02',\n airtime = 'bank-note-01',\n analytics = 'bar-chart-01',\n archive = 'archive',\n arrow_up = 'chevron-up',\n arrow_down = 'chevron-down',\n arrow_left = 'chevron-left',\n arrow_right = 'chevron-right',\n attachment = 'paperclip',\n attachment_audio = 'volume-min',\n attachment_document = 'file-06',\n attachment_image = 'image-01',\n attachment_location = 'marker-pin-01',\n attachment_video = 'video-recorder',\n branding = 'brush-02',\n branding_hostname = 'server-05',\n branding_notifications = 'mail-01',\n branding_styling = 'palette',\n branding_raw = 'pencil-01',\n broadcast = 'announcement-01',\n call = 'phone-call-01',\n call_missed = 'phone-call-02',\n campaign = 'clock-refresh',\n campaign_active = 'play',\n campaign_archived = 'archive',\n campaigns = 'clock-refresh',\n channel = 'zap',\n children = 'git-branch-01',\n check = 'check',\n checkbox = 'square',\n checkbox_checked = 'check-square',\n checkbox_partial = 'stop-square',\n classifier_wit = 'classifier-wit',\n classifier_luis = 'classifier-luis',\n classifier_bothub = 'classifier-bothub',\n close = 'x',\n compose = 'send-01',\n contact = 'user-01',\n contact_archived = 'archive',\n contact_blocked = 'message-x-square',\n contact_export = 'download-cloud-01',\n contact_import = 'upload-cloud-01',\n contact_stopped = 'slash-octagon',\n contact_updated = 'user-edit',\n contacts = 'user-01',\n copy = 'copy-04',\n dashboard = 'pie-chart-01',\n definitions_export = 'download-cloud-01',\n delete = 'trash-03',\n delete_small = 'x',\n down = 'chevron-down',\n download = 'download-01',\n edit = 'edit-03',\n email = 'mail-01',\n error = 'alert-circle',\n event = 'zap',\n export = 'download-cloud-01',\n expressions = 'at-sign',\n fields = 'user-edit',\n filter = 'filter-funnel-01',\n flow = 'flow',\n flow_background = 'layers-two-01',\n flow_interrupted = 'x-close',\n flow_ivr = 'phone',\n flow_message = 'message-square-02',\n flow_surveyor = 'tablet-01',\n flow_user = 'hard-drive',\n flows = 'flow',\n global = 'at-sign',\n grid = 'dots-grid',\n group = 'users-01',\n group_exclude = 'users-x',\n group_include = 'users-check',\n group_smart = 'atom-01',\n help = 'help-circle',\n hide = 'eye-off',\n home = 'settings-02',\n image = 'image-01',\n import = 'upload-cloud-01',\n inbox = 'inbox-01',\n incidents = 'alert-square',\n incoming_call = 'phone-incoming-01',\n integrations = 'layers-three-01',\n info = 'user-square',\n issue = 'alert-square',\n label = 'tag-01',\n language = 'translate-01',\n link = 'link-external-01',\n location = 'marker-pin-01',\n log = 'file-02',\n logout = 'log-out-04',\n menu = 'menu-01',\n menu_collapse = 'chevron-left-double',\n message = 'message-square-02',\n message_export = 'download-cloud-01',\n messages = 'message-square-02',\n missing = 'maximize-02',\n missed_call = 'phone-x',\n new = 'plus',\n next_schedule = 'alarm-clock',\n notification = 'bell-01',\n number = 'hash-01',\n optin_requested = 'message-notification-circle',\n optin = 'message-check-circle',\n optout = 'message-x-circle',\n org_active = 'credit-card-02',\n org_anonymous = 'glasses-01',\n org_bulk = 'credit-card-plus',\n org_flagged = 'flag-01',\n org_new = 'stars-02',\n org_suspended = 'slash-circle-01',\n org_verified = 'check-verified-02',\n overview = 'pie-chart-01',\n prometheus = 'prometheus',\n progress_spinner = 'refresh-cw-04',\n featured = 'star-01',\n quick_replies = 'dotpoints-01',\n recording = 'microphone-01',\n resend = 'refresh-cw-05',\n reset = 'flip-backward',\n resthooks = 'share-07',\n restore = 'play',\n results_export = 'download-cloud-01',\n retry = 'refresh-cw-05',\n revisions = 'clock-rewind',\n rocketchat = 'rocketchat',\n runs = 'rows-03',\n schedule = 'calendar',\n search = 'search-refraction',\n select_open = 'chevron-down',\n select_clear = 'x',\n send = 'send-03',\n service = 'magic-wand-01',\n service_end = 'log-out-04',\n settings = 'settings-02',\n show = 'eye',\n simulator = 'phone-02',\n sort = 'chevron-selector-vertical',\n sort_down = 'sort-arrow-down',\n sort_up = 'sort-arrow-up',\n staff = 'hard-drive',\n submit = 'check',\n success = 'check',\n template_approved = 'check-circle',\n template_pending = 'hourglass-01',\n template_rejected = 'alert-circle',\n tickets = 'agent',\n tickets_all = 'archive',\n tickets_closed = 'check',\n tickets_mine = 'coffee',\n tickets_open = 'inbox-01',\n tickets_export = 'download-cloud-01',\n tickets_unassigned = 'inbox-01',\n topic = 'message-text-circle-02',\n two_factor_enabled = 'shield-02',\n two_factor_disabled = 'shield-01',\n trigger = 'signal-01',\n trigger_active = 'play',\n trigger_archived = 'archive',\n trigger_new = 'plus',\n trigger_keyword = 'message-check-square',\n trigger_catch_all = 'message-question-square',\n trigger_inbound_call = 'phone-incoming-01',\n trigger_missed_call = 'phone-hang-up',\n trigger_schedule = 'calendar',\n trigger_new_conversation = 'message-chat-square',\n trigger_referral = 'user-right-01',\n trigger_closed_ticket = 'agent',\n trigger_opt_in = 'message-check-circle',\n trigger_opt_out = 'message-x-circle',\n triggers = 'signal-01',\n updated = 'edit-02',\n up = 'chevron-up',\n upload = 'upload-cloud-01',\n upload_image = 'camera-01',\n usages = 'link-04',\n user = 'users-01',\n users = 'users-01',\n user_beta = 'shield-zap',\n video = 'video-recorder',\n webhook = 'link-external-01',\n wit = 'wit',\n workspace = 'folder',\n zapier = 'zapier',\n zendesk = 'zendesk',\n\n // channel types\n channel_a = 'channel-android',\n channel_ac = 'zap', // TODO https://www.arabiacell.com/\n channel_at = 'zap', // TODO https://africastalking.com/\n channel_bs = 'zap', // TODO https://burstsms.com/\n channel_bw = 'zap', // TODO https://www.bandwidth.com/\n channel_cs = 'zap', // TODO https://www.clicksend.com/\n channel_ct = 'channel-clickatell',\n channel_d3 = 'channel-whatsapp',\n channel_d3c = 'channel-whatsapp',\n channel_da = 'zap', // TODO https://dartmedia.co.id/\n channel_ds = 'channel-discord',\n channel_ex = 'zap',\n channel_fb = 'channel-facebook',\n channel_fba = 'channel-facebook',\n channel_fc = 'channel-freshchat',\n channel_fcm = 'channel-firebase',\n channel_hm = 'zap', // TODO https://hormuud.com/\n channel_ib = 'zap', // TODO https://www.infobip.com/\n channel_ig = 'channel-instagram',\n channel_jc = 'channel-jiochat',\n channel_kn = 'channel-kannel',\n channel_kwa = 'channel-whatsapp',\n channel_ln = 'channel-line',\n channel_mt = 'channel-mtarget',\n channel_mtn = 'zap', // TODO https://mtn.com/\n channel_nx = 'channel-vonage',\n channel_pl = 'channel-plivo',\n channel_rc = 'channel-rocketchat',\n channel_sl = 'channel-slack',\n channel_sq = 'zap', // TODO https://shaqodoon.org/\n channel_st = 'zap', // TODO https://bulk.startmobile.ua\n channel_sw = 'channel-signalwire',\n channel_t = 'channel-twilio',\n channel_tg = 'channel-telegram',\n channel_tms = 'channel-twilio',\n channel_tq = 'channel-thinq',\n channel_tw = 'zap', // TODO https://www.somleng.org/\n channel_twa = 'channel-whatsapp',\n channel_twc = 'zap', // TODO\n channel_twt = 'channel-twitter',\n channel_vk = 'channel-vk',\n channel_vp = 'channel-viber',\n channel_wa = 'channel-whatsapp',\n channel_wac = 'channel-whatsapp',\n channel_wc = 'channel-wechat',\n channel_yo = 'zap', // TODO https://www.yo.co.ug/\n channel_zvw = 'channel-whatsapp',\n\n bothub = 'bothub',\n chatbase = 'chatbase',\n dtone = 'dtone',\n\n // demo\n default = 'list',\n datepicker = 'calendar',\n slider = 'sliders-02',\n select = 'browser',\n input = 'edit-05'\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/vectoricon/index.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,kFAAkF;AAClF,MAAM,CAAC,MAAM,eAAe,GAAG,kCAAkC,CAAC;AAElE,oDAAoD;AACpD,MAAM,CAAN,IAAY,IA2PX;AA3PD,WAAY,IAAI;IACd,sCAA8B,CAAA;IAC9B,2BAAmB,CAAA;IACnB,uBAAe,CAAA;IACf,oBAAY,CAAA;IACZ,4BAAoB,CAAA;IACpB,gCAAwB,CAAA;IACxB,kCAA0B,CAAA;IAC1B,2B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IAClB,yBAAiB,CAAA;AACnB,CAAC,EA3PW,IAAI,KAAJ,IAAI,QA2Pf","sourcesContent":["/* eslint-disable @typescript-eslint/no-duplicate-enum-values */\n// for cache busting we dynamically generate a fingerprint, use yarn svg to update\nexport const SVG_FINGERPRINT = 'e5bcaf1a10896e9b870da4b40474d67b';\n\n// only icons below are included in the sprite sheet\nexport enum Icon {\n alert_warning = 'alert-square',\n account = 'user-01',\n active = 'play',\n add = 'plus',\n add_note = 'file-02',\n airtime = 'bank-note-01',\n analytics = 'bar-chart-01',\n archive = 'archive',\n arrow_up = 'chevron-up',\n arrow_down = 'chevron-down',\n arrow_left = 'chevron-left',\n arrow_right = 'chevron-right',\n attachment = 'paperclip',\n attachment_audio = 'volume-min',\n attachment_document = 'file-06',\n attachment_image = 'image-01',\n attachment_location = 'marker-pin-01',\n attachment_video = 'video-recorder',\n branding = 'brush-02',\n branding_hostname = 'server-05',\n branding_notifications = 'mail-01',\n branding_styling = 'palette',\n branding_raw = 'pencil-01',\n broadcast = 'announcement-01',\n call = 'phone-call-01',\n call_missed = 'phone-call-02',\n campaign = 'clock-refresh',\n campaign_active = 'play',\n campaign_archived = 'archive',\n campaigns = 'clock-refresh',\n channel = 'zap',\n children = 'git-branch-01',\n check = 'check',\n checkbox = 'square',\n checkbox_checked = 'check-square',\n checkbox_partial = 'stop-square',\n classifier_wit = 'classifier-wit',\n classifier_luis = 'classifier-luis',\n classifier_bothub = 'classifier-bothub',\n close = 'x',\n compose = 'send-01',\n contact = 'user-01',\n contact_archived = 'archive',\n contact_blocked = 'message-x-square',\n contact_export = 'download-cloud-01',\n contact_import = 'upload-cloud-01',\n contact_stopped = 'slash-octagon',\n contact_updated = 'user-edit',\n contacts = 'user-01',\n copy = 'copy-04',\n dashboard = 'pie-chart-01',\n definitions_export = 'download-cloud-01',\n delete = 'trash-03',\n delete_small = 'x',\n down = 'chevron-down',\n download = 'download-01',\n edit = 'edit-03',\n email = 'mail-01',\n error = 'alert-circle',\n event = 'zap',\n export = 'download-cloud-01',\n expressions = 'at-sign',\n fields = 'user-edit',\n filter = 'filter-funnel-01',\n flow = 'flow',\n flow_background = 'layers-two-01',\n flow_interrupted = 'x-close',\n flow_ivr = 'phone',\n flow_message = 'message-square-02',\n flow_surveyor = 'tablet-01',\n flow_user = 'hard-drive',\n flows = 'flow',\n global = 'at-sign',\n grid = 'dots-grid',\n group = 'users-01',\n group_exclude = 'users-x',\n group_include = 'users-check',\n group_smart = 'atom-01',\n help = 'help-circle',\n hide = 'eye-off',\n home = 'settings-02',\n image = 'image-01',\n import = 'upload-cloud-01',\n inbox = 'inbox-01',\n incidents = 'alert-square',\n incoming_call = 'phone-incoming-01',\n integrations = 'layers-three-01',\n info = 'user-square',\n issue = 'alert-square',\n label = 'tag-01',\n language = 'translate-01',\n link = 'link-external-01',\n location = 'marker-pin-01',\n log = 'file-02',\n logout = 'log-out-04',\n menu = 'menu-01',\n menu_collapse = 'chevron-left-double',\n message = 'message-square-02',\n message_export = 'download-cloud-01',\n messages = 'message-square-02',\n missing = 'maximize-02',\n missed_call = 'phone-x',\n new = 'plus',\n next_schedule = 'alarm-clock',\n notes = 'edit-03',\n notification = 'bell-01',\n number = 'hash-01',\n optin_requested = 'message-notification-circle',\n optin = 'message-check-circle',\n optout = 'message-x-circle',\n org_active = 'credit-card-02',\n org_anonymous = 'glasses-01',\n org_bulk = 'credit-card-plus',\n org_flagged = 'flag-01',\n org_new = 'stars-02',\n org_suspended = 'slash-circle-01',\n org_verified = 'check-verified-02',\n overview = 'pie-chart-01',\n prometheus = 'prometheus',\n progress_spinner = 'refresh-cw-04',\n featured = 'star-01',\n quick_replies = 'dotpoints-01',\n recording = 'microphone-01',\n resend = 'refresh-cw-05',\n reset = 'flip-backward',\n resthooks = 'share-07',\n restore = 'play',\n results_export = 'download-cloud-01',\n retry = 'refresh-cw-05',\n revisions = 'clock-rewind',\n rocketchat = 'rocketchat',\n runs = 'rows-03',\n schedule = 'calendar',\n search = 'search-refraction',\n select_open = 'chevron-down',\n select_clear = 'x',\n send = 'send-03',\n service = 'magic-wand-01',\n service_end = 'log-out-04',\n settings = 'settings-02',\n show = 'eye',\n simulator = 'phone-02',\n sort = 'chevron-selector-vertical',\n sort_down = 'sort-arrow-down',\n sort_up = 'sort-arrow-up',\n staff = 'hard-drive',\n submit = 'check',\n success = 'check',\n template_approved = 'check-circle',\n template_pending = 'hourglass-01',\n template_rejected = 'alert-circle',\n tickets = 'agent',\n tickets_all = 'archive',\n tickets_closed = 'check',\n tickets_mine = 'coffee',\n tickets_open = 'inbox-01',\n tickets_export = 'download-cloud-01',\n tickets_unassigned = 'inbox-01',\n topic = 'message-text-circle-02',\n two_factor_enabled = 'shield-02',\n two_factor_disabled = 'shield-01',\n trigger = 'signal-01',\n trigger_active = 'play',\n trigger_archived = 'archive',\n trigger_new = 'plus',\n trigger_keyword = 'message-check-square',\n trigger_catch_all = 'message-question-square',\n trigger_inbound_call = 'phone-incoming-01',\n trigger_missed_call = 'phone-hang-up',\n trigger_schedule = 'calendar',\n trigger_new_conversation = 'message-chat-square',\n trigger_referral = 'user-right-01',\n trigger_closed_ticket = 'agent',\n trigger_opt_in = 'message-check-circle',\n trigger_opt_out = 'message-x-circle',\n triggers = 'signal-01',\n updated = 'edit-02',\n up = 'chevron-up',\n upload = 'upload-cloud-01',\n upload_image = 'camera-01',\n usages = 'link-04',\n user = 'users-01',\n users = 'users-01',\n user_beta = 'shield-zap',\n video = 'video-recorder',\n webhook = 'link-external-01',\n wit = 'wit',\n workspace = 'folder',\n zapier = 'zapier',\n zendesk = 'zendesk',\n\n // channel types\n channel_a = 'channel-android',\n channel_ac = 'zap', // TODO https://www.arabiacell.com/\n channel_at = 'zap', // TODO https://africastalking.com/\n channel_bs = 'zap', // TODO https://burstsms.com/\n channel_bw = 'zap', // TODO https://www.bandwidth.com/\n channel_cs = 'zap', // TODO https://www.clicksend.com/\n channel_ct = 'channel-clickatell',\n channel_d3 = 'channel-whatsapp',\n channel_d3c = 'channel-whatsapp',\n channel_da = 'zap', // TODO https://dartmedia.co.id/\n channel_ds = 'channel-discord',\n channel_ex = 'zap',\n channel_fb = 'channel-facebook',\n channel_fba = 'channel-facebook',\n channel_fc = 'channel-freshchat',\n channel_fcm = 'channel-firebase',\n channel_hm = 'zap', // TODO https://hormuud.com/\n channel_ib = 'zap', // TODO https://www.infobip.com/\n channel_ig = 'channel-instagram',\n channel_jc = 'channel-jiochat',\n channel_kn = 'channel-kannel',\n channel_kwa = 'channel-whatsapp',\n channel_ln = 'channel-line',\n channel_mt = 'channel-mtarget',\n channel_mtn = 'zap', // TODO https://mtn.com/\n channel_nx = 'channel-vonage',\n channel_pl = 'channel-plivo',\n channel_rc = 'channel-rocketchat',\n channel_sl = 'channel-slack',\n channel_sq = 'zap', // TODO https://shaqodoon.org/\n channel_st = 'zap', // TODO https://bulk.startmobile.ua\n channel_sw = 'channel-signalwire',\n channel_t = 'channel-twilio',\n channel_tg = 'channel-telegram',\n channel_tms = 'channel-twilio',\n channel_tq = 'channel-thinq',\n channel_tw = 'zap', // TODO https://www.somleng.org/\n channel_twa = 'channel-whatsapp',\n channel_twc = 'zap', // TODO\n channel_twt = 'channel-twitter',\n channel_vk = 'channel-vk',\n channel_vp = 'channel-viber',\n channel_wa = 'channel-whatsapp',\n channel_wac = 'channel-whatsapp',\n channel_wc = 'channel-wechat',\n channel_yo = 'zap', // TODO https://www.yo.co.ug/\n channel_zvw = 'channel-whatsapp',\n\n bothub = 'bothub',\n chatbase = 'chatbase',\n dtone = 'dtone',\n\n // demo\n default = 'list',\n datepicker = 'calendar',\n slider = 'sliders-02',\n select = 'browser',\n input = 'edit-05'\n}\n"]}
@@ -56,6 +56,7 @@ import { TemplateEditor } from './src/templates/TemplateEditor';
56
56
  import { Toast } from './src/toast/Toast';
57
57
  import { Chat } from './src/chat/Chat';
58
58
  import { MediaPicker } from './src/mediapicker/MediaPicker';
59
+ import { ContactNotepad } from './src/contacts/ContactNotepad';
59
60
  export function addCustomElement(name, comp) {
60
61
  if (!window.customElements.get(name)) {
61
62
  window.customElements.define(name, comp);
@@ -120,4 +121,5 @@ addCustomElement('temba-template-editor', TemplateEditor);
120
121
  addCustomElement('temba-toast', Toast);
121
122
  addCustomElement('temba-chat', Chat);
122
123
  addCustomElement('temba-media-picker', MediaPicker);
124
+ addCustomElement('temba-contact-notepad', ContactNotepad);
123
125
  //# sourceMappingURL=temba-modules.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"temba-modules.js","sourceRoot":"","sources":["../temba-modules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM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C,CAAC;AAC/C,gBAAgB,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;AAC3C,gBAAgB,CAAC,oBAAoB,EAAE,WAAW,CAAC,CAAC;AACpD,gBAAgB,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AACrC,gBAAgB,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAC1C,gBAAgB,CAAC,uBAAuB,EAAE,cAAc,CAAC,CAAC;AAC1D,gBAAgB,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;AACvC,gBAAgB,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AACrC,gBAAgB,CAAC,oBAAoB,EAAE,WAAW,CAAC,CAAC","sourcesContent":["import { Checkbox } from './src/checkbox/Checkbox';\nimport { TextInput } from './src/textinput/TextInput';\nimport { Store } from './src/store/Store';\nimport { Select } from './src/select/Select';\nimport { Completion } from './src/completion/Completion';\nimport { Modax } from './src/dialog/Modax';\nimport { Dialog } from './src/dialog/Dialog';\nimport { Button } from './src/button/Button';\nimport { FormField } from './src/formfield/FormField';\nimport { Loading } from './src/loading/Loading';\nimport { CharCount } from './src/charcount/CharCount';\nimport { Options } from './src/options/Options';\nimport { ContactChat } from './src/contacts/ContactChat';\nimport { TicketList } from './src/list/TicketList';\nimport { ContactDetails } from './src/contacts/ContactDetails';\nimport { TembaList } from './src/list/TembaList';\nimport { ContactSearch } from './src/contactsearch/ContactSearch';\nimport { VectorIcon } from './src/vectoricon/VectorIcon';\nimport { Alert } from './src/alert/Alert';\nimport { Omnibox } from './src/omnibox/Omnibox';\nimport { Tip } from './src/tip/Tip';\nimport { TembaMenu } from './src/list/TembaMenu';\nimport { Anchor } from './src/anchor/Anchor';\nimport { Dropdown } from './src/dropdown/Dropdown';\nimport { TabPane } from './src/tabpane/TabPane';\nimport { Tab } from './src/tabpane/Tab';\nimport Label from './src/label/Label';\nimport { ContactName } from './src/contacts/ContactName';\nimport { ContactUrn } from './src/contacts/ContactUrn';\nimport { ContactFields } from './src/contacts/ContactFields';\nimport { ContactFieldEditor } from './src/contacts/ContactFieldEditor';\n\nimport { ContactBadges } from './src/contacts/ContactBadges';\nimport { ContactPending } from './src/contacts/ContactPending';\nimport { ContactTickets } from './src/contacts/ContactTickets';\nimport { TembaSlider } from './src/slider/TembaSlider';\nimport { RunList } from './src/list/RunList';\nimport { FlowStoreElement } from './src/flow/FlowStoreElement';\nimport { ContactNameFetch } from './src/contacts/ContactNameFetch';\nimport DatePicker from './src/datepicker/DatePicker';\nimport { FieldManager } from './src/fields/FieldManager';\nimport { SortableList } from './src/list/SortableList';\nimport { ContentMenu } from './src/list/ContentMenu';\nimport { TembaDate } from './src/date/TembaDate';\nimport Remote from './src/remote/Remote';\nimport { Compose } from './src/compose/Compose';\nimport { Lightbox } from './src/lightbox/Lightbox';\nimport { ColorPicker } from './src/colorpicker/ColorPicker';\nimport { Resizer } from './src/resizer/Resizer';\nimport { Thumbnail } from './src/thumbnail/Thumbnail';\nimport { NotificationList } from './src/list/NotificationList';\nimport { WebChat } from './src/webchat/WebChat';\nimport { ImagePicker } from './src/imagepicker/ImagePicker';\nimport { Mask } from './src/mask/Mask';\nimport { TembaUser } from './src/user/TembaUser';\nimport { TemplateEditor } from './src/templates/TemplateEditor';\nimport { Toast } from './src/toast/Toast';\nimport { Chat } from './src/chat/Chat';\nimport { MediaPicker } from './src/mediapicker/MediaPicker';\n\nexport function addCustomElement(name: string, comp: any) {\n if (!window.customElements.get(name)) {\n window.customElements.define(name, comp);\n }\n}\n\naddCustomElement('temba-anchor', Anchor);\naddCustomElement('temba-alert', Alert);\naddCustomElement('temba-store', Store);\naddCustomElement('temba-textinput', TextInput);\naddCustomElement('temba-datepicker', DatePicker);\naddCustomElement('temba-date', TembaDate);\naddCustomElement('temba-completion', Completion);\naddCustomElement('temba-checkbox', Checkbox);\naddCustomElement('temba-select', Select);\naddCustomElement('temba-options', Options);\naddCustomElement('temba-loading', Loading);\naddCustomElement('temba-lightbox', Lightbox);\naddCustomElement('temba-button', Button);\naddCustomElement('temba-omnibox', Omnibox);\naddCustomElement('temba-tip', Tip);\naddCustomElement('temba-contact-name', ContactName);\naddCustomElement('temba-contact-name-fetch', ContactNameFetch);\naddCustomElement('temba-contact-field', ContactFieldEditor);\naddCustomElement('temba-contact-fields', ContactFields);\naddCustomElement('temba-field-manager', FieldManager);\naddCustomElement('temba-urn', ContactUrn);\naddCustomElement('temba-content-menu', ContentMenu);\n\naddCustomElement('temba-field', FormField);\naddCustomElement('temba-dialog', Dialog);\naddCustomElement('temba-modax', Modax);\naddCustomElement('temba-charcount', CharCount);\naddCustomElement('temba-contact-chat', ContactChat);\naddCustomElement('temba-contact-details', ContactDetails);\naddCustomElement('temba-ticket-list', TicketList);\naddCustomElement('temba-notification-list', NotificationList);\naddCustomElement('temba-list', TembaList);\naddCustomElement('temba-sortable-list', SortableList);\naddCustomElement('temba-run-list', RunList);\naddCustomElement('temba-flow-details', FlowStoreElement);\naddCustomElement('temba-label', Label);\naddCustomElement('temba-menu', TembaMenu);\naddCustomElement('temba-remote', Remote);\naddCustomElement('temba-contact-search', ContactSearch);\naddCustomElement('temba-icon', VectorIcon);\naddCustomElement('temba-dropdown', Dropdown);\naddCustomElement('temba-tabs', TabPane);\naddCustomElement('temba-tab', Tab);\naddCustomElement('temba-contact-badges', ContactBadges);\naddCustomElement('temba-contact-pending', ContactPending);\naddCustomElement('temba-contact-tickets', ContactTickets);\naddCustomElement('temba-slider', TembaSlider);\naddCustomElement('temba-content-menu', ContentMenu);\naddCustomElement('temba-compose', Compose);\naddCustomElement('temba-color-picker', ColorPicker);\naddCustomElement('temba-resizer', Resizer);\naddCustomElement('temba-thumbnail', Thumbnail);\naddCustomElement('temba-webchat', WebChat);\naddCustomElement('temba-image-picker', ImagePicker);\naddCustomElement('temba-mask', Mask);\naddCustomElement('temba-user', TembaUser);\naddCustomElement('temba-template-editor', TemplateEditor);\naddCustomElement('temba-toast', Toast);\naddCustomElement('temba-chat', Chat);\naddCustomElement('temba-media-picker', MediaPicker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S,CAAC,CAAC;AAC1C,gBAAgB,CAAC,uBAAuB,EAAE,cAAc,CAAC,CAAC;AAC1D,gBAAgB,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;AACvC,gBAAgB,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AACrC,gBAAgB,CAAC,oBAAoB,EAAE,WAAW,CAAC,CAAC;AACpD,gBAAgB,CAAC,uBAAuB,EAAE,cAAc,CAAC,CAAC","sourcesContent":["import { Checkbox } from './src/checkbox/Checkbox';\nimport { TextInput } from './src/textinput/TextInput';\nimport { Store } from './src/store/Store';\nimport { Select } from './src/select/Select';\nimport { Completion } from './src/completion/Completion';\nimport { Modax } from './src/dialog/Modax';\nimport { Dialog } from './src/dialog/Dialog';\nimport { Button } from './src/button/Button';\nimport { FormField } from './src/formfield/FormField';\nimport { Loading } from './src/loading/Loading';\nimport { CharCount } from './src/charcount/CharCount';\nimport { Options } from './src/options/Options';\nimport { ContactChat } from './src/contacts/ContactChat';\nimport { TicketList } from './src/list/TicketList';\nimport { ContactDetails } from './src/contacts/ContactDetails';\nimport { TembaList } from './src/list/TembaList';\nimport { ContactSearch } from './src/contactsearch/ContactSearch';\nimport { VectorIcon } from './src/vectoricon/VectorIcon';\nimport { Alert } from './src/alert/Alert';\nimport { Omnibox } from './src/omnibox/Omnibox';\nimport { Tip } from './src/tip/Tip';\nimport { TembaMenu } from './src/list/TembaMenu';\nimport { Anchor } from './src/anchor/Anchor';\nimport { Dropdown } from './src/dropdown/Dropdown';\nimport { TabPane } from './src/tabpane/TabPane';\nimport { Tab } from './src/tabpane/Tab';\nimport Label from './src/label/Label';\nimport { ContactName } from './src/contacts/ContactName';\nimport { ContactUrn } from './src/contacts/ContactUrn';\nimport { ContactFields } from './src/contacts/ContactFields';\nimport { ContactFieldEditor } from './src/contacts/ContactFieldEditor';\n\nimport { ContactBadges } from './src/contacts/ContactBadges';\nimport { ContactPending } from './src/contacts/ContactPending';\nimport { ContactTickets } from './src/contacts/ContactTickets';\nimport { TembaSlider } from './src/slider/TembaSlider';\nimport { RunList } from './src/list/RunList';\nimport { FlowStoreElement } from './src/flow/FlowStoreElement';\nimport { ContactNameFetch } from './src/contacts/ContactNameFetch';\nimport DatePicker from './src/datepicker/DatePicker';\nimport { FieldManager } from './src/fields/FieldManager';\nimport { SortableList } from './src/list/SortableList';\nimport { ContentMenu } from './src/list/ContentMenu';\nimport { TembaDate } from './src/date/TembaDate';\nimport Remote from './src/remote/Remote';\nimport { Compose } from './src/compose/Compose';\nimport { Lightbox } from './src/lightbox/Lightbox';\nimport { ColorPicker } from './src/colorpicker/ColorPicker';\nimport { Resizer } from './src/resizer/Resizer';\nimport { Thumbnail } from './src/thumbnail/Thumbnail';\nimport { NotificationList } from './src/list/NotificationList';\nimport { WebChat } from './src/webchat/WebChat';\nimport { ImagePicker } from './src/imagepicker/ImagePicker';\nimport { Mask } from './src/mask/Mask';\nimport { TembaUser } from './src/user/TembaUser';\nimport { TemplateEditor } from './src/templates/TemplateEditor';\nimport { Toast } from './src/toast/Toast';\nimport { Chat } from './src/chat/Chat';\nimport { MediaPicker } from './src/mediapicker/MediaPicker';\nimport { ContactNotepad } from './src/contacts/ContactNotepad';\n\nexport function addCustomElement(name: string, comp: any) {\n if (!window.customElements.get(name)) {\n window.customElements.define(name, comp);\n }\n}\n\naddCustomElement('temba-anchor', Anchor);\naddCustomElement('temba-alert', Alert);\naddCustomElement('temba-store', Store);\naddCustomElement('temba-textinput', TextInput);\naddCustomElement('temba-datepicker', DatePicker);\naddCustomElement('temba-date', TembaDate);\naddCustomElement('temba-completion', Completion);\naddCustomElement('temba-checkbox', Checkbox);\naddCustomElement('temba-select', Select);\naddCustomElement('temba-options', Options);\naddCustomElement('temba-loading', Loading);\naddCustomElement('temba-lightbox', Lightbox);\naddCustomElement('temba-button', Button);\naddCustomElement('temba-omnibox', Omnibox);\naddCustomElement('temba-tip', Tip);\naddCustomElement('temba-contact-name', ContactName);\naddCustomElement('temba-contact-name-fetch', ContactNameFetch);\naddCustomElement('temba-contact-field', ContactFieldEditor);\naddCustomElement('temba-contact-fields', ContactFields);\naddCustomElement('temba-field-manager', FieldManager);\naddCustomElement('temba-urn', ContactUrn);\naddCustomElement('temba-content-menu', ContentMenu);\n\naddCustomElement('temba-field', FormField);\naddCustomElement('temba-dialog', Dialog);\naddCustomElement('temba-modax', Modax);\naddCustomElement('temba-charcount', CharCount);\naddCustomElement('temba-contact-chat', ContactChat);\naddCustomElement('temba-contact-details', ContactDetails);\naddCustomElement('temba-ticket-list', TicketList);\naddCustomElement('temba-notification-list', NotificationList);\naddCustomElement('temba-list', TembaList);\naddCustomElement('temba-sortable-list', SortableList);\naddCustomElement('temba-run-list', RunList);\naddCustomElement('temba-flow-details', FlowStoreElement);\naddCustomElement('temba-label', Label);\naddCustomElement('temba-menu', TembaMenu);\naddCustomElement('temba-remote', Remote);\naddCustomElement('temba-contact-search', ContactSearch);\naddCustomElement('temba-icon', VectorIcon);\naddCustomElement('temba-dropdown', Dropdown);\naddCustomElement('temba-tabs', TabPane);\naddCustomElement('temba-tab', Tab);\naddCustomElement('temba-contact-badges', ContactBadges);\naddCustomElement('temba-contact-pending', ContactPending);\naddCustomElement('temba-contact-tickets', ContactTickets);\naddCustomElement('temba-slider', TembaSlider);\naddCustomElement('temba-content-menu', ContentMenu);\naddCustomElement('temba-compose', Compose);\naddCustomElement('temba-color-picker', ColorPicker);\naddCustomElement('temba-resizer', Resizer);\naddCustomElement('temba-thumbnail', Thumbnail);\naddCustomElement('temba-webchat', WebChat);\naddCustomElement('temba-image-picker', ImagePicker);\naddCustomElement('temba-mask', Mask);\naddCustomElement('temba-user', TembaUser);\naddCustomElement('temba-template-editor', TemplateEditor);\naddCustomElement('temba-toast', Toast);\naddCustomElement('temba-chat', Chat);\naddCustomElement('temba-media-picker', MediaPicker);\naddCustomElement('temba-contact-notepad', ContactNotepad);\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyaruka/temba-components",
3
- "version": "0.102.2",
3
+ "version": "0.103.0",
4
4
  "description": "Web components to support rapidpro and related projects",
5
5
  "author": "Nyaruka <code@nyaruka.coim>",
6
6
  "main": "dist/index.js",
@@ -496,7 +496,7 @@ export class ContactChat extends ContactStoreElement {
496
496
  }
497
497
 
498
498
  private getEndpoint() {
499
- return `/contact/history/${this.currentContact.uuid}/?_format=json`;
499
+ return `/contact/history/${this.contact}/?_format=json`;
500
500
  }
501
501
 
502
502
  private scheduleRefresh() {
@@ -800,7 +800,6 @@ export class ContactChat extends ContactStoreElement {
800
800
  private fetchPreviousMessages() {
801
801
  const chat = this.chat;
802
802
  const contactChat = this;
803
-
804
803
  if (!chat || chat.fetching || contactChat.blockFetching) {
805
804
  return;
806
805
  }
@@ -4,6 +4,7 @@ import { getClasses, postJSON } from '../utils';
4
4
  import { ContactFieldEditor } from './ContactFieldEditor';
5
5
  import { ContactStoreElement } from './ContactStoreElement';
6
6
  import { Checkbox } from '../checkbox/Checkbox';
7
+ import { CustomEventType } from '../interfaces';
7
8
 
8
9
  const MIN_FOR_FILTER = 10;
9
10
 
@@ -104,12 +105,18 @@ export class ContactFields extends ContactStoreElement {
104
105
  if (Object.keys(this.data.fields).length <= MIN_FOR_FILTER) {
105
106
  this.showAll = true;
106
107
  }
108
+
109
+ this.fireCustomEvent(CustomEventType.DetailsChanged, {
110
+ count: Object.values(this.data.fields).filter((value) => !!value).length
111
+ });
107
112
  }
108
113
  }
109
114
 
110
115
  public handleFieldChanged(evt: InputEvent) {
111
116
  const field = evt.currentTarget as ContactFieldEditor;
112
117
  const value = field.value;
118
+
119
+ // TODO: Use contact.postChanges instead of postJSON
113
120
  postJSON('/api/v2/contacts.json?uuid=' + this.data.uuid, {
114
121
  fields: { [field.key]: value }
115
122
  })
@@ -0,0 +1,133 @@
1
+ import { css, html, PropertyValueMap, TemplateResult } from 'lit';
2
+ import { property } from 'lit/decorators.js';
3
+ import { ContactStoreElement } from './ContactStoreElement';
4
+ import { getDisplayName } from './helpers';
5
+ import { ContactNote, CustomEventType } from '../interfaces';
6
+
7
+ export class ContactNotepad extends ContactStoreElement {
8
+ @property({ type: Object, attribute: false })
9
+ note: ContactNote;
10
+
11
+ @property({ type: String })
12
+ dirtyMessage =
13
+ 'You have unsaved changes to the contact notepad. Are you sure you want to contiunue?';
14
+
15
+ static get styles() {
16
+ return css`
17
+ :host {
18
+ height: 100%;
19
+ display: flex;
20
+ }
21
+
22
+ .wrapper {
23
+ flex-grow: 1;
24
+ --color-widget-bg: transparent;
25
+ --color-widget-bg-focused: transparent;
26
+ outline: none;
27
+ border-radius: var(--curvature);
28
+ display: flex;
29
+ flex-direction: column;
30
+ }
31
+
32
+ .notepad {
33
+ flex-grow: 1;
34
+ padding: 1.25rem;
35
+ overflow-y: auto;
36
+ background: transparent;
37
+ border: none;
38
+ outline: none;
39
+ resize: none;
40
+ font-family: monospace;
41
+ }
42
+
43
+ .notepad:focus {
44
+ outline: none;
45
+ }
46
+
47
+ .toolbar {
48
+ background: rgba(0, 0, 0, 0.03);
49
+ padding: 0.25em 0.5em;
50
+ display: flex;
51
+ min-height: 2em;
52
+ align-items: center;
53
+ border-top: 1px solid rgba(0, 0, 0, 0.1);
54
+ }
55
+
56
+ .toolbar temba-button {
57
+ margin-right: 0.5em;
58
+ }
59
+
60
+ .updated {
61
+ font-size: 0.9em;
62
+ flex-grow: 1;
63
+ margin-left: 0.5em;
64
+ }
65
+ `;
66
+ }
67
+
68
+ private handleChange() {
69
+ this.markDirty();
70
+ }
71
+
72
+ private submitChanges() {
73
+ const notepad = this.shadowRoot.querySelector(
74
+ '.notepad'
75
+ ) as HTMLInputElement;
76
+ const note = notepad.value;
77
+ this.postChanges({ note }).then(() => {
78
+ this.markClean();
79
+ });
80
+ }
81
+
82
+ protected updated(
83
+ changes: PropertyValueMap<any> | Map<PropertyKey, unknown>
84
+ ): void {
85
+ super.updated(changes);
86
+
87
+ if (changes.has('data')) {
88
+ this.note =
89
+ this.data?.notes.length > 0
90
+ ? { ...this.data.notes[this.data.notes.length - 1] }
91
+ : null;
92
+ this.fireCustomEvent(CustomEventType.DetailsChanged, {
93
+ count: this.note && this.note.text.length > 0 ? 1 : 0
94
+ });
95
+ this.markClean();
96
+ }
97
+ }
98
+
99
+ public render(): TemplateResult {
100
+ if (this.data) {
101
+ return html`
102
+ <div class="wrapper">
103
+ <!-- prettier-ignore -->
104
+ <textarea class="notepad" @input=${this.handleChange} .value=${this
105
+ .note
106
+ ? this.note.text
107
+ : ''}></textarea>
108
+ <div class="toolbar">
109
+ <div class="updated">
110
+ ${this.note
111
+ ? html`Last updated by ${getDisplayName(this.note.created_by)}
112
+ <temba-date
113
+ value="${this.note.created_on}"
114
+ display="duration"
115
+ ></temba-date>`
116
+ : null}
117
+ </div>
118
+ ${this.dirty
119
+ ? html`
120
+ <temba-button
121
+ name="Save"
122
+ small
123
+ @click=${this.submitChanges}
124
+ ></temba-button>
125
+ `
126
+ : null}
127
+ </div>
128
+ </div>
129
+ `;
130
+ }
131
+ return super.render();
132
+ }
133
+ }
@@ -5,7 +5,7 @@ import {
5
5
  ScheduledEvent,
6
6
  ScheduledEventType
7
7
  } from '../interfaces';
8
- import { StoreElement } from '../store/StoreElement';
8
+ import { EndpointMonitorElement } from '../store/EndpointMonitorElement';
9
9
  import { Icon } from '../vectoricon';
10
10
 
11
11
  const ICONS = {
@@ -14,7 +14,7 @@ const ICONS = {
14
14
  [ScheduledEventType.ScheduledTrigger]: Icon.trigger
15
15
  };
16
16
 
17
- export class ContactPending extends StoreElement {
17
+ export class ContactPending extends EndpointMonitorElement {
18
18
  @property({ type: String })
19
19
  contact: string;
20
20
 
@@ -160,6 +160,12 @@ export class ContactPending extends StoreElement {
160
160
  this.url = null;
161
161
  }
162
162
  }
163
+
164
+ if (changes.has('data')) {
165
+ this.fireCustomEvent(CustomEventType.DetailsChanged, {
166
+ count: this.data.length
167
+ });
168
+ }
163
169
  }
164
170
 
165
171
  public handleEventClicked(event: ScheduledEvent) {
@@ -1,9 +1,9 @@
1
1
  import { PropertyValueMap } from 'lit';
2
2
  import { property } from 'lit/decorators.js';
3
3
  import { Contact, Group } from '../interfaces';
4
- import { StoreElement } from '../store/StoreElement';
4
+ import { EndpointMonitorElement } from '../store/EndpointMonitorElement';
5
5
 
6
- export class ContactStoreElement extends StoreElement {
6
+ export class ContactStoreElement extends EndpointMonitorElement {
7
7
  @property({ type: String })
8
8
  contact: string;
9
9
 
@@ -39,6 +39,16 @@ export class ContactStoreElement extends StoreElement {
39
39
  return null;
40
40
  }
41
41
 
42
+ public postChanges(payload: any) {
43
+ // clear our cache so we don't have any races
44
+ this.store.removeFromCache(`${this.endpoint}${this.contact}`);
45
+ return this.store
46
+ .postJSON(`${this.endpoint}${this.contact}`, payload)
47
+ .then((response) => {
48
+ this.setContact(response.json);
49
+ });
50
+ }
51
+
42
52
  public setContact(contact: any) {
43
53
  // make sure contact data is properly prepped
44
54
  this.data = this.prepareData([contact]);
@@ -1,14 +1,14 @@
1
1
  import { css, html, PropertyValueMap, TemplateResult } from 'lit';
2
2
  import { property } from 'lit/decorators.js';
3
3
  import { CustomEventType, Ticket, TicketStatus } from '../interfaces';
4
- import { StoreElement } from '../store/StoreElement';
4
+ import { EndpointMonitorElement } from '../store/EndpointMonitorElement';
5
5
  import { getClasses, postJSON, stopEvent } from '../utils';
6
6
  import { Icon } from '../vectoricon';
7
7
 
8
8
  const dropdownUserScale = 0.7;
9
9
  const inlineUserScale = 0.8;
10
10
 
11
- export class ContactTickets extends StoreElement {
11
+ export class ContactTickets extends EndpointMonitorElement {
12
12
  @property({ type: String })
13
13
  agent: string;
14
14
 
@@ -230,6 +230,13 @@ export class ContactTickets extends StoreElement {
230
230
  changes: PropertyValueMap<any> | Map<PropertyKey, unknown>
231
231
  ): void {
232
232
  super.updated(changes);
233
+
234
+ if (changes.has('data')) {
235
+ this.fireCustomEvent(CustomEventType.DetailsChanged, {
236
+ count: this.data.length
237
+ });
238
+ }
239
+
233
240
  if (changes.has('contact') || changes.has('ticket')) {
234
241
  if (this.contact) {
235
242
  this.url = `/api/v2/tickets.json?contact=${this.contact}${
@@ -1,4 +1,4 @@
1
- import { Contact, User } from '../interfaces';
1
+ import { Contact, NamedUser, User } from '../interfaces';
2
2
  import { fetchResults, getUrl, postUrl, WebResponse } from '../utils';
3
3
  import { ContactHistoryPage } from './events';
4
4
 
@@ -80,6 +80,10 @@ export const getDisplayName = (user: User) => {
80
80
  return 'Somebody';
81
81
  }
82
82
 
83
+ if ((user as NamedUser).name) {
84
+ return (user as NamedUser).name;
85
+ }
86
+
83
87
  if (user.first_name && user.last_name) {
84
88
  return `${user.first_name} ${user.last_name}`;
85
89
  }
@@ -3,7 +3,7 @@ import { property } from 'lit/decorators.js';
3
3
  import { ContactField, CustomEventType } from '../interfaces';
4
4
 
5
5
  import { SortableList } from '../list/SortableList';
6
- import { StoreElement } from '../store/StoreElement';
6
+ import { EndpointMonitorElement } from '../store/EndpointMonitorElement';
7
7
  import { postJSON } from '../utils';
8
8
 
9
9
  const TYPE_NAMES = {
@@ -31,7 +31,7 @@ const matches = (field: ContactField, query: string): boolean => {
31
31
  return false;
32
32
  };
33
33
 
34
- export class FieldManager extends StoreElement {
34
+ export class FieldManager extends EndpointMonitorElement {
35
35
  static get styles() {
36
36
  return css`
37
37
  :host {
@@ -1,9 +1,9 @@
1
1
  import { html, PropertyValueMap, TemplateResult } from 'lit';
2
2
  import { property } from 'lit/decorators.js';
3
3
  import { FlowDetails } from '../interfaces';
4
- import { StoreElement } from '../store/StoreElement';
4
+ import { EndpointMonitorElement } from '../store/EndpointMonitorElement';
5
5
 
6
- export class FlowStoreElement extends StoreElement {
6
+ export class FlowStoreElement extends EndpointMonitorElement {
7
7
  @property({ type: String })
8
8
  flow: string;
9
9