@limetech/lime-crm-building-blocks 1.116.0 → 1.116.2

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 (480) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/{_Map-60aae0ed.js → _Map-BlpAtLvq.js} +12 -24
  3. package/dist/cjs/{_MapCache-8b125fbb.js → _MapCache-De1Fwe0H.js} +5 -7
  4. package/dist/cjs/{_Uint8Array-95263550.js → _Uint8Array-C_lvn5HO.js} +6 -14
  5. package/dist/cjs/{_baseIsEqual-f2d60d3e.js → _baseIsEqual-BtwicGmu.js} +4 -4
  6. package/dist/cjs/{_defineProperty-40a6ad5d.js → _defineProperty-eImBwVFM.js} +2 -4
  7. package/dist/cjs/{_getTag-8809c5c6.js → _getTag-CdUodI28.js} +18 -39
  8. package/dist/cjs/{get-932b213e.js → get-BRGtX379.js} +6 -14
  9. package/dist/cjs/{index-519b904a.js → index-C_OnxXhP.js} +541 -322
  10. package/dist/cjs/index.esm-DhBVH875.js +838 -0
  11. package/dist/cjs/{isSymbol-5b36aeee.js → isSymbol-D8S28StA.js} +1 -1
  12. package/dist/cjs/lime-crm-building-blocks.cjs.js +7 -7
  13. package/dist/cjs/{lime-query-validation-c118b96d.js → lime-query-validation-CWlZPm8m.js} +8 -8
  14. package/dist/cjs/limebb-alert-dialog.cjs.entry.js +5 -8
  15. package/dist/cjs/limebb-browser.cjs.entry.js +11 -14
  16. package/dist/cjs/limebb-chat-icon-list_3.cjs.entry.js +15 -20
  17. package/dist/cjs/limebb-chat-list.cjs.entry.js +11 -12
  18. package/dist/cjs/limebb-component-config.cjs.entry.js +17 -16
  19. package/dist/cjs/limebb-component-picker.cjs.entry.js +9 -12
  20. package/dist/cjs/limebb-composer-toolbar.cjs.entry.js +9 -12
  21. package/dist/cjs/limebb-currency-picker.cjs.entry.js +1907 -1790
  22. package/dist/cjs/limebb-dashboard-widget.cjs.entry.js +4 -7
  23. package/dist/cjs/limebb-data-cells.cjs.entry.js +5 -8
  24. package/dist/cjs/limebb-date-picker.cjs.entry.js +7 -9
  25. package/dist/cjs/limebb-date-range.cjs.entry.js +6 -9
  26. package/dist/cjs/limebb-document-chips.cjs.entry.js +10 -11
  27. package/dist/cjs/limebb-document-item.cjs.entry.js +6 -9
  28. package/dist/cjs/limebb-document-picker.cjs.entry.js +6 -9
  29. package/dist/cjs/limebb-empty-state.cjs.entry.js +3 -6
  30. package/dist/cjs/limebb-feed-item-thumbnail-file-info.cjs.entry.js +4 -7
  31. package/dist/cjs/limebb-feed-timeline-item.cjs.entry.js +8 -11
  32. package/dist/cjs/limebb-feed.cjs.entry.js +430 -168
  33. package/dist/cjs/limebb-icon-picker.cjs.entry.js +4 -6
  34. package/dist/cjs/limebb-info-tile-currency-format.cjs.entry.js +2 -4
  35. package/dist/cjs/limebb-info-tile-date-format.cjs.entry.js +4 -7
  36. package/dist/cjs/limebb-info-tile-decimal-format.cjs.entry.js +2 -4
  37. package/dist/cjs/limebb-info-tile-format.cjs.entry.js +5 -8
  38. package/dist/cjs/limebb-info-tile-relative-date-format.cjs.entry.js +2 -4
  39. package/dist/cjs/limebb-info-tile-unit-format.cjs.entry.js +2 -4
  40. package/dist/cjs/limebb-info-tile.cjs.entry.js +27 -24
  41. package/dist/cjs/limebb-kanban-group.cjs.entry.js +8 -11
  42. package/dist/cjs/limebb-kanban-item.cjs.entry.js +8 -11
  43. package/dist/cjs/limebb-kanban.cjs.entry.js +5 -8
  44. package/dist/cjs/limebb-lime-query-builder.cjs.entry.js +9 -12
  45. package/dist/cjs/limebb-lime-query-filter-builder_3.cjs.entry.js +27 -29
  46. package/dist/cjs/limebb-lime-query-filter-comparison_2.cjs.entry.js +26 -30
  47. package/dist/cjs/limebb-lime-query-filter-group_3.cjs.entry.js +25 -30
  48. package/dist/cjs/limebb-lime-query-order-by-item.cjs.entry.js +6 -9
  49. package/dist/cjs/limebb-lime-query-response-format-builder.cjs.entry.js +9 -12
  50. package/dist/cjs/limebb-lime-query-response-format-editor_2.cjs.entry.js +8 -12
  51. package/dist/cjs/limebb-limeobject-file-viewer.cjs.entry.js +9 -12
  52. package/dist/cjs/limebb-live-docs-info.cjs.entry.js +5 -8
  53. package/dist/cjs/limebb-loader.cjs.entry.js +12 -10
  54. package/dist/cjs/limebb-locale-picker.cjs.entry.js +29 -49
  55. package/dist/cjs/limebb-mention-group-counter.cjs.entry.js +5 -8
  56. package/dist/cjs/limebb-mention.cjs.entry.js +6 -9
  57. package/dist/cjs/limebb-navigation-button_2.cjs.entry.js +10 -14
  58. package/dist/cjs/limebb-notification-item.cjs.entry.js +9 -12
  59. package/dist/cjs/limebb-notification-list.cjs.entry.js +10 -11
  60. package/dist/cjs/limebb-object-chip.cjs.entry.js +16 -15
  61. package/dist/cjs/limebb-percentage-visualizer.cjs.entry.js +9 -10
  62. package/dist/cjs/limebb-property-selector.cjs.entry.js +9 -12
  63. package/dist/cjs/limebb-text-editor-picker.cjs.entry.js +9 -10
  64. package/dist/cjs/limebb-text-editor.cjs.entry.js +53 -307
  65. package/dist/cjs/limebb-trend-indicator.cjs.entry.js +8 -9
  66. package/dist/cjs/{limetype-3c1c53b6.js → limetype-6tkuY6nm.js} +2 -2
  67. package/dist/cjs/loader.cjs.js +3 -5
  68. package/dist/collection/collection-manifest.json +3 -2
  69. package/dist/collection/components/alert-dialog/alert-dialog.css +133 -1
  70. package/dist/collection/components/alert-dialog/alert-dialog.js +11 -10
  71. package/dist/collection/components/browser/browser.js +14 -9
  72. package/dist/collection/components/chat-list/chat-icon-list/chat-icon-list.css +9 -11
  73. package/dist/collection/components/chat-list/chat-icon-list/chat-icon-list.js +3 -2
  74. package/dist/collection/components/chat-list/chat-item/chat-item.css +9 -0
  75. package/dist/collection/components/chat-list/chat-item/chat-item.js +11 -8
  76. package/dist/collection/components/chat-list/chat-list.css +9 -0
  77. package/dist/collection/components/chat-list/chat-list.js +15 -12
  78. package/dist/collection/components/chat-list/typing-indicator/typing-indicator.js +1 -1
  79. package/dist/collection/components/component-command-picker/component-config/component-config.js +23 -19
  80. package/dist/collection/components/component-command-picker/component-picker/component-picker.js +21 -18
  81. package/dist/collection/components/composer-toolbar/composer-toolbar.js +14 -10
  82. package/dist/collection/components/currency-picker/currency-picker.js +15 -13
  83. package/dist/collection/components/dashboard-widget/dashboard-widget.js +11 -10
  84. package/dist/collection/components/data-cells/data-cells.css +9 -0
  85. package/dist/collection/components/data-cells/data-cells.js +8 -5
  86. package/dist/collection/components/date-picker/date-picker.js +20 -17
  87. package/dist/collection/components/date-range/date-range.js +19 -15
  88. package/dist/collection/components/document-chips/document-chips.js +5 -4
  89. package/dist/collection/components/document-picker/document-item/document-item.js +13 -8
  90. package/dist/collection/components/document-picker/document-picker.css +9 -0
  91. package/dist/collection/components/document-picker/document-picker.js +18 -13
  92. package/dist/collection/components/empty-state/empty-state.js +6 -5
  93. package/dist/collection/components/feed/feed-item/feed-timeline-item.css +41 -11
  94. package/dist/collection/components/feed/feed-item/feed-timeline-item.js +12 -9
  95. package/dist/collection/components/feed/feed-item-thumbnail-file-info/feed-item-thumbnail-file-info.css +9 -0
  96. package/dist/collection/components/feed/feed-item-thumbnail-file-info/feed-item-thumbnail-file-info.js +3 -3
  97. package/dist/collection/components/feed/feed.js +21 -18
  98. package/dist/collection/components/icon-picker/icon-picker.js +15 -15
  99. package/dist/collection/components/info-tile/format/config/info-tile-currency-format.js +8 -4
  100. package/dist/collection/components/info-tile/format/config/info-tile-date-format.js +4 -2
  101. package/dist/collection/components/info-tile/format/config/info-tile-decimal-format.js +4 -2
  102. package/dist/collection/components/info-tile/format/config/info-tile-format.js +11 -7
  103. package/dist/collection/components/info-tile/format/config/info-tile-relative-date-format.js +4 -2
  104. package/dist/collection/components/info-tile/format/config/info-tile-unit-format.js +4 -2
  105. package/dist/collection/components/info-tile/info-tile.js +29 -23
  106. package/dist/collection/components/kanban/kanban-group/kanban-group.css +25 -9
  107. package/dist/collection/components/kanban/kanban-group/kanban-group.js +19 -16
  108. package/dist/collection/components/kanban/kanban-item/kanban-item.css +9 -0
  109. package/dist/collection/components/kanban/kanban-item/kanban-item.js +9 -5
  110. package/dist/collection/components/kanban/kanban.js +10 -5
  111. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-builder.js +12 -8
  112. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-comparison.js +11 -9
  113. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-expression.css +9 -0
  114. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-expression.js +14 -10
  115. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-group.css +9 -0
  116. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-group.js +14 -10
  117. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.css +9 -0
  118. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.js +15 -11
  119. package/dist/collection/components/lime-query-builder/expressions/lime-query-value-input.js +17 -14
  120. package/dist/collection/components/lime-query-builder/lime-query-builder.js +13 -9
  121. package/dist/collection/components/lime-query-builder/lime-query-response-format-builder.js +13 -9
  122. package/dist/collection/components/lime-query-builder/limetype-field/limetype-field.js +22 -19
  123. package/dist/collection/components/lime-query-builder/order-by/order-by-editor.js +12 -8
  124. package/dist/collection/components/lime-query-builder/order-by/order-by-item.js +12 -8
  125. package/dist/collection/components/lime-query-builder/property-selector/property-selector.js +12 -10
  126. package/dist/collection/components/lime-query-builder/response-format/response-format-editor.js +11 -7
  127. package/dist/collection/components/lime-query-builder/response-format/response-format-item.css +17 -1
  128. package/dist/collection/components/lime-query-builder/response-format/response-format-item.js +11 -7
  129. package/dist/collection/components/limeobject/file-viewer/file-viewer.js +8 -5
  130. package/dist/collection/components/limeobject/file-viewer/live-docs-info.js +2 -2
  131. package/dist/collection/components/loader/loader.js +4 -2
  132. package/dist/collection/components/locale-picker/locale-picker.js +23 -19
  133. package/dist/collection/components/mention/mention.js +4 -4
  134. package/dist/collection/components/navigation-button/navigation-button.css +24 -1
  135. package/dist/collection/components/navigation-button/navigation-button.js +10 -9
  136. package/dist/collection/components/notification-list/notification-item/notification-item.css +9 -0
  137. package/dist/collection/components/notification-list/notification-item/notification-item.js +9 -5
  138. package/dist/collection/components/notification-list/notification-list.css +9 -0
  139. package/dist/collection/components/notification-list/notification-list.js +12 -8
  140. package/dist/collection/components/object-chip/object-chip.js +7 -6
  141. package/dist/collection/components/percentage-visualizer/percentage-visualizer.css +9 -0
  142. package/dist/collection/components/percentage-visualizer/percentage-visualizer.js +21 -19
  143. package/dist/collection/components/summary-popover/summary-popover.js +28 -21
  144. package/dist/collection/components/text-editor/mention-group-counter.js +8 -7
  145. package/dist/collection/components/text-editor/text-editor-picker.js +10 -7
  146. package/dist/collection/components/text-editor/text-editor.js +37 -29
  147. package/dist/collection/components/trend-indicator/trend-indicator.css +9 -0
  148. package/dist/collection/components/trend-indicator/trend-indicator.js +19 -17
  149. package/dist/components/_Map.js +1 -342
  150. package/dist/components/_MapCache.js +1 -433
  151. package/dist/components/_Uint8Array.js +1 -349
  152. package/dist/components/_baseIsEqual.js +1 -494
  153. package/dist/components/_defineProperty.js +1 -13
  154. package/dist/components/_getTag.js +1 -421
  155. package/dist/components/chat-icon-list.js +1 -55
  156. package/dist/components/chat-item.js +1 -184
  157. package/dist/components/currency-picker.js +1 -1917
  158. package/dist/components/date-picker.js +1 -151
  159. package/dist/components/document-item.js +1 -212
  160. package/dist/components/dom.js +1 -26
  161. package/dist/components/empty-state.js +1 -61
  162. package/dist/components/extension-mapping.js +1 -55
  163. package/dist/components/feed-item-thumbnail-file-info.js +1 -33
  164. package/dist/components/feed-timeline-item.js +1 -453
  165. package/dist/components/get.js +1 -308
  166. package/dist/components/highlight-item.handler.js +1 -36
  167. package/dist/components/index.d.ts +2 -0
  168. package/dist/components/index.esm.js +1 -963
  169. package/dist/components/index.js +1 -1
  170. package/dist/components/isSymbol.js +1 -28
  171. package/dist/components/kanban-group.js +1 -148
  172. package/dist/components/kanban-item.js +1 -182
  173. package/dist/components/keycodes.js +1 -7
  174. package/dist/components/lime-query-filter-builder.js +1 -132
  175. package/dist/components/lime-query-filter-comparison.js +1 -180
  176. package/dist/components/lime-query-filter-expression.js +1 -420
  177. package/dist/components/lime-query-validation.js +1 -617
  178. package/dist/components/lime-query-value-input.js +1 -387
  179. package/dist/components/limebb-alert-dialog.js +1 -71
  180. package/dist/components/limebb-browser.js +1 -116
  181. package/dist/components/limebb-chat-icon-list.js +1 -6
  182. package/dist/components/limebb-chat-item.js +1 -6
  183. package/dist/components/limebb-chat-list.js +1 -302
  184. package/dist/components/limebb-component-config.js +1 -176
  185. package/dist/components/limebb-component-picker.js +1 -180
  186. package/dist/components/limebb-composer-toolbar.js +1 -136
  187. package/dist/components/limebb-currency-picker.js +1 -6
  188. package/dist/components/limebb-dashboard-widget.js +1 -48
  189. package/dist/components/limebb-data-cells.js +1 -169
  190. package/dist/components/limebb-date-picker.js +1 -6
  191. package/dist/components/limebb-date-range.js +1 -83
  192. package/dist/components/limebb-document-chips.js +1 -437
  193. package/dist/components/limebb-document-item.js +1 -6
  194. package/dist/components/limebb-document-picker.js +1 -111
  195. package/dist/components/limebb-empty-state.js +1 -6
  196. package/dist/components/limebb-feed-item-thumbnail-file-info.js +1 -6
  197. package/dist/components/limebb-feed-timeline-item.js +1 -6
  198. package/dist/components/limebb-feed.js +1 -398
  199. package/dist/components/limebb-icon-picker.js +1 -53026
  200. package/dist/components/limebb-info-tile-currency-format.js +1 -116
  201. package/dist/components/limebb-info-tile-date-format.js +1 -272
  202. package/dist/components/limebb-info-tile-decimal-format.js +1 -95
  203. package/dist/components/limebb-info-tile-format.js +1 -144
  204. package/dist/components/limebb-info-tile-relative-date-format.js +1 -72
  205. package/dist/components/limebb-info-tile-unit-format.js +1 -183
  206. package/dist/components/limebb-info-tile.js +1 -626
  207. package/dist/components/limebb-kanban-group.js +1 -6
  208. package/dist/components/limebb-kanban-item.js +1 -6
  209. package/dist/components/limebb-kanban.js +1 -79
  210. package/dist/components/limebb-lime-query-builder.js +1 -424
  211. package/dist/components/limebb-lime-query-filter-builder.js +1 -6
  212. package/dist/components/limebb-lime-query-filter-comparison.js +1 -6
  213. package/dist/components/limebb-lime-query-filter-expression.js +1 -6
  214. package/dist/components/limebb-lime-query-filter-group.js +1 -6
  215. package/dist/components/limebb-lime-query-filter-not.js +1 -6
  216. package/dist/components/limebb-lime-query-order-by-editor.js +1 -6
  217. package/dist/components/limebb-lime-query-order-by-item.js +1 -6
  218. package/dist/components/limebb-lime-query-response-format-builder.js +1 -310
  219. package/dist/components/limebb-lime-query-response-format-editor.js +1 -6
  220. package/dist/components/limebb-lime-query-response-format-item.js +1 -6
  221. package/dist/components/limebb-lime-query-value-input.js +1 -6
  222. package/dist/components/limebb-limeobject-file-viewer.js +1 -175
  223. package/dist/components/limebb-limetype-field.js +1 -6
  224. package/dist/components/limebb-live-docs-info.js +1 -6
  225. package/dist/components/limebb-loader.js +1 -78
  226. package/dist/components/limebb-locale-picker.js +1 -1165
  227. package/dist/components/limebb-mention-group-counter.js +1 -48
  228. package/dist/components/limebb-mention.js +1 -79
  229. package/dist/components/limebb-navigation-button.js +1 -6
  230. package/dist/components/limebb-notification-item.js +1 -6
  231. package/dist/components/limebb-notification-list.js +1 -253
  232. package/dist/components/limebb-object-chip.js +1 -253
  233. package/dist/components/limebb-percentage-visualizer.js +1 -6
  234. package/dist/components/limebb-property-selector.js +1 -6
  235. package/dist/components/limebb-summary-popover.js +1 -6
  236. package/dist/components/limebb-text-editor-picker.js +1 -6
  237. package/dist/components/limebb-text-editor.js +1 -1902
  238. package/dist/components/limebb-trend-indicator.js +1 -175
  239. package/dist/components/limebb-typing-indicator.js +1 -6
  240. package/dist/components/limetype-field.js +1 -216
  241. package/dist/components/limetype.js +1 -85
  242. package/dist/components/live-docs-info.js +1 -34
  243. package/dist/components/navigation-button.js +1 -74
  244. package/dist/components/negate.js +1 -40
  245. package/dist/components/non-null.js +1 -10
  246. package/dist/components/notification-item.js +1 -168
  247. package/dist/components/order-by-editor.js +1 -139
  248. package/dist/components/order-by-item.js +1 -73
  249. package/dist/components/percentage-class.js +1 -64
  250. package/dist/components/percentage-visualizer.js +1 -219
  251. package/dist/components/property-selector.js +1 -372
  252. package/dist/components/random-string.js +1 -22
  253. package/dist/components/response-format-editor.js +1 -331
  254. package/dist/components/response-format-item.js +1 -126
  255. package/dist/components/summary-popover.js +1 -159
  256. package/dist/components/text-editor-picker.js +1 -128
  257. package/dist/components/typing-indicator.js +1 -31
  258. package/dist/esm/{_Map-aede53b6.js → _Map-ByjZfyP_.js} +8 -20
  259. package/dist/esm/{_MapCache-af496e9d.js → _MapCache-C_kVhYUl.js} +5 -7
  260. package/dist/esm/{_Uint8Array-d6ebd526.js → _Uint8Array-DVXPnoWk.js} +6 -10
  261. package/dist/esm/{_baseIsEqual-077b6bb3.js → _baseIsEqual-DB13O4pD.js} +4 -4
  262. package/dist/esm/{_defineProperty-e6a185c3.js → _defineProperty-DSmG08hO.js} +2 -4
  263. package/dist/esm/{_getTag-d02a95fa.js → _getTag-DZlkp9mJ.js} +12 -32
  264. package/dist/esm/{get-3e42932b.js → get-Bo260bSC.js} +6 -14
  265. package/dist/esm/{index-d86e55c0.js → index-BIwHMk6j.js} +539 -300
  266. package/dist/esm/index.esm-BjlE4usG.js +823 -0
  267. package/dist/esm/{isSymbol-1c5f65cc.js → isSymbol-Ci8cASb6.js} +1 -1
  268. package/dist/esm/lime-crm-building-blocks.js +6 -5
  269. package/dist/esm/{lime-query-validation-01797a51.js → lime-query-validation-S9h8L6bg.js} +8 -8
  270. package/dist/esm/limebb-alert-dialog.entry.js +5 -6
  271. package/dist/esm/limebb-browser.entry.js +11 -12
  272. package/dist/esm/limebb-chat-icon-list_3.entry.js +15 -18
  273. package/dist/esm/limebb-chat-list.entry.js +11 -10
  274. package/dist/esm/limebb-component-config.entry.js +17 -14
  275. package/dist/esm/limebb-component-picker.entry.js +9 -10
  276. package/dist/esm/limebb-composer-toolbar.entry.js +9 -10
  277. package/dist/esm/limebb-currency-picker.entry.js +1908 -1789
  278. package/dist/esm/limebb-dashboard-widget.entry.js +4 -5
  279. package/dist/esm/limebb-data-cells.entry.js +5 -6
  280. package/dist/esm/limebb-date-picker.entry.js +7 -7
  281. package/dist/esm/limebb-date-range.entry.js +6 -7
  282. package/dist/esm/limebb-document-chips.entry.js +10 -9
  283. package/dist/esm/limebb-document-item.entry.js +6 -7
  284. package/dist/esm/limebb-document-picker.entry.js +6 -7
  285. package/dist/esm/limebb-empty-state.entry.js +3 -4
  286. package/dist/esm/limebb-feed-item-thumbnail-file-info.entry.js +4 -5
  287. package/dist/esm/limebb-feed-timeline-item.entry.js +8 -9
  288. package/dist/esm/limebb-feed.entry.js +430 -166
  289. package/dist/esm/limebb-icon-picker.entry.js +4 -4
  290. package/dist/esm/limebb-info-tile-currency-format.entry.js +2 -2
  291. package/dist/esm/limebb-info-tile-date-format.entry.js +4 -5
  292. package/dist/esm/limebb-info-tile-decimal-format.entry.js +2 -2
  293. package/dist/esm/limebb-info-tile-format.entry.js +5 -6
  294. package/dist/esm/limebb-info-tile-relative-date-format.entry.js +2 -2
  295. package/dist/esm/limebb-info-tile-unit-format.entry.js +2 -2
  296. package/dist/esm/limebb-info-tile.entry.js +27 -22
  297. package/dist/esm/limebb-kanban-group.entry.js +8 -9
  298. package/dist/esm/limebb-kanban-item.entry.js +8 -9
  299. package/dist/esm/limebb-kanban.entry.js +5 -6
  300. package/dist/esm/limebb-lime-query-builder.entry.js +9 -10
  301. package/dist/esm/limebb-lime-query-filter-builder_3.entry.js +27 -27
  302. package/dist/esm/limebb-lime-query-filter-comparison_2.entry.js +26 -28
  303. package/dist/esm/limebb-lime-query-filter-group_3.entry.js +25 -28
  304. package/dist/esm/limebb-lime-query-order-by-item.entry.js +6 -7
  305. package/dist/esm/limebb-lime-query-response-format-builder.entry.js +9 -10
  306. package/dist/esm/limebb-lime-query-response-format-editor_2.entry.js +8 -10
  307. package/dist/esm/limebb-limeobject-file-viewer.entry.js +9 -10
  308. package/dist/esm/limebb-live-docs-info.entry.js +5 -6
  309. package/dist/esm/limebb-loader.entry.js +12 -8
  310. package/dist/esm/limebb-locale-picker.entry.js +29 -47
  311. package/dist/esm/limebb-mention-group-counter.entry.js +5 -6
  312. package/dist/esm/limebb-mention.entry.js +6 -7
  313. package/dist/esm/limebb-navigation-button_2.entry.js +10 -12
  314. package/dist/esm/limebb-notification-item.entry.js +9 -10
  315. package/dist/esm/limebb-notification-list.entry.js +10 -9
  316. package/dist/esm/limebb-object-chip.entry.js +16 -13
  317. package/dist/esm/limebb-percentage-visualizer.entry.js +9 -8
  318. package/dist/esm/limebb-property-selector.entry.js +9 -10
  319. package/dist/esm/limebb-text-editor-picker.entry.js +9 -8
  320. package/dist/esm/limebb-text-editor.entry.js +53 -305
  321. package/dist/esm/limebb-trend-indicator.entry.js +8 -7
  322. package/dist/esm/{limetype-12fbba0f.js → limetype-B3nph1qc.js} +3 -3
  323. package/dist/esm/loader.js +4 -4
  324. package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
  325. package/dist/lime-crm-building-blocks/{p-eb4aa158.entry.js → p-0afc0db2.entry.js} +1 -1
  326. package/dist/lime-crm-building-blocks/p-12aadae6.entry.js +1 -0
  327. package/dist/lime-crm-building-blocks/p-1428aa13.entry.js +1 -0
  328. package/dist/lime-crm-building-blocks/p-152edb10.entry.js +1 -0
  329. package/dist/lime-crm-building-blocks/p-1a61674f.entry.js +1 -0
  330. package/dist/lime-crm-building-blocks/p-1f02a411.entry.js +1 -0
  331. package/dist/lime-crm-building-blocks/p-21ec697f.entry.js +1 -0
  332. package/dist/lime-crm-building-blocks/p-3252e153.entry.js +1 -0
  333. package/dist/lime-crm-building-blocks/p-3263f8d5.entry.js +1 -0
  334. package/dist/lime-crm-building-blocks/p-32f8477f.entry.js +1 -0
  335. package/dist/lime-crm-building-blocks/p-35a51259.entry.js +1 -0
  336. package/dist/lime-crm-building-blocks/p-38201f65.entry.js +1 -0
  337. package/dist/lime-crm-building-blocks/p-3ef87b11.entry.js +1 -0
  338. package/dist/lime-crm-building-blocks/p-43e22f6d.entry.js +1 -0
  339. package/dist/lime-crm-building-blocks/{p-e79f16ca.entry.js → p-4446f170.entry.js} +1 -1
  340. package/dist/lime-crm-building-blocks/p-4625a9c5.entry.js +1 -0
  341. package/dist/lime-crm-building-blocks/{p-77e7d7da.entry.js → p-49afe71b.entry.js} +1 -1
  342. package/dist/lime-crm-building-blocks/p-4ddd75bc.entry.js +1 -0
  343. package/dist/lime-crm-building-blocks/p-528f3635.entry.js +1 -0
  344. package/dist/lime-crm-building-blocks/p-52fb2a66.entry.js +1 -0
  345. package/dist/lime-crm-building-blocks/p-60e22f51.entry.js +1 -0
  346. package/dist/lime-crm-building-blocks/p-62437a1d.entry.js +1 -0
  347. package/dist/lime-crm-building-blocks/p-626421bf.entry.js +1 -0
  348. package/dist/lime-crm-building-blocks/p-685dd8a1.entry.js +1 -0
  349. package/dist/lime-crm-building-blocks/{p-5277ceca.entry.js → p-6cb2d9dd.entry.js} +1 -1
  350. package/dist/lime-crm-building-blocks/p-6fdee70a.entry.js +1 -0
  351. package/dist/lime-crm-building-blocks/p-71191041.entry.js +1 -0
  352. package/dist/lime-crm-building-blocks/{p-f7122d8e.entry.js → p-740ae712.entry.js} +1 -1
  353. package/dist/lime-crm-building-blocks/p-8477cb5d.entry.js +1 -0
  354. package/dist/lime-crm-building-blocks/{p-50aad872.entry.js → p-8e2cc2e8.entry.js} +1 -1
  355. package/dist/lime-crm-building-blocks/p-9ae55a96.entry.js +1 -0
  356. package/dist/lime-crm-building-blocks/p-B8RiYkLS.js +1 -0
  357. package/dist/lime-crm-building-blocks/p-BIwHMk6j.js +2 -0
  358. package/dist/lime-crm-building-blocks/p-BJ8HvfgI.js +1 -0
  359. package/dist/lime-crm-building-blocks/p-ByjZfyP_.js +1 -0
  360. package/dist/lime-crm-building-blocks/{p-0a266c26.js → p-CMfAKLlA.js} +1 -1
  361. package/dist/lime-crm-building-blocks/p-CQ-z_HTt.js +1 -0
  362. package/dist/lime-crm-building-blocks/p-CcGMZOP-.js +1 -0
  363. package/dist/lime-crm-building-blocks/p-Dm_AIMQj.js +1 -0
  364. package/dist/lime-crm-building-blocks/p-V3xfp9dg.js +1 -0
  365. package/dist/lime-crm-building-blocks/p-aaeecca6.entry.js +1 -0
  366. package/dist/lime-crm-building-blocks/p-ac59093c.entry.js +1 -0
  367. package/dist/lime-crm-building-blocks/p-acbc40f5.entry.js +1 -0
  368. package/dist/lime-crm-building-blocks/p-b2383e7f.entry.js +1 -0
  369. package/dist/lime-crm-building-blocks/p-b36ad4e8.entry.js +1 -0
  370. package/dist/lime-crm-building-blocks/{p-6fb504cb.entry.js → p-b3ee6683.entry.js} +1 -1
  371. package/dist/lime-crm-building-blocks/p-ba42e434.entry.js +1 -0
  372. package/dist/lime-crm-building-blocks/p-bac3d599.entry.js +1 -0
  373. package/dist/lime-crm-building-blocks/p-be8dc8ae.entry.js +1 -0
  374. package/dist/lime-crm-building-blocks/{p-0707d5b0.entry.js → p-c3b13800.entry.js} +1 -1
  375. package/dist/lime-crm-building-blocks/{p-b3ad9f5e.entry.js → p-c6bbcbee.entry.js} +1 -1
  376. package/dist/lime-crm-building-blocks/p-cff9bccd.entry.js +1 -0
  377. package/dist/lime-crm-building-blocks/p-d2a01f51.entry.js +1 -0
  378. package/dist/lime-crm-building-blocks/p-dabb227b.entry.js +1 -0
  379. package/dist/lime-crm-building-blocks/p-e2e9adff.entry.js +1 -0
  380. package/dist/lime-crm-building-blocks/p-ebe6040f.entry.js +1 -0
  381. package/dist/lime-crm-building-blocks/p-eec0a0c8.entry.js +1 -0
  382. package/dist/lime-crm-building-blocks/p-f23ea0e7.entry.js +1 -0
  383. package/dist/lime-crm-building-blocks/{p-0190354e.entry.js → p-fa41a9e6.entry.js} +1 -1
  384. package/dist/lime-crm-building-blocks/p-fcedbc77.entry.js +1 -0
  385. package/dist/lime-crm-building-blocks/p-fdf269f7.entry.js +1 -0
  386. package/dist/lime-crm-building-blocks/p-mljVfXwO.js +1 -0
  387. package/dist/lime-crm-building-blocks/p-wbuFLk-j.js +1 -0
  388. package/dist/lime-crm-building-blocks/p-yc--7_7T.js +1 -0
  389. package/dist/types/components.d.ts +608 -114
  390. package/dist/types/stencil-public-runtime.d.ts +192 -12
  391. package/package.json +10 -10
  392. package/dist/cjs/index.esm-e01e9bd4.js +0 -977
  393. package/dist/esm/index.esm-11a8b9e2.js +0 -963
  394. package/dist/lime-crm-building-blocks/p-121877f3.entry.js +0 -1
  395. package/dist/lime-crm-building-blocks/p-123190c3.js +0 -1
  396. package/dist/lime-crm-building-blocks/p-1317cdfa.entry.js +0 -1
  397. package/dist/lime-crm-building-blocks/p-199799ff.js +0 -1
  398. package/dist/lime-crm-building-blocks/p-1a89328d.entry.js +0 -1
  399. package/dist/lime-crm-building-blocks/p-1b361f60.entry.js +0 -1
  400. package/dist/lime-crm-building-blocks/p-2612f2f6.entry.js +0 -1
  401. package/dist/lime-crm-building-blocks/p-2babfa69.entry.js +0 -1
  402. package/dist/lime-crm-building-blocks/p-2d5e5ab5.entry.js +0 -1
  403. package/dist/lime-crm-building-blocks/p-331fced5.entry.js +0 -1
  404. package/dist/lime-crm-building-blocks/p-35897ec3.js +0 -1
  405. package/dist/lime-crm-building-blocks/p-3a16d7cf.entry.js +0 -1
  406. package/dist/lime-crm-building-blocks/p-3da67f32.entry.js +0 -1
  407. package/dist/lime-crm-building-blocks/p-3dd32e10.entry.js +0 -1
  408. package/dist/lime-crm-building-blocks/p-4894ca5d.entry.js +0 -1
  409. package/dist/lime-crm-building-blocks/p-4b494de7.entry.js +0 -1
  410. package/dist/lime-crm-building-blocks/p-4ca1caf4.entry.js +0 -1
  411. package/dist/lime-crm-building-blocks/p-4eb7a47c.entry.js +0 -1
  412. package/dist/lime-crm-building-blocks/p-50abea43.entry.js +0 -1
  413. package/dist/lime-crm-building-blocks/p-520df198.entry.js +0 -1
  414. package/dist/lime-crm-building-blocks/p-52cf8641.js +0 -2
  415. package/dist/lime-crm-building-blocks/p-5322fd19.js +0 -1
  416. package/dist/lime-crm-building-blocks/p-548e0f2a.entry.js +0 -1
  417. package/dist/lime-crm-building-blocks/p-579be797.entry.js +0 -1
  418. package/dist/lime-crm-building-blocks/p-6a87a407.entry.js +0 -1
  419. package/dist/lime-crm-building-blocks/p-6ad6a88d.entry.js +0 -1
  420. package/dist/lime-crm-building-blocks/p-7365ec1c.entry.js +0 -1
  421. package/dist/lime-crm-building-blocks/p-7e6fb4af.js +0 -1
  422. package/dist/lime-crm-building-blocks/p-81583fc8.entry.js +0 -1
  423. package/dist/lime-crm-building-blocks/p-85709273.entry.js +0 -1
  424. package/dist/lime-crm-building-blocks/p-87d3f42c.entry.js +0 -1
  425. package/dist/lime-crm-building-blocks/p-8dca4e46.entry.js +0 -1
  426. package/dist/lime-crm-building-blocks/p-95b6eaf5.entry.js +0 -1
  427. package/dist/lime-crm-building-blocks/p-973146f7.entry.js +0 -1
  428. package/dist/lime-crm-building-blocks/p-9c25aa2b.entry.js +0 -1
  429. package/dist/lime-crm-building-blocks/p-a959dd49.entry.js +0 -1
  430. package/dist/lime-crm-building-blocks/p-b2763851.entry.js +0 -1
  431. package/dist/lime-crm-building-blocks/p-b31772c8.js +0 -1
  432. package/dist/lime-crm-building-blocks/p-b675d5f0.entry.js +0 -1
  433. package/dist/lime-crm-building-blocks/p-b7959ddb.entry.js +0 -1
  434. package/dist/lime-crm-building-blocks/p-d298b34e.js +0 -1
  435. package/dist/lime-crm-building-blocks/p-d47b6c3c.js +0 -1
  436. package/dist/lime-crm-building-blocks/p-d9045aaa.entry.js +0 -1
  437. package/dist/lime-crm-building-blocks/p-d994067b.entry.js +0 -1
  438. package/dist/lime-crm-building-blocks/p-da42650a.entry.js +0 -1
  439. package/dist/lime-crm-building-blocks/p-dae67f66.entry.js +0 -1
  440. package/dist/lime-crm-building-blocks/p-dce9c951.entry.js +0 -1
  441. package/dist/lime-crm-building-blocks/p-dd5af257.entry.js +0 -1
  442. package/dist/lime-crm-building-blocks/p-ea4daa32.entry.js +0 -1
  443. package/dist/lime-crm-building-blocks/p-eb56d4eb.entry.js +0 -1
  444. package/dist/lime-crm-building-blocks/p-f788a48d.js +0 -1
  445. package/dist/lime-crm-building-blocks/p-fb292b3f.entry.js +0 -1
  446. package/dist/lime-crm-building-blocks/p-fe2b91d9.js +0 -1
  447. package/loader/package.json +0 -11
  448. /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
  449. /package/dist/cjs/{dom-2ea30350.js → dom--t_vVnyU.js} +0 -0
  450. /package/dist/cjs/{extension-mapping-63bdafd3.js → extension-mapping-CvK-Mz3f.js} +0 -0
  451. /package/dist/cjs/{file-extension-7c2eae39.js → file-extension-DolkaRwB.js} +0 -0
  452. /package/dist/cjs/{highlight-item.handler-584ab58a.js → highlight-item.handler-BVqvzXiD.js} +0 -0
  453. /package/dist/cjs/{keycodes-88522d7f.js → keycodes-BCQoLEdB.js} +0 -0
  454. /package/dist/cjs/{negate-e0a2bf77.js → negate-Bg3SqQh6.js} +0 -0
  455. /package/dist/cjs/{non-null-3bf14aa1.js → non-null-BMnREsqJ.js} +0 -0
  456. /package/dist/cjs/{percentage-class-012e94d9.js → percentage-class-DVoYzFLR.js} +0 -0
  457. /package/dist/cjs/{property-resolution-5f798b03.js → property-resolution-Bz1zPcfq.js} +0 -0
  458. /package/dist/cjs/{random-string-aac0a74b.js → random-string-BdZGIsGg.js} +0 -0
  459. /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
  460. /package/dist/esm/{dom-9cc051d7.js → dom-B95D7tDb.js} +0 -0
  461. /package/dist/esm/{extension-mapping-fcade195.js → extension-mapping-Bcm94u_z.js} +0 -0
  462. /package/dist/esm/{file-extension-568475d1.js → file-extension-DtnPTzDv.js} +0 -0
  463. /package/dist/esm/{highlight-item.handler-dfbf11c0.js → highlight-item.handler-BWMpG2bS.js} +0 -0
  464. /package/dist/esm/{keycodes-58a1fcc9.js → keycodes-CwMJvF_Z.js} +0 -0
  465. /package/dist/esm/{negate-55744008.js → negate-ooVD-6_a.js} +0 -0
  466. /package/dist/esm/{non-null-5a66a269.js → non-null-CkTg5UPD.js} +0 -0
  467. /package/dist/esm/{percentage-class-2766f8ef.js → percentage-class-BaQl_Elp.js} +0 -0
  468. /package/dist/esm/{property-resolution-e4e8dcf7.js → property-resolution-CQUZjrU4.js} +0 -0
  469. /package/dist/esm/{random-string-f6ef6fbf.js → random-string-C2JP2nLw.js} +0 -0
  470. /package/dist/lime-crm-building-blocks/{p-4a85590d.js → p-B95D7tDb.js} +0 -0
  471. /package/dist/lime-crm-building-blocks/{p-66352a1e.js → p-BWMpG2bS.js} +0 -0
  472. /package/dist/lime-crm-building-blocks/{p-a99197b1.js → p-BaQl_Elp.js} +0 -0
  473. /package/dist/lime-crm-building-blocks/{p-ab2a95a6.js → p-Bcm94u_z.js} +0 -0
  474. /package/dist/lime-crm-building-blocks/{p-fbda77a7.js → p-C2JP2nLw.js} +0 -0
  475. /package/dist/lime-crm-building-blocks/{p-b02c99d5.js → p-CQUZjrU4.js} +0 -0
  476. /package/dist/lime-crm-building-blocks/{p-1484e300.js → p-CkTg5UPD.js} +0 -0
  477. /package/dist/lime-crm-building-blocks/{p-463d3174.js → p-CwMJvF_Z.js} +0 -0
  478. /package/dist/lime-crm-building-blocks/{p-e1255160.js → p-DQuL1Twl.js} +0 -0
  479. /package/dist/lime-crm-building-blocks/{p-b42e9740.js → p-DtnPTzDv.js} +0 -0
  480. /package/dist/lime-crm-building-blocks/{p-7c9484b1.js → p-ooVD-6_a.js} +0 -0
