@limetech/lime-crm-building-blocks 2.3.1 → 2.4.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 (291) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/{condition-tree-translate-B_qIQz9s.js → condition-tree-translate-BQwKtiNZ.js} +1 -1
  3. package/dist/cjs/{filter-group-logic-Bt5tIbfP.js → filter-group-logic-CeGmYgsu.js} +1 -1
  4. package/dist/cjs/{filter-operators-CzIq9qKC.js → filter-operators-C3T2czC_.js} +1 -1
  5. package/dist/cjs/{index-mDIvByXc.js → index-Du4GyM0Y.js} +13 -8
  6. package/dist/cjs/index.cjs.js +3 -3
  7. package/dist/cjs/{index.esm-D1EzGa8X.js → index.esm-C2zw0QJK.js} +2 -2
  8. package/dist/cjs/lime-crm-building-blocks.cjs.js +3 -3
  9. package/dist/cjs/{lime-query-validation-Df4GZRGm.js → lime-query-validation-CzYkphmi.js} +1 -1
  10. package/dist/cjs/limebb-alert-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/limebb-browser.cjs.entry.js +2 -2
  12. package/dist/cjs/limebb-chat-icon-list_3.cjs.entry.js +2 -2
  13. package/dist/cjs/limebb-chat-list.cjs.entry.js +2 -2
  14. package/dist/cjs/limebb-color-palette-picker.cjs.entry.js +1 -1
  15. package/dist/cjs/limebb-color-palette-swatches.cjs.entry.js +1 -1
  16. package/dist/cjs/limebb-component-config.cjs.entry.js +3 -3
  17. package/dist/cjs/limebb-component-picker.cjs.entry.js +2 -2
  18. package/dist/cjs/limebb-composer-toolbar.cjs.entry.js +2 -2
  19. package/dist/cjs/limebb-condition-tree-editor.cjs.entry.js +24 -9
  20. package/dist/cjs/limebb-condition-tree.cjs.entry.js +121 -34
  21. package/dist/cjs/limebb-currency-picker.cjs.entry.js +2 -2
  22. package/dist/cjs/limebb-dashboard-widget.cjs.entry.js +1 -1
  23. package/dist/cjs/limebb-data-cells.cjs.entry.js +2 -2
  24. package/dist/cjs/limebb-date-picker.cjs.entry.js +2 -2
  25. package/dist/cjs/limebb-date-range.cjs.entry.js +1 -1
  26. package/dist/cjs/limebb-document-chips.cjs.entry.js +1 -1
  27. package/dist/cjs/limebb-document-item.cjs.entry.js +1 -1
  28. package/dist/cjs/limebb-document-picker.cjs.entry.js +1 -1
  29. package/dist/cjs/limebb-empty-state.cjs.entry.js +1 -1
  30. package/dist/cjs/limebb-feed-item-thumbnail-file-info.cjs.entry.js +1 -1
  31. package/dist/cjs/limebb-feed-timeline-item.cjs.entry.js +2 -2
  32. package/dist/cjs/limebb-feed.cjs.entry.js +2 -2
  33. package/dist/cjs/limebb-filter-chip_6.cjs.entry.js +4 -4
  34. package/dist/cjs/limebb-icon-picker.cjs.entry.js +1 -1
  35. package/dist/cjs/limebb-info-tile-currency-format.cjs.entry.js +1 -1
  36. package/dist/cjs/limebb-info-tile-date-format.cjs.entry.js +1 -1
  37. package/dist/cjs/limebb-info-tile-decimal-format.cjs.entry.js +1 -1
  38. package/dist/cjs/limebb-info-tile-format.cjs.entry.js +1 -1
  39. package/dist/cjs/limebb-info-tile-relative-date-format.cjs.entry.js +1 -1
  40. package/dist/cjs/limebb-info-tile-unit-format.cjs.entry.js +1 -1
  41. package/dist/cjs/limebb-info-tile.cjs.entry.js +3 -3
  42. package/dist/cjs/limebb-inline-image.cjs.entry.js +2 -2
  43. package/dist/cjs/limebb-kanban-group.cjs.entry.js +2 -2
  44. package/dist/cjs/limebb-kanban-item.cjs.entry.js +2 -2
  45. package/dist/cjs/limebb-kanban.cjs.entry.js +1 -1
  46. package/dist/cjs/limebb-lime-query-builder.cjs.entry.js +3 -3
  47. package/dist/cjs/limebb-lime-query-filter-builder.cjs.entry.js +3 -3
  48. package/dist/cjs/limebb-lime-query-filter-comparison_2.cjs.entry.js +4 -4
  49. package/dist/cjs/limebb-lime-query-order-by-editor_2.cjs.entry.js +3 -3
  50. package/dist/cjs/limebb-lime-query-order-by-item.cjs.entry.js +1 -1
  51. package/dist/cjs/limebb-lime-query-response-format-builder.cjs.entry.js +3 -3
  52. package/dist/cjs/limebb-lime-query-response-format-editor_2.cjs.entry.js +1 -1
  53. package/dist/cjs/limebb-limeobject-file-viewer.cjs.entry.js +2 -2
  54. package/dist/cjs/limebb-live-docs-info.cjs.entry.js +1 -1
  55. package/dist/cjs/limebb-loader.cjs.entry.js +2 -2
  56. package/dist/cjs/limebb-locale-picker.cjs.entry.js +2 -2
  57. package/dist/cjs/limebb-mention-group-counter.cjs.entry.js +1 -1
  58. package/dist/cjs/limebb-mention.cjs.entry.js +2 -2
  59. package/dist/cjs/limebb-navigation-button_2.cjs.entry.js +1 -1
  60. package/dist/cjs/limebb-notification-item.cjs.entry.js +2 -2
  61. package/dist/cjs/limebb-notification-list.cjs.entry.js +2 -2
  62. package/dist/cjs/limebb-object-chip.cjs.entry.js +3 -3
  63. package/dist/cjs/limebb-percentage-visualizer.cjs.entry.js +2 -2
  64. package/dist/cjs/limebb-property-selector.cjs.entry.js +3 -3
  65. package/dist/cjs/limebb-rule-arg-filter-editor.cjs.entry.js +2 -2
  66. package/dist/cjs/limebb-rule-condition-chip.cjs.entry.js +71 -0
  67. package/dist/cjs/limebb-rule-condition-editor-CHWTMOmi.js +285 -0
  68. package/dist/cjs/limebb-rule-condition-editor.cjs.entry.js +9 -0
  69. package/dist/cjs/limebb-rule-editor.cjs.entry.js +217 -573
  70. package/dist/cjs/limebb-rule-gate.cjs.entry.js +2 -2
  71. package/dist/cjs/limebb-text-editor-picker.cjs.entry.js +1 -1
  72. package/dist/cjs/limebb-text-editor.cjs.entry.js +3 -3
  73. package/dist/cjs/limebb-trend-indicator.cjs.entry.js +2 -2
  74. package/dist/cjs/limebb-value-comparison-editor.cjs.entry.js +3 -3
  75. package/dist/cjs/{limetype-BPuuRLtH.js → limetype-BzVDjAKS.js} +1 -1
  76. package/dist/cjs/loader.cjs.js +2 -2
  77. package/dist/cjs/{web-component-template-DRMW9wHN.js → web-component-template-C-AkY5as.js} +1 -1
  78. package/dist/collection/collection-manifest.json +3 -2
  79. package/dist/collection/components/condition-tree/condition-tree-editor/condition-tree-editor.js +46 -5
  80. package/dist/collection/components/condition-tree/condition-tree-nodes.js +13 -6
  81. package/dist/collection/components/condition-tree/condition-tree.js +69 -18
  82. package/dist/collection/components/condition-tree/group-node-view.js +41 -5
  83. package/dist/collection/components/condition-tree/leaf-node-view.js +19 -2
  84. package/dist/collection/components/rule-editor/condition-tree-adapter.js +229 -0
  85. package/dist/collection/components/rule-editor/rule-condition-chip/rule-condition-chip.css +4 -0
  86. package/dist/collection/components/rule-editor/rule-condition-chip/rule-condition-chip.js +322 -0
  87. package/dist/collection/components/rule-editor/rule-condition-editor/rule-condition-editor.css +5 -0
  88. package/dist/collection/components/rule-editor/rule-condition-editor/rule-condition-editor.js +259 -0
  89. package/dist/collection/components/rule-editor/rule-editor.css +1 -73
  90. package/dist/collection/components/rule-editor/rule-editor.js +143 -153
  91. package/dist/collection/components/rule-editor/rule-issues.js +89 -0
  92. package/dist/collection/components/rule-editor/view-helpers.js +19 -41
  93. package/dist/components/condition-tree-adapter.js +1 -0
  94. package/dist/components/condition-tree-editor.js +1 -1
  95. package/dist/components/condition-tree.js +1 -0
  96. package/dist/components/limebb-condition-tree.js +1 -1
  97. package/dist/components/limebb-rule-condition-chip.d.ts +11 -0
  98. package/dist/components/limebb-rule-condition-chip.js +1 -0
  99. package/dist/components/limebb-rule-condition-editor.d.ts +11 -0
  100. package/dist/components/limebb-rule-condition-editor.js +1 -0
  101. package/dist/components/limebb-rule-editor.js +1 -1
  102. package/dist/esm/{condition-tree-translate-CBeXbZ_z.js → condition-tree-translate-ZQptbaXF.js} +1 -1
  103. package/dist/esm/{filter-group-logic-CzThKf85.js → filter-group-logic-nqCMmV0e.js} +1 -1
  104. package/dist/esm/{filter-operators-u3T1PKhm.js → filter-operators-QbKK26m2.js} +1 -1
  105. package/dist/esm/{index-COtSgrC5.js → index-BK566_jX.js} +13 -8
  106. package/dist/esm/{index.esm-B9D_MXA6.js → index.esm-C__n3hug.js} +1 -1
  107. package/dist/esm/index.js +3 -3
  108. package/dist/esm/lime-crm-building-blocks.js +4 -4
  109. package/dist/esm/{lime-query-validation-dGoN_93p.js → lime-query-validation-BvB2v-yP.js} +1 -1
  110. package/dist/esm/limebb-alert-dialog.entry.js +1 -1
  111. package/dist/esm/limebb-browser.entry.js +2 -2
  112. package/dist/esm/limebb-chat-icon-list_3.entry.js +2 -2
  113. package/dist/esm/limebb-chat-list.entry.js +2 -2
  114. package/dist/esm/limebb-color-palette-picker.entry.js +1 -1
  115. package/dist/esm/limebb-color-palette-swatches.entry.js +1 -1
  116. package/dist/esm/limebb-component-config.entry.js +3 -3
  117. package/dist/esm/limebb-component-picker.entry.js +2 -2
  118. package/dist/esm/limebb-composer-toolbar.entry.js +2 -2
  119. package/dist/esm/limebb-condition-tree-editor.entry.js +24 -9
  120. package/dist/esm/limebb-condition-tree.entry.js +121 -34
  121. package/dist/esm/limebb-currency-picker.entry.js +2 -2
  122. package/dist/esm/limebb-dashboard-widget.entry.js +1 -1
  123. package/dist/esm/limebb-data-cells.entry.js +2 -2
  124. package/dist/esm/limebb-date-picker.entry.js +2 -2
  125. package/dist/esm/limebb-date-range.entry.js +1 -1
  126. package/dist/esm/limebb-document-chips.entry.js +1 -1
  127. package/dist/esm/limebb-document-item.entry.js +1 -1
  128. package/dist/esm/limebb-document-picker.entry.js +1 -1
  129. package/dist/esm/limebb-empty-state.entry.js +1 -1
  130. package/dist/esm/limebb-feed-item-thumbnail-file-info.entry.js +1 -1
  131. package/dist/esm/limebb-feed-timeline-item.entry.js +2 -2
  132. package/dist/esm/limebb-feed.entry.js +2 -2
  133. package/dist/esm/limebb-filter-chip_6.entry.js +4 -4
  134. package/dist/esm/limebb-icon-picker.entry.js +1 -1
  135. package/dist/esm/limebb-info-tile-currency-format.entry.js +1 -1
  136. package/dist/esm/limebb-info-tile-date-format.entry.js +1 -1
  137. package/dist/esm/limebb-info-tile-decimal-format.entry.js +1 -1
  138. package/dist/esm/limebb-info-tile-format.entry.js +1 -1
  139. package/dist/esm/limebb-info-tile-relative-date-format.entry.js +1 -1
  140. package/dist/esm/limebb-info-tile-unit-format.entry.js +1 -1
  141. package/dist/esm/limebb-info-tile.entry.js +3 -3
  142. package/dist/esm/limebb-inline-image.entry.js +2 -2
  143. package/dist/esm/limebb-kanban-group.entry.js +2 -2
  144. package/dist/esm/limebb-kanban-item.entry.js +2 -2
  145. package/dist/esm/limebb-kanban.entry.js +1 -1
  146. package/dist/esm/limebb-lime-query-builder.entry.js +3 -3
  147. package/dist/esm/limebb-lime-query-filter-builder.entry.js +3 -3
  148. package/dist/esm/limebb-lime-query-filter-comparison_2.entry.js +4 -4
  149. package/dist/esm/limebb-lime-query-order-by-editor_2.entry.js +3 -3
  150. package/dist/esm/limebb-lime-query-order-by-item.entry.js +1 -1
  151. package/dist/esm/limebb-lime-query-response-format-builder.entry.js +3 -3
  152. package/dist/esm/limebb-lime-query-response-format-editor_2.entry.js +1 -1
  153. package/dist/esm/limebb-limeobject-file-viewer.entry.js +2 -2
  154. package/dist/esm/limebb-live-docs-info.entry.js +1 -1
  155. package/dist/esm/limebb-loader.entry.js +2 -2
  156. package/dist/esm/limebb-locale-picker.entry.js +2 -2
  157. package/dist/esm/limebb-mention-group-counter.entry.js +1 -1
  158. package/dist/esm/limebb-mention.entry.js +2 -2
  159. package/dist/esm/limebb-navigation-button_2.entry.js +1 -1
  160. package/dist/esm/limebb-notification-item.entry.js +2 -2
  161. package/dist/esm/limebb-notification-list.entry.js +2 -2
  162. package/dist/esm/limebb-object-chip.entry.js +3 -3
  163. package/dist/esm/limebb-percentage-visualizer.entry.js +2 -2
  164. package/dist/esm/limebb-property-selector.entry.js +3 -3
  165. package/dist/esm/limebb-rule-arg-filter-editor.entry.js +2 -2
  166. package/dist/esm/limebb-rule-condition-chip.entry.js +69 -0
  167. package/dist/esm/limebb-rule-condition-editor-DeY758N-.js +281 -0
  168. package/dist/esm/limebb-rule-condition-editor.entry.js +3 -0
  169. package/dist/esm/limebb-rule-editor.entry.js +217 -573
  170. package/dist/esm/limebb-rule-gate.entry.js +2 -2
  171. package/dist/esm/limebb-text-editor-picker.entry.js +1 -1
  172. package/dist/esm/limebb-text-editor.entry.js +3 -3
  173. package/dist/esm/limebb-trend-indicator.entry.js +2 -2
  174. package/dist/esm/limebb-value-comparison-editor.entry.js +3 -3
  175. package/dist/esm/{limetype-BcELY1NF.js → limetype-Muf9VutX.js} +1 -1
  176. package/dist/esm/loader.js +3 -3
  177. package/dist/esm/{web-component-template-DxbwHsvw.js → web-component-template-D1JpeNy_.js} +1 -1
  178. package/dist/lime-crm-building-blocks/index.esm.js +1 -1
  179. package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
  180. package/dist/lime-crm-building-blocks/p-0621e884.entry.js +1 -0
  181. package/dist/lime-crm-building-blocks/{p-ab0f8170.entry.js → p-087d5651.entry.js} +1 -1
  182. package/dist/lime-crm-building-blocks/{p-ce2755a0.entry.js → p-1917956c.entry.js} +1 -1
  183. package/dist/lime-crm-building-blocks/{p-07a9c8f2.entry.js → p-1ae4962d.entry.js} +1 -1
  184. package/dist/lime-crm-building-blocks/{p-021e452a.entry.js → p-23d2632b.entry.js} +1 -1
  185. package/dist/lime-crm-building-blocks/{p-ffca266e.entry.js → p-251784bf.entry.js} +1 -1
  186. package/dist/lime-crm-building-blocks/{p-635a45ad.entry.js → p-27240bb0.entry.js} +1 -1
  187. package/dist/lime-crm-building-blocks/p-2adeac66.entry.js +1 -0
  188. package/dist/lime-crm-building-blocks/{p-6a8422d2.entry.js → p-32339f09.entry.js} +1 -1
  189. package/dist/lime-crm-building-blocks/{p-1990e369.entry.js → p-3446290c.entry.js} +1 -1
  190. package/dist/lime-crm-building-blocks/{p-d495cc19.entry.js → p-35d9b3ad.entry.js} +1 -1
  191. package/dist/lime-crm-building-blocks/{p-eed0b2c2.entry.js → p-3865eec4.entry.js} +1 -1
  192. package/dist/lime-crm-building-blocks/{p-dacf9e77.entry.js → p-394b521a.entry.js} +1 -1
  193. package/dist/lime-crm-building-blocks/{p-8c36b847.entry.js → p-39a36450.entry.js} +1 -1
  194. package/dist/lime-crm-building-blocks/{p-97e75dee.entry.js → p-3b672249.entry.js} +1 -1
  195. package/dist/lime-crm-building-blocks/{p-ad5dcefd.entry.js → p-47b56a75.entry.js} +1 -1
  196. package/dist/lime-crm-building-blocks/{p-402a9c97.entry.js → p-4af3ea2c.entry.js} +1 -1
  197. package/dist/lime-crm-building-blocks/{p-0cc47cad.entry.js → p-4bdaf436.entry.js} +1 -1
  198. package/dist/lime-crm-building-blocks/{p-cf66256a.entry.js → p-4f60b7bc.entry.js} +1 -1
  199. package/dist/lime-crm-building-blocks/{p-90f0c96b.entry.js → p-4fd9d615.entry.js} +1 -1
  200. package/dist/lime-crm-building-blocks/{p-28550961.entry.js → p-53b44865.entry.js} +1 -1
  201. package/dist/lime-crm-building-blocks/{p-7ae27308.entry.js → p-550606f6.entry.js} +1 -1
  202. package/dist/lime-crm-building-blocks/p-573f9e95.entry.js +1 -0
  203. package/dist/lime-crm-building-blocks/{p-a5f3913d.entry.js → p-5c541d0c.entry.js} +1 -1
  204. package/dist/lime-crm-building-blocks/{p-ce723c21.entry.js → p-612c6b28.entry.js} +1 -1
  205. package/dist/lime-crm-building-blocks/{p-5f682c06.entry.js → p-627b0c79.entry.js} +1 -1
  206. package/dist/lime-crm-building-blocks/{p-49d042aa.entry.js → p-6303201b.entry.js} +1 -1
  207. package/dist/lime-crm-building-blocks/{p-6f923112.entry.js → p-687640ed.entry.js} +1 -1
  208. package/dist/lime-crm-building-blocks/{p-8e9fcf3c.entry.js → p-6bd61290.entry.js} +1 -1
  209. package/dist/lime-crm-building-blocks/{p-dcb49a62.entry.js → p-6d2dba20.entry.js} +1 -1
  210. package/dist/lime-crm-building-blocks/{p-0193ed83.entry.js → p-6e2553b4.entry.js} +1 -1
  211. package/dist/lime-crm-building-blocks/{p-Cz5s8qGk.js → p-7DQ7qvMa.js} +1 -1
  212. package/dist/lime-crm-building-blocks/p-7c3d3e06.entry.js +1 -0
  213. package/dist/lime-crm-building-blocks/{p-dd02821e.entry.js → p-7d53756b.entry.js} +1 -1
  214. package/dist/lime-crm-building-blocks/{p-79d743bb.entry.js → p-895c8966.entry.js} +1 -1
  215. package/dist/lime-crm-building-blocks/{p-da35bcc7.entry.js → p-8c0455e4.entry.js} +1 -1
  216. package/dist/lime-crm-building-blocks/{p-a201df35.entry.js → p-8f80d024.entry.js} +1 -1
  217. package/dist/lime-crm-building-blocks/{p-32a81271.entry.js → p-949ed056.entry.js} +1 -1
  218. package/dist/lime-crm-building-blocks/{p-cf03a756.entry.js → p-985ae787.entry.js} +1 -1
  219. package/dist/lime-crm-building-blocks/p-9959019d.entry.js +1 -0
  220. package/dist/lime-crm-building-blocks/{p-DLec4QaM.js → p-B7whyaAL.js} +1 -1
  221. package/dist/lime-crm-building-blocks/{p-COtSgrC5.js → p-BK566_jX.js} +1 -1
  222. package/dist/lime-crm-building-blocks/p-ClYOFrOo.js +1 -0
  223. package/dist/lime-crm-building-blocks/{p-DVypQWZ4.js → p-Cve-3L4y.js} +1 -1
  224. package/dist/lime-crm-building-blocks/p-DOULPRTn.js +1 -0
  225. package/dist/lime-crm-building-blocks/{p-Cj_3f9vm.js → p-DhGRAeCH.js} +1 -1
  226. package/dist/lime-crm-building-blocks/p-DjoMDjMo.js +1 -0
  227. package/dist/lime-crm-building-blocks/p-DuWEcQ7n.js +1 -0
  228. package/dist/lime-crm-building-blocks/{p-dfaef740.entry.js → p-a1052482.entry.js} +1 -1
  229. package/dist/lime-crm-building-blocks/{p-3babfbe0.entry.js → p-a14bed52.entry.js} +1 -1
  230. package/dist/lime-crm-building-blocks/{p-cc53a8ca.entry.js → p-a2e291b4.entry.js} +1 -1
  231. package/dist/lime-crm-building-blocks/{p-8a17a7ea.entry.js → p-a2ebd5a4.entry.js} +1 -1
  232. package/dist/lime-crm-building-blocks/{p-0cbe2180.entry.js → p-a4556649.entry.js} +1 -1
  233. package/dist/lime-crm-building-blocks/{p-f5c1ed0c.entry.js → p-a598f92f.entry.js} +1 -1
  234. package/dist/lime-crm-building-blocks/{p-b44b9dbc.entry.js → p-a938384f.entry.js} +1 -1
  235. package/dist/lime-crm-building-blocks/{p-f3539042.entry.js → p-ab0210b2.entry.js} +1 -1
  236. package/dist/lime-crm-building-blocks/{p-c0d49532.entry.js → p-b272730c.entry.js} +1 -1
  237. package/dist/lime-crm-building-blocks/{p-0370200d.entry.js → p-b4571d32.entry.js} +1 -1
  238. package/dist/lime-crm-building-blocks/{p-551a36f6.entry.js → p-b72c748b.entry.js} +1 -1
  239. package/dist/lime-crm-building-blocks/{p-0ed9a7cc.entry.js → p-bac9d3a9.entry.js} +1 -1
  240. package/dist/lime-crm-building-blocks/p-bd6c12bc.entry.js +1 -0
  241. package/dist/lime-crm-building-blocks/{p-81783bd4.entry.js → p-bf693702.entry.js} +1 -1
  242. package/dist/lime-crm-building-blocks/{p-e6cc320a.entry.js → p-c58067ec.entry.js} +1 -1
  243. package/dist/lime-crm-building-blocks/{p-08797129.entry.js → p-c7bfa2e4.entry.js} +1 -1
  244. package/dist/lime-crm-building-blocks/{p-a953d48e.entry.js → p-d4635a39.entry.js} +1 -1
  245. package/dist/lime-crm-building-blocks/{p-d3c58bc1.entry.js → p-d6099dc7.entry.js} +1 -1
  246. package/dist/lime-crm-building-blocks/{p-bf05d9de.entry.js → p-d6c7cf0f.entry.js} +1 -1
  247. package/dist/lime-crm-building-blocks/{p-1ebe45b8.entry.js → p-da79c5fc.entry.js} +1 -1
  248. package/dist/lime-crm-building-blocks/p-e18a2cef.entry.js +1 -0
  249. package/dist/lime-crm-building-blocks/{p-f9991c35.entry.js → p-e19f4b3b.entry.js} +1 -1
  250. package/dist/lime-crm-building-blocks/{p-46aec244.entry.js → p-eb95767a.entry.js} +1 -1
  251. package/dist/lime-crm-building-blocks/{p-ddc4ede8.entry.js → p-ec9b5e30.entry.js} +1 -1
  252. package/dist/lime-crm-building-blocks/{p-95ba7a84.entry.js → p-f49250f3.entry.js} +1 -1
  253. package/dist/types/components/condition-tree/condition-tree-editor/condition-tree-editor.d.ts +20 -3
  254. package/dist/types/components/condition-tree/condition-tree-nodes.d.ts +11 -4
  255. package/dist/types/components/condition-tree/condition-tree-view-context.d.ts +3 -2
  256. package/dist/types/components/condition-tree/condition-tree.d.ts +41 -8
  257. package/dist/types/components/condition-tree/condition-tree.types.d.ts +21 -2
  258. package/dist/types/components/rule-editor/condition-tree-adapter.d.ts +67 -0
  259. package/dist/types/components/rule-editor/rule-condition-chip/rule-condition-chip.d.ts +82 -0
  260. package/dist/types/components/rule-editor/rule-condition-editor/rule-condition-editor.d.ts +61 -0
  261. package/dist/types/components/rule-editor/rule-editor.d.ts +105 -47
  262. package/dist/types/components/rule-editor/rule-issues.d.ts +12 -0
  263. package/dist/types/components/rule-editor/view-helpers.d.ts +16 -35
  264. package/dist/types/components.d.ts +304 -79
  265. package/dist/types/stencil-public-runtime.d.ts +61 -55
  266. package/package.json +4 -4
  267. package/dist/cjs/limebb-rule-chip-popover.cjs.entry.js +0 -82
  268. package/dist/collection/components/rule-editor/chip-picker-view.js +0 -148
  269. package/dist/collection/components/rule-editor/group-node-view.js +0 -79
  270. package/dist/collection/components/rule-editor/rule-chip-popover/rule-chip-popover.css +0 -36
  271. package/dist/collection/components/rule-editor/rule-chip-popover/rule-chip-popover.js +0 -344
  272. package/dist/collection/components/rule-editor/rule-editor-views.js +0 -43
  273. package/dist/collection/components/rule-editor/rule-operations.js +0 -145
  274. package/dist/components/limebb-rule-chip-popover.d.ts +0 -11
  275. package/dist/components/limebb-rule-chip-popover.js +0 -1
  276. package/dist/components/rule-chip-popover.js +0 -1
  277. package/dist/esm/limebb-rule-chip-popover.entry.js +0 -80
  278. package/dist/lime-crm-building-blocks/p-1578c8f0.entry.js +0 -1
  279. package/dist/lime-crm-building-blocks/p-229d018c.entry.js +0 -1
  280. package/dist/lime-crm-building-blocks/p-6331f9c5.entry.js +0 -1
  281. package/dist/lime-crm-building-blocks/p-705c53c0.entry.js +0 -1
  282. package/dist/lime-crm-building-blocks/p-84ad9159.entry.js +0 -1
  283. package/dist/lime-crm-building-blocks/p-BxCq236x.js +0 -1
  284. package/dist/lime-crm-building-blocks/p-Css8537O.js +0 -1
  285. package/dist/lime-crm-building-blocks/p-a58c9e1e.entry.js +0 -1
  286. package/dist/lime-crm-building-blocks/p-hsyotUav.js +0 -1
  287. package/dist/types/components/rule-editor/chip-picker-view.d.ts +0 -35
  288. package/dist/types/components/rule-editor/group-node-view.d.ts +0 -11
  289. package/dist/types/components/rule-editor/rule-chip-popover/rule-chip-popover.d.ts +0 -43
  290. package/dist/types/components/rule-editor/rule-editor-views.d.ts +0 -58
  291. package/dist/types/components/rule-editor/rule-operations.d.ts +0 -70
