@limetech/lime-crm-building-blocks 1.115.1 → 1.116.1

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 (474) hide show
  1. package/CHANGELOG.md +17 -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 +212 -0
  17. package/dist/cjs/limebb-chat-list.cjs.entry.js +46 -45
  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 +4 -2
  69. package/dist/collection/components/alert-dialog/alert-dialog.js +11 -10
  70. package/dist/collection/components/browser/browser.js +14 -9
  71. package/dist/collection/components/chat-list/chat-icon-list/chat-icon-list.css +199 -0
  72. package/dist/collection/components/chat-list/chat-icon-list/chat-icon-list.js +75 -0
  73. package/dist/collection/components/chat-list/chat-icon-list/chat-icon-list.types.js +1 -0
  74. package/dist/collection/components/chat-list/chat-item/chat-item.js +11 -8
  75. package/dist/collection/components/chat-list/chat-list.js +30 -17
  76. package/dist/collection/components/chat-list/chat-list.types.js +1 -0
  77. package/dist/collection/components/chat-list/process-chat-items.js +26 -33
  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.js +8 -5
  85. package/dist/collection/components/date-picker/date-picker.js +20 -17
  86. package/dist/collection/components/date-range/date-range.js +19 -15
  87. package/dist/collection/components/document-chips/document-chips.js +5 -4
  88. package/dist/collection/components/document-picker/document-item/document-item.js +13 -8
  89. package/dist/collection/components/document-picker/document-picker.js +18 -13
  90. package/dist/collection/components/empty-state/empty-state.js +6 -5
  91. package/dist/collection/components/feed/feed-item/feed-timeline-item.js +12 -9
  92. package/dist/collection/components/feed/feed-item-thumbnail-file-info/feed-item-thumbnail-file-info.js +3 -3
  93. package/dist/collection/components/feed/feed.js +21 -18
  94. package/dist/collection/components/icon-picker/icon-picker.js +15 -15
  95. package/dist/collection/components/info-tile/format/config/info-tile-currency-format.js +8 -4
  96. package/dist/collection/components/info-tile/format/config/info-tile-date-format.js +4 -2
  97. package/dist/collection/components/info-tile/format/config/info-tile-decimal-format.js +4 -2
  98. package/dist/collection/components/info-tile/format/config/info-tile-format.js +11 -7
  99. package/dist/collection/components/info-tile/format/config/info-tile-relative-date-format.js +4 -2
  100. package/dist/collection/components/info-tile/format/config/info-tile-unit-format.js +4 -2
  101. package/dist/collection/components/info-tile/info-tile.js +29 -23
  102. package/dist/collection/components/kanban/kanban-group/kanban-group.js +19 -16
  103. package/dist/collection/components/kanban/kanban-item/kanban-item.js +9 -5
  104. package/dist/collection/components/kanban/kanban.js +10 -5
  105. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-builder.js +12 -8
  106. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-comparison.js +11 -9
  107. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-expression.js +14 -10
  108. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-group.js +14 -10
  109. package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.js +15 -11
  110. package/dist/collection/components/lime-query-builder/expressions/lime-query-value-input.js +17 -14
  111. package/dist/collection/components/lime-query-builder/lime-query-builder.js +13 -9
  112. package/dist/collection/components/lime-query-builder/lime-query-response-format-builder.js +13 -9
  113. package/dist/collection/components/lime-query-builder/limetype-field/limetype-field.js +22 -19
  114. package/dist/collection/components/lime-query-builder/order-by/order-by-editor.js +12 -8
  115. package/dist/collection/components/lime-query-builder/order-by/order-by-item.js +12 -8
  116. package/dist/collection/components/lime-query-builder/property-selector/property-selector.js +12 -10
  117. package/dist/collection/components/lime-query-builder/response-format/response-format-editor.js +11 -7
  118. package/dist/collection/components/lime-query-builder/response-format/response-format-item.js +11 -7
  119. package/dist/collection/components/limeobject/file-viewer/file-viewer.js +8 -5
  120. package/dist/collection/components/limeobject/file-viewer/live-docs-info.js +2 -2
  121. package/dist/collection/components/loader/loader.js +4 -2
  122. package/dist/collection/components/locale-picker/locale-picker.js +23 -19
  123. package/dist/collection/components/mention/mention.js +4 -4
  124. package/dist/collection/components/navigation-button/navigation-button.js +10 -9
  125. package/dist/collection/components/notification-list/notification-item/notification-item.js +9 -5
  126. package/dist/collection/components/notification-list/notification-list.js +12 -8
  127. package/dist/collection/components/object-chip/object-chip.js +7 -6
  128. package/dist/collection/components/percentage-visualizer/percentage-visualizer.js +21 -19
  129. package/dist/collection/components/summary-popover/summary-popover.js +28 -21
  130. package/dist/collection/components/text-editor/mention-group-counter.js +8 -7
  131. package/dist/collection/components/text-editor/text-editor-picker.js +10 -7
  132. package/dist/collection/components/text-editor/text-editor.js +37 -29
  133. package/dist/collection/components/trend-indicator/trend-indicator.js +19 -17
  134. package/dist/components/_Map.js +1 -342
  135. package/dist/components/_MapCache.js +1 -433
  136. package/dist/components/_Uint8Array.js +1 -349
  137. package/dist/components/_baseIsEqual.js +1 -494
  138. package/dist/components/_defineProperty.js +1 -13
  139. package/dist/components/_getTag.js +1 -421
  140. package/dist/components/chat-icon-list.js +1 -0
  141. package/dist/components/chat-item.js +1 -184
  142. package/dist/components/currency-picker.js +1 -1917
  143. package/dist/components/date-picker.js +1 -151
  144. package/dist/components/document-item.js +1 -212
  145. package/dist/components/dom.js +1 -26
  146. package/dist/components/empty-state.js +1 -61
  147. package/dist/components/extension-mapping.js +1 -55
  148. package/dist/components/feed-item-thumbnail-file-info.js +1 -33
  149. package/dist/components/feed-timeline-item.js +1 -453
  150. package/dist/components/get.js +1 -308
  151. package/dist/components/highlight-item.handler.js +1 -36
  152. package/dist/components/index.d.ts +2 -0
  153. package/dist/components/index.esm.js +1 -963
  154. package/dist/components/index.js +1 -1
  155. package/dist/components/isSymbol.js +1 -28
  156. package/dist/components/kanban-group.js +1 -148
  157. package/dist/components/kanban-item.js +1 -182
  158. package/dist/components/keycodes.js +1 -7
  159. package/dist/components/lime-query-filter-builder.js +1 -132
  160. package/dist/components/lime-query-filter-comparison.js +1 -180
  161. package/dist/components/lime-query-filter-expression.js +1 -420
  162. package/dist/components/lime-query-validation.js +1 -617
  163. package/dist/components/lime-query-value-input.js +1 -387
  164. package/dist/components/limebb-alert-dialog.js +1 -71
  165. package/dist/components/limebb-browser.js +1 -116
  166. package/dist/components/limebb-chat-icon-list.d.ts +11 -0
  167. package/dist/components/limebb-chat-icon-list.js +1 -0
  168. package/dist/components/limebb-chat-item.js +1 -6
  169. package/dist/components/limebb-chat-list.js +1 -294
  170. package/dist/components/limebb-component-config.js +1 -176
  171. package/dist/components/limebb-component-picker.js +1 -180
  172. package/dist/components/limebb-composer-toolbar.js +1 -136
  173. package/dist/components/limebb-currency-picker.js +1 -6
  174. package/dist/components/limebb-dashboard-widget.js +1 -48
  175. package/dist/components/limebb-data-cells.js +1 -169
  176. package/dist/components/limebb-date-picker.js +1 -6
  177. package/dist/components/limebb-date-range.js +1 -83
  178. package/dist/components/limebb-document-chips.js +1 -437
  179. package/dist/components/limebb-document-item.js +1 -6
  180. package/dist/components/limebb-document-picker.js +1 -111
  181. package/dist/components/limebb-empty-state.js +1 -6
  182. package/dist/components/limebb-feed-item-thumbnail-file-info.js +1 -6
  183. package/dist/components/limebb-feed-timeline-item.js +1 -6
  184. package/dist/components/limebb-feed.js +1 -398
  185. package/dist/components/limebb-icon-picker.js +1 -53026
  186. package/dist/components/limebb-info-tile-currency-format.js +1 -116
  187. package/dist/components/limebb-info-tile-date-format.js +1 -272
  188. package/dist/components/limebb-info-tile-decimal-format.js +1 -95
  189. package/dist/components/limebb-info-tile-format.js +1 -144
  190. package/dist/components/limebb-info-tile-relative-date-format.js +1 -72
  191. package/dist/components/limebb-info-tile-unit-format.js +1 -183
  192. package/dist/components/limebb-info-tile.js +1 -626
  193. package/dist/components/limebb-kanban-group.js +1 -6
  194. package/dist/components/limebb-kanban-item.js +1 -6
  195. package/dist/components/limebb-kanban.js +1 -79
  196. package/dist/components/limebb-lime-query-builder.js +1 -424
  197. package/dist/components/limebb-lime-query-filter-builder.js +1 -6
  198. package/dist/components/limebb-lime-query-filter-comparison.js +1 -6
  199. package/dist/components/limebb-lime-query-filter-expression.js +1 -6
  200. package/dist/components/limebb-lime-query-filter-group.js +1 -6
  201. package/dist/components/limebb-lime-query-filter-not.js +1 -6
  202. package/dist/components/limebb-lime-query-order-by-editor.js +1 -6
  203. package/dist/components/limebb-lime-query-order-by-item.js +1 -6
  204. package/dist/components/limebb-lime-query-response-format-builder.js +1 -310
  205. package/dist/components/limebb-lime-query-response-format-editor.js +1 -6
  206. package/dist/components/limebb-lime-query-response-format-item.js +1 -6
  207. package/dist/components/limebb-lime-query-value-input.js +1 -6
  208. package/dist/components/limebb-limeobject-file-viewer.js +1 -175
  209. package/dist/components/limebb-limetype-field.js +1 -6
  210. package/dist/components/limebb-live-docs-info.js +1 -6
  211. package/dist/components/limebb-loader.js +1 -78
  212. package/dist/components/limebb-locale-picker.js +1 -1165
  213. package/dist/components/limebb-mention-group-counter.js +1 -48
  214. package/dist/components/limebb-mention.js +1 -79
  215. package/dist/components/limebb-navigation-button.js +1 -6
  216. package/dist/components/limebb-notification-item.js +1 -6
  217. package/dist/components/limebb-notification-list.js +1 -253
  218. package/dist/components/limebb-object-chip.js +1 -253
  219. package/dist/components/limebb-percentage-visualizer.js +1 -6
  220. package/dist/components/limebb-property-selector.js +1 -6
  221. package/dist/components/limebb-summary-popover.js +1 -6
  222. package/dist/components/limebb-text-editor-picker.js +1 -6
  223. package/dist/components/limebb-text-editor.js +1 -1902
  224. package/dist/components/limebb-trend-indicator.js +1 -175
  225. package/dist/components/limebb-typing-indicator.js +1 -6
  226. package/dist/components/limetype-field.js +1 -216
  227. package/dist/components/limetype.js +1 -85
  228. package/dist/components/live-docs-info.js +1 -34
  229. package/dist/components/navigation-button.js +1 -74
  230. package/dist/components/negate.js +1 -40
  231. package/dist/components/non-null.js +1 -10
  232. package/dist/components/notification-item.js +1 -168
  233. package/dist/components/order-by-editor.js +1 -139
  234. package/dist/components/order-by-item.js +1 -73
  235. package/dist/components/percentage-class.js +1 -64
  236. package/dist/components/percentage-visualizer.js +1 -219
  237. package/dist/components/property-selector.js +1 -372
  238. package/dist/components/random-string.js +1 -22
  239. package/dist/components/response-format-editor.js +1 -331
  240. package/dist/components/response-format-item.js +1 -126
  241. package/dist/components/summary-popover.js +1 -159
  242. package/dist/components/text-editor-picker.js +1 -128
  243. package/dist/components/typing-indicator.js +1 -31
  244. package/dist/esm/{_Map-aede53b6.js → _Map-ByjZfyP_.js} +8 -20
  245. package/dist/esm/{_MapCache-af496e9d.js → _MapCache-C_kVhYUl.js} +5 -7
  246. package/dist/esm/{_Uint8Array-d6ebd526.js → _Uint8Array-DVXPnoWk.js} +6 -10
  247. package/dist/esm/{_baseIsEqual-077b6bb3.js → _baseIsEqual-DB13O4pD.js} +4 -4
  248. package/dist/esm/{_defineProperty-e6a185c3.js → _defineProperty-DSmG08hO.js} +2 -4
  249. package/dist/esm/{_getTag-d02a95fa.js → _getTag-DZlkp9mJ.js} +12 -32
  250. package/dist/esm/{get-3e42932b.js → get-Bo260bSC.js} +6 -14
  251. package/dist/esm/{index-d86e55c0.js → index-BIwHMk6j.js} +539 -300
  252. package/dist/esm/index.esm-BjlE4usG.js +823 -0
  253. package/dist/esm/{isSymbol-1c5f65cc.js → isSymbol-Ci8cASb6.js} +1 -1
  254. package/dist/esm/lime-crm-building-blocks.js +6 -5
  255. package/dist/esm/{lime-query-validation-01797a51.js → lime-query-validation-S9h8L6bg.js} +8 -8
  256. package/dist/esm/limebb-alert-dialog.entry.js +5 -6
  257. package/dist/esm/limebb-browser.entry.js +11 -12
  258. package/dist/esm/limebb-chat-icon-list_3.entry.js +208 -0
  259. package/dist/esm/limebb-chat-list.entry.js +46 -43
  260. package/dist/esm/limebb-component-config.entry.js +17 -14
  261. package/dist/esm/limebb-component-picker.entry.js +9 -10
  262. package/dist/esm/limebb-composer-toolbar.entry.js +9 -10
  263. package/dist/esm/limebb-currency-picker.entry.js +1908 -1789
  264. package/dist/esm/limebb-dashboard-widget.entry.js +4 -5
  265. package/dist/esm/limebb-data-cells.entry.js +5 -6
  266. package/dist/esm/limebb-date-picker.entry.js +7 -7
  267. package/dist/esm/limebb-date-range.entry.js +6 -7
  268. package/dist/esm/limebb-document-chips.entry.js +10 -9
  269. package/dist/esm/limebb-document-item.entry.js +6 -7
  270. package/dist/esm/limebb-document-picker.entry.js +6 -7
  271. package/dist/esm/limebb-empty-state.entry.js +3 -4
  272. package/dist/esm/limebb-feed-item-thumbnail-file-info.entry.js +4 -5
  273. package/dist/esm/limebb-feed-timeline-item.entry.js +8 -9
  274. package/dist/esm/limebb-feed.entry.js +430 -166
  275. package/dist/esm/limebb-icon-picker.entry.js +4 -4
  276. package/dist/esm/limebb-info-tile-currency-format.entry.js +2 -2
  277. package/dist/esm/limebb-info-tile-date-format.entry.js +4 -5
  278. package/dist/esm/limebb-info-tile-decimal-format.entry.js +2 -2
  279. package/dist/esm/limebb-info-tile-format.entry.js +5 -6
  280. package/dist/esm/limebb-info-tile-relative-date-format.entry.js +2 -2
  281. package/dist/esm/limebb-info-tile-unit-format.entry.js +2 -2
  282. package/dist/esm/limebb-info-tile.entry.js +27 -22
  283. package/dist/esm/limebb-kanban-group.entry.js +8 -9
  284. package/dist/esm/limebb-kanban-item.entry.js +8 -9
  285. package/dist/esm/limebb-kanban.entry.js +5 -6
  286. package/dist/esm/limebb-lime-query-builder.entry.js +9 -10
  287. package/dist/esm/limebb-lime-query-filter-builder_3.entry.js +27 -27
  288. package/dist/esm/limebb-lime-query-filter-comparison_2.entry.js +26 -28
  289. package/dist/esm/limebb-lime-query-filter-group_3.entry.js +25 -28
  290. package/dist/esm/limebb-lime-query-order-by-item.entry.js +6 -7
  291. package/dist/esm/limebb-lime-query-response-format-builder.entry.js +9 -10
  292. package/dist/esm/limebb-lime-query-response-format-editor_2.entry.js +8 -10
  293. package/dist/esm/limebb-limeobject-file-viewer.entry.js +9 -10
  294. package/dist/esm/limebb-live-docs-info.entry.js +5 -6
  295. package/dist/esm/limebb-loader.entry.js +12 -8
  296. package/dist/esm/limebb-locale-picker.entry.js +29 -47
  297. package/dist/esm/limebb-mention-group-counter.entry.js +5 -6
  298. package/dist/esm/limebb-mention.entry.js +6 -7
  299. package/dist/esm/limebb-navigation-button_2.entry.js +10 -12
  300. package/dist/esm/limebb-notification-item.entry.js +9 -10
  301. package/dist/esm/limebb-notification-list.entry.js +10 -9
  302. package/dist/esm/limebb-object-chip.entry.js +16 -13
  303. package/dist/esm/limebb-percentage-visualizer.entry.js +9 -8
  304. package/dist/esm/limebb-property-selector.entry.js +9 -10
  305. package/dist/esm/limebb-text-editor-picker.entry.js +9 -8
  306. package/dist/esm/limebb-text-editor.entry.js +53 -305
  307. package/dist/esm/limebb-trend-indicator.entry.js +8 -7
  308. package/dist/esm/{limetype-12fbba0f.js → limetype-B3nph1qc.js} +3 -3
  309. package/dist/esm/loader.js +4 -4
  310. package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
  311. package/dist/lime-crm-building-blocks/{p-eb4aa158.entry.js → p-0afc0db2.entry.js} +1 -1
  312. package/dist/lime-crm-building-blocks/p-12aadae6.entry.js +1 -0
  313. package/dist/lime-crm-building-blocks/p-1428aa13.entry.js +1 -0
  314. package/dist/lime-crm-building-blocks/p-152edb10.entry.js +1 -0
  315. package/dist/lime-crm-building-blocks/p-1f02a411.entry.js +1 -0
  316. package/dist/lime-crm-building-blocks/p-21ec697f.entry.js +1 -0
  317. package/dist/lime-crm-building-blocks/p-283270c5.entry.js +1 -0
  318. package/dist/lime-crm-building-blocks/p-3252e153.entry.js +1 -0
  319. package/dist/lime-crm-building-blocks/p-3263f8d5.entry.js +1 -0
  320. package/dist/lime-crm-building-blocks/p-32f8477f.entry.js +1 -0
  321. package/dist/lime-crm-building-blocks/p-35a51259.entry.js +1 -0
  322. package/dist/lime-crm-building-blocks/p-38201f65.entry.js +1 -0
  323. package/dist/lime-crm-building-blocks/p-3ef87b11.entry.js +1 -0
  324. package/dist/lime-crm-building-blocks/{p-e79f16ca.entry.js → p-4446f170.entry.js} +1 -1
  325. package/dist/lime-crm-building-blocks/{p-77e7d7da.entry.js → p-49afe71b.entry.js} +1 -1
  326. package/dist/lime-crm-building-blocks/p-4ddd75bc.entry.js +1 -0
  327. package/dist/lime-crm-building-blocks/p-528f3635.entry.js +1 -0
  328. package/dist/lime-crm-building-blocks/p-52fb2a66.entry.js +1 -0
  329. package/dist/lime-crm-building-blocks/p-5d87cb38.entry.js +1 -0
  330. package/dist/lime-crm-building-blocks/p-60e22f51.entry.js +1 -0
  331. package/dist/lime-crm-building-blocks/p-62437a1d.entry.js +1 -0
  332. package/dist/lime-crm-building-blocks/p-626421bf.entry.js +1 -0
  333. package/dist/lime-crm-building-blocks/p-62981791.entry.js +1 -0
  334. package/dist/lime-crm-building-blocks/p-685dd8a1.entry.js +1 -0
  335. package/dist/lime-crm-building-blocks/{p-94e6f0de.entry.js → p-6cb2d9dd.entry.js} +1 -1
  336. package/dist/lime-crm-building-blocks/p-6fdee70a.entry.js +1 -0
  337. package/dist/lime-crm-building-blocks/p-71191041.entry.js +1 -0
  338. package/dist/lime-crm-building-blocks/{p-f7122d8e.entry.js → p-740ae712.entry.js} +1 -1
  339. package/dist/lime-crm-building-blocks/p-79f3fd73.entry.js +1 -0
  340. package/dist/lime-crm-building-blocks/p-8477cb5d.entry.js +1 -0
  341. package/dist/lime-crm-building-blocks/{p-50aad872.entry.js → p-8e2cc2e8.entry.js} +1 -1
  342. package/dist/lime-crm-building-blocks/p-9ae55a96.entry.js +1 -0
  343. package/dist/lime-crm-building-blocks/p-B8RiYkLS.js +1 -0
  344. package/dist/lime-crm-building-blocks/p-BIwHMk6j.js +2 -0
  345. package/dist/lime-crm-building-blocks/p-BJ8HvfgI.js +1 -0
  346. package/dist/lime-crm-building-blocks/p-ByjZfyP_.js +1 -0
  347. package/dist/lime-crm-building-blocks/{p-0a266c26.js → p-CMfAKLlA.js} +1 -1
  348. package/dist/lime-crm-building-blocks/p-CQ-z_HTt.js +1 -0
  349. package/dist/lime-crm-building-blocks/p-CcGMZOP-.js +1 -0
  350. package/dist/lime-crm-building-blocks/p-Dm_AIMQj.js +1 -0
  351. package/dist/lime-crm-building-blocks/p-V3xfp9dg.js +1 -0
  352. package/dist/lime-crm-building-blocks/p-aaeecca6.entry.js +1 -0
  353. package/dist/lime-crm-building-blocks/p-ac59093c.entry.js +1 -0
  354. package/dist/lime-crm-building-blocks/p-acbc40f5.entry.js +1 -0
  355. package/dist/lime-crm-building-blocks/p-b2383e7f.entry.js +1 -0
  356. package/dist/lime-crm-building-blocks/p-b36ad4e8.entry.js +1 -0
  357. package/dist/lime-crm-building-blocks/p-ba42e434.entry.js +1 -0
  358. package/dist/lime-crm-building-blocks/p-bac3d599.entry.js +1 -0
  359. package/dist/lime-crm-building-blocks/{p-7a6c1595.entry.js → p-bc3de5e3.entry.js} +1 -1
  360. package/dist/lime-crm-building-blocks/{p-375f40d9.entry.js → p-c3b13800.entry.js} +1 -1
  361. package/dist/lime-crm-building-blocks/{p-d9f76810.entry.js → p-c6bbcbee.entry.js} +1 -1
  362. package/dist/lime-crm-building-blocks/p-cff9bccd.entry.js +1 -0
  363. package/dist/lime-crm-building-blocks/p-d2a01f51.entry.js +1 -0
  364. package/dist/lime-crm-building-blocks/p-dabb227b.entry.js +1 -0
  365. package/dist/lime-crm-building-blocks/p-dbe2c5df.entry.js +1 -0
  366. package/dist/lime-crm-building-blocks/p-e2e9adff.entry.js +1 -0
  367. package/dist/lime-crm-building-blocks/p-ebe6040f.entry.js +1 -0
  368. package/dist/lime-crm-building-blocks/p-eec0a0c8.entry.js +1 -0
  369. package/dist/lime-crm-building-blocks/p-f23ea0e7.entry.js +1 -0
  370. package/dist/lime-crm-building-blocks/{p-22fffe85.entry.js → p-fa41a9e6.entry.js} +1 -1
  371. package/dist/lime-crm-building-blocks/p-fdf269f7.entry.js +1 -0
  372. package/dist/lime-crm-building-blocks/p-mljVfXwO.js +1 -0
  373. package/dist/lime-crm-building-blocks/p-wbuFLk-j.js +1 -0
  374. package/dist/lime-crm-building-blocks/p-yc--7_7T.js +1 -0
  375. package/dist/types/components/chat-list/chat-icon-list/chat-icon-list.d.ts +19 -0
  376. package/dist/types/components/chat-list/chat-icon-list/chat-icon-list.types.d.ts +52 -0
  377. package/dist/types/components/chat-list/chat-list.d.ts +7 -2
  378. package/dist/types/components/chat-list/chat-list.types.d.ts +13 -0
  379. package/dist/types/components/chat-list/process-chat-items.d.ts +20 -28
  380. package/dist/types/components.d.ts +664 -117
  381. package/dist/types/interface.d.ts +2 -0
  382. package/dist/types/stencil-public-runtime.d.ts +192 -12
  383. package/package.json +10 -10
  384. package/dist/cjs/index.esm-e01e9bd4.js +0 -977
  385. package/dist/cjs/limebb-chat-item_2.cjs.entry.js +0 -181
  386. package/dist/esm/index.esm-11a8b9e2.js +0 -963
  387. package/dist/esm/limebb-chat-item_2.entry.js +0 -176
  388. package/dist/lime-crm-building-blocks/p-0d0f4c0f.entry.js +0 -1
  389. package/dist/lime-crm-building-blocks/p-0eac6b68.entry.js +0 -1
  390. package/dist/lime-crm-building-blocks/p-103654ac.entry.js +0 -1
  391. package/dist/lime-crm-building-blocks/p-123190c3.js +0 -1
  392. package/dist/lime-crm-building-blocks/p-18d1ab86.entry.js +0 -1
  393. package/dist/lime-crm-building-blocks/p-199799ff.js +0 -1
  394. package/dist/lime-crm-building-blocks/p-20939cd4.entry.js +0 -1
  395. package/dist/lime-crm-building-blocks/p-20b5ff30.entry.js +0 -1
  396. package/dist/lime-crm-building-blocks/p-2ed843e9.entry.js +0 -1
  397. package/dist/lime-crm-building-blocks/p-35897ec3.js +0 -1
  398. package/dist/lime-crm-building-blocks/p-3a7b37cc.entry.js +0 -1
  399. package/dist/lime-crm-building-blocks/p-3b3e7328.entry.js +0 -1
  400. package/dist/lime-crm-building-blocks/p-3da67f32.entry.js +0 -1
  401. package/dist/lime-crm-building-blocks/p-4066e17a.entry.js +0 -1
  402. package/dist/lime-crm-building-blocks/p-4b494de7.entry.js +0 -1
  403. package/dist/lime-crm-building-blocks/p-4ca1caf4.entry.js +0 -1
  404. package/dist/lime-crm-building-blocks/p-4dad4ce8.entry.js +0 -1
  405. package/dist/lime-crm-building-blocks/p-52cf8641.js +0 -2
  406. package/dist/lime-crm-building-blocks/p-5322fd19.js +0 -1
  407. package/dist/lime-crm-building-blocks/p-53d54dc8.entry.js +0 -1
  408. package/dist/lime-crm-building-blocks/p-579be797.entry.js +0 -1
  409. package/dist/lime-crm-building-blocks/p-6a87a407.entry.js +0 -1
  410. package/dist/lime-crm-building-blocks/p-6ad6a88d.entry.js +0 -1
  411. package/dist/lime-crm-building-blocks/p-6bd5c65f.entry.js +0 -1
  412. package/dist/lime-crm-building-blocks/p-6bf1ab6d.entry.js +0 -1
  413. package/dist/lime-crm-building-blocks/p-703fa2fe.entry.js +0 -1
  414. package/dist/lime-crm-building-blocks/p-7b5a1e83.entry.js +0 -1
  415. package/dist/lime-crm-building-blocks/p-7e6fb4af.js +0 -1
  416. package/dist/lime-crm-building-blocks/p-7f72be40.entry.js +0 -1
  417. package/dist/lime-crm-building-blocks/p-812bf26e.entry.js +0 -1
  418. package/dist/lime-crm-building-blocks/p-81583fc8.entry.js +0 -1
  419. package/dist/lime-crm-building-blocks/p-81f8e5df.entry.js +0 -1
  420. package/dist/lime-crm-building-blocks/p-87d3f42c.entry.js +0 -1
  421. package/dist/lime-crm-building-blocks/p-8c3f563e.entry.js +0 -1
  422. package/dist/lime-crm-building-blocks/p-95b6eaf5.entry.js +0 -1
  423. package/dist/lime-crm-building-blocks/p-973146f7.entry.js +0 -1
  424. package/dist/lime-crm-building-blocks/p-9bc5caac.entry.js +0 -1
  425. package/dist/lime-crm-building-blocks/p-9c204549.entry.js +0 -1
  426. package/dist/lime-crm-building-blocks/p-9c334694.entry.js +0 -1
  427. package/dist/lime-crm-building-blocks/p-a7e55181.entry.js +0 -1
  428. package/dist/lime-crm-building-blocks/p-b31772c8.js +0 -1
  429. package/dist/lime-crm-building-blocks/p-b675d5f0.entry.js +0 -1
  430. package/dist/lime-crm-building-blocks/p-b7959ddb.entry.js +0 -1
  431. package/dist/lime-crm-building-blocks/p-d298b34e.js +0 -1
  432. package/dist/lime-crm-building-blocks/p-d47b6c3c.js +0 -1
  433. package/dist/lime-crm-building-blocks/p-d5b835a6.entry.js +0 -1
  434. package/dist/lime-crm-building-blocks/p-d7fc530f.entry.js +0 -1
  435. package/dist/lime-crm-building-blocks/p-dddd8a43.entry.js +0 -1
  436. package/dist/lime-crm-building-blocks/p-eb56d4eb.entry.js +0 -1
  437. package/dist/lime-crm-building-blocks/p-f31eeeaa.entry.js +0 -1
  438. package/dist/lime-crm-building-blocks/p-f788a48d.js +0 -1
  439. package/dist/lime-crm-building-blocks/p-fb292b3f.entry.js +0 -1
  440. package/dist/lime-crm-building-blocks/p-fe2b91d9.js +0 -1
  441. package/loader/package.json +0 -11
  442. /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
  443. /package/dist/cjs/{dom-2ea30350.js → dom--t_vVnyU.js} +0 -0
  444. /package/dist/cjs/{extension-mapping-63bdafd3.js → extension-mapping-CvK-Mz3f.js} +0 -0
  445. /package/dist/cjs/{file-extension-7c2eae39.js → file-extension-DolkaRwB.js} +0 -0
  446. /package/dist/cjs/{highlight-item.handler-584ab58a.js → highlight-item.handler-BVqvzXiD.js} +0 -0
  447. /package/dist/cjs/{keycodes-88522d7f.js → keycodes-BCQoLEdB.js} +0 -0
  448. /package/dist/cjs/{negate-e0a2bf77.js → negate-Bg3SqQh6.js} +0 -0
  449. /package/dist/cjs/{non-null-3bf14aa1.js → non-null-BMnREsqJ.js} +0 -0
  450. /package/dist/cjs/{percentage-class-012e94d9.js → percentage-class-DVoYzFLR.js} +0 -0
  451. /package/dist/cjs/{property-resolution-5f798b03.js → property-resolution-Bz1zPcfq.js} +0 -0
  452. /package/dist/cjs/{random-string-aac0a74b.js → random-string-BdZGIsGg.js} +0 -0
  453. /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
  454. /package/dist/esm/{dom-9cc051d7.js → dom-B95D7tDb.js} +0 -0
  455. /package/dist/esm/{extension-mapping-fcade195.js → extension-mapping-Bcm94u_z.js} +0 -0
  456. /package/dist/esm/{file-extension-568475d1.js → file-extension-DtnPTzDv.js} +0 -0
  457. /package/dist/esm/{highlight-item.handler-dfbf11c0.js → highlight-item.handler-BWMpG2bS.js} +0 -0
  458. /package/dist/esm/{keycodes-58a1fcc9.js → keycodes-CwMJvF_Z.js} +0 -0
  459. /package/dist/esm/{negate-55744008.js → negate-ooVD-6_a.js} +0 -0
  460. /package/dist/esm/{non-null-5a66a269.js → non-null-CkTg5UPD.js} +0 -0
  461. /package/dist/esm/{percentage-class-2766f8ef.js → percentage-class-BaQl_Elp.js} +0 -0
  462. /package/dist/esm/{property-resolution-e4e8dcf7.js → property-resolution-CQUZjrU4.js} +0 -0
  463. /package/dist/esm/{random-string-f6ef6fbf.js → random-string-C2JP2nLw.js} +0 -0
  464. /package/dist/lime-crm-building-blocks/{p-4a85590d.js → p-B95D7tDb.js} +0 -0
  465. /package/dist/lime-crm-building-blocks/{p-66352a1e.js → p-BWMpG2bS.js} +0 -0
  466. /package/dist/lime-crm-building-blocks/{p-a99197b1.js → p-BaQl_Elp.js} +0 -0
  467. /package/dist/lime-crm-building-blocks/{p-ab2a95a6.js → p-Bcm94u_z.js} +0 -0
  468. /package/dist/lime-crm-building-blocks/{p-fbda77a7.js → p-C2JP2nLw.js} +0 -0
  469. /package/dist/lime-crm-building-blocks/{p-b02c99d5.js → p-CQUZjrU4.js} +0 -0
  470. /package/dist/lime-crm-building-blocks/{p-1484e300.js → p-CkTg5UPD.js} +0 -0
  471. /package/dist/lime-crm-building-blocks/{p-463d3174.js → p-CwMJvF_Z.js} +0 -0
  472. /package/dist/lime-crm-building-blocks/{p-e1255160.js → p-DQuL1Twl.js} +0 -0
  473. /package/dist/lime-crm-building-blocks/{p-b42e9740.js → p-DtnPTzDv.js} +0 -0
  474. /package/dist/lime-crm-building-blocks/{p-7c9484b1.js → p-ooVD-6_a.js} +0 -0
