@limetech/lime-crm-building-blocks 1.95.0 → 1.97.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 (246) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/{_MapCache-2e84a981.js → _MapCache-8b125fbb.js} +0 -26
  3. package/dist/cjs/{_Uint8Array-1e99726d.js → _Uint8Array-95263550.js} +1 -12
  4. package/dist/cjs/_baseIsEqual-cb7951b0.js +496 -0
  5. package/dist/cjs/_defineProperty-40a6ad5d.js +15 -0
  6. package/dist/cjs/{get-1acf79ce.js → get-932b213e.js} +5 -4
  7. package/dist/cjs/isEqual-e77cce75.js +37 -0
  8. package/dist/cjs/isSymbol-5b36aeee.js +30 -0
  9. package/dist/cjs/lime-crm-building-blocks.cjs.js +1 -1
  10. package/dist/cjs/lime-query.types-bcb63a22.js +61 -0
  11. package/dist/cjs/limebb-component-config.cjs.entry.js +3 -2
  12. package/dist/cjs/limebb-document-item.cjs.entry.js +174 -0
  13. package/dist/cjs/limebb-document-picker.cjs.entry.js +82 -0
  14. package/dist/cjs/limebb-feed-item-thumbnail-file-info.cjs.entry.js +1 -1
  15. package/dist/cjs/limebb-feed-timeline-item.cjs.entry.js +1 -1
  16. package/dist/cjs/limebb-feed.cjs.entry.js +1 -1
  17. package/dist/cjs/limebb-icon-picker.cjs.entry.js +1 -1
  18. package/dist/cjs/limebb-info-tile-format.cjs.entry.js +1 -1
  19. package/dist/cjs/limebb-info-tile.cjs.entry.js +1 -1
  20. package/dist/cjs/limebb-kanban-group.cjs.entry.js +1 -1
  21. package/dist/cjs/limebb-kanban-item.cjs.entry.js +1 -1
  22. package/dist/cjs/limebb-lime-query-builder.cjs.entry.js +382 -150
  23. package/dist/cjs/limebb-lime-query-filter-and_5.cjs.entry.js +278 -0
  24. package/dist/cjs/limebb-lime-query-value-input.cjs.entry.js +239 -0
  25. package/dist/cjs/limebb-limetype-field_2.cjs.entry.js +406 -0
  26. package/dist/cjs/limebb-live-docs-info.cjs.entry.js +2 -2
  27. package/dist/cjs/limebb-locale-picker.cjs.entry.js +13 -498
  28. package/dist/cjs/limebb-mention-group-counter.cjs.entry.js +2 -2
  29. package/dist/cjs/limebb-navigation-button_2.cjs.entry.js +3 -3
  30. package/dist/cjs/limebb-notification-item.cjs.entry.js +1 -1
  31. package/dist/cjs/limebb-percentage-visualizer.cjs.entry.js +2 -2
  32. package/dist/cjs/limebb-property-selector.cjs.entry.js +234 -0
  33. package/dist/cjs/limebb-response-format-item.cjs.entry.js +80 -0
  34. package/dist/cjs/limebb-text-editor.cjs.entry.js +22 -83
  35. package/dist/cjs/limebb-trend-indicator.cjs.entry.js +1 -1
  36. package/dist/cjs/limetype-1fe0207f.js +90 -0
  37. package/dist/cjs/loader.cjs.js +1 -1
  38. package/dist/cjs/property-resolution-fb42a46b.js +66 -0
  39. package/dist/cjs/random-string-aac0a74b.js +24 -0
  40. package/dist/collection/collection-manifest.json +12 -0
  41. package/dist/collection/components/document-picker/document-item/document-item.css +64 -0
  42. package/dist/collection/components/document-picker/document-item/document-item.js +265 -0
  43. package/dist/collection/components/document-picker/document-item/document-item.types.js +1 -0
  44. package/dist/collection/components/document-picker/document-picker.css +139 -0
  45. package/dist/collection/components/document-picker/document-picker.js +304 -0
  46. package/dist/collection/components/document-picker/document.types.js +1 -0
  47. package/dist/collection/components/feed/feed-item/feed-timeline-item.js +1 -1
  48. package/dist/collection/components/feed/feed-item-thumbnail-file-info/feed-item-thumbnail-file-info.js +1 -1
  49. package/dist/collection/components/feed/feed.js +1 -1
  50. package/dist/collection/components/icon-picker/icon-picker.js +1 -1
  51. package/dist/collection/components/info-tile/format/config/info-tile-format.js +1 -1
  52. package/dist/collection/components/info-tile/info-tile.js +1 -1
  53. package/dist/collection/components/kanban/kanban-group/kanban-group.js +1 -1
  54. package/dist/collection/components/kanban/kanban-item/kanban-item.js +1 -1
  55. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-and.css +121 -0
  56. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-and.js +257 -0
  57. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-comparison.css +39 -0
  58. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-comparison.js +246 -0
  59. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-expression.css +104 -0
  60. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-expression.js +220 -0
  61. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.css +107 -0
  62. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.js +212 -0
  63. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-or.css +123 -0
  64. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-or.js +237 -0
  65. package/dist/collection/components/lime-query-builder/expressions/lime-query-value-input.css +48 -0
  66. package/dist/collection/components/lime-query-builder/expressions/lime-query-value-input.js +457 -0
  67. package/dist/collection/components/lime-query-builder/filter-conversion.js +118 -21
  68. package/dist/collection/components/lime-query-builder/lime-query-builder.css +30 -17
  69. package/dist/collection/components/lime-query-builder/lime-query-builder.js +233 -28
  70. package/dist/collection/components/lime-query-builder/limetype-field/limetype-field.js +435 -0
  71. package/dist/collection/components/lime-query-builder/property-selection-format.js +158 -0
  72. package/dist/collection/components/lime-query-builder/property-selector/property-selector.css +8 -0
  73. package/dist/collection/components/lime-query-builder/property-selector/property-selector.js +422 -0
  74. package/dist/collection/components/lime-query-builder/response-format-editor.css +72 -0
  75. package/dist/collection/components/lime-query-builder/response-format-editor.js +249 -0
  76. package/dist/collection/components/lime-query-builder/response-format-item.css +61 -0
  77. package/dist/collection/components/lime-query-builder/response-format-item.js +208 -0
  78. package/dist/collection/components/limeobject/file-viewer/live-docs-info.js +2 -2
  79. package/dist/collection/components/locale-picker/locale-picker.js +1 -1
  80. package/dist/collection/components/notification-list/notification-item/notification-item.js +1 -1
  81. package/dist/collection/components/percentage-visualizer/percentage-visualizer.js +2 -2
  82. package/dist/collection/components/summary-popover/summary-popover.js +3 -3
  83. package/dist/collection/components/text-editor/mention-group-counter.js +2 -2
  84. package/dist/collection/components/text-editor/text-editor.js +1 -1
  85. package/dist/collection/components/trend-indicator/trend-indicator.js +1 -1
  86. package/dist/collection/util/format-bytes.js +36 -0
  87. package/dist/components/_MapCache.js +2 -27
  88. package/dist/components/_Uint8Array.js +2 -12
  89. package/dist/components/_baseIsEqual.js +494 -0
  90. package/dist/components/_defineProperty.js +13 -0
  91. package/dist/components/document-item.js +190 -0
  92. package/dist/components/feed-item-thumbnail-file-info.js +1 -1
  93. package/dist/components/feed-timeline-item.js +1 -1
  94. package/dist/components/get.js +2 -1
  95. package/dist/components/isEqual.js +35 -0
  96. package/dist/components/isSymbol.js +28 -0
  97. package/dist/components/kanban-group.js +1 -1
  98. package/dist/components/kanban-item.js +1 -1
  99. package/dist/components/lime-query-filter-and.js +408 -0
  100. package/dist/components/lime-query-filter-comparison.js +152 -0
  101. package/dist/components/lime-query-value-input.js +266 -0
  102. package/dist/components/limebb-document-item.d.ts +11 -0
  103. package/dist/components/limebb-document-item.js +6 -0
  104. package/dist/components/limebb-document-picker.d.ts +11 -0
  105. package/dist/components/limebb-document-picker.js +111 -0
  106. package/dist/components/limebb-feed.js +1 -1
  107. package/dist/components/limebb-icon-picker.js +1 -1
  108. package/dist/components/limebb-info-tile-format.js +1 -1
  109. package/dist/components/limebb-info-tile.js +1 -1
  110. package/dist/components/limebb-lime-query-builder.js +441 -149
  111. package/dist/components/limebb-lime-query-filter-and.d.ts +11 -0
  112. package/dist/components/limebb-lime-query-filter-and.js +6 -0
  113. package/dist/components/limebb-lime-query-filter-comparison.d.ts +11 -0
  114. package/dist/components/limebb-lime-query-filter-comparison.js +6 -0
  115. package/dist/components/limebb-lime-query-filter-expression.d.ts +11 -0
  116. package/dist/components/limebb-lime-query-filter-expression.js +6 -0
  117. package/dist/components/limebb-lime-query-filter-not.d.ts +11 -0
  118. package/dist/components/limebb-lime-query-filter-not.js +6 -0
  119. package/dist/components/limebb-lime-query-filter-or.d.ts +11 -0
  120. package/dist/components/limebb-lime-query-filter-or.js +6 -0
  121. package/dist/components/limebb-lime-query-value-input.d.ts +11 -0
  122. package/dist/components/limebb-lime-query-value-input.js +6 -0
  123. package/dist/components/limebb-limetype-field.d.ts +11 -0
  124. package/dist/components/limebb-limetype-field.js +6 -0
  125. package/dist/components/limebb-locale-picker.js +8 -493
  126. package/dist/components/limebb-mention-group-counter.js +2 -2
  127. package/dist/components/limebb-percentage-visualizer.js +2 -2
  128. package/dist/components/limebb-property-selector.d.ts +11 -0
  129. package/dist/components/limebb-property-selector.js +6 -0
  130. package/dist/components/limebb-response-format-editor.d.ts +11 -0
  131. package/dist/components/limebb-response-format-editor.js +6 -0
  132. package/dist/components/limebb-response-format-item.d.ts +11 -0
  133. package/dist/components/limebb-response-format-item.js +6 -0
  134. package/dist/components/limebb-text-editor.js +8 -69
  135. package/dist/components/limebb-trend-indicator.js +1 -1
  136. package/dist/components/limetype-field.js +184 -0
  137. package/dist/components/limetype.js +85 -0
  138. package/dist/components/live-docs-info.js +2 -2
  139. package/dist/components/notification-item.js +1 -1
  140. package/dist/components/property-selector.js +317 -0
  141. package/dist/components/random-string.js +22 -0
  142. package/dist/components/response-format-editor.js +278 -0
  143. package/dist/components/response-format-item.js +104 -0
  144. package/dist/components/summary-popover.js +3 -3
  145. package/dist/esm/{_MapCache-6484495d.js → _MapCache-af496e9d.js} +2 -27
  146. package/dist/esm/{_Uint8Array-e5cac922.js → _Uint8Array-d6ebd526.js} +3 -13
  147. package/dist/esm/_baseIsEqual-28053b81.js +494 -0
  148. package/dist/esm/_defineProperty-e6a185c3.js +13 -0
  149. package/dist/esm/{get-f9e0b2e1.js → get-3e42932b.js} +2 -1
  150. package/dist/esm/isEqual-57d0c223.js +35 -0
  151. package/dist/esm/isSymbol-1c5f65cc.js +28 -0
  152. package/dist/esm/lime-crm-building-blocks.js +1 -1
  153. package/dist/esm/lime-query.types-f72355e1.js +59 -0
  154. package/dist/esm/limebb-component-config.entry.js +3 -2
  155. package/dist/esm/limebb-document-item.entry.js +170 -0
  156. package/dist/esm/limebb-document-picker.entry.js +78 -0
  157. package/dist/esm/limebb-feed-item-thumbnail-file-info.entry.js +1 -1
  158. package/dist/esm/limebb-feed-timeline-item.entry.js +1 -1
  159. package/dist/esm/limebb-feed.entry.js +1 -1
  160. package/dist/esm/limebb-icon-picker.entry.js +1 -1
  161. package/dist/esm/limebb-info-tile-format.entry.js +1 -1
  162. package/dist/esm/limebb-info-tile.entry.js +1 -1
  163. package/dist/esm/limebb-kanban-group.entry.js +1 -1
  164. package/dist/esm/limebb-kanban-item.entry.js +1 -1
  165. package/dist/esm/limebb-lime-query-builder.entry.js +379 -147
  166. package/dist/esm/limebb-lime-query-filter-and_5.entry.js +270 -0
  167. package/dist/esm/limebb-lime-query-value-input.entry.js +235 -0
  168. package/dist/esm/limebb-limetype-field_2.entry.js +401 -0
  169. package/dist/esm/limebb-live-docs-info.entry.js +2 -2
  170. package/dist/esm/limebb-locale-picker.entry.js +9 -494
  171. package/dist/esm/limebb-mention-group-counter.entry.js +2 -2
  172. package/dist/esm/limebb-navigation-button_2.entry.js +3 -3
  173. package/dist/esm/limebb-notification-item.entry.js +1 -1
  174. package/dist/esm/limebb-percentage-visualizer.entry.js +2 -2
  175. package/dist/esm/limebb-property-selector.entry.js +230 -0
  176. package/dist/esm/limebb-response-format-item.entry.js +76 -0
  177. package/dist/esm/limebb-text-editor.entry.js +8 -69
  178. package/dist/esm/limebb-trend-indicator.entry.js +1 -1
  179. package/dist/esm/limetype-6e7552a7.js +85 -0
  180. package/dist/esm/loader.js +1 -1
  181. package/dist/esm/property-resolution-fde2375e.js +63 -0
  182. package/dist/esm/random-string-f6ef6fbf.js +22 -0
  183. package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
  184. package/dist/lime-crm-building-blocks/{p-85e11ff7.entry.js → p-00da9b24.entry.js} +1 -1
  185. package/dist/lime-crm-building-blocks/p-02c0cc04.entry.js +1 -0
  186. package/dist/lime-crm-building-blocks/p-123190c3.js +1 -0
  187. package/dist/lime-crm-building-blocks/p-244ee55b.entry.js +1 -0
  188. package/dist/lime-crm-building-blocks/p-35897ec3.js +1 -0
  189. package/dist/lime-crm-building-blocks/{p-d6a07ea4.entry.js → p-3932077b.entry.js} +1 -1
  190. package/dist/lime-crm-building-blocks/p-3b0a15ec.js +1 -0
  191. package/dist/lime-crm-building-blocks/p-4a82410e.entry.js +1 -0
  192. package/dist/lime-crm-building-blocks/{p-a694aae5.entry.js → p-50d3d61a.entry.js} +1 -1
  193. package/dist/lime-crm-building-blocks/p-5a6d2e7f.js +1 -0
  194. package/dist/lime-crm-building-blocks/p-60971d64.js +1 -0
  195. package/dist/lime-crm-building-blocks/{p-a44f543c.entry.js → p-61282e1a.entry.js} +1 -1
  196. package/dist/lime-crm-building-blocks/p-6c1146ca.entry.js +1 -0
  197. package/dist/lime-crm-building-blocks/p-70a28b93.entry.js +1 -0
  198. package/dist/lime-crm-building-blocks/{p-16199127.entry.js → p-79d4668a.entry.js} +1 -1
  199. package/dist/lime-crm-building-blocks/p-7e6fb4af.js +1 -0
  200. package/dist/lime-crm-building-blocks/{p-88cc5b66.entry.js → p-82d33d43.entry.js} +1 -1
  201. package/dist/lime-crm-building-blocks/{p-7db8652e.entry.js → p-8c4eb49f.entry.js} +1 -1
  202. package/dist/lime-crm-building-blocks/p-96beaabc.entry.js +1 -0
  203. package/dist/lime-crm-building-blocks/p-9d25ed5a.entry.js +1 -0
  204. package/dist/lime-crm-building-blocks/{p-8dce83ad.entry.js → p-9d9f25da.entry.js} +1 -1
  205. package/dist/lime-crm-building-blocks/p-a659d55a.js +1 -0
  206. package/dist/lime-crm-building-blocks/p-b7c72179.entry.js +1 -0
  207. package/dist/lime-crm-building-blocks/p-baf4e428.entry.js +1 -0
  208. package/dist/lime-crm-building-blocks/{p-516210d4.entry.js → p-beb0d164.entry.js} +1 -1
  209. package/dist/lime-crm-building-blocks/p-d298b34e.js +1 -0
  210. package/dist/lime-crm-building-blocks/{p-047c89de.entry.js → p-d89c44ad.entry.js} +1 -1
  211. package/dist/lime-crm-building-blocks/p-e0ab1554.js +1 -0
  212. package/dist/lime-crm-building-blocks/{p-46d2f604.entry.js → p-e35299e0.entry.js} +1 -1
  213. package/dist/lime-crm-building-blocks/{p-8ef39ab8.entry.js → p-e9d23ef7.entry.js} +1 -1
  214. package/dist/lime-crm-building-blocks/p-ef8a5266.entry.js +1 -0
  215. package/dist/lime-crm-building-blocks/{p-abf1c197.entry.js → p-f52125a0.entry.js} +1 -1
  216. package/dist/lime-crm-building-blocks/p-f99c611d.entry.js +1 -0
  217. package/dist/lime-crm-building-blocks/p-fbda77a7.js +1 -0
  218. package/dist/lime-crm-building-blocks/p-fe2b91d9.js +1 -0
  219. package/dist/lime-crm-building-blocks/{p-d6af09a8.entry.js → p-ff0b244b.entry.js} +1 -1
  220. package/dist/types/components/document-picker/document-item/document-item.d.ts +46 -0
  221. package/dist/types/components/document-picker/document-item/document-item.types.d.ts +37 -0
  222. package/dist/types/components/document-picker/document-picker.d.ts +80 -0
  223. package/dist/types/components/document-picker/document.types.d.ts +2 -0
  224. package/dist/types/components/lime-query-builder/expressions/lime-query-filter-and.d.ts +56 -0
  225. package/dist/types/components/lime-query-builder/expressions/lime-query-filter-comparison.d.ts +64 -0
  226. package/dist/types/components/lime-query-builder/expressions/lime-query-filter-expression.d.ts +53 -0
  227. package/dist/types/components/lime-query-builder/expressions/lime-query-filter-not.d.ts +54 -0
  228. package/dist/types/components/lime-query-builder/expressions/lime-query-filter-or.d.ts +55 -0
  229. package/dist/types/components/lime-query-builder/expressions/lime-query-value-input.d.ts +92 -0
  230. package/dist/types/components/lime-query-builder/filter-conversion.d.ts +18 -0
  231. package/dist/types/components/lime-query-builder/lime-query-builder.d.ts +30 -8
  232. package/dist/types/components/lime-query-builder/limetype-field/limetype-field.d.ts +96 -0
  233. package/dist/types/components/lime-query-builder/property-selection-format.d.ts +23 -0
  234. package/dist/types/components/lime-query-builder/property-selector/property-selector.d.ts +71 -0
  235. package/dist/types/components/lime-query-builder/response-format-editor.d.ts +57 -0
  236. package/dist/types/components/lime-query-builder/response-format-item.d.ts +46 -0
  237. package/dist/types/components.d.ts +1795 -114
  238. package/dist/types/util/format-bytes.d.ts +20 -0
  239. package/package.json +2 -2
  240. package/dist/lime-crm-building-blocks/p-29346b1a.entry.js +0 -1
  241. package/dist/lime-crm-building-blocks/p-4ccce5cc.entry.js +0 -1
  242. package/dist/lime-crm-building-blocks/p-7ef3bace.entry.js +0 -1
  243. package/dist/lime-crm-building-blocks/p-8044ffbd.js +0 -1
  244. package/dist/lime-crm-building-blocks/p-92ec9205.entry.js +0 -1
  245. package/dist/lime-crm-building-blocks/p-bcc23575.js +0 -1
  246. package/dist/lime-crm-building-blocks/p-c40a3f4b.js +0 -1
