@haiilo/catalyst 11.0.0 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/dist/catalyst/catalyst.esm.js +1 -1
  2. package/dist/catalyst/catalyst.esm.js.map +1 -1
  3. package/dist/catalyst/index.esm.js +2 -2
  4. package/dist/catalyst/index.esm.js.map +1 -1
  5. package/dist/catalyst/loader.esm.js.map +1 -0
  6. package/dist/catalyst/p-6a54965a.entry.js +10 -0
  7. package/dist/catalyst/p-6a54965a.entry.js.map +1 -0
  8. package/dist/catalyst/p-B-m4GNf1.js +3 -0
  9. package/dist/catalyst/p-B-m4GNf1.js.map +1 -0
  10. package/dist/catalyst/p-DQuL1Twl.js +2 -0
  11. package/dist/catalyst/p-DQuL1Twl.js.map +1 -0
  12. package/dist/catalyst/p-LJZzaWFR.js +2 -0
  13. package/dist/catalyst/p-LJZzaWFR.js.map +1 -0
  14. package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
  15. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  16. package/dist/cjs/cat-alert_30.cjs.entry.js +1467 -1833
  17. package/dist/cjs/cat-alert_30.cjs.entry.js.map +1 -1
  18. package/dist/cjs/catalyst.cjs.js +8 -7
  19. package/dist/cjs/catalyst.cjs.js.map +1 -1
  20. package/dist/cjs/index-DNLT6JC9.js +10178 -0
  21. package/dist/cjs/index-DNLT6JC9.js.map +1 -0
  22. package/dist/cjs/{index-1094f0fc.js → index-jGQAsDy6.js} +528 -358
  23. package/dist/cjs/index-jGQAsDy6.js.map +1 -0
  24. package/dist/cjs/index.cjs.js +461 -453
  25. package/dist/cjs/index.cjs.js.map +1 -1
  26. package/dist/cjs/loader.cjs.js +4 -5
  27. package/dist/cjs/loader.cjs.js.map +1 -1
  28. package/dist/collection/collection-manifest.json +2 -2
  29. package/dist/collection/components/cat-alert/cat-alert.js +15 -4
  30. package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
  31. package/dist/collection/components/cat-avatar/cat-avatar.js +33 -14
  32. package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -1
  33. package/dist/collection/components/cat-badge/cat-badge.js +45 -9
  34. package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
  35. package/dist/collection/components/cat-button/cat-button.css +4 -2
  36. package/dist/collection/components/cat-button/cat-button.js +107 -35
  37. package/dist/collection/components/cat-button/cat-button.js.map +1 -1
  38. package/dist/collection/components/cat-button-group/cat-button-group.js +3 -2
  39. package/dist/collection/components/cat-button-group/cat-button-group.js.map +1 -1
  40. package/dist/collection/components/cat-checkbox/cat-checkbox.js +83 -24
  41. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  42. package/dist/collection/components/cat-date/cat-date.js +114 -39
  43. package/dist/collection/components/cat-date/cat-date.js.map +1 -1
  44. package/dist/collection/components/cat-date-inline/cat-date-inline.js +69 -19
  45. package/dist/collection/components/cat-date-inline/cat-date-inline.js.map +1 -1
  46. package/dist/collection/components/cat-datepicker/cat-datepicker.js +130 -42
  47. package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
  48. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js +37 -12
  49. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js.map +1 -1
  50. package/dist/collection/components/cat-dropdown/cat-dropdown.js +129 -17
  51. package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
  52. package/dist/collection/components/cat-form-group/cat-form-group.js +19 -4
  53. package/dist/collection/components/cat-form-group/cat-form-group.js.map +1 -1
  54. package/dist/collection/components/cat-icon/cat-icon.js +15 -7
  55. package/dist/collection/components/cat-icon/cat-icon.js.map +1 -1
  56. package/dist/collection/components/cat-input/cat-input.js +143 -51
  57. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  58. package/dist/collection/components/cat-pagination/cat-pagination.js +60 -10
  59. package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
  60. package/dist/collection/components/cat-radio/cat-radio.js +65 -18
  61. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
  62. package/dist/collection/components/cat-radio-group/cat-radio-group.js +21 -8
  63. package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
  64. package/dist/collection/components/cat-scrollable/cat-scrollable.js +32 -7
  65. package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
  66. package/dist/collection/components/cat-select/cat-select.js +105 -34
  67. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  68. package/dist/collection/components/cat-skeleton/cat-skeleton.js +22 -5
  69. package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -1
  70. package/dist/collection/components/cat-spinner/cat-spinner.js +15 -4
  71. package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -1
  72. package/dist/collection/components/cat-tab/cat-tab.js +84 -17
  73. package/dist/collection/components/cat-tab/cat-tab.js.map +1 -1
  74. package/dist/collection/components/cat-tabs/cat-tabs.css +29 -12
  75. package/dist/collection/components/cat-tabs/cat-tabs.js +189 -8
  76. package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
  77. package/dist/collection/components/cat-tag/cat-tag.js +84 -25
  78. package/dist/collection/components/cat-tag/cat-tag.js.map +1 -1
  79. package/dist/collection/components/cat-textarea/cat-textarea.js +90 -32
  80. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  81. package/dist/collection/components/cat-time/cat-time.js +120 -39
  82. package/dist/collection/components/cat-time/cat-time.js.map +1 -1
  83. package/dist/collection/components/cat-toggle/cat-toggle.js +71 -22
  84. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  85. package/dist/collection/components/cat-tooltip/cat-tooltip.js +49 -8
  86. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
  87. package/dist/components/cat-alert.js +8 -3
  88. package/dist/components/cat-alert.js.map +1 -1
  89. package/dist/components/cat-avatar.js +1 -0
  90. package/dist/components/cat-avatar2.js +11 -8
  91. package/dist/components/cat-avatar2.js.map +1 -1
  92. package/dist/components/cat-badge.js +23 -3
  93. package/dist/components/cat-badge.js.map +1 -1
  94. package/dist/components/cat-button-group.js +2 -3
  95. package/dist/components/cat-button-group.js.map +1 -1
  96. package/dist/components/cat-button.js +1 -0
  97. package/dist/components/cat-button2.js +41 -17
  98. package/dist/components/cat-button2.js.map +1 -1
  99. package/dist/components/cat-card.js +2 -2
  100. package/dist/components/cat-card.js.map +1 -1
  101. package/dist/components/cat-checkbox.js +1 -0
  102. package/dist/components/cat-checkbox2.js +34 -10
  103. package/dist/components/cat-checkbox2.js.map +1 -1
  104. package/dist/components/cat-date-inline.js +1 -0
  105. package/dist/components/cat-date-inline2.js +29 -7
  106. package/dist/components/cat-date-inline2.js.map +1 -1
  107. package/dist/components/cat-date.js +41 -17
  108. package/dist/components/cat-date.js.map +1 -1
  109. package/dist/components/cat-datepicker-inline.js +16 -8
  110. package/dist/components/cat-datepicker-inline.js.map +1 -1
  111. package/dist/components/cat-datepicker.js +50 -20
  112. package/dist/components/cat-datepicker.js.map +1 -1
  113. package/dist/components/cat-datepicker.locale.js +110 -99
  114. package/dist/components/cat-datepicker.locale.js.map +1 -1
  115. package/dist/components/cat-dropdown.js +1 -0
  116. package/dist/components/cat-dropdown2.js +70 -13
  117. package/dist/components/cat-dropdown2.js.map +1 -1
  118. package/dist/components/cat-form-group.js +12 -3
  119. package/dist/components/cat-form-group.js.map +1 -1
  120. package/dist/components/cat-form-hint.js +1 -0
  121. package/dist/components/cat-form-hint.js.map +1 -1
  122. package/dist/components/cat-i18n-registry.js +1 -0
  123. package/dist/components/cat-i18n-registry.js.map +1 -1
  124. package/dist/components/cat-icon-registry.js +22 -21
  125. package/dist/components/cat-icon-registry.js.map +1 -1
  126. package/dist/components/cat-icon.js +1 -0
  127. package/dist/components/cat-icon2.js +5 -5
  128. package/dist/components/cat-icon2.js.map +1 -1
  129. package/dist/components/cat-input.js +1 -0
  130. package/dist/components/cat-input2.js +50 -25
  131. package/dist/components/cat-input2.js.map +1 -1
  132. package/dist/components/cat-pagination.js +32 -2
  133. package/dist/components/cat-pagination.js.map +1 -1
  134. package/dist/components/cat-radio-group.js +8 -5
  135. package/dist/components/cat-radio-group.js.map +1 -1
  136. package/dist/components/cat-radio.js +28 -8
  137. package/dist/components/cat-radio.js.map +1 -1
  138. package/dist/components/cat-scrollable.js +1 -0
  139. package/dist/components/cat-scrollable2.js +322 -542
  140. package/dist/components/cat-scrollable2.js.map +1 -1
  141. package/dist/components/cat-select-demo.js +27 -49
  142. package/dist/components/cat-select-demo.js.map +1 -1
  143. package/dist/components/cat-select.js +1 -0
  144. package/dist/components/cat-select2.js +135 -316
  145. package/dist/components/cat-select2.js.map +1 -1
  146. package/dist/components/cat-skeleton.js +1 -0
  147. package/dist/components/cat-skeleton2.js +12 -3
  148. package/dist/components/cat-skeleton2.js.map +1 -1
  149. package/dist/components/cat-spinner.js +1 -0
  150. package/dist/components/cat-spinner2.js +8 -3
  151. package/dist/components/cat-spinner2.js.map +1 -1
  152. package/dist/components/cat-tab.js +34 -9
  153. package/dist/components/cat-tab.js.map +1 -1
  154. package/dist/components/cat-tabs.js +140 -11
  155. package/dist/components/cat-tabs.js.map +1 -1
  156. package/dist/components/cat-tag.js +35 -13
  157. package/dist/components/cat-tag.js.map +1 -1
  158. package/dist/components/cat-textarea.js +33 -16
  159. package/dist/components/cat-textarea.js.map +1 -1
  160. package/dist/components/cat-time.js +44 -16
  161. package/dist/components/cat-time.js.map +1 -1
  162. package/dist/components/cat-toggle.js +28 -10
  163. package/dist/components/cat-toggle.js.map +1 -1
  164. package/dist/components/cat-tooltip.js +28 -3
  165. package/dist/components/cat-tooltip.js.map +1 -1
  166. package/dist/components/coerce.js +1 -0
  167. package/dist/components/coerce.js.map +1 -1
  168. package/dist/components/first-tabbable.js +1 -0
  169. package/dist/components/first-tabbable.js.map +1 -1
  170. package/dist/components/{floating-ui.dom.esm.js → floating-ui.dom.js} +3 -492
  171. package/dist/components/floating-ui.dom.js.map +1 -0
  172. package/dist/components/index.js +460 -450
  173. package/dist/components/index.js.map +1 -1
  174. package/dist/components/index2.js +9456 -0
  175. package/dist/components/index2.js.map +1 -0
  176. package/dist/components/loglevel.js +368 -356
  177. package/dist/components/loglevel.js.map +1 -1
  178. package/dist/components/media-matcher.js +1 -0
  179. package/dist/components/media-matcher.js.map +1 -1
  180. package/dist/esm/app-globals-DQuL1Twl.js +6 -0
  181. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  182. package/dist/esm/cat-alert_30.entry.js +1428 -1792
  183. package/dist/esm/cat-alert_30.entry.js.map +1 -1
  184. package/dist/esm/catalyst.js +7 -5
  185. package/dist/esm/catalyst.js.map +1 -1
  186. package/dist/esm/{index-e8c0ddf2.js → index-B-m4GNf1.js} +528 -338
  187. package/dist/esm/index-B-m4GNf1.js.map +1 -0
  188. package/dist/esm/index-LJZzaWFR.js +10057 -0
  189. package/dist/esm/index-LJZzaWFR.js.map +1 -0
  190. package/dist/esm/index.js +458 -448
  191. package/dist/esm/index.js.map +1 -1
  192. package/dist/esm/loader.js +5 -4
  193. package/dist/esm/loader.js.map +1 -1
  194. package/dist/types/components/cat-dropdown/cat-dropdown.d.ts +11 -1
  195. package/dist/types/components/cat-tab/cat-tab.d.ts +6 -0
  196. package/dist/types/components/cat-tabs/cat-tabs.d.ts +18 -0
  197. package/dist/types/components.d.ts +46 -0
  198. package/dist/types/stencil-public-runtime.d.ts +28 -2
  199. package/loader/index.d.ts +3 -0
  200. package/package.json +3 -3
  201. package/dist/catalyst/p-59e2ada2.entry.js +0 -10
  202. package/dist/catalyst/p-59e2ada2.entry.js.map +0 -1
  203. package/dist/catalyst/p-7f3bcfb9.js +0 -3
  204. package/dist/catalyst/p-7f3bcfb9.js.map +0 -1
  205. package/dist/catalyst/p-9500d6fb.js +0 -2
  206. package/dist/catalyst/p-9500d6fb.js.map +0 -1
  207. package/dist/catalyst/p-e1255160.js +0 -2
  208. package/dist/catalyst/p-e1255160.js.map +0 -1
  209. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  210. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  211. package/dist/cjs/index-1094f0fc.js.map +0 -1
  212. package/dist/cjs/of-958251e4.js +0 -1549
  213. package/dist/cjs/of-958251e4.js.map +0 -1
  214. package/dist/collection/components/cat-alert/cat-alert.e2e.js +0 -11
  215. package/dist/collection/components/cat-alert/cat-alert.e2e.js.map +0 -1
  216. package/dist/collection/components/cat-alert/cat-alert.spec.js +0 -14
  217. package/dist/collection/components/cat-alert/cat-alert.spec.js.map +0 -1
  218. package/dist/collection/components/cat-avatar/cat-avatar.e2e.js +0 -10
  219. package/dist/collection/components/cat-avatar/cat-avatar.e2e.js.map +0 -1
  220. package/dist/collection/components/cat-avatar/cat-avatar.spec.js +0 -14
  221. package/dist/collection/components/cat-avatar/cat-avatar.spec.js.map +0 -1
  222. package/dist/collection/components/cat-badge/cat-badge.e2e.js +0 -10
  223. package/dist/collection/components/cat-badge/cat-badge.e2e.js.map +0 -1
  224. package/dist/collection/components/cat-badge/cat-badge.spec.js +0 -14
  225. package/dist/collection/components/cat-badge/cat-badge.spec.js.map +0 -1
  226. package/dist/collection/components/cat-button/cat-button.e2e.js +0 -10
  227. package/dist/collection/components/cat-button/cat-button.e2e.js.map +0 -1
  228. package/dist/collection/components/cat-button/cat-button.spec.js +0 -20
  229. package/dist/collection/components/cat-button/cat-button.spec.js.map +0 -1
  230. package/dist/collection/components/cat-button-group/cat-button-group.e2e.js +0 -10
  231. package/dist/collection/components/cat-button-group/cat-button-group.e2e.js.map +0 -1
  232. package/dist/collection/components/cat-button-group/cat-button-group.spec.js +0 -14
  233. package/dist/collection/components/cat-button-group/cat-button-group.spec.js.map +0 -1
  234. package/dist/collection/components/cat-card/cat-card.e2e.js +0 -10
  235. package/dist/collection/components/cat-card/cat-card.e2e.js.map +0 -1
  236. package/dist/collection/components/cat-card/cat-card.spec.js +0 -14
  237. package/dist/collection/components/cat-card/cat-card.spec.js.map +0 -1
  238. package/dist/collection/components/cat-checkbox/cat-checkbox.e2e.js +0 -10
  239. package/dist/collection/components/cat-checkbox/cat-checkbox.e2e.js.map +0 -1
  240. package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js +0 -14
  241. package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js.map +0 -1
  242. package/dist/collection/components/cat-date/cat-date.e2e.js +0 -11
  243. package/dist/collection/components/cat-date/cat-date.e2e.js.map +0 -1
  244. package/dist/collection/components/cat-date/cat-date.spec.js +0 -17
  245. package/dist/collection/components/cat-date/cat-date.spec.js.map +0 -1
  246. package/dist/collection/components/cat-date-inline/cat-date-inline.e2e.js +0 -11
  247. package/dist/collection/components/cat-date-inline/cat-date-inline.e2e.js.map +0 -1
  248. package/dist/collection/components/cat-date-inline/cat-date-inline.spec.js +0 -16
  249. package/dist/collection/components/cat-date-inline/cat-date-inline.spec.js.map +0 -1
  250. package/dist/collection/components/cat-datepicker/cat-datepicker.e2e.js +0 -11
  251. package/dist/collection/components/cat-datepicker/cat-datepicker.e2e.js.map +0 -1
  252. package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js +0 -15
  253. package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js.map +0 -1
  254. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.e2e.js +0 -11
  255. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.e2e.js.map +0 -1
  256. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js +0 -15
  257. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js.map +0 -1
  258. package/dist/collection/components/cat-dropdown/cat-dropdown.e2e.js +0 -10
  259. package/dist/collection/components/cat-dropdown/cat-dropdown.e2e.js.map +0 -1
  260. package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js +0 -21
  261. package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js.map +0 -1
  262. package/dist/collection/components/cat-form-group/cat-form-group.e2e.js +0 -10
  263. package/dist/collection/components/cat-form-group/cat-form-group.e2e.js.map +0 -1
  264. package/dist/collection/components/cat-form-group/cat-form-group.spec.js +0 -14
  265. package/dist/collection/components/cat-form-group/cat-form-group.spec.js.map +0 -1
  266. package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js +0 -15
  267. package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js.map +0 -1
  268. package/dist/collection/components/cat-i18n/cat-i18n-registry.spec.js +0 -7
  269. package/dist/collection/components/cat-i18n/cat-i18n-registry.spec.js.map +0 -1
  270. package/dist/collection/components/cat-icon/cat-icon-registry.spec.js +0 -7
  271. package/dist/collection/components/cat-icon/cat-icon-registry.spec.js.map +0 -1
  272. package/dist/collection/components/cat-icon/cat-icon.e2e.js +0 -11
  273. package/dist/collection/components/cat-icon/cat-icon.e2e.js.map +0 -1
  274. package/dist/collection/components/cat-icon/cat-icon.spec.js +0 -15
  275. package/dist/collection/components/cat-icon/cat-icon.spec.js.map +0 -1
  276. package/dist/collection/components/cat-input/cat-input.e2e.js +0 -11
  277. package/dist/collection/components/cat-input/cat-input.e2e.js.map +0 -1
  278. package/dist/collection/components/cat-input/cat-input.spec.js +0 -15
  279. package/dist/collection/components/cat-input/cat-input.spec.js.map +0 -1
  280. package/dist/collection/components/cat-notification/cat-notification.spec.js +0 -7
  281. package/dist/collection/components/cat-notification/cat-notification.spec.js.map +0 -1
  282. package/dist/collection/components/cat-pagination/cat-pagination.e2e.js +0 -14
  283. package/dist/collection/components/cat-pagination/cat-pagination.e2e.js.map +0 -1
  284. package/dist/collection/components/cat-pagination/cat-pagination.spec.js +0 -15
  285. package/dist/collection/components/cat-pagination/cat-pagination.spec.js.map +0 -1
  286. package/dist/collection/components/cat-radio/cat-radio.e2e.js +0 -10
  287. package/dist/collection/components/cat-radio/cat-radio.e2e.js.map +0 -1
  288. package/dist/collection/components/cat-radio/cat-radio.spec.js +0 -14
  289. package/dist/collection/components/cat-radio/cat-radio.spec.js.map +0 -1
  290. package/dist/collection/components/cat-radio-group/cat-radio-group.e2e.js +0 -10
  291. package/dist/collection/components/cat-radio-group/cat-radio-group.e2e.js.map +0 -1
  292. package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js +0 -14
  293. package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js.map +0 -1
  294. package/dist/collection/components/cat-scrollable/cat-scrollable.e2e.js +0 -10
  295. package/dist/collection/components/cat-scrollable/cat-scrollable.e2e.js.map +0 -1
  296. package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js +0 -14
  297. package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js.map +0 -1
  298. package/dist/collection/components/cat-select/cat-select.e2e.js +0 -14
  299. package/dist/collection/components/cat-select/cat-select.e2e.js.map +0 -1
  300. package/dist/collection/components/cat-select/cat-select.spec.js +0 -15
  301. package/dist/collection/components/cat-select/cat-select.spec.js.map +0 -1
  302. package/dist/collection/components/cat-skeleton/cat-skeleton.e2e.js +0 -10
  303. package/dist/collection/components/cat-skeleton/cat-skeleton.e2e.js.map +0 -1
  304. package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js +0 -14
  305. package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js.map +0 -1
  306. package/dist/collection/components/cat-spinner/cat-spinner.e2e.js +0 -10
  307. package/dist/collection/components/cat-spinner/cat-spinner.e2e.js.map +0 -1
  308. package/dist/collection/components/cat-spinner/cat-spinner.spec.js +0 -18
  309. package/dist/collection/components/cat-spinner/cat-spinner.spec.js.map +0 -1
  310. package/dist/collection/components/cat-tab/cat-tab.e2e.js +0 -10
  311. package/dist/collection/components/cat-tab/cat-tab.e2e.js.map +0 -1
  312. package/dist/collection/components/cat-tab/cat-tab.spec.js +0 -14
  313. package/dist/collection/components/cat-tab/cat-tab.spec.js.map +0 -1
  314. package/dist/collection/components/cat-tabs/cat-tabs.e2e.js +0 -10
  315. package/dist/collection/components/cat-tabs/cat-tabs.e2e.js.map +0 -1
  316. package/dist/collection/components/cat-tabs/cat-tabs.spec.js +0 -14
  317. package/dist/collection/components/cat-tabs/cat-tabs.spec.js.map +0 -1
  318. package/dist/collection/components/cat-tag/cat-tag.e2e.js +0 -14
  319. package/dist/collection/components/cat-tag/cat-tag.e2e.js.map +0 -1
  320. package/dist/collection/components/cat-tag/cat-tag.spec.js +0 -23
  321. package/dist/collection/components/cat-tag/cat-tag.spec.js.map +0 -1
  322. package/dist/collection/components/cat-textarea/cat-textarea.e2e.js +0 -11
  323. package/dist/collection/components/cat-textarea/cat-textarea.e2e.js.map +0 -1
  324. package/dist/collection/components/cat-textarea/cat-textarea.spec.js +0 -15
  325. package/dist/collection/components/cat-textarea/cat-textarea.spec.js.map +0 -1
  326. package/dist/collection/components/cat-time/cat-time.e2e.js +0 -11
  327. package/dist/collection/components/cat-time/cat-time.e2e.js.map +0 -1
  328. package/dist/collection/components/cat-time/cat-time.spec.js +0 -16
  329. package/dist/collection/components/cat-time/cat-time.spec.js.map +0 -1
  330. package/dist/collection/components/cat-toggle/cat-toggle.e2e.js +0 -10
  331. package/dist/collection/components/cat-toggle/cat-toggle.e2e.js.map +0 -1
  332. package/dist/collection/components/cat-toggle/cat-toggle.spec.js +0 -14
  333. package/dist/collection/components/cat-toggle/cat-toggle.spec.js.map +0 -1
  334. package/dist/collection/components/cat-tooltip/cat-tooltip.e2e.js +0 -10
  335. package/dist/collection/components/cat-tooltip/cat-tooltip.e2e.js.map +0 -1
  336. package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js +0 -20
  337. package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js.map +0 -1
  338. package/dist/collection/utils/media-matcher.spec.js +0 -39
  339. package/dist/collection/utils/media-matcher.spec.js.map +0 -1
  340. package/dist/components/floating-ui.dom.esm.js.map +0 -1
  341. package/dist/components/from.js +0 -928
  342. package/dist/components/from.js.map +0 -1
  343. package/dist/components/of.js +0 -10
  344. package/dist/components/of.js.map +0 -1
  345. package/dist/esm/app-globals-0f993ce5.js +0 -5
  346. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  347. package/dist/esm/index-e8c0ddf2.js.map +0 -1
  348. package/dist/esm/of-e4ec2eb4.js +0 -1523
  349. package/dist/esm/of-e4ec2eb4.js.map +0 -1
  350. package/loader/package.json +0 -11
