bromcom-ui 2.8.1-rc.9 → 2.9.0-rc.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 (242) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/{p-016a9d78.entry.js → p-02afc93f.entry.js} +1 -1
  3. package/dist/bromcom-ui/{p-d657a132.entry.js → p-0906c9b4.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-ab51aa2b.entry.js → p-0d4a552d.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-3c15cdb7.entry.js → p-0ee4e283.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-494df97b.entry.js → p-0fdbbbe8.entry.js} +1 -1
  7. package/dist/bromcom-ui/p-14378828.entry.js +5 -0
  8. package/dist/bromcom-ui/{p-92924b7e.entry.js → p-15fa3329.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-5de5cb0d.entry.js → p-1c5a2111.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-2053339a.entry.js → p-20ac20d4.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-daf2ed63.entry.js → p-236def30.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-9b0855f6.entry.js → p-24a733ff.entry.js} +1 -1
  13. package/dist/bromcom-ui/p-24aefda6.js +1 -1
  14. package/dist/bromcom-ui/p-2cb4a196.entry.js +5 -0
  15. package/dist/bromcom-ui/{p-b3584d64.js → p-2ea24a6e.js} +1 -1
  16. package/dist/bromcom-ui/{p-6af5bc87.entry.js → p-334e3147.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-125d13c0.entry.js → p-344a4674.entry.js} +1 -1
  18. package/dist/bromcom-ui/p-3ad545f0.entry.js +5 -0
  19. package/dist/bromcom-ui/{p-7b5ddef4.entry.js → p-40a5e4fc.entry.js} +1 -1
  20. package/dist/bromcom-ui/p-440afdfa.entry.js +5 -0
  21. package/dist/bromcom-ui/{p-6cf8afd4.entry.js → p-4b34b3f9.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-6b692c54.entry.js → p-55001c80.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-73f70b2f.entry.js → p-56896e3a.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-f8b03d4d.entry.js → p-5f288af5.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-284542a6.entry.js → p-70b428e8.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-40d258ce.entry.js → p-72b7fda0.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-a6f5fe0b.entry.js → p-7658ec26.entry.js} +1 -1
  28. package/dist/bromcom-ui/p-80a43b79.js +5 -0
  29. package/dist/bromcom-ui/p-87df3ffb.js +5 -0
  30. package/dist/bromcom-ui/{p-bc7ccd4e.entry.js → p-8864e6af.entry.js} +1 -1
  31. package/dist/bromcom-ui/p-89b21290.entry.js +5 -0
  32. package/dist/bromcom-ui/{p-90981da9.entry.js → p-89f7a5c7.entry.js} +1 -1
  33. package/dist/bromcom-ui/p-8d0ca8c2.js +1 -1
  34. package/dist/bromcom-ui/{p-34efb8eb.entry.js → p-9b10d955.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-585fbc98.entry.js → p-9c7e9b5d.entry.js} +1 -1
  36. package/dist/bromcom-ui/p-9eb2a75d.entry.js +5 -0
  37. package/dist/bromcom-ui/p-a0a3fd94.entry.js +5 -0
  38. package/dist/bromcom-ui/{p-b94bdddf.entry.js → p-a2046742.entry.js} +1 -1
  39. package/dist/bromcom-ui/p-a429e85b.js +1 -1
  40. package/dist/bromcom-ui/{p-997c4fbd.entry.js → p-a49ded35.entry.js} +1 -1
  41. package/dist/bromcom-ui/p-a97ee69d.entry.js +19 -0
  42. package/dist/bromcom-ui/{p-8114163e.entry.js → p-ab55def1.entry.js} +1 -1
  43. package/dist/bromcom-ui/p-b60bcecf.js +1 -1
  44. package/dist/bromcom-ui/{p-a3453263.js → p-b94fa326.js} +1 -1
  45. package/dist/bromcom-ui/{p-e28100e6.entry.js → p-be6d0712.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-e60380c6.entry.js → p-c9b10de5.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-0a404cf9.entry.js → p-cad8f786.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-3642f316.entry.js → p-cf7af1fc.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-e17e1e3e.entry.js → p-d011a407.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-8c2bf4ad.entry.js → p-d1598dd5.entry.js} +1 -1
  51. package/dist/bromcom-ui/p-d3cb8d25.js +5 -0
  52. package/dist/bromcom-ui/{p-ee75e899.entry.js → p-dcb2ae7f.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-09d1d69d.entry.js → p-dce2079e.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-83bae50b.entry.js → p-e008411a.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-fe1532b5.js → p-e0f440b4.js} +1 -1
  56. package/dist/bromcom-ui/{p-bfb70c75.entry.js → p-e3cafc0d.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-0372f13a.entry.js → p-e606c42b.entry.js} +1 -1
  58. package/dist/bromcom-ui/p-e66821e5.entry.js +5 -0
  59. package/dist/bromcom-ui/{p-10d55ac5.entry.js → p-e6ce5ec8.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-508580f7.js → p-f902b559.js} +1 -1
  61. package/dist/cjs/{bcm-634604e3.js → bcm-ab921827.js} +4 -4
  62. package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
  63. package/dist/cjs/bcm-alert.cjs.entry.js +3 -3
  64. package/dist/cjs/bcm-attendance.cjs.entry.js +1 -1
  65. package/dist/cjs/{bcm-colorful_2.cjs.entry.js → bcm-avatar_15.cjs.entry.js} +6164 -92
  66. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
  67. package/dist/cjs/bcm-button-group.cjs.entry.js +6 -6
  68. package/dist/cjs/bcm-card.cjs.entry.js +4 -4
  69. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +416 -0
  70. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +5 -5
  71. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +193 -0
  72. package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
  73. package/dist/cjs/bcm-color-input.cjs.entry.js +5 -5
  74. package/dist/cjs/bcm-date-picker.cjs.entry.js +3 -3
  75. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +8 -8
  76. package/dist/cjs/bcm-default.cjs.entry.js +1 -1
  77. package/dist/cjs/bcm-drawer.cjs.entry.js +7 -7
  78. package/dist/cjs/bcm-dropdown.cjs.entry.js +6 -6
  79. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +3 -3
  80. package/dist/cjs/bcm-form-2.cjs.entry.js +5 -4
  81. package/dist/cjs/bcm-input-custom.cjs.entry.js +1 -1
  82. package/dist/cjs/bcm-item.cjs.entry.js +3 -3
  83. package/dist/cjs/bcm-items.cjs.entry.js +3 -3
  84. package/dist/cjs/bcm-link.cjs.entry.js +3 -3
  85. package/dist/cjs/bcm-menu.cjs.entry.js +7 -7
  86. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +5 -5
  87. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +5 -5
  88. package/dist/cjs/bcm-modal-2.cjs.entry.js +6 -6
  89. package/dist/cjs/bcm-modal.cjs.entry.js +6 -6
  90. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +4 -4
  91. package/dist/cjs/bcm-popconfirm.cjs.entry.js +4 -4
  92. package/dist/cjs/bcm-popover.cjs.entry.js +8 -8
  93. package/dist/cjs/bcm-progress.cjs.entry.js +3 -3
  94. package/dist/cjs/bcm-radio-group.cjs.entry.js +9 -9
  95. package/dist/cjs/bcm-radio.cjs.entry.js +12 -12
  96. package/dist/cjs/bcm-range.cjs.entry.js +5 -5
  97. package/dist/cjs/bcm-select.cjs.entry.js +2 -2
  98. package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
  99. package/dist/cjs/bcm-step.cjs.entry.js +2 -2
  100. package/dist/cjs/bcm-stepper.cjs.entry.js +8 -8
  101. package/dist/cjs/bcm-switch.cjs.entry.js +8 -8
  102. package/dist/cjs/bcm-tab-group.cjs.entry.js +6 -6
  103. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +9 -9
  104. package/dist/cjs/bcm-tab-item.cjs.entry.js +5 -5
  105. package/dist/cjs/bcm-tag.cjs.entry.js +14 -14
  106. package/dist/cjs/bcm-text.cjs.entry.js +3 -3
  107. package/dist/cjs/bcm-textarea.cjs.entry.js +6 -6
  108. package/dist/cjs/bcm-time-picker.cjs.entry.js +3 -3
  109. package/dist/cjs/bcm-toast.cjs.entry.js +10 -10
  110. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  111. package/dist/cjs/{floating-ui-74eb26d6.js → floating-ui-c9fc2202.js} +2 -2
  112. package/dist/cjs/{generate-cf48ed2d.js → generate-21143214.js} +1 -1
  113. package/dist/cjs/{input-template-129e6e5b.js → input-template-1441e468.js} +6 -6
  114. package/dist/cjs/{json-parse-decarator-f0554ad2.js → json-parse-decarator-8dbf0b0e.js} +1 -1
  115. package/dist/cjs/{label-template-cc69bc21.js → label-template-4d5f99a5.js} +3 -3
  116. package/dist/cjs/loader.cjs.js +1 -1
  117. package/dist/cjs/{number-helper-453e02ee.js → number-helper-08a7ff70.js} +1 -1
  118. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +6 -6
  119. package/dist/cjs/old-bcm-popover.cjs.entry.js +4 -4
  120. package/dist/cjs/{popover-placement-3c8f3a72.js → popover-placement-ccb40073.js} +1 -1
  121. package/dist/cjs/{slot-template-3e59d7d8.js → slot-template-d70ea082.js} +1 -1
  122. package/dist/cjs/{stepper-states-3082dce8.js → stepper-states-9b6818aa.js} +1 -1
  123. package/dist/cjs/{string-helper-45cffee0.js → string-helper-d681e5c7.js} +2 -2
  124. package/dist/cjs/{tooltip-helper-748b4ab6.js → tooltip-helper-235b26ea.js} +9 -9
  125. package/dist/cjs/{validators-2fcf98d3.js → validators-6a0077a8.js} +1 -1
  126. package/dist/collection/collection-manifest.json +1 -0
  127. package/dist/collection/components/atoms/chip/chip-group.js +292 -0
  128. package/dist/collection/components/atoms/chip/chip.js +107 -26
  129. package/dist/collection/components/molecules/linked/linked.js +6 -17
  130. package/dist/collection/components/organism/form/form.js +1 -0
  131. package/dist/collection/components/organism/form-2/bcm-form-components.js +1 -0
  132. package/dist/collection/components/organism/list/list.css +3 -0
  133. package/dist/components/bcm-chip-group.d.ts +11 -0
  134. package/dist/components/bcm-chip-group.js +174 -0
  135. package/dist/components/bcm-chip.js +1 -100
  136. package/dist/components/bcm-form-2.js +1 -0
  137. package/dist/components/bcm-form.js +1 -0
  138. package/dist/components/bcm-list.js +1 -1702
  139. package/dist/{esm/bcm-chip.entry.js → components/chip.js} +110 -33
  140. package/dist/components/generate.js +1 -1
  141. package/dist/components/index.d.ts +1 -0
  142. package/dist/components/index.js +1 -0
  143. package/dist/components/linked.js +6 -17
  144. package/dist/{esm/bcm-list.entry.js → components/list.js} +136 -31
  145. package/dist/esm/bcm-9f50af9c.js +1 -1
  146. package/dist/esm/bcm-accordion.entry.js +1 -1
  147. package/dist/esm/bcm-alert.entry.js +1 -1
  148. package/dist/esm/bcm-attendance.entry.js +1 -1
  149. package/dist/esm/{bcm-colorful_2.entry.js → bcm-avatar_15.entry.js} +6148 -89
  150. package/dist/esm/bcm-breadcrumb.entry.js +1 -1
  151. package/dist/esm/bcm-button-group.entry.js +2 -2
  152. package/dist/esm/bcm-card.entry.js +1 -1
  153. package/dist/esm/bcm-checkbox-group.entry.js +412 -0
  154. package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
  155. package/dist/esm/bcm-checkbox_2.entry.js +188 -0
  156. package/dist/esm/bcm-collapse.entry.js +1 -1
  157. package/dist/esm/bcm-color-input.entry.js +3 -3
  158. package/dist/esm/bcm-date-picker.entry.js +2 -2
  159. package/dist/esm/bcm-datetime-picker.entry.js +2 -2
  160. package/dist/esm/bcm-default.entry.js +1 -1
  161. package/dist/esm/bcm-drawer.entry.js +4 -4
  162. package/dist/esm/bcm-dropdown.entry.js +3 -3
  163. package/dist/esm/bcm-expansion-panel.entry.js +1 -1
  164. package/dist/esm/bcm-form-2.entry.js +3 -2
  165. package/dist/esm/bcm-input-custom.entry.js +1 -1
  166. package/dist/esm/bcm-item.entry.js +2 -2
  167. package/dist/esm/bcm-items.entry.js +1 -1
  168. package/dist/esm/bcm-link.entry.js +1 -1
  169. package/dist/esm/bcm-menu.entry.js +4 -4
  170. package/dist/esm/bcm-modal-2-footer.entry.js +3 -3
  171. package/dist/esm/bcm-modal-2-header.entry.js +3 -3
  172. package/dist/esm/bcm-modal-2.entry.js +4 -4
  173. package/dist/esm/bcm-modal.entry.js +2 -2
  174. package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
  175. package/dist/esm/bcm-popconfirm.entry.js +2 -2
  176. package/dist/esm/bcm-popover.entry.js +4 -4
  177. package/dist/esm/bcm-progress.entry.js +2 -2
  178. package/dist/esm/bcm-radio-group.entry.js +4 -4
  179. package/dist/esm/bcm-radio.entry.js +4 -4
  180. package/dist/esm/bcm-range.entry.js +2 -2
  181. package/dist/esm/bcm-skeleton.entry.js +1 -1
  182. package/dist/esm/bcm-step.entry.js +2 -2
  183. package/dist/esm/bcm-stepper.entry.js +5 -5
  184. package/dist/esm/bcm-switch.entry.js +2 -2
  185. package/dist/esm/bcm-tab-group.entry.js +4 -4
  186. package/dist/esm/bcm-tab-item-header.entry.js +4 -4
  187. package/dist/esm/bcm-tab-item.entry.js +3 -3
  188. package/dist/esm/bcm-tag.entry.js +3 -3
  189. package/dist/esm/bcm-textarea.entry.js +3 -3
  190. package/dist/esm/bcm-time-picker.entry.js +2 -2
  191. package/dist/esm/bcm-toast.entry.js +2 -2
  192. package/dist/esm/bromcom-ui.js +1 -1
  193. package/dist/esm/floating-ui-e7341329.js +1 -1
  194. package/dist/esm/{generate-03cf1f82.js → generate-a39b1045.js} +1 -1
  195. package/dist/esm/{input-template-6137ed1b.js → input-template-e1df6efd.js} +2 -2
  196. package/dist/esm/{json-parse-decarator-699aaeeb.js → json-parse-decarator-b1ceb8c8.js} +1 -1
  197. package/dist/esm/label-template-d74fe788.js +1 -1
  198. package/dist/esm/loader.js +1 -1
  199. package/dist/esm/{number-helper-61c91978.js → number-helper-fa8e8000.js} +1 -1
  200. package/dist/esm/old-bcm-popover-box.entry.js +2 -2
  201. package/dist/esm/old-bcm-popover.entry.js +2 -2
  202. package/dist/esm/{stepper-states-0fc18a9f.js → stepper-states-44849ee8.js} +1 -1
  203. package/dist/esm/string-helper-6bd24967.js +1 -1
  204. package/dist/esm/{tooltip-helper-a06cb0a2.js → tooltip-helper-10b64c23.js} +4 -4
  205. package/dist/esm/{validators-c6a4a8ac.js → validators-dd70be40.js} +1 -1
  206. package/dist/types/components/atoms/chip/chip-group.d.ts +22 -0
  207. package/dist/types/components/atoms/chip/chip.d.ts +18 -13
  208. package/dist/types/components/molecules/linked/linked.d.ts +0 -2
  209. package/dist/types/components.d.ts +47 -4
  210. package/package.json +1 -1
  211. package/dist/bromcom-ui/p-00fd6de2.entry.js +0 -5
  212. package/dist/bromcom-ui/p-1736eee9.entry.js +0 -5
  213. package/dist/bromcom-ui/p-1eabd5dc.js +0 -10
  214. package/dist/bromcom-ui/p-28345f61.js +0 -5
  215. package/dist/bromcom-ui/p-3b3f7c54.entry.js +0 -5
  216. package/dist/bromcom-ui/p-4cbc9da5.entry.js +0 -5
  217. package/dist/bromcom-ui/p-55837df1.entry.js +0 -5
  218. package/dist/bromcom-ui/p-6ea2108c.entry.js +0 -5
  219. package/dist/bromcom-ui/p-7aa855fc.entry.js +0 -5
  220. package/dist/bromcom-ui/p-88078128.entry.js +0 -13
  221. package/dist/bromcom-ui/p-8aa77fd1.js +0 -5
  222. package/dist/bromcom-ui/p-c5bd9dd7.entry.js +0 -5
  223. package/dist/bromcom-ui/p-c818a4fc.entry.js +0 -5
  224. package/dist/bromcom-ui/p-c8c9d35e.entry.js +0 -5
  225. package/dist/bromcom-ui/p-cc45ea99.entry.js +0 -5
  226. package/dist/bromcom-ui/p-d155cf69.entry.js +0 -5
  227. package/dist/bromcom-ui/p-ebc87fe9.entry.js +0 -5
  228. package/dist/bromcom-ui/p-ed9bf8e9.js +0 -5
  229. package/dist/cjs/bcm-avatar_2.cjs.entry.js +0 -139
  230. package/dist/cjs/bcm-button_7.cjs.entry.js +0 -1521
  231. package/dist/cjs/bcm-chip.cjs.entry.js +0 -74
  232. package/dist/cjs/bcm-input.cjs.entry.js +0 -370
  233. package/dist/cjs/bcm-list.cjs.entry.js +0 -1607
  234. package/dist/cjs/bcm-rc-overflow_2.cjs.entry.js +0 -2443
  235. package/dist/cjs/bcm-typography.cjs.entry.js +0 -21
  236. package/dist/cjs/index-906fb4e5.js +0 -540
  237. package/dist/esm/bcm-avatar_2.entry.js +0 -134
  238. package/dist/esm/bcm-button_7.entry.js +0 -1511
  239. package/dist/esm/bcm-input.entry.js +0 -366
  240. package/dist/esm/bcm-rc-overflow_2.entry.js +0 -2438
  241. package/dist/esm/bcm-typography.entry.js +0 -17
  242. package/dist/esm/index-6310a048.js +0 -537
