@limetech/lime-crm-building-blocks 1.124.0 → 1.126.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 (264) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/color-palettes-BWuwMtwv.js +334 -0
  3. package/dist/cjs/index.cjs.js +5 -0
  4. package/dist/cjs/lime-crm-building-blocks.cjs.js +1 -1
  5. package/dist/cjs/limebb-alert-dialog.cjs.entry.js +1 -1
  6. package/dist/cjs/limebb-browser.cjs.entry.js +2 -2
  7. package/dist/cjs/limebb-chat-icon-list_3.cjs.entry.js +4 -4
  8. package/dist/cjs/limebb-chat-list.cjs.entry.js +1 -1
  9. package/dist/cjs/limebb-color-palette-picker.cjs.entry.js +85 -0
  10. package/dist/cjs/limebb-color-palette-swatches.cjs.entry.js +21 -0
  11. package/dist/cjs/limebb-component-config.cjs.entry.js +2 -14
  12. package/dist/cjs/limebb-composer-toolbar.cjs.entry.js +3 -3
  13. package/dist/cjs/limebb-currency-picker.cjs.entry.js +1 -1
  14. package/dist/cjs/limebb-dashboard-widget.cjs.entry.js +1 -1
  15. package/dist/cjs/limebb-date-picker.cjs.entry.js +1 -1
  16. package/dist/cjs/limebb-date-range.cjs.entry.js +1 -1
  17. package/dist/cjs/limebb-document-chips.cjs.entry.js +1 -1
  18. package/dist/cjs/limebb-document-item.cjs.entry.js +2 -2
  19. package/dist/cjs/limebb-document-picker.cjs.entry.js +1 -1
  20. package/dist/cjs/limebb-feed-item-thumbnail-file-info.cjs.entry.js +1 -1
  21. package/dist/cjs/limebb-feed-timeline-item.cjs.entry.js +1 -1
  22. package/dist/cjs/limebb-feed.cjs.entry.js +1 -1
  23. package/dist/cjs/limebb-icon-picker.cjs.entry.js +1 -1
  24. package/dist/cjs/limebb-info-tile-format.cjs.entry.js +1 -1
  25. package/dist/cjs/limebb-info-tile.cjs.entry.js +1 -1
  26. package/dist/cjs/limebb-kanban-group.cjs.entry.js +1 -1
  27. package/dist/cjs/limebb-kanban-item.cjs.entry.js +1 -1
  28. package/dist/cjs/limebb-lime-query-builder.cjs.entry.js +1 -1
  29. package/dist/cjs/limebb-lime-query-filter-builder_3.cjs.entry.js +2 -2
  30. package/dist/cjs/limebb-lime-query-filter-comparison_2.cjs.entry.js +1 -1
  31. package/dist/cjs/limebb-lime-query-filter-group_3.cjs.entry.js +3 -3
  32. package/dist/cjs/limebb-lime-query-order-by-item.cjs.entry.js +2 -2
  33. package/dist/cjs/limebb-lime-query-response-format-builder.cjs.entry.js +1 -1
  34. package/dist/cjs/limebb-lime-query-response-format-editor_2.cjs.entry.js +1 -1
  35. package/dist/cjs/limebb-live-docs-info.cjs.entry.js +2 -2
  36. package/dist/cjs/limebb-locale-picker.cjs.entry.js +1 -1
  37. package/dist/cjs/limebb-mention-group-counter.cjs.entry.js +2 -2
  38. package/dist/cjs/limebb-navigation-button_2.cjs.entry.js +2 -2
  39. package/dist/cjs/limebb-notification-item.cjs.entry.js +1 -1
  40. package/dist/cjs/limebb-percentage-visualizer.cjs.entry.js +2 -2
  41. package/dist/cjs/limebb-rule-chip-popover.cjs.entry.js +59 -0
  42. package/dist/cjs/limebb-rule-editor.cjs.entry.js +646 -0
  43. package/dist/cjs/limebb-rule-gate.cjs.entry.js +5 -1
  44. package/dist/cjs/limebb-text-editor.cjs.entry.js +1 -1
  45. package/dist/cjs/limebb-trend-indicator.cjs.entry.js +1 -1
  46. package/dist/cjs/loader.cjs.js +1 -1
  47. package/dist/cjs/web-component-template-BWCutZB6.js +18 -0
  48. package/dist/collection/collection-manifest.json +4 -0
  49. package/dist/collection/components/alert-dialog/alert-dialog.js +1 -1
  50. package/dist/collection/components/browser/browser.js +2 -2
  51. package/dist/collection/components/chat-list/chat-icon-list/chat-icon-list.js +1 -1
  52. package/dist/collection/components/chat-list/chat-item/chat-item.js +2 -2
  53. package/dist/collection/components/chat-list/chat-list.js +1 -1
  54. package/dist/collection/components/chat-list/typing-indicator/typing-indicator.js +1 -1
  55. package/dist/collection/components/color-palette-picker/color-palette-picker.css +5 -0
  56. package/dist/collection/components/color-palette-picker/color-palette-picker.js +295 -0
  57. package/dist/collection/components/color-palette-picker/color-palette-swatches/color-palette-swatches.css +28 -0
  58. package/dist/collection/components/color-palette-picker/color-palette-swatches/color-palette-swatches.js +61 -0
  59. package/dist/collection/components/composer-toolbar/composer-toolbar.js +3 -3
  60. package/dist/collection/components/currency-picker/currency-picker.js +1 -1
  61. package/dist/collection/components/dashboard-widget/dashboard-widget.js +1 -1
  62. package/dist/collection/components/date-picker/date-picker.js +1 -1
  63. package/dist/collection/components/date-range/date-range.js +1 -1
  64. package/dist/collection/components/document-chips/document-chips.js +1 -1
  65. package/dist/collection/components/document-picker/document-item/document-item.js +2 -2
  66. package/dist/collection/components/document-picker/document-picker.js +1 -1
  67. package/dist/collection/components/feed/feed-item/feed-timeline-item.js +1 -1
  68. package/dist/collection/components/feed/feed-item-thumbnail-file-info/feed-item-thumbnail-file-info.js +1 -1
  69. package/dist/collection/components/feed/feed.js +1 -1
  70. package/dist/collection/components/icon-picker/icon-picker.js +1 -1
  71. package/dist/collection/components/info-tile/format/config/info-tile-format.js +1 -1
  72. package/dist/collection/components/info-tile/info-tile.js +1 -1
  73. package/dist/collection/components/kanban/kanban-group/kanban-group.js +1 -1
  74. package/dist/collection/components/kanban/kanban-item/kanban-item.js +1 -1
  75. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-comparison.js +1 -1
  76. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-group.js +2 -2
  77. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.js +1 -1
  78. package/dist/collection/components/lime-query-builder/lime-query-builder.js +1 -1
  79. package/dist/collection/components/lime-query-builder/lime-query-response-format-builder.js +1 -1
  80. package/dist/collection/components/lime-query-builder/limetype-field/limetype-field.js +1 -1
  81. package/dist/collection/components/lime-query-builder/order-by/order-by-editor.js +1 -1
  82. package/dist/collection/components/lime-query-builder/order-by/order-by-item.js +2 -2
  83. package/dist/collection/components/lime-query-builder/response-format/response-format-item.js +1 -1
  84. package/dist/collection/components/limeobject/file-viewer/live-docs-info.js +2 -2
  85. package/dist/collection/components/locale-picker/locale-picker.js +1 -1
  86. package/dist/collection/components/notification-list/notification-item/notification-item.js +1 -1
  87. package/dist/collection/components/percentage-visualizer/percentage-visualizer.js +2 -2
  88. package/dist/collection/components/rule-editor/chip-picker-view.js +141 -0
  89. package/dist/collection/components/rule-editor/group-node-view.js +79 -0
  90. package/dist/collection/components/rule-editor/rule-chip-popover/rule-chip-popover.css +36 -0
  91. package/dist/collection/components/rule-editor/rule-chip-popover/rule-chip-popover.js +301 -0
  92. package/dist/collection/components/rule-editor/rule-editor-views.js +43 -0
  93. package/dist/collection/components/rule-editor/rule-editor.css +96 -0
  94. package/dist/collection/components/rule-editor/rule-editor.js +457 -0
  95. package/dist/collection/components/rule-editor/rule-operations.js +132 -0
  96. package/dist/collection/components/rule-editor/view-helpers.js +70 -0
  97. package/dist/collection/components/rule-gate/rule-gate.js +9 -4
  98. package/dist/collection/components/summary-popover/summary-popover.js +2 -2
  99. package/dist/collection/components/text-editor/mention-group-counter.js +2 -2
  100. package/dist/collection/components/text-editor/text-editor.js +1 -1
  101. package/dist/collection/components/trend-indicator/trend-indicator.js +1 -1
  102. package/dist/collection/index.js +1 -0
  103. package/dist/collection/util/color-palettes.js +329 -0
  104. package/dist/components/chat-icon-list.js +1 -1
  105. package/dist/components/chat-item.js +1 -1
  106. package/dist/components/color-palettes.js +1 -0
  107. package/dist/components/currency-picker.js +1 -1
  108. package/dist/components/date-picker.js +1 -1
  109. package/dist/components/document-item.js +1 -1
  110. package/dist/components/feed-item-thumbnail-file-info.js +1 -1
  111. package/dist/components/feed-timeline-item.js +1 -1
  112. package/dist/components/index.js +1 -1
  113. package/dist/components/kanban-group.js +1 -1
  114. package/dist/components/kanban-item.js +1 -1
  115. package/dist/components/lime-query-filter-comparison.js +1 -1
  116. package/dist/components/lime-query-filter-expression.js +1 -1
  117. package/dist/components/limebb-alert-dialog.js +1 -1
  118. package/dist/components/limebb-browser.js +1 -1
  119. package/dist/components/limebb-chat-list.js +1 -1
  120. package/dist/components/limebb-color-palette-picker.d.ts +11 -0
  121. package/dist/components/limebb-color-palette-picker.js +1 -0
  122. package/dist/components/limebb-color-palette-swatches.d.ts +11 -0
  123. package/dist/components/limebb-color-palette-swatches.js +1 -0
  124. package/dist/components/limebb-component-config.js +1 -1
  125. package/dist/components/limebb-composer-toolbar.js +1 -1
  126. package/dist/components/limebb-dashboard-widget.js +1 -1
  127. package/dist/components/limebb-date-range.js +1 -1
  128. package/dist/components/limebb-document-chips.js +1 -1
  129. package/dist/components/limebb-document-picker.js +1 -1
  130. package/dist/components/limebb-feed.js +1 -1
  131. package/dist/components/limebb-icon-picker.js +1 -1
  132. package/dist/components/limebb-info-tile-format.js +1 -1
  133. package/dist/components/limebb-info-tile.js +1 -1
  134. package/dist/components/limebb-lime-query-builder.js +1 -1
  135. package/dist/components/limebb-lime-query-response-format-builder.js +1 -1
  136. package/dist/components/limebb-locale-picker.js +1 -1
  137. package/dist/components/limebb-mention-group-counter.js +1 -1
  138. package/dist/components/limebb-rule-chip-popover.d.ts +11 -0
  139. package/dist/components/limebb-rule-chip-popover.js +1 -0
  140. package/dist/components/limebb-rule-editor.d.ts +11 -0
  141. package/dist/components/limebb-rule-editor.js +1 -0
  142. package/dist/components/limebb-rule-gate.js +1 -1
  143. package/dist/components/limebb-text-editor.js +1 -1
  144. package/dist/components/limebb-trend-indicator.js +1 -1
  145. package/dist/components/limetype-field.js +1 -1
  146. package/dist/components/live-docs-info.js +1 -1
  147. package/dist/components/notification-item.js +1 -1
  148. package/dist/components/order-by-editor.js +1 -1
  149. package/dist/components/order-by-item.js +1 -1
  150. package/dist/components/percentage-visualizer.js +1 -1
  151. package/dist/components/response-format-item.js +1 -1
  152. package/dist/components/rule-chip-popover.js +1 -0
  153. package/dist/components/summary-popover.js +1 -1
  154. package/dist/components/typing-indicator.js +1 -1
  155. package/dist/components/web-component-template.js +1 -0
  156. package/dist/esm/color-palettes-1N3bZuHj.js +331 -0
  157. package/dist/esm/index.js +1 -0
  158. package/dist/esm/lime-crm-building-blocks.js +1 -1
  159. package/dist/esm/limebb-alert-dialog.entry.js +1 -1
  160. package/dist/esm/limebb-browser.entry.js +2 -2
  161. package/dist/esm/limebb-chat-icon-list_3.entry.js +4 -4
  162. package/dist/esm/limebb-chat-list.entry.js +1 -1
  163. package/dist/esm/limebb-color-palette-picker.entry.js +83 -0
  164. package/dist/esm/limebb-color-palette-swatches.entry.js +19 -0
  165. package/dist/esm/limebb-component-config.entry.js +2 -14
  166. package/dist/esm/limebb-composer-toolbar.entry.js +3 -3
  167. package/dist/esm/limebb-currency-picker.entry.js +1 -1
  168. package/dist/esm/limebb-dashboard-widget.entry.js +1 -1
  169. package/dist/esm/limebb-date-picker.entry.js +1 -1
  170. package/dist/esm/limebb-date-range.entry.js +1 -1
  171. package/dist/esm/limebb-document-chips.entry.js +1 -1
  172. package/dist/esm/limebb-document-item.entry.js +2 -2
  173. package/dist/esm/limebb-document-picker.entry.js +1 -1
  174. package/dist/esm/limebb-feed-item-thumbnail-file-info.entry.js +1 -1
  175. package/dist/esm/limebb-feed-timeline-item.entry.js +1 -1
  176. package/dist/esm/limebb-feed.entry.js +1 -1
  177. package/dist/esm/limebb-icon-picker.entry.js +1 -1
  178. package/dist/esm/limebb-info-tile-format.entry.js +1 -1
  179. package/dist/esm/limebb-info-tile.entry.js +1 -1
  180. package/dist/esm/limebb-kanban-group.entry.js +1 -1
  181. package/dist/esm/limebb-kanban-item.entry.js +1 -1
  182. package/dist/esm/limebb-lime-query-builder.entry.js +1 -1
  183. package/dist/esm/limebb-lime-query-filter-builder_3.entry.js +2 -2
  184. package/dist/esm/limebb-lime-query-filter-comparison_2.entry.js +1 -1
  185. package/dist/esm/limebb-lime-query-filter-group_3.entry.js +3 -3
  186. package/dist/esm/limebb-lime-query-order-by-item.entry.js +2 -2
  187. package/dist/esm/limebb-lime-query-response-format-builder.entry.js +1 -1
  188. package/dist/esm/limebb-lime-query-response-format-editor_2.entry.js +1 -1
  189. package/dist/esm/limebb-live-docs-info.entry.js +2 -2
  190. package/dist/esm/limebb-locale-picker.entry.js +1 -1
  191. package/dist/esm/limebb-mention-group-counter.entry.js +2 -2
  192. package/dist/esm/limebb-navigation-button_2.entry.js +2 -2
  193. package/dist/esm/limebb-notification-item.entry.js +1 -1
  194. package/dist/esm/limebb-percentage-visualizer.entry.js +2 -2
  195. package/dist/esm/limebb-rule-chip-popover.entry.js +57 -0
  196. package/dist/esm/limebb-rule-editor.entry.js +644 -0
  197. package/dist/esm/limebb-rule-gate.entry.js +5 -1
  198. package/dist/esm/limebb-text-editor.entry.js +1 -1
  199. package/dist/esm/limebb-trend-indicator.entry.js +1 -1
  200. package/dist/esm/loader.js +1 -1
  201. package/dist/esm/web-component-template-6zRYia86.js +16 -0
  202. package/dist/lime-crm-building-blocks/index.esm.js +1 -1
  203. package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
  204. package/dist/lime-crm-building-blocks/{p-e8425a2c.entry.js → p-057e1638.entry.js} +1 -1
  205. package/dist/lime-crm-building-blocks/{p-0f2d1ea7.entry.js → p-0c572fe9.entry.js} +1 -1
  206. package/dist/lime-crm-building-blocks/{p-f0a5076c.entry.js → p-11494f30.entry.js} +1 -1
  207. package/dist/lime-crm-building-blocks/p-1747221f.entry.js +1 -0
  208. package/dist/lime-crm-building-blocks/p-1831e571.entry.js +1 -0
  209. package/dist/lime-crm-building-blocks/{p-8f8108c1.entry.js → p-184ae23d.entry.js} +1 -1
  210. package/dist/lime-crm-building-blocks/p-1N3bZuHj.js +1 -0
  211. package/dist/lime-crm-building-blocks/{p-4f042496.entry.js → p-20206710.entry.js} +1 -1
  212. package/dist/lime-crm-building-blocks/{p-529dbe46.entry.js → p-24fc049c.entry.js} +1 -1
  213. package/dist/lime-crm-building-blocks/{p-e3e2852a.entry.js → p-277b6ad4.entry.js} +1 -1
  214. package/dist/lime-crm-building-blocks/{p-e4ff2906.entry.js → p-2cb31064.entry.js} +1 -1
  215. package/dist/lime-crm-building-blocks/{p-2caf01c8.entry.js → p-3313e357.entry.js} +1 -1
  216. package/dist/lime-crm-building-blocks/{p-ad27bd5d.entry.js → p-3781a766.entry.js} +1 -1
  217. package/dist/lime-crm-building-blocks/{p-85caaf36.entry.js → p-43a7facd.entry.js} +1 -1
  218. package/dist/lime-crm-building-blocks/{p-5f97c392.entry.js → p-6cceabf1.entry.js} +1 -1
  219. package/dist/lime-crm-building-blocks/{p-67326d92.entry.js → p-6d3a9ed3.entry.js} +1 -1
  220. package/dist/lime-crm-building-blocks/{p-09c63bce.entry.js → p-71a6f624.entry.js} +1 -1
  221. package/dist/lime-crm-building-blocks/{p-25c4e389.entry.js → p-731820f0.entry.js} +1 -1
  222. package/dist/lime-crm-building-blocks/p-74455a30.entry.js +1 -0
  223. package/dist/lime-crm-building-blocks/p-7922726c.entry.js +1 -0
  224. package/dist/lime-crm-building-blocks/{p-9214b92e.entry.js → p-7a125570.entry.js} +1 -1
  225. package/dist/lime-crm-building-blocks/{p-dd07a1ac.entry.js → p-7d51a34c.entry.js} +1 -1
  226. package/dist/lime-crm-building-blocks/{p-287780c1.entry.js → p-7fee7ef3.entry.js} +1 -1
  227. package/dist/lime-crm-building-blocks/{p-27798ace.entry.js → p-8084e825.entry.js} +1 -1
  228. package/dist/lime-crm-building-blocks/p-861ac606.entry.js +1 -0
  229. package/dist/lime-crm-building-blocks/{p-fcedbc77.entry.js → p-8d3fa274.entry.js} +1 -1
  230. package/dist/lime-crm-building-blocks/{p-b0567904.entry.js → p-9f7992b0.entry.js} +1 -1
  231. package/dist/lime-crm-building-blocks/p-C_tMNOSt.js +1 -0
  232. package/dist/lime-crm-building-blocks/{p-bb5d40b1.entry.js → p-abcb1e49.entry.js} +1 -1
  233. package/dist/lime-crm-building-blocks/{p-f7114acb.entry.js → p-b1a8d1a0.entry.js} +1 -1
  234. package/dist/lime-crm-building-blocks/p-b8d9ff68.entry.js +1 -0
  235. package/dist/lime-crm-building-blocks/{p-52bddb06.entry.js → p-bec4231f.entry.js} +1 -1
  236. package/dist/lime-crm-building-blocks/{p-5fa5e7f4.entry.js → p-c139ab98.entry.js} +1 -1
  237. package/dist/lime-crm-building-blocks/{p-774cd93c.entry.js → p-c4f41ec4.entry.js} +1 -1
  238. package/dist/lime-crm-building-blocks/{p-4b275818.entry.js → p-c609b5ec.entry.js} +1 -1
  239. package/dist/lime-crm-building-blocks/{p-6a05192a.entry.js → p-c6a913af.entry.js} +1 -1
  240. package/dist/lime-crm-building-blocks/p-dd38e0ba.entry.js +1 -0
  241. package/dist/lime-crm-building-blocks/{p-6cb2d9dd.entry.js → p-de6f4670.entry.js} +1 -1
  242. package/dist/lime-crm-building-blocks/{p-0cbe7498.entry.js → p-e6ed33ff.entry.js} +1 -1
  243. package/dist/lime-crm-building-blocks/p-e717bdff.entry.js +1 -0
  244. package/dist/lime-crm-building-blocks/{p-9d56503d.entry.js → p-ef62c7d8.entry.js} +1 -1
  245. package/dist/lime-crm-building-blocks/{p-9a42ae42.entry.js → p-f0a567f3.entry.js} +1 -1
  246. package/dist/lime-crm-building-blocks/{p-b07b3ae3.entry.js → p-fd6dcfe3.entry.js} +1 -1
  247. package/dist/types/components/color-palette-picker/color-palette-picker.d.ts +89 -0
  248. package/dist/types/components/color-palette-picker/color-palette-swatches/color-palette-swatches.d.ts +23 -0
  249. package/dist/types/components/rule-editor/chip-picker-view.d.ts +27 -0
  250. package/dist/types/components/rule-editor/group-node-view.d.ts +11 -0
  251. package/dist/types/components/rule-editor/rule-chip-popover/rule-chip-popover.d.ts +31 -0
  252. package/dist/types/components/rule-editor/rule-editor-views.d.ts +51 -0
  253. package/dist/types/components/rule-editor/rule-editor.d.ts +118 -0
  254. package/dist/types/components/rule-editor/rule-operations.d.ts +62 -0
  255. package/dist/types/components/rule-editor/view-helpers.d.ts +40 -0
  256. package/dist/types/components/rule-gate/rule-gate.d.ts +5 -2
  257. package/dist/types/components.d.ts +588 -6
  258. package/dist/types/index.d.ts +1 -0
  259. package/dist/types/util/color-palettes.d.ts +67 -0
  260. package/package.json +4 -4
  261. package/dist/lime-crm-building-blocks/p-51ab9d60.entry.js +0 -1
  262. package/dist/lime-crm-building-blocks/p-628ce56b.entry.js +0 -1
  263. package/dist/lime-crm-building-blocks/p-6318fd46.entry.js +0 -1
  264. package/dist/lime-crm-building-blocks/p-c6caa3f9.entry.js +0 -1
