@flarehr/apollo-benefits 1.2.97 → 1.3.54109

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 (376) hide show
  1. package/README.md +19 -0
  2. package/dist/assets/@splitsoftware-7d799540.js +18 -0
  3. package/dist/assets/all_tab_color-548783b9.svg +21 -0
  4. package/dist/assets/all_tab_gray-a5051313.svg +6 -0
  5. package/dist/assets/check-57fe1dcb.svg +15 -0
  6. package/dist/assets/datadog-9aa4bf28.js +5 -0
  7. package/dist/assets/date-fns-c5d8fbc0.js +1 -0
  8. package/dist/assets/default_backdrop-fdd955b8.png +0 -0
  9. package/dist/assets/external_link-599a0aec.svg +3 -0
  10. package/dist/assets/external_link_white-55111b2e.svg +3 -0
  11. package/dist/assets/framer-motion-bb8d6b82.js +1 -0
  12. package/dist/assets/index-18cd5088.js +35 -0
  13. package/dist/assets/index-cfa25e28.css +1 -0
  14. package/dist/assets/index-e4f1c441.js +5 -0
  15. package/dist/assets/lodash-5d893f8c.js +1 -0
  16. package/dist/assets/logo-a34e9b4b.png +0 -0
  17. package/dist/assets/oidc-client-6f6e47c2.js +101 -0
  18. package/dist/assets/padlock-8c081120.svg +26 -0
  19. package/dist/assets/suitcase-6471ad05.svg +17 -0
  20. package/dist/assets/vendor-2d0139ca.js +788 -0
  21. package/dist/assets/warning-a7f1af23.svg +14 -0
  22. package/dist/assets/welcome_image_mobile-dbde6c80.png +0 -0
  23. package/dist/assets/welcome_image_v2-869c59e4.png +0 -0
  24. package/dist/assets/wellbeing_banner-6903d615.png +0 -0
  25. package/dist/assets/workplace_link_banner_mobile-6ebaa24b.png +0 -0
  26. package/dist/assets/workplace_link_banner_v2-c81ed849.png +0 -0
  27. package/dist/config.json +14 -0
  28. package/dist/favicon.ico +0 -0
  29. package/dist/icons/android-chrome-192x192.png +0 -0
  30. package/dist/icons/android-chrome-512x512.png +0 -0
  31. package/dist/icons/apple-touch-icon.png +0 -0
  32. package/dist/icons/favicon-16x16.png +0 -0
  33. package/dist/icons/favicon-32x32.png +0 -0
  34. package/dist/index.html +114 -0
  35. package/dist/manifest.json +21 -0
  36. package/dist/sw-esm.js +16 -0
  37. package/package.json +127 -69
  38. package/LICENSE +0 -21
  39. package/dist/lib/apollo-benefits/apollo-benefits.esm.js +0 -1
  40. package/dist/lib/apollo-benefits/assets/Hero_Background.png +0 -0
  41. package/dist/lib/apollo-benefits/assets/car-placeholder.svg +0 -5
  42. package/dist/lib/apollo-benefits/assets/check.svg +0 -13
  43. package/dist/lib/apollo-benefits/common-assets/icon-info.svg +0 -4
  44. package/dist/lib/apollo-benefits/index.esm.js +0 -0
  45. package/dist/lib/apollo-benefits/p-054d1471.js +0 -1
  46. package/dist/lib/apollo-benefits/p-066d8e7b.js +0 -15
  47. package/dist/lib/apollo-benefits/p-08376428.entry.js +0 -1
  48. package/dist/lib/apollo-benefits/p-1d7ab1b9.entry.js +0 -1
  49. package/dist/lib/apollo-benefits/p-25a89275.entry.js +0 -1
  50. package/dist/lib/apollo-benefits/p-26d363c9.entry.js +0 -1
  51. package/dist/lib/apollo-benefits/p-337ce3df.js +0 -1
  52. package/dist/lib/apollo-benefits/p-3dc9a379.js +0 -1
  53. package/dist/lib/apollo-benefits/p-4376366b.js +0 -46
  54. package/dist/lib/apollo-benefits/p-4e2d34f4.entry.js +0 -1
  55. package/dist/lib/apollo-benefits/p-50bbf713.js +0 -1
  56. package/dist/lib/apollo-benefits/p-53c5e861.entry.js +0 -1
  57. package/dist/lib/apollo-benefits/p-556fdb43.js +0 -1
  58. package/dist/lib/apollo-benefits/p-57d4702d.entry.js +0 -1
  59. package/dist/lib/apollo-benefits/p-58ee670f.js +0 -1
  60. package/dist/lib/apollo-benefits/p-6a54654f.entry.js +0 -11
  61. package/dist/lib/apollo-benefits/p-6bd33850.js +0 -1
  62. package/dist/lib/apollo-benefits/p-79c3b633.entry.js +0 -1
  63. package/dist/lib/apollo-benefits/p-7f3a2f3b.entry.js +0 -1
  64. package/dist/lib/apollo-benefits/p-82d42c2b.js +0 -1
  65. package/dist/lib/apollo-benefits/p-9b3e978e.js +0 -1
  66. package/dist/lib/apollo-benefits/p-a1dd0cba.entry.js +0 -1
  67. package/dist/lib/apollo-benefits/p-aa379cfe.entry.js +0 -1
  68. package/dist/lib/apollo-benefits/p-aaf0e527.entry.js +0 -1
  69. package/dist/lib/apollo-benefits/p-b0b9425b.js +0 -1
  70. package/dist/lib/apollo-benefits/p-d0ef83f8.entry.js +0 -1
  71. package/dist/lib/apollo-benefits/p-db4a65f0.entry.js +0 -1
  72. package/dist/lib/apollo-benefits/p-dc67f942.entry.js +0 -1
  73. package/dist/lib/apollo-benefits/p-e1fd79bb.entry.js +0 -1
  74. package/dist/lib/apollo-benefits/p-ea120e31.js +0 -1
  75. package/dist/lib/apollo-benefits/p-ef5f33ca.js +0 -1
  76. package/dist/lib/apollo-benefits/p-f5254031.js +0 -1
  77. package/dist/lib/apollo-benefits/p-f63d9d89.js +0 -1
  78. package/dist/lib/apollo-benefits/p-fcfa5255.entry.js +0 -1
  79. package/dist/lib/cjs/Option-98dab0b8.js +0 -1988
  80. package/dist/lib/cjs/active-router-90429847.js +0 -75
  81. package/dist/lib/cjs/ap-ben-asset_5.cjs.entry.js +0 -1856
  82. package/dist/lib/cjs/ap-ben-benefit-card.cjs.entry.js +0 -45
  83. package/dist/lib/cjs/ap-ben-benefit-list-item.cjs.entry.js +0 -56
  84. package/dist/lib/cjs/ap-ben-benefit-url_27.cjs.entry.js +0 -48767
  85. package/dist/lib/cjs/ap-ben-benefits-list_3.cjs.entry.js +0 -55
  86. package/dist/lib/cjs/ap-ben-benefits-page.cjs.entry.js +0 -55
  87. package/dist/lib/cjs/ap-ben-choose-vehicle-section_4.cjs.entry.js +0 -2779
  88. package/dist/lib/cjs/ap-ben-notifications-section.cjs.entry.js +0 -243
  89. package/dist/lib/cjs/ap-ben-oidc-callback-page.cjs.entry.js +0 -40
  90. package/dist/lib/cjs/apollo-benefits.cjs.js +0 -25
  91. package/dist/lib/cjs/app-globals-e04ab04b.js +0 -12
  92. package/dist/lib/cjs/authentication.service-11c30071.js +0 -237
  93. package/dist/lib/cjs/benefits.api-b46ee2ea.js +0 -35
  94. package/dist/lib/cjs/cars-calculator-app.cjs.entry.js +0 -60
  95. package/dist/lib/cjs/cars-calculator.service-a8beab79.js +0 -166
  96. package/dist/lib/cjs/context-consumer.cjs.entry.js +0 -29
  97. package/dist/lib/cjs/datorama-akita-792b4d1d.js +0 -2553
  98. package/dist/lib/cjs/delay-e91dba76.js +0 -206
  99. package/dist/lib/cjs/event-tracking.service-6f723d9c.js +0 -155
  100. package/dist/lib/cjs/event-tracking.service-d6f9a51c.js +0 -259
  101. package/dist/lib/cjs/filter-c38164e6.js +0 -378
  102. package/dist/lib/cjs/fl-dropdown-async.cjs.entry.js +0 -422
  103. package/dist/lib/cjs/fl-dropdown.cjs.entry.js +0 -232
  104. package/dist/lib/cjs/fl-style-guide.cjs.entry.js +0 -91
  105. package/dist/lib/cjs/index-4f00f593.js +0 -994
  106. package/dist/lib/cjs/index-6e643fec.js +0 -1734
  107. package/dist/lib/cjs/index-889ce6c6.js +0 -27
  108. package/dist/lib/cjs/index.cjs.js +0 -2
  109. package/dist/lib/cjs/loader.cjs.js +0 -27
  110. package/dist/lib/cjs/scheduleArray-0ba3d6f8.js +0 -753
  111. package/dist/lib/cjs/stencil-async-content.cjs.entry.js +0 -32
  112. package/dist/lib/cjs/stencil-route-title.cjs.entry.js +0 -32
  113. package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +0 -59
  114. package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +0 -32
  115. package/dist/lib/cjs/view.service-ec43dea6.js +0 -21
  116. package/dist/lib/collection/assets/image/complete.svg +0 -122
  117. package/dist/lib/collection/collection-manifest.json +0 -81
  118. package/dist/lib/collection/components/benefits-app/apis/api-client.js +0 -16
  119. package/dist/lib/collection/components/benefits-app/apis/benefits-api/benefits-api.dto.js +0 -16
  120. package/dist/lib/collection/components/benefits-app/apis/benefits-api/benefits.api.js +0 -30
  121. package/dist/lib/collection/components/benefits-app/apis/event-tracking-api/event-tracking-api.dto.js +0 -1
  122. package/dist/lib/collection/components/benefits-app/apis/event-tracking-api/event-tracking-api.js +0 -7
  123. package/dist/lib/collection/components/benefits-app/apis/user-api/user-api.dto.js +0 -8
  124. package/dist/lib/collection/components/benefits-app/apis/user-api/user.api.js +0 -16
  125. package/dist/lib/collection/components/benefits-app/benefits-app.css +0 -399
  126. package/dist/lib/collection/components/benefits-app/benefits-app.js +0 -216
  127. package/dist/lib/collection/components/benefits-app/pages/benefits-page/benefits-list/benefit-list-item.css +0 -23
  128. package/dist/lib/collection/components/benefits-app/pages/benefits-page/benefits-list/benefits-list-item.js +0 -80
  129. package/dist/lib/collection/components/benefits-app/pages/benefits-page/benefits-list/benefits-list.js +0 -32
  130. package/dist/lib/collection/components/benefits-app/pages/benefits-page/benefits-page.js +0 -47
  131. package/dist/lib/collection/components/benefits-app/pages/benefits-page/hero-banner/assets/Hero_Background.png +0 -0
  132. package/dist/lib/collection/components/benefits-app/pages/benefits-page/hero-banner/hero-banner.css +0 -8
  133. package/dist/lib/collection/components/benefits-app/pages/benefits-page/hero-banner/hero-banner.js +0 -53
  134. package/dist/lib/collection/components/benefits-app/pages/benefits-page/promoted-benefits/benefit-card.css +0 -3
  135. package/dist/lib/collection/components/benefits-app/pages/benefits-page/promoted-benefits/benefit-card.js +0 -62
  136. package/dist/lib/collection/components/benefits-app/pages/benefits-page/promoted-benefits/promoted-benefits.js +0 -33
  137. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/api/manage-benefits-api.dto.js +0 -36
  138. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/api/manage-benefits.api.js +0 -23
  139. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/confirm-dialog.js +0 -158
  140. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/benefit-url.css +0 -8
  141. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/benefit-url.js +0 -126
  142. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/edit-benefit-form.js +0 -138
  143. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-benefit-icon.css +0 -24
  144. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-benefit-icon.js +0 -102
  145. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-file.css +0 -18
  146. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-file.js +0 -120
  147. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-page.js +0 -154
  148. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit.query.js +0 -18
  149. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit.service.js +0 -155
  150. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/empty-benefits.js +0 -36
  151. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/manage-benefits-header-row.js +0 -13
  152. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/manage-benefits-page.css +0 -3
  153. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/manage-benefits-page.js +0 -88
  154. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/manage-benefits-page.routes.js +0 -24
  155. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/manage-benefits.service.js +0 -37
  156. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/managed-benefit-item/managed-benefit-item.css +0 -10
  157. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/managed-benefit-item/managed-benefit-item.js +0 -89
  158. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/store/manage-benefits.query.js +0 -11
  159. package/dist/lib/collection/components/benefits-app/pages/manage-benefits-page/store/manage-benefits.store.js +0 -51
  160. package/dist/lib/collection/components/benefits-app/pages/role-management-page/api/role-management.api.js +0 -21
  161. package/dist/lib/collection/components/benefits-app/pages/role-management-page/role-editors-section/role-editors-section.js +0 -104
  162. package/dist/lib/collection/components/benefits-app/pages/role-management-page/role-management-page.js +0 -50
  163. package/dist/lib/collection/components/benefits-app/pages/role-management-page/role-management.service.js +0 -44
  164. package/dist/lib/collection/components/benefits-app/pages/role-management-page/role-owner-section/role-owner-section.js +0 -40
  165. package/dist/lib/collection/components/benefits-app/pages/role-management-page/store/role-management.query.js +0 -13
  166. package/dist/lib/collection/components/benefits-app/pages/role-management-page/store/role-management.store.js +0 -42
  167. package/dist/lib/collection/components/benefits-app/services/benefits-app.service.js +0 -36
  168. package/dist/lib/collection/components/benefits-app/services/benefits.service.js +0 -11
  169. package/dist/lib/collection/components/benefits-app/services/event-tracking.service.js +0 -40
  170. package/dist/lib/collection/components/benefits-app/services/navigation.service.js +0 -34
  171. package/dist/lib/collection/components/benefits-app/store/benefits-app.query.js +0 -13
  172. package/dist/lib/collection/components/benefits-app/store/benefits-app.store.js +0 -24
  173. package/dist/lib/collection/components/benefits-app-host/benefits-app-host.js +0 -48
  174. package/dist/lib/collection/components/benefits-app-host/loading-page.js +0 -9
  175. package/dist/lib/collection/components/benefits-app-host/oidc-callback-page/oidc-callback-page.js +0 -65
  176. package/dist/lib/collection/components/benefits-app-host/oidc-callback-page/oidc-callback-page.routes.js +0 -11
  177. package/dist/lib/collection/components/benefits-app-host/services/app-configuration.query.js +0 -18
  178. package/dist/lib/collection/components/benefits-app-host/services/app-configuration.service.js +0 -23
  179. package/dist/lib/collection/components/benefits-app-host/services/authentication.query.js +0 -21
  180. package/dist/lib/collection/components/benefits-app-host/services/authentication.service.js +0 -96
  181. package/dist/lib/collection/components/benefits-app-host/services/session.store.js +0 -33
  182. package/dist/lib/collection/components/cars-calculator-app/api/api-client.js +0 -5
  183. package/dist/lib/collection/components/cars-calculator-app/api/cars-calculator-events.model.js +0 -1
  184. package/dist/lib/collection/components/cars-calculator-app/api/cars-calculator.api.js +0 -45
  185. package/dist/lib/collection/components/cars-calculator-app/api/event-tracking.api.js +0 -7
  186. package/dist/lib/collection/components/cars-calculator-app/cars-calculator-app.css +0 -22
  187. package/dist/lib/collection/components/cars-calculator-app/cars-calculator-app.js +0 -97
  188. package/dist/lib/collection/components/cars-calculator-app/notifications-section/notifications-section.js +0 -25
  189. package/dist/lib/collection/components/cars-calculator-app/pages/asset.component.js +0 -27
  190. package/dist/lib/collection/components/cars-calculator-app/pages/assets/car-placeholder.svg +0 -5
  191. package/dist/lib/collection/components/cars-calculator-app/pages/assets/check.svg +0 -13
  192. package/dist/lib/collection/components/cars-calculator-app/pages/choose-vehicle-section.component.js +0 -234
  193. package/dist/lib/collection/components/cars-calculator-app/pages/common-assets/icon-info.svg +0 -4
  194. package/dist/lib/collection/components/cars-calculator-app/pages/complete-section.component.js +0 -38
  195. package/dist/lib/collection/components/cars-calculator-app/pages/cost-breakdown-section.component.js +0 -45
  196. package/dist/lib/collection/components/cars-calculator-app/pages/model-variants-section.component.css +0 -34
  197. package/dist/lib/collection/components/cars-calculator-app/pages/model-variants-section.component.js +0 -93
  198. package/dist/lib/collection/components/cars-calculator-app/pages/personal-info-section.component.js +0 -71
  199. package/dist/lib/collection/components/cars-calculator-app/pages/quote-result-section.component.js +0 -117
  200. package/dist/lib/collection/components/cars-calculator-app/pages/submit-quote-section.component.js +0 -87
  201. package/dist/lib/collection/components/cars-calculator-app/services/app-configuration.service.js +0 -13
  202. package/dist/lib/collection/components/cars-calculator-app/services/cars-calculator.service.js +0 -117
  203. package/dist/lib/collection/components/cars-calculator-app/services/event-tracking.service.js +0 -37
  204. package/dist/lib/collection/components/cars-calculator-app/services/notifications.service.js +0 -37
  205. package/dist/lib/collection/components/cars-calculator-app/services/notifications.store.js +0 -3
  206. package/dist/lib/collection/components/cars-calculator-app/services/session.query.js +0 -38
  207. package/dist/lib/collection/components/cars-calculator-app/services/session.store.js +0 -80
  208. package/dist/lib/collection/components/cars-calculator-app/services/view.service.js +0 -16
  209. package/dist/lib/collection/components/shared/file-icon/file-icon.css +0 -15
  210. package/dist/lib/collection/components/shared/file-icon/file-icon.js +0 -84
  211. package/dist/lib/collection/components/shared/icon.js +0 -77
  212. package/dist/lib/collection/components/shared/icons-library.js +0 -11
  213. package/dist/lib/collection/components/shared/modal-section.js +0 -138
  214. package/dist/lib/collection/components/shared/tooltip.css +0 -3
  215. package/dist/lib/collection/components/shared/tooltip.js +0 -115
  216. package/dist/lib/collection/components/shared/ui-container/ui-container.css +0 -39
  217. package/dist/lib/collection/components/shared/ui-container/ui-container.js +0 -27
  218. package/dist/lib/collection/global/config.js +0 -2
  219. package/dist/lib/collection/global/main.dev.js +0 -31
  220. package/dist/lib/collection/global/main.js +0 -5
  221. package/dist/lib/collection/index.js +0 -2
  222. package/dist/lib/collection/utils/config.js +0 -2
  223. package/dist/lib/collection/utils/index.js +0 -28
  224. package/dist/lib/collection/utils/lazy.js +0 -29
  225. package/dist/lib/collection/utils/promise.js +0 -7
  226. package/dist/lib/esm/Option-53ef163a.js +0 -1982
  227. package/dist/lib/esm/active-router-134fe07f.js +0 -73
  228. package/dist/lib/esm/ap-ben-asset_5.entry.js +0 -1848
  229. package/dist/lib/esm/ap-ben-benefit-card.entry.js +0 -41
  230. package/dist/lib/esm/ap-ben-benefit-list-item.entry.js +0 -52
  231. package/dist/lib/esm/ap-ben-benefit-url_27.entry.js +0 -48737
  232. package/dist/lib/esm/ap-ben-benefits-list_3.entry.js +0 -49
  233. package/dist/lib/esm/ap-ben-benefits-page.entry.js +0 -51
  234. package/dist/lib/esm/ap-ben-choose-vehicle-section_4.entry.js +0 -2772
  235. package/dist/lib/esm/ap-ben-notifications-section.entry.js +0 -239
  236. package/dist/lib/esm/ap-ben-oidc-callback-page.entry.js +0 -36
  237. package/dist/lib/esm/apollo-benefits.js +0 -23
  238. package/dist/lib/esm/app-globals-ff43b669.js +0 -10
  239. package/dist/lib/esm/authentication.service-4dbff8a5.js +0 -232
  240. package/dist/lib/esm/benefits.api-5a0c5fa7.js +0 -33
  241. package/dist/lib/esm/cars-calculator-app.entry.js +0 -56
  242. package/dist/lib/esm/cars-calculator.service-1278f563.js +0 -163
  243. package/dist/lib/esm/context-consumer.entry.js +0 -25
  244. package/dist/lib/esm/datorama-akita-e42d9911.js +0 -2547
  245. package/dist/lib/esm/delay-d08c267f.js +0 -200
  246. package/dist/lib/esm/event-tracking.service-27d79066.js +0 -253
  247. package/dist/lib/esm/event-tracking.service-429d997c.js +0 -146
  248. package/dist/lib/esm/filter-aeb65cac.js +0 -370
  249. package/dist/lib/esm/fl-dropdown-async.entry.js +0 -418
  250. package/dist/lib/esm/fl-dropdown.entry.js +0 -228
  251. package/dist/lib/esm/fl-style-guide.entry.js +0 -87
  252. package/dist/lib/esm/index-1351f893.js +0 -979
  253. package/dist/lib/esm/index-8676bf1e.js +0 -22
  254. package/dist/lib/esm/index-d4b319a7.js +0 -1702
  255. package/dist/lib/esm/index.js +0 -1
  256. package/dist/lib/esm/loader.js +0 -23
  257. package/dist/lib/esm/polyfills/core-js.js +0 -11
  258. package/dist/lib/esm/polyfills/css-shim.js +0 -1
  259. package/dist/lib/esm/polyfills/dom.js +0 -79
  260. package/dist/lib/esm/polyfills/es5-html-element.js +0 -1
  261. package/dist/lib/esm/polyfills/index.js +0 -34
  262. package/dist/lib/esm/polyfills/system.js +0 -6
  263. package/dist/lib/esm/scheduleArray-b9669898.js +0 -738
  264. package/dist/lib/esm/stencil-async-content.entry.js +0 -28
  265. package/dist/lib/esm/stencil-route-title.entry.js +0 -28
  266. package/dist/lib/esm/stencil-router-prompt.entry.js +0 -55
  267. package/dist/lib/esm/stencil-router-redirect.entry.js +0 -28
  268. package/dist/lib/esm/view.service-6adbec31.js +0 -19
  269. package/dist/lib/index.cjs.js +0 -1
  270. package/dist/lib/index.js +0 -1
  271. package/dist/lib/loader/cdn.js +0 -3
  272. package/dist/lib/loader/index.cjs.js +0 -3
  273. package/dist/lib/loader/index.d.ts +0 -13
  274. package/dist/lib/loader/index.es2017.js +0 -3
  275. package/dist/lib/loader/index.js +0 -4
  276. package/dist/lib/loader/package.json +0 -10
  277. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +0 -118
  278. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +0 -9
  279. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +0 -9
  280. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +0 -141
  281. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +0 -5
  282. package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/style-guide/style-guide.css +0 -0
  283. package/dist/lib/node_modules/@stencil/router/dist/collection/components/route/route.css +0 -3
  284. package/dist/lib/types/components/benefits-app/apis/api-client.d.ts +0 -7
  285. package/dist/lib/types/components/benefits-app/apis/benefits-api/benefits-api.dto.d.ts +0 -44
  286. package/dist/lib/types/components/benefits-app/apis/benefits-api/benefits.api.d.ts +0 -9
  287. package/dist/lib/types/components/benefits-app/apis/event-tracking-api/event-tracking-api.d.ts +0 -6
  288. package/dist/lib/types/components/benefits-app/apis/event-tracking-api/event-tracking-api.dto.d.ts +0 -18
  289. package/dist/lib/types/components/benefits-app/apis/user-api/user-api.dto.d.ts +0 -30
  290. package/dist/lib/types/components/benefits-app/apis/user-api/user.api.d.ts +0 -8
  291. package/dist/lib/types/components/benefits-app/benefits-app.d.ts +0 -22
  292. package/dist/lib/types/components/benefits-app/pages/benefits-page/benefits-list/benefits-list-item.d.ts +0 -10
  293. package/dist/lib/types/components/benefits-app/pages/benefits-page/benefits-list/benefits-list.d.ts +0 -5
  294. package/dist/lib/types/components/benefits-app/pages/benefits-page/benefits-page.d.ts +0 -10
  295. package/dist/lib/types/components/benefits-app/pages/benefits-page/hero-banner/hero-banner.d.ts +0 -5
  296. package/dist/lib/types/components/benefits-app/pages/benefits-page/promoted-benefits/benefit-card.d.ts +0 -8
  297. package/dist/lib/types/components/benefits-app/pages/benefits-page/promoted-benefits/promoted-benefits.d.ts +0 -5
  298. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/api/manage-benefits-api.dto.d.ts +0 -39
  299. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/api/manage-benefits.api.d.ts +0 -9
  300. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/confirm-dialog.d.ts +0 -16
  301. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/benefit-url.d.ts +0 -21
  302. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/edit-benefit-form.d.ts +0 -12
  303. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-benefit-icon.d.ts +0 -16
  304. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-form/upload-file.d.ts +0 -17
  305. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit-page.d.ts +0 -24
  306. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit.query.d.ts +0 -16
  307. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/edit-benefit-page/edit-benefit.service.d.ts +0 -20
  308. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/empty-benefits.d.ts +0 -5
  309. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/manage-benefits-header-row.d.ts +0 -3
  310. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/manage-benefits-page.d.ts +0 -16
  311. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/manage-benefits-page.routes.d.ts +0 -6
  312. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/manage-benefits.service.d.ts +0 -8
  313. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/managed-benefit-item/managed-benefit-item.d.ts +0 -11
  314. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/store/manage-benefits.query.d.ts +0 -10
  315. package/dist/lib/types/components/benefits-app/pages/manage-benefits-page/store/manage-benefits.store.d.ts +0 -51
  316. package/dist/lib/types/components/benefits-app/pages/role-management-page/api/role-management.api.d.ts +0 -7
  317. package/dist/lib/types/components/benefits-app/pages/role-management-page/role-editors-section/role-editors-section.d.ts +0 -15
  318. package/dist/lib/types/components/benefits-app/pages/role-management-page/role-management-page.d.ts +0 -9
  319. package/dist/lib/types/components/benefits-app/pages/role-management-page/role-management.service.d.ts +0 -11
  320. package/dist/lib/types/components/benefits-app/pages/role-management-page/role-owner-section/role-owner-section.d.ts +0 -5
  321. package/dist/lib/types/components/benefits-app/pages/role-management-page/store/role-management.query.d.ts +0 -12
  322. package/dist/lib/types/components/benefits-app/pages/role-management-page/store/role-management.store.d.ts +0 -17
  323. package/dist/lib/types/components/benefits-app/services/benefits-app.service.d.ts +0 -13
  324. package/dist/lib/types/components/benefits-app/services/benefits.service.d.ts +0 -8
  325. package/dist/lib/types/components/benefits-app/services/event-tracking.service.d.ts +0 -11
  326. package/dist/lib/types/components/benefits-app/services/navigation.service.d.ts +0 -14
  327. package/dist/lib/types/components/benefits-app/store/benefits-app.query.d.ts +0 -12
  328. package/dist/lib/types/components/benefits-app/store/benefits-app.store.d.ts +0 -31
  329. package/dist/lib/types/components/benefits-app-host/benefits-app-host.d.ts +0 -9
  330. package/dist/lib/types/components/benefits-app-host/loading-page.d.ts +0 -3
  331. package/dist/lib/types/components/benefits-app-host/oidc-callback-page/oidc-callback-page.d.ts +0 -8
  332. package/dist/lib/types/components/benefits-app-host/oidc-callback-page/oidc-callback-page.routes.d.ts +0 -1
  333. package/dist/lib/types/components/benefits-app-host/services/app-configuration.query.d.ts +0 -11
  334. package/dist/lib/types/components/benefits-app-host/services/app-configuration.service.d.ts +0 -9
  335. package/dist/lib/types/components/benefits-app-host/services/authentication.query.d.ts +0 -13
  336. package/dist/lib/types/components/benefits-app-host/services/authentication.service.d.ts +0 -25
  337. package/dist/lib/types/components/benefits-app-host/services/session.store.d.ts +0 -25
  338. package/dist/lib/types/components/cars-calculator-app/api/api-client.d.ts +0 -2
  339. package/dist/lib/types/components/cars-calculator-app/api/cars-calculator-events.model.d.ts +0 -39
  340. package/dist/lib/types/components/cars-calculator-app/api/cars-calculator.api.d.ts +0 -100
  341. package/dist/lib/types/components/cars-calculator-app/api/event-tracking.api.d.ts +0 -6
  342. package/dist/lib/types/components/cars-calculator-app/cars-calculator-app.d.ts +0 -18
  343. package/dist/lib/types/components/cars-calculator-app/notifications-section/notifications-section.d.ts +0 -5
  344. package/dist/lib/types/components/cars-calculator-app/pages/asset.component.d.ts +0 -4
  345. package/dist/lib/types/components/cars-calculator-app/pages/choose-vehicle-section.component.d.ts +0 -23
  346. package/dist/lib/types/components/cars-calculator-app/pages/complete-section.component.d.ts +0 -5
  347. package/dist/lib/types/components/cars-calculator-app/pages/cost-breakdown-section.component.d.ts +0 -6
  348. package/dist/lib/types/components/cars-calculator-app/pages/model-variants-section.component.d.ts +0 -12
  349. package/dist/lib/types/components/cars-calculator-app/pages/personal-info-section.component.d.ts +0 -10
  350. package/dist/lib/types/components/cars-calculator-app/pages/quote-result-section.component.d.ts +0 -16
  351. package/dist/lib/types/components/cars-calculator-app/pages/submit-quote-section.component.d.ts +0 -12
  352. package/dist/lib/types/components/cars-calculator-app/services/app-configuration.service.d.ts +0 -7
  353. package/dist/lib/types/components/cars-calculator-app/services/cars-calculator.service.d.ts +0 -11
  354. package/dist/lib/types/components/cars-calculator-app/services/event-tracking.service.d.ts +0 -13
  355. package/dist/lib/types/components/cars-calculator-app/services/notifications.service.d.ts +0 -15
  356. package/dist/lib/types/components/cars-calculator-app/services/notifications.store.d.ts +0 -14
  357. package/dist/lib/types/components/cars-calculator-app/services/session.query.d.ts +0 -26
  358. package/dist/lib/types/components/cars-calculator-app/services/session.store.d.ts +0 -78
  359. package/dist/lib/types/components/cars-calculator-app/services/view.service.d.ts +0 -8
  360. package/dist/lib/types/components/shared/file-icon/file-icon.d.ts +0 -11
  361. package/dist/lib/types/components/shared/icon.d.ts +0 -7
  362. package/dist/lib/types/components/shared/icons-library.d.ts +0 -1
  363. package/dist/lib/types/components/shared/modal-section.d.ts +0 -16
  364. package/dist/lib/types/components/shared/tooltip.d.ts +0 -13
  365. package/dist/lib/types/components/shared/ui-container/ui-container.d.ts +0 -5
  366. package/dist/lib/types/components.d.ts +0 -606
  367. package/dist/lib/types/global/config.d.ts +0 -2
  368. package/dist/lib/types/global/main.d.ts +0 -1
  369. package/dist/lib/types/global/main.dev.d.ts +0 -1
  370. package/dist/lib/types/index.d.ts +0 -2
  371. package/dist/lib/types/stencil-public-runtime.d.ts +0 -1555
  372. package/dist/lib/types/utils/config.d.ts +0 -2
  373. package/dist/lib/types/utils/index.d.ts +0 -10
  374. package/dist/lib/types/utils/lazy.d.ts +0 -12
  375. package/dist/lib/types/utils/promise.d.ts +0 -1
  376. package/readme.md +0 -1