@@ -0,0 +1,5 @@
1
+ :host {
2
+ display: block;
3
+ padding: 1rem;
4
+ min-width: 24rem;
5
+ }
@@ -0,0 +1,259 @@
1
+ import { h } from "@stencil/core";
2
+ import { LimeWebComponentTemplate } from "../../../util/web-component-template";
3
+ import { refOf } from "../condition-tree-adapter";
4
+ /**
5
+ * The editor `limebb-condition-tree` opens for one rule condition: whatever
6
+ * component the primitive named as its `configComponent`.
7
+ *
8
+ * The two sides speak about different things. The tree passes a whole condition
9
+ * and listens for `conditionChange`; a config component edits the reference's
10
+ * `args` and reports a plain `change`. Config components are registered by
11
+ * add-ons this repo does not own, so this side is the one that translates.
12
+ *
13
+ * @alpha
14
+ * @private
15
+ */
16
+ export class RuleConditionEditor {
17
+ constructor() {
18
+ /**
19
+ * Forwarded so that component can take focus as it appears. Set only for a
20
+ * condition the author has just added.
21
+ */
22
+ this.focusOnOpen = false;
23
+ /**
24
+ * @inheritdoc
25
+ */
26
+ this.readonly = false;
27
+ /**
28
+ * @inheritdoc
29
+ */
30
+ this.disabled = false;
31
+ /**
32
+ * The config component's `change` bubbles and is composed, so it would
33
+ * otherwise reach the rule editor and be taken for the whole rule changing.
34
+ * It stops here and leaves as the event the tree listens for.
35
+ * @param event
36
+ */
37
+ this.handleChange = (event) => {
38
+ event.stopPropagation();
39
+ const reference = this.reference;
40
+ if (!reference) {
41
+ return;
42
+ }
43
+ const next = Object.assign(Object.assign({}, reference.ref), { args: event.detail });
44
+ this.conditionChange.emit(reference.negated ? { type: 'not', rule: next } : next);
45
+ };
46
+ }
47
+ render() {
48
+ if (!this.configComponent || !this.reference) {
49
+ return null;
50
+ }
51
+ return (h(LimeWebComponentTemplate, { class: "editor", platform: this.platform, context: this.context, name: this.configComponent.name, props: Object.assign(Object.assign({}, this.configComponent.props), { value: this.reference.ref.args, readonly: this.readonly, disabled: this.disabled, focusOnOpen: this.focusOnOpen, onChange: this.handleChange }) }));
52
+ }
53
+ get reference() {
54
+ return this.value ? refOf(this.value) : undefined;
55
+ }
56
+ static get is() { return "limebb-rule-condition-editor"; }
57
+ static get encapsulation() { return "shadow"; }
58
+ static get originalStyleUrls() {
59
+ return {
60
+ "$": ["rule-condition-editor.scss"]
61
+ };
62
+ }
63
+ static get styleUrls() {
64
+ return {
65
+ "$": ["rule-condition-editor.css"]
66
+ };
67
+ }
68
+ static get properties() {
69
+ return {
70
+ "platform": {
71
+ "type": "unknown",
72
+ "mutable": false,
73
+ "complexType": {
74
+ "original": "LimeWebComponentPlatform",
75
+ "resolved": "LimeWebComponentPlatform",
76
+ "references": {
77
+ "LimeWebComponentPlatform": {
78
+ "location": "import",
79
+ "path": "@limetech/lime-web-components",
80
+ "id": "node_modules::LimeWebComponentPlatform",
81
+ "referenceLocation": "LimeWebComponentPlatform"
82
+ }
83
+ }
84
+ },
85
+ "required": false,
86
+ "optional": false,
87
+ "docs": {
88
+ "tags": [],
89
+ "text": "Platform service provider"
90
+ },
91
+ "getter": false,
92
+ "setter": false
93
+ },
94
+ "context": {
95
+ "type": "unknown",
96
+ "mutable": false,
97
+ "complexType": {
98
+ "original": "LimeWebComponentContext",
99
+ "resolved": "LimeWebComponentContext",
100
+ "references": {
101
+ "LimeWebComponentContext": {
102
+ "location": "import",
103
+ "path": "@limetech/lime-web-components",
104
+ "id": "node_modules::LimeWebComponentContext",
105
+ "referenceLocation": "LimeWebComponentContext"
106
+ }
107
+ }
108
+ },
109
+ "required": false,
110
+ "optional": false,
111
+ "docs": {
112
+ "tags": [],
113
+ "text": "Component context"
114
+ },
115
+ "getter": false,
116
+ "setter": false
117
+ },
118
+ "value": {
119
+ "type": "unknown",
120
+ "mutable": false,
121
+ "complexType": {
122
+ "original": "Rule",
123
+ "resolved": "RuleAll | RuleAny | RuleNot | RuleRef",
124
+ "references": {
125
+ "Rule": {
126
+ "location": "import",
127
+ "path": "@limetech/lime-web-components",
128
+ "id": "node_modules::Rule",
129
+ "referenceLocation": "Rule"
130
+ }
131
+ }
132
+ },
133
+ "required": false,
134
+ "optional": false,
135
+ "docs": {
136
+ "tags": [],
137
+ "text": "The condition being edited: a reference to a primitive, or the `not`\naround one."
138
+ },
139
+ "getter": false,
140
+ "setter": false
141
+ },
142
+ "configComponent": {
143
+ "type": "unknown",
144
+ "mutable": false,
145
+ "complexType": {
146
+ "original": "ComponentDescriptor",
147
+ "resolved": "ComponentDescriptor<unknown>",
148
+ "references": {
149
+ "ComponentDescriptor": {
150
+ "location": "import",
151
+ "path": "@limetech/lime-web-components",
152
+ "id": "node_modules::ComponentDescriptor",
153
+ "referenceLocation": "ComponentDescriptor"
154
+ }
155
+ }
156
+ },
157
+ "required": false,
158
+ "optional": false,
159
+ "docs": {
160
+ "tags": [],
161
+ "text": "The component the primitive declared for editing its args."
162
+ },
163
+ "getter": false,
164
+ "setter": false
165
+ },
166
+ "focusOnOpen": {
167
+ "type": "boolean",
168
+ "mutable": false,
169
+ "complexType": {
170
+ "original": "boolean",
171
+ "resolved": "boolean",
172
+ "references": {}
173
+ },
174
+ "required": false,
175
+ "optional": false,
176
+ "docs": {
177
+ "tags": [],
178
+ "text": "Forwarded so that component can take focus as it appears. Set only for a\ncondition the author has just added."
179
+ },
180
+ "getter": false,
181
+ "setter": false,
182
+ "reflect": false,
183
+ "attribute": "focus-on-open",
184
+ "defaultValue": "false"
185
+ },
186
+ "readonly": {
187
+ "type": "boolean",
188
+ "mutable": false,
189
+ "complexType": {
190
+ "original": "boolean",
191
+ "resolved": "boolean",
192
+ "references": {}
193
+ },
194
+ "required": false,
195
+ "optional": false,
196
+ "docs": {
197
+ "tags": [{
198
+ "name": "inheritdoc",
199
+ "text": undefined
200
+ }],
201
+ "text": ""
202
+ },
203
+ "getter": false,
204
+ "setter": false,
205
+ "reflect": false,
206
+ "attribute": "readonly",
207
+ "defaultValue": "false"
208
+ },
209
+ "disabled": {
210
+ "type": "boolean",
211
+ "mutable": false,
212
+ "complexType": {
213
+ "original": "boolean",
214
+ "resolved": "boolean",
215
+ "references": {}
216
+ },
217
+ "required": false,
218
+ "optional": false,
219
+ "docs": {
220
+ "tags": [{
221
+ "name": "inheritdoc",
222
+ "text": undefined
223
+ }],
224
+ "text": ""
225
+ },
226
+ "getter": false,
227
+ "setter": false,
228
+ "reflect": false,
229
+ "attribute": "disabled",
230
+ "defaultValue": "false"
231
+ }
232
+ };
233
+ }
234
+ static get events() {
235
+ return [{
236
+ "method": "conditionChange",
237
+ "name": "conditionChange",
238
+ "bubbles": true,
239
+ "cancelable": true,
240
+ "composed": true,
241
+ "docs": {
242
+ "tags": [],
243
+ "text": "Emitted with the whole condition, args and negation together, whenever\nthe config component reports new args."
244
+ },
245
+ "complexType": {
246
+ "original": "Rule",
247
+ "resolved": "RuleAll | RuleAny | RuleNot | RuleRef",
248
+ "references": {
249
+ "Rule": {
250
+ "location": "import",
251
+ "path": "@limetech/lime-web-components",
252
+ "id": "node_modules::Rule",
253
+ "referenceLocation": "Rule"
254
+ }
255
+ }
256
+ }
257
+ }];
258
+ }
259
+ }
@@ -135,82 +135,10 @@ limel-notched-outline:not([invalid]:not([invalid=false])) .limel-notched-outline
135
135
  pointer-events: none;