@@ -1,1165 +1 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { c } from './index.esm.js';
3
- import { t as toString, c as castPath, a as toKey, i as isKey, g as get, b as baseGet, d as arrayMap } from './get.js';
4
- import { i as isIndex, a as arrayPush, S as Stack, k as keys } from './_Uint8Array.js';
5
- import { d as isObject, i as isArray, S as Symbol } from './_Map.js';
6
- import { i as isArrayLike, c as isArguments, f as isLength, h as baseUnary } from './_getTag.js';
7
- import { b as baseIsEqual } from './_baseIsEqual.js';
8
- import { i as isSymbol } from './isSymbol.js';
9
- import { d as defineProperty } from './_defineProperty.js';
10
- import { e as eq } from './_MapCache.js';
11
-
12
- /**
13
- * This method returns the first argument it receives.
14
- *
15
- * @static
16
- * @since 0.1.0
17
- * @memberOf _
18
- * @category Util
19
- * @param {*} value Any value.
20
- * @returns {*} Returns `value`.
21
- * @example
22
- *
23
- * var object = { 'a': 1 };
24
- *
25
- * console.log(_.identity(object) === object);
26
- * // => true
27
- */
28
- function identity(value) {
29
- return value;
30
- }
31
-
32
- /**
33
- * A faster alternative to `Function#apply`, this function invokes `func`
34
- * with the `this` binding of `thisArg` and the arguments of `args`.
35
- *
36
- * @private
37
- * @param {Function} func The function to invoke.
38
- * @param {*} thisArg The `this` binding of `func`.
39
- * @param {Array} args The arguments to invoke `func` with.
40
- * @returns {*} Returns the result of `func`.
41
- */
42
- function apply(func, thisArg, args) {
43
- switch (args.length) {
44
- case 0: return func.call(thisArg);
45
- case 1: return func.call(thisArg, args[0]);
46
- case 2: return func.call(thisArg, args[0], args[1]);
47
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
48
- }
49
- return func.apply(thisArg, args);
50
- }
51
-
52
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
53
- var HOT_COUNT = 800,
54
- HOT_SPAN = 16;
55
-
56
- /* Built-in method references for those with the same name as other `lodash` methods. */
57
- var nativeNow = Date.now;
58
-
59
- /**
60
- * Creates a function that'll short out and invoke `identity` instead
61
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
62
- * milliseconds.
63
- *
64
- * @private
65
- * @param {Function} func The function to restrict.
66
- * @returns {Function} Returns the new shortable function.
67
- */
68
- function shortOut(func) {
69
- var count = 0,
70
- lastCalled = 0;
71
-
72
- return function() {
73
- var stamp = nativeNow(),
74
- remaining = HOT_SPAN - (stamp - lastCalled);
75
-
76
- lastCalled = stamp;
77
- if (remaining > 0) {
78
- if (++count >= HOT_COUNT) {
79
- return arguments[0];
80
- }
81
- } else {
82
- count = 0;
83
- }
84
- return func.apply(undefined, arguments);
85
- };
86
- }
87
-
88
- /**
89
- * Creates a function that returns `value`.
90
- *
91
- * @static
92
- * @memberOf _
93
- * @since 2.4.0
94
- * @category Util
95
- * @param {*} value The value to return from the new function.
96
- * @returns {Function} Returns the new constant function.
97
- * @example
98
- *
99
- * var objects = _.times(2, _.constant({ 'a': 1 }));
100
- *
101
- * console.log(objects);
102
- * // => [{ 'a': 1 }, { 'a': 1 }]
103
- *
104
- * console.log(objects[0] === objects[1]);
105
- * // => true
106
- */
107
- function constant(value) {
108
- return function() {
109
- return value;
110
- };
111
- }
112
-
113
- /**
114
- * The base implementation of `setToString` without support for hot loop shorting.
115
- *
116
- * @private
117
- * @param {Function} func The function to modify.
118
- * @param {Function} string The `toString` result.
119
- * @returns {Function} Returns `func`.
120
- */
121
- var baseSetToString = !defineProperty ? identity : function(func, string) {
122
- return defineProperty(func, 'toString', {
123
- 'configurable': true,
124
- 'enumerable': false,
125
- 'value': constant(string),
126
- 'writable': true
127
- });
128
- };
129
-
130
- const baseSetToString$1 = baseSetToString;
131
-
132
- /**
133
- * Sets the `toString` method of `func` to return `string`.
134
- *
135
- * @private
136
- * @param {Function} func The function to modify.
137
- * @param {Function} string The `toString` result.
138
- * @returns {Function} Returns `func`.
139
- */
140
- var setToString = shortOut(baseSetToString$1);
141
-
142
- const setToString$1 = setToString;
143
-
144
- /* Built-in method references for those with the same name as other `lodash` methods. */
145
- var nativeMax = Math.max;
146
-
147
- /**
148
- * A specialized version of `baseRest` which transforms the rest array.
149
- *
150
- * @private
151
- * @param {Function} func The function to apply a rest parameter to.
152
- * @param {number} [start=func.length-1] The start position of the rest parameter.
153
- * @param {Function} transform The rest array transform.
154
- * @returns {Function} Returns the new function.
155
- */
156
- function overRest(func, start, transform) {
157
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
158
- return function() {
159
- var args = arguments,
160
- index = -1,
161
- length = nativeMax(args.length - start, 0),
162
- array = Array(length);
163
-
164
- while (++index < length) {
165
- array[index] = args[start + index];
166
- }
167
- index = -1;
168
- var otherArgs = Array(start + 1);
169
- while (++index < start) {
170
- otherArgs[index] = args[index];
171
- }
172
- otherArgs[start] = transform(array);
173
- return apply(func, this, otherArgs);
174
- };
175
- }
176
-
177
- /**
178
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
179
- *
180
- * @private
181
- * @param {Function} func The function to apply a rest parameter to.
182
- * @param {number} [start=func.length-1] The start position of the rest parameter.
183
- * @returns {Function} Returns the new function.
184
- */
185
- function baseRest(func, start) {
186
- return setToString$1(overRest(func, start, identity), func + '');
187
- }
188
-
189
- /**
190
- * Checks if the given arguments are from an iteratee call.
191
- *
192
- * @private
193
- * @param {*} value The potential iteratee value argument.
194
- * @param {*} index The potential iteratee index or key argument.
195
- * @param {*} object The potential iteratee object argument.
196
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
197
- * else `false`.
198
- */
199
- function isIterateeCall(value, index, object) {
200
- if (!isObject(object)) {
201
- return false;
202
- }
203
- var type = typeof index;
204
- if (type == 'number'
205
- ? (isArrayLike(object) && isIndex(index, object.length))
206
- : (type == 'string' && index in object)
207
- ) {
208
- return eq(object[index], value);
209
- }
210
- return false;
211
- }
212
-
213
- /** Built-in value references. */
214
- var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
215
-
216
- /**
217
- * Checks if `value` is a flattenable `arguments` object or array.
218
- *
219
- * @private
220
- * @param {*} value The value to check.
221
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
222
- */
223
- function isFlattenable(value) {
224
- return isArray(value) || isArguments(value) ||
225
- !!(spreadableSymbol && value && value[spreadableSymbol]);
226
- }
227
-
228
- /**
229
- * The base implementation of `_.flatten` with support for restricting flattening.
230
- *
231
- * @private
232
- * @param {Array} array The array to flatten.
233
- * @param {number} depth The maximum recursion depth.
234
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
235
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
236
- * @param {Array} [result=[]] The initial result value.
237
- * @returns {Array} Returns the new flattened array.
238
- */
239
- function baseFlatten(array, depth, predicate, isStrict, result) {
240
- var index = -1,
241
- length = array.length;
242
-
243
- predicate || (predicate = isFlattenable);
244
- result || (result = []);
245
-
246
- while (++index < length) {
247
- var value = array[index];
248
- if (depth > 0 && predicate(value)) {
249
- if (depth > 1) {
250
- // Recursively flatten arrays (susceptible to call stack limits).
251
- baseFlatten(value, depth - 1, predicate, isStrict, result);
252
- } else {
253
- arrayPush(result, value);
254
- }
255
- } else if (!isStrict) {
256
- result[result.length] = value;
257
- }
258
- }
259
- return result;
260
- }
261
-
262
- /**
263
- * The base implementation of `_.slice` without an iteratee call guard.
264
- *
265
- * @private
266
- * @param {Array} array The array to slice.
267
- * @param {number} [start=0] The start position.
268
- * @param {number} [end=array.length] The end position.
269
- * @returns {Array} Returns the slice of `array`.
270
- */
271
- function baseSlice(array, start, end) {
272
- var index = -1,
273
- length = array.length;
274
-
275
- if (start < 0) {
276
- start = -start > length ? 0 : (length + start);
277
- }
278
- end = end > length ? length : end;
279
- if (end < 0) {
280
- end += length;
281
- }
282
- length = start > end ? 0 : ((end - start) >>> 0);
283
- start >>>= 0;
284
-
285
- var result = Array(length);
286
- while (++index < length) {
287
- result[index] = array[index + start];
288
- }
289
- return result;
290
- }
291
-
292
- /**
293
- * Casts `array` to a slice if it's needed.
294
- *
295
- * @private
296
- * @param {Array} array The array to inspect.
297
- * @param {number} start The start position.
298
- * @param {number} [end=array.length] The end position.
299
- * @returns {Array} Returns the cast slice.
300
- */
301
- function castSlice(array, start, end) {
302
- var length = array.length;
303
- end = end === undefined ? length : end;
304
- return (!start && end >= length) ? array : baseSlice(array, start, end);
305
- }
306
-
307
- /** Used to compose unicode character classes. */
308
- var rsAstralRange$1 = '\\ud800-\\udfff',
309
- rsComboMarksRange$1 = '\\u0300-\\u036f',
310
- reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
311
- rsComboSymbolsRange$1 = '\\u20d0-\\u20ff',
312
- rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1,
313
- rsVarRange$1 = '\\ufe0e\\ufe0f';
314
-
315
- /** Used to compose unicode capture groups. */
316
- var rsZWJ$1 = '\\u200d';
317
-
318
- /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
319
- var reHasUnicode = RegExp('[' + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + ']');
320
-
321
- /**
322
- * Checks if `string` contains Unicode symbols.
323
- *
324
- * @private
325
- * @param {string} string The string to inspect.
326
- * @returns {boolean} Returns `true` if a symbol is found, else `false`.
327
- */
328
- function hasUnicode(string) {
329
- return reHasUnicode.test(string);
330
- }
331
-
332
- /**
333
- * Converts an ASCII `string` to an array.
334
- *
335
- * @private
336
- * @param {string} string The string to convert.
337
- * @returns {Array} Returns the converted array.
338
- */
339
- function asciiToArray(string) {
340
- return string.split('');
341
- }
342
-
343
- /** Used to compose unicode character classes. */
344
- var rsAstralRange = '\\ud800-\\udfff',
345
- rsComboMarksRange = '\\u0300-\\u036f',
346
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
347
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
348
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
349
- rsVarRange = '\\ufe0e\\ufe0f';
350
-
351
- /** Used to compose unicode capture groups. */
352
- var rsAstral = '[' + rsAstralRange + ']',
353
- rsCombo = '[' + rsComboRange + ']',
354
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
355
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
356
- rsNonAstral = '[^' + rsAstralRange + ']',
357
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
358
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
359
- rsZWJ = '\\u200d';
360
-
361
- /** Used to compose unicode regexes. */
362
- var reOptMod = rsModifier + '?',
363
- rsOptVar = '[' + rsVarRange + ']?',
364
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
365
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
366
- rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
367
-
368
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
369
- var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
370
-
371
- /**
372
- * Converts a Unicode `string` to an array.
373
- *
374
- * @private
375
- * @param {string} string The string to convert.
376
- * @returns {Array} Returns the converted array.
377
- */
378
- function unicodeToArray(string) {
379
- return string.match(reUnicode) || [];
380
- }
381
-
382
- /**
383
- * Converts `string` to an array.
384
- *
385
- * @private
386
- * @param {string} string The string to convert.
387
- * @returns {Array} Returns the converted array.
388
- */
389
- function stringToArray(string) {
390
- return hasUnicode(string)
391
- ? unicodeToArray(string)
392
- : asciiToArray(string);
393
- }
394
-
395
- /**
396
- * Creates a function like `_.lowerFirst`.
397
- *
398
- * @private
399
- * @param {string} methodName The name of the `String` case method to use.
400
- * @returns {Function} Returns the new case function.
401
- */
402
- function createCaseFirst(methodName) {
403
- return function(string) {
404
- string = toString(string);
405
-
406
- var strSymbols = hasUnicode(string)
407
- ? stringToArray(string)
408
- : undefined;
409
-
410
- var chr = strSymbols
411
- ? strSymbols[0]
412
- : string.charAt(0);
413
-
414
- var trailing = strSymbols
415
- ? castSlice(strSymbols, 1).join('')
416
- : string.slice(1);
417
-
418
- return chr[methodName]() + trailing;
419
- };
420
- }
421
-
422
- /**
423
- * Converts the first character of `string` to upper case.
424
- *
425
- * @static
426
- * @memberOf _
427
- * @since 4.0.0
428
- * @category String
429
- * @param {string} [string=''] The string to convert.
430
- * @returns {string} Returns the converted string.
431
- * @example
432
- *
433
- * _.upperFirst('fred');
434
- * // => 'Fred'
435
- *
436
- * _.upperFirst('FRED');
437
- * // => 'FRED'
438
- */
439
- var upperFirst = createCaseFirst('toUpperCase');
440
-
441
- const upperFirst$1 = upperFirst;
442
-
443
- /**
444
- * Converts the first character of `string` to upper case and the remaining
445
- * to lower case.
446
- *
447
- * @static
448
- * @memberOf _
449
- * @since 3.0.0
450
- * @category String
451
- * @param {string} [string=''] The string to capitalize.
452
- * @returns {string} Returns the capitalized string.
453
- * @example
454
- *
455
- * _.capitalize('FRED');
456
- * // => 'Fred'
457
- */
458
- function capitalize(string) {
459
- return upperFirst$1(toString(string).toLowerCase());
460
- }
461
-
462
- /** Used to compose bitmasks for value comparisons. */
463
- var COMPARE_PARTIAL_FLAG$1 = 1,
464
- COMPARE_UNORDERED_FLAG$1 = 2;
465
-
466
- /**
467
- * The base implementation of `_.isMatch` without support for iteratee shorthands.
468
- *
469
- * @private
470
- * @param {Object} object The object to inspect.
471
- * @param {Object} source The object of property values to match.
472
- * @param {Array} matchData The property names, values, and compare flags to match.
473
- * @param {Function} [customizer] The function to customize comparisons.
474
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
475
- */
476
- function baseIsMatch(object, source, matchData, customizer) {
477
- var index = matchData.length,
478
- length = index,
479
- noCustomizer = !customizer;
480
-
481
- if (object == null) {
482
- return !length;
483
- }
484
- object = Object(object);
485
- while (index--) {
486
- var data = matchData[index];
487
- if ((noCustomizer && data[2])
488
- ? data[1] !== object[data[0]]
489
- : !(data[0] in object)
490
- ) {
491
- return false;
492
- }
493
- }
494
- while (++index < length) {
495
- data = matchData[index];
496
- var key = data[0],
497
- objValue = object[key],
498
- srcValue = data[1];
499
-
500
- if (noCustomizer && data[2]) {
501
- if (objValue === undefined && !(key in object)) {
502
- return false;
503
- }
504
- } else {
505
- var stack = new Stack;
506
- if (customizer) {
507
- var result = customizer(objValue, srcValue, key, object, source, stack);
508
- }
509
- if (!(result === undefined
510
- ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
511
- : result
512
- )) {
513
- return false;
514
- }
515
- }
516
- }
517
- return true;
518
- }
519
-
520
- /**
521
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
522
- *
523
- * @private
524
- * @param {*} value The value to check.
525
- * @returns {boolean} Returns `true` if `value` if suitable for strict
526
- * equality comparisons, else `false`.
527
- */
528
- function isStrictComparable(value) {
529
- return value === value && !isObject(value);
530
- }
531
-
532
- /**
533
- * Gets the property names, values, and compare flags of `object`.
534
- *
535
- * @private
536
- * @param {Object} object The object to query.
537
- * @returns {Array} Returns the match data of `object`.
538
- */
539
- function getMatchData(object) {
540
- var result = keys(object),
541
- length = result.length;
542
-
543
- while (length--) {
544
- var key = result[length],
545
- value = object[key];
546
-
547
- result[length] = [key, value, isStrictComparable(value)];
548
- }
549
- return result;
550
- }
551
-
552
- /**
553
- * A specialized version of `matchesProperty` for source values suitable
554
- * for strict equality comparisons, i.e. `===`.
555
- *
556
- * @private
557
- * @param {string} key The key of the property to get.
558
- * @param {*} srcValue The value to match.
559
- * @returns {Function} Returns the new spec function.
560
- */
561
- function matchesStrictComparable(key, srcValue) {
562
- return function(object) {
563
- if (object == null) {
564
- return false;
565
- }
566
- return object[key] === srcValue &&
567
- (srcValue !== undefined || (key in Object(object)));
568
- };
569
- }
570
-
571
- /**
572
- * The base implementation of `_.matches` which doesn't clone `source`.
573
- *
574
- * @private
575
- * @param {Object} source The object of property values to match.
576
- * @returns {Function} Returns the new spec function.
577
- */
578
- function baseMatches(source) {
579
- var matchData = getMatchData(source);
580
- if (matchData.length == 1 && matchData[0][2]) {
581
- return matchesStrictComparable(matchData[0][0], matchData[0][1]);
582
- }
583
- return function(object) {
584
- return object === source || baseIsMatch(object, source, matchData);
585
- };
586
- }
587
-
588
- /**
589
- * The base implementation of `_.hasIn` without support for deep paths.
590
- *
591
- * @private
592
- * @param {Object} [object] The object to query.
593
- * @param {Array|string} key The key to check.
594
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
595
- */
596
- function baseHasIn(object, key) {
597
- return object != null && key in Object(object);
598
- }
599
-
600
- /**
601
- * Checks if `path` exists on `object`.
602
- *
603
- * @private
604
- * @param {Object} object The object to query.
605
- * @param {Array|string} path The path to check.
606
- * @param {Function} hasFunc The function to check properties.
607
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
608
- */
609
- function hasPath(object, path, hasFunc) {
610
- path = castPath(path, object);
611
-
612
- var index = -1,
613
- length = path.length,
614
- result = false;
615
-
616
- while (++index < length) {
617
- var key = toKey(path[index]);
618
- if (!(result = object != null && hasFunc(object, key))) {
619
- break;
620
- }
621
- object = object[key];
622
- }
623
- if (result || ++index != length) {
624
- return result;
625
- }
626
- length = object == null ? 0 : object.length;
627
- return !!length && isLength(length) && isIndex(key, length) &&
628
- (isArray(object) || isArguments(object));
629
- }
630
-
631
- /**
632
- * Checks if `path` is a direct or inherited property of `object`.
633
- *
634
- * @static
635
- * @memberOf _
636
- * @since 4.0.0
637
- * @category Object
638
- * @param {Object} object The object to query.
639
- * @param {Array|string} path The path to check.
640
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
641
- * @example
642
- *
643
- * var object = _.create({ 'a': _.create({ 'b': 2 }) });
644
- *
645
- * _.hasIn(object, 'a');
646
- * // => true
647
- *
648
- * _.hasIn(object, 'a.b');
649
- * // => true
650
- *
651
- * _.hasIn(object, ['a', 'b']);
652
- * // => true
653
- *
654
- * _.hasIn(object, 'b');
655
- * // => false
656
- */
657
- function hasIn(object, path) {
658
- return object != null && hasPath(object, path, baseHasIn);
659
- }
660
-
661
- /** Used to compose bitmasks for value comparisons. */
662
- var COMPARE_PARTIAL_FLAG = 1,
663
- COMPARE_UNORDERED_FLAG = 2;
664
-
665
- /**
666
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
667
- *
668
- * @private
669
- * @param {string} path The path of the property to get.
670
- * @param {*} srcValue The value to match.
671
- * @returns {Function} Returns the new spec function.
672
- */
673
- function baseMatchesProperty(path, srcValue) {
674
- if (isKey(path) && isStrictComparable(srcValue)) {
675
- return matchesStrictComparable(toKey(path), srcValue);
676
- }
677
- return function(object) {
678
- var objValue = get(object, path);
679
- return (objValue === undefined && objValue === srcValue)
680
- ? hasIn(object, path)
681
- : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
682
- };
683
- }
684
-
685
- /**
686
- * The base implementation of `_.property` without support for deep paths.
687
- *
688
- * @private
689
- * @param {string} key The key of the property to get.
690
- * @returns {Function} Returns the new accessor function.
691
- */
692
- function baseProperty(key) {
693
- return function(object) {
694
- return object == null ? undefined : object[key];
695
- };
696
- }
697
-
698
- /**
699
- * A specialized version of `baseProperty` which supports deep paths.
700
- *
701
- * @private
702
- * @param {Array|string} path The path of the property to get.
703
- * @returns {Function} Returns the new accessor function.
704
- */
705
- function basePropertyDeep(path) {
706
- return function(object) {
707
- return baseGet(object, path);
708
- };
709
- }
710
-
711
- /**
712
- * Creates a function that returns the value at `path` of a given object.
713
- *
714
- * @static
715
- * @memberOf _
716
- * @since 2.4.0
717
- * @category Util
718
- * @param {Array|string} path The path of the property to get.
719
- * @returns {Function} Returns the new accessor function.
720
- * @example
721
- *
722
- * var objects = [
723
- * { 'a': { 'b': 2 } },
724
- * { 'a': { 'b': 1 } }
725
- * ];
726
- *
727
- * _.map(objects, _.property('a.b'));
728
- * // => [2, 1]
729
- *
730
- * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
731
- * // => [1, 2]
732
- */
733
- function property(path) {
734
- return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
735
- }
736
-
737
- /**
738
- * The base implementation of `_.iteratee`.
739
- *
740
- * @private
741
- * @param {*} [value=_.identity] The value to convert to an iteratee.
742
- * @returns {Function} Returns the iteratee.
743
- */
744
- function baseIteratee(value) {
745
- // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
746
- // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
747
- if (typeof value == 'function') {
748
- return value;
749
- }
750
- if (value == null) {
751
- return identity;
752
- }
753
- if (typeof value == 'object') {
754
- return isArray(value)
755
- ? baseMatchesProperty(value[0], value[1])
756
- : baseMatches(value);
757
- }
758
- return property(value);
759
- }
760
-
761
- /**
762
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
763
- *
764
- * @private
765
- * @param {boolean} [fromRight] Specify iterating from right to left.
766
- * @returns {Function} Returns the new base function.
767
- */
768
- function createBaseFor(fromRight) {
769
- return function(object, iteratee, keysFunc) {
770
- var index = -1,
771
- iterable = Object(object),
772
- props = keysFunc(object),
773
- length = props.length;
774
-
775
- while (length--) {
776
- var key = props[fromRight ? length : ++index];
777
- if (iteratee(iterable[key], key, iterable) === false) {
778
- break;
779
- }
780
- }
781
- return object;
782
- };
783
- }
784
-
785
- /**
786
- * The base implementation of `baseForOwn` which iterates over `object`
787
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
788
- * Iteratee functions may exit iteration early by explicitly returning `false`.
789
- *
790
- * @private
791
- * @param {Object} object The object to iterate over.
792
- * @param {Function} iteratee The function invoked per iteration.
793
- * @param {Function} keysFunc The function to get the keys of `object`.
794
- * @returns {Object} Returns `object`.
795
- */
796
- var baseFor = createBaseFor();
797
-
798
- const baseFor$1 = baseFor;
799
-
800
- /**
801
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
802
- *
803
- * @private
804
- * @param {Object} object The object to iterate over.
805
- * @param {Function} iteratee The function invoked per iteration.
806
- * @returns {Object} Returns `object`.
807
- */
808
- function baseForOwn(object, iteratee) {
809
- return object && baseFor$1(object, iteratee, keys);
810
- }
811
-
812
- /**
813
- * Creates a `baseEach` or `baseEachRight` function.
814
- *
815
- * @private
816
- * @param {Function} eachFunc The function to iterate over a collection.
817
- * @param {boolean} [fromRight] Specify iterating from right to left.
818
- * @returns {Function} Returns the new base function.
819
- */
820
- function createBaseEach(eachFunc, fromRight) {
821
- return function(collection, iteratee) {
822
- if (collection == null) {
823
- return collection;
824
- }
825
- if (!isArrayLike(collection)) {
826
- return eachFunc(collection, iteratee);
827
- }
828
- var length = collection.length,
829
- index = fromRight ? length : -1,
830
- iterable = Object(collection);
831
-
832
- while ((fromRight ? index-- : ++index < length)) {
833
- if (iteratee(iterable[index], index, iterable) === false) {
834
- break;
835
- }
836
- }
837
- return collection;
838
- };
839
- }
840
-
841
- /**
842
- * The base implementation of `_.forEach` without support for iteratee shorthands.
843
- *
844
- * @private
845
- * @param {Array|Object} collection The collection to iterate over.
846
- * @param {Function} iteratee The function invoked per iteration.
847
- * @returns {Array|Object} Returns `collection`.
848
- */
849
- var baseEach = createBaseEach(baseForOwn);
850
-
851
- const baseEach$1 = baseEach;
852
-
853
- /**
854
- * The base implementation of `_.map` without support for iteratee shorthands.
855
- *
856
- * @private
857
- * @param {Array|Object} collection The collection to iterate over.
858
- * @param {Function} iteratee The function invoked per iteration.
859
- * @returns {Array} Returns the new mapped array.
860
- */
861
- function baseMap(collection, iteratee) {
862
- var index = -1,
863
- result = isArrayLike(collection) ? Array(collection.length) : [];
864
-
865
- baseEach$1(collection, function(value, key, collection) {
866
- result[++index] = iteratee(value, key, collection);
867
- });
868
- return result;
869
- }
870
-
871
- /**
872
- * The base implementation of `_.sortBy` which uses `comparer` to define the
873
- * sort order of `array` and replaces criteria objects with their corresponding
874
- * values.
875
- *
876
- * @private
877
- * @param {Array} array The array to sort.
878
- * @param {Function} comparer The function to define sort order.
879
- * @returns {Array} Returns `array`.
880
- */
881
- function baseSortBy(array, comparer) {
882
- var length = array.length;
883
-
884
- array.sort(comparer);
885
- while (length--) {
886
- array[length] = array[length].value;
887
- }
888
- return array;
889
- }
890
-
891
- /**
892
- * Compares values to sort them in ascending order.
893
- *
894
- * @private
895
- * @param {*} value The value to compare.
896
- * @param {*} other The other value to compare.
897
- * @returns {number} Returns the sort order indicator for `value`.
898
- */
899
- function compareAscending(value, other) {
900
- if (value !== other) {
901
- var valIsDefined = value !== undefined,
902
- valIsNull = value === null,
903
- valIsReflexive = value === value,
904
- valIsSymbol = isSymbol(value);
905
-
906
- var othIsDefined = other !== undefined,
907
- othIsNull = other === null,
908
- othIsReflexive = other === other,
909
- othIsSymbol = isSymbol(other);
910
-
911
- if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
912
- (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
913
- (valIsNull && othIsDefined && othIsReflexive) ||
914
- (!valIsDefined && othIsReflexive) ||
915
- !valIsReflexive) {
916
- return 1;
917
- }
918
- if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
919
- (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
920
- (othIsNull && valIsDefined && valIsReflexive) ||
921
- (!othIsDefined && valIsReflexive) ||
922
- !othIsReflexive) {
923
- return -1;
924
- }
925
- }
926
- return 0;
927
- }
928
-
929
- /**
930
- * Used by `_.orderBy` to compare multiple properties of a value to another
931
- * and stable sort them.
932
- *
933
- * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
934
- * specify an order of "desc" for descending or "asc" for ascending sort order
935
- * of corresponding values.
936
- *
937
- * @private
938
- * @param {Object} object The object to compare.
939
- * @param {Object} other The other object to compare.
940
- * @param {boolean[]|string[]} orders The order to sort by for each property.
941
- * @returns {number} Returns the sort order indicator for `object`.
942
- */
943
- function compareMultiple(object, other, orders) {
944
- var index = -1,
945
- objCriteria = object.criteria,
946
- othCriteria = other.criteria,
947
- length = objCriteria.length,
948
- ordersLength = orders.length;
949
-
950
- while (++index < length) {
951
- var result = compareAscending(objCriteria[index], othCriteria[index]);
952
- if (result) {
953
- if (index >= ordersLength) {
954
- return result;
955
- }
956
- var order = orders[index];
957
- return result * (order == 'desc' ? -1 : 1);
958
- }
959
- }
960
- // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
961
- // that causes it, under certain circumstances, to provide the same value for
962
- // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
963
- // for more details.
964
- //
965
- // This also ensures a stable sort in V8 and other engines.
966
- // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
967
- return object.index - other.index;
968
- }
969
-
970
- /**
971
- * The base implementation of `_.orderBy` without param guards.
972
- *
973
- * @private
974
- * @param {Array|Object} collection The collection to iterate over.
975
- * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
976
- * @param {string[]} orders The sort orders of `iteratees`.
977
- * @returns {Array} Returns the new sorted array.
978
- */
979
- function baseOrderBy(collection, iteratees, orders) {
980
- if (iteratees.length) {
981
- iteratees = arrayMap(iteratees, function(iteratee) {
982
- if (isArray(iteratee)) {
983
- return function(value) {
984
- return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
985
- };
986
- }
987
- return iteratee;
988
- });
989
- } else {
990
- iteratees = [identity];
991
- }
992
-
993
- var index = -1;
994
- iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
995
-
996
- var result = baseMap(collection, function(value, key, collection) {
997
- var criteria = arrayMap(iteratees, function(iteratee) {
998
- return iteratee(value);
999
- });
1000
- return { 'criteria': criteria, 'index': ++index, 'value': value };
1001
- });
1002
-
1003
- return baseSortBy(result, function(object, other) {
1004
- return compareMultiple(object, other, orders);
1005
- });
1006
- }
1007
-
1008
- /**
1009
- * Creates an array of elements, sorted in ascending order by the results of
1010
- * running each element in a collection thru each iteratee. This method
1011
- * performs a stable sort, that is, it preserves the original sort order of
1012
- * equal elements. The iteratees are invoked with one argument: (value).
1013
- *
1014
- * @static
1015
- * @memberOf _
1016
- * @since 0.1.0
1017
- * @category Collection
1018
- * @param {Array|Object} collection The collection to iterate over.
1019
- * @param {...(Function|Function[])} [iteratees=[_.identity]]
1020
- * The iteratees to sort by.
1021
- * @returns {Array} Returns the new sorted array.
1022
- * @example
1023
- *
1024
- * var users = [
1025
- * { 'user': 'fred', 'age': 48 },
1026
- * { 'user': 'barney', 'age': 36 },
1027
- * { 'user': 'fred', 'age': 30 },
1028
- * { 'user': 'barney', 'age': 34 }
1029
- * ];
1030
- *
1031
- * _.sortBy(users, [function(o) { return o.user; }]);
1032
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
1033
- *
1034
- * _.sortBy(users, ['user', 'age']);
1035
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
1036
- */
1037
- var sortBy = baseRest(function(collection, iteratees) {
1038
- if (collection == null) {
1039
- return [];
1040
- }
1041
- var length = iteratees.length;
1042
- if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
1043
- iteratees = [];
1044
- } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
1045
- iteratees = [iteratees[0]];
1046
- }
1047
- return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
1048
- });
1049
-
1050
- const sortBy$1 = sortBy;
1051
-
1052
- /**
1053
- *
1054
- * @param languageCode
1055
- * @param sessionLanguage
1056
- */
1057
- function getLanguageTitle(languageCode, sessionLanguage) {
1058
- if (languageCode.length === 0 || sessionLanguage.length === 0) {
1059
- return '';
1060
- }
1061
- languageCode = languageCode === 'en_us' ? 'en-US' : languageCode;
1062
- sessionLanguage = sessionLanguage === 'en_us' ? 'en-US' : sessionLanguage;
1063
- const longLanguageNames = new Intl.DisplayNames(sessionLanguage, {
1064
- type: 'language',
1065
- });
1066
- const languageName = longLanguageNames.of(languageCode) || '';
1067
- const languageNameParts = languageName.split(' ');
1068
- languageNameParts[0] = capitalize(languageNameParts[0]);
1069
- return languageNameParts.join(' ');
1070
- }
1071
- /**
1072
- *
1073
- * @param http
1074
- */
1075
- async function getAllLanguages(http) {
1076
- const languages = await http.get('api/v1/admin/settings/languages');
1077
- const result = [];
1078
- if (languages === null || languages === void 0 ? void 0 : languages.active) {
1079
- result.push(...languages.active);
1080
- }
1081
- if (languages === null || languages === void 0 ? void 0 : languages.inactive) {
1082
- result.push(...languages.inactive);
1083
- }
1084
- return result;
1085
- }
1086
-
1087
- const LocalePicker = /*@__PURE__*/ proxyCustomElement(class LocalePicker extends HTMLElement {
1088
- constructor() {
1089
- super();
1090
- this.__registerHost();
1091
- this.__attachShadow();
1092
- this.change = createEvent(this, "change", 7);
1093
- /**
1094
- * @inheritdoc
1095
- */
1096
- this.context = { limetype: null, id: null };
1097
- this.handleChange = (event) => {
1098
- event.stopPropagation();
1099
- if (this.multipleChoice) {
1100
- this.change.emit(event.detail.map((option) => option.value));
1101
- }
1102
- else {
1103
- this.change.emit(event.detail.value);
1104
- }
1105
- };
1106
- }
1107
- async componentWillLoad() {
1108
- try {
1109
- this.http = this.platform.get(c.Http);
1110
- this.allLanguages = await getAllLanguages(this.http);
1111
- }
1112
- catch (error) {
1113
- // Throwing an error here will break the entire page, so we just log it instead
1114
- console.error(error);
1115
- }
1116
- }
1117
- getOptions() {
1118
- return this.allLanguages.map((value) => ({
1119
- value: value,
1120
- text: getLanguageTitle(value, value),
1121
- }));
1122
- }
1123
- render() {
1124
- const options = this.getOptions();
1125
- let selectedOptions;
1126
- if (Array.isArray(this.value)) {
1127
- const value = this.value;
1128
- selectedOptions = options.filter((option) => value.includes(option.value));
1129
- }
1130
- else {
1131
- const value = this.value;
1132
- selectedOptions = options.find((option) => option.value === value);
1133
- }
1134
- return (h("limel-select", { key: '146ecba3fc26664d49336cb4576887caee2b7f9f', value: selectedOptions, options: sortBy$1(options, 'text'), helperText: this.helperText, label: this.label, required: this.required, disabled: this.disabled, readonly: this.readonly, onChange: this.handleChange, multiple: this.multipleChoice }));
1135
- }
1136
- }, [1, "limebb-locale-picker", {
1137
- "platform": [16],
1138
- "context": [16],
1139
- "value": [1],
1140
- "required": [4],
1141
- "disabled": [4],
1142
- "label": [1],
1143
- "helperText": [1, "helper-text"],
1144
- "readonly": [4],
1145
- "multipleChoice": [4, "multiple-choice"],
1146
- "allLanguages": [32]
1147
- }]);
1148
- function defineCustomElement$1() {
1149
- if (typeof customElements === "undefined") {
1150
- return;
1151
- }
1152
- const components = ["limebb-locale-picker"];
1153
- components.forEach(tagName => { switch (tagName) {
1154
- case "limebb-locale-picker":
1155
- if (!customElements.get(tagName)) {
1156
- customElements.define(tagName, LocalePicker);
1157
- }
1158
- break;
1159
- } });
1160
- }
1161
-
1162
- const LimebbLocalePicker = LocalePicker;
1163
- const defineCustomElement = defineCustomElement$1;
1164
-
1165
- export { LimebbLocalePicker, defineCustomElement };
1
+ import{proxyCustomElement as r,HTMLElement as n,createEvent as t,h as e,transformTag as u}from"@stencil/core/internal/client";import{n as i}from"./index.esm.js";import{t as f,c as o,a,i as c,g as s,b as l,d as v}from"./get.js";import{i as d,a as m,S as h,k as p}from"./_Uint8Array.js";import{d as b,a as g,S as y}from"./_Map.js";import{i as j,c as x,h as _,f as k}from"./_getTag.js";import{b as w}from"./_baseIsEqual.js";import{i as A}from"./isSymbol.js";import{d as E}from"./_defineProperty.js";import{e as O}from"./_MapCache.js";function S(r){return r}var q=Date.now;function C(r){return function(){return r}}var M=function(r){var n=0,t=0;return function(){var e=q(),u=16-(e-t);if(t=e,u>0){if(++n>=800)return arguments[0]}else n=0;return r.apply(void 0,arguments)}}(E?function(r,n){return E(r,"toString",{configurable:!0,enumerable:!1,value:C(n),writable:!0})}:S),T=Math.max;function U(r,n,t){if(!b(t))return!1;var e=typeof n;return!!("number"==e?j(t)&&d(n,t.length):"string"==e&&n in t)&&O(t[n],r)}var I=y?y.isConcatSpreadable:void 0;function L(r){return g(r)||x(r)||!!(I&&r&&r[I])}var R=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function D(r){return R.test(r)}var P="\\ud800-\\udfff",W="["+P+"]",z="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",B="\\ud83c[\\udffb-\\udfff]",F="[^"+P+"]",G="(?:\\ud83c[\\udde6-\\uddff]){2}",H="[\\ud800-\\udbff][\\udc00-\\udfff]",J="(?:"+z+"|"+B+")?",K="[\\ufe0e\\ufe0f]?",N=K+J+"(?:\\u200d(?:"+[F,G,H].join("|")+")"+K+J+")*",Q=RegExp(B+"(?="+B+")|(?:"+[F+z+"?",z,G,H,W].join("|")+")"+N,"g");var V=function(r){var n=D(r=f(r))?function(r){return D(r)?function(r){return r.match(Q)||[]}(r):function(r){return r.split("")}(r)}(r):void 0,t=n?n[0]:r.charAt(0),e=n?function(r,n,t){var e=r.length;return t=void 0===t?e:t,!n&&t>=e?r:function(r,n,t){var e=-1,u=r.length;n<0&&(n=-n>u?0:u+n),(t=t>u?u:t)<0&&(t+=u),u=n>t?0:t-n>>>0,n>>>=0;for(var i=Array(u);++e<u;)i[e]=r[e+n];return i}(r,n,t)}(n,1).join(""):r.slice(1);return t.toUpperCase()+e};function X(r){return r==r&&!b(r)}function Y(r,n){return function(t){return null!=t&&t[r]===n&&(void 0!==n||r in Object(t))}}function Z(r,n){return null!=r&&n in Object(r)}function $(r){return"function"==typeof r?r:null==r?S:"object"==typeof r?g(r)?function(r,n){return c(r)&&X(n)?Y(a(r),n):function(t){var e=s(t,r);return void 0===e&&e===n?function(r,n){return null!=r&&function(r,n,t){for(var e=-1,u=(n=o(n,r)).length,i=!1;++e<u;){var f=a(n[e]);if(!(i=null!=r&&t(r,f)))break;r=r[f]}return i||++e!=u?i:!!(u=null==r?0:r.length)&&_(u)&&d(f,u)&&(g(r)||x(r))}(r,n,Z)}(t,r):w(n,e,3)}}(r[0],r[1]):function(r){var n=function(r){for(var n=p(r),t=n.length;t--;){var e=n[t],u=r[e];n[t]=[e,u,X(u)]}return n}(r);return 1==n.length&&n[0][2]?Y(n[0][0],n[0][1]):function(t){return t===r||function(r,n,t){var e=t.length,u=e;if(null==r)return!u;for(r=Object(r);e--;){var i=t[e];if(i[2]?i[1]!==r[i[0]]:!(i[0]in r))return!1}for(;++e<u;){var f=(i=t[e])[0],o=r[f],a=i[1];if(i[2]){if(void 0===o&&!(f in r))return!1}else{var c=new h;if(!w(a,o,3,void 0,c))return!1}}return!0}(t,0,n)}}(r):function(r){return c(r)?function(r){return function(n){return null==n?void 0:n[r]}}(a(r)):function(r){return function(n){return l(n,r)}}(r)}(r)}var rr=function(r,n){if(null==r)return r;if(!j(r))return function(r,n){return r&&function(r,n,t){for(var e=-1,u=Object(r),i=t(r),f=i.length;f--;){var o=i[++e];if(!1===n(u[o],o,u))break}return r}(r,n,p)}(r,n);for(var t=r.length,e=-1,u=Object(r);++e<t&&!1!==n(u[e],e,u););return r};function nr(r,n){if(r!==n){var t=void 0!==r,e=null===r,u=r==r,i=A(r),f=void 0!==n,o=null===n,a=n==n,c=A(n);if(!o&&!c&&!i&&r>n||i&&f&&a&&!o&&!c||e&&f&&a||!t&&a||!u)return 1;if(!e&&!i&&!c&&r<n||c&&t&&u&&!e&&!i||o&&t&&u||!f&&u||!a)return-1}return 0}function tr(r,n,t){n=n.length?v(n,(function(r){return g(r)?function(n){return l(n,1===r.length?r[0]:r)}:r})):[S];var e=-1;n=v(n,k($));var u=function(r,n){var t=-1,e=j(r)?Array(r.length):[];return rr(r,(function(r){e[++t]=n(r)})),e}(r,(function(r){return{criteria:v(n,(function(n){return n(r)})),index:++e,value:r}}));return function(r){var n=r.length;for(r.sort((function(r,n){return function(r,n,t){for(var e=-1,u=r.criteria,i=n.criteria,f=u.length,o=t.length;++e<f;){var a=nr(u[e],i[e]);if(a)return e>=o?a:a*("desc"==t[e]?-1:1)}return r.index-n.index}(r,n,t)}));n--;)r[n]=r[n].value;return r}(u)}var er=function(r){return M(function(r,n,t){return n=T(void 0===n?1:n,0),function(){for(var e=arguments,u=-1,i=T(e.length-n,0),f=Array(i);++u<i;)f[u]=e[n+u];u=-1;for(var o=Array(n+1);++u<n;)o[u]=e[u];return o[n]=t(f),function(r,n,t){switch(t.length){case 0:return r.call(n);case 1:return r.call(n,t[0]);case 2:return r.call(n,t[0],t[1]);case 3:return r.call(n,t[0],t[1],t[2])}return r.apply(n,t)}(r,this,o)}}(r,void 0,S),r+"")}((function(r,n){if(null==r)return[];var t=n.length;return t>1&&U(r,n[0],n[1])?n=[]:t>2&&U(n[0],n[1],n[2])&&(n=[n[0]]),tr(r,function(r,n,t,e,u){var i=-1,f=r.length;for(t||(t=L),u||(u=[]);++i<f;){var o=r[i];t(o)?m(u,o):u[u.length]=o}return u}(n),[])}));function ur(r,n){if(0===r.length||0===n.length)return"";r="en_us"===r?"en-US":r,n="en_us"===n?"en-US":n;const t=(new Intl.DisplayNames(n,{type:"language"}).of(r)||"").split(" ");return t[0]=function(r){return V(f(r).toLowerCase())}(t[0]),t.join(" ")}const ir=r(class extends n{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.change=t(this,"change",7),this.context={limetype:null,id:null},this.handleChange=r=>{r.stopPropagation(),this.change.emit(this.multipleChoice?r.detail.map((r=>r.value)):r.detail.value)}}async componentWillLoad(){try{this.http=this.platform.get(i.Http),this.allLanguages=await async function(r){const n=await r.get("api/v1/admin/settings/languages"),t=[];return(null==n?void 0:n.active)&&t.push(...n.active),(null==n?void 0:n.inactive)&&t.push(...n.inactive),t}(this.http)}catch(r){console.error(r)}}getOptions(){return this.allLanguages.map((r=>({value:r,text:ur(r,r)})))}render(){const r=this.getOptions();let n;if(Array.isArray(this.value)){const t=this.value;n=r.filter((r=>t.includes(r.value)))}else{const t=this.value;n=r.find((r=>r.value===t))}return e("limel-select",{key:"a9d5ae8494428f2d63f7f3603eb31a20d467c416",value:n,options:er(r,"text"),helperText:this.helperText,label:this.label,required:this.required,disabled:this.disabled,readonly:this.readonly,onChange:this.handleChange,multiple:this.multipleChoice})}},[1,"limebb-locale-picker",{platform:[16],context:[16],value:[1],required:[4],disabled:[4],label:[1],helperText:[1,"helper-text"],readonly:[4],multipleChoice:[4,"multiple-choice"],allLanguages:[32]}]),fr=ir,or=function(){"undefined"!=typeof customElements&&["limebb-locale-picker"].forEach((r=>{"limebb-locale-picker"===r&&(customElements.get(u(r))||customElements.define(u(r),ir))}))};export{fr as LimebbLocalePicker,or as defineCustomElement}