package/dist/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { c as commonjsGlobal, a as catI18nRegistry, o as of } from './of-e4ec2eb4.js';
2
- export { C as CatI18nRegistry, b as CatIconRegistry, a as catI18nRegistry, d as catIconRegistry } from './of-e4ec2eb4.js';
1
+ import { g as getDefaultExportFromCjs, c as catI18nRegistry, a as cjsExports } from './index-LJZzaWFR.js';
2
+ export { C as CatI18nRegistry, b as CatIconRegistry, d as catIconRegistry } from './index-LJZzaWFR.js';
3
3
 
4
- var toastify = {exports: {}};
4
+ var toastify$1 = {exports: {}};
5
5
 
6
6
  /*!
7
7
  * Toastify js 1.12.0
@@ -10,449 +10,458 @@ var toastify = {exports: {}};
10
10
  *
11
11
  * Copyright (C) 2018 Varun A P
12
12
  */
13
+ var toastify = toastify$1.exports;
14
+
15
+ var hasRequiredToastify;
16
+
17
+ function requireToastify () {
18
+ if (hasRequiredToastify) return toastify$1.exports;
19
+ hasRequiredToastify = 1;
20
+ (function (module) {
21
+ (function(root, factory) {
22
+ if (module.exports) {
23
+ module.exports = factory();
24
+ } else {
25
+ root.Toastify = factory();
26
+ }
27
+ })(toastify, function(global) {
28
+ // Object initialization
29
+ var Toastify = function(options) {
30
+ // Returning a new init object
31
+ return new Toastify.lib.init(options);
32
+ },
33
+ // Library version
34
+ version = "1.12.0";
35
+
36
+ // Set the default global options
37
+ Toastify.defaults = {
38
+ oldestFirst: true,
39
+ text: "Toastify is awesome!",
40
+ node: undefined,
41
+ duration: 3000,
42
+ selector: undefined,
43
+ callback: function () {
44
+ },
45
+ destination: undefined,
46
+ newWindow: false,
47
+ close: false,
48
+ gravity: "toastify-top",
49
+ positionLeft: false,
50
+ position: '',
51
+ backgroundColor: '',
52
+ avatar: "",
53
+ className: "",
54
+ stopOnFocus: true,
55
+ onClick: function () {
56
+ },
57
+ offset: {x: 0, y: 0},
58
+ escapeMarkup: true,
59
+ ariaLive: 'polite',
60
+ style: {background: ''}
61
+ };
62
+
63
+ // Defining the prototype of the object
64
+ Toastify.lib = Toastify.prototype = {
65
+ toastify: version,
66
+
67
+ constructor: Toastify,
68
+
69
+ // Initializing the object with required parameters
70
+ init: function(options) {
71
+ // Verifying and validating the input object
72
+ if (!options) {
73
+ options = {};
74
+ }
75
+
76
+ // Creating the options object
77
+ this.options = {};
78
+
79
+ this.toastElement = null;
80
+
81
+ // Validating the options
82
+ this.options.text = options.text || Toastify.defaults.text; // Display message
83
+ this.options.node = options.node || Toastify.defaults.node; // Display content as node
84
+ this.options.duration = options.duration === 0 ? 0 : options.duration || Toastify.defaults.duration; // Display duration
85
+ this.options.selector = options.selector || Toastify.defaults.selector; // Parent selector
86
+ this.options.callback = options.callback || Toastify.defaults.callback; // Callback after display
87
+ this.options.destination = options.destination || Toastify.defaults.destination; // On-click destination
88
+ this.options.newWindow = options.newWindow || Toastify.defaults.newWindow; // Open destination in new window
89
+ this.options.close = options.close || Toastify.defaults.close; // Show toast close icon
90
+ this.options.gravity = options.gravity === "bottom" ? "toastify-bottom" : Toastify.defaults.gravity; // toast position - top or bottom
91
+ this.options.positionLeft = options.positionLeft || Toastify.defaults.positionLeft; // toast position - left or right
92
+ this.options.position = options.position || Toastify.defaults.position; // toast position - left or right
93
+ this.options.backgroundColor = options.backgroundColor || Toastify.defaults.backgroundColor; // toast background color
94
+ this.options.avatar = options.avatar || Toastify.defaults.avatar; // img element src - url or a path
95
+ this.options.className = options.className || Toastify.defaults.className; // additional class names for the toast
96
+ this.options.stopOnFocus = options.stopOnFocus === undefined ? Toastify.defaults.stopOnFocus : options.stopOnFocus; // stop timeout on focus
97
+ this.options.onClick = options.onClick || Toastify.defaults.onClick; // Callback after click
98
+ this.options.offset = options.offset || Toastify.defaults.offset; // toast offset
99
+ this.options.escapeMarkup = options.escapeMarkup !== undefined ? options.escapeMarkup : Toastify.defaults.escapeMarkup;
100
+ this.options.ariaLive = options.ariaLive || Toastify.defaults.ariaLive;
101
+ this.options.style = options.style || Toastify.defaults.style;
102
+ if(options.backgroundColor) {
103
+ this.options.style.background = options.backgroundColor;
104
+ }
105
+
106
+ // Returning the current object for chaining functions
107
+ return this;
108
+ },
109
+
110
+ // Building the DOM element
111
+ buildToast: function() {
112
+ // Validating if the options are defined
113
+ if (!this.options) {
114
+ throw "Toastify is not initialized";
115
+ }
116
+
117
+ // Creating the DOM object
118
+ var divElement = document.createElement("div");
119
+ divElement.className = "toastify on " + this.options.className;
120
+
121
+ // Positioning toast to left or right or center
122
+ if (!!this.options.position) {
123
+ divElement.className += " toastify-" + this.options.position;
124
+ } else {
125
+ // To be depreciated in further versions
126
+ if (this.options.positionLeft === true) {
127
+ divElement.className += " toastify-left";
128
+ console.warn('Property `positionLeft` will be depreciated in further versions. Please use `position` instead.');
129
+ } else {
130
+ // Default position
131
+ divElement.className += " toastify-right";
132
+ }
133
+ }
134
+
135
+ // Assigning gravity of element
136
+ divElement.className += " " + this.options.gravity;
137
+
138
+ if (this.options.backgroundColor) {
139
+ // This is being deprecated in favor of using the style HTML DOM property
140
+ console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');
141
+ }
142
+
143
+ // Loop through our style object and apply styles to divElement
144
+ for (var property in this.options.style) {
145
+ divElement.style[property] = this.options.style[property];
146
+ }
147
+
148
+ // Announce the toast to screen readers
149
+ if (this.options.ariaLive) {
150
+ divElement.setAttribute('aria-live', this.options.ariaLive);
151
+ }
152
+
153
+ // Adding the toast message/node
154
+ if (this.options.node && this.options.node.nodeType === Node.ELEMENT_NODE) {
155
+ // If we have a valid node, we insert it
156
+ divElement.appendChild(this.options.node);
157
+ } else {
158
+ if (this.options.escapeMarkup) {
159
+ divElement.innerText = this.options.text;
160
+ } else {
161
+ divElement.innerHTML = this.options.text;
162
+ }
163
+
164
+ if (this.options.avatar !== "") {
165
+ var avatarElement = document.createElement("img");
166
+ avatarElement.src = this.options.avatar;
167
+
168
+ avatarElement.className = "toastify-avatar";
169
+
170
+ if (this.options.position == "left" || this.options.positionLeft === true) {
171
+ // Adding close icon on the left of content
172
+ divElement.appendChild(avatarElement);
173
+ } else {
174
+ // Adding close icon on the right of content
175
+ divElement.insertAdjacentElement("afterbegin", avatarElement);
176
+ }
177
+ }
178
+ }
179
+
180
+ // Adding a close icon to the toast
181
+ if (this.options.close === true) {
182
+ // Create a span for close element
183
+ var closeElement = document.createElement("button");
184
+ closeElement.type = "button";
185
+ closeElement.setAttribute("aria-label", "Close");
186
+ closeElement.className = "toast-close";
187
+ closeElement.innerHTML = "✖";
188
+
189
+ // Triggering the removal of toast from DOM on close click
190
+ closeElement.addEventListener(
191
+ "click",
192
+ function(event) {
193
+ event.stopPropagation();
194
+ this.removeElement(this.toastElement);
195
+ window.clearTimeout(this.toastElement.timeOutValue);
196
+ }.bind(this)
197
+ );
198
+
199
+ //Calculating screen width
200
+ var width = window.innerWidth > 0 ? window.innerWidth : screen.width;
201
+
202
+ // Adding the close icon to the toast element
203
+ // Display on the right if screen width is less than or equal to 360px
204
+ if ((this.options.position == "left" || this.options.positionLeft === true) && width > 360) {
205
+ // Adding close icon on the left of content
206
+ divElement.insertAdjacentElement("afterbegin", closeElement);
207
+ } else {
208
+ // Adding close icon on the right of content
209
+ divElement.appendChild(closeElement);
210
+ }
211
+ }
212
+
213
+ // Clear timeout while toast is focused
214
+ if (this.options.stopOnFocus && this.options.duration > 0) {
215
+ var self = this;
216
+ // stop countdown
217
+ divElement.addEventListener(
218
+ "mouseover",
219
+ function(event) {
220
+ window.clearTimeout(divElement.timeOutValue);
221
+ }
222
+ );
223
+ // add back the timeout
224
+ divElement.addEventListener(
225
+ "mouseleave",
226
+ function() {
227
+ divElement.timeOutValue = window.setTimeout(
228
+ function() {
229
+ // Remove the toast from DOM
230
+ self.removeElement(divElement);
231
+ },
232
+ self.options.duration
233
+ );
234
+ }
235
+ );
236
+ }
237
+
238
+ // Adding an on-click destination path
239
+ if (typeof this.options.destination !== "undefined") {
240
+ divElement.addEventListener(
241
+ "click",
242
+ function(event) {
243
+ event.stopPropagation();
244
+ if (this.options.newWindow === true) {
245
+ window.open(this.options.destination, "_blank");
246
+ } else {
247
+ window.location = this.options.destination;
248
+ }
249
+ }.bind(this)
250
+ );
251
+ }
252
+
253
+ if (typeof this.options.onClick === "function" && typeof this.options.destination === "undefined") {
254
+ divElement.addEventListener(
255
+ "click",
256
+ function(event) {
257
+ event.stopPropagation();
258
+ this.options.onClick();
259
+ }.bind(this)
260
+ );
261
+ }
262
+
263
+ // Adding offset
264
+ if(typeof this.options.offset === "object") {
265
+
266
+ var x = getAxisOffsetAValue("x", this.options);
267
+ var y = getAxisOffsetAValue("y", this.options);
268
+
269
+ var xOffset = this.options.position == "left" ? x : "-" + x;
270
+ var yOffset = this.options.gravity == "toastify-top" ? y : "-" + y;
271
+
272
+ divElement.style.transform = "translate(" + xOffset + "," + yOffset + ")";
273
+
274
+ }
275
+
276
+ // Returning the generated element
277
+ return divElement;
278
+ },
279
+
280
+ // Displaying the toast
281
+ showToast: function() {
282
+ // Creating the DOM object for the toast
283
+ this.toastElement = this.buildToast();
284
+
285
+ // Getting the root element to with the toast needs to be added
286
+ var rootElement;
287
+ if (typeof this.options.selector === "string") {
288
+ rootElement = document.getElementById(this.options.selector);
289
+ } else if (this.options.selector instanceof HTMLElement || (typeof ShadowRoot !== 'undefined' && this.options.selector instanceof ShadowRoot)) {
290
+ rootElement = this.options.selector;
291
+ } else {
292
+ rootElement = document.body;
293
+ }
294
+
295
+ // Validating if root element is present in DOM
296
+ if (!rootElement) {
297
+ throw "Root element is not defined";
298
+ }
299
+
300
+ // Adding the DOM element
301
+ var elementToInsert = Toastify.defaults.oldestFirst ? rootElement.firstChild : rootElement.lastChild;
302
+ rootElement.insertBefore(this.toastElement, elementToInsert);
303
+
304
+ // Repositioning the toasts in case multiple toasts are present
305
+ Toastify.reposition();
306
+
307
+ if (this.options.duration > 0) {
308
+ this.toastElement.timeOutValue = window.setTimeout(
309
+ function() {
310
+ // Remove the toast from DOM
311
+ this.removeElement(this.toastElement);
312
+ }.bind(this),
313
+ this.options.duration
314
+ ); // Binding `this` for function invocation
315
+ }
316
+
317
+ // Supporting function chaining
318
+ return this;
319
+ },
320
+
321
+ hideToast: function() {
322
+ if (this.toastElement.timeOutValue) {
323
+ clearTimeout(this.toastElement.timeOutValue);
324
+ }
325
+ this.removeElement(this.toastElement);
326
+ },
327
+
328
+ // Removing the element from the DOM
329
+ removeElement: function(toastElement) {
330
+ // Hiding the element
331
+ // toastElement.classList.remove("on");
332
+ toastElement.className = toastElement.className.replace(" on", "");
333
+
334
+ // Removing the element from DOM after transition end
335
+ window.setTimeout(
336
+ function() {
337
+ // remove options node if any
338
+ if (this.options.node && this.options.node.parentNode) {
339
+ this.options.node.parentNode.removeChild(this.options.node);
340
+ }
341
+
342
+ // Remove the element from the DOM, only when the parent node was not removed before.
343
+ if (toastElement.parentNode) {
344
+ toastElement.parentNode.removeChild(toastElement);
345
+ }
346
+
347
+ // Calling the callback function
348
+ this.options.callback.call(toastElement);
349
+
350
+ // Repositioning the toasts again
351
+ Toastify.reposition();
352
+ }.bind(this),
353
+ 400
354
+ ); // Binding `this` for function invocation
355
+ },
356
+ };
357
+
358
+ // Positioning the toasts on the DOM
359
+ Toastify.reposition = function() {
360
+
361
+ // Top margins with gravity
362
+ var topLeftOffsetSize = {
363
+ top: 15,
364
+ bottom: 15,
365
+ };
366
+ var topRightOffsetSize = {
367
+ top: 15,
368
+ bottom: 15,
369
+ };
370
+ var offsetSize = {
371
+ top: 15,
372
+ bottom: 15,
373
+ };
374
+
375
+ // Get all toast messages on the DOM
376
+ var allToasts = document.getElementsByClassName("toastify");
377
+
378
+ var classUsed;
379
+
380
+ // Modifying the position of each toast element
381
+ for (var i = 0; i < allToasts.length; i++) {
382
+ // Getting the applied gravity
383
+ if (containsClass(allToasts[i], "toastify-top") === true) {
384
+ classUsed = "toastify-top";
385
+ } else {
386
+ classUsed = "toastify-bottom";
387
+ }
388
+
389
+ var height = allToasts[i].offsetHeight;
390
+ classUsed = classUsed.substr(9, classUsed.length-1);
391
+ // Spacing between toasts
392
+ var offset = 15;
393
+
394
+ var width = window.innerWidth > 0 ? window.innerWidth : screen.width;
395
+
396
+ // Show toast in center if screen with less than or equal to 360px
397
+ if (width <= 360) {
398
+ // Setting the position
399
+ allToasts[i].style[classUsed] = offsetSize[classUsed] + "px";
400
+
401
+ offsetSize[classUsed] += height + offset;
402
+ } else {
403
+ if (containsClass(allToasts[i], "toastify-left") === true) {
404
+ // Setting the position
405
+ allToasts[i].style[classUsed] = topLeftOffsetSize[classUsed] + "px";
406
+
407
+ topLeftOffsetSize[classUsed] += height + offset;
408
+ } else {
409
+ // Setting the position
410
+ allToasts[i].style[classUsed] = topRightOffsetSize[classUsed] + "px";
411
+
412
+ topRightOffsetSize[classUsed] += height + offset;
413
+ }
414
+ }
415
+ }
416
+
417
+ // Supporting function chaining
418
+ return this;
419
+ };
420
+
421
+ // Helper function to get offset.
422
+ function getAxisOffsetAValue(axis, options) {
423
+
424
+ if(options.offset[axis]) {
425
+ if(isNaN(options.offset[axis])) {
426
+ return options.offset[axis];
427
+ }
428
+ else {
429
+ return options.offset[axis] + 'px';
430
+ }
431
+ }
432
+
433
+ return '0px';
434
+
435
+ }
436
+
437
+ function containsClass(elem, yourClass) {
438
+ if (!elem || typeof yourClass !== "string") {
439
+ return false;
440
+ } else if (
441
+ elem.className &&
442
+ elem.className
443
+ .trim()
444
+ .split(/\s+/gi)
445
+ .indexOf(yourClass) > -1
446
+ ) {
447
+ return true;
448
+ } else {
449
+ return false;
450
+ }
451
+ }
452
+
453
+ // Setting up the prototype for the init object
454
+ Toastify.lib.init.prototype = Toastify.lib;
455
+
456
+ // Returning the Toastify function to be assigned to the window object/module
457
+ return Toastify;
458
+ });
459
+ } (toastify$1));
460
+ return toastify$1.exports;
461
+ }
13
462
 