@@ -76,11 +76,11 @@ const PercentageVisualizer = /*@__PURE__*/ proxyCustomElement(class PercentageVi
76
76
  render() {
77
77
  const normalizedValue = this.getNormalizedValue();
78
78
  const zeroPoint = this.getZeroPointPosition();
79
- return (h(Host, { key: 'b9876aea271ead3ed18a7fdc59d652b541aed30a', class: this.getContainerClassList(), style: {
79
+ return (h(Host, { key: 'a99a367379f75613f8f37824fae64d5425e13c92', class: this.getContainerClassList(), style: {
80
80
  '--limebb-percentage-visualizer-zero-point-position': `${zeroPoint}%`,
81
81
  '--limebb-percentage-visualizer-width': `${Math.abs(normalizedValue)}%`,
82
82
  '--limebb-percentage-visualizer-rotate': `${normalizedValue >= 0 ? '0deg' : '180deg'}`,
83
- } }, h("limel-notched-outline", { key: '64bea0a1e95c001494e8ecee42b6061c6d6c007c', tabIndex: 0, role: "meter", "aria-valuemin": this.rangeMin, "aria-valuemax": this.rangeMax, "aria-valuenow": this.numValue, "aria-labelledby": this.labelId, "aria-describedby": this.helperTextId, label: this.label, labelId: this.labelId, invalid: this.invalid, required: this.required, hasValue: true, hasFloatingLabel: true, "aria-controls": this.helperTextId }, h("div", { key: 'd1dc81b554828d9998ad6c1567c49c56a005b547', slot: "content" }, this.renderVisualization())), this.renderHelperLine()));
83
+ } }, h("limel-notched-outline", { key: '498c23ad0ddd79219de646286f9958a84c2592c9', tabIndex: 0, role: "meter", "aria-valuemin": this.rangeMin, "aria-valuemax": this.rangeMax, "aria-valuenow": this.numValue, "aria-labelledby": this.labelId, "aria-describedby": this.helperTextId, label: this.label, labelId: this.labelId, invalid: this.invalid, required: this.required, hasValue: true, hasFloatingLabel: true, "aria-controls": this.helperTextId }, h("div", { key: 'f8ba78a9b92bb93fc107e04f3001413c7560431b', slot: "content" }, this.renderVisualization())), this.renderHelperLine()));
84
84
  }
85
85
  renderVisualization() {
86
86
  if (this.reducePresence && (this.numValue === 0 || !this.hasValue())) {
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface LimebbPropertySelector extends Components.LimebbPropertySelector, HTMLElement {}
4
+ export const LimebbPropertySelector: {
5
+ prototype: LimebbPropertySelector;
6
+ new (): LimebbPropertySelector;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { P as PropertySelector, d as defineCustomElement$1 } from './property-selector.js';
2
+
3
+ const LimebbPropertySelector = PropertySelector;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { LimebbPropertySelector, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface LimebbResponseFormatEditor extends Components.LimebbResponseFormatEditor, HTMLElement {}
4
+ export const LimebbResponseFormatEditor: {
5
+ prototype: LimebbResponseFormatEditor;
6
+ new (): LimebbResponseFormatEditor;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { R as ResponseFormatEditor, d as defineCustomElement$1 } from './response-format-editor.js';
2
+
3
+ const LimebbResponseFormatEditor = ResponseFormatEditor;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { LimebbResponseFormatEditor, defineCustomElement };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface LimebbResponseFormatItem extends Components.LimebbResponseFormatItem, HTMLElement {}
4
+ export const LimebbResponseFormatItem: {
5
+ prototype: LimebbResponseFormatItem;
6
+ new (): LimebbResponseFormatItem;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { R as ResponseFormatItem, d as defineCustomElement$1 } from './response-format-item.js';
2
+
3
+ const LimebbResponseFormatItem = ResponseFormatItem;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { LimebbResponseFormatItem, defineCustomElement };
@@ -1,13 +1,17 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { D as De, M as Me, c, W as We, H as He, T as Te } from './index.esm.js';
2
+ import { c, W as We, H as He, T as Te } from './index.esm.js';
3
3
  import { A as ARROW_DOWN, a as ESCAPE, b as ARROW_UP, E as ENTER, T as TAB } from './keycodes.js';
4
- import { d as defineProperty, b as arrayLikeKeys, k as keys, c as getSymbols, s as stubArray, a as arrayPush, e as baseGetAllKeys, U as Uint8Array, S as Stack, g as getAllKeys } from './_Uint8Array.js';
5
- import { i as isSymbol, e as eq } from './_MapCache.js';
4
+ import { b as arrayLikeKeys, k as keys, c as getSymbols, s as stubArray, a as arrayPush, d as baseGetAllKeys, U as Uint8Array, S as Stack, g as getAllKeys } from './_Uint8Array.js';
5
+ import { d as defineProperty } from './_defineProperty.js';
6
+ import { e as eq } from './_MapCache.js';
6
7
  import { d as isObject, r as root, S as Symbol, a as isObjectLike, i as isArray } from './_Map.js';
7
8
  import { d as isPrototype, i as isArrayLike, o as overArg, g as getTag, h as baseUnary, n as nodeUtil, a as isBuffer } from './_getTag.js';
9
+ import { c as createRandomString } from './random-string.js';
10
+ import { h as hasLabel, a as hasHasManyRelation, b as getRelationProperty } from './limetype.js';
8
11
  import { i as isNonNull } from './non-null.js';
9
12
  import { d as defineCustomElement$3 } from './empty-state.js';
10
13
  import { d as defineCustomElement$2 } from './text-editor-picker.js';
14
+ import { i as isSymbol } from './isSymbol.js';
11
15
 
12
16
  /** Used to match a single whitespace character. */
13
17
  var reWhitespace = /\s/;
@@ -1093,71 +1097,6 @@ function getUpdatedItems(items, highlightedItemIndex) {
1093
1097
  });
1094
1098
  }
1095
1099
 
1096
- /* eslint-disable sonarjs/pseudo-random */
1097
- const createRandomString = () => {
1098
- var _a;
1099
- if (!('crypto' in window) ||
1100
- typeof ((_a = window.crypto) === null || _a === void 0 ? void 0 : _a.randomUUID) !== 'function') {
1101
- return legacyCreateRandomString();
1102
- }
1103
- return 'a_' + crypto.randomUUID(); // ids must start with letters
1104
- };
1105
- function legacyCreateRandomString() {
1106
- const USE_HEX = 36;
1107
- const SKIP_LEADING_ZERODOT = 2;
1108
- const ASCII_A = 97;
1109
- const NUMBER_OF_LETTERS = 26;
1110
- return (String.fromCodePoint(ASCII_A + Math.floor(Math.random() * NUMBER_OF_LETTERS)) +
1111
- Math.random()
1112
- .toString(USE_HEX)
1113
- .slice(Math.max(0, SKIP_LEADING_ZERODOT)) +
1114
- Math.random().toString(USE_HEX).slice(Math.max(0, SKIP_LEADING_ZERODOT)));
1115
- }
1116
-
1117
- /**
1118
- * Whether the given object has the given label or not.
1119
- *
1120
- * @param object the object to check label for
1121
- * @param label the label to check for
1122
- * @returns true if the object has the label
1123
- */
1124
- function hasLabel(object, label) {
1125
- return object.label === label;
1126
- }
1127
- /**
1128
- * Whether the given property is a hasmany relation or not.
1129
- *
1130
- * @param property the property to check
1131
- * @returns true if the property is a hasmany relation
1132
- */
1133
- function isManyRelation(property) {
1134
- return De(property) && !Me(property);
1135
- }
1136
- /**
1137
- * Finds a relation property on the given limetype that is related to a
1138
- * limetype with the given label.
1139
- *
1140
- * @param limetype the limetype to search for the relation property
1141
- * @param label the label of the target limetype to match
1142
- * @returns the relation property or undefined
1143
- */
1144
- function getRelationProperty(limetype, label) {
1145
- return Object.values(limetype.properties).find((property) => property &&
1146
- property.relation &&
1147
- hasLabel(property.relation.getLimetype(), label));
1148
- }
1149
- /**
1150
- * Whether the limetype has a hasmany relation of a limetype with the given label
1151
- *
1152
- * @param limetype the limetype
1153
- * @param relatedLabel the label of the related limetype
1154
- * @returns true if the limetype has the hasmany relation
1155
- */
1156
- function hasHasManyRelation(limetype, relatedLabel) {
1157
- const property = getRelationProperty(limetype, relatedLabel);
1158
- return !!property && isManyRelation(property);
1159
- }
1160
-
1161
1100
  /**
1162
1101
  * Get the limetypes that should be available for mentions
1163
1102
  *
@@ -1835,7 +1774,7 @@ const LimeBBTextEditor = /*@__PURE__*/ proxyCustomElement(class LimeBBTextEditor
1835
1774
  }
1836
1775
  render() {
1837
1776
  return [
1838
- h("limel-text-editor", { key: 'f2f48910b31ecf37bc6e41245f3e6e6a70b87695', 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 }),
1777
+ h("limel-text-editor", { key: 'de672970cfd1048cc232eeadd527153421f28f36', 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 }),
1839
1778
  this.renderPicker(),
1840
1779
  ];
1841
1780
  }
@@ -37,7 +37,7 @@ const TrendIndicator = /*@__PURE__*/ proxyCustomElement(class TrendIndicator ext
37
37
  this.numValue = this.parseValue(this.value);
38
38
  }
39
39
  render() {
40
- return (h(Host, { key: 'e3f051b38577e06c5b31fe18558747e9476ca7bd', class: this.getContainerClassList() }, h("limel-notched-outline", { key: '2d7eed12e714dcbdd4d7fa366c7ab5079d0e0c79', 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: '13f6acd297b66716dca8581d99fb129fb1dec035', slot: "content", tabIndex: 0 }, this.renderVisualization())), this.renderHelperLine(), this.renderTooltip()));
40
+ return (h(Host, { key: 'a0f458a114e5698f40899c44d532643f50bef249', class: this.getContainerClassList() }, h("limel-notched-outline", { key: 'fe9a66d44f3155d6594da5e7e16ce9a33907f800', 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: 'daff3b1e6ec7098e7353bca3664179fd9c2594c1', slot: "content", tabIndex: 0 }, this.renderVisualization())), this.renderHelperLine(), this.renderTooltip()));
41
41
  }
42
42
  renderVisualization() {
43
43
  if (this.reducePresence && (this.numValue === 0 || !this.hasValue())) {
@@ -0,0 +1,184 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { c } from './index.esm.js';
3
+ import { g as getIcon } from './limetype.js';
4
+ import { i as isNonNull } from './non-null.js';
5
+ import { i as isEqual } from './isEqual.js';
6
+ import { i as isArray, a as isObjectLike, b as baseGetTag } from './_Map.js';
7
+
8
+ /** `Object#toString` result references. */
9
+ var stringTag = '[object String]';
10
+
11
+ /**
12
+ * Checks if `value` is classified as a `String` primitive or object.
13
+ *
14
+ * @static
15
+ * @since 0.1.0
16
+ * @memberOf _
17
+ * @category Lang
18
+ * @param {*} value The value to check.
19
+ * @returns {boolean} Returns `true` if `value` is a string, else `false`.
20
+ * @example
21
+ *
22
+ * _.isString('abc');
23
+ * // => true
24
+ *
25
+ * _.isString(1);
26
+ * // => false
27
+ */
28
+ function isString(value) {
29
+ return typeof value == 'string' ||
30
+ (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
31
+ }
32
+
33
+ const RELATION_PROPERTY_TYPES = [
34
+ 'belongsto',
35
+ 'hasone',
36
+ 'hasmany',
37
+ 'hasandbelongstomany',
38
+ ];
39
+ const DEFAULT_ALLOWED_PROPERTY_TYPES = [
40
+ 'string',
41
+ 'text',
42
+ 'phone',
43
+ 'integer',
44
+ 'decimal',
45
+ 'percent',
46
+ 'time',
47
+ 'date',
48
+ 'year',
49
+ 'quarter',
50
+ 'month',
51
+ 'yesno',
52
+ 'link',
53
+ 'user',
54
+ 'xml',
55
+ 'option',
56
+ 'set',
57
+ 'file',
58
+ 'system',
59
+ ];
60
+
61
+ const allNonSystemPropertyTypes = DEFAULT_ALLOWED_PROPERTY_TYPES.filter((propertyType) => propertyType !== 'system');
62
+ allNonSystemPropertyTypes.push(...RELATION_PROPERTY_TYPES);
63
+ const LimetypeField = /*@__PURE__*/ proxyCustomElement(class LimetypeField extends HTMLElement {
64
+ constructor() {
65
+ super();
66
+ this.__registerHost();
67
+ this.change = createEvent(this, "change", 7);
68
+ /**
69
+ * A list of property fields that should be updated when the selected limetype changes.
70
+ */
71
+ this.propertyFields = [];
72
+ /**
73
+ * The name of this field. May be used as reference when a property mapping
74
+ * depends on the selected limetype.
75
+ */
76
+ this.fieldName = 'limetype';
77
+ this.handleChange = (event) => {
78
+ event.stopPropagation();
79
+ let selectedLimetype = '';
80
+ if (event.detail && 'value' in event.detail) {
81
+ selectedLimetype = event.detail.value;
82
+ }
83
+ this.change.emit(selectedLimetype || undefined);
84
+ };
85
+ }
86
+ componentWillLoad() {
87
+ const language = this.platform
88
+ .get(c.Application)
89
+ .getLanguage();
90
+ this.collator = new Intl.Collator(language, {
91
+ numeric: true,
92
+ sensitivity: 'base',
93
+ });
94
+ }
95
+ componentShouldUpdate(newValue, oldValue, property) {
96
+ var _a, _b;
97
+ return (property !== 'formInfo' ||
98
+ !isEqual((_a = newValue === null || newValue === void 0 ? void 0 : newValue.schema) === null || _a === void 0 ? void 0 : _a.oneOf, (_b = oldValue === null || oldValue === void 0 ? void 0 : oldValue.schema) === null || _b === void 0 ? void 0 : _b.oneOf));
99
+ }
100
+ render() {
101
+ var _a;
102
+ const options = this.getLimeTypes().map(limeTypeToOption);
103
+ options.sort((a, b) => this.collator.compare(a.text, b.text));
104
+ let selectedOption = options.find((option) => option.value === this.value);
105
+ let invalid = this.invalid;
106
+ if (this.value && !selectedOption) {
107
+ invalid = true;
108
+ options.unshift({
109
+ text: ((_a = this.limeTypeRepository.getLimeType(this.value)) === null || _a === void 0 ? void 0 : _a.localname.singular) || this.value,
110
+ value: this.value,
111
+ });
112
+ selectedOption = options[0];
113
+ }
114
+ const emptyOption = {
115
+ text: '',
116
+ value: '',
117
+ };
118
+ options.unshift(emptyOption);
119
+ return (h("limel-select", { key: '82ce4b92e4ff1285e259f07a35634df722f5baab', label: this.label, options: options, value: selectedOption, required: this.required, helperText: this.helperText, invalid: invalid, disabled: this.disabled || this.readonly, onChange: this.handleChange }));
120
+ }
121
+ componentWillRender() {
122
+ this.updatePropertyFields(this.value || '');
123
+ }
124
+ getLimeTypes() {
125
+ var _a, _b;
126
+ let limetypes = this.limetypes;
127
+ if ((_b = (_a = this.formInfo) === null || _a === void 0 ? void 0 : _a.schema) === null || _b === void 0 ? void 0 : _b.oneOf) {
128
+ limetypes = this.formInfo.schema.oneOf
129
+ .map((choice) => choice.const)
130
+ .filter(isString);
131
+ }
132
+ if (!limetypes) {
133
+ return this.limeTypeRepository.getLimeTypes();
134
+ }
135
+ return limetypes
136
+ .map((limetype) => this.limeTypeRepository.getLimeType(limetype))
137
+ .filter(isNonNull);
138
+ }
139
+ updatePropertyFields(selectedLimetype) {
140
+ for (const field of this.propertyFields) {
141
+ field.limetype = selectedLimetype;
142
+ if (field.allowedPropertyTypes === DEFAULT_ALLOWED_PROPERTY_TYPES) {
143
+ field.allowedPropertyTypes = allNonSystemPropertyTypes;
144
+ }
145
+ }
146
+ }
147
+ get limeTypeRepository() {
148
+ return this.platform.get(c.LimeTypeRepository);
149
+ }
150
+ }, [0, "limebb-limetype-field", {
151
+ "platform": [16],
152
+ "context": [16],
153
+ "label": [513],
154
+ "required": [516],
155
+ "readonly": [516],
156
+ "disabled": [516],
157
+ "value": [513],
158
+ "helperText": [513, "helper-text"],
159
+ "invalid": [4],
160
+ "limetypes": [16],
161
+ "propertyFields": [16],
162
+ "fieldName": [1, "field-name"],
163
+ "formInfo": [16]
164
+ }]);
165
+ const limeTypeToOption = (limetype) => ({
166
+ text: limetype.localname.singular,
167
+ value: limetype.name,
168
+ icon: getIcon(limetype),
169
+ });
170
+ function defineCustomElement() {
171
+ if (typeof customElements === "undefined") {
172
+ return;
173
+ }
174
+ const components = ["limebb-limetype-field"];
175
+ components.forEach(tagName => { switch (tagName) {
176
+ case "limebb-limetype-field":
177
+ if (!customElements.get(tagName)) {
178
+ customElements.define(tagName, LimetypeField);
179
+ }
180
+ break;
181
+ } });
182
+ }
183
+
184
+ export { LimetypeField as L, defineCustomElement as d };
@@ -0,0 +1,85 @@
1
+ import { D as De, M as Me } from './index.esm.js';
2
+
3
+ /**
4
+ * Get the color for a limetype from its UI configuration
5
+ *
6
+ * @param limetype the limetype
7
+ * @returns the color string (CSS variable or RGB)
8
+ */
9
+ function getColor(limetype) {
10
+ var _a;
11
+ const limetypeWithUI = limetype;
12
+ const color = ((_a = limetypeWithUI === null || limetypeWithUI === void 0 ? void 0 : limetypeWithUI.ui) === null || _a === void 0 ? void 0 : _a.color) || 'rgb(var(--color-gray-default))';
13
+ return getLimeColor(color);
14
+ }
15
+ /**
16
+ * Convert lime color references to CSS variables
17
+ *
18
+ * @param color the color string
19
+ * @returns CSS-ready color string
20
+ */
21
+ function getLimeColor(color) {
22
+ if (color.startsWith('lime-')) {
23
+ return `var(--${color})`;
24
+ }
25
+ return color;
26
+ }
27
+ /**
28
+ * Get the icon configuration for a limetype
29
+ *
30
+ * @param limetype the limetype
31
+ * @returns Icon object with name and color
32
+ */
33
+ function getIcon(limetype) {
34
+ var _a;
35
+ const limetypeWithUI = limetype;
36
+ return {
37
+ name: ((_a = limetypeWithUI === null || limetypeWithUI === void 0 ? void 0 : limetypeWithUI.ui) === null || _a === void 0 ? void 0 : _a.icon) || 'decision',
38
+ color: getColor(limetype),
39
+ };
40
+ }
41
+ /**
42
+ * Whether the given object has the given label or not.
43
+ *
44
+ * @param object the object to check label for
45
+ * @param label the label to check for
46
+ * @returns true if the object has the label
47
+ */
48
+ function hasLabel(object, label) {
49
+ return object.label === label;
50
+ }
51
+ /**
52
+ * Whether the given property is a hasmany relation or not.
53
+ *
54
+ * @param property the property to check
55
+ * @returns true if the property is a hasmany relation
56
+ */
57
+ function isManyRelation(property) {
58
+ return De(property) && !Me(property);
59
+ }
60
+ /**
61
+ * Finds a relation property on the given limetype that is related to a
62
+ * limetype with the given label.
63
+ *
64
+ * @param limetype the limetype to search for the relation property
65
+ * @param label the label of the target limetype to match
66
+ * @returns the relation property or undefined
67
+ */
68
+ function getRelationProperty(limetype, label) {
69
+ return Object.values(limetype.properties).find((property) => property &&
70
+ property.relation &&
71
+ hasLabel(property.relation.getLimetype(), label));
72
+ }
73
+ /**
74
+ * Whether the limetype has a hasmany relation of a limetype with the given label
75
+ *
76
+ * @param limetype the limetype
77
+ * @param relatedLabel the label of the related limetype
78
+ * @returns true if the limetype has the hasmany relation
79
+ */
80
+ function hasHasManyRelation(limetype, relatedLabel) {
81
+ const property = getRelationProperty(limetype, relatedLabel);
82
+ return !!property && isManyRelation(property);
83
+ }
84
+
85
+ export { hasHasManyRelation as a, getRelationProperty as b, getIcon as g, hasLabel as h };
@@ -11,8 +11,8 @@ const LiveDocsInfo = /*@__PURE__*/ proxyCustomElement(class LiveDocsInfo extends
11
11
  }
12
12
  render() {
13
13
  return [
14
- h("div", { key: 'afca6783253565c24917f26fa037d47555cc79ee', class: "header" }, h("limel-icon", { key: 'e3119195e169a5c1b5534985d92537f4bd71036c', name: "not_showing_video_frames" }), h("h2", { key: 'a00ac4d1cccf23e00975d0f95f423b3179170d1f' }, "Viewing this file type requires ", h("em", { key: 'cd66615d34d92b74943d0d87c796ac5d14f3f314' }, "Live Docs"))),
15
- h("p", { key: '39d0f82f29ec687cfd209b9c32c36b3be08b23aa' }, h("em", { key: 'aea7387f90684dc1571434530708971800a09d49' }, "Live Docs"), " not only enables you to view many file formats such as Microsoft Office documents, but it also empowers you to edit them right in the CRM. No need to download anything on your device!", h("a", { key: 'a254ad58b3d56386bae9e3ef4113b8d6c70a236e', target: "_blank", href: "https://www.lime-technologies.com/en/lime-crm/live-docs/" }, "Learn more")),
14
+ h("div", { key: '98c48e74c9cade3b2da713618d585dd8f80e3116', class: "header" }, h("limel-icon", { key: 'b8f56066533f64842a25a324c2794914700c2e8a', name: "not_showing_video_frames" }), h("h2", { key: 'c1e8c722d1fc7d22a85f348a66094ffd8c5a5dd3' }, "Viewing this file type requires ", h("em", { key: '8aca798b2cf1bfe81be5142496e693f57efea8b1' }, "Live Docs"))),
15
+ h("p", { key: '3934d0c93f6c4b6524643c2ecadd0f3f0f925b09' }, h("em", { key: '1d3b811bf94ba19644231e77434442f9f1ade8f6' }, "Live Docs"), " not only enables you to view many file formats such as Microsoft Office documents, but it also empowers you to edit them right in the CRM. No need to download anything on your device!", h("a", { key: '023c16b0cfc5b57d750c9a344690fcce51350100', target: "_blank", href: "https://www.lime-technologies.com/en/lime-crm/live-docs/" }, "Learn more")),
16
16
  ];
17
17
  }
18
18
  static get style() { return LimebbLiveDocsInfoStyle0; }
@@ -58,7 +58,7 @@ const NotificationListItem = /*@__PURE__*/ proxyCustomElement(class Notification
58
58
  }
59
59
  render() {
60
60
  var _a, _b;
61
- return (h(Host, { key: 'db6570da8224ed4be6e67b0c876f67a74dd226b7', id: this.item.id, class: {
61
+ return (h(Host, { key: 'e51a5ebe9c955d43f1025a61a12ca870abb66347', id: this.item.id, class: {
62
62
  'is-clickable': this.isItemClickable(),
63
63
  'is-read': !!((_a = this.item) === null || _a === void 0 ? void 0 : _a.read),
64
64
  'is-selected': !!((_b = this.item) === null || _b === void 0 ? void 0 : _b.selected),