136
136
  }
137
137
 
138
- .rule-node {
139
- border: 1px solid rgb(var(--contrast-500));
140
- border-radius: 0.5rem;
141
- margin: 0.25rem 0;
142
- overflow: hidden;
143
- background-color: rgb(var(--contrast-100));
144
- }
145
-
146
- .rule-node--invalid {
147
- border-color: rgb(var(--color-red-default));
148
- }
149
-
150
- .rule-node--all > .rule-node__header,
151
- .rule-node--any > .rule-node__header {
152
- background-color: rgb(var(--contrast-300));
153
- padding: 0.375rem 0.75rem;
154
- border-bottom: 1px solid rgb(var(--contrast-500));
155
- }
156
-
157
- .rule-node__header {
158
- display: flex;
159
- align-items: center;
160
- gap: 0.5rem;
161
- }
162
-
163
- .rule-node__header-actions {
164
- margin-left: auto;
165
- display: grid;
166
- grid-auto-flow: column;
167
- grid-gap: 0.5rem;
168
- padding: 0.125rem;
169
- align-items: center;
170
- }
171
-
172
- .rule-node__combinator-select {
173
- min-width: 6rem;
174
- }
175
-
176
- .rule-node__body {
177
- padding: 0.75rem;
178
- display: flex;
179
- flex-direction: column;
180
- gap: 0.75rem;
181
- }
182
-
183
- limel-popover.rule-node__chips-popover {
184
- display: contents;
138
+ limebb-condition-tree {
185
139
  --popover-surface-width: min(calc(100vw - 4rem), 50rem);
186
140
  }
187
141
 
188
- .rule-node__chips {
189
- display: block;
190
- width: 100%;
191
- }
192
-
193
- .rule-node__chips limel-picker {
194
- display: block;
195
- width: 100%;
196
- }
197
-
198
- .rule-node__children {
199
- display: flex;
200
- flex-direction: column;
201
- gap: 0.5rem;
202
- }
203
-
204
- .rule-node__footer {
205
- display: flex;
206
- justify-content: center;
207
- }
208
-
209
- .rule-node__issue {
210
- color: rgb(var(--color-red-default));
211
- font-size: 0.875rem;
212
- }
213
-
214
142
  :host(limebb-rule-editor:focus),
215
143
  :host(limebb-rule-editor:focus-visible),
216
144
  :host(limebb-rule-editor:focus-within) {