14
- (function (module) {
15
- (function(root, factory) {
16
- if (module.exports) {
17
- module.exports = factory();
18
- } else {
19
- root.Toastify = factory();
20
- }
21
- })(commonjsGlobal, function(global) {
22
- // Object initialization
23
- var Toastify = function(options) {
24
- // Returning a new init object
25
- return new Toastify.lib.init(options);
26
- },
27
- // Library version
28
- version = "1.12.0";
29
-
30
- // Set the default global options
31
- Toastify.defaults = {
32
- oldestFirst: true,
33
- text: "Toastify is awesome!",
34
- node: undefined,
35
- duration: 3000,
36
- selector: undefined,
37
- callback: function () {
38
- },
39
- destination: undefined,
40
- newWindow: false,
41
- close: false,
42
- gravity: "toastify-top",
43
- positionLeft: false,
44
- position: '',
45
- backgroundColor: '',
46
- avatar: "",
47
- className: "",
48
- stopOnFocus: true,
49
- onClick: function () {
50
- },
51
- offset: {x: 0, y: 0},
52
- escapeMarkup: true,
53
- ariaLive: 'polite',
54
- style: {background: ''}
55
- };
56
-
57
- // Defining the prototype of the object
58
- Toastify.lib = Toastify.prototype = {
59
- toastify: version,
60
-
61
- constructor: Toastify,
62
-
63
- // Initializing the object with required parameters
64
- init: function(options) {
65
- // Verifying and validating the input object
66
- if (!options) {
67
- options = {};
68
- }
69
-
70
- // Creating the options object
71
- this.options = {};
72
-
73
- this.toastElement = null;
74
-
75
- // Validating the options
76
- this.options.text = options.text || Toastify.defaults.text; // Display message
77
- this.options.node = options.node || Toastify.defaults.node; // Display content as node
78
- this.options.duration = options.duration === 0 ? 0 : options.duration || Toastify.defaults.duration; // Display duration
79
- this.options.selector = options.selector || Toastify.defaults.selector; // Parent selector
80
- this.options.callback = options.callback || Toastify.defaults.callback; // Callback after display
81
- this.options.destination = options.destination || Toastify.defaults.destination; // On-click destination
82
- this.options.newWindow = options.newWindow || Toastify.defaults.newWindow; // Open destination in new window
83
- this.options.close = options.close || Toastify.defaults.close; // Show toast close icon
84
- this.options.gravity = options.gravity === "bottom" ? "toastify-bottom" : Toastify.defaults.gravity; // toast position - top or bottom
85
- this.options.positionLeft = options.positionLeft || Toastify.defaults.positionLeft; // toast position - left or right
86
- this.options.position = options.position || Toastify.defaults.position; // toast position - left or right
87
- this.options.backgroundColor = options.backgroundColor || Toastify.defaults.backgroundColor; // toast background color
88
- this.options.avatar = options.avatar || Toastify.defaults.avatar; // img element src - url or a path
89
- this.options.className = options.className || Toastify.defaults.className; // additional class names for the toast
90
- this.options.stopOnFocus = options.stopOnFocus === undefined ? Toastify.defaults.stopOnFocus : options.stopOnFocus; // stop timeout on focus
91
- this.options.onClick = options.onClick || Toastify.defaults.onClick; // Callback after click
92
- this.options.offset = options.offset || Toastify.defaults.offset; // toast offset
93
- this.options.escapeMarkup = options.escapeMarkup !== undefined ? options.escapeMarkup : Toastify.defaults.escapeMarkup;
94
- this.options.ariaLive = options.ariaLive || Toastify.defaults.ariaLive;
95
- this.options.style = options.style || Toastify.defaults.style;
96
- if(options.backgroundColor) {
97
- this.options.style.background = options.backgroundColor;
98
- }
99
-
100
- // Returning the current object for chaining functions
101
- return this;
102
- },
103
-
104
- // Building the DOM element
105
- buildToast: function() {
106
- // Validating if the options are defined
107
- if (!this.options) {
108
- throw "Toastify is not initialized";
109
- }
110
-
111
- // Creating the DOM object
112
- var divElement = document.createElement("div");
113
- divElement.className = "toastify on " + this.options.className;
114
-
115
- // Positioning toast to left or right or center
116
- if (!!this.options.position) {
117
- divElement.className += " toastify-" + this.options.position;
118
- } else {
119
- // To be depreciated in further versions
120
- if (this.options.positionLeft === true) {
121
- divElement.className += " toastify-left";
122
- console.warn('Property `positionLeft` will be depreciated in further versions. Please use `position` instead.');
123
- } else {
124
- // Default position
125
- divElement.className += " toastify-right";
126
- }
127
- }
128
-
129
- // Assigning gravity of element
130
- divElement.className += " " + this.options.gravity;
131
-
132
- if (this.options.backgroundColor) {
133
- // This is being deprecated in favor of using the style HTML DOM property
134
- console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');
135
- }
136
-
137
- // Loop through our style object and apply styles to divElement
138
- for (var property in this.options.style) {
139
- divElement.style[property] = this.options.style[property];
140
- }
141
-
142
- // Announce the toast to screen readers
143
- if (this.options.ariaLive) {
144
- divElement.setAttribute('aria-live', this.options.ariaLive);
145
- }
146
-
147
- // Adding the toast message/node
148
- if (this.options.node && this.options.node.nodeType === Node.ELEMENT_NODE) {
149
- // If we have a valid node, we insert it
150
- divElement.appendChild(this.options.node);
151
- } else {
152
- if (this.options.escapeMarkup) {
153
- divElement.innerText = this.options.text;
154
- } else {
155
- divElement.innerHTML = this.options.text;
156
- }
157
-
158
- if (this.options.avatar !== "") {
159
- var avatarElement = document.createElement("img");
160
- avatarElement.src = this.options.avatar;
161
-
162
- avatarElement.className = "toastify-avatar";
163
-
164
- if (this.options.position == "left" || this.options.positionLeft === true) {
165
- // Adding close icon on the left of content
166
- divElement.appendChild(avatarElement);
167
- } else {
168
- // Adding close icon on the right of content
169
- divElement.insertAdjacentElement("afterbegin", avatarElement);
170
- }
171
- }
172
- }
173
-
174
- // Adding a close icon to the toast
175
- if (this.options.close === true) {
176
- // Create a span for close element
177
- var closeElement = document.createElement("button");
178
- closeElement.type = "button";
179
- closeElement.setAttribute("aria-label", "Close");
180
- closeElement.className = "toast-close";
181
- closeElement.innerHTML = "&#10006;";
182
-
183
- // Triggering the removal of toast from DOM on close click
184
- closeElement.addEventListener(
185
- "click",
186
- function(event) {
187
- event.stopPropagation();
188
- this.removeElement(this.toastElement);
189
- window.clearTimeout(this.toastElement.timeOutValue);
190
- }.bind(this)
191
- );
192
-
193
- //Calculating screen width
194
- var width = window.innerWidth > 0 ? window.innerWidth : screen.width;
195
-
196
- // Adding the close icon to the toast element
197
- // Display on the right if screen width is less than or equal to 360px
198
- if ((this.options.position == "left" || this.options.positionLeft === true) && width > 360) {
199
- // Adding close icon on the left of content
200
- divElement.insertAdjacentElement("afterbegin", closeElement);
201
- } else {
202
- // Adding close icon on the right of content
203
- divElement.appendChild(closeElement);
204
- }
205
- }
206
-
207
- // Clear timeout while toast is focused
208
- if (this.options.stopOnFocus && this.options.duration > 0) {
209
- var self = this;
210
- // stop countdown
211
- divElement.addEventListener(
212
- "mouseover",
213
- function(event) {
214
- window.clearTimeout(divElement.timeOutValue);
215
- }
216
- );
217
- // add back the timeout
218
- divElement.addEventListener(
219
- "mouseleave",
220
- function() {
221
- divElement.timeOutValue = window.setTimeout(
222
- function() {
223
- // Remove the toast from DOM
224
- self.removeElement(divElement);
225
- },
226
- self.options.duration
227
- );
228
- }
229
- );
230
- }
231
-
232
- // Adding an on-click destination path
233
- if (typeof this.options.destination !== "undefined") {
234
- divElement.addEventListener(
235
- "click",
236
- function(event) {
237
- event.stopPropagation();
238
- if (this.options.newWindow === true) {
239
- window.open(this.options.destination, "_blank");
240
- } else {
241
- window.location = this.options.destination;
242
- }
243
- }.bind(this)
244
- );
245
- }
246
-
247
- if (typeof this.options.onClick === "function" && typeof this.options.destination === "undefined") {
248
- divElement.addEventListener(
249
- "click",
250
- function(event) {
251
- event.stopPropagation();
252
- this.options.onClick();
253
- }.bind(this)
254
- );
255
- }
256
-
257
- // Adding offset
258
- if(typeof this.options.offset === "object") {
259
-
260
- var x = getAxisOffsetAValue("x", this.options);
261
- var y = getAxisOffsetAValue("y", this.options);
262
-
263
- var xOffset = this.options.position == "left" ? x : "-" + x;
264
- var yOffset = this.options.gravity == "toastify-top" ? y : "-" + y;
265
-
266
- divElement.style.transform = "translate(" + xOffset + "," + yOffset + ")";
267
-
268
- }
269
-
270
- // Returning the generated element
271
- return divElement;
272
- },
273
-
274
- // Displaying the toast
275
- showToast: function() {
276
- // Creating the DOM object for the toast
277
- this.toastElement = this.buildToast();
278
-
279
- // Getting the root element to with the toast needs to be added
280
- var rootElement;
281
- if (typeof this.options.selector === "string") {
282
- rootElement = document.getElementById(this.options.selector);
283
- } else if (this.options.selector instanceof HTMLElement || (typeof ShadowRoot !== 'undefined' && this.options.selector instanceof ShadowRoot)) {
284
- rootElement = this.options.selector;
285
- } else {
286
- rootElement = document.body;
287
- }
288
-
289
- // Validating if root element is present in DOM
290
- if (!rootElement) {
291
- throw "Root element is not defined";
292
- }
293
-
294
- // Adding the DOM element
295
- var elementToInsert = Toastify.defaults.oldestFirst ? rootElement.firstChild : rootElement.lastChild;
296
- rootElement.insertBefore(this.toastElement, elementToInsert);
297
-
298
- // Repositioning the toasts in case multiple toasts are present
299
- Toastify.reposition();
300
-
301
- if (this.options.duration > 0) {
302
- this.toastElement.timeOutValue = window.setTimeout(
303
- function() {
304
- // Remove the toast from DOM
305
- this.removeElement(this.toastElement);
306
- }.bind(this),
307
- this.options.duration
308
- ); // Binding `this` for function invocation
309
- }
310
-
311
- // Supporting function chaining
312
- return this;
313
- },
314
-
315
- hideToast: function() {
316
- if (this.toastElement.timeOutValue) {
317
- clearTimeout(this.toastElement.timeOutValue);
318
- }
319
- this.removeElement(this.toastElement);
320
- },
321
-
322
- // Removing the element from the DOM
323
- removeElement: function(toastElement) {
324
- // Hiding the element
325
- // toastElement.classList.remove("on");
326
- toastElement.className = toastElement.className.replace(" on", "");
327
-
328
- // Removing the element from DOM after transition end
329
- window.setTimeout(
330
- function() {
331
- // remove options node if any
332
- if (this.options.node && this.options.node.parentNode) {
333
- this.options.node.parentNode.removeChild(this.options.node);
334
- }
335
-
336
- // Remove the element from the DOM, only when the parent node was not removed before.
337
- if (toastElement.parentNode) {
338
- toastElement.parentNode.removeChild(toastElement);
339
- }
340
-
341
- // Calling the callback function
342
- this.options.callback.call(toastElement);
343
-
344
- // Repositioning the toasts again
345
- Toastify.reposition();
346
- }.bind(this),
347
- 400
348
- ); // Binding `this` for function invocation
349
- },
350
- };
351
-
352
- // Positioning the toasts on the DOM
353
- Toastify.reposition = function() {
354
-
355
- // Top margins with gravity
356
- var topLeftOffsetSize = {
357
- top: 15,
358
- bottom: 15,
359
- };
360
- var topRightOffsetSize = {
361
- top: 15,
362
- bottom: 15,
363
- };
364
- var offsetSize = {
365
- top: 15,
366
- bottom: 15,
367
- };
368
-
369
- // Get all toast messages on the DOM
370
- var allToasts = document.getElementsByClassName("toastify");
371
-
372
- var classUsed;
373
-
374
- // Modifying the position of each toast element
375
- for (var i = 0; i < allToasts.length; i++) {
376
- // Getting the applied gravity
377
- if (containsClass(allToasts[i], "toastify-top") === true) {
378
- classUsed = "toastify-top";
379
- } else {
380
- classUsed = "toastify-bottom";
381
- }
382
-
383
- var height = allToasts[i].offsetHeight;
384
- classUsed = classUsed.substr(9, classUsed.length-1);
385
- // Spacing between toasts
386
- var offset = 15;
387
-
388
- var width = window.innerWidth > 0 ? window.innerWidth : screen.width;
389
-
390
- // Show toast in center if screen with less than or equal to 360px
391
- if (width <= 360) {
392
- // Setting the position
393
- allToasts[i].style[classUsed] = offsetSize[classUsed] + "px";
394
-
395
- offsetSize[classUsed] += height + offset;
396
- } else {
397
- if (containsClass(allToasts[i], "toastify-left") === true) {
398
- // Setting the position
399
- allToasts[i].style[classUsed] = topLeftOffsetSize[classUsed] + "px";
400
-
401
- topLeftOffsetSize[classUsed] += height + offset;
402
- } else {
403
- // Setting the position
404
- allToasts[i].style[classUsed] = topRightOffsetSize[classUsed] + "px";
405
-
406
- topRightOffsetSize[classUsed] += height + offset;
407
- }
408
- }
409
- }
410
-
411
- // Supporting function chaining
412
- return this;
413
- };
414
-
415
- // Helper function to get offset.
416
- function getAxisOffsetAValue(axis, options) {
417
-
418
- if(options.offset[axis]) {
419
- if(isNaN(options.offset[axis])) {
420
- return options.offset[axis];
421
- }
422
- else {
423
- return options.offset[axis] + 'px';
424
- }
425
- }
426
-
427
- return '0px';
428
-
429
- }
430
-
431
- function containsClass(elem, yourClass) {
432
- if (!elem || typeof yourClass !== "string") {
433
- return false;
434
- } else if (
435
- elem.className &&
436
- elem.className
437
- .trim()
438
- .split(/\s+/gi)
439
- .indexOf(yourClass) > -1
440
- ) {
441
- return true;
442
- } else {
443
- return false;
444
- }
445
- }
446
-
447
- // Setting up the prototype for the init object
448
- Toastify.lib.init.prototype = Toastify.lib;
449
-
450
- // Returning the Toastify function to be assigned to the window object/module
451
- return Toastify;
452
- });
453
- }(toastify));
454
-
455
- const Toastify = toastify.exports;
463
+ var toastifyExports = requireToastify();
464
+ var Toastify = /*@__PURE__*/getDefaultExportFromCjs(toastifyExports);
456
465
 
457
466
  /**
458
467
  * A service to show additional information via toast notifications.
@@ -552,8 +561,8 @@ const catNotificationService = CatNotificationService.getInstance();
552
561
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
553
562
  function objectArrayConnector(data) {
554
563
  return {
555
- resolve: ids => of(data.filter(({ id }) => ids.includes(id))),
556
- retrieve: term => of({
564
+ resolve: ids => cjsExports.of(data.filter(({ id }) => ids.includes(id))),
565
+ retrieve: term => cjsExports.of({
557
566
  content: data.filter(({ label }) => label.toLowerCase().includes(term.toLowerCase())),
558
567
  last: true,
559
568
  totalElements: data.length
@@ -582,6 +591,7 @@ function stringMapConnector(data) {
582
591
  return objectArrayConnector(items);
583
592
  }
584
593
 
585
- export { CatNotificationService, catNotificationService, objectArrayConnector, stringArrayConnector, stringMapConnector };
594
+ export { CatNotificationService, catI18nRegistry, catNotificationService, objectArrayConnector, stringArrayConnector, stringMapConnector };
595
+ //# sourceMappingURL=index.js.map
586
596
 
587
597
  //# sourceMappingURL=index.js.map