@@ -1,418 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-d4b319a7.js';
2
- import { d as async, S as Subscriber, f as isFunction, e as isArray, O as Observable } from './scheduleArray-b9669898.js';
3
- import { f as from, m as map, S as SimpleOuterSubscriber, a as SimpleInnerSubscriber, i as innerSubscribe, d as distinctUntilChanged, b as filter } from './filter-aeb65cac.js';
4
-
5
- function mergeMap(project, resultSelector, concurrent = Number.POSITIVE_INFINITY) {
6
- if (typeof resultSelector === 'function') {
7
- return (source) => source.pipe(mergeMap((a, i) => from(project(a, i)).pipe(map((b, ii) => resultSelector(a, b, i, ii))), concurrent));
8
- }
9
- else if (typeof resultSelector === 'number') {
10
- concurrent = resultSelector;
11
- }
12
- return (source) => source.lift(new MergeMapOperator(project, concurrent));
13
- }
14
- class MergeMapOperator {
15
- constructor(project, concurrent = Number.POSITIVE_INFINITY) {
16
- this.project = project;
17
- this.concurrent = concurrent;
18
- }
19
- call(observer, source) {
20
- return source.subscribe(new MergeMapSubscriber(observer, this.project, this.concurrent));
21
- }
22
- }
23
- class MergeMapSubscriber extends SimpleOuterSubscriber {
24
- constructor(destination, project, concurrent = Number.POSITIVE_INFINITY) {
25
- super(destination);
26
- this.project = project;
27
- this.concurrent = concurrent;
28
- this.hasCompleted = false;
29
- this.buffer = [];
30
- this.active = 0;
31
- this.index = 0;
32
- }
33
- _next(value) {
34
- if (this.active < this.concurrent) {
35
- this._tryNext(value);
36
- }
37
- else {
38
- this.buffer.push(value);
39
- }
40
- }
41
- _tryNext(value) {
42
- let result;
43
- const index = this.index++;
44
- try {
45
- result = this.project(value, index);
46
- }
47
- catch (err) {
48
- this.destination.error(err);
49
- return;
50
- }
51
- this.active++;
52
- this._innerSub(result);
53
- }
54
- _innerSub(ish) {
55
- const innerSubscriber = new SimpleInnerSubscriber(this);
56
- const destination = this.destination;
57
- destination.add(innerSubscriber);
58
- const innerSubscription = innerSubscribe(ish, innerSubscriber);
59
- if (innerSubscription !== innerSubscriber) {
60
- destination.add(innerSubscription);
61
- }
62
- }
63
- _complete() {
64
- this.hasCompleted = true;
65
- if (this.active === 0 && this.buffer.length === 0) {
66
- this.destination.complete();
67
- }
68
- this.unsubscribe();
69
- }
70
- notifyNext(innerValue) {
71
- this.destination.next(innerValue);
72
- }
73
- notifyComplete() {
74
- const buffer = this.buffer;
75
- this.active--;
76
- if (buffer.length > 0) {
77
- this._next(buffer.shift());
78
- }
79
- else if (this.active === 0 && this.hasCompleted) {
80
- this.destination.complete();
81
- }
82
- }
83
- }
84
-
85
- function debounceTime(dueTime, scheduler = async) {
86
- return (source) => source.lift(new DebounceTimeOperator(dueTime, scheduler));
87
- }
88
- class DebounceTimeOperator {
89
- constructor(dueTime, scheduler) {
90
- this.dueTime = dueTime;
91
- this.scheduler = scheduler;
92
- }
93
- call(subscriber, source) {
94
- return source.subscribe(new DebounceTimeSubscriber(subscriber, this.dueTime, this.scheduler));
95
- }
96
- }
97
- class DebounceTimeSubscriber extends Subscriber {
98
- constructor(destination, dueTime, scheduler) {
99
- super(destination);
100
- this.dueTime = dueTime;
101
- this.scheduler = scheduler;
102
- this.debouncedSubscription = null;
103
- this.lastValue = null;
104
- this.hasValue = false;
105
- }
106
- _next(value) {
107
- this.clearDebounce();
108
- this.lastValue = value;
109
- this.hasValue = true;
110
- this.add(this.debouncedSubscription = this.scheduler.schedule(dispatchNext, this.dueTime, this));
111
- }
112
- _complete() {
113
- this.debouncedNext();
114
- this.destination.complete();
115
- }
116
- debouncedNext() {
117
- this.clearDebounce();
118
- if (this.hasValue) {
119
- const { lastValue } = this;
120
- this.lastValue = null;
121
- this.hasValue = false;
122
- this.destination.next(lastValue);
123
- }
124
- }
125
- clearDebounce() {
126
- const debouncedSubscription = this.debouncedSubscription;
127
- if (debouncedSubscription !== null) {
128
- this.remove(debouncedSubscription);
129
- debouncedSubscription.unsubscribe();
130
- this.debouncedSubscription = null;
131
- }
132
- }
133
- }
134
- function dispatchNext(subscriber) {
135
- subscriber.debouncedNext();
136
- }
137
-
138
- function noop() { }
139
-
140
- function tap(nextOrObserver, error, complete) {
141
- return function tapOperatorFunction(source) {
142
- return source.lift(new DoOperator(nextOrObserver, error, complete));
143
- };
144
- }
145
- class DoOperator {
146
- constructor(nextOrObserver, error, complete) {
147
- this.nextOrObserver = nextOrObserver;
148
- this.error = error;
149
- this.complete = complete;
150
- }
151
- call(subscriber, source) {
152
- return source.subscribe(new TapSubscriber(subscriber, this.nextOrObserver, this.error, this.complete));
153
- }
154
- }
155
- class TapSubscriber extends Subscriber {
156
- constructor(destination, observerOrNext, error, complete) {
157
- super(destination);
158
- this._tapNext = noop;
159
- this._tapError = noop;
160
- this._tapComplete = noop;
161
- this._tapError = error || noop;
162
- this._tapComplete = complete || noop;
163
- if (isFunction(observerOrNext)) {
164
- this._context = this;
165
- this._tapNext = observerOrNext;
166
- }
167
- else if (observerOrNext) {
168
- this._context = observerOrNext;
169
- this._tapNext = observerOrNext.next || noop;
170
- this._tapError = observerOrNext.error || noop;
171
- this._tapComplete = observerOrNext.complete || noop;
172
- }
173
- }
174
- _next(value) {
175
- try {
176
- this._tapNext.call(this._context, value);
177
- }
178
- catch (err) {
179
- this.destination.error(err);
180
- return;
181
- }
182
- this.destination.next(value);
183
- }
184
- _error(err) {
185
- try {
186
- this._tapError.call(this._context, err);
187
- }
188
- catch (err) {
189
- this.destination.error(err);
190
- return;
191
- }
192
- this.destination.error(err);
193
- }
194
- _complete() {
195
- try {
196
- this._tapComplete.call(this._context);
197
- }
198
- catch (err) {
199
- this.destination.error(err);
200
- return;
201
- }
202
- return this.destination.complete();
203
- }
204
- }
205
-
206
- function fromEvent(target, eventName, options, resultSelector) {
207
- if (isFunction(options)) {
208
- resultSelector = options;
209
- options = undefined;
210
- }
211
- if (resultSelector) {
212
- return fromEvent(target, eventName, options).pipe(map(args => isArray(args) ? resultSelector(...args) : resultSelector(args)));
213
- }
214
- return new Observable(subscriber => {
215
- function handler(e) {
216
- if (arguments.length > 1) {
217
- subscriber.next(Array.prototype.slice.call(arguments));
218
- }
219
- else {
220
- subscriber.next(e);
221
- }
222
- }
223
- setupSubscription(target, eventName, handler, subscriber, options);
224
- });
225
- }
226
- function setupSubscription(sourceObj, eventName, handler, subscriber, options) {
227
- let unsubscribe;
228
- if (isEventTarget(sourceObj)) {
229
- const source = sourceObj;
230
- sourceObj.addEventListener(eventName, handler, options);
231
- unsubscribe = () => source.removeEventListener(eventName, handler, options);
232
- }
233
- else if (isJQueryStyleEventEmitter(sourceObj)) {
234
- const source = sourceObj;
235
- sourceObj.on(eventName, handler);
236
- unsubscribe = () => source.off(eventName, handler);
237
- }
238
- else if (isNodeStyleEventEmitter(sourceObj)) {
239
- const source = sourceObj;
240
- sourceObj.addListener(eventName, handler);
241
- unsubscribe = () => source.removeListener(eventName, handler);
242
- }
243
- else if (sourceObj && sourceObj.length) {
244
- for (let i = 0, len = sourceObj.length; i < len; i++) {
245
- setupSubscription(sourceObj[i], eventName, handler, subscriber, options);
246
- }
247
- }
248
- else {
249
- throw new TypeError('Invalid event target');
250
- }
251
- subscriber.add(unsubscribe);
252
- }
253
- function isNodeStyleEventEmitter(sourceObj) {
254
- return sourceObj && typeof sourceObj.addListener === 'function' && typeof sourceObj.removeListener === 'function';
255
- }
256
- function isJQueryStyleEventEmitter(sourceObj) {
257
- return sourceObj && typeof sourceObj.on === 'function' && typeof sourceObj.off === 'function';
258
- }
259
- function isEventTarget(sourceObj) {
260
- return sourceObj && typeof sourceObj.addEventListener === 'function' && typeof sourceObj.removeEventListener === 'function';
261
- }
262
-
263
- const dropdownAsyncCss = "fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";
264
-
265
- const DEFAULT_SEARCH_LENGTH = 3;
266
- const SelectInputAsync = class {
267
- constructor(hostRef) {
268
- registerInstance(this, hostRef);
269
- this.valueChanged = createEvent(this, "valueChanged", 7);
270
- this.required = false;
271
- this.disabled = false;
272
- this.minSearchStringLength = DEFAULT_SEARCH_LENGTH;
273
- this.isMouseOver = false;
274
- this.searchState = 'pristine';
275
- this.inputValue = '';
276
- this.isDropdownVisible = false;
277
- this.filteredOptions = [];
278
- this.shouldExecuteSearch = (searchQuery) => {
279
- var _a;
280
- return (this.isDropdownVisible &&
281
- (searchQuery === null || searchQuery === void 0 ? void 0 : searchQuery.length) >= this.minSearchStringLength &&
282
- ((_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.label) !== searchQuery);
283
- };
284
- this.onBeginSearch = (searchQuery) => {
285
- this.inputValue = searchQuery;
286
- this.searchState = 'in progress';
287
- };
288
- this.onCompleteSearch = (results) => {
289
- this.filteredOptions = results;
290
- this.highlightedOptionIndex = undefined;
291
- this.searchState = 'done';
292
- };
293
- this.renderFilteredResults = () => {
294
- if (this.searchState === 'pristine') {
295
- return h("span", { class: "dropdown-item disabled" }, "Start typing to find the results");
296
- }
297
- if (this.searchState === 'in progress') {
298
- return (h("div", { class: "d-flex justify-content-end align-items-center pr-4" }, h("span", { class: "dropdown-item disabled" }, "Searching..."), h("i", { class: "dot-falling" })));
299
- }
300
- if (this.filteredOptions.length === 0) {
301
- return h("span", { class: "dropdown-item disabled" }, "No items match your search");
302
- }
303
- return this.filteredOptions.map((option, index) => (h("span", { class: {
304
- 'dropdown-item text-wrap': true,
305
- selected: this.isOptionSelected(option),
306
- active: this.highlightedOptionIndex === index
307
- }, onClick: (_event) => {
308
- this.toggleDropdown(false);
309
- this.selectOption(option);
310
- } }, option.label)));
311
- };
312
- this.resetInput = () => {
313
- var _a, _b;
314
- this.inputValue = (_b = (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : '';
315
- };
316
- this.toggleDropdown = (newState) => {
317
- this.isDropdownVisible = newState;
318
- };
319
- this.processKeyboardNavigation = (event) => {
320
- const ENTER_KEY = 'Enter';
321
- const DOWN_KEY = 'ArrowDown';
322
- const UP_KEY = 'ArrowUp';
323
- const ESC_KEY = 'Escape';
324
- switch (event.key) {
325
- case DOWN_KEY:
326
- this.toggleDropdown(true);
327
- this.highlightNextItem();
328
- return true;
329
- case UP_KEY:
330
- this.highlightPreviousItem();
331
- return true;
332
- case ENTER_KEY:
333
- if (this.highlightedOptionIndex !== undefined) {
334
- this.toggleDropdown(false);
335
- this.selectOption(this.filteredOptions[this.highlightedOptionIndex]);
336
- }
337
- return true;
338
- case ESC_KEY:
339
- this.inputElement.blur();
340
- return true;
341
- }
342
- return false;
343
- };
344
- this.highlightPreviousItem = () => {
345
- if (this.filteredOptions.length === 0) {
346
- return;
347
- }
348
- this.highlightedOptionIndex =
349
- this.highlightedOptionIndex === undefined ? 0 : Math.max(this.highlightedOptionIndex - 1, 0);
350
- };
351
- this.highlightNextItem = () => {
352
- if (this.filteredOptions.length === 0) {
353
- return;
354
- }
355
- this.highlightedOptionIndex =
356
- this.highlightedOptionIndex === undefined
357
- ? 0
358
- : Math.min(this.highlightedOptionIndex + 1, this.filteredOptions.length - 1);
359
- };
360
- this.selectOption = (option) => {
361
- this.selectedOption = option;
362
- this.inputValue = option.label;
363
- this.valueChanged.emit(option);
364
- };
365
- this.isOptionSelected = (option) => {
366
- var _a;
367
- return ((_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.label) === option.label;
368
- };
369
- }
370
- componentWillLoad() {
371
- this.selectedOption = this.value;
372
- }
373
- componentDidLoad() {
374
- this.searchResultsSubscription = fromEvent(this.inputElement, 'keyup')
375
- .pipe(debounceTime(500), map((_) => this.inputElement.value), distinctUntilChanged(), filter(this.shouldExecuteSearch), tap(this.onBeginSearch), mergeMap(this._searchFunction), tap(this.onCompleteSearch))
376
- .subscribe();
377
- }
378
- componentDidUnload() {
379
- this.searchResultsSubscription.unsubscribe();
380
- }
381
- handleFocus() {
382
- this.toggleDropdown(true);
383
- }
384
- handleBlur() {
385
- if (this.isMouseOver) {
386
- return;
387
- }
388
- this.toggleDropdown(false);
389
- this.highlightedOptionIndex = undefined;
390
- this.resetInput();
391
- }
392
- handleKeyDown(event) {
393
- if (this.processKeyboardNavigation(event)) {
394
- event.preventDefault();
395
- }
396
- }
397
- render() {
398
- var _a;
399
- return [
400
- h("div", { class: "dropdown" }, h("input", { type: "text", class: "form-control", placeholder: this.placeholder, required: this.required, disabled: this.disabled, value: this.inputValue, ref: (el) => (this.inputElement = el) }), h("div", { class: {
401
- 'invalid-feedback': true,
402
- 'd-none': this.isDropdownVisible
403
- } }, (_a = this.requiredValidationMessage) !== null && _a !== void 0 ? _a : 'Required.'), h("div", { class: {
404
- 'dropdown-menu shadow mt-0 w-100 overflow-auto': true,
405
- show: this.isDropdownVisible
406
- }, onMouseEnter: (_event) => (this.isMouseOver = true), onMouseLeave: (_event) => (this.isMouseOver = false) }, this.renderFilteredResults()))
407
- ];
408
- }
409
- get _searchFunction() {
410
- if (this.searchFunction === undefined) {
411
- throw new Error("Can't render <fl-dropdown-async/> component with no searchFunction");
412
- }
413
- return this.searchFunction;
414
- }
415
- };
416
- SelectInputAsync.style = dropdownAsyncCss;
417
-
418
- export { SelectInputAsync as fl_dropdown_async };
@@ -1,228 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-d4b319a7.js';
2
-
3
- var src = {
4
- compareTwoStrings,
5
- findBestMatch
6
- };
7
-
8
- function compareTwoStrings(first, second) {
9
- first = first.replace(/\s+/g, '');
10
- second = second.replace(/\s+/g, '');
11
-
12
- if (!first.length && !second.length) return 1; // if both are empty strings
13
- if (!first.length || !second.length) return 0; // if only one is empty string
14
- if (first === second) return 1; // identical
15
- if (first.length === 1 && second.length === 1) return 0; // both are 1-letter strings
16
- if (first.length < 2 || second.length < 2) return 0; // if either is a 1-letter string
17
-
18
- let firstBigrams = new Map();
19
- for (let i = 0; i < first.length - 1; i++) {
20
- const bigram = first.substring(i, i + 2);
21
- const count = firstBigrams.has(bigram)
22
- ? firstBigrams.get(bigram) + 1
23
- : 1;
24
-
25
- firstBigrams.set(bigram, count);
26
- }
27
- let intersectionSize = 0;
28
- for (let i = 0; i < second.length - 1; i++) {
29
- const bigram = second.substring(i, i + 2);
30
- const count = firstBigrams.has(bigram)
31
- ? firstBigrams.get(bigram)
32
- : 0;
33
-
34
- if (count > 0) {
35
- firstBigrams.set(bigram, count - 1);
36
- intersectionSize++;
37
- }
38
- }
39
-
40
- return (2.0 * intersectionSize) / (first.length + second.length - 2);
41
- }
42
-
43
- function findBestMatch(mainString, targetStrings) {
44
- if (!areArgsValid(mainString, targetStrings)) throw new Error('Bad arguments: First argument should be a string, second should be an array of strings');
45
-
46
- const ratings = [];
47
- let bestMatchIndex = 0;
48
-
49
- for (let i = 0; i < targetStrings.length; i++) {
50
- const currentTargetString = targetStrings[i];
51
- const currentRating = compareTwoStrings(mainString, currentTargetString);
52
- ratings.push({target: currentTargetString, rating: currentRating});
53
- if (currentRating > ratings[bestMatchIndex].rating) {
54
- bestMatchIndex = i;
55
- }
56
- }
57
-
58
-
59
- const bestMatch = ratings[bestMatchIndex];
60
-
61
- return { ratings, bestMatch, bestMatchIndex };
62
- }
63
-
64
- function areArgsValid(mainString, targetStrings) {
65
- if (typeof mainString !== 'string') return false;
66
- if (!Array.isArray(targetStrings)) return false;
67
- if (!targetStrings.length) return false;
68
- if (targetStrings.find(s => typeof s !== 'string')) return false;
69
- return true;
70
- }
71
-
72
- const dropdownCss = "fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";
73
-
74
- const Dropdown = class {
75
- constructor(hostRef) {
76
- registerInstance(this, hostRef);
77
- this.valueChanged = createEvent(this, "valueChanged", 7);
78
- this.required = false;
79
- this.disabled = false;
80
- this.isMouseOver = false;
81
- this.inputValue = '';
82
- this.isDropdownVisible = false;
83
- this.filteredOptions = [];
84
- this.renderFilteredResults = () => {
85
- if (this.filteredOptions.length === 0) {
86
- return h("span", { class: "dropdown-item disabled" }, "No items match your search");
87
- }
88
- return this.filteredOptions.map((option, index) => (h("span", { class: {
89
- 'dropdown-item text-wrap': true,
90
- selected: this.isOptionSelected(option),
91
- active: this.highlightedOptionIndex === index
92
- }, onClick: (_event) => {
93
- this.toggleDropdown(false);
94
- this.selectOption(option);
95
- } }, h("span", null, option.label))));
96
- };
97
- this.filterResults = (searchString) => {
98
- this.filteredOptions = this.sortOptionsByRelevancy(this._options.filter((option) => option.label.toLowerCase().includes(searchString.toLowerCase())), searchString);
99
- this.highlightedOptionIndex = undefined;
100
- };
101
- this.selectOption = (option) => {
102
- this.selectedOption = option;
103
- this.inputValue = option.label;
104
- this.valueChanged.emit(option);
105
- };
106
- this.isOptionSelected = (option) => {
107
- var _a;
108
- return ((_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.label) === option.label;
109
- };
110
- this.toggleDropdown = (newState) => {
111
- this.isDropdownVisible = newState;
112
- };
113
- this.resetInput = () => {
114
- var _a, _b;
115
- this.inputValue = (_b = (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : '';
116
- this.filteredOptions = this._options;
117
- };
118
- this.processKeyboardNavigation = (event) => {
119
- const ENTER_KEY = 'Enter';
120
- const DOWN_KEY = 'ArrowDown';
121
- const UP_KEY = 'ArrowUp';
122
- const ESC_KEY = 'Escape';
123
- switch (event.key) {
124
- case DOWN_KEY:
125
- this.toggleDropdown(true);
126
- this.highlightNextItem();
127
- return true;
128
- case UP_KEY:
129
- this.highlightPreviousItem();
130
- return true;
131
- case ENTER_KEY:
132
- if (this.highlightedOptionIndex !== undefined) {
133
- this.toggleDropdown(false);
134
- this.selectOption(this.filteredOptions[this.highlightedOptionIndex]);
135
- }
136
- return true;
137
- case ESC_KEY:
138
- this.inputElement.blur();
139
- return true;
140
- }
141
- return false;
142
- };
143
- this.highlightPreviousItem = () => {
144
- if (this.filteredOptions.length === 0) {
145
- return;
146
- }
147
- this.highlightedOptionIndex =
148
- this.highlightedOptionIndex === undefined ? 0 : Math.max(this.highlightedOptionIndex - 1, 0);
149
- };
150
- this.highlightNextItem = () => {
151
- if (this.filteredOptions.length === 0) {
152
- return;
153
- }
154
- this.highlightedOptionIndex =
155
- this.highlightedOptionIndex === undefined
156
- ? 0
157
- : Math.min(this.highlightedOptionIndex + 1, this.filteredOptions.length - 1);
158
- };
159
- }
160
- get _options() {
161
- if (this.options === undefined) {
162
- throw new Error("Can't render <fl-dropdown /> component with no options");
163
- }
164
- return this.options;
165
- }
166
- componentWillLoad() {
167
- var _a, _b;
168
- this.filteredOptions = this._options;
169
- this.selectedOption = this._options.find((item) => item.value === this.value);
170
- this.inputValue = (_b = (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : '';
171
- }
172
- handleFocus() {
173
- this.toggleDropdown(true);
174
- }
175
- handleBlur() {
176
- if (this.isMouseOver) {
177
- return;
178
- }
179
- this.toggleDropdown(false);
180
- this.resetInput();
181
- }
182
- handleKeyDown(event) {
183
- if (this.processKeyboardNavigation(event)) {
184
- event.preventDefault();
185
- }
186
- }
187
- onOptionsChanged() {
188
- this.filteredOptions = this._options;
189
- }
190
- onValueChanged() {
191
- var _a, _b;
192
- this.selectedOption = this._options.find((item) => item.value === this.value);
193
- this.inputValue = (_b = (_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : '';
194
- }
195
- render() {
196
- var _a;
197
- return [
198
- h("div", { class: "dropdown" }, h("input", { type: "text", class: "form-control custom-select", placeholder: this.placeholder, required: this.required, disabled: this.disabled, value: this.inputValue, onInput: (event) => {
199
- const newValue = event.target.value;
200
- this.inputValue = newValue;
201
- this.filterResults(newValue);
202
- this.toggleDropdown(true);
203
- }, ref: (el) => (this.inputElement = el) }), h("div", { class: {
204
- 'invalid-feedback': true,
205
- 'd-none': this.isDropdownVisible
206
- } }, (_a = this.requiredValidationMessage) !== null && _a !== void 0 ? _a : 'Required.'), h("div", { class: {
207
- 'dropdown-menu shadow mt-0 w-100 overflow-auto': true,
208
- show: this.isDropdownVisible
209
- }, onMouseEnter: (_event) => (this.isMouseOver = true), onMouseLeave: (_event) => (this.isMouseOver = false) }, this.renderFilteredResults()))
210
- ];
211
- }
212
- sortOptionsByRelevancy(options, searchString) {
213
- return options
214
- .map((option) => (Object.assign(Object.assign({}, option), { relevancyScore: src.compareTwoStrings(option.label.toLowerCase(), searchString.toLowerCase()) })))
215
- .sort((a, b) => b.relevancyScore - a.relevancyScore)
216
- .map((weightedOption) => ({
217
- label: weightedOption.label,
218
- value: weightedOption.value
219
- }));
220
- }
221
- static get watchers() { return {
222
- "options": ["onOptionsChanged"],
223
- "value": ["onValueChanged"]
224
- }; }
225
- };
226
- Dropdown.style = dropdownCss;
227
-
228
- export { Dropdown as fl_dropdown };