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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (480) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/{_Map-60aae0ed.js → _Map-BlpAtLvq.js} +12 -24
  3. package/dist/cjs/{_MapCache-8b125fbb.js → _MapCache-De1Fwe0H.js} +5 -7
  4. package/dist/cjs/{_Uint8Array-95263550.js → _Uint8Array-C_lvn5HO.js} +6 -14
  5. package/dist/cjs/{_baseIsEqual-f2d60d3e.js → _baseIsEqual-BtwicGmu.js} +4 -4
  6. package/dist/cjs/{_defineProperty-40a6ad5d.js → _defineProperty-eImBwVFM.js} +2 -4
  7. package/dist/cjs/{_getTag-8809c5c6.js → _getTag-CdUodI28.js} +18 -39
  8. package/dist/cjs/{get-932b213e.js → get-BRGtX379.js} +6 -14
  9. package/dist/cjs/{index-519b904a.js → index-C_OnxXhP.js} +541 -322
  10. package/dist/cjs/index.esm-DhBVH875.js +838 -0
  11. package/dist/cjs/{isSymbol-5b36aeee.js → isSymbol-D8S28StA.js} +1 -1
  12. package/dist/cjs/lime-crm-building-blocks.cjs.js +7 -7
  13. package/dist/cjs/{lime-query-validation-c118b96d.js → lime-query-validation-CWlZPm8m.js} +8 -8
  14. package/dist/cjs/limebb-alert-dialog.cjs.entry.js +5 -8
  15. package/dist/cjs/limebb-browser.cjs.entry.js +11 -14
  16. package/dist/cjs/limebb-chat-icon-list_3.cjs.entry.js +15 -20
  17. package/dist/cjs/limebb-chat-list.cjs.entry.js +11 -12
  18. package/dist/cjs/limebb-component-config.cjs.entry.js +17 -16
  19. package/dist/cjs/limebb-component-picker.cjs.entry.js +9 -12
  20. package/dist/cjs/limebb-composer-toolbar.cjs.entry.js +9 -12
  21. package/dist/cjs/limebb-currency-picker.cjs.entry.js +1907 -1790
  22. package/dist/cjs/limebb-dashboard-widget.cjs.entry.js +4 -7
  23. package/dist/cjs/limebb-data-cells.cjs.entry.js +5 -8
  24. package/dist/cjs/limebb-date-picker.cjs.entry.js +7 -9
  25. package/dist/cjs/limebb-date-range.cjs.entry.js +6 -9
  26. package/dist/cjs/limebb-document-chips.cjs.entry.js +10 -11
  27. package/dist/cjs/limebb-document-item.cjs.entry.js +6 -9
  28. package/dist/cjs/limebb-document-picker.cjs.entry.js +6 -9
  29. package/dist/cjs/limebb-empty-state.cjs.entry.js +3 -6
  30. package/dist/cjs/limebb-feed-item-thumbnail-file-info.cjs.entry.js +4 -7
  31. package/dist/cjs/limebb-feed-timeline-item.cjs.entry.js +8 -11
  32. package/dist/cjs/limebb-feed.cjs.entry.js +430 -168
  33. package/dist/cjs/limebb-icon-picker.cjs.entry.js +4 -6
  34. package/dist/cjs/limebb-info-tile-currency-format.cjs.entry.js +2 -4
  35. package/dist/cjs/limebb-info-tile-date-format.cjs.entry.js +4 -7
  36. package/dist/cjs/limebb-info-tile-decimal-format.cjs.entry.js +2 -4
  37. package/dist/cjs/limebb-info-tile-format.cjs.entry.js +5 -8
  38. package/dist/cjs/limebb-info-tile-relative-date-format.cjs.entry.js +2 -4
  39. package/dist/cjs/limebb-info-tile-unit-format.cjs.entry.js +2 -4
  40. package/dist/cjs/limebb-info-tile.cjs.entry.js +27 -24
  41. package/dist/cjs/limebb-kanban-group.cjs.entry.js +8 -11
  42. package/dist/cjs/limebb-kanban-item.cjs.entry.js +8 -11
  43. package/dist/cjs/limebb-kanban.cjs.entry.js +5 -8
  44. package/dist/cjs/limebb-lime-query-builder.cjs.entry.js +9 -12
  45. package/dist/cjs/limebb-lime-query-filter-builder_3.cjs.entry.js +27 -29
  46. package/dist/cjs/limebb-lime-query-filter-comparison_2.cjs.entry.js +26 -30
  47. package/dist/cjs/limebb-lime-query-filter-group_3.cjs.entry.js +25 -30
  48. package/dist/cjs/limebb-lime-query-order-by-item.cjs.entry.js +6 -9
  49. package/dist/cjs/limebb-lime-query-response-format-builder.cjs.entry.js +9 -12
  50. package/dist/cjs/limebb-lime-query-response-format-editor_2.cjs.entry.js +8 -12
  51. package/dist/cjs/limebb-limeobject-file-viewer.cjs.entry.js +9 -12
  52. package/dist/cjs/limebb-live-docs-info.cjs.entry.js +5 -8
  53. package/dist/cjs/limebb-loader.cjs.entry.js +12 -10
  54. package/dist/cjs/limebb-locale-picker.cjs.entry.js +29 -49
  55. package/dist/cjs/limebb-mention-group-counter.cjs.entry.js +5 -8
  56. package/dist/cjs/limebb-mention.cjs.entry.js +6 -9
  57. package/dist/cjs/limebb-navigation-button_2.cjs.entry.js +10 -14
  58. package/dist/cjs/limebb-notification-item.cjs.entry.js +9 -12
  59. package/dist/cjs/limebb-notification-list.cjs.entry.js +10 -11
  60. package/dist/cjs/limebb-object-chip.cjs.entry.js +16 -15
  61. package/dist/cjs/limebb-percentage-visualizer.cjs.entry.js +9 -10
  62. package/dist/cjs/limebb-property-selector.cjs.entry.js +9 -12
  63. package/dist/cjs/limebb-text-editor-picker.cjs.entry.js +9 -10
  64. package/dist/cjs/limebb-text-editor.cjs.entry.js +53 -307
  65. package/dist/cjs/limebb-trend-indicator.cjs.entry.js +8 -9
  66. package/dist/cjs/{limetype-3c1c53b6.js → limetype-6tkuY6nm.js} +2 -2
  67. package/dist/cjs/loader.cjs.js +3 -5
  68. package/dist/collection/collection-manifest.json +3 -2
  69. package/dist/collection/components/alert-dialog/alert-dialog.css +133 -1
  70. package/dist/collection/components/alert-dialog/alert-dialog.js +11 -10
  71. package/dist/collection/components/browser/browser.js +14 -9
  72. package/dist/collection/components/chat-list/chat-icon-list/chat-icon-list.css +9 -11
  73. package/dist/collection/components/chat-list/chat-icon-list/chat-icon-list.js +3 -2
  74. package/dist/collection/components/chat-list/chat-item/chat-item.css +9 -0
  75. package/dist/collection/components/chat-list/chat-item/chat-item.js +11 -8
  76. package/dist/collection/components/chat-list/chat-list.css +9 -0
  77. package/dist/collection/components/chat-list/chat-list.js +15 -12
  78. package/dist/collection/components/chat-list/typing-indicator/typing-indicator.js +1 -1
  79. package/dist/collection/components/component-command-picker/component-config/component-config.js +23 -19
  80. package/dist/collection/components/component-command-picker/component-picker/component-picker.js +21 -18
  81. package/dist/collection/components/composer-toolbar/composer-toolbar.js +14 -10
  82. package/dist/collection/components/currency-picker/currency-picker.js +15 -13
  83. package/dist/collection/components/dashboard-widget/dashboard-widget.js +11 -10
  84. package/dist/collection/components/data-cells/data-cells.css +9 -0
  85. package/dist/collection/components/data-cells/data-cells.js +8 -5
  86. package/dist/collection/components/date-picker/date-picker.js +20 -17
  87. package/dist/collection/components/date-range/date-range.js +19 -15
  88. package/dist/collection/components/document-chips/document-chips.js +5 -4
  89. package/dist/collection/components/document-picker/document-item/document-item.js +13 -8
  90. package/dist/collection/components/document-picker/document-picker.css +9 -0
  91. package/dist/collection/components/document-picker/document-picker.js +18 -13
  92. package/dist/collection/components/empty-state/empty-state.js +6 -5
  93. package/dist/collection/components/feed/feed-item/feed-timeline-item.css +41 -11
  94. package/dist/collection/components/feed/feed-item/feed-timeline-item.js +12 -9
  95. package/dist/collection/components/feed/feed-item-thumbnail-file-info/feed-item-thumbnail-file-info.css +9 -0
  96. package/dist/collection/components/feed/feed-item-thumbnail-file-info/feed-item-thumbnail-file-info.js +3 -3
  97. package/dist/collection/components/feed/feed.js +21 -18
  98. package/dist/collection/components/icon-picker/icon-picker.js +15 -15
  99. package/dist/collection/components/info-tile/format/config/info-tile-currency-format.js +8 -4
  100. package/dist/collection/components/info-tile/format/config/info-tile-date-format.js +4 -2
  101. package/dist/collection/components/info-tile/format/config/info-tile-decimal-format.js +4 -2
  102. package/dist/collection/components/info-tile/format/config/info-tile-format.js +11 -7
  103. package/dist/collection/components/info-tile/format/config/info-tile-relative-date-format.js +4 -2
  104. package/dist/collection/components/info-tile/format/config/info-tile-unit-format.js +4 -2
  105. package/dist/collection/components/info-tile/info-tile.js +29 -23
  106. package/dist/collection/components/kanban/kanban-group/kanban-group.css +25 -9
  107. package/dist/collection/components/kanban/kanban-group/kanban-group.js +19 -16
  108. package/dist/collection/components/kanban/kanban-item/kanban-item.css +9 -0
  109. package/dist/collection/components/kanban/kanban-item/kanban-item.js +9 -5
  110. package/dist/collection/components/kanban/kanban.js +10 -5
  111. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-builder.js +12 -8
  112. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-comparison.js +11 -9
  113. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-expression.css +9 -0
  114. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-expression.js +14 -10
  115. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-group.css +9 -0
  116. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-group.js +14 -10
  117. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.css +9 -0
  118. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.js +15 -11
  119. package/dist/collection/components/lime-query-builder/expressions/lime-query-value-input.js +17 -14
  120. package/dist/collection/components/lime-query-builder/lime-query-builder.js +13 -9
  121. package/dist/collection/components/lime-query-builder/lime-query-response-format-builder.js +13 -9
  122. package/dist/collection/components/lime-query-builder/limetype-field/limetype-field.js +22 -19
  123. package/dist/collection/components/lime-query-builder/order-by/order-by-editor.js +12 -8
  124. package/dist/collection/components/lime-query-builder/order-by/order-by-item.js +12 -8
  125. package/dist/collection/components/lime-query-builder/property-selector/property-selector.js +12 -10
  126. package/dist/collection/components/lime-query-builder/response-format/response-format-editor.js +11 -7
  127. package/dist/collection/components/lime-query-builder/response-format/response-format-item.css +17 -1
  128. package/dist/collection/components/lime-query-builder/response-format/response-format-item.js +11 -7
  129. package/dist/collection/components/limeobject/file-viewer/file-viewer.js +8 -5
  130. package/dist/collection/components/limeobject/file-viewer/live-docs-info.js +2 -2
  131. package/dist/collection/components/loader/loader.js +4 -2
  132. package/dist/collection/components/locale-picker/locale-picker.js +23 -19
  133. package/dist/collection/components/mention/mention.js +4 -4
  134. package/dist/collection/components/navigation-button/navigation-button.css +24 -1
  135. package/dist/collection/components/navigation-button/navigation-button.js +10 -9
  136. package/dist/collection/components/notification-list/notification-item/notification-item.css +9 -0
  137. package/dist/collection/components/notification-list/notification-item/notification-item.js +9 -5
  138. package/dist/collection/components/notification-list/notification-list.css +9 -0
  139. package/dist/collection/components/notification-list/notification-list.js +12 -8
  140. package/dist/collection/components/object-chip/object-chip.js +7 -6
  141. package/dist/collection/components/percentage-visualizer/percentage-visualizer.css +9 -0
  142. package/dist/collection/components/percentage-visualizer/percentage-visualizer.js +21 -19
  143. package/dist/collection/components/summary-popover/summary-popover.js +28 -21
  144. package/dist/collection/components/text-editor/mention-group-counter.js +8 -7
  145. package/dist/collection/components/text-editor/text-editor-picker.js +10 -7
  146. package/dist/collection/components/text-editor/text-editor.js +37 -29
  147. package/dist/collection/components/trend-indicator/trend-indicator.css +9 -0
  148. package/dist/collection/components/trend-indicator/trend-indicator.js +19 -17
  149. package/dist/components/_Map.js +1 -342
  150. package/dist/components/_MapCache.js +1 -433
  151. package/dist/components/_Uint8Array.js +1 -349
  152. package/dist/components/_baseIsEqual.js +1 -494
  153. package/dist/components/_defineProperty.js +1 -13
  154. package/dist/components/_getTag.js +1 -421
  155. package/dist/components/chat-icon-list.js +1 -55
  156. package/dist/components/chat-item.js +1 -184
  157. package/dist/components/currency-picker.js +1 -1917
  158. package/dist/components/date-picker.js +1 -151
  159. package/dist/components/document-item.js +1 -212
  160. package/dist/components/dom.js +1 -26
  161. package/dist/components/empty-state.js +1 -61
  162. package/dist/components/extension-mapping.js +1 -55
  163. package/dist/components/feed-item-thumbnail-file-info.js +1 -33
  164. package/dist/components/feed-timeline-item.js +1 -453
  165. package/dist/components/get.js +1 -308
  166. package/dist/components/highlight-item.handler.js +1 -36
  167. package/dist/components/index.d.ts +2 -0
  168. package/dist/components/index.esm.js +1 -963
  169. package/dist/components/index.js +1 -1
  170. package/dist/components/isSymbol.js +1 -28
  171. package/dist/components/kanban-group.js +1 -148
  172. package/dist/components/kanban-item.js +1 -182
  173. package/dist/components/keycodes.js +1 -7
  174. package/dist/components/lime-query-filter-builder.js +1 -132
  175. package/dist/components/lime-query-filter-comparison.js +1 -180
  176. package/dist/components/lime-query-filter-expression.js +1 -420
  177. package/dist/components/lime-query-validation.js +1 -617
  178. package/dist/components/lime-query-value-input.js +1 -387
  179. package/dist/components/limebb-alert-dialog.js +1 -71
  180. package/dist/components/limebb-browser.js +1 -116
  181. package/dist/components/limebb-chat-icon-list.js +1 -6
  182. package/dist/components/limebb-chat-item.js +1 -6
  183. package/dist/components/limebb-chat-list.js +1 -302
  184. package/dist/components/limebb-component-config.js +1 -176
  185. package/dist/components/limebb-component-picker.js +1 -180
  186. package/dist/components/limebb-composer-toolbar.js +1 -136
  187. package/dist/components/limebb-currency-picker.js +1 -6
  188. package/dist/components/limebb-dashboard-widget.js +1 -48
  189. package/dist/components/limebb-data-cells.js +1 -169
  190. package/dist/components/limebb-date-picker.js +1 -6
  191. package/dist/components/limebb-date-range.js +1 -83
  192. package/dist/components/limebb-document-chips.js +1 -437
  193. package/dist/components/limebb-document-item.js +1 -6
  194. package/dist/components/limebb-document-picker.js +1 -111
  195. package/dist/components/limebb-empty-state.js +1 -6
  196. package/dist/components/limebb-feed-item-thumbnail-file-info.js +1 -6
  197. package/dist/components/limebb-feed-timeline-item.js +1 -6
  198. package/dist/components/limebb-feed.js +1 -398
  199. package/dist/components/limebb-icon-picker.js +1 -53026
  200. package/dist/components/limebb-info-tile-currency-format.js +1 -116
  201. package/dist/components/limebb-info-tile-date-format.js +1 -272
  202. package/dist/components/limebb-info-tile-decimal-format.js +1 -95
  203. package/dist/components/limebb-info-tile-format.js +1 -144
  204. package/dist/components/limebb-info-tile-relative-date-format.js +1 -72
  205. package/dist/components/limebb-info-tile-unit-format.js +1 -183
  206. package/dist/components/limebb-info-tile.js +1 -626
  207. package/dist/components/limebb-kanban-group.js +1 -6
  208. package/dist/components/limebb-kanban-item.js +1 -6
  209. package/dist/components/limebb-kanban.js +1 -79
  210. package/dist/components/limebb-lime-query-builder.js +1 -424
  211. package/dist/components/limebb-lime-query-filter-builder.js +1 -6
  212. package/dist/components/limebb-lime-query-filter-comparison.js +1 -6
  213. package/dist/components/limebb-lime-query-filter-expression.js +1 -6
  214. package/dist/components/limebb-lime-query-filter-group.js +1 -6
  215. package/dist/components/limebb-lime-query-filter-not.js +1 -6
  216. package/dist/components/limebb-lime-query-order-by-editor.js +1 -6
  217. package/dist/components/limebb-lime-query-order-by-item.js +1 -6
  218. package/dist/components/limebb-lime-query-response-format-builder.js +1 -310
  219. package/dist/components/limebb-lime-query-response-format-editor.js +1 -6
  220. package/dist/components/limebb-lime-query-response-format-item.js +1 -6
  221. package/dist/components/limebb-lime-query-value-input.js +1 -6
  222. package/dist/components/limebb-limeobject-file-viewer.js +1 -175
  223. package/dist/components/limebb-limetype-field.js +1 -6
  224. package/dist/components/limebb-live-docs-info.js +1 -6
  225. package/dist/components/limebb-loader.js +1 -78
  226. package/dist/components/limebb-locale-picker.js +1 -1165
  227. package/dist/components/limebb-mention-group-counter.js +1 -48
  228. package/dist/components/limebb-mention.js +1 -79
  229. package/dist/components/limebb-navigation-button.js +1 -6
  230. package/dist/components/limebb-notification-item.js +1 -6
  231. package/dist/components/limebb-notification-list.js +1 -253
  232. package/dist/components/limebb-object-chip.js +1 -253
  233. package/dist/components/limebb-percentage-visualizer.js +1 -6
  234. package/dist/components/limebb-property-selector.js +1 -6
  235. package/dist/components/limebb-summary-popover.js +1 -6
  236. package/dist/components/limebb-text-editor-picker.js +1 -6
  237. package/dist/components/limebb-text-editor.js +1 -1902
  238. package/dist/components/limebb-trend-indicator.js +1 -175
  239. package/dist/components/limebb-typing-indicator.js +1 -6
  240. package/dist/components/limetype-field.js +1 -216
  241. package/dist/components/limetype.js +1 -85
  242. package/dist/components/live-docs-info.js +1 -34
  243. package/dist/components/navigation-button.js +1 -74
  244. package/dist/components/negate.js +1 -40
  245. package/dist/components/non-null.js +1 -10
  246. package/dist/components/notification-item.js +1 -168
  247. package/dist/components/order-by-editor.js +1 -139
  248. package/dist/components/order-by-item.js +1 -73
  249. package/dist/components/percentage-class.js +1 -64
  250. package/dist/components/percentage-visualizer.js +1 -219
  251. package/dist/components/property-selector.js +1 -372
  252. package/dist/components/random-string.js +1 -22
  253. package/dist/components/response-format-editor.js +1 -331
  254. package/dist/components/response-format-item.js +1 -126
  255. package/dist/components/summary-popover.js +1 -159
  256. package/dist/components/text-editor-picker.js +1 -128
  257. package/dist/components/typing-indicator.js +1 -31
  258. package/dist/esm/{_Map-aede53b6.js → _Map-ByjZfyP_.js} +8 -20
  259. package/dist/esm/{_MapCache-af496e9d.js → _MapCache-C_kVhYUl.js} +5 -7
  260. package/dist/esm/{_Uint8Array-d6ebd526.js → _Uint8Array-DVXPnoWk.js} +6 -10
  261. package/dist/esm/{_baseIsEqual-077b6bb3.js → _baseIsEqual-DB13O4pD.js} +4 -4
  262. package/dist/esm/{_defineProperty-e6a185c3.js → _defineProperty-DSmG08hO.js} +2 -4
  263. package/dist/esm/{_getTag-d02a95fa.js → _getTag-DZlkp9mJ.js} +12 -32
  264. package/dist/esm/{get-3e42932b.js → get-Bo260bSC.js} +6 -14
  265. package/dist/esm/{index-d86e55c0.js → index-BIwHMk6j.js} +539 -300
  266. package/dist/esm/index.esm-BjlE4usG.js +823 -0
  267. package/dist/esm/{isSymbol-1c5f65cc.js → isSymbol-Ci8cASb6.js} +1 -1
  268. package/dist/esm/lime-crm-building-blocks.js +6 -5
  269. package/dist/esm/{lime-query-validation-01797a51.js → lime-query-validation-S9h8L6bg.js} +8 -8
  270. package/dist/esm/limebb-alert-dialog.entry.js +5 -6
  271. package/dist/esm/limebb-browser.entry.js +11 -12
  272. package/dist/esm/limebb-chat-icon-list_3.entry.js +15 -18
  273. package/dist/esm/limebb-chat-list.entry.js +11 -10
  274. package/dist/esm/limebb-component-config.entry.js +17 -14
  275. package/dist/esm/limebb-component-picker.entry.js +9 -10
  276. package/dist/esm/limebb-composer-toolbar.entry.js +9 -10
  277. package/dist/esm/limebb-currency-picker.entry.js +1908 -1789
  278. package/dist/esm/limebb-dashboard-widget.entry.js +4 -5
  279. package/dist/esm/limebb-data-cells.entry.js +5 -6
  280. package/dist/esm/limebb-date-picker.entry.js +7 -7
  281. package/dist/esm/limebb-date-range.entry.js +6 -7
  282. package/dist/esm/limebb-document-chips.entry.js +10 -9
  283. package/dist/esm/limebb-document-item.entry.js +6 -7
  284. package/dist/esm/limebb-document-picker.entry.js +6 -7
  285. package/dist/esm/limebb-empty-state.entry.js +3 -4
  286. package/dist/esm/limebb-feed-item-thumbnail-file-info.entry.js +4 -5
  287. package/dist/esm/limebb-feed-timeline-item.entry.js +8 -9
  288. package/dist/esm/limebb-feed.entry.js +430 -166
  289. package/dist/esm/limebb-icon-picker.entry.js +4 -4
  290. package/dist/esm/limebb-info-tile-currency-format.entry.js +2 -2
  291. package/dist/esm/limebb-info-tile-date-format.entry.js +4 -5
  292. package/dist/esm/limebb-info-tile-decimal-format.entry.js +2 -2
  293. package/dist/esm/limebb-info-tile-format.entry.js +5 -6
  294. package/dist/esm/limebb-info-tile-relative-date-format.entry.js +2 -2
  295. package/dist/esm/limebb-info-tile-unit-format.entry.js +2 -2
  296. package/dist/esm/limebb-info-tile.entry.js +27 -22
  297. package/dist/esm/limebb-kanban-group.entry.js +8 -9
  298. package/dist/esm/limebb-kanban-item.entry.js +8 -9
  299. package/dist/esm/limebb-kanban.entry.js +5 -6
  300. package/dist/esm/limebb-lime-query-builder.entry.js +9 -10
  301. package/dist/esm/limebb-lime-query-filter-builder_3.entry.js +27 -27
  302. package/dist/esm/limebb-lime-query-filter-comparison_2.entry.js +26 -28
  303. package/dist/esm/limebb-lime-query-filter-group_3.entry.js +25 -28
  304. package/dist/esm/limebb-lime-query-order-by-item.entry.js +6 -7
  305. package/dist/esm/limebb-lime-query-response-format-builder.entry.js +9 -10
  306. package/dist/esm/limebb-lime-query-response-format-editor_2.entry.js +8 -10
  307. package/dist/esm/limebb-limeobject-file-viewer.entry.js +9 -10
  308. package/dist/esm/limebb-live-docs-info.entry.js +5 -6
  309. package/dist/esm/limebb-loader.entry.js +12 -8
  310. package/dist/esm/limebb-locale-picker.entry.js +29 -47
  311. package/dist/esm/limebb-mention-group-counter.entry.js +5 -6
  312. package/dist/esm/limebb-mention.entry.js +6 -7
  313. package/dist/esm/limebb-navigation-button_2.entry.js +10 -12
  314. package/dist/esm/limebb-notification-item.entry.js +9 -10
  315. package/dist/esm/limebb-notification-list.entry.js +10 -9
  316. package/dist/esm/limebb-object-chip.entry.js +16 -13
  317. package/dist/esm/limebb-percentage-visualizer.entry.js +9 -8
  318. package/dist/esm/limebb-property-selector.entry.js +9 -10
  319. package/dist/esm/limebb-text-editor-picker.entry.js +9 -8
  320. package/dist/esm/limebb-text-editor.entry.js +53 -305
  321. package/dist/esm/limebb-trend-indicator.entry.js +8 -7
  322. package/dist/esm/{limetype-12fbba0f.js → limetype-B3nph1qc.js} +3 -3
  323. package/dist/esm/loader.js +4 -4
  324. package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
  325. package/dist/lime-crm-building-blocks/{p-eb4aa158.entry.js → p-0afc0db2.entry.js} +1 -1
  326. package/dist/lime-crm-building-blocks/p-12aadae6.entry.js +1 -0
  327. package/dist/lime-crm-building-blocks/p-1428aa13.entry.js +1 -0
  328. package/dist/lime-crm-building-blocks/p-152edb10.entry.js +1 -0
  329. package/dist/lime-crm-building-blocks/p-1a61674f.entry.js +1 -0
  330. package/dist/lime-crm-building-blocks/p-1f02a411.entry.js +1 -0
  331. package/dist/lime-crm-building-blocks/p-21ec697f.entry.js +1 -0
  332. package/dist/lime-crm-building-blocks/p-3252e153.entry.js +1 -0
  333. package/dist/lime-crm-building-blocks/p-3263f8d5.entry.js +1 -0
  334. package/dist/lime-crm-building-blocks/p-32f8477f.entry.js +1 -0
  335. package/dist/lime-crm-building-blocks/p-35a51259.entry.js +1 -0
  336. package/dist/lime-crm-building-blocks/p-38201f65.entry.js +1 -0
  337. package/dist/lime-crm-building-blocks/p-3ef87b11.entry.js +1 -0
  338. package/dist/lime-crm-building-blocks/p-43e22f6d.entry.js +1 -0
  339. package/dist/lime-crm-building-blocks/{p-e79f16ca.entry.js → p-4446f170.entry.js} +1 -1
  340. package/dist/lime-crm-building-blocks/p-4625a9c5.entry.js +1 -0
  341. package/dist/lime-crm-building-blocks/{p-77e7d7da.entry.js → p-49afe71b.entry.js} +1 -1
  342. package/dist/lime-crm-building-blocks/p-4ddd75bc.entry.js +1 -0
  343. package/dist/lime-crm-building-blocks/p-528f3635.entry.js +1 -0
  344. package/dist/lime-crm-building-blocks/p-52fb2a66.entry.js +1 -0
  345. package/dist/lime-crm-building-blocks/p-60e22f51.entry.js +1 -0
  346. package/dist/lime-crm-building-blocks/p-62437a1d.entry.js +1 -0
  347. package/dist/lime-crm-building-blocks/p-626421bf.entry.js +1 -0
  348. package/dist/lime-crm-building-blocks/p-685dd8a1.entry.js +1 -0
  349. package/dist/lime-crm-building-blocks/{p-5277ceca.entry.js → p-6cb2d9dd.entry.js} +1 -1
  350. package/dist/lime-crm-building-blocks/p-6fdee70a.entry.js +1 -0
  351. package/dist/lime-crm-building-blocks/p-71191041.entry.js +1 -0
  352. package/dist/lime-crm-building-blocks/{p-f7122d8e.entry.js → p-740ae712.entry.js} +1 -1
  353. package/dist/lime-crm-building-blocks/p-8477cb5d.entry.js +1 -0
  354. package/dist/lime-crm-building-blocks/{p-50aad872.entry.js → p-8e2cc2e8.entry.js} +1 -1
  355. package/dist/lime-crm-building-blocks/p-9ae55a96.entry.js +1 -0
  356. package/dist/lime-crm-building-blocks/p-B8RiYkLS.js +1 -0
  357. package/dist/lime-crm-building-blocks/p-BIwHMk6j.js +2 -0
  358. package/dist/lime-crm-building-blocks/p-BJ8HvfgI.js +1 -0
  359. package/dist/lime-crm-building-blocks/p-ByjZfyP_.js +1 -0
  360. package/dist/lime-crm-building-blocks/{p-0a266c26.js → p-CMfAKLlA.js} +1 -1
  361. package/dist/lime-crm-building-blocks/p-CQ-z_HTt.js +1 -0
  362. package/dist/lime-crm-building-blocks/p-CcGMZOP-.js +1 -0
  363. package/dist/lime-crm-building-blocks/p-Dm_AIMQj.js +1 -0
  364. package/dist/lime-crm-building-blocks/p-V3xfp9dg.js +1 -0
  365. package/dist/lime-crm-building-blocks/p-aaeecca6.entry.js +1 -0
  366. package/dist/lime-crm-building-blocks/p-ac59093c.entry.js +1 -0
  367. package/dist/lime-crm-building-blocks/p-acbc40f5.entry.js +1 -0
  368. package/dist/lime-crm-building-blocks/p-b2383e7f.entry.js +1 -0
  369. package/dist/lime-crm-building-blocks/p-b36ad4e8.entry.js +1 -0
  370. package/dist/lime-crm-building-blocks/{p-6fb504cb.entry.js → p-b3ee6683.entry.js} +1 -1
  371. package/dist/lime-crm-building-blocks/p-ba42e434.entry.js +1 -0
  372. package/dist/lime-crm-building-blocks/p-bac3d599.entry.js +1 -0
  373. package/dist/lime-crm-building-blocks/p-be8dc8ae.entry.js +1 -0
  374. package/dist/lime-crm-building-blocks/{p-0707d5b0.entry.js → p-c3b13800.entry.js} +1 -1
  375. package/dist/lime-crm-building-blocks/{p-b3ad9f5e.entry.js → p-c6bbcbee.entry.js} +1 -1
  376. package/dist/lime-crm-building-blocks/p-cff9bccd.entry.js +1 -0
  377. package/dist/lime-crm-building-blocks/p-d2a01f51.entry.js +1 -0
  378. package/dist/lime-crm-building-blocks/p-dabb227b.entry.js +1 -0
  379. package/dist/lime-crm-building-blocks/p-e2e9adff.entry.js +1 -0
  380. package/dist/lime-crm-building-blocks/p-ebe6040f.entry.js +1 -0
  381. package/dist/lime-crm-building-blocks/p-eec0a0c8.entry.js +1 -0
  382. package/dist/lime-crm-building-blocks/p-f23ea0e7.entry.js +1 -0
  383. package/dist/lime-crm-building-blocks/{p-0190354e.entry.js → p-fa41a9e6.entry.js} +1 -1
  384. package/dist/lime-crm-building-blocks/p-fcedbc77.entry.js +1 -0
  385. package/dist/lime-crm-building-blocks/p-fdf269f7.entry.js +1 -0
  386. package/dist/lime-crm-building-blocks/p-mljVfXwO.js +1 -0
  387. package/dist/lime-crm-building-blocks/p-wbuFLk-j.js +1 -0
  388. package/dist/lime-crm-building-blocks/p-yc--7_7T.js +1 -0
  389. package/dist/types/components.d.ts +608 -114
  390. package/dist/types/stencil-public-runtime.d.ts +192 -12
  391. package/package.json +10 -10
  392. package/dist/cjs/index.esm-e01e9bd4.js +0 -977
  393. package/dist/esm/index.esm-11a8b9e2.js +0 -963
  394. package/dist/lime-crm-building-blocks/p-121877f3.entry.js +0 -1
  395. package/dist/lime-crm-building-blocks/p-123190c3.js +0 -1
  396. package/dist/lime-crm-building-blocks/p-1317cdfa.entry.js +0 -1
  397. package/dist/lime-crm-building-blocks/p-199799ff.js +0 -1
  398. package/dist/lime-crm-building-blocks/p-1a89328d.entry.js +0 -1
  399. package/dist/lime-crm-building-blocks/p-1b361f60.entry.js +0 -1
  400. package/dist/lime-crm-building-blocks/p-2612f2f6.entry.js +0 -1
  401. package/dist/lime-crm-building-blocks/p-2babfa69.entry.js +0 -1
  402. package/dist/lime-crm-building-blocks/p-2d5e5ab5.entry.js +0 -1
  403. package/dist/lime-crm-building-blocks/p-331fced5.entry.js +0 -1
  404. package/dist/lime-crm-building-blocks/p-35897ec3.js +0 -1
  405. package/dist/lime-crm-building-blocks/p-3a16d7cf.entry.js +0 -1
  406. package/dist/lime-crm-building-blocks/p-3da67f32.entry.js +0 -1
  407. package/dist/lime-crm-building-blocks/p-3dd32e10.entry.js +0 -1
  408. package/dist/lime-crm-building-blocks/p-4894ca5d.entry.js +0 -1
  409. package/dist/lime-crm-building-blocks/p-4b494de7.entry.js +0 -1
  410. package/dist/lime-crm-building-blocks/p-4ca1caf4.entry.js +0 -1
  411. package/dist/lime-crm-building-blocks/p-4eb7a47c.entry.js +0 -1
  412. package/dist/lime-crm-building-blocks/p-50abea43.entry.js +0 -1
  413. package/dist/lime-crm-building-blocks/p-520df198.entry.js +0 -1
  414. package/dist/lime-crm-building-blocks/p-52cf8641.js +0 -2
  415. package/dist/lime-crm-building-blocks/p-5322fd19.js +0 -1
  416. package/dist/lime-crm-building-blocks/p-548e0f2a.entry.js +0 -1
  417. package/dist/lime-crm-building-blocks/p-579be797.entry.js +0 -1
  418. package/dist/lime-crm-building-blocks/p-6a87a407.entry.js +0 -1
  419. package/dist/lime-crm-building-blocks/p-6ad6a88d.entry.js +0 -1
  420. package/dist/lime-crm-building-blocks/p-7365ec1c.entry.js +0 -1
  421. package/dist/lime-crm-building-blocks/p-7e6fb4af.js +0 -1
  422. package/dist/lime-crm-building-blocks/p-81583fc8.entry.js +0 -1
  423. package/dist/lime-crm-building-blocks/p-85709273.entry.js +0 -1
  424. package/dist/lime-crm-building-blocks/p-87d3f42c.entry.js +0 -1
  425. package/dist/lime-crm-building-blocks/p-8dca4e46.entry.js +0 -1
  426. package/dist/lime-crm-building-blocks/p-95b6eaf5.entry.js +0 -1
  427. package/dist/lime-crm-building-blocks/p-973146f7.entry.js +0 -1
  428. package/dist/lime-crm-building-blocks/p-9c25aa2b.entry.js +0 -1
  429. package/dist/lime-crm-building-blocks/p-a959dd49.entry.js +0 -1
  430. package/dist/lime-crm-building-blocks/p-b2763851.entry.js +0 -1
  431. package/dist/lime-crm-building-blocks/p-b31772c8.js +0 -1
  432. package/dist/lime-crm-building-blocks/p-b675d5f0.entry.js +0 -1
  433. package/dist/lime-crm-building-blocks/p-b7959ddb.entry.js +0 -1
  434. package/dist/lime-crm-building-blocks/p-d298b34e.js +0 -1
  435. package/dist/lime-crm-building-blocks/p-d47b6c3c.js +0 -1
  436. package/dist/lime-crm-building-blocks/p-d9045aaa.entry.js +0 -1
  437. package/dist/lime-crm-building-blocks/p-d994067b.entry.js +0 -1
  438. package/dist/lime-crm-building-blocks/p-da42650a.entry.js +0 -1
  439. package/dist/lime-crm-building-blocks/p-dae67f66.entry.js +0 -1
  440. package/dist/lime-crm-building-blocks/p-dce9c951.entry.js +0 -1
  441. package/dist/lime-crm-building-blocks/p-dd5af257.entry.js +0 -1
  442. package/dist/lime-crm-building-blocks/p-ea4daa32.entry.js +0 -1
  443. package/dist/lime-crm-building-blocks/p-eb56d4eb.entry.js +0 -1
  444. package/dist/lime-crm-building-blocks/p-f788a48d.js +0 -1
  445. package/dist/lime-crm-building-blocks/p-fb292b3f.entry.js +0 -1
  446. package/dist/lime-crm-building-blocks/p-fe2b91d9.js +0 -1
  447. package/loader/package.json +0 -11
  448. /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
  449. /package/dist/cjs/{dom-2ea30350.js → dom--t_vVnyU.js} +0 -0
  450. /package/dist/cjs/{extension-mapping-63bdafd3.js → extension-mapping-CvK-Mz3f.js} +0 -0
  451. /package/dist/cjs/{file-extension-7c2eae39.js → file-extension-DolkaRwB.js} +0 -0
  452. /package/dist/cjs/{highlight-item.handler-584ab58a.js → highlight-item.handler-BVqvzXiD.js} +0 -0
  453. /package/dist/cjs/{keycodes-88522d7f.js → keycodes-BCQoLEdB.js} +0 -0
  454. /package/dist/cjs/{negate-e0a2bf77.js → negate-Bg3SqQh6.js} +0 -0
  455. /package/dist/cjs/{non-null-3bf14aa1.js → non-null-BMnREsqJ.js} +0 -0
  456. /package/dist/cjs/{percentage-class-012e94d9.js → percentage-class-DVoYzFLR.js} +0 -0
  457. /package/dist/cjs/{property-resolution-5f798b03.js → property-resolution-Bz1zPcfq.js} +0 -0
  458. /package/dist/cjs/{random-string-aac0a74b.js → random-string-BdZGIsGg.js} +0 -0
  459. /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
  460. /package/dist/esm/{dom-9cc051d7.js → dom-B95D7tDb.js} +0 -0
  461. /package/dist/esm/{extension-mapping-fcade195.js → extension-mapping-Bcm94u_z.js} +0 -0
  462. /package/dist/esm/{file-extension-568475d1.js → file-extension-DtnPTzDv.js} +0 -0
  463. /package/dist/esm/{highlight-item.handler-dfbf11c0.js → highlight-item.handler-BWMpG2bS.js} +0 -0
  464. /package/dist/esm/{keycodes-58a1fcc9.js → keycodes-CwMJvF_Z.js} +0 -0
  465. /package/dist/esm/{negate-55744008.js → negate-ooVD-6_a.js} +0 -0
  466. /package/dist/esm/{non-null-5a66a269.js → non-null-CkTg5UPD.js} +0 -0
  467. /package/dist/esm/{percentage-class-2766f8ef.js → percentage-class-BaQl_Elp.js} +0 -0
  468. /package/dist/esm/{property-resolution-e4e8dcf7.js → property-resolution-CQUZjrU4.js} +0 -0
  469. /package/dist/esm/{random-string-f6ef6fbf.js → random-string-C2JP2nLw.js} +0 -0
  470. /package/dist/lime-crm-building-blocks/{p-4a85590d.js → p-B95D7tDb.js} +0 -0
  471. /package/dist/lime-crm-building-blocks/{p-66352a1e.js → p-BWMpG2bS.js} +0 -0
  472. /package/dist/lime-crm-building-blocks/{p-a99197b1.js → p-BaQl_Elp.js} +0 -0
  473. /package/dist/lime-crm-building-blocks/{p-ab2a95a6.js → p-Bcm94u_z.js} +0 -0
  474. /package/dist/lime-crm-building-blocks/{p-fbda77a7.js → p-C2JP2nLw.js} +0 -0
  475. /package/dist/lime-crm-building-blocks/{p-b02c99d5.js → p-CQUZjrU4.js} +0 -0
  476. /package/dist/lime-crm-building-blocks/{p-1484e300.js → p-CkTg5UPD.js} +0 -0
  477. /package/dist/lime-crm-building-blocks/{p-463d3174.js → p-CwMJvF_Z.js} +0 -0
  478. /package/dist/lime-crm-building-blocks/{p-e1255160.js → p-DQuL1Twl.js} +0 -0
  479. /package/dist/lime-crm-building-blocks/{p-b42e9740.js → p-DtnPTzDv.js} +0 -0
  480. /package/dist/lime-crm-building-blocks/{p-7c9484b1.js → p-ooVD-6_a.js} +0 -0
