bromcom-ui 2.7.38-rc.8 → 2.8.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 (393) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/global/helper/index.ts +1 -0
  4. package/dist/bromcom-ui/global/helper/toast.ts +136 -0
  5. package/dist/bromcom-ui/{p-d6fe1d25.entry.js → p-0191554f.entry.js} +1 -1
  6. package/dist/bromcom-ui/p-040f1cc5.entry.js +5 -0
  7. package/dist/bromcom-ui/{p-2b94d9ac.entry.js → p-05a32a81.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-72f741db.entry.js → p-0b77585e.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-64b20f43.entry.js → p-0f685aa9.entry.js} +1 -1
  10. package/dist/bromcom-ui/p-13f0d66c.entry.js +5 -0
  11. package/dist/bromcom-ui/{p-c58f338d.entry.js → p-14938158.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-dd50e75e.entry.js → p-1d77cf0f.entry.js} +1 -1
  13. package/dist/bromcom-ui/p-21bf2bb5.js +5 -0
  14. package/dist/bromcom-ui/p-22e08221.entry.js +5 -0
  15. package/dist/bromcom-ui/p-23cb7133.js +5 -0
  16. package/dist/bromcom-ui/{p-1e47e597.entry.js → p-2552592a.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-1f103e82.js → p-2a2466d0.js} +1 -1
  18. package/dist/bromcom-ui/{p-6d17ae58.entry.js → p-2b774123.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-db102b27.entry.js → p-2cac45d6.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-444cb95f.entry.js → p-2cdc4578.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-9164fab5.entry.js → p-2f0e0ecf.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-4721d58a.entry.js → p-369d6e4f.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-1e2932b4.entry.js → p-3836eb77.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-69ef565b.entry.js → p-3d4897d8.entry.js} +1 -1
  25. package/dist/bromcom-ui/p-4487e8c2.js +5 -0
  26. package/dist/bromcom-ui/p-4789cc74.entry.js +5 -0
  27. package/dist/bromcom-ui/{p-5775dcea.js → p-48e9166c.js} +1 -1
  28. package/dist/bromcom-ui/{p-1d44dbea.entry.js → p-4a123037.entry.js} +1 -1
  29. package/dist/bromcom-ui/p-4a51c718.entry.js +5 -0
  30. package/dist/bromcom-ui/{p-04bd9117.entry.js → p-4d556100.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-032a02bb.entry.js → p-4fa21c01.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-069a06c8.entry.js → p-53beb481.entry.js} +1 -1
  33. package/dist/bromcom-ui/p-583d6b09.entry.js +5 -0
  34. package/dist/bromcom-ui/{p-62a25424.entry.js → p-5a5cc30f.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-68454f53.entry.js → p-5c2bf950.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-fc55a7e3.entry.js → p-5d014153.entry.js} +1 -1
  37. package/dist/bromcom-ui/p-5de651cc.entry.js +5 -0
  38. package/dist/bromcom-ui/{p-91a7f380.entry.js → p-5fa48e18.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-3126f440.entry.js → p-61709094.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-d2c0f560.entry.js → p-61865ff2.entry.js} +1 -1
  41. package/dist/bromcom-ui/p-695f6b01.entry.js +5 -0
  42. package/dist/bromcom-ui/{p-596450d2.js → p-6a473342.js} +1 -1
  43. package/dist/bromcom-ui/p-7224e112.entry.js +5 -0
  44. package/dist/bromcom-ui/{p-16ff1ff3.js → p-74595a06.js} +1 -1
  45. package/dist/bromcom-ui/{p-0a6cf248.entry.js → p-74e46eeb.entry.js} +1 -1
  46. package/dist/bromcom-ui/p-7c9025cb.js +5 -0
  47. package/dist/bromcom-ui/{p-0f2e6258.entry.js → p-7d9a38b0.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-5ae0a59b.js → p-7e44e6b5.js} +1 -1
  49. package/dist/bromcom-ui/p-7f1a79c5.entry.js +5 -0
  50. package/dist/bromcom-ui/{p-202dc98b.entry.js → p-816c4dc7.entry.js} +1 -1
  51. package/dist/bromcom-ui/p-86356b26.entry.js +5 -0
  52. package/dist/bromcom-ui/{p-3523560a.entry.js → p-870c903a.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-ba062b3c.js → p-88f7d869.js} +1 -1
  54. package/dist/bromcom-ui/p-8b60d1db.entry.js +5 -0
  55. package/dist/bromcom-ui/{p-3c7a0345.js → p-8c018ae0.js} +1 -1
  56. package/dist/bromcom-ui/{p-219b3300.entry.js → p-8d1cd79f.entry.js} +1 -1
  57. package/dist/bromcom-ui/p-8dbe72a1.entry.js +5 -0
  58. package/dist/bromcom-ui/{p-e35cb3f5.js → p-8fdcb5e7.js} +1 -1
  59. package/dist/bromcom-ui/p-91b1efad.entry.js +5 -0
  60. package/dist/bromcom-ui/{p-57d0c6e7.entry.js → p-97df9122.entry.js} +1 -1
  61. package/dist/bromcom-ui/p-994e484e.entry.js +5 -0
  62. package/dist/bromcom-ui/{p-ee9ba6ba.entry.js → p-9a1dc17c.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-1d77b8a6.js → p-9bef5a59.js} +1 -1
  64. package/dist/bromcom-ui/{p-95518e9b.entry.js → p-9d3a9f5b.entry.js} +1 -1
  65. package/dist/bromcom-ui/{p-4f86851c.entry.js → p-a173ed35.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-a8d1397d.js → p-a3ffcb0d.js} +1 -1
  67. package/dist/bromcom-ui/p-a427f0ee.entry.js +5 -0
  68. package/dist/bromcom-ui/{p-3c4f09cc.entry.js → p-a9ab4073.entry.js} +1 -1
  69. package/dist/bromcom-ui/{p-6db38bb3.entry.js → p-b1d6b529.entry.js} +1 -1
  70. package/dist/bromcom-ui/{p-07e03977.entry.js → p-b39f6cb3.entry.js} +1 -1
  71. package/dist/bromcom-ui/{p-833261c5.entry.js → p-b69abb6f.entry.js} +1 -1
  72. package/dist/bromcom-ui/p-b8ffc86f.entry.js +5 -0
  73. package/dist/bromcom-ui/{p-5fa7dfe2.entry.js → p-bb95aa62.entry.js} +1 -1
  74. package/dist/bromcom-ui/{p-e052c44c.entry.js → p-bc332b5d.entry.js} +1 -1
  75. package/dist/bromcom-ui/{p-e453462d.entry.js → p-bc97d311.entry.js} +1 -1
  76. package/dist/bromcom-ui/{p-5a9b78f6.entry.js → p-bdb012c3.entry.js} +1 -1
  77. package/dist/bromcom-ui/p-c0ac6d54.entry.js +5 -0
  78. package/dist/bromcom-ui/p-c68f44be.entry.js +5 -0
  79. package/dist/bromcom-ui/{p-7863b16a.entry.js → p-cf04e7a3.entry.js} +1 -1
  80. package/dist/bromcom-ui/{p-f73d76e6.entry.js → p-d4ff4de0.entry.js} +1 -1
  81. package/dist/bromcom-ui/p-d777677c.entry.js +10 -0
  82. package/dist/bromcom-ui/p-da540844.entry.js +5 -0
  83. package/dist/bromcom-ui/{p-a368c325.entry.js → p-dae1cc7b.entry.js} +1 -1
  84. package/dist/bromcom-ui/{p-b9352123.entry.js → p-dc306bd8.entry.js} +1 -1
  85. package/dist/bromcom-ui/{p-764ae0c1.js → p-de954bc9.js} +1 -1
  86. package/dist/bromcom-ui/{p-c3ef369d.entry.js → p-dfe8e354.entry.js} +1 -1
  87. package/dist/bromcom-ui/{p-568f4f45.entry.js → p-e02491ce.entry.js} +1 -1
  88. package/dist/bromcom-ui/p-e0ec1a36.js +5 -0
  89. package/dist/bromcom-ui/{p-0b6afb97.entry.js → p-e2b3cb98.entry.js} +1 -1
  90. package/dist/bromcom-ui/p-e2e7d808.entry.js +5 -0
  91. package/dist/bromcom-ui/{p-eaf81060.entry.js → p-ec7f4a12.entry.js} +1 -1
  92. package/dist/bromcom-ui/{p-4b1ed966.entry.js → p-f089027d.entry.js} +1 -1
  93. package/dist/bromcom-ui/{p-9979bd82.entry.js → p-f16ce14a.entry.js} +1 -1
  94. package/dist/bromcom-ui/p-f21a7fc0.entry.js +5 -0
  95. package/dist/bromcom-ui/{p-8b24fbfa.entry.js → p-fe996e86.entry.js} +1 -1
  96. package/dist/bromcom-ui/{p-1e50dee8.entry.js → p-fea33175.entry.js} +1 -1
  97. package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
  98. package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
  99. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  100. package/dist/cjs/bcm-avatar_2.cjs.entry.js +3 -3
  101. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
  102. package/dist/cjs/bcm-button-group.cjs.entry.js +1 -1
  103. package/dist/cjs/{bcm-button.cjs.entry.js → bcm-button_2.cjs.entry.js} +125 -28
  104. package/dist/cjs/bcm-card.cjs.entry.js +1 -1
  105. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +1 -1
  106. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
  107. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +3 -3
  108. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  109. package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
  110. package/dist/cjs/bcm-color-input.cjs.entry.js +3 -3
  111. package/dist/cjs/{bcm-colorful_7.cjs.entry.js → bcm-colorful_2.cjs.entry.js} +8 -903
  112. package/dist/cjs/bcm-colorpicker.cjs.entry.js +432 -0
  113. package/dist/cjs/bcm-date-picker.cjs.entry.js +1 -1
  114. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +2 -2
  115. package/dist/cjs/bcm-default.cjs.entry.js +1 -1
  116. package/dist/cjs/bcm-drawer.cjs.entry.js +3 -3
  117. package/dist/cjs/bcm-dropdown.cjs.entry.js +2 -2
  118. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +1 -1
  119. package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
  120. package/dist/cjs/bcm-form.cjs.entry.js +1 -1
  121. package/dist/cjs/bcm-icon.cjs.entry.js +41 -0
  122. package/dist/cjs/bcm-input-custom.cjs.entry.js +72 -0
  123. package/dist/cjs/bcm-input.cjs.entry.js +368 -0
  124. package/dist/cjs/bcm-item.cjs.entry.js +1 -1
  125. package/dist/cjs/bcm-items.cjs.entry.js +1 -1
  126. package/dist/cjs/bcm-label_2.cjs.entry.js +148 -0
  127. package/dist/cjs/bcm-link.cjs.entry.js +1 -1
  128. package/dist/cjs/bcm-list.cjs.entry.js +13 -12
  129. package/dist/cjs/bcm-menu.cjs.entry.js +5 -5
  130. package/dist/cjs/bcm-modal.cjs.entry.js +1 -1
  131. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
  132. package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
  133. package/dist/cjs/bcm-popover.cjs.entry.js +82 -33
  134. package/dist/cjs/bcm-progress.cjs.entry.js +1 -1
  135. package/dist/cjs/bcm-radio-group.cjs.entry.js +1 -1
  136. package/dist/cjs/bcm-radio.cjs.entry.js +2 -2
  137. package/dist/cjs/bcm-range.cjs.entry.js +1 -1
  138. package/dist/cjs/bcm-search.cjs.entry.js +7 -6
  139. package/dist/cjs/bcm-select.cjs.entry.js +1 -1
  140. package/dist/cjs/bcm-skeleton.cjs.entry.js +1 -1
  141. package/dist/cjs/bcm-step.cjs.entry.js +2 -2
  142. package/dist/cjs/bcm-stepper.cjs.entry.js +55 -29
  143. package/dist/cjs/bcm-switch.cjs.entry.js +2 -2
  144. package/dist/cjs/bcm-tab-group.cjs.entry.js +85 -98
  145. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +86 -0
  146. package/dist/cjs/bcm-tab-item.cjs.entry.js +103 -0
  147. package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
  148. package/dist/cjs/bcm-textarea.cjs.entry.js +2 -2
  149. package/dist/cjs/bcm-time-picker.cjs.entry.js +1 -1
  150. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  151. package/dist/cjs/{generate-b48e38fa.js → generate-eef61d08.js} +105 -16
  152. package/dist/cjs/{input-template-eae02f62.js → input-template-517c3f53.js} +2 -2
  153. package/dist/cjs/{json-parse-decarator-3f27a0d5.js → json-parse-decarator-c0d7e570.js} +1 -1
  154. package/dist/cjs/loader.cjs.js +1 -1
  155. package/dist/cjs/{number-helper-d068c11e.js → number-helper-652dc22d.js} +1 -1
  156. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +2 -2
  157. package/dist/cjs/old-bcm-popover.cjs.entry.js +1 -1
  158. package/dist/cjs/{stepper-states-b5e62af6.js → stepper-states-d00a1313.js} +1 -1
  159. package/dist/cjs/{tooltip-helper-388e21c9.js → tooltip-helper-cd02e32b.js} +36 -6
  160. package/dist/cjs/{validators-abb4f619.js → validators-7eed007b.js} +1 -1
  161. package/dist/collection/collection-manifest.json +4 -0
  162. package/dist/collection/components/atoms/button/button.js +1 -1
  163. package/dist/collection/components/atoms/chip/chip.js +1 -1
  164. package/dist/collection/components/atoms/link/link.js +1 -1
  165. package/dist/collection/components/molecules/checkbox/checkbox.css +1 -0
  166. package/dist/collection/components/molecules/checkbox/checkbox.js +1 -1
  167. package/dist/collection/components/molecules/input/input.js +5 -2
  168. package/dist/collection/components/molecules/menu/menu.js +1 -1
  169. package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
  170. package/dist/collection/components/molecules/popover/popover.js +107 -2
  171. package/dist/collection/components/molecules/radio/radio.css +1 -0
  172. package/dist/collection/components/molecules/search/search.js +21 -2
  173. package/dist/collection/components/molecules/states/search.states.js +6 -6
  174. package/dist/collection/components/molecules/stepper/stepper.js +55 -35
  175. package/dist/collection/components/molecules/switch/switch.js +1 -1
  176. package/dist/collection/components/molecules/tab-group/tab-group.js +98 -100
  177. package/dist/collection/components/molecules/tab-group/tab-item-header.js +186 -0
  178. package/dist/collection/components/molecules/tab-group/tab-item.js +161 -0
  179. package/dist/collection/components/molecules/tooltip/tooltip.js +109 -2
  180. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +1 -1
  181. package/dist/collection/components/organism/form/form.js +1 -1
  182. package/dist/collection/components/organism/list/list.css +1 -0
  183. package/dist/collection/components/organism/list/list.js +21 -2
  184. package/dist/collection/components/organism/states/bcm-list2.states.js +1 -1
  185. package/dist/collection/components/other/attendance/attendance.js +1 -1
  186. package/dist/collection/components/other/input-custom/input-custom.js +249 -0
  187. package/dist/collection/components/other/toast/toast.js +365 -0
  188. package/dist/collection/components/other_deprecated/select/select.js +1 -1
  189. package/dist/collection/global/components/_checkbox.css +1 -0
  190. package/dist/collection/global/helper/index.js +5 -0
  191. package/dist/collection/global/helper/index.ts +1 -0
  192. package/dist/collection/global/helper/toast.js +114 -0
  193. package/dist/collection/global/helper/toast.ts +136 -0
  194. package/dist/collection/helper/generate.js +108 -19
  195. package/dist/collection/helper/popover-helper.js +57 -29
  196. package/dist/collection/helper/tooltip-helper.js +33 -4
  197. package/dist/collection/stories/assets/button/1.svg +35 -0
  198. package/dist/collection/stories/assets/button/10.svg +24 -0
  199. package/dist/collection/stories/assets/button/11.svg +24 -0
  200. package/dist/collection/stories/assets/button/12.svg +24 -0
  201. package/dist/collection/stories/assets/button/2.svg +28 -0
  202. package/dist/collection/stories/assets/button/3.svg +41 -0
  203. package/dist/collection/stories/assets/button/4.svg +9 -0
  204. package/dist/collection/stories/assets/button/5.svg +65 -0
  205. package/dist/collection/stories/assets/button/6.svg +68 -0
  206. package/dist/collection/stories/assets/button/7.svg +203 -0
  207. package/dist/collection/stories/assets/button/8.svg +316 -0
  208. package/dist/collection/stories/assets/button/9.svg +9 -0
  209. package/dist/collection/templates/button-template.js +1 -1
  210. package/dist/collection/templates/input-template.js +1 -1
  211. package/dist/collection/templates/list-item-template.js +1 -1
  212. package/dist/collection/templates/list-template.js +2 -2
  213. package/dist/components/bcm-attendance.js +1 -1
  214. package/dist/components/bcm-chip.js +1 -1
  215. package/dist/components/bcm-form.js +1 -1
  216. package/dist/components/bcm-input-custom.d.ts +11 -0
  217. package/dist/components/bcm-input-custom.js +114 -0
  218. package/dist/components/bcm-list.js +11 -9
  219. package/dist/components/bcm-popconfirm.js +1 -1
  220. package/dist/components/bcm-popover.js +83 -30
  221. package/dist/components/bcm-select.js +1 -1
  222. package/dist/components/bcm-stepper.js +51 -33
  223. package/dist/components/bcm-switch.js +1 -1
  224. package/dist/components/bcm-tab-group.js +84 -98
  225. package/dist/components/bcm-tab-item-header.d.ts +11 -0
  226. package/dist/components/bcm-tab-item-header.js +102 -0
  227. package/dist/components/bcm-tab-item.d.ts +11 -0
  228. package/dist/components/bcm-tab-item.js +117 -0
  229. package/dist/components/bcm-tab.js +1 -1
  230. package/dist/components/bcm-tabs-content.js +1 -1
  231. package/dist/components/bcm-tabs.js +1 -1
  232. package/dist/components/bcm-tag.js +1 -1
  233. package/dist/components/bcm-toast.d.ts +11 -0
  234. package/dist/components/bcm-toast.js +140 -0
  235. package/dist/components/button.js +2 -2
  236. package/dist/components/checkbox-lite.js +1 -1
  237. package/dist/components/checkbox.js +2 -2
  238. package/dist/components/datetime-picker.js +1 -1
  239. package/dist/components/generate.js +105 -16
  240. package/dist/components/index.d.ts +4 -0
  241. package/dist/components/index.js +4 -0
  242. package/dist/components/input-template.js +2 -15
  243. package/dist/components/input.js +5 -2
  244. package/dist/components/link.js +1 -1
  245. package/dist/components/menu.js +1 -1
  246. package/dist/components/radio.js +1 -1
  247. package/dist/components/search.js +6 -4
  248. package/dist/components/tooltip-helper.js +33 -3
  249. package/dist/components/tooltip.js +29 -3
  250. package/dist/components/types.js +14 -27
  251. package/dist/components/types2.js +25 -25
  252. package/dist/components/types3.js +32 -0
  253. package/dist/esm/bcm-accordion.entry.js +3 -3
  254. package/dist/esm/bcm-alert.entry.js +4 -4
  255. package/dist/esm/bcm-attendance.entry.js +4 -4
  256. package/dist/esm/bcm-autocomplete.entry.js +2 -2
  257. package/dist/esm/bcm-avatar_2.entry.js +9 -9
  258. package/dist/esm/bcm-box.entry.js +2 -2
  259. package/dist/esm/bcm-breadcrumb.entry.js +3 -3
  260. package/dist/esm/bcm-button-group.entry.js +3 -3
  261. package/dist/esm/{bcm-button.entry.js → bcm-button_2.entry.js} +124 -28
  262. package/dist/esm/bcm-card.entry.js +6 -6
  263. package/dist/esm/bcm-checkbox-group.entry.js +7 -7
  264. package/dist/esm/bcm-checkbox-lite_9.entry.js +5 -5
  265. package/dist/esm/bcm-checkbox_2.entry.js +9 -9
  266. package/dist/esm/bcm-chip.entry.js +6 -6
  267. package/dist/esm/bcm-collapse-group.entry.js +3 -3
  268. package/dist/esm/bcm-collapse.entry.js +3 -3
  269. package/dist/esm/bcm-color-input.entry.js +7 -7
  270. package/dist/esm/{bcm-colorful_7.entry.js → bcm-colorful_2.entry.js} +15 -905
  271. package/dist/esm/bcm-colorpicker.entry.js +428 -0
  272. package/dist/esm/bcm-date-picker.entry.js +4 -4
  273. package/dist/esm/bcm-datetime-picker.entry.js +8 -8
  274. package/dist/esm/bcm-default.entry.js +3 -3
  275. package/dist/esm/bcm-drawer.entry.js +8 -8
  276. package/dist/esm/bcm-dropdown.entry.js +4 -4
  277. package/dist/esm/bcm-error-layout.entry.js +2 -2
  278. package/dist/esm/bcm-expansion-panel.entry.js +5 -5
  279. package/dist/esm/bcm-form-2.entry.js +3 -3
  280. package/dist/esm/bcm-form-group.entry.js +2 -2
  281. package/dist/esm/bcm-form.entry.js +4 -4
  282. package/dist/esm/bcm-icon.entry.js +37 -0
  283. package/dist/esm/bcm-input-custom.entry.js +68 -0
  284. package/dist/esm/bcm-input.entry.js +364 -0
  285. package/dist/esm/bcm-item.entry.js +5 -5
  286. package/dist/esm/bcm-items.entry.js +3 -3
  287. package/dist/esm/bcm-label_2.entry.js +143 -0
  288. package/dist/esm/bcm-link.entry.js +3 -3
  289. package/dist/esm/bcm-list.entry.js +22 -21
  290. package/dist/esm/bcm-menu.entry.js +10 -10
  291. package/dist/esm/bcm-message.entry.js +2 -2
  292. package/dist/esm/bcm-modal.entry.js +4 -4
  293. package/dist/esm/bcm-notification.entry.js +2 -2
  294. package/dist/esm/bcm-old-input.entry.js +4 -4
  295. package/dist/esm/bcm-old-tag_2.entry.js +3 -3
  296. package/dist/esm/bcm-popconfirm-box.entry.js +5 -5
  297. package/dist/esm/bcm-popconfirm.entry.js +4 -4
  298. package/dist/esm/bcm-popover.entry.js +86 -37
  299. package/dist/esm/bcm-progress.entry.js +5 -5
  300. package/dist/esm/bcm-radio-group.entry.js +6 -6
  301. package/dist/esm/bcm-radio.entry.js +7 -7
  302. package/dist/esm/bcm-range.entry.js +4 -4
  303. package/dist/esm/bcm-result.entry.js +2 -2
  304. package/dist/esm/bcm-search.entry.js +11 -10
  305. package/dist/esm/bcm-select-group.entry.js +1 -1
  306. package/dist/esm/bcm-select-option.entry.js +1 -1
  307. package/dist/esm/bcm-select.entry.js +4 -4
  308. package/dist/esm/bcm-skeleton.entry.js +3 -3
  309. package/dist/esm/bcm-step.entry.js +5 -5
  310. package/dist/esm/bcm-stepper.entry.js +56 -30
  311. package/dist/esm/bcm-switch.entry.js +6 -6
  312. package/dist/esm/bcm-tab-group.entry.js +86 -99
  313. package/dist/esm/bcm-tab-item-header.entry.js +82 -0
  314. package/dist/esm/bcm-tab-item.entry.js +99 -0
  315. package/dist/esm/bcm-tab-pane.entry.js +2 -2
  316. package/dist/esm/bcm-tab.entry.js +2 -2
  317. package/dist/esm/bcm-table.entry.js +3 -3
  318. package/dist/esm/bcm-tabs-content.entry.js +3 -3
  319. package/dist/esm/bcm-tabs.entry.js +3 -3
  320. package/dist/esm/bcm-tag.entry.js +5 -5
  321. package/dist/esm/bcm-text.entry.js +5 -5
  322. package/dist/esm/bcm-textarea.entry.js +6 -6
  323. package/dist/esm/bcm-time-picker.entry.js +4 -4
  324. package/dist/esm/bcm-timeline-item.entry.js +2 -2
  325. package/dist/esm/bcm-timeline.entry.js +2 -2
  326. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  327. package/dist/esm/bromcom-ui.js +2 -2
  328. package/dist/esm/{caption-template-2ef181f9.js → caption-template-389f5bd6.js} +1 -1
  329. package/dist/esm/{color-helper-b5e9aa56.js → color-helper-7e202fd8.js} +1 -1
  330. package/dist/esm/{element-dragger-7ea06c76.js → element-dragger-89bb52fd.js} +1 -1
  331. package/dist/esm/{generate-d89c98d8.js → generate-5f6567d0.js} +105 -16
  332. package/dist/esm/{index-662f4cf5.js → index-6e2d80d7.js} +1 -1
  333. package/dist/esm/{index-cb0cdd87.js → index-8b349654.js} +1 -1
  334. package/dist/esm/{input-template-299c12d1.js → input-template-e03cafc5.js} +3 -3
  335. package/dist/esm/{is-load-decorator-0a59085d.js → is-load-decorator-66e19e04.js} +1 -1
  336. package/dist/esm/{json-parse-decarator-88fb33b1.js → json-parse-decarator-d8836c67.js} +2 -2
  337. package/dist/esm/{label-template-d8687efd.js → label-template-eed2dd69.js} +2 -2
  338. package/dist/esm/loader.js +2 -2
  339. package/dist/esm/{number-helper-905f45a1.js → number-helper-b8a2b813.js} +1 -1
  340. package/dist/esm/old-bcm-popover-box.entry.js +6 -6
  341. package/dist/esm/old-bcm-popover.entry.js +3 -3
  342. package/dist/esm/{slot-template-5b2da1d3.js → slot-template-64b41ee5.js} +1 -1
  343. package/dist/esm/{stepper-states-79e0d857.js → stepper-states-16e0b400.js} +3 -3
  344. package/dist/esm/{tooltip-helper-7934cf3c.js → tooltip-helper-87acf426.js} +38 -8
  345. package/dist/esm/{utils-b3338faf.js → utils-57652744.js} +1 -1
  346. package/dist/esm/{validators-18348027.js → validators-07033707.js} +1 -1
  347. package/dist/types/components/molecules/popover/popover.d.ts +10 -1
  348. package/dist/types/components/molecules/search/search.d.ts +1 -0
  349. package/dist/types/components/molecules/states/search.states.d.ts +1 -1
  350. package/dist/types/components/molecules/stepper/stepper.d.ts +3 -3
  351. package/dist/types/components/molecules/tab-group/tab-group.d.ts +7 -4
  352. package/dist/types/components/molecules/tab-group/tab-item-header.d.ts +13 -0
  353. package/dist/types/components/molecules/tab-group/tab-item.d.ts +17 -0
  354. package/dist/types/components/molecules/tooltip/tooltip.d.ts +10 -1
  355. package/dist/types/components/organism/list/list.d.ts +1 -0
  356. package/dist/types/components/other/input-custom/input-custom.d.ts +20 -0
  357. package/dist/types/components/other/toast/toast.d.ts +25 -0
  358. package/dist/types/components.d.ts +157 -9
  359. package/dist/types/global/helper/index.d.ts +1 -0
  360. package/dist/types/global/helper/toast.d.ts +96 -0
  361. package/dist/types/helper/generate.d.ts +2 -0
  362. package/dist/types/helper/popover-helper.d.ts +13 -3
  363. package/dist/types/helper/tooltip-helper.d.ts +13 -3
  364. package/dist/types/index.d.ts +1 -1
  365. package/dist/types/templates/list-template.d.ts +1 -0
  366. package/helper/index.d.ts +2 -0
  367. package/helper/index.d.ts.map +1 -0
  368. package/helper/index.js +17 -0
  369. package/helper/toast.d.ts +97 -0
  370. package/helper/toast.d.ts.map +1 -0
  371. package/helper/toast.js +115 -0
  372. package/package.json +8 -5
  373. package/dist/bromcom-ui/p-053e9893.js +0 -5
  374. package/dist/bromcom-ui/p-17c1703c.js +0 -5
  375. package/dist/bromcom-ui/p-35f6cb3f.entry.js +0 -5
  376. package/dist/bromcom-ui/p-3f3bb4b0.entry.js +0 -5
  377. package/dist/bromcom-ui/p-3f4b42d8.entry.js +0 -5
  378. package/dist/bromcom-ui/p-55a15cf3.entry.js +0 -5
  379. package/dist/bromcom-ui/p-63472fc4.entry.js +0 -5
  380. package/dist/bromcom-ui/p-6a04eaf8.entry.js +0 -5
  381. package/dist/bromcom-ui/p-6db9f7d9.js +0 -5
  382. package/dist/bromcom-ui/p-73e6ec28.js +0 -5
  383. package/dist/bromcom-ui/p-82641a80.js +0 -5
  384. package/dist/bromcom-ui/p-8e86e37b.entry.js +0 -5
  385. package/dist/bromcom-ui/p-9b8baf8d.entry.js +0 -5
  386. package/dist/bromcom-ui/p-a961f89b.entry.js +0 -5
  387. package/dist/bromcom-ui/p-bdfdc63f.entry.js +0 -5
  388. package/dist/bromcom-ui/p-c5af64c9.entry.js +0 -5
  389. package/dist/bromcom-ui/p-c630c590.entry.js +0 -5
  390. package/dist/bromcom-ui/p-cc4d2a88.entry.js +0 -5
  391. package/dist/bromcom-ui/p-e258c81c.entry.js +0 -5
  392. package/dist/bromcom-ui/p-e50a57f0.entry.js +0 -10
  393. package/dist/bromcom-ui/p-f3c48da2.entry.js +0 -5
