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