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