@@ -10,6 +10,7 @@ import { PlatformServiceName, } from "@limetech/lime-web-components";
10
10
  * @exampleComponent limebb-example-rule-gate
11
11
  *
12
12
  * @alpha
13
+ * @private
13
14
  */
14
15
  export class RuleGate {
15
16
  constructor() {
@@ -25,13 +26,17 @@ export class RuleGate {
25
26
  this.compileAndEvaluate();
26
27
  }
27
28
  render() {
28
- return (h(Host, { key: 'f421ff8fa1e6955c618e74e6bfdfd4c34e2352fc', hidden: !this.shouldRender }, h("slot", { key: 'f1372eda9eebdba7157e7f80d2eebbdb107e9cee' })));
29
+ return (h(Host, { key: 'b3663501f4878923c36018812e60bfad702c1173', hidden: !this.shouldRender }, h("slot", { key: '1d3193332f682bd6ccb0f0ecc065b8c757f504eb' })));
29
30
  }
30
31
  get ruleRegistry() {
31
32
  return this.platform.get(PlatformServiceName.RuleRegistry);
32
33
  }
33
34
  compileAndEvaluate() {
34
35
  var _a;
36
+ if (!this.rule) {
37
+ this.shouldRender = true;
38
+ return;
39
+ }
35
40
  const compiled = this.ruleRegistry.compile(this.rule);
36
41
  const scope = (_a = this.scope) !== null && _a !== void 0 ? _a : this.ruleRegistry.scope({ host: this.host });
37
42
  this.shouldRender = compiled(scope);
@@ -78,8 +83,8 @@ export class RuleGate {
78
83
  "type": "unknown",
79
84
  "mutable": false,
80
85
  "complexType": {
81
- "original": "Rule",
82
- "resolved": "RuleAll | RuleAny | RuleNot | RuleRef",
86
+ "original": "Rule | undefined",
87
+ "resolved": "RuleAll | RuleAny | RuleNot | RuleRef | undefined",
83
88
  "references": {
84
89
  "Rule": {
85
90
  "location": "import",
@@ -93,7 +98,7 @@ export class RuleGate {
93
98
  "optional": false,
94
99
  "docs": {
95
100
  "tags": [],
96
- "text": "The rule to evaluate."
101
+ "text": "The rule to evaluate. When unset, the gate renders its slot\nunconditionally \u2014 \"no rule\" means \"no gating\", which mirrors\nthe editor's `Rule | undefined` emit contract."
97
102
  },
98
103
  "getter": false,
99
104
  "setter": false
@@ -128,9 +128,9 @@ export class SummaryPopover {
128
128
  top: '0.125rem',
129
129
  right: '0.125rem',
130
130
  };
131
- return (h("limel-popover", { key: 'e4c9b983fcb6653614a4e32fb2e4645d4cad0051', style: {
131
+ return (h("limel-popover", { key: '901e726d37719331f2b30df6e35f2375951c161f', style: {
132
132
  '--limebb-summary-popover-timeout': `${this.triggerDelay}ms`,
133
- }, open: this.isPopoverOpen, onClose: this.onPopoverClose, openDirection: this.openDirection }, h("div", { key: '9d5508336d005dd37eb481895172c20603a1372c', slot: "trigger", onMouseEnter: this.openPopoverWithDelay, onMouseLeave: this.resetTimeout, onFocusin: this.openPopoverWithDelay }, h("slot", { key: '387149baa61ff006740ed57685eb06ed00817420', name: "trigger" }), h("div", { key: 'f20353d74f8c92eb02f74489826ff6d25629f7db', class: "opening-countdown-indicator" })), this.renderCard(closeButtonStyle)));
133
+ }, open: this.isPopoverOpen, onClose: this.onPopoverClose, openDirection: this.openDirection }, h("div", { key: 'a9a73b0a0f16cf12aaa6fa3434071c56a26a1038', slot: "trigger", onMouseEnter: this.openPopoverWithDelay, onMouseLeave: this.resetTimeout, onFocusin: this.openPopoverWithDelay }, h("slot", { key: '594bcc9e419e33ef97fd6ca863cf44a67617fa48', name: "trigger" }), h("div", { key: 'a6f548eeb737f4392e2c938682a1c9a509523658', class: "opening-countdown-indicator" })), this.renderCard(closeButtonStyle)));
134
134
  }
135
135
  renderCard(closeButtonStyle) {
136
136
  return (h("limel-card", { style: {
@@ -13,8 +13,8 @@ export class MentionGroupCounter {
13
13
  render() {
14
14
  const label = this.getLabel();
15
15
  return [
16
- h("span", { key: '8eaed6cd285f7a30e48549959e295de4ac547eab', id: this.tooltipId }, label),
17
- h("limel-tooltip", { key: '353691fa62d19758453fbd4acbde760c54bd8a86', elementId: this.tooltipId, label: label, helperLabel: this.helperLabel }),
16
+ h("span", { key: 'b2dca0d50a70b8c7bf187ef2f6c29960c4caf563', id: this.tooltipId }, label),
17
+ h("limel-tooltip", { key: '97adc0a2b91b830a6fe040712cbdfc1d9839c8f8', elementId: this.tooltipId, label: label, helperLabel: this.helperLabel }),
18
18
  ];
19
19
  }
20
20
  getLabel() {
@@ -391,7 +391,7 @@ export class LimeBBTextEditor {
391
391
  }
392
392
  render() {
393
393
  return [
394
- h("limel-text-editor", { key: '9cd16fcb065db254b472f33f31d5b28abf2ca760', ref: (el) => (this.textEditor = el), tabindex: this.disabled ? -1 : 0, value: this.value, contentType: this.contentType, customElements: this.registeredCustomElements, "aria-disabled": this.disabled, language: this.language, triggers: this.registeredTriggers, onTriggerStart: this.handleTriggerStart, onTriggerStop: this.handleTriggerStop, onTriggerChange: this.handleTriggerChange, onImagePasted: this.handleImagePasted, onMetadataChange: this.handleMetadataChange, ui: this.ui, allowResize: this.allowResize, required: this.required, disabled: this.disabled, readonly: this.readonly, helperText: this.helperText, placeholder: this.placeholder, label: this.label, invalid: this.invalid }),
394
+ h("limel-text-editor", { key: '38d692ec58c569a0429caddf7ecfe418e21ac14b', ref: (el) => (this.textEditor = el), tabindex: this.disabled ? -1 : 0, value: this.value, contentType: this.contentType, customElements: this.registeredCustomElements, "aria-disabled": this.disabled, language: this.language, triggers: this.registeredTriggers, onTriggerStart: this.handleTriggerStart, onTriggerStop: this.handleTriggerStop, onTriggerChange: this.handleTriggerChange, onImagePasted: this.handleImagePasted, onMetadataChange: this.handleMetadataChange, ui: this.ui, allowResize: this.allowResize, required: this.required, disabled: this.disabled, readonly: this.readonly, helperText: this.helperText, placeholder: this.placeholder, label: this.label, invalid: this.invalid }),
395
395
  this.renderPicker(),
396
396
  ];
397
397
  }
@@ -69,7 +69,7 @@ export class TrendIndicator {
69
69
  this.numValue = this.parseValue(this.value);
70
70
  }
71
71
  render() {
72
- return (h(Host, { key: '2c5e17d3dd6943e115333b8aab556ea314838b00', class: this.getContainerClassList() }, h("limel-notched-outline", { key: 'f82fd1a34a820b0af0484fcdf88e227266d953eb', id: this.tooltipId, label: this.label, labelId: this.labelId, invalid: this.invalid, required: this.required, hasValue: true, hasFloatingLabel: true, "aria-labelledby": this.labelId, "aria-describedby": this.helperTextId, "aria-controls": this.helperTextId }, h("div", { key: '48204be0579a640efbee6d55c127c26a97feda9d', slot: "content", tabIndex: 0 }, this.renderVisualization())), this.renderHelperLine(), this.renderTooltip()));
72
+ return (h(Host, { key: 'fd3bce29b7cd49a4642904fa630616b10e7d55b8', class: this.getContainerClassList() }, h("limel-notched-outline", { key: '3502f060569abb0e12c5b6bca84fdf9b190e840f', id: this.tooltipId, label: this.label, labelId: this.labelId, invalid: this.invalid, required: this.required, hasValue: true, hasFloatingLabel: true, "aria-labelledby": this.labelId, "aria-describedby": this.helperTextId, "aria-controls": this.helperTextId }, h("div", { key: '4f007fec33a71fe2205c1fbb861b45b8d41f440e', slot: "content", tabIndex: 0 }, this.renderVisualization())), this.renderHelperLine(), this.renderTooltip()));
73
73
  }
74
74
  renderVisualization() {
75
75
  if (this.reducePresence && (this.numValue === 0 || !this.hasValue())) {
@@ -1,4 +1,5 @@
1
1
  export * from './components';
2
2
  export * from './interface';
3
3
  export * from './factories';
4
+ export * from './util/color-palettes';
4
5
  import "@lundalogik/lime-icons8";
@@ -0,0 +1,329 @@
1
+ /**
2
+ * A small registry of curated color palettes that can be reused
3
+ * wherever Lime CRM needs to assign distinct colors to a list of
4
+ * items — tag swatches, kanban swimlanes, multi-series visuals,
5
+ * legend entries, chart buckets, and so on. Palettes are stored as
6
+ * plain CSS color strings so consumers can hand them straight to a
7
+ * component prop or to inline `style` without further conversion.
8
+ *
9
+ * The default palettes lean on the Lime Extended color palette via
10
+ * `rgb(var(--color-…))` so they pick up dark / light mode
11
+ * automatically. The color-blind-friendly palette uses Wong (2011)
12
+ * hex values verbatim — those are tuned for distinguishability and
13
+ * substituting Lime's nearest neighbours would defeat the purpose.
14
+ *
15
+ * :::important
16
+ * **Append-only:** consumers assign colors by index (often modulo
17
+ * the palette length), so to keep already-saved configurations
18
+ * stable across releases, never reorder or replace existing colors
19
+ * in a palette — only append new ones at the end.
20
+ * :::
21
+ */
22
+ /**
23
+ * Built-in palettes. Order matters — pickers should render them in
24
+ * this order, with the first entry being the most generally useful
25
+ * default.
26
+ *
27
+ * @beta
28
+ */
29
+ export const COLOR_PALETTES = [
30
+ {
31
+ id: 'lime-ui',
32
+ title: 'Lime UI',
33
+ description: 'Vibrant, well-balanced colors drawn from the Lime UI palette. A safe default.',
34
+ colors: [
35
+ 'rgb(var(--color-blue-default))',
36
+ 'rgb(var(--color-orange-default))',
37
+ 'rgb(var(--color-teal-default))',
38
+ 'rgb(var(--color-purple-default))',
39
+ 'rgb(var(--color-amber-default))',
40
+ 'rgb(var(--color-sky-default))',
41
+ 'rgb(var(--color-pink-default))',
42
+ 'rgb(var(--color-lime-default))',
43
+ 'rgb(var(--color-green-default))',
44
+ 'rgb(var(--color-magenta-default))',
45
+ ],
46
+ },
47
+ {
48
+ id: 'soft-pastels',
49
+ title: 'Soft pastels',
50
+ description: 'Light, easy-on-the-eyes shades. Good for dense visuals where the colors should not dominate.',
51
+ colors: [
52
+ 'rgb(var(--color-blue-light))',
53
+ 'rgb(var(--color-orange-light))',
54
+ 'rgb(var(--color-teal-light))',
55
+ 'rgb(var(--color-purple-light))',
56
+ 'rgb(var(--color-amber-light))',
57
+ 'rgb(var(--color-pink-light))',
58
+ 'rgb(var(--color-lime-light))',
59
+ 'rgb(var(--color-gray-light))',
60
+ 'rgb(var(--color-sky-light))',
61
+ 'rgb(var(--color-green-light))',
62
+ ],
63
+ },
64
+ {
65
+ id: 'earth-tones',
66
+ title: 'Earth tones',
67
+ description: 'Warm, organic shades. Reads calmly without grabbing attention; pairs well with neutral surfaces.',
68
+ colors: [
69
+ 'rgb(var(--color-brown-default))',
70
+ 'rgb(var(--color-orange-dark))',
71
+ 'rgb(var(--color-amber-default))',
72
+ 'rgb(var(--color-coral-dark))',
73
+ 'rgb(var(--color-lime-dark))',
74
+ 'rgb(var(--color-glaucous-default))',
75
+ 'rgb(var(--color-yellow-dark))',
76
+ 'rgb(var(--color-gray-dark))',
77
+ 'rgb(var(--color-red-dark))',
78
+ 'rgb(var(--color-green-dark))',
79
+ ],
80
+ },
81
+ {
82
+ id: 'cool-blues',
83
+ title: 'Cool blues',
84
+ description: 'Single-hue gradient from light to deep blue. Good for sequential or ordered values — magnitude, ranks, intensity.',
85
+ colors: [
86
+ 'rgb(var(--color-sky-lighter))',
87
+ 'rgb(var(--color-blue-lighter))',
88
+ 'rgb(var(--color-sky-light))',
89
+ 'rgb(var(--color-blue-light))',
90
+ 'rgb(var(--color-blue-default))',
91
+ 'rgb(var(--color-blue-dark))',
92
+ 'rgb(var(--color-indigo-default))',
93
+ 'rgb(var(--color-indigo-dark))',
94
+ 'rgb(var(--color-blue-darker))',
95
+ 'rgb(var(--color-indigo-darker))',
96
+ ],
97
+ },
98
+ {
99
+ id: 'sunset',
100
+ title: 'Sunset',
101
+ description: 'Warm gradient from yellow through orange to deep pink. Good for intensity or urgency.',
102
+ colors: [
103
+ 'rgb(var(--color-yellow-light))',
104
+ 'rgb(var(--color-amber-light))',
105
+ 'rgb(var(--color-amber-default))',
106
+ 'rgb(var(--color-orange-default))',
107
+ 'rgb(var(--color-coral-default))',
108
+ 'rgb(var(--color-coral-dark))',
109
+ 'rgb(var(--color-pink-default))',
110
+ 'rgb(var(--color-pink-dark))',
111
+ 'rgb(var(--color-magenta-dark))',
112
+ 'rgb(var(--color-purple-darker))',
113
+ ],
114
+ },
115
+ {
116
+ id: 'ocean',
117
+ title: 'Ocean',
118
+ description: 'Cool gradient from pale cyan through teal to deep navy. Good for sequential values where warmth would feel out of place.',
119
+ colors: [
120
+ 'rgb(var(--color-cyan-lighter))',
121
+ 'rgb(var(--color-cyan-light))',
122
+ 'rgb(var(--color-cyan-default))',
123
+ 'rgb(var(--color-teal-light))',
124
+ 'rgb(var(--color-teal-default))',
125
+ 'rgb(var(--color-teal-dark))',
126
+ 'rgb(var(--color-blue-default))',
127
+ 'rgb(var(--color-blue-dark))',
128
+ 'rgb(var(--color-indigo-darker))',
129
+ 'rgb(var(--color-blue-darker))',
130
+ ],
131
+ },
132
+ {
133
+ id: 'jewel-tones',
134
+ title: 'Jewel tones',
135
+ description: 'Rich, saturated colors with a slight retro feel. Good when you want each item to feel substantial and distinctive.',
136
+ colors: [
137
+ 'rgb(var(--color-violet-dark))',
138
+ 'rgb(var(--color-magenta-dark))',
139
+ 'rgb(var(--color-teal-dark))',
140
+ 'rgb(var(--color-amber-dark))',
141
+ 'rgb(var(--color-red-dark))',
142
+ 'rgb(var(--color-indigo-dark))',
143
+ 'rgb(var(--color-purple-dark))',
144
+ 'rgb(var(--color-pink-dark))',
145
+ 'rgb(var(--color-blue-darker))',
146
+ 'rgb(var(--color-green-dark))',
147
+ ],
148
+ },
149
+ {
150
+ id: 'forest',
151
+ title: 'Forest',
152
+ description: 'Greens, mosses and woods. Calm and natural; good when colors should feel grounded rather than corporate.',
153
+ colors: [
154
+ 'rgb(var(--color-green-default))',
155
+ 'rgb(var(--color-lime-default))',
156
+ 'rgb(var(--color-teal-default))',
157
+ 'rgb(var(--color-brown-default))',
158
+ 'rgb(var(--color-amber-default))',
159
+ 'rgb(var(--color-glaucous-default))',
160
+ 'rgb(var(--color-gray-default))',
161
+ 'rgb(var(--color-green-dark))',
162
+ 'rgb(var(--color-lime-dark))',
163
+ 'rgb(var(--color-yellow-dark))',
164
+ ],
165
+ },
166
+ {
167
+ id: 'status',
168
+ title: 'Status',
169
+ description: 'Green-yellow-red traffic-light gradient. Good for risk, severity, or health.',
170
+ colors: [
171
+ 'rgb(var(--color-green-default))',
172
+ 'rgb(var(--color-lime-default))',
173
+ 'rgb(var(--color-grass-default))',
174
+ 'rgb(var(--color-yellow-default))',
175
+ 'rgb(var(--color-amber-default))',
176
+ 'rgb(var(--color-orange-default))',
177
+ 'rgb(var(--color-coral-default))',
178
+ 'rgb(var(--color-red-default))',
179
+ 'rgb(var(--color-red-dark))',
180
+ 'rgb(var(--color-red-darker))',
181
+ ],
182
+ },
183
+ {
184
+ id: 'colorblind-friendly',
185
+ title: 'Color-blind friendly',
186
+ description: 'Distinguishable for the most common forms of color-vision deficiency. Based on Wong (2011) and used verbatim — no dark-mode shifting.',
187
+ colors: [
188
+ '#0072B2', // blue
189
+ '#E69F00', // orange
190
+ '#009E73', // bluish green
191
+ '#CC79A7', // reddish purple
192
+ '#56B4E9', // sky blue
193
+ '#D55E00', // vermillion
194
+ '#F0E442', // yellow
195
+ '#000000', // black
196
+ '#117733', // dark green (Tol)
197
+ '#999999', // medium gray
198
+ ],
199
+ },
200
+ {
201
+ id: 'candy-shop',
202
+ title: 'Candy shop',
203
+ description: 'Bright, playful colors with a sweet-tooth feel. Good for friendly or informal contexts where the chart should look approachable rather than corporate.',
204
+ colors: [
205
+ 'rgb(var(--color-pink-light))',
206
+ 'rgb(var(--color-yellow-light))',
207
+ 'rgb(var(--color-sky-light))',
208
+ 'rgb(var(--color-lime-light))',
209
+ 'rgb(var(--color-coral-light))',
210
+ 'rgb(var(--color-purple-light))',
211
+ 'rgb(var(--color-amber-light))',
212
+ 'rgb(var(--color-magenta-light))',
213
+ 'rgb(var(--color-cyan-light))',
214
+ 'rgb(var(--color-orange-light))',
215
+ ],
216
+ },
217
+ {
218
+ id: 'berry-bowl',
219
+ title: 'Berry bowl',
220
+ description: 'Deep, saturated berries — raspberry, blackcurrant, plum. Reads bold without feeling neon; pairs well with light surfaces.',
221
+ colors: [
222
+ 'rgb(var(--color-magenta-dark))',
223
+ 'rgb(var(--color-purple-dark))',
224
+ 'rgb(var(--color-pink-dark))',
225
+ 'rgb(var(--color-red-dark))',
226
+ 'rgb(var(--color-violet-dark))',
227
+ 'rgb(var(--color-indigo-dark))',
228
+ 'rgb(var(--color-coral-dark))',
229
+ 'rgb(var(--color-amber-dark))',
230
+ 'rgb(var(--color-magenta-darker))',
231
+ 'rgb(var(--color-purple-darker))',
232
+ ],
233
+ },
234
+ {
235
+ id: 'tropical',
236
+ title: 'Tropical',
237
+ description: 'Reef-and-palm warmth — corals, teals, limes and ambers in equal measure. Lively without being loud.',
238
+ colors: [
239
+ 'rgb(var(--color-coral-default))',
240
+ 'rgb(var(--color-teal-default))',
241
+ 'rgb(var(--color-amber-default))',
242
+ 'rgb(var(--color-cyan-default))',
243
+ 'rgb(var(--color-lime-default))',
244
+ 'rgb(var(--color-pink-default))',
245
+ 'rgb(var(--color-orange-default))',
246
+ 'rgb(var(--color-sky-default))',
247
+ 'rgb(var(--color-yellow-default))',
248
+ 'rgb(var(--color-magenta-default))',
249
+ ],
250
+ },
251
+ {
252
+ id: 'slate',
253
+ title: 'Slate',
254
+ description: 'Soft neutrals — grays, glaucous and warm browns. Calm and unobtrusive; good when one or two highlight series should stand out via accent colors.',
255
+ colors: [
256
+ 'rgb(var(--color-glaucous-default))',
257
+ 'rgb(var(--color-brown-default))',
258
+ 'rgb(var(--color-gray-default))',
259
+ 'rgb(var(--color-glaucous-light))',
260
+ 'rgb(var(--color-brown-light))',
261
+ 'rgb(var(--color-gray-light))',
262
+ 'rgb(var(--color-glaucous-dark))',
263
+ 'rgb(var(--color-brown-dark))',
264
+ 'rgb(var(--color-gray-dark))',
265
+ 'rgb(var(--color-glaucous-darker))',
266
+ ],
267
+ },
268
+ {
269
+ id: 'sage',
270
+ title: 'Sage',
271
+ description: 'Muted greens, teals and herbs. Reads quiet and natural; good for long-running dashboards where the data should breathe.',
272
+ colors: [
273
+ 'rgb(var(--color-green-light))',
274
+ 'rgb(var(--color-teal-light))',
275
+ 'rgb(var(--color-lime-light))',
276
+ 'rgb(var(--color-grass-light))',
277
+ 'rgb(var(--color-glaucous-light))',
278
+ 'rgb(var(--color-cyan-light))',
279
+ 'rgb(var(--color-green-lighter))',
280
+ 'rgb(var(--color-teal-lighter))',
281
+ 'rgb(var(--color-lime-lighter))',
282
+ 'rgb(var(--color-grass-lighter))',
283
+ ],
284
+ },
285
+ {
286
+ id: 'dusty-rose',
287
+ title: 'Dusty rose',
288
+ description: 'Faded pinks, mauves and warm sands — like dried flowers. Soft and friendly without feeling sugary.',
289
+ colors: [
290
+ 'rgb(var(--color-pink-lighter))',
291
+ 'rgb(var(--color-coral-lighter))',
292
+ 'rgb(var(--color-amber-lighter))',
293
+ 'rgb(var(--color-violet-lighter))',
294
+ 'rgb(var(--color-magenta-lighter))',
295
+ 'rgb(var(--color-purple-lighter))',
296
+ 'rgb(var(--color-pink-light))',
297
+ 'rgb(var(--color-coral-light))',
298
+ 'rgb(var(--color-violet-light))',
299
+ 'rgb(var(--color-brown-light))',
300
+ ],
301
+ },
302
+ {
303
+ id: 'morning-mist',
304
+ title: 'Morning mist',
305
+ description: 'Pale cool tones — sky, fog and frost. Good when the chart should feel airy and recede behind labels or annotations.',
306
+ colors: [
307
+ 'rgb(var(--color-sky-lighter))',
308
+ 'rgb(var(--color-blue-lighter))',
309
+ 'rgb(var(--color-cyan-lighter))',
310
+ 'rgb(var(--color-teal-lighter))',
311
+ 'rgb(var(--color-violet-lighter))',
312
+ 'rgb(var(--color-indigo-lighter))',
313
+ 'rgb(var(--color-glaucous-light))',
314
+ 'rgb(var(--color-gray-lighter))',
315
+ 'rgb(var(--color-purple-lighter))',
316
+ 'rgb(var(--color-green-lighter))',
317
+ ],
318
+ },
319
+ ];
320
+ /**
321
+ * Look up a palette by id. Returns `undefined` when the id is
322
+ * unknown; callers typically fall back to `COLOR_PALETTES[0]`.
323
+ * @param id - the palette's stable id (see {@link ColorPalette.id}).
324
+ *
325
+ * @beta
326
+ */
327
+ export function getColorPalette(id) {
328
+ return COLOR_PALETTES.find((palette) => palette.id === id);
329
+ }
@@ -1 +1 @@
1
- import{proxyCustomElement as e,HTMLElement as i,h as n,Host as t,transformTag as o}from"@stencil/core/internal/client";const r=e(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return n(t,{key:"7e7416bbf2247bd66a852601549603cf3e0b664e",id:this.item.id},this.renderLabel(),n("div",{key:"2033ea8f3da923b872fe60cf5e8d4d33e854999f",class:"icons"},this.item.icons.map(((e,i)=>this.renderIcon(e,i)))))}renderLabel(){if(this.item.label)return n("span",{class:"label"},this.item.label)}renderIcon(e,i){const t=`icon-${this.item.id}-${i}`;return[n("limel-icon",{tabIndex:0,key:i,id:t,badge:!0,name:e.name,class:{"is-pending":!!e.pending},style:{color:e.color,"background-color":e.backgroundColor}}),this.renderTooltip(e,t)]}renderTooltip(e,i){if(e.title)return n("limel-tooltip",{label:e.title,elementId:i})}static get style(){return'@charset "UTF-8";*,*:before,*:after{box-sizing:border-box}:host(limebb-chat-icon-list){display:flex;align-items:center;gap:0.5rem;margin-right:auto;max-width:calc(100% - 2rem);padding:0 0.25rem}.label{font-size:0.75rem;color:rgb(var(--contrast-900))}.icons{display:flex;align-items:center;gap:0.25rem}.icons:hover limel-icon,.icons:focus-within limel-icon{margin-left:0 !important}limel-icon{--icon-background-color:rgb(var(--contrast-500), 0.5);transition:margin-left 0.2s cubic-bezier(0.075, 0.82, 0.165, 1), opacity 0.2s ease, box-shadow 0.2s ease;position:relative;width:1.75rem;padding:0.375rem;flex-shrink:0}limel-icon:focus{outline:none}limel-icon:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}limel-icon:not(.is-pending):not(:first-child){margin-left:-0.75rem}limel-icon.is-pending{animation:pending 3s linear infinite;padding:0.5rem}limel-icon.is-pending:after{content:"";position:absolute;inset:0;width:1.75rem;height:1.75rem;border-radius:50%;pointer-events:none;border-radius:50%;border:0.125rem solid rgb(var(--color-white), 0.5);border-top-color:rgb(var(--color-black), 0.8);mix-blend-mode:color-dodge;animation:spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite}@keyframes pending{0%,20%,80%,100%{filter:grayscale(0%)}45%,55%{filter:grayscale(100%)}}@keyframes spin{to{transform:rotate(360deg)}}'}},[1,"limebb-chat-icon-list",{item:[16]}]);function s(){"undefined"!=typeof customElements&&["limebb-chat-icon-list"].forEach((e=>{"limebb-chat-icon-list"===e&&(customElements.get(o(e))||customElements.define(o(e),r))}))}export{r as C,s as d}
1
+ import{proxyCustomElement as e,HTMLElement as i,h as n,Host as t,transformTag as o}from"@stencil/core/internal/client";const r=e(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}render(){return n(t,{key:"efe87c0a35ebc87ae04a61422d3b7410189c8f7e",id:this.item.id},this.renderLabel(),n("div",{key:"d0bdaf7023492f926f96449a0d5bc49aa800ecac",class:"icons"},this.item.icons.map(((e,i)=>this.renderIcon(e,i)))))}renderLabel(){if(this.item.label)return n("span",{class:"label"},this.item.label)}renderIcon(e,i){const t=`icon-${this.item.id}-${i}`;return[n("limel-icon",{tabIndex:0,key:i,id:t,badge:!0,name:e.name,class:{"is-pending":!!e.pending},style:{color:e.color,"background-color":e.backgroundColor}}),this.renderTooltip(e,t)]}renderTooltip(e,i){if(e.title)return n("limel-tooltip",{label:e.title,elementId:i})}static get style(){return'@charset "UTF-8";*,*:before,*:after{box-sizing:border-box}:host(limebb-chat-icon-list){display:flex;align-items:center;gap:0.5rem;margin-right:auto;max-width:calc(100% - 2rem);padding:0 0.25rem}.label{font-size:0.75rem;color:rgb(var(--contrast-900))}.icons{display:flex;align-items:center;gap:0.25rem}.icons:hover limel-icon,.icons:focus-within limel-icon{margin-left:0 !important}limel-icon{--icon-background-color:rgb(var(--contrast-500), 0.5);transition:margin-left 0.2s cubic-bezier(0.075, 0.82, 0.165, 1), opacity 0.2s ease, box-shadow 0.2s ease;position:relative;width:1.75rem;padding:0.375rem;flex-shrink:0}limel-icon:focus{outline:none}limel-icon:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}limel-icon:not(.is-pending):not(:first-child){margin-left:-0.75rem}limel-icon.is-pending{animation:pending 3s linear infinite;padding:0.5rem}limel-icon.is-pending:after{content:"";position:absolute;inset:0;width:1.75rem;height:1.75rem;border-radius:50%;pointer-events:none;border-radius:50%;border:0.125rem solid rgb(var(--color-white), 0.5);border-top-color:rgb(var(--color-black), 0.8);mix-blend-mode:color-dodge;animation:spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite}@keyframes pending{0%,20%,80%,100%{filter:grayscale(0%)}45%,55%{filter:grayscale(100%)}}@keyframes spin{to{transform:rotate(360deg)}}'}},[1,"limebb-chat-icon-list",{item:[16]}]);function s(){"undefined"!=typeof customElements&&["limebb-chat-icon-list"].forEach((e=>{"limebb-chat-icon-list"===e&&(customElements.get(o(e))||customElements.define(o(e),r))}))}export{r as C,s as d}
@@ -1 +1 @@
1
- import{proxyCustomElement as t,HTMLElement as e,h as i,Host as r,transformTag as o}from"@stencil/core/internal/client";import{n as a}from"./index.esm.js";const s=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.hasError=!1,this.createActionBarItem=t=>{var e,i;if("separator"in t)return t;let r={value:t,text:null!==(e=t.label)&&void 0!==e?e:"",secondaryText:t.description,disabled:t.disabled};return!t.label&&t.icon?r=Object.assign(Object.assign({},r),{icon:t.icon,text:null!==(i=t.description)&&void 0!==i?i:r.text,iconOnly:!0}):t.icon&&(r=Object.assign(Object.assign({},r),{icon:t.icon})),r},this.handleActionBarItemSelect=t=>{var e;t.stopPropagation();const i=null===(e=t.detail.value)||void 0===e?void 0:e.command;i&&this.commandbus.handle(i)},this.createMenuItem=t=>{var e,i;return"separator"in t?t:{value:t,text:null!==(e=t.label)&&void 0!==e?e:"",secondaryText:t.description,disabled:t.disabled,icon:null!==(i=t.icon)&&void 0!==i?i:""}},this.handleMenuItemSelect=t=>{var e;t.stopPropagation();const i=null===(e=t.detail.value)||void 0===e?void 0:e.command;i&&this.commandbus.handle(i)}}render(){const t=`helper-text-${this.item.id}`;return i(r,{key:"46525ac6490b13214d6e263501a78d6883ede5ae",id:this.item.id,"aria-describedby":this.helperText?t:void 0,"aria-live":this.hasError?"assertive":"off",class:{[`${this.item.ui}`]:!0}},i("div",{key:"eb4df3d91478360373cc1ceb1c821b1bd07c7002",class:"bubble-content"},i("div",{key:"8a3b52a72d2563bf1949b35facc113d1d15e412e",class:"icon-picture"},this.renderIcon(),this.renderAuthorPicture()),this.renderErrorSign(),i("div",{key:"8d121e54e819079243f1d23b455b7029cf826f6c",class:"item"},this.renderHeader(),this.renderValue(),i("footer",{key:"701b37aa33aaf873c271c1c8b9652c4b114b2655"},this.renderHelperText(t),this.renderTimestamp()))),this.renderPromotedAction())}renderErrorSign(){if(this.hasError)return i("limel-icon",{class:"error-sign",name:"brake_warning"})}renderHeader(){var t;if(null===(t=this.item.author)||void 0===t?void 0:t.name)return i("header",null,this.renderAuthorName(),i("div",{class:"action-buttons"},this.renderUnpromotedActionsMenu()))}renderIcon(){var t,e,r,o;if(this.item.icon)return i("limel-icon",{class:"icon",badge:!0,name:null!==(e=null===(t=this.item.icon)||void 0===t?void 0:t.name)&&void 0!==e?e:"dot_circle",style:{color:`${null===(r=this.item.icon)||void 0===r?void 0:r.color}`,"background-color":`${null===(o=this.item.icon)||void 0===o?void 0:o.backgroundColor}`}})}renderHelperText(t){if(this.helperText)return i("span",{class:"helper-text",id:t},this.helperText)}renderValue(){if(this.item.value)return i("limel-markdown",{class:"body-text reset-img-height",value:this.item.value})}renderAuthorName(){var t,e;if("string"==typeof(null===(t=this.item.author)||void 0===t?void 0:t.name))return i("span",{class:"author"},this.item.author.name);if("object"==typeof(null===(e=this.item.author)||void 0===e?void 0:e.name)){const{href:t,title:e,text:r}=this.item.author.name;return i("a",{class:"author",href:t,title:e},r)}}renderAuthorPicture(){var t;if(null===(t=this.item.author)||void 0===t?void 0:t.picture)return"limel-ai-avatar"===this.item.author.picture?i("limel-ai-avatar",{class:"author-avatar"}):i("img",{class:"author-avatar",loading:"lazy",src:this.item.author.picture})}renderUnpromotedActionsMenu(){var t,e;if(!(null===(t=this.item.unpromotedActions)||void 0===t?void 0:t.length))return;const r=this.item.unpromotedActions.map(this.createMenuItem);return i("limel-menu",{class:"unpromoted-actions-menu",items:r,openDirection:"bottom-end",onSelect:this.handleMenuItemSelect},i("limel-icon-button",{icon:"menu_2",slot:"trigger",label:null===(e=this.translator)||void 0===e?void 0:e.get("webclient.more-actions")}))}renderPromotedAction(){if(!this.item.promotedActions)return;const t=this.item.promotedActions.map(this.createActionBarItem);return i("div",{class:"action-bar"},i("div",{class:"action-bar-hider"},i("limel-action-bar",{accessibleLabel:"Action bar",actions:t,layout:"fullWidth",onItemSelected:this.handleActionBarItemSelect})))}renderTimestamp(){const t=this.item.timestamp;if(t)return i("span",{class:"timestamp"},this.dateTimeFormatter.format(t,"timeofday"))}get dateTimeFormatter(){return this.platform.get(a.DateTimeFormatter)}get translator(){var t;return null===(t=this.platform)||void 0===t?void 0:t.get(a.Translate)}get commandbus(){var t;return null===(t=this.platform)||void 0===t?void 0:t.get(a.CommandBus)}static get style(){return'@charset "UTF-8";*{box-sizing:border-box}:host(limebb-chat-item){display:flex;flex-direction:column;gap:0.25rem;min-width:0;min-height:0;max-width:calc(100% - 2rem)}.bubble-content{display:flex;gap:0.25rem;min-width:0;min-height:0}:host(limebb-chat-item:hover) .helper-text,:host(limebb-chat-item:hover) .timestamp,:host(limebb-chat-item:focus-within) .helper-text,:host(limebb-chat-item:focus-within) .timestamp{opacity:1}:host(limebb-chat-item.mine){margin-left:auto}:host(limebb-chat-item.mine) .item{border-bottom-right-radius:0.125rem;background-color:rgb(var(--color-sky-default), 0.2)}:host(limebb-chat-item.mine) .bubble-content{justify-content:end}:host(limebb-chat-item.mine) .icon-picture{order:2}:host(limebb-chat-item.theirs){margin-right:auto}:host(limebb-chat-item.theirs) .item{border-bottom-left-radius:0.125rem;background-color:rgb(var(--contrast-300), 0.7)}.item{display:flex;flex-direction:column;min-width:0;border-radius:1.25rem;padding:0 0.25rem 0.25rem 0.25rem;backdrop-filter:blur(0.5rem);-webkit-backdrop-filter:blur(0.5rem)}.icon-picture{display:flex;flex-direction:column;gap:0.5rem;align-items:center;justify-content:flex-end}.icon-picture:has(.author-avatar) limel-icon{width:1.25rem;padding:0.125rem}.icon{--icon-background-color:rgb(var(--contrast-500), 0.5);flex-shrink:0;padding:0.375rem;width:2.25rem;backdrop-filter:blur(0.5rem);-webkit-backdrop-filter:blur(0.5rem)}limel-ai-avatar.author-avatar{background-color:rgb(var(--color-glaucous-darker))}header{display:flex;justify-content:space-between;align-items:center;min-height:2rem;padding-left:0.5rem}header:not(:has(.unpromoted-actions-menu)){padding-right:0.5rem}.body-text{padding:0.25rem 0.5rem}footer{display:flex;justify-content:space-between;align-items:end;gap:0.5rem;font-size:x-small}footer:not(:empty){padding:0 0.25rem 0.125rem 0.5rem}footer *{transition:opacity 0.2s ease;opacity:0.4}.timestamp{margin-left:auto}.author-avatar{border-radius:50%;width:2rem;height:2rem;object-fit:cover;box-shadow:0 0 0 1px rgb(var(--contrast-600))}.author{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:500;text-decoration:none}a.author{position:relative;cursor:pointer;transition:color 0.2s ease;color:var(--mdc-theme-primary)}a.author:before{transition:opacity 0.2s ease, transform 0.3s ease-out;content:"";position:absolute;inset:auto 0 0 0;width:calc(100% - 0.5rem);margin:auto;height:0.125rem;border-radius:1rem;background-color:currentColor;opacity:0;transform:scale(0.6)}a.author:hover{color:rgb(var(--color-teal-light))}a.author:hover:before{opacity:0.3;transform:scale(1)}limel-action-bar{--action-bar-item-height:1.75rem;transition:opacity 0.2s ease;justify-content:flex-start;opacity:0.8}.action-bar{display:grid;transition:grid-template-rows var(--limebb-promoted-action-bar-grid-template-rows-transition-speed, 0.2s) cubic-bezier(1, 0.09, 0, 0.89) var(--limebb-promoted-action-bar-grid-template-rows-transition-delay, 0s);grid-template-rows:var(--limebb-promoted-action-bar-grid-template-rows, 1fr)}.action-bar-hider{overflow:hidden}limel-action-bar{transition:padding var(--limebb-promoted-action-bar-grid-template-rows-transition-speed) cubic-bezier(1, 0.09, 0, 0.89) var(--limebb-promoted-action-bar-grid-template-rows-transition-delay);padding-top:0;padding-bottom:0.75rem}:host(limebb-chat-item:hover) .action-bar,:host(limebb-chat-item:focus-within) .action-bar,:host(limebb-chat-item:focus-visible) .action-bar{--limebb-promoted-action-bar-grid-template-rows:1fr;will-change:grid-template-rows}:host(limebb-chat-item:hover) limel-action-bar,:host(limebb-chat-item:focus-within) limel-action-bar,:host(limebb-chat-item:focus-visible) limel-action-bar{will-change:opacity;opacity:1}:host(limebb-chat-item:hover),:host(limebb-chat-item:focus-within){--limebb-promoted-action-bar-grid-template-rows-transition-speed:0.46s;--limebb-promoted-action-bar-grid-template-rows-transition-delay:0.7s}.action-bar{min-width:0;width:calc(100% - calc(2rem + 0.25rem))}:host(limebb-chat-item.theirs) .action-bar{margin-left:calc(2rem + 0.25rem)}:host(limebb-chat-item[has-error]:not([has-error=false])) .bubble-content{cursor:help}:host(limebb-chat-item[has-error]:not([has-error=false])) .item{border:1px solid rgb(var(--color-red-default))}:host(limebb-chat-item[has-error]:not([has-error=false])) .error-sign{color:rgb(var(--color-red-default));flex-shrink:0;width:1.25rem;align-self:center}:host(limebb-chat-item.mine[has-error]:not([has-error=false])) .action-bar{padding-left:1.25rem}:host(limebb-chat-item.mine[has-error]:not([has-error=false])) .helper-text{opacity:1;color:rgb(var(--color-red-default))}'}},[1,"limebb-chat-item",{platform:[16],context:[16],item:[16],helperText:[1,"helper-text"],hasError:[516,"has-error"]}]);function n(){"undefined"!=typeof customElements&&["limebb-chat-item"].forEach((t=>{"limebb-chat-item"===t&&(customElements.get(o(t))||customElements.define(o(t),s))}))}export{s as C,n as d}
1
+ import{proxyCustomElement as t,HTMLElement as e,h as i,Host as r,transformTag as o}from"@stencil/core/internal/client";import{n as a}from"./index.esm.js";const s=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.hasError=!1,this.createActionBarItem=t=>{var e,i;if("separator"in t)return t;let r={value:t,text:null!==(e=t.label)&&void 0!==e?e:"",secondaryText:t.description,disabled:t.disabled};return!t.label&&t.icon?r=Object.assign(Object.assign({},r),{icon:t.icon,text:null!==(i=t.description)&&void 0!==i?i:r.text,iconOnly:!0}):t.icon&&(r=Object.assign(Object.assign({},r),{icon:t.icon})),r},this.handleActionBarItemSelect=t=>{var e;t.stopPropagation();const i=null===(e=t.detail.value)||void 0===e?void 0:e.command;i&&this.commandbus.handle(i)},this.createMenuItem=t=>{var e,i;return"separator"in t?t:{value:t,text:null!==(e=t.label)&&void 0!==e?e:"",secondaryText:t.description,disabled:t.disabled,icon:null!==(i=t.icon)&&void 0!==i?i:""}},this.handleMenuItemSelect=t=>{var e;t.stopPropagation();const i=null===(e=t.detail.value)||void 0===e?void 0:e.command;i&&this.commandbus.handle(i)}}render(){const t=`helper-text-${this.item.id}`;return i(r,{key:"971b486298a8f88790178592c174561bdc3b7b13",id:this.item.id,"aria-describedby":this.helperText?t:void 0,"aria-live":this.hasError?"assertive":"off",class:{[`${this.item.ui}`]:!0}},i("div",{key:"b5cde4080a9c6e4d30d89b8d9a323e41d913d00b",class:"bubble-content"},i("div",{key:"1d674bfb86bd0356bbbb1244848f7f9fe2f04916",class:"icon-picture"},this.renderIcon(),this.renderAuthorPicture()),this.renderErrorSign(),i("div",{key:"b4c34568322082230de44312c42b98d86b5a28fc",class:"item"},this.renderHeader(),this.renderValue(),i("footer",{key:"b9a5026726ac13dfe01e02263ace3817c3d71ad4"},this.renderHelperText(t),this.renderTimestamp()))),this.renderPromotedAction())}renderErrorSign(){if(this.hasError)return i("limel-icon",{class:"error-sign",name:"brake_warning"})}renderHeader(){var t;if(null===(t=this.item.author)||void 0===t?void 0:t.name)return i("header",null,this.renderAuthorName(),i("div",{class:"action-buttons"},this.renderUnpromotedActionsMenu()))}renderIcon(){var t,e,r,o;if(this.item.icon)return i("limel-icon",{class:"icon",badge:!0,name:null!==(e=null===(t=this.item.icon)||void 0===t?void 0:t.name)&&void 0!==e?e:"dot_circle",style:{color:`${null===(r=this.item.icon)||void 0===r?void 0:r.color}`,"background-color":`${null===(o=this.item.icon)||void 0===o?void 0:o.backgroundColor}`}})}renderHelperText(t){if(this.helperText)return i("span",{class:"helper-text",id:t},this.helperText)}renderValue(){if(this.item.value)return i("limel-markdown",{class:"body-text reset-img-height",value:this.item.value})}renderAuthorName(){var t,e;if("string"==typeof(null===(t=this.item.author)||void 0===t?void 0:t.name))return i("span",{class:"author"},this.item.author.name);if("object"==typeof(null===(e=this.item.author)||void 0===e?void 0:e.name)){const{href:t,title:e,text:r}=this.item.author.name;return i("a",{class:"author",href:t,title:e},r)}}renderAuthorPicture(){var t;if(null===(t=this.item.author)||void 0===t?void 0:t.picture)return"limel-ai-avatar"===this.item.author.picture?i("limel-ai-avatar",{class:"author-avatar"}):i("img",{class:"author-avatar",loading:"lazy",src:this.item.author.picture})}renderUnpromotedActionsMenu(){var t,e;if(!(null===(t=this.item.unpromotedActions)||void 0===t?void 0:t.length))return;const r=this.item.unpromotedActions.map(this.createMenuItem);return i("limel-menu",{class:"unpromoted-actions-menu",items:r,openDirection:"bottom-end",onSelect:this.handleMenuItemSelect},i("limel-icon-button",{icon:"menu_2",slot:"trigger",label:null===(e=this.translator)||void 0===e?void 0:e.get("webclient.more-actions")}))}renderPromotedAction(){if(!this.item.promotedActions)return;const t=this.item.promotedActions.map(this.createActionBarItem);return i("div",{class:"action-bar"},i("div",{class:"action-bar-hider"},i("limel-action-bar",{accessibleLabel:"Action bar",actions:t,layout:"fullWidth",onItemSelected:this.handleActionBarItemSelect})))}renderTimestamp(){const t=this.item.timestamp;if(t)return i("span",{class:"timestamp"},this.dateTimeFormatter.format(t,"timeofday"))}get dateTimeFormatter(){return this.platform.get(a.DateTimeFormatter)}get translator(){var t;return null===(t=this.platform)||void 0===t?void 0:t.get(a.Translate)}get commandbus(){var t;return null===(t=this.platform)||void 0===t?void 0:t.get(a.CommandBus)}static get style(){return'@charset "UTF-8";*{box-sizing:border-box}:host(limebb-chat-item){display:flex;flex-direction:column;gap:0.25rem;min-width:0;min-height:0;max-width:calc(100% - 2rem)}.bubble-content{display:flex;gap:0.25rem;min-width:0;min-height:0}:host(limebb-chat-item:hover) .helper-text,:host(limebb-chat-item:hover) .timestamp,:host(limebb-chat-item:focus-within) .helper-text,:host(limebb-chat-item:focus-within) .timestamp{opacity:1}:host(limebb-chat-item.mine){margin-left:auto}:host(limebb-chat-item.mine) .item{border-bottom-right-radius:0.125rem;background-color:rgb(var(--color-sky-default), 0.2)}:host(limebb-chat-item.mine) .bubble-content{justify-content:end}:host(limebb-chat-item.mine) .icon-picture{order:2}:host(limebb-chat-item.theirs){margin-right:auto}:host(limebb-chat-item.theirs) .item{border-bottom-left-radius:0.125rem;background-color:rgb(var(--contrast-300), 0.7)}.item{display:flex;flex-direction:column;min-width:0;border-radius:1.25rem;padding:0 0.25rem 0.25rem 0.25rem;backdrop-filter:blur(0.5rem);-webkit-backdrop-filter:blur(0.5rem)}.icon-picture{display:flex;flex-direction:column;gap:0.5rem;align-items:center;justify-content:flex-end}.icon-picture:has(.author-avatar) limel-icon{width:1.25rem;padding:0.125rem}.icon{--icon-background-color:rgb(var(--contrast-500), 0.5);flex-shrink:0;padding:0.375rem;width:2.25rem;backdrop-filter:blur(0.5rem);-webkit-backdrop-filter:blur(0.5rem)}limel-ai-avatar.author-avatar{background-color:rgb(var(--color-glaucous-darker))}header{display:flex;justify-content:space-between;align-items:center;min-height:2rem;padding-left:0.5rem}header:not(:has(.unpromoted-actions-menu)){padding-right:0.5rem}.body-text{padding:0.25rem 0.5rem}footer{display:flex;justify-content:space-between;align-items:end;gap:0.5rem;font-size:x-small}footer:not(:empty){padding:0 0.25rem 0.125rem 0.5rem}footer *{transition:opacity 0.2s ease;opacity:0.4}.timestamp{margin-left:auto}.author-avatar{border-radius:50%;width:2rem;height:2rem;object-fit:cover;box-shadow:0 0 0 1px rgb(var(--contrast-600))}.author{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:500;text-decoration:none}a.author{position:relative;cursor:pointer;transition:color 0.2s ease;color:var(--mdc-theme-primary)}a.author:before{transition:opacity 0.2s ease, transform 0.3s ease-out;content:"";position:absolute;inset:auto 0 0 0;width:calc(100% - 0.5rem);margin:auto;height:0.125rem;border-radius:1rem;background-color:currentColor;opacity:0;transform:scale(0.6)}a.author:hover{color:rgb(var(--color-teal-light))}a.author:hover:before{opacity:0.3;transform:scale(1)}limel-action-bar{--action-bar-item-height:1.75rem;transition:opacity 0.2s ease;justify-content:flex-start;opacity:0.8}.action-bar{display:grid;transition:grid-template-rows var(--limebb-promoted-action-bar-grid-template-rows-transition-speed, 0.2s) cubic-bezier(1, 0.09, 0, 0.89) var(--limebb-promoted-action-bar-grid-template-rows-transition-delay, 0s);grid-template-rows:var(--limebb-promoted-action-bar-grid-template-rows, 1fr)}.action-bar-hider{overflow:hidden}limel-action-bar{transition:padding var(--limebb-promoted-action-bar-grid-template-rows-transition-speed) cubic-bezier(1, 0.09, 0, 0.89) var(--limebb-promoted-action-bar-grid-template-rows-transition-delay);padding-top:0;padding-bottom:0.75rem}:host(limebb-chat-item:hover) .action-bar,:host(limebb-chat-item:focus-within) .action-bar,:host(limebb-chat-item:focus-visible) .action-bar{--limebb-promoted-action-bar-grid-template-rows:1fr;will-change:grid-template-rows}:host(limebb-chat-item:hover) limel-action-bar,:host(limebb-chat-item:focus-within) limel-action-bar,:host(limebb-chat-item:focus-visible) limel-action-bar{will-change:opacity;opacity:1}:host(limebb-chat-item:hover),:host(limebb-chat-item:focus-within){--limebb-promoted-action-bar-grid-template-rows-transition-speed:0.46s;--limebb-promoted-action-bar-grid-template-rows-transition-delay:0.7s}.action-bar{min-width:0;width:calc(100% - calc(2rem + 0.25rem))}:host(limebb-chat-item.theirs) .action-bar{margin-left:calc(2rem + 0.25rem)}:host(limebb-chat-item[has-error]:not([has-error=false])) .bubble-content{cursor:help}:host(limebb-chat-item[has-error]:not([has-error=false])) .item{border:1px solid rgb(var(--color-red-default))}:host(limebb-chat-item[has-error]:not([has-error=false])) .error-sign{color:rgb(var(--color-red-default));flex-shrink:0;width:1.25rem;align-self:center}:host(limebb-chat-item.mine[has-error]:not([has-error=false])) .action-bar{padding-left:1.25rem}:host(limebb-chat-item.mine[has-error]:not([has-error=false])) .helper-text{opacity:1;color:rgb(var(--color-red-default))}'}},[1,"limebb-chat-item",{platform:[16],context:[16],item:[16],helperText:[1,"helper-text"],hasError:[516,"has-error"]}]);function n(){"undefined"!=typeof customElements&&["limebb-chat-item"].forEach((t=>{"limebb-chat-item"===t&&(customElements.get(o(t))||customElements.define(o(t),s))}))}export{s as C,n as d}
@@ -0,0 +1 @@
1
+ const r=[{id:"lime-ui",title:"Lime UI",description:"Vibrant, well-balanced colors drawn from the Lime UI palette. A safe default.",colors:["rgb(var(--color-blue-default))","rgb(var(--color-orange-default))","rgb(var(--color-teal-default))","rgb(var(--color-purple-default))","rgb(var(--color-amber-default))","rgb(var(--color-sky-default))","rgb(var(--color-pink-default))","rgb(var(--color-lime-default))","rgb(var(--color-green-default))","rgb(var(--color-magenta-default))"]},{id:"soft-pastels",title:"Soft pastels",description:"Light, easy-on-the-eyes shades. Good for dense visuals where the colors should not dominate.",colors:["rgb(var(--color-blue-light))","rgb(var(--color-orange-light))","rgb(var(--color-teal-light))","rgb(var(--color-purple-light))","rgb(var(--color-amber-light))","rgb(var(--color-pink-light))","rgb(var(--color-lime-light))","rgb(var(--color-gray-light))","rgb(var(--color-sky-light))","rgb(var(--color-green-light))"]},{id:"earth-tones",title:"Earth tones",description:"Warm, organic shades. Reads calmly without grabbing attention; pairs well with neutral surfaces.",colors:["rgb(var(--color-brown-default))","rgb(var(--color-orange-dark))","rgb(var(--color-amber-default))","rgb(var(--color-coral-dark))","rgb(var(--color-lime-dark))","rgb(var(--color-glaucous-default))","rgb(var(--color-yellow-dark))","rgb(var(--color-gray-dark))","rgb(var(--color-red-dark))","rgb(var(--color-green-dark))"]},{id:"cool-blues",title:"Cool blues",description:"Single-hue gradient from light to deep blue. Good for sequential or ordered values — magnitude, ranks, intensity.",colors:["rgb(var(--color-sky-lighter))","rgb(var(--color-blue-lighter))","rgb(var(--color-sky-light))","rgb(var(--color-blue-light))","rgb(var(--color-blue-default))","rgb(var(--color-blue-dark))","rgb(var(--color-indigo-default))","rgb(var(--color-indigo-dark))","rgb(var(--color-blue-darker))","rgb(var(--color-indigo-darker))"]},{id:"sunset",title:"Sunset",description:"Warm gradient from yellow through orange to deep pink. Good for intensity or urgency.",colors:["rgb(var(--color-yellow-light))","rgb(var(--color-amber-light))","rgb(var(--color-amber-default))","rgb(var(--color-orange-default))","rgb(var(--color-coral-default))","rgb(var(--color-coral-dark))","rgb(var(--color-pink-default))","rgb(var(--color-pink-dark))","rgb(var(--color-magenta-dark))","rgb(var(--color-purple-darker))"]},{id:"ocean",title:"Ocean",description:"Cool gradient from pale cyan through teal to deep navy. Good for sequential values where warmth would feel out of place.",colors:["rgb(var(--color-cyan-lighter))","rgb(var(--color-cyan-light))","rgb(var(--color-cyan-default))","rgb(var(--color-teal-light))","rgb(var(--color-teal-default))","rgb(var(--color-teal-dark))","rgb(var(--color-blue-default))","rgb(var(--color-blue-dark))","rgb(var(--color-indigo-darker))","rgb(var(--color-blue-darker))"]},{id:"jewel-tones",title:"Jewel tones",description:"Rich, saturated colors with a slight retro feel. Good when you want each item to feel substantial and distinctive.",colors:["rgb(var(--color-violet-dark))","rgb(var(--color-magenta-dark))","rgb(var(--color-teal-dark))","rgb(var(--color-amber-dark))","rgb(var(--color-red-dark))","rgb(var(--color-indigo-dark))","rgb(var(--color-purple-dark))","rgb(var(--color-pink-dark))","rgb(var(--color-blue-darker))","rgb(var(--color-green-dark))"]},{id:"forest",title:"Forest",description:"Greens, mosses and woods. Calm and natural; good when colors should feel grounded rather than corporate.",colors:["rgb(var(--color-green-default))","rgb(var(--color-lime-default))","rgb(var(--color-teal-default))","rgb(var(--color-brown-default))","rgb(var(--color-amber-default))","rgb(var(--color-glaucous-default))","rgb(var(--color-gray-default))","rgb(var(--color-green-dark))","rgb(var(--color-lime-dark))","rgb(var(--color-yellow-dark))"]},{id:"status",title:"Status",description:"Green-yellow-red traffic-light gradient. Good for risk, severity, or health.",colors:["rgb(var(--color-green-default))","rgb(var(--color-lime-default))","rgb(var(--color-grass-default))","rgb(var(--color-yellow-default))","rgb(var(--color-amber-default))","rgb(var(--color-orange-default))","rgb(var(--color-coral-default))","rgb(var(--color-red-default))","rgb(var(--color-red-dark))","rgb(var(--color-red-darker))"]},{id:"colorblind-friendly",title:"Color-blind friendly",description:"Distinguishable for the most common forms of color-vision deficiency. Based on Wong (2011) and used verbatim — no dark-mode shifting.",colors:["#0072B2","#E69F00","#009E73","#CC79A7","#56B4E9","#D55E00","#F0E442","#000000","#117733","#999999"]},{id:"candy-shop",title:"Candy shop",description:"Bright, playful colors with a sweet-tooth feel. Good for friendly or informal contexts where the chart should look approachable rather than corporate.",colors:["rgb(var(--color-pink-light))","rgb(var(--color-yellow-light))","rgb(var(--color-sky-light))","rgb(var(--color-lime-light))","rgb(var(--color-coral-light))","rgb(var(--color-purple-light))","rgb(var(--color-amber-light))","rgb(var(--color-magenta-light))","rgb(var(--color-cyan-light))","rgb(var(--color-orange-light))"]},{id:"berry-bowl",title:"Berry bowl",description:"Deep, saturated berries — raspberry, blackcurrant, plum. Reads bold without feeling neon; pairs well with light surfaces.",colors:["rgb(var(--color-magenta-dark))","rgb(var(--color-purple-dark))","rgb(var(--color-pink-dark))","rgb(var(--color-red-dark))","rgb(var(--color-violet-dark))","rgb(var(--color-indigo-dark))","rgb(var(--color-coral-dark))","rgb(var(--color-amber-dark))","rgb(var(--color-magenta-darker))","rgb(var(--color-purple-darker))"]},{id:"tropical",title:"Tropical",description:"Reef-and-palm warmth — corals, teals, limes and ambers in equal measure. Lively without being loud.",colors:["rgb(var(--color-coral-default))","rgb(var(--color-teal-default))","rgb(var(--color-amber-default))","rgb(var(--color-cyan-default))","rgb(var(--color-lime-default))","rgb(var(--color-pink-default))","rgb(var(--color-orange-default))","rgb(var(--color-sky-default))","rgb(var(--color-yellow-default))","rgb(var(--color-magenta-default))"]},{id:"slate",title:"Slate",description:"Soft neutrals — grays, glaucous and warm browns. Calm and unobtrusive; good when one or two highlight series should stand out via accent colors.",colors:["rgb(var(--color-glaucous-default))","rgb(var(--color-brown-default))","rgb(var(--color-gray-default))","rgb(var(--color-glaucous-light))","rgb(var(--color-brown-light))","rgb(var(--color-gray-light))","rgb(var(--color-glaucous-dark))","rgb(var(--color-brown-dark))","rgb(var(--color-gray-dark))","rgb(var(--color-glaucous-darker))"]},{id:"sage",title:"Sage",description:"Muted greens, teals and herbs. Reads quiet and natural; good for long-running dashboards where the data should breathe.",colors:["rgb(var(--color-green-light))","rgb(var(--color-teal-light))","rgb(var(--color-lime-light))","rgb(var(--color-grass-light))","rgb(var(--color-glaucous-light))","rgb(var(--color-cyan-light))","rgb(var(--color-green-lighter))","rgb(var(--color-teal-lighter))","rgb(var(--color-lime-lighter))","rgb(var(--color-grass-lighter))"]},{id:"dusty-rose",title:"Dusty rose",description:"Faded pinks, mauves and warm sands — like dried flowers. Soft and friendly without feeling sugary.",colors:["rgb(var(--color-pink-lighter))","rgb(var(--color-coral-lighter))","rgb(var(--color-amber-lighter))","rgb(var(--color-violet-lighter))","rgb(var(--color-magenta-lighter))","rgb(var(--color-purple-lighter))","rgb(var(--color-pink-light))","rgb(var(--color-coral-light))","rgb(var(--color-violet-light))","rgb(var(--color-brown-light))"]},{id:"morning-mist",title:"Morning mist",description:"Pale cool tones — sky, fog and frost. Good when the chart should feel airy and recede behind labels or annotations.",colors:["rgb(var(--color-sky-lighter))","rgb(var(--color-blue-lighter))","rgb(var(--color-cyan-lighter))","rgb(var(--color-teal-lighter))","rgb(var(--color-violet-lighter))","rgb(var(--color-indigo-lighter))","rgb(var(--color-glaucous-light))","rgb(var(--color-gray-lighter))","rgb(var(--color-purple-lighter))","rgb(var(--color-green-lighter))"]}];function o(o){return r.find((r=>r.id===o))}export{r as C,o as g}