@@ -1,83 +1 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$2 } from './date-picker.js';
3
-
4
- const dateRangeCss = ":host(limebb-date-range){isolation:isolate;display:block;position:relative}*{box-sizing:border-box}.date-pickers{display:grid;grid-template-columns:repeat(auto-fit, minmax(13.5rem, 1fr));gap:0.5rem;padding:0.75rem 1rem 1.25rem 1rem}.label-group{display:flex;align-items:center;margin-bottom:0.25rem}.end-time .label-group{flex-direction:row-reverse}.label-group .label{font-size:0.75rem;padding:0 0.25rem}.label-group .circle{flex-shrink:0;width:0.5rem;height:0.5rem;border-radius:50%}.start-time .label-group .circle{background-color:rgb(var(--color-green-default))}.end-time .label-group .circle{background-color:rgb(var(--color-coral-default))}.label-group .line{flex-grow:1;height:0.25rem;border-radius:1rem}.start-time .label-group .line{background-image:linear-gradient(to right, rgb(var(--color-green-light)), rgb(var(--contrast-400)) 30%)}.end-time .label-group .line{background-image:linear-gradient(to left, rgb(var(--color-coral-light)), rgb(var(--contrast-400)) 30%)}.date-pickers:has(>:last-child:nth-child(2)) .start-time .line{margin-right:-0.5rem}.date-pickers:has(>:last-child:nth-child(2)) .end-time .line{margin-left:-0.5rem}";
5
- const LimebbDateRangeStyle0 = dateRangeCss;
6
-
7
- const DateRange = /*@__PURE__*/ proxyCustomElement(class DateRange extends HTMLElement {
8
- constructor() {
9
- super();
10
- this.__registerHost();
11
- this.__attachShadow();
12
- this.changeStartTime = createEvent(this, "changeStartTime", 7);
13
- this.changeEndTime = createEvent(this, "changeEndTime", 7);
14
- this.handleStartTimeChange = (event) => {
15
- event.stopPropagation();
16
- this.changeStartTime.emit(event.detail);
17
- };
18
- this.handleEndTimeChange = (event) => {
19
- event.stopPropagation();
20
- this.changeEndTime.emit(event.detail);
21
- };
22
- }
23
- componentWillLoad() {
24
- this.originalStartTime = this.startTime;
25
- this.originalEndTime = this.endTime;
26
- }
27
- render() {
28
- return (h("div", { key: '8424fac6160776909ab0c809fdf01d5c32dd447f', class: "date-pickers" }, this.renderStartDatePicker(), this.renderEndDatePicker()));
29
- }
30
- renderStartDatePicker() {
31
- if (!this.originalStartTime) {
32
- return;
33
- }
34
- return (h("div", { class: "start-time" }, this.renderDatePicker(this.startTimeLabel, this.startTime, !this.startTime, this.handleStartTimeChange)));
35
- }
36
- renderEndDatePicker() {
37
- if (!this.originalEndTime) {
38
- return;
39
- }
40
- return (h("div", { class: "end-time" }, this.renderDatePicker(this.endTimeLabel, this.endTime, !this.endTime, this.handleEndTimeChange)));
41
- }
42
- renderDatePicker(label, value, isInvalid, onChangeHandler) {
43
- const datePicker = this.platform && (h("limebb-date-picker", { platform: this.platform, context: this.context, type: this.type, value: value, onChange: onChangeHandler, invalid: isInvalid }));
44
- return [
45
- h("div", { class: "label-group" }, h("span", { class: "circle" }), h("span", { class: "label" }, label), h("span", { class: "line" })),
46
- datePicker || (h("limel-date-picker", { type: this.type, value: value, format: this.timeFormat, language: this.language, onChange: onChangeHandler, invalid: isInvalid })),
47
- ];
48
- }
49
- static get style() { return LimebbDateRangeStyle0; }
50
- }, [1, "limebb-date-range", {
51
- "platform": [16],
52
- "context": [16],
53
- "startTime": [16],
54
- "endTime": [16],
55
- "startTimeLabel": [1, "start-time-label"],
56
- "endTimeLabel": [1, "end-time-label"],
57
- "language": [1],
58
- "timeFormat": [1, "time-format"],
59
- "type": [1]
60
- }]);
61
- function defineCustomElement$1() {
62
- if (typeof customElements === "undefined") {
63
- return;
64
- }
65
- const components = ["limebb-date-range", "limebb-date-picker"];
66
- components.forEach(tagName => { switch (tagName) {
67
- case "limebb-date-range":
68
- if (!customElements.get(tagName)) {
69
- customElements.define(tagName, DateRange);
70
- }
71
- break;
72
- case "limebb-date-picker":
73
- if (!customElements.get(tagName)) {
74
- defineCustomElement$2();
75
- }
76
- break;
77
- } });
78
- }
79
-
80
- const LimebbDateRange = DateRange;
81
- const defineCustomElement = defineCustomElement$1;
82
-
83
- export { LimebbDateRange, defineCustomElement };
1
+ import{proxyCustomElement as e,HTMLElement as t,createEvent as i,h as r,transformTag as a}from"@stencil/core/internal/client";import{d as l}from"./date-picker.js";const s=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.changeStartTime=i(this,"changeStartTime",7),this.changeEndTime=i(this,"changeEndTime",7),this.handleStartTimeChange=e=>{e.stopPropagation(),this.changeStartTime.emit(e.detail)},this.handleEndTimeChange=e=>{e.stopPropagation(),this.changeEndTime.emit(e.detail)}}componentWillLoad(){this.originalStartTime=this.startTime,this.originalEndTime=this.endTime}render(){return r("div",{key:"0eab8abe9007384af9e7fcd56f8ac37c4aeb6b39",class:"date-pickers"},this.renderStartDatePicker(),this.renderEndDatePicker())}renderStartDatePicker(){if(this.originalStartTime)return r("div",{class:"start-time"},this.renderDatePicker(this.startTimeLabel,this.startTime,!this.startTime,this.handleStartTimeChange))}renderEndDatePicker(){if(this.originalEndTime)return r("div",{class:"end-time"},this.renderDatePicker(this.endTimeLabel,this.endTime,!this.endTime,this.handleEndTimeChange))}renderDatePicker(e,t,i,a){const l=this.platform&&r("limebb-date-picker",{platform:this.platform,context:this.context,type:this.type,value:t,onChange:a,invalid:i});return[r("div",{class:"label-group"},r("span",{class:"circle"}),r("span",{class:"label"},e),r("span",{class:"line"})),l||r("limel-date-picker",{type:this.type,value:t,format:this.timeFormat,language:this.language,onChange:a,invalid:i})]}static get style(){return":host(limebb-date-range){isolation:isolate;display:block;position:relative}*{box-sizing:border-box}.date-pickers{display:grid;grid-template-columns:repeat(auto-fit, minmax(13.5rem, 1fr));gap:0.5rem;padding:0.75rem 1rem 1.25rem 1rem}.label-group{display:flex;align-items:center;margin-bottom:0.25rem}.end-time .label-group{flex-direction:row-reverse}.label-group .label{font-size:0.75rem;padding:0 0.25rem}.label-group .circle{flex-shrink:0;width:0.5rem;height:0.5rem;border-radius:50%}.start-time .label-group .circle{background-color:rgb(var(--color-green-default))}.end-time .label-group .circle{background-color:rgb(var(--color-coral-default))}.label-group .line{flex-grow:1;height:0.25rem;border-radius:1rem}.start-time .label-group .line{background-image:linear-gradient(to right, rgb(var(--color-green-light)), rgb(var(--contrast-400)) 30%)}.end-time .label-group .line{background-image:linear-gradient(to left, rgb(var(--color-coral-light)), rgb(var(--contrast-400)) 30%)}.date-pickers:has(>:last-child:nth-child(2)) .start-time .line{margin-right:-0.5rem}.date-pickers:has(>:last-child:nth-child(2)) .end-time .line{margin-left:-0.5rem}"}},[1,"limebb-date-range",{platform:[16],context:[16],startTime:[16],endTime:[16],startTimeLabel:[1,"start-time-label"],endTimeLabel:[1,"end-time-label"],language:[1],timeFormat:[1,"time-format"],type:[1]}]),n=s,o=function(){"undefined"!=typeof customElements&&["limebb-date-range","limebb-date-picker"].forEach((e=>{switch(e){case"limebb-date-range":customElements.get(a(e))||customElements.define(a(e),s);break;case"limebb-date-picker":customElements.get(a(e))||l()}}))};export{n as LimebbDateRange,o as defineCustomElement}
@@ -1,437 +1 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { g as getPreviewType } from './extension-mapping.js';
3
- import { g as getFileExtension, d as defineCustomElement$2 } from './summary-popover.js';
4
- import { d as defineCustomElement$3 } from './navigation-button.js';
5
-
6
- // Copy of file icon names from lime-elements.
7
- // Source: lime-elements/src/components/file/icons.ts
8
- //
9
- // Stencil doesn't support exporting utility functions from a component
10
- // library, so we duplicate them here until a proper shared solution exists.
11
- const DEFAULT_ICON = 'file';
12
- const CALENDAR_ICON = 'tear_off_calendar';
13
- const EMAIL_ICON = 'email';
14
- const HTML_ICON = 'internet';
15
- const TEXT_ICON = 'text_box';
16
- const EXCEL_ICON = 'ms_excel_copyrighted';
17
- const WORD_ICON = 'ms_word_copyrighted';
18
- const POWERPOINT_ICON = 'ms_powerpoint_copyrighted';
19
- const IMAGE_ICON = 'picture';
20
- const PHOTO_ICON = 'camera';
21
- const VECTOR_GRAPHIC_ICON = 'vector';
22
- const PRESENTATION_ICON = 'presentation_filled';
23
- const DOCUMENT_ICON = 'overview_pages_2';
24
- const SPREADSHEET_ICON = 'data_sheet';
25
- const AUDIO_ICON = 'audio_wave';
26
- const VIDEO_ICON = 'video_file';
27
- const COMPRESSED_ICON = 'condom_package';
28
- const MESSAGE_ICON = 'ms_outlook_copyrighted';
29
- const DATA_ICON = 'database';
30
- const DEFAULT_FILE_ICON = DEFAULT_ICON;
31
- const filetypeIconTable = {
32
- msg: MESSAGE_ICON,
33
- ics: CALENDAR_ICON,
34
- ical: CALENDAR_ICON,
35
- icalendar: CALENDAR_ICON,
36
- ifb: CALENDAR_ICON,
37
- email: EMAIL_ICON,
38
- eml: EMAIL_ICON,
39
- oft: EMAIL_ICON,
40
- ost: EMAIL_ICON,
41
- emlx: EMAIL_ICON,
42
- html: HTML_ICON,
43
- xml: HTML_ICON,
44
- txt: TEXT_ICON,
45
- rtf: TEXT_ICON,
46
- dot: WORD_ICON,
47
- doc: WORD_ICON,
48
- docx: WORD_ICON,
49
- dotx: WORD_ICON,
50
- docm: WORD_ICON,
51
- dotm: WORD_ICON,
52
- odt: DOCUMENT_ICON,
53
- pages: DOCUMENT_ICON,
54
- pdf: 'PDF_2',
55
- ppt: POWERPOINT_ICON,
56
- pot: POWERPOINT_ICON,
57
- pps: POWERPOINT_ICON,
58
- pptx: POWERPOINT_ICON,
59
- pptm: POWERPOINT_ICON,
60
- potx: POWERPOINT_ICON,
61
- potm: POWERPOINT_ICON,
62
- ppam: POWERPOINT_ICON,
63
- ppsx: POWERPOINT_ICON,
64
- ppsm: POWERPOINT_ICON,
65
- sldx: POWERPOINT_ICON,
66
- sldm: POWERPOINT_ICON,
67
- odp: PRESENTATION_ICON,
68
- key: PRESENTATION_ICON,
69
- xls: EXCEL_ICON,
70
- xlsx: EXCEL_ICON,
71
- csv: SPREADSHEET_ICON,
72
- numbers: SPREADSHEET_ICON,
73
- jpg: PHOTO_ICON,
74
- jpeg: PHOTO_ICON,
75
- heic: PHOTO_ICON,
76
- bmp: IMAGE_ICON,
77
- png: IMAGE_ICON,
78
- gif: IMAGE_ICON,
79
- psd: 'adobe_photoshop_copyrighted',
80
- ai: 'adobe_illustrator_copyrighted',
81
- svg: VECTOR_GRAPHIC_ICON,
82
- svgz: VECTOR_GRAPHIC_ICON,
83
- ep: VECTOR_GRAPHIC_ICON,
84
- eps: VECTOR_GRAPHIC_ICON,
85
- sketch: VECTOR_GRAPHIC_ICON,
86
- mp3: AUDIO_ICON,
87
- wav: AUDIO_ICON,
88
- wma: AUDIO_ICON,
89
- ogg: AUDIO_ICON,
90
- avi: VIDEO_ICON,
91
- flv: VIDEO_ICON,
92
- h264: VIDEO_ICON,
93
- mov: VIDEO_ICON,
94
- mp4: VIDEO_ICON,
95
- mwv: VIDEO_ICON,
96
- zip: COMPRESSED_ICON,
97
- '7z': COMPRESSED_ICON,
98
- rar: COMPRESSED_ICON,
99
- json: 'json',
100
- yaml: DATA_ICON,
101
- sql: DATA_ICON,
102
- db: DATA_ICON,
103
- dbf: DATA_ICON,
104
- };
105
-
106
- // Copy of file icon fill colors from lime-elements.
107
- // Source: lime-elements/src/components/file/icon-fill-colors.ts
108
- //
109
- // Stencil doesn't support exporting utility functions from a component
110
- // library, so we duplicate them here until a proper shared solution exists.
111
- const DEFAULT_ICON_FILL_COLOR = 'rgb(var(--color-gray-dark))';
112
- const CALENDAR_ICON_FILL_COLOR = 'rgb(var(--color-cyan-dark))';
113
- const EMAIL_ICON_FILL_COLOR = 'rgb(var(--color-gray-dark))';
114
- const HTML_ICON_FILL_COLOR = 'rgb(var(--color-blue-dark))';
115
- const TEXT_ICON_FILL_COLOR = 'rgb(var(--color-yellow-darker))';
116
- const EXCEL_ICON_FILL_COLOR = 'rgb(var(--color-green-dark))';
117
- const POWERPOINT_ICON_FILL_COLOR = 'rgb(var(--color-coral-dark))';
118
- const WORD_ICON_FILL_COLOR = 'rgb(var(--color-sky-dark))';
119
- const IMAGE_ICON_FILL_COLOR = 'rgb(var(--color-lime-dark))';
120
- const VECTOR_GRAPHIC_FILL_COLOR = 'rgb(var(--color-magenta-dark))';
121
- const PRESENTATION_ICON_FILL_COLOR = 'rgb(var(--color-blue-dark))';
122
- const DOCUMENT_ICON_FILL_COLOR = 'rgb(var(--color-orange-dark))';
123
- const SPREADSHEET_ICON_FILL_COLOR = 'rgb(var(--color-green-dark))';
124
- const AUDIO_ICON_FILL_COLOR = 'rgb(var(--color-indigo-dark))';
125
- const VIDEO_ICON_FILL_COLOR = 'rgb(var(--color-red-dark))';
126
- const COMPRESSED_ICON_FILL_COLOR = 'rgb(var(--color-brown-default))';
127
- const MESSAGE_ICON_FILL_COLOR = 'rgb(var(--color-yellow-dark))';
128
- const PDF_ICON_FILL_COLOR = 'rgb(var(--color-red-dark))';
129
- const DATA_ICON_FILL_COLOR = 'rgb(var(--color-glaucous-dark))';
130
- const DEFAULT_ICON_FILL = DEFAULT_ICON_FILL_COLOR;
131
- const filetypeFillColorTable = {
132
- msg: MESSAGE_ICON_FILL_COLOR,
133
- ics: CALENDAR_ICON_FILL_COLOR,
134
- ical: CALENDAR_ICON_FILL_COLOR,
135
- icalendar: CALENDAR_ICON_FILL_COLOR,
136
- ifb: CALENDAR_ICON_FILL_COLOR,
137
- email: EMAIL_ICON_FILL_COLOR,
138
- eml: EMAIL_ICON_FILL_COLOR,
139
- oft: EMAIL_ICON_FILL_COLOR,
140
- ost: EMAIL_ICON_FILL_COLOR,
141
- emlx: EMAIL_ICON_FILL_COLOR,
142
- html: HTML_ICON_FILL_COLOR,
143
- xml: HTML_ICON_FILL_COLOR,
144
- txt: TEXT_ICON_FILL_COLOR,
145
- rtf: TEXT_ICON_FILL_COLOR,
146
- dot: WORD_ICON_FILL_COLOR,
147
- doc: WORD_ICON_FILL_COLOR,
148
- docx: WORD_ICON_FILL_COLOR,
149
- dotx: WORD_ICON_FILL_COLOR,
150
- docm: WORD_ICON_FILL_COLOR,
151
- dotm: WORD_ICON_FILL_COLOR,
152
- odt: DOCUMENT_ICON_FILL_COLOR,
153
- pages: DOCUMENT_ICON_FILL_COLOR,
154
- pdf: PDF_ICON_FILL_COLOR,
155
- ppt: POWERPOINT_ICON_FILL_COLOR,
156
- pot: POWERPOINT_ICON_FILL_COLOR,
157
- pps: POWERPOINT_ICON_FILL_COLOR,
158
- pptx: POWERPOINT_ICON_FILL_COLOR,
159
- pptm: POWERPOINT_ICON_FILL_COLOR,
160
- potx: POWERPOINT_ICON_FILL_COLOR,
161
- potm: POWERPOINT_ICON_FILL_COLOR,
162
- ppam: POWERPOINT_ICON_FILL_COLOR,
163
- ppsx: POWERPOINT_ICON_FILL_COLOR,
164
- ppsm: POWERPOINT_ICON_FILL_COLOR,
165
- sldx: POWERPOINT_ICON_FILL_COLOR,
166
- sldm: POWERPOINT_ICON_FILL_COLOR,
167
- odp: PRESENTATION_ICON_FILL_COLOR,
168
- key: PRESENTATION_ICON_FILL_COLOR,
169
- xls: EXCEL_ICON_FILL_COLOR,
170
- xlsx: EXCEL_ICON_FILL_COLOR,
171
- csv: DEFAULT_ICON_FILL_COLOR,
172
- numbers: SPREADSHEET_ICON_FILL_COLOR,
173
- bmp: IMAGE_ICON_FILL_COLOR,
174
- jpg: IMAGE_ICON_FILL_COLOR,
175
- jpeg: IMAGE_ICON_FILL_COLOR,
176
- heic: IMAGE_ICON_FILL_COLOR,
177
- png: IMAGE_ICON_FILL_COLOR,
178
- gif: IMAGE_ICON_FILL_COLOR,
179
- psd: PRESENTATION_ICON_FILL_COLOR,
180
- ai: DOCUMENT_ICON_FILL_COLOR,
181
- svg: VECTOR_GRAPHIC_FILL_COLOR,
182
- svgz: VECTOR_GRAPHIC_FILL_COLOR,
183
- ep: VECTOR_GRAPHIC_FILL_COLOR,
184
- eps: VECTOR_GRAPHIC_FILL_COLOR,
185
- sketch: VECTOR_GRAPHIC_FILL_COLOR,
186
- mp3: AUDIO_ICON_FILL_COLOR,
187
- wav: AUDIO_ICON_FILL_COLOR,
188
- wma: AUDIO_ICON_FILL_COLOR,
189
- ogg: AUDIO_ICON_FILL_COLOR,
190
- flv: VIDEO_ICON_FILL_COLOR,
191
- h264: VIDEO_ICON_FILL_COLOR,
192
- mov: VIDEO_ICON_FILL_COLOR,
193
- mp4: VIDEO_ICON_FILL_COLOR,
194
- mwv: VIDEO_ICON_FILL_COLOR,
195
- zip: COMPRESSED_ICON_FILL_COLOR,
196
- '7z': COMPRESSED_ICON_FILL_COLOR,
197
- rar: COMPRESSED_ICON_FILL_COLOR,
198
- json: DATA_ICON_FILL_COLOR,
199
- yaml: DATA_ICON_FILL_COLOR,
200
- sql: DATA_ICON_FILL_COLOR,
201
- db: DATA_ICON_FILL_COLOR,
202
- dbf: DATA_ICON_FILL_COLOR,
203
- };
204
-
205
- // Copy of file icon background colors from lime-elements.
206
- // Source: lime-elements/src/components/file/icon-background-colors.ts
207
- //
208
- // Stencil doesn't support exporting utility functions from a component
209
- // library, so we duplicate them here until a proper shared solution exists.
210
- const DEFAULT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-gray-lighter), 0.4)';
211
- const CALENDAR_ICON_BACKGROUND_COLOR = 'rgba(var(--color-cyan-lighter), 0.4)';
212
- const EMAIL_ICON_BACKGROUND_COLOR = 'rgba(var(--color-gray-lighter), 0.4)';
213
- const HTML_ICON_BACKGROUND_COLOR = 'rgba(var(--color-blue-lighter), 0.4)';
214
- const TEXT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-yellow-lighter), 0.4)';
215
- const EXCEL_ICON_BACKGROUND_COLOR = 'rgba(var(--color-green-lighter), 0.4)';
216
- const POWERPOINT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-coral-lighter), 0.4)';
217
- const WORD_ICON_BACKGROUND_COLOR = 'rgba(var(--color-sky-lighter), 0.4)';
218
- const IMAGE_ICON_BACKGROUND_COLOR = 'rgba(var(--color-lime-lighter), 0.4)';
219
- const VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR = 'rgba(var(--color-magenta-lighter), 0.4)';
220
- const PRESENTATION_BACKGROUND_COLOR = 'rgba(var(--color-blue-lighter), 0.4)';
221
- const DOCUMENT_ICON_BACKGROUND_COLOR = 'rgba(var(--color-orange-lighter), 0.4)';
222
- const SPREADSHEET_ICON_BACKGROUND_COLOR = 'rgba(var(--color-green-lighter), 0.4)';
223
- const AUDIO_ICON_BACKGROUND_COLOR = 'rgba(var(--color-indigo-lighter), 0.4)';
224
- const VIDEO_ICON_BACKGROUND_COLOR = 'rgba(var(--color-red-lighter), 0.4)';
225
- const COMPRESSED_ICON_BACKGROUND_COLOR = 'rgba(var(--color-orange-lighter), 0.4)';
226
- const MESSAGE_ICON_BACKGROUND_COLOR = 'rgba(var(--color-yellow-lighter), 0.4)';
227
- const PDF_ICON_BACKGROUND_COLOR = 'rgba(var(--color-red-lighter), 0.4)';
228
- const DATA_ICON_BACKGROUND_COLOR = 'rgba(var(--color-glaucous-lighter), 0.4)';
229
- const DEFAULT_ICON_BACKGROUND = DEFAULT_ICON_BACKGROUND_COLOR;
230
- const filetypeBackgroundColorTable = {
231
- msg: MESSAGE_ICON_BACKGROUND_COLOR,
232
- ics: CALENDAR_ICON_BACKGROUND_COLOR,
233
- ical: CALENDAR_ICON_BACKGROUND_COLOR,
234
- icalendar: CALENDAR_ICON_BACKGROUND_COLOR,
235
- ifb: CALENDAR_ICON_BACKGROUND_COLOR,
236
- email: EMAIL_ICON_BACKGROUND_COLOR,
237
- eml: EMAIL_ICON_BACKGROUND_COLOR,
238
- oft: EMAIL_ICON_BACKGROUND_COLOR,
239
- ost: EMAIL_ICON_BACKGROUND_COLOR,
240
- emlx: EMAIL_ICON_BACKGROUND_COLOR,
241
- html: HTML_ICON_BACKGROUND_COLOR,
242
- xml: HTML_ICON_BACKGROUND_COLOR,
243
- txt: TEXT_ICON_BACKGROUND_COLOR,
244
- rtf: TEXT_ICON_BACKGROUND_COLOR,
245
- dot: WORD_ICON_BACKGROUND_COLOR,
246
- doc: WORD_ICON_BACKGROUND_COLOR,
247
- docx: WORD_ICON_BACKGROUND_COLOR,
248
- dotx: WORD_ICON_BACKGROUND_COLOR,
249
- docm: WORD_ICON_BACKGROUND_COLOR,
250
- dotm: WORD_ICON_BACKGROUND_COLOR,
251
- odt: DOCUMENT_ICON_BACKGROUND_COLOR,
252
- pages: DOCUMENT_ICON_BACKGROUND_COLOR,
253
- pdf: PDF_ICON_BACKGROUND_COLOR,
254
- ppt: POWERPOINT_ICON_BACKGROUND_COLOR,
255
- pot: POWERPOINT_ICON_BACKGROUND_COLOR,
256
- pps: POWERPOINT_ICON_BACKGROUND_COLOR,
257
- pptx: POWERPOINT_ICON_BACKGROUND_COLOR,
258
- pptm: POWERPOINT_ICON_BACKGROUND_COLOR,
259
- potx: POWERPOINT_ICON_BACKGROUND_COLOR,
260
- potm: POWERPOINT_ICON_BACKGROUND_COLOR,
261
- ppam: POWERPOINT_ICON_BACKGROUND_COLOR,
262
- ppsx: POWERPOINT_ICON_BACKGROUND_COLOR,
263
- ppsm: POWERPOINT_ICON_BACKGROUND_COLOR,
264
- sldx: POWERPOINT_ICON_BACKGROUND_COLOR,
265
- sldm: POWERPOINT_ICON_BACKGROUND_COLOR,
266
- odp: PRESENTATION_BACKGROUND_COLOR,
267
- key: PRESENTATION_BACKGROUND_COLOR,
268
- xls: EXCEL_ICON_BACKGROUND_COLOR,
269
- xlsx: EXCEL_ICON_BACKGROUND_COLOR,
270
- csv: DEFAULT_ICON_BACKGROUND_COLOR,
271
- numbers: SPREADSHEET_ICON_BACKGROUND_COLOR,
272
- bmp: IMAGE_ICON_BACKGROUND_COLOR,
273
- jpg: IMAGE_ICON_BACKGROUND_COLOR,
274
- jpeg: IMAGE_ICON_BACKGROUND_COLOR,
275
- heic: IMAGE_ICON_BACKGROUND_COLOR,
276
- png: IMAGE_ICON_BACKGROUND_COLOR,
277
- gif: IMAGE_ICON_BACKGROUND_COLOR,
278
- psd: PRESENTATION_BACKGROUND_COLOR,
279
- ai: DOCUMENT_ICON_BACKGROUND_COLOR,
280
- svg: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
281
- svgz: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
282
- ep: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
283
- eps: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
284
- sketch: VECTOR_GRAPHIC_ICON_BACKGROUND_COLOR,
285
- mp3: AUDIO_ICON_BACKGROUND_COLOR,
286
- wav: AUDIO_ICON_BACKGROUND_COLOR,
287
- wma: AUDIO_ICON_BACKGROUND_COLOR,
288
- ogg: AUDIO_ICON_BACKGROUND_COLOR,
289
- flv: VIDEO_ICON_BACKGROUND_COLOR,
290
- h264: VIDEO_ICON_BACKGROUND_COLOR,
291
- mov: VIDEO_ICON_BACKGROUND_COLOR,
292
- mp4: VIDEO_ICON_BACKGROUND_COLOR,
293
- mwv: VIDEO_ICON_BACKGROUND_COLOR,
294
- zip: COMPRESSED_ICON_BACKGROUND_COLOR,
295
- '7z': COMPRESSED_ICON_BACKGROUND_COLOR,
296
- rar: COMPRESSED_ICON_BACKGROUND_COLOR,
297
- json: DATA_ICON_BACKGROUND_COLOR,
298
- yaml: DATA_ICON_BACKGROUND_COLOR,
299
- sql: DATA_ICON_BACKGROUND_COLOR,
300
- db: DATA_ICON_BACKGROUND_COLOR,
301
- dbf: DATA_ICON_BACKGROUND_COLOR,
302
- };
303
-
304
- /**
305
- * Returns an icon with name, fill color, and background color
306
- * based on the file extension of the given filename.
307
- *
308
- * @param filename - the filename to get the icon for
309
- */
310
- function getFileIcon(filename) {
311
- const extension = getFileExtension(filename);
312
- return {
313
- name: filetypeIconTable[extension] || DEFAULT_FILE_ICON,
314
- color: filetypeFillColorTable[extension] || DEFAULT_ICON_FILL,
315
- backgroundColor: filetypeBackgroundColorTable[extension] || DEFAULT_ICON_BACKGROUND,
316
- };
317
- }
318
-
319
- const documentChipsCss = ":host(limebb-document-chips){box-sizing:border-box;display:flex;flex-wrap:wrap;gap:0.25rem;width:100%}*{box-sizing:border-box;min-width:0}limebb-summary-popover{max-width:100%}limel-chip{max-width:18rem}";
320
- const LimebbDocumentChipsStyle0 = documentChipsCss;
321
-
322
- const DocumentChips = /*@__PURE__*/ proxyCustomElement(class DocumentChips extends HTMLElement {
323
- constructor() {
324
- super();
325
- this.__registerHost();
326
- this.__attachShadow();
327
- this.removeFile = createEvent(this, "removeFile", 7);
328
- /**
329
- * The list of files to display as document chips.
330
- */
331
- this.files = [];
332
- this.blobUrls = new Map();
333
- this.handleRemove = (event) => {
334
- event.stopPropagation();
335
- const fileId = event.detail;
336
- this.revokeBlobUrl(fileId);
337
- this.removeFile.emit(fileId);
338
- };
339
- }
340
- onFilesChanged(newFiles, oldFiles) {
341
- const currentIds = new Set(newFiles.map((file) => file.id));
342
- for (const file of oldFiles) {
343
- if (!currentIds.has(file.id)) {
344
- this.revokeBlobUrl(file.id);
345
- }
346
- }
347
- }
348
- disconnectedCallback() {
349
- this.revokeAllBlobUrls();
350
- }
351
- render() {
352
- return (h(Host, { key: 'a8434c51cd27c94924e392983cb0983b1fbc7f62', role: "list", "aria-label": this.accessibleLabel }, this.files.map((file) => this.renderFile(file))));
353
- }
354
- renderFile(file) {
355
- const isReady = !file.uploadState || file.uploadState === 'done';
356
- const icon = this.getIcon(file);
357
- const chip = (h("limel-chip", { role: isReady ? undefined : 'listitem', slot: isReady ? 'trigger' : undefined, removable: true, identifier: file.id, text: file.filename, icon: icon, invalid: file.uploadState === 'failed', progress: file.uploadState === 'uploading'
358
- ? file.uploadProgress
359
- : undefined, loading: file.uploadState === 'added' ||
360
- file.uploadState === 'finalizing', onRemove: this.handleRemove }));
361
- if (!isReady) {
362
- return chip;
363
- }
364
- return (h("limebb-summary-popover", { role: "listitem", file: Object.assign(Object.assign({}, file), { href: this.getPreviewUrl(file) }), popoverMaxWidth: "32rem", popoverMaxHeight: "32rem", triggerDelay: 1000 }, chip));
365
- }
366
- getIcon(file) {
367
- if (file.icon) {
368
- return file.icon;
369
- }
370
- return getFileIcon(file.filename);
371
- }
372
- getPreviewUrl(file) {
373
- const extension = getFileExtension(file.filename);
374
- const previewType = getPreviewType(extension);
375
- if (previewType === 'sharepoint') {
376
- return undefined;
377
- }
378
- if (file.href) {
379
- return file.href;
380
- }
381
- if (file.fileContent) {
382
- if (!this.blobUrls.has(file.id)) {
383
- this.blobUrls.set(file.id, URL.createObjectURL(file.fileContent));
384
- }
385
- return this.blobUrls.get(file.id);
386
- }
387
- }
388
- revokeBlobUrl(fileId) {
389
- const url = this.blobUrls.get(fileId);
390
- if (url) {
391
- URL.revokeObjectURL(url);
392
- this.blobUrls.delete(fileId);
393
- }
394
- }
395
- revokeAllBlobUrls() {
396
- for (const url of this.blobUrls.values())
397
- URL.revokeObjectURL(url);
398
- this.blobUrls.clear();
399
- }
400
- static get watchers() { return {
401
- "files": ["onFilesChanged"]
402
- }; }
403
- static get style() { return LimebbDocumentChipsStyle0; }
404
- }, [1, "limebb-document-chips", {
405
- "accessibleLabel": [513, "accessible-label"],
406
- "files": [16]
407
- }, undefined, {
408
- "files": ["onFilesChanged"]
409
- }]);
410
- function defineCustomElement$1() {
411
- if (typeof customElements === "undefined") {
412
- return;
413
- }
414
- const components = ["limebb-document-chips", "limebb-navigation-button", "limebb-summary-popover"];
415
- components.forEach(tagName => { switch (tagName) {
416
- case "limebb-document-chips":
417
- if (!customElements.get(tagName)) {
418
- customElements.define(tagName, DocumentChips);
419
- }
420
- break;
421
- case "limebb-navigation-button":
422
- if (!customElements.get(tagName)) {
423
- defineCustomElement$3();
424
- }
425
- break;
426
- case "limebb-summary-popover":
427
- if (!customElements.get(tagName)) {
428
- defineCustomElement$2();
429
- }
430
- break;
431
- } });
432
- }
433
-
434
- const LimebbDocumentChips = DocumentChips;
435
- const defineCustomElement = defineCustomElement$1;
436
-
437
- export { LimebbDocumentChips, defineCustomElement };
1
+ import{proxyCustomElement as r,HTMLElement as o,createEvent as e,h as t,Host as a,transformTag as l}from"@stencil/core/internal/client";import{g as i}from"./extension-mapping.js";import{g as s,d as p}from"./summary-popover.js";import{d as c}from"./navigation-button.js";const g="tear_off_calendar",m="email",d="internet",n="text_box",b="ms_excel_copyrighted",v="ms_word_copyrighted",h="ms_powerpoint_copyrighted",x="picture",f="camera",u="vector",k="presentation_filled",y="overview_pages_2",w="data_sheet",_="audio_wave",j="video_file",z="condom_package",F="database",U={msg:"ms_outlook_copyrighted",ics:g,ical:g,icalendar:g,ifb:g,email:m,eml:m,oft:m,ost:m,emlx:m,html:d,xml:d,txt:n,rtf:n,dot:v,doc:v,docx:v,dotx:v,docm:v,dotm:v,odt:y,pages:y,pdf:"PDF_2",ppt:h,pot:h,pps:h,pptx:h,pptm:h,potx:h,potm:h,ppam:h,ppsx:h,ppsm:h,sldx:h,sldm:h,odp:k,key:k,xls:b,xlsx:b,csv:w,numbers:w,jpg:f,jpeg:f,heic:f,bmp:x,png:x,gif:x,psd:"adobe_photoshop_copyrighted",ai:"adobe_illustrator_copyrighted",svg:u,svgz:u,ep:u,eps:u,sketch:u,mp3:_,wav:_,wma:_,ogg:_,avi:j,flv:j,h264:j,mov:j,mp4:j,mwv:j,zip:z,"7z":z,rar:z,json:"json",yaml:F,sql:F,db:F,dbf:F},C="rgb(var(--color-gray-dark))",E="rgb(var(--color-cyan-dark))",L="rgb(var(--color-gray-dark))",R="rgb(var(--color-blue-dark))",q="rgb(var(--color-yellow-darker))",M="rgb(var(--color-green-dark))",B="rgb(var(--color-coral-dark))",D="rgb(var(--color-sky-dark))",O="rgb(var(--color-lime-dark))",P="rgb(var(--color-magenta-dark))",A="rgb(var(--color-blue-dark))",H="rgb(var(--color-orange-dark))",I="rgb(var(--color-indigo-dark))",S="rgb(var(--color-red-dark))",W="rgb(var(--color-brown-default))",G="rgb(var(--color-glaucous-dark))",J=C,K={msg:"rgb(var(--color-yellow-dark))",ics:E,ical:E,icalendar:E,ifb:E,email:L,eml:L,oft:L,ost:L,emlx:L,html:R,xml:R,txt:q,rtf:q,dot:D,doc:D,docx:D,dotx:D,docm:D,dotm:D,odt:H,pages:H,pdf:"rgb(var(--color-red-dark))",ppt:B,pot:B,pps:B,pptx:B,pptm:B,potx:B,potm:B,ppam:B,ppsx:B,ppsm:B,sldx:B,sldm:B,odp:A,key:A,xls:M,xlsx:M,csv:C,numbers:"rgb(var(--color-green-dark))",bmp:O,jpg:O,jpeg:O,heic:O,png:O,gif:O,psd:A,ai:H,svg:P,svgz:P,ep:P,eps:P,sketch:P,mp3:I,wav:I,wma:I,ogg:I,flv:S,h264:S,mov:S,mp4:S,mwv:S,zip:W,"7z":W,rar:W,json:G,yaml:G,sql:G,db:G,dbf:G},N="rgba(var(--color-gray-lighter), 0.4)",Q="rgba(var(--color-cyan-lighter), 0.4)",T="rgba(var(--color-gray-lighter), 0.4)",V="rgba(var(--color-blue-lighter), 0.4)",X="rgba(var(--color-yellow-lighter), 0.4)",Y="rgba(var(--color-green-lighter), 0.4)",Z="rgba(var(--color-coral-lighter), 0.4)",$="rgba(var(--color-sky-lighter), 0.4)",rr="rgba(var(--color-lime-lighter), 0.4)",or="rgba(var(--color-magenta-lighter), 0.4)",er="rgba(var(--color-blue-lighter), 0.4)",tr="rgba(var(--color-orange-lighter), 0.4)",ar="rgba(var(--color-indigo-lighter), 0.4)",lr="rgba(var(--color-red-lighter), 0.4)",ir="rgba(var(--color-orange-lighter), 0.4)",sr="rgba(var(--color-glaucous-lighter), 0.4)",pr=N,cr={msg:"rgba(var(--color-yellow-lighter), 0.4)",ics:Q,ical:Q,icalendar:Q,ifb:Q,email:T,eml:T,oft:T,ost:T,emlx:T,html:V,xml:V,txt:X,rtf:X,dot:$,doc:$,docx:$,dotx:$,docm:$,dotm:$,odt:tr,pages:tr,pdf:"rgba(var(--color-red-lighter), 0.4)",ppt:Z,pot:Z,pps:Z,pptx:Z,pptm:Z,potx:Z,potm:Z,ppam:Z,ppsx:Z,ppsm:Z,sldx:Z,sldm:Z,odp:er,key:er,xls:Y,xlsx:Y,csv:N,numbers:"rgba(var(--color-green-lighter), 0.4)",bmp:rr,jpg:rr,jpeg:rr,heic:rr,png:rr,gif:rr,psd:er,ai:tr,svg:or,svgz:or,ep:or,eps:or,sketch:or,mp3:ar,wav:ar,wma:ar,ogg:ar,flv:lr,h264:lr,mov:lr,mp4:lr,mwv:lr,zip:ir,"7z":ir,rar:ir,json:sr,yaml:sr,sql:sr,db:sr,dbf:sr},gr=r(class extends o{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.removeFile=e(this,"removeFile",7),this.files=[],this.blobUrls=new Map,this.handleRemove=r=>{r.stopPropagation();const o=r.detail;this.revokeBlobUrl(o),this.removeFile.emit(o)}}onFilesChanged(r,o){const e=new Set(r.map((r=>r.id)));for(const r of o)e.has(r.id)||this.revokeBlobUrl(r.id)}disconnectedCallback(){this.revokeAllBlobUrls()}render(){return t(a,{key:"d5bdfcc1c2895820c4613bf907799063e1118899",role:"list","aria-label":this.accessibleLabel},this.files.map((r=>this.renderFile(r))))}renderFile(r){const o=!r.uploadState||"done"===r.uploadState,e=this.getIcon(r),a=t("limel-chip",{role:o?void 0:"listitem",slot:o?"trigger":void 0,removable:!0,identifier:r.id,text:r.filename,icon:e,invalid:"failed"===r.uploadState,progress:"uploading"===r.uploadState?r.uploadProgress:void 0,loading:"added"===r.uploadState||"finalizing"===r.uploadState,onRemove:this.handleRemove});return o?t("limebb-summary-popover",{role:"listitem",file:Object.assign(Object.assign({},r),{href:this.getPreviewUrl(r)}),popoverMaxWidth:"32rem",popoverMaxHeight:"32rem",triggerDelay:1e3},a):a}getIcon(r){return r.icon?r.icon:function(r){const o=s(r);return{name:U[o]||"file",color:K[o]||J,backgroundColor:cr[o]||pr}}(r.filename)}getPreviewUrl(r){const o=s(r.filename);if("sharepoint"!==i(o))return r.href?r.href:r.fileContent?(this.blobUrls.has(r.id)||this.blobUrls.set(r.id,URL.createObjectURL(r.fileContent)),this.blobUrls.get(r.id)):void 0}revokeBlobUrl(r){const o=this.blobUrls.get(r);o&&(URL.revokeObjectURL(o),this.blobUrls.delete(r))}revokeAllBlobUrls(){for(const r of this.blobUrls.values())URL.revokeObjectURL(r);this.blobUrls.clear()}static get watchers(){return{files:[{onFilesChanged:0}]}}static get style(){return":host(limebb-document-chips){box-sizing:border-box;display:flex;flex-wrap:wrap;gap:0.25rem;width:100%}*{box-sizing:border-box;min-width:0}limebb-summary-popover{max-width:100%}limel-chip{max-width:18rem}"}},[1,"limebb-document-chips",{accessibleLabel:[513,"accessible-label"],files:[16]},void 0,{files:[{onFilesChanged:0}]}]),mr=gr,dr=function(){"undefined"!=typeof customElements&&["limebb-document-chips","limebb-navigation-button","limebb-summary-popover"].forEach((r=>{switch(r){case"limebb-document-chips":customElements.get(l(r))||customElements.define(l(r),gr);break;case"limebb-navigation-button":customElements.get(l(r))||c();break;case"limebb-summary-popover":customElements.get(l(r))||p()}}))};export{mr as LimebbDocumentChips,dr as defineCustomElement}
@@ -1,6 +1 @@
1
- import { D as DocumentItemComponent, d as defineCustomElement$1 } from './document-item.js';
2
-
3
- const LimebbDocumentItem = DocumentItemComponent;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { LimebbDocumentItem, defineCustomElement };
1
+ import{D as o,d as t}from"./document-item.js";const m=o,s=t;export{m as LimebbDocumentItem,s as defineCustomElement}
@@ -1,111 +1 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { c as createRandomString } from './random-string.js';
3
- import { d as defineCustomElement$2 } from './document-item.js';
4
-
5
- const documentPickerCss = "@charset \"UTF-8\";:host(limebb-document-picker){--checkbox-label-overflow-wrap:break-word;--switch-label-overflow-wrap:break-word}:host(limebb-document-picker:not([invalid]):not([invalid=true])) .limel-notched-outline{--limel-notched-outline-border-color:transparent;--limel-notched-outline-background-color:transparent}.limel-notched-outline{padding:0.75rem 0.5rem}limel-masonry-layout{--masonry-layout-min-column-width:10rem;--masonry-layout-gap:0.5rem}:host(limebb-document-picker:focus),:host(limebb-document-picker:focus-visible),:host(limebb-document-picker:focus-within){--limel-h-l-grid-template-rows-transition-speed:0.46s;--limel-h-l-grid-template-rows:1fr}:host(limebb-document-picker){--limel-h-l-grid-template-rows-transition-speed:0.3s;--limel-h-l-grid-template-rows:0fr}:host(limebb-document-picker:focus) limel-helper-line,:host(limebb-document-picker:focus-visible) limel-helper-line,:host(limebb-document-picker:focus-within) limel-helper-line,:host(limebb-document-picker:hover) limel-helper-line{will-change:grid-template-rows}";
6
- const LimebbDocumentPickerStyle0 = documentPickerCss;
7
-
8
- const DocumentPicker = /*@__PURE__*/ proxyCustomElement(class DocumentPicker extends HTMLElement {
9
- constructor() {
10
- super();
11
- this.__registerHost();
12
- this.__attachShadow();
13
- this.change = createEvent(this, "change", 7);
14
- /**
15
- * The list of document items to display in the picker.
16
- */
17
- this.items = [];
18
- /**
19
- * Set to `true` to indicate that the current selection is invalid.
20
- */
21
- this.invalid = false;
22
- /**
23
- * Set to `true` to indicate that selecting an item is required.
24
- */
25
- this.required = false;
26
- /**
27
- * Defines whether the picker allows single or multiple selection.
28
- * - 'radio': Allows single selection within a group.
29
- * - 'checkbox': Allows multiple selection.
30
- */
31
- this.type = 'checkbox';
32
- this.handleItemInteract = (event) => {
33
- event.stopPropagation();
34
- const interactedItem = event.detail;
35
- if (!interactedItem) {
36
- return;
37
- }
38
- let updatedItems;
39
- if (this.type === 'radio') {
40
- // For radio buttons: either select the clicked item (and deselect others)
41
- // or allow deselecting if clicking the already selected item
42
- updatedItems = this.items
43
- .map((item) => {
44
- if (item.file.id === interactedItem.file.id) {
45
- return Object.assign(Object.assign({}, item), { selected: interactedItem.selected });
46
- }
47
- return Object.assign(Object.assign({}, item), { selected: false });
48
- })
49
- .find((item) => item.selected);
50
- }
51
- else {
52
- updatedItems = this.items
53
- .map((item) => {
54
- if (item.file.id === interactedItem.file.id) {
55
- return Object.assign(Object.assign({}, item), { selected: interactedItem.selected });
56
- }
57
- return item;
58
- })
59
- .filter((item) => item.selected);
60
- }
61
- this.change.emit(updatedItems);
62
- };
63
- this.renderHelperLine = () => {
64
- if (!this.helperText) {
65
- return;
66
- }
67
- return (h("limel-helper-line", { helperText: this.helperText, helperTextId: this.helperTextId, invalid: this.invalid }));
68
- };
69
- this.helperTextId = createRandomString();
70
- this.labelId = createRandomString();
71
- }
72
- render() {
73
- return (h(Host, { key: 'b28a99c85792d47c500bb2b91aa2011bd7298f48' }, h("limel-notched-outline", { key: 'c855f472a73f0f2d35a0f5452ea2fcd5d370e834', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid, hasFloatingLabel: true }, h("limel-masonry-layout", { key: 'e333e8e2244e2e56abb178ea2359bcae5c8d699a', slot: "content", role: this.type === 'radio' ? 'radiogroup' : 'group', "aria-labelledby": this.label ? this.labelId : undefined, "aria-describedby": this.helperText ? this.helperTextId : undefined }, this.renderItems())), this.renderHelperLine()));
74
- }
75
- renderItems() {
76
- return this.items.map((item) => (h("limebb-document-item", { platform: this.platform, context: this.context, item: item, key: item.file.id, type: this.type, onInteract: this.handleItemInteract })));
77
- }
78
- static get style() { return LimebbDocumentPickerStyle0; }
79
- }, [1, "limebb-document-picker", {
80
- "platform": [16],
81
- "context": [16],
82
- "items": [16],
83
- "label": [513],
84
- "helperText": [513, "helper-text"],
85
- "invalid": [516],
86
- "required": [516],
87
- "type": [513]
88
- }]);
89
- function defineCustomElement$1() {
90
- if (typeof customElements === "undefined") {
91
- return;
92
- }
93
- const components = ["limebb-document-picker", "limebb-document-item"];
94
- components.forEach(tagName => { switch (tagName) {
95
- case "limebb-document-picker":
96
- if (!customElements.get(tagName)) {
97
- customElements.define(tagName, DocumentPicker);
98
- }
99
- break;
100
- case "limebb-document-item":
101
- if (!customElements.get(tagName)) {
102
- defineCustomElement$2();
103
- }
104
- break;
105
- } });
106
- }
107
-
108
- const LimebbDocumentPicker = DocumentPicker;
109
- const defineCustomElement = defineCustomElement$1;
110
-
111
- export { LimebbDocumentPicker, defineCustomElement };
1
+ import{proxyCustomElement as e,HTMLElement as t,createEvent as i,h as l,Host as o,transformTag as r}from"@stencil/core/internal/client";import{c as s}from"./random-string.js";import{d as n}from"./document-item.js";const c=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.change=i(this,"change",7),this.items=[],this.invalid=!1,this.required=!1,this.type="checkbox",this.handleItemInteract=e=>{e.stopPropagation();const t=e.detail;if(!t)return;let i;i="radio"===this.type?this.items.map((e=>Object.assign(Object.assign({},e),e.file.id===t.file.id?{selected:t.selected}:{selected:!1}))).find((e=>e.selected)):this.items.map((e=>e.file.id===t.file.id?Object.assign(Object.assign({},e),{selected:t.selected}):e)).filter((e=>e.selected)),this.change.emit(i)},this.renderHelperLine=()=>{if(this.helperText)return l("limel-helper-line",{helperText:this.helperText,helperTextId:this.helperTextId,invalid:this.invalid})},this.helperTextId=s(),this.labelId=s()}render(){return l(o,{key:"ff9e59b375c66d9b5c6818e4b81776d4dbfd63a8"},l("limel-notched-outline",{key:"8414b5e0363c10b90c0dc5fda549d0268c177a8d",labelId:this.labelId,label:this.label,required:this.required,invalid:this.invalid,hasFloatingLabel:!0},l("limel-masonry-layout",{key:"06037f5780b8755b628309e26fa908167df49347",slot:"content",role:"radio"===this.type?"radiogroup":"group","aria-labelledby":this.label?this.labelId:void 0,"aria-describedby":this.helperText?this.helperTextId:void 0},this.renderItems())),this.renderHelperLine())}renderItems(){return this.items.map((e=>l("limebb-document-item",{platform:this.platform,context:this.context,item:e,key:e.file.id,type:this.type,onInteract:this.handleItemInteract})))}static get style(){return'@charset "UTF-8";:host(limebb-document-picker){--checkbox-label-overflow-wrap:break-word;--switch-label-overflow-wrap:break-word}:host(limebb-document-picker:not([invalid]):not([invalid=true])) .limel-notched-outline{--limel-notched-outline-border-color:transparent;--limel-notched-outline-background-color:transparent}.limel-notched-outline{padding:0.75rem 0.5rem}limel-masonry-layout{--masonry-layout-min-column-width:10rem;--masonry-layout-gap:0.5rem}:host(limebb-document-picker:focus),:host(limebb-document-picker:focus-visible),:host(limebb-document-picker:focus-within){--limel-h-l-grid-template-rows-transition-speed:0.46s;--limel-h-l-grid-template-rows:1fr}:host(limebb-document-picker){--limel-h-l-grid-template-rows-transition-speed:0.3s;--limel-h-l-grid-template-rows:0fr}:host(limebb-document-picker:focus) limel-helper-line,:host(limebb-document-picker:focus-visible) limel-helper-line,:host(limebb-document-picker:focus-within) limel-helper-line,:host(limebb-document-picker:hover) limel-helper-line{will-change:grid-template-rows}'}},[1,"limebb-document-picker",{platform:[16],context:[16],items:[16],label:[513],helperText:[513,"helper-text"],invalid:[516],required:[516],type:[513]}]),m=c,h=function(){"undefined"!=typeof customElements&&["limebb-document-picker","limebb-document-item"].forEach((e=>{switch(e){case"limebb-document-picker":customElements.get(r(e))||customElements.define(r(e),c);break;case"limebb-document-item":customElements.get(r(e))||n()}}))};export{m as LimebbDocumentPicker,h as defineCustomElement}