@@ -25,13 +25,29 @@ export class BcmTooltip {
25
25
  this.open = false;
26
26
  this.color = "slate";
27
27
  this.size = Bcm.Size.medium;
28
+ this.openDelay = 0;
29
+ this.closeDelay = 0;
30
+ this.targetId = undefined;
31
+ this.tooltip = undefined;
32
+ }
33
+ emitShow() {
34
+ this.bcmTooltipShow.emit();
35
+ }
36
+ emitHide() {
37
+ this.bcmTooltipHide.emit();
38
+ }
39
+ componentWillLoad() {
28
40
  this.tooltip = new Tooltip({
29
- targetId: this._id,
41
+ targetId: this.targetId || this._id,
30
42
  message: this.message,
31
43
  placement: this.placement,
32
44
  color: this.color,
33
45
  trigger: this.trigger,
34
46
  size: this.size,
47
+ openDelay: this.openDelay,
48
+ closeDelay: this.closeDelay,
49
+ emitShow: () => this.emitShow(),
50
+ emitHide: () => this.emitHide(),
35
51
  });
36
52
  }
37
53
  componentDidLoad() {
@@ -43,8 +59,13 @@ export class BcmTooltip {
43
59
  this.tooltip.color = this.color;
44
60
  this.tooltip.trigger = this.trigger;
45
61
  this.tooltip.size = this.size;
62
+ this.tooltip.openDelay = this.openDelay;
63
+ this.tooltip.closeDelay = this.closeDelay;
46
64
  this.tooltip.update();
47
65
  }
66
+ disconnectedCallback() {
67
+ this.tooltip.destroy();
68
+ }
48
69
  async show() {
49
70
  this.tooltip.show();
50
71
  }
@@ -55,7 +76,7 @@ export class BcmTooltip {
55
76
  this.tooltip.toggle();
56
77
  }
57
78
  render() {
58
- return (h(Host, { "aria-describedby": "tooltip", tabindex: "-1", class: "tw-inline-flex tw-h-fit tw-w-fit" }, h("slot", null)));
79
+ return (h(Host, { "aria-describedby": "tooltip", class: "tw-inline-flex tw-h-fit tw-w-fit" }, h("slot", null)));
59
80
  }
60
81
  static get is() { return "bcm-tooltip"; }
61
82
  static get properties() {
@@ -200,6 +221,59 @@ export class BcmTooltip {
200
221
  "attribute": "size",
201
222
  "reflect": false,
202
223
  "defaultValue": "Bcm.Size.medium"
224
+ },
225
+ "openDelay": {
226
+ "type": "number",
227
+ "mutable": false,
228
+ "complexType": {
229
+ "original": "number",
230
+ "resolved": "number",
231
+ "references": {}
232
+ },
233
+ "required": false,
234
+ "optional": false,
235
+ "docs": {
236
+ "tags": [],
237
+ "text": ""
238
+ },
239
+ "attribute": "open-delay",
240
+ "reflect": false,
241
+ "defaultValue": "0"
242
+ },
243
+ "closeDelay": {
244
+ "type": "number",
245
+ "mutable": false,
246
+ "complexType": {
247
+ "original": "number",
248
+ "resolved": "number",
249
+ "references": {}
250
+ },
251
+ "required": false,
252
+ "optional": false,
253
+ "docs": {
254
+ "tags": [],
255
+ "text": ""
256
+ },
257
+ "attribute": "close-delay",
258
+ "reflect": false,
259
+ "defaultValue": "0"
260
+ },
261
+ "targetId": {
262
+ "type": "string",
263
+ "mutable": false,
264
+ "complexType": {
265
+ "original": "string",
266
+ "resolved": "string",
267
+ "references": {}
268
+ },
269
+ "required": false,
270
+ "optional": false,
271
+ "docs": {
272
+ "tags": [],
273
+ "text": ""
274
+ },
275
+ "attribute": "target-id",
276
+ "reflect": false
203
277
  }
204
278
  };
205
279
  }