@@ -1,48 +1 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
-
3
- const mentionGroupCounterCss = ":host(limebb-mention-group-counter){order:2;margin-right:-0.5rem;box-sizing:border-box;transition:background-color 0.2s ease;min-width:fit-content;font-size:smaller;border-radius:9rem;cursor:help;padding:0.25rem 0.5rem;line-height:1;border:1px solid rgb(var(--contrast-500))}:host(limebb-mention-group-counter:hover){border-color:rgb(var(--contrast-100));background-color:rgb(var(--contrast-600))}";
4
- const LimebbMentionGroupCounterStyle0 = mentionGroupCounterCss;
5
-
6
- const MentionGroupCounter = /*@__PURE__*/ proxyCustomElement(class MentionGroupCounter extends HTMLElement {
7
- constructor() {
8
- super();
9
- this.__registerHost();
10
- this.__attachShadow();
11
- this.tooltipId = 'a' + crypto.randomUUID();
12
- }
13
- render() {
14
- const label = this.getLabel();
15
- return [
16
- h("span", { key: 'a99de7da626a8072f75c5db7a361d544e0d25a9d', id: this.tooltipId }, label),
17
- h("limel-tooltip", { key: 'f675f0f135f62714e954c092f59ffb59b59678cd', elementId: this.tooltipId, label: label, helperLabel: this.helperLabel }),
18
- ];
19
- }
20
- getLabel() {
21
- const localname = this.limetype.localname;
22
- const limetypeLabel = this.count === 1 ? localname.singular : localname.plural;
23
- return `${this.count} ${limetypeLabel}`;
24
- }
25
- static get style() { return LimebbMentionGroupCounterStyle0; }
26
- }, [1, "limebb-mention-group-counter", {
27
- "count": [2],
28
- "limetype": [16],
29
- "helperLabel": [1, "helper-label"]
30
- }]);
31
- function defineCustomElement$1() {
32
- if (typeof customElements === "undefined") {
33
- return;
34
- }
35
- const components = ["limebb-mention-group-counter"];
36
- components.forEach(tagName => { switch (tagName) {
37
- case "limebb-mention-group-counter":
38
- if (!customElements.get(tagName)) {
39
- customElements.define(tagName, MentionGroupCounter);
40
- }
41
- break;
42
- } });
43
- }
44
-
45
- const LimebbMentionGroupCounter = MentionGroupCounter;
46
- const defineCustomElement = defineCustomElement$1;
47
-
48
- export { LimebbMentionGroupCounter, defineCustomElement };
1
+ import{proxyCustomElement as e,HTMLElement as t,h as r,transformTag as o}from"@stencil/core/internal/client";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.tooltipId="a"+crypto.randomUUID()}render(){const e=this.getLabel();return[r("span",{key:"8eaed6cd285f7a30e48549959e295de4ac547eab",id:this.tooltipId},e),r("limel-tooltip",{key:"353691fa62d19758453fbd4acbde760c54bd8a86",elementId:this.tooltipId,label:e,helperLabel:this.helperLabel})]}getLabel(){const e=this.limetype.localname;return`${this.count} ${1===this.count?e.singular:e.plural}`}static get style(){return":host(limebb-mention-group-counter){order:2;margin-right:-0.5rem;box-sizing:border-box;transition:background-color 0.2s ease;min-width:fit-content;font-size:smaller;border-radius:9rem;cursor:help;padding:0.25rem 0.5rem;line-height:1;border:1px solid rgb(var(--contrast-500))}:host(limebb-mention-group-counter:hover){border-color:rgb(var(--contrast-100));background-color:rgb(var(--contrast-600))}"}},[1,"limebb-mention-group-counter",{count:[2],limetype:[16],helperLabel:[1,"helper-label"]}]),i=n,s=function(){"undefined"!=typeof customElements&&["limebb-mention-group-counter"].forEach((e=>{"limebb-mention-group-counter"===e&&(customElements.get(o(e))||customElements.define(o(e),n))}))};export{i as LimebbMentionGroupCounter,s as defineCustomElement}
@@ -1,79 +1 @@
1
- import { proxyCustomElement, HTMLElement, getElement, h } from '@stencil/core/internal/client';
2
- import { f as findParentElement } from './dom.js';
3
- import { c } from './index.esm.js';
4
-
5
- const mentionCss = ":host(limebb-mention){display:inline}a{transition:background-color 0.2s ease;white-space:normal;overflow-wrap:break-word;word-break:break-word;padding:0 0.125rem;border-radius:0.25rem;text-decoration:none;color:rgb(var(--color-blue-default));background-color:rgb(var(--color-blue-default), 0.06)}a:hover{background-color:rgb(var(--color-blue-default), 0.16)}a:before,span:before{content:\"@\";opacity:0.7}";
6
- const LimebbMentionStyle0 = mentionCss;
7
-
8
- const Mention = /*@__PURE__*/ proxyCustomElement(class Mention extends HTMLElement {
9
- constructor() {
10
- super();
11
- this.__registerHost();
12
- this.__attachShadow();
13
- }
14
- connectedCallback() {
15
- const element = findParentElement(getElement(this), this.hasPlatform);
16
- if (!element) {
17
- return;
18
- }
19
- this.loadLimeObject(element.platform);
20
- }
21
- hasPlatform(element) {
22
- if (!('platform' in element)) {
23
- return false;
24
- }
25
- if (!element.platform) {
26
- return false;
27
- }
28
- return typeof element.platform === 'object';
29
- }
30
- async loadLimeObject(platform) {
31
- const repository = platform.get(c.LimeObjectRepository);
32
- this.limeobject = repository.getObject(this.limetype, this.objectid);
33
- if (this.limeobject) {
34
- return;
35
- }
36
- try {
37
- await repository.loadObject(this.limetype, this.objectid);
38
- }
39
- catch (_a) {
40
- console.error('Could not load mentioned object');
41
- }
42
- this.limeobject = repository.getObject(this.limetype, this.objectid);
43
- }
44
- render() {
45
- if (!this.limeobject) {
46
- return this.renderSlot();
47
- }
48
- return this.renderLimeObject(this.limeobject);
49
- }
50
- renderLimeObject(limeobject) {
51
- return (h("a", { href: `object/${this.limetype}/${this.objectid}` }, limeobject.descriptive, this.renderSlot({ hidden: true })));
52
- }
53
- renderSlot(attributes = {}) {
54
- return (h("span", Object.assign({}, attributes), h("slot", null)));
55
- }
56
- static get style() { return LimebbMentionStyle0; }
57
- }, [1, "limebb-mention", {
58
- "limetype": [1],
59
- "objectid": [2],
60
- "limeobject": [32]
61
- }]);
62
- function defineCustomElement$1() {
63
- if (typeof customElements === "undefined") {
64
- return;
65
- }
66
- const components = ["limebb-mention"];
67
- components.forEach(tagName => { switch (tagName) {
68
- case "limebb-mention":
69
- if (!customElements.get(tagName)) {
70
- customElements.define(tagName, Mention);
71
- }
72
- break;
73
- } });
74
- }
75
-
76
- const LimebbMention = Mention;
77
- const defineCustomElement = defineCustomElement$1;
78
-
79
- export { LimebbMention, defineCustomElement };
1
+ import{proxyCustomElement as e,HTMLElement as t,getElement as o,h as r,transformTag as i}from"@stencil/core/internal/client";import{f as n}from"./dom.js";import{n as s}from"./index.esm.js";const a=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=n(o(this),this.hasPlatform);e&&this.loadLimeObject(e.platform)}hasPlatform(e){return"platform"in e&&!!e.platform&&"object"==typeof e.platform}async loadLimeObject(e){const t=e.get(s.LimeObjectRepository);if(this.limeobject=t.getObject(this.limetype,this.objectid),!this.limeobject){try{await t.loadObject(this.limetype,this.objectid)}catch(e){console.error("Could not load mentioned object")}this.limeobject=t.getObject(this.limetype,this.objectid)}}render(){return this.limeobject?this.renderLimeObject(this.limeobject):this.renderSlot()}renderLimeObject(e){return r("a",{href:`object/${this.limetype}/${this.objectid}`},e.descriptive,this.renderSlot({hidden:!0}))}renderSlot(e={}){return r("span",Object.assign({},e),r("slot",null))}static get style(){return':host(limebb-mention){display:inline}a{transition:background-color 0.2s ease;white-space:normal;overflow-wrap:break-word;word-break:break-word;padding:0 0.125rem;border-radius:0.25rem;text-decoration:none;color:rgb(var(--color-blue-default));background-color:rgb(var(--color-blue-default), 0.06)}a:hover{background-color:rgb(var(--color-blue-default), 0.16)}a:before,span:before{content:"@";opacity:0.7}'}},[257,"limebb-mention",{limetype:[1],objectid:[2],limeobject:[32]}]),c=a,l=function(){"undefined"!=typeof customElements&&["limebb-mention"].forEach((e=>{"limebb-mention"===e&&(customElements.get(i(e))||customElements.define(i(e),a))}))};export{c as LimebbMention,l as defineCustomElement}
@@ -1,6 +1 @@
1
- import { N as NavigationButton, d as defineCustomElement$1 } from './navigation-button.js';
2
-
3
- const LimebbNavigationButton = NavigationButton;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { LimebbNavigationButton, defineCustomElement };
1
+ import{N as o,d as t}from"./navigation-button.js";const a=o,n=t;export{a as LimebbNavigationButton,n as defineCustomElement}
@@ -1,6 +1 @@
1
- import { N as NotificationListItem, d as defineCustomElement$1 } from './notification-item.js';
2
-
3
- const LimebbNotificationItem = NotificationListItem;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { LimebbNotificationItem, defineCustomElement };
1
+ import{N as o,d as t}from"./notification-item.js";const i=o,s=t;export{i as LimebbNotificationItem,s as defineCustomElement}
@@ -1,253 +1 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { c } from './index.esm.js';
3
- import { d as defineCustomElement$2 } from './notification-item.js';
4
-
5
- /**
6
- * Processes a list of notifications by adding date headers and a "new items" indicator.
7
- *
8
- * @param items - The list of notification items to process. These items must be pre-sorted by their `timestamp` in descending order.
9
- * @param dateTimeFormatter - A service used to format dates for the date headers.
10
- * @param lastVisitedTimestamp - The timestamp of the user's last visit. This is used to determine where the "new items" indicator should be placed.
11
- *
12
- * @returns An array of processed items, including notifications, date headers, and a "new items" indicator if applicable.
13
- *
14
- * @example
15
- * const processedItems = processNotificationItems(
16
- * notifications,
17
- * dateTimeFormatter,
18
- * new Date('2024-09-01T10:00:00Z')
19
- * );
20
- *
21
- * // Output: [
22
- * // { type: 'dateHeader', date: '2024-09-01' },
23
- * // { type: 'notification', item: notification1 },
24
- * // { type: 'notification', item: notification2 },
25
- * // { type: 'newItemIndicator' },
26
- * // { type: 'dateHeader', date: '2024-08-31' },
27
- * // { type: 'notification', item: notification3 },
28
- * // ]
29
- */
30
- function processNotificationItems(items, dateTimeFormatter, lastVisitedTimestamp) {
31
- const initialContext = {
32
- items: items,
33
- processedItems: [],
34
- lastVisitedTimestamp: lastVisitedTimestamp,
35
- dateTimeFormatter: dateTimeFormatter,
36
- newItemIndicatorInserted: false,
37
- lastProcessedDate: null,
38
- hasUnseenNotifications: items.some((item) => lastVisitedTimestamp &&
39
- new Date(item.timestamp) > lastVisitedTimestamp),
40
- };
41
- // Add processors here, in the order they should be executed
42
- const processors = [
43
- insertNotifications,
44
- insertNewItemIndicator,
45
- insertDateGroups,
46
- ];
47
- const finalContext = createPipeline(initialContext, processors);
48
- return finalContext.processedItems;
49
- }
50
- function createPipeline(initialContext, processors) {
51
- // eslint-disable-next-line unicorn/no-array-reduce
52
- return processors.reduce((context, processor) => processor(context), initialContext);
53
- }
54
- /**
55
- *
56
- * @param context
57
- */
58
- function insertNotifications(context) {
59
- for (const item of context.items) {
60
- context.processedItems.push({ type: 'notification', item: item });
61
- }
62
- return context;
63
- }
64
- /**
65
- *
66
- * @param context
67
- */
68
- function insertNewItemIndicator(context) {
69
- const processedWithIndicator = [];
70
- let newItemIndicatorInserted = context.newItemIndicatorInserted;
71
- for (const item of context.processedItems) {
72
- if (item.type === 'notification' &&
73
- context.lastVisitedTimestamp &&
74
- !newItemIndicatorInserted &&
75
- new Date(item.item.timestamp) <= context.lastVisitedTimestamp &&
76
- context.hasUnseenNotifications) {
77
- // Insert the new item indicator before the first old notification
78
- processedWithIndicator.push({ type: 'newItemIndicator' });
79
- newItemIndicatorInserted = true;
80
- }
81
- // Push the current item to the new array
82
- processedWithIndicator.push(item);
83
- }
84
- context.processedItems = processedWithIndicator;
85
- context.newItemIndicatorInserted = newItemIndicatorInserted;
86
- return context;
87
- }
88
- /**
89
- *
90
- * @param context
91
- */
92
- // eslint-disable-next-line sonarjs/cognitive-complexity
93
- function insertDateGroups(context) {
94
- const newProcessedItems = [];
95
- let currentGroup = null;
96
- let lastProcessedDate = null;
97
- // Iterate through the notifications in processedItems
98
- for (const item of context.processedItems) {
99
- if (item.type === 'notification') {
100
- const currentTimestamp = new Date(item.item.timestamp);
101
- const currentDate = context.dateTimeFormatter.format(currentTimestamp, 'date');
102
- // If the date changes, push the previous group and create a new group
103
- if (currentDate !== lastProcessedDate) {
104
- if (currentGroup) {
105
- newProcessedItems.push(currentGroup);
106
- }
107
- currentGroup = {
108
- type: 'group',
109
- groupType: 'dateGroup',
110
- heading: currentDate,
111
- items: [],
112
- };
113
- lastProcessedDate = currentDate;
114
- }
115
- // Add the notification to the current group
116
- if (currentGroup) {
117
- currentGroup.items.push(item);
118
- }
119
- }
120
- else if (item.type === 'newItemIndicator') {
121
- // Insert the newItemIndicator within the current group if it exists
122
- if (currentGroup) {
123
- currentGroup.items.push(item);
124
- }
125
- else {
126
- newProcessedItems.push(item); // Edge case: no group exists, just add the indicator
127
- }
128
- }
129
- }
130
- // Push the last group, if it exists
131
- if (currentGroup) {
132
- newProcessedItems.push(currentGroup);
133
- }
134
- // Return updated context with grouped items
135
- return Object.assign(Object.assign({}, context), { processedItems: newProcessedItems });
136
- }
137
-
138
- const notificationListCss = "@charset \"UTF-8\";:host(limebb-notification-list){--limebb-notification-list-background-color:var(\n --notification-list-background-color,\n rgb(var(--contrast-300))\n );display:flex;flex-direction:column;gap:1rem;max-width:45rem;background-color:var(--limebb-notification-list-background-color);padding:0.5rem}limebb-notification-item:focus{outline:none}limebb-notification-item:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}limebb-notification-item:not(.is-read){--limebb-notification-item-unread-badge-color:rgb(\n var(--color-red-default)\n );--limebb-notification-item-unread-badge-scale:1;background-color:rgb(var(--contrast-100)) !important}limebb-notification-item.is-clickable{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:transparent}limebb-notification-item.is-clickable:hover,limebb-notification-item.is-clickable:focus,limebb-notification-item.is-clickable:focus-visible{will-change:color, background-color, box-shadow, transform}limebb-notification-item.is-clickable:hover,limebb-notification-item.is-clickable:focus-visible{transform:translate3d(0, 0.01rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color)}limebb-notification-item.is-clickable:hover{box-shadow:var(--button-shadow-hovered)}limebb-notification-item.is-clickable:active{--limel-clickable-transform-timing-function:cubic-bezier(\n 0.83,\n -0.15,\n 0.49,\n 1.16\n );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}limebb-notification-item.is-clickable:hover,limebb-notification-item.is-clickable:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}limebb-notification-item.is-clickable:hover{border-color:transparent}limebb-notification-item.is-read{border-color:rgb(var(--contrast-600));background-color:rgb(var(--contrast-500))}limebb-notification-item.is-selected{box-shadow:var(--shadow-focused-state)}limebb-notification-item.is-selected:hover{box-shadow:var(--shadow-focused-state), var(--button-shadow-hovered)}limel-spinner{align-self:center;justify-self:center;margin:auto}.date-group{isolation:isolate;display:flex;flex-direction:column;gap:0.5rem}.date-heading{position:sticky;z-index:1;top:0.25rem;display:flex;border-radius:9rem;padding:0.25rem 0.5rem;margin:0;width:fit-content;font-size:0.75rem;line-height:1;color:rgb(var(--contrast-900));backdrop-filter:blur(0.5rem);-webkit-backdrop-filter:blur(0.5rem);transition:color 0.2s ease, border-color 0.4s ease}.date-heading:hover{color:rgb(var(--contrast-1000));border-color:rgb(var(--contrast-500))}.date-heading:hover:before{opacity:1}.date-heading:before{transition:opacity 0.2s ease;content:\"\";position:absolute;z-index:-1;inset:0;opacity:0.6;border-radius:inherit;background-color:var(--limebb-notification-list-background-color)}.new-items-indicator{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:flex-end;margin:0.25rem 0}.new-items-indicator hr{border:none;position:absolute;width:100%;height:1px;background-color:rgb(var(--color-red-lighter))}.new-items-indicator h3{z-index:1;padding:0 0.5rem;border-radius:1rem;margin:0 1rem;font-size:small;line-height:0.75rem;text-transform:lowercase;color:rgb(var(--color-red-default));background-color:var(--limebb-notification-list-background-color)}";
139
- const LimebbNotificationListStyle0 = notificationListCss;
140
-
141
- const NotificationList = /*@__PURE__*/ proxyCustomElement(class NotificationList extends HTMLElement {
142
- constructor() {
143
- super();
144
- this.__registerHost();
145
- this.__attachShadow();
146
- this.itemClick = createEvent(this, "itemClick", 7);
147
- /**
148
- * List of items to display in the feed.
149
- * These items must be sorted by their `timestamp` in descending order.
150
- */
151
- this.items = [];
152
- this.processedItems = [];
153
- this.handleItemClick = (event) => {
154
- this.itemClick.emit(event.detail);
155
- };
156
- }
157
- handleItemsChange() {
158
- let lastVisited = null;
159
- if (this.lastVisitedTimestamp) {
160
- lastVisited = parseToUTCDate(this.lastVisitedTimestamp);
161
- }
162
- this.processedItems = processNotificationItems(this.items, this.dateTimeFormatter, lastVisited);
163
- }
164
- componentWillLoad() {
165
- this.handleItemsChange();
166
- }
167
- render() {
168
- return [this.renderSpinner(), this.renderNotificationItems()];
169
- }
170
- renderSpinner() {
171
- if (this.loading) {
172
- return h("limel-spinner", { size: "small" });
173
- }
174
- }
175
- renderNotificationItems() {
176
- return this.processedItems.map((item) => {
177
- switch (item.type) {
178
- case 'group': {
179
- return this.renderGroup(item);
180
- }
181
- case 'newItemIndicator': {
182
- return this.renderIndicator();
183
- }
184
- default: {
185
- return null;
186
- }
187
- }
188
- });
189
- }
190
- renderGroup(group) {
191
- return (h("section", { class: "date-group" }, h("a", { class: "date-heading" }, group.heading), group.items.map((item) => {
192
- if (item.type === 'notification') {
193
- return this.renderNotificationItem(item.item);
194
- }
195
- else if (item.type === 'newItemIndicator') {
196
- return this.renderIndicator();
197
- }
198
- })));
199
- }
200
- renderNotificationItem(item) {
201
- return (h("limebb-notification-item", { platform: this.platform, context: this.context, item: item, key: item.id, onInteract: this.handleItemClick }));
202
- }
203
- renderIndicator() {
204
- return (h("div", { class: "new-items-indicator" }, h("hr", null), h("h3", null, this.translator.get('webclient.new'))));
205
- }
206
- get dateTimeFormatter() {
207
- return this.platform.get(c.DateTimeFormatter);
208
- }
209
- get translator() {
210
- return this.platform.get(c.Translate);
211
- }
212
- static get watchers() { return {
213
- "items": ["handleItemsChange"]
214
- }; }
215
- static get style() { return LimebbNotificationListStyle0; }
216
- }, [1, "limebb-notification-list", {
217
- "platform": [16],
218
- "context": [16],
219
- "items": [16],
220
- "loading": [4],
221
- "lastVisitedTimestamp": [1, "last-visited-timestamp"]
222
- }, undefined, {
223
- "items": ["handleItemsChange"]
224
- }]);
225
- function parseToUTCDate(date) {
226
- if (typeof date === 'string') {
227
- return new Date(Date.parse(date));
228
- }
229
- return new Date(date); // This will automatically be UTC
230
- }
231
- function defineCustomElement$1() {
232
- if (typeof customElements === "undefined") {
233
- return;
234
- }
235
- const components = ["limebb-notification-list", "limebb-notification-item"];
236
- components.forEach(tagName => { switch (tagName) {
237
- case "limebb-notification-list":
238
- if (!customElements.get(tagName)) {
239
- customElements.define(tagName, NotificationList);
240
- }
241
- break;
242
- case "limebb-notification-item":
243
- if (!customElements.get(tagName)) {
244
- defineCustomElement$2();
245
- }
246
- break;
247
- } });
248
- }
249
-
250
- const LimebbNotificationList = NotificationList;
251
- const defineCustomElement = defineCustomElement$1;
252
-
253
- export { LimebbNotificationList, defineCustomElement };
1
+ import{proxyCustomElement as e,HTMLElement as i,createEvent as t,h as o,transformTag as r}from"@stencil/core/internal/client";import{n}from"./index.esm.js";import{d as a}from"./notification-item.js";function s(e){for(const i of e.items)e.processedItems.push({type:"notification",item:i});return e}function l(e){const i=[];let t=e.newItemIndicatorInserted;for(const o of e.processedItems)"notification"===o.type&&e.lastVisitedTimestamp&&!t&&new Date(o.item.timestamp)<=e.lastVisitedTimestamp&&e.hasUnseenNotifications&&(i.push({type:"newItemIndicator"}),t=!0),i.push(o);return e.processedItems=i,e.newItemIndicatorInserted=t,e}function c(e){const i=[];let t=null,o=null;for(const r of e.processedItems)if("notification"===r.type){const n=e.dateTimeFormatter.format(new Date(r.item.timestamp),"date");n!==o&&(t&&i.push(t),t={type:"group",groupType:"dateGroup",heading:n,items:[]},o=n),t&&t.items.push(r)}else"newItemIndicator"===r.type&&(t?t.items.push(r):i.push(r));return t&&i.push(t),Object.assign(Object.assign({},e),{processedItems:i})}const m=e(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.itemClick=t(this,"itemClick",7),this.items=[],this.processedItems=[],this.handleItemClick=e=>{this.itemClick.emit(e.detail)}}handleItemsChange(){let e=null;this.lastVisitedTimestamp&&(e=function(e){return new Date("string"==typeof e?Date.parse(e):e)}(this.lastVisitedTimestamp)),this.processedItems=function(e,i,t){return function(e){return[s,l,c].reduce(((e,i)=>i(e)),e)}({items:e,processedItems:[],lastVisitedTimestamp:t,dateTimeFormatter:i,newItemIndicatorInserted:!1,lastProcessedDate:null,hasUnseenNotifications:e.some((e=>t&&new Date(e.timestamp)>t))}).processedItems}(this.items,this.dateTimeFormatter,e)}componentWillLoad(){this.handleItemsChange()}render(){return[this.renderSpinner(),this.renderNotificationItems()]}renderSpinner(){if(this.loading)return o("limel-spinner",{size:"small"})}renderNotificationItems(){return this.processedItems.map((e=>{switch(e.type){case"group":return this.renderGroup(e);case"newItemIndicator":return this.renderIndicator();default:return null}}))}renderGroup(e){return o("section",{class:"date-group"},o("a",{class:"date-heading"},e.heading),e.items.map((e=>"notification"===e.type?this.renderNotificationItem(e.item):"newItemIndicator"===e.type?this.renderIndicator():void 0)))}renderNotificationItem(e){return o("limebb-notification-item",{platform:this.platform,context:this.context,item:e,key:e.id,onInteract:this.handleItemClick})}renderIndicator(){return o("div",{class:"new-items-indicator"},o("hr",null),o("h3",null,this.translator.get("webclient.new")))}get dateTimeFormatter(){return this.platform.get(n.DateTimeFormatter)}get translator(){return this.platform.get(n.Translate)}static get watchers(){return{items:[{handleItemsChange:0}]}}static get style(){return'@charset "UTF-8";:host(limebb-notification-list){--limebb-notification-list-background-color:var( --notification-list-background-color, rgb(var(--contrast-300)) );display:flex;flex-direction:column;gap:1rem;max-width:45rem;background-color:var(--limebb-notification-list-background-color);padding:0.5rem}limebb-notification-item:focus{outline:none}limebb-notification-item:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}limebb-notification-item:not(.is-read){--limebb-notification-item-unread-badge-color:rgb( var(--color-red-default) );--limebb-notification-item-unread-badge-scale:1;background-color:rgb(var(--contrast-100)) !important}limebb-notification-item.is-clickable{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:transparent}limebb-notification-item.is-clickable:hover,limebb-notification-item.is-clickable:focus,limebb-notification-item.is-clickable:focus-visible{will-change:color, background-color, box-shadow, transform}limebb-notification-item.is-clickable:hover,limebb-notification-item.is-clickable:focus-visible{transform:translate3d(0, 0.01rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color)}limebb-notification-item.is-clickable:hover{box-shadow:var(--button-shadow-hovered)}limebb-notification-item.is-clickable:active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}limebb-notification-item.is-clickable:hover,limebb-notification-item.is-clickable:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}limebb-notification-item.is-clickable:hover{border-color:transparent}limebb-notification-item.is-read{border-color:rgb(var(--contrast-600));background-color:rgb(var(--contrast-500))}limebb-notification-item.is-selected{box-shadow:var(--shadow-focused-state)}limebb-notification-item.is-selected:hover{box-shadow:var(--shadow-focused-state), var(--button-shadow-hovered)}limel-spinner{align-self:center;justify-self:center;margin:auto}.date-group{isolation:isolate;display:flex;flex-direction:column;gap:0.5rem}.date-heading{position:sticky;z-index:1;top:0.25rem;display:flex;border-radius:9rem;padding:0.25rem 0.5rem;margin:0;width:fit-content;font-size:0.75rem;line-height:1;color:rgb(var(--contrast-900));backdrop-filter:blur(0.5rem);-webkit-backdrop-filter:blur(0.5rem);transition:color 0.2s ease, border-color 0.4s ease}.date-heading:hover{color:rgb(var(--contrast-1000));border-color:rgb(var(--contrast-500))}.date-heading:hover:before{opacity:1}.date-heading:before{transition:opacity 0.2s ease;content:"";position:absolute;z-index:-1;inset:0;opacity:0.6;border-radius:inherit;background-color:var(--limebb-notification-list-background-color)}.new-items-indicator{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:flex-end;margin:0.25rem 0}.new-items-indicator hr{border:none;position:absolute;width:100%;height:1px;background-color:rgb(var(--color-red-lighter))}.new-items-indicator h3{z-index:1;padding:0 0.5rem;border-radius:1rem;margin:0 1rem;font-size:small;line-height:0.75rem;text-transform:lowercase;color:rgb(var(--color-red-default));background-color:var(--limebb-notification-list-background-color)}'}},[1,"limebb-notification-list",{platform:[16],context:[16],items:[16],loading:[4],lastVisitedTimestamp:[1,"last-visited-timestamp"]},void 0,{items:[{handleItemsChange:0}]}]),d=m,b=function(){"undefined"!=typeof customElements&&["limebb-notification-list","limebb-notification-item"].forEach((e=>{switch(e){case"limebb-notification-list":customElements.get(r(e))||customElements.define(r(e),m);break;case"limebb-notification-item":customElements.get(r(e))||a()}}))};export{d as LimebbNotificationList,b as defineCustomElement}