@@ -1,134 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { r as registerInstance, h, H as Host, g as getElement } from './index-39133086.js';
6
- import { C as ColorHelper } from './color-helper-e8ce23d7.js';
7
- import './datetime-helper-df25808a.js';
8
- import { G as Generate } from './generate-03cf1f82.js';
9
- import { N as NumberHelper } from './number-helper-61c91978.js';
10
- import './string-helper-6bd24967.js';
11
- import './validators-c6a4a8ac.js';
12
- import './element-dragger-89bb52fd.js';
13
- import { a as Bcm } from './bcm-9f50af9c.js';
14
- import { c as classnames } from './index-ed9652af.js';
15
- import { S as SlotTemplate } from './slot-template-5b2db362.js';
16
- import './colors-1d7854ea.js';
17
- import './utils-57652744.js';
18
- import './colors-44c95e7e.js';
19
- import './_commonjsHelpers-3016b722.js';
20
-
21
- const avatarCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-avatar{--bcm-avatar-color:var(--bcm-new-ds-color-slate-600);--bcm-avatar-background-color:var(--bcm-new-ds-color-slate-100);--prefix-height:40px;--prefix-font-size:font-size(2);font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;background-color:var(--bcm-avatar-background-color);color:var(--bcm-avatar-color);text-transform:uppercase}.bcm-avatar.hidden{display:none}.bcm-avatar img{width:100%;height:100%}.bcm-avatar__shape-ellipse,.bcm-avatar__shape-ellipse>img{border-radius:100px}.bcm-avatar__shape-square,.bcm-avatar__shape-square>img{border-radius:4px}.bcm-avatar__shape-ellipse .bcm-badge{top:0px;right:0px}.bcm-avatar__shape-square .bcm-badge{top:-2px;right:-2px}.bcm-avatar__size-small{font-size:10px;line-height:calc(10px + 8px);height:24px;width:24px}.bcm-avatar__size-medium{font-size:12px;line-height:calc(12px + 8px);height:32px;width:32px}.bcm-avatar__size-large{font-size:14px;line-height:calc(14px + 8px);height:40px;width:40px}.bcm-avatar__size-custom{font-size:var(--bcm-avatar-font-size);line-height:calc(var(--bcm-avatar-font-size) + 8px);height:var(--bcm-avatar-height);width:var(--bcm-avatar-height)}.bcm-avatar__status{position:relative}.bcm-avatar__status .bcm-badge{position:absolute}";
22
-
23
- const BcmAvatar = class {
24
- constructor(hostRef) {
25
- registerInstance(this, hostRef);
26
- this._id = Generate.UID();
27
- this.hidden = false;
28
- this.image = undefined;
29
- this.name = undefined;
30
- this.alt = undefined;
31
- this.shape = Bcm.Shape.ellipse;
32
- this.size = Bcm.Size.medium;
33
- this.color = undefined;
34
- this.status = undefined;
35
- this.isFallback = false;
36
- }
37
- componentWillLoad() {
38
- this.name = this.name && this.name.trim() || '';
39
- }
40
- handleError() {
41
- this.isFallback = true;
42
- }
43
- getCustomSizes(customSize) {
44
- return Math.round(parseInt(customSize) / 3);
45
- }
46
- getFirstLetters(name) {
47
- const splitted = name.split(' ');
48
- if (splitted.length === 1)
49
- return splitted[0].substring(0, 2);
50
- return splitted[0].charAt(0) + splitted[splitted.length - 1].charAt(0);
51
- }
52
- setStyleVariables() {
53
- const { size } = this;
54
- let { color } = this;
55
- !color && (color = 'slate');
56
- let height = NumberHelper.toNumber(size);
57
- let fontSize = Math.round(parseInt(height) / 3);
58
- const prefix = `--bcm-avatar`;
59
- return {
60
- [`${prefix}-color`]: ColorHelper.dsColor(`${color}-600`),
61
- [`${prefix}-background-color`]: ColorHelper.dsColor(`${color}-100`),
62
- [`${prefix}-height`]: `${height}px`,
63
- [`${prefix}-font-size`]: `${fontSize}px`
64
- };
65
- }
66
- render() {
67
- const { image, name, alt, hidden, shape, size, status } = this;
68
- const isCustom = !Object.keys(Bcm.BaseSize).includes(size);
69
- const hostClasses = classnames('bcm-avatar', `bcm-avatar__shape-${shape}`, `bcm-avatar__size-${isCustom ? 'custom' : size}`, {
70
- 'hidden': hidden,
71
- 'bcm-avatar__status': !!status
72
- });
73
- const GetIcon = () => h("bcm-icon", { icon: "fas fa-user" });
74
- return (h(Host, { class: hostClasses, style: this.setStyleVariables() }, h("span", { hidden: true }, h("slot", null)), this.isFallback ? (this.name ? this.getFirstLetters(this.name) : GetIcon())
75
- : image
76
- ? h("img", { onError: () => this.handleError(), src: image, alt: alt })
77
- : name ? this.getFirstLetters(name)
78
- : GetIcon(), status && h("bcm-badge", { status: status })));
79
- }
80
- get el() { return getElement(this); }
81
- };
82
- BcmAvatar.style = avatarCss;
83
-
84
- const badgeCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-badge{--bcm-badge-color:var(--bcm-new-ds-color-white);--bcm-badge-background-color:var(--bcm-new-ds-color-slate-400);--bcm-badge-spacing:4px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:4px}.bcm-badge.hidden{display:none}.bcm-badge span:empty{display:none}.bcm-badge__dot{color:var(--bcm-badge-color);background-color:var(--bcm-badge-background-color);display:inline-block;border-radius:100px;position:relative}.bcm-badge__dot-text{display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;padding:0 var(--bcm-badge-spacing);z-index:2;color:var(--bcm-badge-color)}.bcm-badge__dot-size-small{font-size:10px;line-height:calc(10px + 8px);min-width:6px;min-height:6px}.bcm-badge__dot-size-small .bcm-badge__dot-text{min-width:calc(10px + 8px)}.bcm-badge__dot-size-medium{font-size:12px;line-height:calc(12px + 8px);min-width:8px;min-height:8px}.bcm-badge__dot-size-medium .bcm-badge__dot-text{min-width:calc(12px + 8px)}.bcm-badge__dot-size-large{font-size:14px;line-height:calc(14px + 8px);min-width:10px;min-height:10px}.bcm-badge__dot-size-large .bcm-badge__dot-text{min-width:calc(14px + 8px)}.bcm-badge__dot-blink{position:relative;z-index:1}.bcm-badge__dot-blink:after{content:\"\";position:absolute;z-index:-1;top:0;left:0;background:var(--bcm-badge-background-color);border-radius:100px;opacity:0.7;box-shadow:0 0 0 0 rgba(0, 0, 0, 0);transform:scale(1);width:100%;height:100%}.bcm-badge__dot:after{background-color:var(--bcm-badge-background-color);animation:badge-pulse 2s infinite}@keyframes badge-pulse{0%{transform:scale(0.95);box-shadow:0 0 0 0 var(--bcm-badge-background-color)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}";
85
-
86
- const BcmBadge = class {
87
- constructor(hostRef) {
88
- registerInstance(this, hostRef);
89
- this._id = Generate.UID();
90
- this.hidden = false;
91
- this.blink = false;
92
- this.value = undefined;
93
- this.color = undefined;
94
- this.size = Bcm.Size.medium;
95
- this.status = undefined;
96
- this._slot = undefined;
97
- }
98
- setStyleVariables() {
99
- const { status, value } = this;
100
- let { color } = this;
101
- const statusColors = {
102
- 'info': 'blue',
103
- 'error': 'red',
104
- 'warning': 'amber',
105
- 'success': 'emerald',
106
- 'default': 'slate'
107
- };
108
- !!status && (color = statusColors[status]);
109
- !color && (color = 'slate');
110
- const prefix = `--bcm-badge`;
111
- const spacing = !!value && value.length > 1 ? '8' : '4';
112
- return {
113
- [`${prefix}-color`]: ColorHelper.reverseColor(ColorHelper.dsColor(`${color}`)),
114
- [`${prefix}-background-color`]: ColorHelper.dsColor(`${color}`),
115
- [`${prefix}-spacing`]: `${spacing}px`
116
- };
117
- }
118
- render() {
119
- let { blink, value, size, _slot, hidden } = this;
120
- const dotClass = classnames('bcm-badge__dot', 'bcm-badge__dot-size-' + size,
121
- // 'size-2',
122
- {
123
- 'bcm-badge__dot-blink': blink
124
- });
125
- const hostClasses = classnames('bcm-badge', {
126
- hidden
127
- });
128
- return (h(Host, { class: hostClasses, style: this.setStyleVariables() }, h("span", { hidden: true }, h("slot", null)), h("div", { class: dotClass }, !!value && h("span", { class: "bcm-badge__dot-text" }, value)), h(SlotTemplate, { value: _slot })));
129
- }
130
- get el() { return getElement(this); }
131
- };
132
- BcmBadge.style = badgeCss;
133
-
134
- export { BcmAvatar as bcm_avatar, BcmBadge as bcm_badge };