@@ -208,6 +282,39 @@ export class BcmTooltip {
208
282
  "tooltip": {}
209
283
  };
210
284
  }
285
+ static get events() {
286
+ return [{
287
+ "method": "bcmTooltipShow",
288
+ "name": "bcmTooltipShow",
289
+ "bubbles": true,
290
+ "cancelable": true,
291
+ "composed": true,
292
+ "docs": {
293
+ "tags": [],
294
+ "text": ""
295
+ },
296
+ "complexType": {
297
+ "original": "any",
298
+ "resolved": "any",
299
+ "references": {}
300
+ }
301
+ }, {
302
+ "method": "bcmTooltipHide",
303
+ "name": "bcmTooltipHide",
304
+ "bubbles": true,
305
+ "cancelable": true,
306
+ "composed": true,
307
+ "docs": {
308
+ "tags": [],
309
+ "text": ""
310
+ },
311
+ "complexType": {
312
+ "original": "any",
313
+ "resolved": "any",
314
+ "references": {}
315
+ }
316
+ }];
317
+ }
211
318
  static get methods() {
212
319
  return {
213
320
  "show": {
@@ -365,7 +365,7 @@ export class BcmDatetimePicker {
365
365
  else {
366
366
  delete this.disabledDatesList.max;
367
367
  }
368
- const value = this.inputElement.value;
368
+ const value = this.inputElement && this.inputElement.value;
369
369
  value && this.setDataFromText(value);
370
370
  }
371
371
  /**
@@ -422,7 +422,7 @@ export class BcmForm {
422
422
  }
423
423
  render() {
424
424
  const hostClasses = cs(this.hidden ? 'hidden' : null);
425
- return (h(Host, { class: hostClasses, tabindex: "-1" }, h("form", { class: "bcm-form", autocomplete: this.autocomplete ? "on" : "off", tabindex: "-1" }, h("slot", null))));
425
+ return (h(Host, { class: hostClasses }, h("form", { class: "bcm-form", autocomplete: this.autocomplete ? "on" : "off" }, h("slot", null))));
426
426
  }
427
427
  static get is() { return "bcm-form"; }
428
428
  static get originalStyleUrls() {
@@ -1324,6 +1324,7 @@
1324
1324
  appearance: none;
1325
1325
  background-color: #fff;
1326
1326
  margin: 0;
1327
+ display: none;
1327
1328
  }
1328
1329
  .bcm-checkbox__input {
1329
1330
  display: flex;
@@ -63,6 +63,7 @@ export class BcmList {
63
63
  this.placeholder = 'Choose an option';
64
64
  this.searchPlaceholder = 'Search';
65
65
  this.searchIsOnlyChilds = false;
66
+ this.minSearchLength = 2;
66
67
  this.clearable = false;
67
68
  this.caption = undefined;
68
69
  this.noCaption = false;
@@ -547,7 +548,7 @@ export class BcmList {
547
548
  const checklist = (await this.getCheckedList()).nestedResult;
548
549
  const filter = Generate.convertIdsToNestedData(ids, checklist);
549
550
  this.returnFilterData = await listState.filterData(this._id, filter, null, true);
550
- this.searchFound = ids.length || 0;
551
+ this.searchFound = (ids === null || ids === void 0 ? void 0 : ids.length) || 0;
551
552
  this.limit = 500;
552
553
  this.searchGetParents = null;
553
554
  await delay(1000);
@@ -764,7 +765,7 @@ export class BcmList {
764
765
  '--min-height': openedType ? 'inherit' : this.minHeight,
765
766
  } }, h("div", { id: `bcm-list-label-${this._id}`, class: "bcm-list__label" }, label && (h("div", null, h(LabelTemplate, { size: this.size, type: this.captionType, value: label, required: required, htmlFor: this._id })))), this.type == 'select' && (h("div", { id: `bcm-list-input-${this._id}`, class: bcmListInput }, h("span", { class: cs('bcm-list__input-container', { 'type-single': !checkboxes, 'value-empty': !this.value }) }, this.checkboxes && h("span", { id: `bcm-list-input-tag-container-${this._id}`, class: "bcm-list__input-tag-container" }), this.checkboxes && !this.value && h("span", { class: "bcm-list__input-placeholder" }, this.placeholder), !this.checkboxes && (this.value ? this.inputText : h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))), h("span", { class: cs('bcm-list__input-buttons', {
766
767
  disabled: disabled,
767
- }) }, this.clearable && this.value && (h("div", { class: "bcm-list__input-buttons-button" }, h("bcm-icon", { icon: "fal fa-times", onClick: e => !disabled && this.setClear(e) }))), h("div", { class: `bcm-list__input-buttons-button caret-is ${this.isOpen && this.calculatedViewport && 'caret-is-open'}` }, h("bcm-icon", { icon: `far fa-angle-down` }))))), this.type === 'autocomplete' && (h("div", { id: `bcm-list-input-${this._id}`, class: cs(bcmListInput, { 'bcm-list__input-autocomplete': this.type == 'autocomplete' }) }, h("span", { class: "bcm-list__input-container", id: `bcm-list-input-tag-container-${this._id}` }, this.checkboxes && h("span", { class: "bcm-list__input-tag-container", id: `bcm-list-input-tag-container-${this._id}-autocomplete` }), h("bcm-search", { id: `bcm-list-input-tag-container-${this._id}-autocomplete-input`, class: "bcm-list__autocomplete", data: this.data, clearable: true, "full-width": true, "no-caption": true, placeholder: this.placeholder })))), h(ListTemplate, { highlight: this.highlightText, searchable: this.type == 'autocomplete' ? false : searchable, bcmListContainer: bcmListContainer, checkboxes: checkboxes, treeview: treeview, infoFooter: this.infoFooter, value: this.value, totalData: this.totalData, searchFound: this.searchFound, variableText: this.variableText, searchPlaceholder: this.searchPlaceholder, searchIsOnlyChilds: this.searchIsOnlyChilds, _id: this._id, checkAll: this.checkAll, data: this.getItems(), width: this.width, height: this.height, size: this.size, selectAllItem: this.selectAllItem, onScrollEvent: e => this.dataScrollEvent(e), items: this.getLimitedItems(this.searchGetParents), selectedItem: itemId => this.selectedItem(itemId), checkedItem: itemId => this.checkedItem(itemId), openGroup: parentId => this.openGroup(parentId), focusItem: itemId => this.focusItem(itemId), emptyText: this.emptyText, emptyIcon: this.emptyIcon }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
768
+ }) }, this.clearable && this.value && (h("div", { class: "bcm-list__input-buttons-button" }, h("bcm-icon", { icon: "fal fa-times", onClick: e => !disabled && this.setClear(e) }))), h("div", { class: `bcm-list__input-buttons-button caret-is ${this.isOpen && this.calculatedViewport && 'caret-is-open'}` }, h("bcm-icon", { icon: `far fa-angle-down` }))))), this.type === 'autocomplete' && (h("div", { id: `bcm-list-input-${this._id}`, class: cs(bcmListInput, { 'bcm-list__input-autocomplete': this.type == 'autocomplete' }) }, h("span", { class: "bcm-list__input-container", id: `bcm-list-input-tag-container-${this._id}` }, this.checkboxes && h("span", { class: "bcm-list__input-tag-container", id: `bcm-list-input-tag-container-${this._id}-autocomplete` }), h("bcm-search", { id: `bcm-list-input-tag-container-${this._id}-autocomplete-input`, class: "bcm-list__autocomplete", data: this.data, clearable: true, "full-width": true, "no-caption": true, placeholder: this.placeholder })))), h(ListTemplate, { highlight: this.highlightText, searchable: this.type == 'autocomplete' ? false : searchable, bcmListContainer: bcmListContainer, checkboxes: checkboxes, treeview: treeview, infoFooter: this.infoFooter, value: this.value, totalData: this.totalData, searchFound: this.searchFound, variableText: this.variableText, searchPlaceholder: this.searchPlaceholder, minSearchLength: this.minSearchLength, searchIsOnlyChilds: this.searchIsOnlyChilds, _id: this._id, checkAll: this.checkAll, data: this.getItems(), width: this.width, height: this.height, size: this.size, selectAllItem: this.selectAllItem, onScrollEvent: e => this.dataScrollEvent(e), items: this.getLimitedItems(this.searchGetParents), selectedItem: itemId => this.selectedItem(itemId), checkedItem: itemId => this.checkedItem(itemId), openGroup: parentId => this.openGroup(parentId), focusItem: itemId => this.focusItem(itemId), emptyText: this.emptyText, emptyIcon: this.emptyIcon }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
768
769
  }
769
770
  static get is() { return "bcm-list"; }
770
771
  static get originalStyleUrls() {
@@ -1342,6 +1343,24 @@ export class BcmList {
1342
1343
  "reflect": false,
1343
1344
  "defaultValue": "false"
1344
1345
  },
1346
+ "minSearchLength": {
1347
+ "type": "number",
1348
+ "mutable": false,
1349
+ "complexType": {
1350
+ "original": "number",
1351
+ "resolved": "number",
1352
+ "references": {}
1353
+ },
1354
+ "required": false,
1355
+ "optional": false,
1356
+ "docs": {
1357
+ "tags": [],
1358
+ "text": ""
1359
+ },
1360
+ "attribute": "min-search-length",
1361
+ "reflect": false,
1362
+ "defaultValue": "2"
1363
+ },
1345
1364
  "clearable": {
1346
1365
  "type": "boolean",
1347
1366
  "mutable": true,
@@ -188,7 +188,7 @@ const findItem = (id, itemId, items) => {
188
188
  if (dataSource) {
189
189
  dataSource.forEach(item => {
190
190
  if (itemId.includes(item.id)) {
191
- checkedProcess(id, item);
191
+ checkedProcess(id, item, true);
192
192
  if (item.parentId) {
193
193
  indeterminateStatus(id, item.parentId);
194
194
  }
@@ -23,7 +23,7 @@ export class BcmAttendance {
23
23
  render() {
24
24
  const { data } = this;
25
25
  const classPrefix = 'bcm-attendance';
26
- return (h(Host, { class: classPrefix, tabindex: "-1" }, h("span", { hidden: true }, h("slot", null)), data.map(item => {
26
+ return (h(Host, { class: classPrefix }, h("span", { hidden: true }, h("slot", null)), data.map(item => {
27
27
  var _a, _b;
28
28
  return h("div", { class: `${classPrefix}__item` }, h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / AM` }, h("span", { class: `${classPrefix}__item-am ${classPrefix}__item-status-${(_a = item.am) !== null && _a !== void 0 ? _a : 'default'}` })), h("bcm-tooltip", { trigger: "hover", message: `${item.weekday || null} / PM` }, h("span", { class: `${classPrefix}__item-pm ${classPrefix}__item-status-${(_b = item.pm) !== null && _b !== void 0 ? _b : 'default'}` })));
29
29
  })));
@@ -0,0 +1,249 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
6
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
7
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
8
+ r = Reflect.decorate(decorators, target, key, desc);
9
+ else
10
+ for (var i = decorators.length - 1; i >= 0; i--)
11
+ if (d = decorators[i])
12
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
13
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
14
+ };
15
+ import { h, Host } from "@stencil/core";
16
+ import { IsLoad } from "../../../decorators/is-load-decorator";
17
+ import { Generate } from "../../../helper/generate";
18
+ import cs from "classnames";
19
+ export class BcmInputCustom {
20
+ constructor() {
21
+ this.handleFocus = () => {
22
+ this.hasFocus = true;
23
+ };
24
+ this.handleBlur = () => {
25
+ this.hasFocus = false;
26
+ };
27
+ this.handleChange = (e) => {
28
+ this.value = e.target.value;
29
+ console.log(e);
30
+ };
31
+ this.handleInput = (e) => {
32
+ // this.value = (e.target as HTMLInputElement).value;
33
+ console.log(e);
34
+ };
35
+ this._id = Generate.UID();
36
+ this.name = undefined;
37
+ this.value = undefined;
38
+ this.type = "text";
39
+ this.label = undefined;
40
+ this.required = false;
41
+ this.disabled = false;
42
+ this.readonly = false;
43
+ this.placeholder = undefined;
44
+ this.fullwidth = false;
45
+ this.hasFocus = false;
46
+ }
47
+ render() {
48
+ const { _id, type, name, value, label, required, fullwidth, placeholder, disabled, readonly } = this;
49
+ return (h(Host, { class: cs("tw-inline-flex tw-w-full tw-max-w-[256px] tw-flex-col", {
50
+ "tw-max-w-full": fullwidth,
51
+ }) }, label && h("bcm-label", { value: label, required: required, htmlFor: _id }), h("div", { class: cs("tw-relative tw-flex tw-w-full tw-flex-row tw-items-stretch tw-rounded tw-border tw-p-0 hover:tw-border-primary-600", {
52
+ "tw-cursor-not-allowed tw-bg-secondary-50": this.disabled,
53
+ "tw-cursor-text": !this.disabled,
54
+ "tw-cursor-default tw-bg-secondary-50": this.readonly,
55
+ "tw-border-primary-500 tw-bg-secondary-50": this.hasFocus,
56
+ "tw-border-secondary-300 tw-bg-white": !this.hasFocus,
57
+ }) }, h("input", { id: _id, name: name, type: type, value: value, "data-value": value, placeholder: placeholder, required: required, disabled: disabled, readonly: readonly, class: cs("tw-text-overflow-ellipsis", "tw-rounded-none", "tw-flex-1", "tw-cursor-inherit", "tw-w-full", "tw-appearance-none", "tw-overflow-hidden", "tw-whitespace-nowrap", "tw-border-none", "tw-bg-transparent", "tw-p-2", "tw-text-secondary-600", "tw-placeholder-secondary-300", "tw-outline-none"), onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: e => this.handleChange(e), onInput: this.handleInput }))));
58
+ }
59
+ static get is() { return "bcm-input-custom"; }
60
+ static get properties() {
61
+ return {
62
+ "_id": {
63
+ "type": "string",
64
+ "mutable": true,
65
+ "complexType": {
66
+ "original": "string",
67
+ "resolved": "string",
68
+ "references": {}
69
+ },
70
+ "required": false,
71
+ "optional": false,
72
+ "docs": {
73
+ "tags": [],
74
+ "text": ""
75
+ },
76
+ "attribute": "id",
77
+ "reflect": true,
78
+ "defaultValue": "Generate.UID()"
79
+ },
80
+ "name": {
81
+ "type": "string",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "string",
85
+ "resolved": "string",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": false,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": ""
93
+ },
94
+ "attribute": "name",
95
+ "reflect": false
96
+ },
97
+ "value": {
98
+ "type": "string",
99
+ "mutable": true,
100
+ "complexType": {
101
+ "original": "string",
102
+ "resolved": "string",
103
+ "references": {}
104
+ },
105
+ "required": false,
106
+ "optional": false,
107
+ "docs": {
108
+ "tags": [],
109
+ "text": ""
110
+ },
111
+ "attribute": "value",
112
+ "reflect": false
113
+ },
114
+ "type": {
115
+ "type": "string",
116
+ "mutable": false,
117
+ "complexType": {
118
+ "original": "string",
119
+ "resolved": "string",
120
+ "references": {}
121
+ },
122
+ "required": false,
123
+ "optional": false,
124
+ "docs": {
125
+ "tags": [],
126
+ "text": ""
127
+ },
128
+ "attribute": "type",
129
+ "reflect": false,
130
+ "defaultValue": "\"text\""
131
+ },
132
+ "label": {
133
+ "type": "string",
134
+ "mutable": false,
135
+ "complexType": {
136
+ "original": "string",
137
+ "resolved": "string",
138
+ "references": {}
139
+ },
140
+ "required": false,
141
+ "optional": false,
142
+ "docs": {
143
+ "tags": [],
144
+ "text": ""
145
+ },
146
+ "attribute": "label",
147
+ "reflect": false
148
+ },
149
+ "required": {
150
+ "type": "boolean",
151
+ "mutable": false,
152
+ "complexType": {
153
+ "original": "boolean",
154
+ "resolved": "boolean",
155
+ "references": {}
156
+ },
157
+ "required": false,
158
+ "optional": false,
159
+ "docs": {
160
+ "tags": [],
161
+ "text": ""
162
+ },
163
+ "attribute": "required",
164
+ "reflect": false,
165
+ "defaultValue": "false"
166
+ },
167
+ "disabled": {
168
+ "type": "boolean",
169
+ "mutable": false,
170
+ "complexType": {
171
+ "original": "boolean",
172
+ "resolved": "boolean",
173
+ "references": {}
174
+ },
175
+ "required": false,
176
+ "optional": false,
177
+ "docs": {
178
+ "tags": [],
179
+ "text": ""
180
+ },
181
+ "attribute": "disabled",
182
+ "reflect": false,
183
+ "defaultValue": "false"
184
+ },
185
+ "readonly": {
186
+ "type": "boolean",
187
+ "mutable": false,
188
+ "complexType": {
189
+ "original": "boolean",
190
+ "resolved": "boolean",
191
+ "references": {}
192
+ },
193
+ "required": false,
194
+ "optional": false,
195
+ "docs": {
196
+ "tags": [],
197
+ "text": ""
198
+ },
199
+ "attribute": "readonly",
200
+ "reflect": false,
201
+ "defaultValue": "false"
202
+ },
203
+ "placeholder": {
204
+ "type": "string",
205
+ "mutable": false,
206
+ "complexType": {
207
+ "original": "string",
208
+ "resolved": "string",
209
+ "references": {}
210
+ },
211
+ "required": false,
212
+ "optional": false,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": ""
216
+ },
217
+ "attribute": "placeholder",
218
+ "reflect": false
219
+ },
220
+ "fullwidth": {
221
+ "type": "boolean",
222
+ "mutable": false,
223
+ "complexType": {
224
+ "original": "boolean",
225
+ "resolved": "boolean",
226
+ "references": {}
227
+ },
228
+ "required": false,
229
+ "optional": false,
230
+ "docs": {
231
+ "tags": [],
232
+ "text": ""
233
+ },
234
+ "attribute": "fullwidth",
235
+ "reflect": false,
236
+ "defaultValue": "false"
237
+ }
238
+ };
239
+ }
240
+ static get states() {
241
+ return {
242
+ "hasFocus": {}
243
+ };
244
+ }
245
+ static get elementRef() { return "el"; }
246
+ }
247
+ __decorate([
248
+ IsLoad()
249
+ ], BcmInputCustom.prototype, "el", void 0);