bromcom-ui 2.9.0-rc.11 → 2.9.0-rc.13

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 (261) 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/{p-0ce0079c.entry.js → p-055a6833.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-76595c93.js → p-06d549b0.js} +1 -1
  5. package/dist/bromcom-ui/{p-6e577849.entry.js → p-0829f2b8.entry.js} +1 -1
  6. package/dist/bromcom-ui/p-08c75801.js +5 -0
  7. package/dist/bromcom-ui/p-113960b6.entry.js +5 -0
  8. package/dist/bromcom-ui/{p-3bd27fdd.js → p-1456cfcb.js} +1 -1
  9. package/dist/bromcom-ui/{p-37084b52.entry.js → p-1f03b8aa.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-eaaf03db.js → p-1f9ff376.js} +1 -1
  11. package/dist/bromcom-ui/{p-5fbb57f6.entry.js → p-2e1e73a2.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-0a7f3cd6.entry.js → p-34ee0df2.entry.js} +1 -1
  13. package/dist/bromcom-ui/p-3bd899cc.entry.js +5 -0
  14. package/dist/bromcom-ui/{p-941b7517.entry.js → p-3e7facaa.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-e1689f47.js → p-43a16ce4.js} +1 -1
  16. package/dist/bromcom-ui/{p-8eb5ed81.entry.js → p-43ef6b1c.entry.js} +1 -1
  17. package/dist/bromcom-ui/p-49f37d54.js +5 -0
  18. package/dist/bromcom-ui/{p-104a32ce.entry.js → p-4d34a30c.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-5dc1d0fc.entry.js → p-4d6407a3.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-a4e3b170.entry.js → p-578c6af9.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-6cff5185.entry.js → p-58012cb7.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-0976ff0f.entry.js → p-6430d123.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-b4caa7af.entry.js → p-6802f81b.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-1701ff2a.entry.js → p-6937c867.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-4707aa4d.entry.js → p-695a9db8.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-2d4a0a66.entry.js → p-6e592196.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-8b6dbd63.entry.js → p-70126b4c.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-63337aa3.entry.js → p-7508498f.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-4c21b17f.js → p-7665baa1.js} +1 -1
  30. package/dist/bromcom-ui/{p-0ff006e8.entry.js → p-79c91f16.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-e59b1f37.entry.js → p-7a54258a.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-132d4301.entry.js → p-7c511f8d.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-d896a91f.entry.js → p-7ee5abfd.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-56317397.entry.js → p-80785946.entry.js} +1 -1
  35. package/dist/bromcom-ui/p-83571dfd.js +5 -0
  36. package/dist/bromcom-ui/{p-bdec3fa0.entry.js → p-83f55410.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-c8a64f05.entry.js → p-8b8400e5.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-cff8ef93.js → p-91246af3.js} +1 -1
  39. package/dist/bromcom-ui/p-92726393.entry.js +5 -0
  40. package/dist/bromcom-ui/p-92fa8670.entry.js +5 -0
  41. package/dist/bromcom-ui/p-97d84d54.entry.js +5 -0
  42. package/dist/bromcom-ui/p-98ff534a.entry.js +5 -0
  43. package/dist/bromcom-ui/{p-cb522ae0.js → p-9bfb2dcc.js} +1 -1
  44. package/dist/bromcom-ui/{p-ce3b1f49.entry.js → p-a14e70a5.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-cea71a01.entry.js → p-a2ab6adb.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-62eb13d4.entry.js → p-a9654609.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-19c7cea5.entry.js → p-aacfa5bb.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-c8d647c1.entry.js → p-ae0bd7c0.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-12304c2d.entry.js → p-b0583ca8.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-74798533.entry.js → p-b0fb9ee3.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-bdf80844.entry.js → p-b9945590.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-324bf5e5.entry.js → p-bb624967.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-82671aa3.entry.js → p-bc8e5ac3.entry.js} +1 -1
  54. package/dist/bromcom-ui/p-cd8880a4.entry.js +5 -0
  55. package/dist/bromcom-ui/{p-0b0ff7ee.entry.js → p-d06ebea4.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-cbb2de64.entry.js → p-d09aa96b.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-9519a9e4.entry.js → p-d1f32bbd.entry.js} +1 -1
  58. package/dist/bromcom-ui/p-d3d07c8c.js +5 -0
  59. package/dist/bromcom-ui/{p-d2670b77.entry.js → p-d9f92297.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-94f43ce3.entry.js → p-da7a34c6.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-068d918e.entry.js → p-dd714afe.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-49bb8e10.js → p-e2f92d0b.js} +1 -1
  63. package/dist/bromcom-ui/{p-5101acb3.js → p-e59b12e2.js} +1 -1
  64. package/dist/bromcom-ui/p-e6938871.js +5 -0
  65. package/dist/bromcom-ui/{p-1b96dbbf.entry.js → p-ebe49b26.entry.js} +1 -1
  66. package/dist/bromcom-ui/{p-78f57233.entry.js → p-ed46db87.entry.js} +1 -1
  67. package/dist/bromcom-ui/{p-2c21b28a.entry.js → p-eebbf79a.entry.js} +1 -1
  68. package/dist/bromcom-ui/{p-f0061666.entry.js → p-eec6999c.entry.js} +1 -1
  69. package/dist/bromcom-ui/p-f6a4bf6e.entry.js +5 -0
  70. package/dist/bromcom-ui/{p-9bf657da.entry.js → p-f84247f5.entry.js} +1 -1
  71. package/dist/bromcom-ui/{p-3db7cc9b.entry.js → p-f93356af.entry.js} +1 -1
  72. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  73. package/dist/cjs/bcm-alert.cjs.entry.js +3 -3
  74. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  75. package/dist/cjs/bcm-avatar_2.cjs.entry.js +17 -2580
  76. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  77. package/dist/cjs/bcm-button-group.cjs.entry.js +3 -3
  78. package/dist/cjs/{bcm-button_8.cjs.entry.js → bcm-button_9.cjs.entry.js} +338 -137
  79. package/dist/cjs/bcm-card.cjs.entry.js +4 -4
  80. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +5 -5
  81. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
  82. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +4 -4
  83. package/dist/cjs/bcm-chip-group.cjs.entry.js +7 -7
  84. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  85. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
  86. package/dist/cjs/bcm-color-input.cjs.entry.js +5 -5
  87. package/dist/cjs/bcm-date-picker.cjs.entry.js +5 -4
  88. package/dist/cjs/bcm-date.cjs.entry.js +7 -7
  89. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +10 -8
  90. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  91. package/dist/cjs/bcm-drawer.cjs.entry.js +5 -5
  92. package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
  93. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +3 -3
  94. package/dist/cjs/bcm-form-2.cjs.entry.js +3 -3
  95. package/dist/cjs/bcm-form.cjs.entry.js +1 -1
  96. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  97. package/dist/cjs/bcm-item.cjs.entry.js +2 -2
  98. package/dist/cjs/bcm-items.cjs.entry.js +3 -3
  99. package/dist/cjs/bcm-list_3.cjs.entry.js +11 -11
  100. package/dist/cjs/bcm-menu.cjs.entry.js +6 -6
  101. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +5 -5
  102. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +5 -5
  103. package/dist/cjs/bcm-modal-2.cjs.entry.js +5 -5
  104. package/dist/cjs/bcm-modal.cjs.entry.js +4 -4
  105. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +4 -4
  106. package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
  107. package/dist/cjs/bcm-popover.cjs.entry.js +5 -5
  108. package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
  109. package/dist/cjs/bcm-radio-group.cjs.entry.js +5 -5
  110. package/dist/cjs/bcm-radio.cjs.entry.js +5 -5
  111. package/dist/cjs/bcm-range.cjs.entry.js +2 -2
  112. package/dist/cjs/bcm-select.cjs.entry.js +1 -1
  113. package/dist/cjs/bcm-skeleton.cjs.entry.js +2 -2
  114. package/dist/cjs/bcm-step.cjs.entry.js +3 -3
  115. package/dist/cjs/bcm-stepper.cjs.entry.js +6 -6
  116. package/dist/cjs/bcm-switch.cjs.entry.js +2 -2
  117. package/dist/cjs/bcm-tab-group.cjs.entry.js +5 -5
  118. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +5 -5
  119. package/dist/cjs/bcm-tab-item.cjs.entry.js +5 -5
  120. package/dist/cjs/bcm-table.cjs.entry.js +5 -5
  121. package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
  122. package/dist/cjs/bcm-text.cjs.entry.js +2 -2
  123. package/dist/cjs/bcm-time-picker.cjs.entry.js +5 -4
  124. package/dist/cjs/bcm-toast.cjs.entry.js +27 -13
  125. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  126. package/dist/cjs/{generate-84a14c1a.js → generate-d1447176.js} +1 -1
  127. package/dist/cjs/{global-5e41fa4e.js → global-cb2f8825.js} +1 -1
  128. package/dist/cjs/index-5279dea2.js +2571 -0
  129. package/dist/cjs/{input-template-b5038151.js → input-template-096e89a6.js} +1 -1
  130. package/dist/cjs/{json-parse-decarator-c18e611d.js → json-parse-decarator-5b03f2c1.js} +1 -1
  131. package/dist/cjs/{label-template-8d34230f.js → label-template-15c3c0ed.js} +1 -1
  132. package/dist/cjs/loader.cjs.js +3 -3
  133. package/dist/cjs/{number-helper-59448c42.js → number-helper-963bdfd3.js} +1 -1
  134. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +5 -5
  135. package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
  136. package/dist/cjs/{package-fe10d578.js → package-8e8fd90e.js} +1 -1
  137. package/dist/cjs/{popover-placement-86ece590.js → popover-placement-8866eab1.js} +1 -1
  138. package/dist/cjs/{slot-template-758beb71.js → slot-template-de6a91b1.js} +1 -1
  139. package/dist/cjs/{stepper-states-deb53239.js → stepper-states-35ea924b.js} +1 -1
  140. package/dist/cjs/{string-helper-b89a9828.js → string-helper-9b392049.js} +2 -2
  141. package/dist/cjs/{tooltip-helper-5b2ee66d.js → tooltip-helper-e51cfadd.js} +4 -4
  142. package/dist/cjs/{validators-d89fdce5.js → validators-b3ac8a39.js} +1 -1
  143. package/dist/collection/components/molecules/input-dropdown/input-dropdown.css +9 -2
  144. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +200 -149
  145. package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +73 -0
  146. package/dist/collection/components/organism/date-picker/date-picker.css +1 -1
  147. package/dist/collection/components/organism/date-picker/date-picker.js +20 -1
  148. package/dist/collection/components/organism/datetime-picker/datetime-picker.css +13 -1
  149. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +21 -1
  150. package/dist/collection/components/organism/list/list.css +1 -1
  151. package/dist/collection/components/organism/time-picker/time-picker.css +1 -1
  152. package/dist/collection/components/organism/time-picker/time-picker.js +20 -1
  153. package/dist/collection/components/other/toast/toast.js +25 -11
  154. package/dist/collection/helper/string-helper.js +2 -2
  155. package/dist/components/avatar.js +2 -1
  156. package/dist/components/badge.js +2 -2565
  157. package/dist/components/bcm-date-picker.js +4 -2
  158. package/dist/components/bcm-input-dropdown.js +214 -149
  159. package/dist/components/bcm-textarea.js +1 -214
  160. package/dist/components/bcm-time-picker.js +4 -2
  161. package/dist/components/bcm-toast.js +24 -10
  162. package/dist/components/datetime-picker.js +5 -2
  163. package/dist/components/generate.js +1 -1
  164. package/dist/components/index.d.ts +1 -1
  165. package/dist/components/index5.js +2569 -0
  166. package/dist/components/list.js +1 -1
  167. package/dist/components/string-helper.js +2 -2
  168. package/dist/{esm/bcm-textarea.entry.js → components/textarea.js} +80 -19
  169. package/dist/esm/bcm-accordion.entry.js +2 -2
  170. package/dist/esm/bcm-alert.entry.js +3 -3
  171. package/dist/esm/bcm-attendance.entry.js +2 -2
  172. package/dist/esm/bcm-avatar_2.entry.js +6 -2569
  173. package/dist/esm/bcm-breadcrumb.entry.js +2 -2
  174. package/dist/esm/bcm-button-group.entry.js +3 -3
  175. package/dist/esm/{bcm-button_8.entry.js → bcm-button_9.entry.js} +339 -139
  176. package/dist/esm/bcm-card.entry.js +4 -4
  177. package/dist/esm/bcm-checkbox-group.entry.js +5 -5
  178. package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
  179. package/dist/esm/bcm-checkbox_2.entry.js +4 -4
  180. package/dist/esm/bcm-chip-group.entry.js +7 -7
  181. package/dist/esm/bcm-chip.entry.js +2 -2
  182. package/dist/esm/bcm-collapse.entry.js +2 -2
  183. package/dist/esm/bcm-color-input.entry.js +5 -5
  184. package/dist/esm/bcm-date-picker.entry.js +5 -4
  185. package/dist/esm/bcm-date.entry.js +7 -7
  186. package/dist/esm/bcm-datetime-picker.entry.js +10 -8
  187. package/dist/esm/bcm-default.entry.js +2 -2
  188. package/dist/esm/bcm-drawer.entry.js +5 -5
  189. package/dist/esm/bcm-dropdown.entry.js +3 -3
  190. package/dist/esm/bcm-expansion-panel.entry.js +3 -3
  191. package/dist/esm/bcm-form-2.entry.js +3 -3
  192. package/dist/esm/bcm-form.entry.js +1 -1
  193. package/dist/esm/bcm-input-custom.entry.js +2 -2
  194. package/dist/esm/bcm-item.entry.js +2 -2
  195. package/dist/esm/bcm-items.entry.js +3 -3
  196. package/dist/esm/bcm-list_3.entry.js +11 -11
  197. package/dist/esm/bcm-menu.entry.js +6 -6
  198. package/dist/esm/bcm-modal-2-footer.entry.js +5 -5
  199. package/dist/esm/bcm-modal-2-header.entry.js +5 -5
  200. package/dist/esm/bcm-modal-2.entry.js +5 -5
  201. package/dist/esm/bcm-modal.entry.js +4 -4
  202. package/dist/esm/bcm-popconfirm-box.entry.js +4 -4
  203. package/dist/esm/bcm-popconfirm.entry.js +2 -2
  204. package/dist/esm/bcm-popover.entry.js +5 -5
  205. package/dist/esm/bcm-progress.entry.js +2 -2
  206. package/dist/esm/bcm-radio-group.entry.js +5 -5
  207. package/dist/esm/bcm-radio.entry.js +5 -5
  208. package/dist/esm/bcm-range.entry.js +2 -2
  209. package/dist/esm/bcm-select.entry.js +1 -1
  210. package/dist/esm/bcm-skeleton.entry.js +2 -2
  211. package/dist/esm/bcm-step.entry.js +3 -3
  212. package/dist/esm/bcm-stepper.entry.js +6 -6
  213. package/dist/esm/bcm-switch.entry.js +2 -2
  214. package/dist/esm/bcm-tab-group.entry.js +5 -5
  215. package/dist/esm/bcm-tab-item-header.entry.js +5 -5
  216. package/dist/esm/bcm-tab-item.entry.js +5 -5
  217. package/dist/esm/bcm-table.entry.js +5 -5
  218. package/dist/esm/bcm-tag.entry.js +3 -3
  219. package/dist/esm/bcm-text.entry.js +2 -2
  220. package/dist/esm/bcm-time-picker.entry.js +5 -4
  221. package/dist/esm/bcm-toast.entry.js +27 -13
  222. package/dist/esm/bromcom-ui.js +3 -3
  223. package/dist/esm/{generate-77bbe272.js → generate-8591a0f0.js} +1 -1
  224. package/dist/esm/{global-1b5f8bb5.js → global-e7818ee3.js} +1 -1
  225. package/dist/esm/index-3bc8c6e3.js +2569 -0
  226. package/dist/esm/{input-template-bf10f00a.js → input-template-6519906b.js} +1 -1
  227. package/dist/esm/{json-parse-decarator-7a13e271.js → json-parse-decarator-58846417.js} +1 -1
  228. package/dist/esm/{label-template-f156f33f.js → label-template-62e49c38.js} +1 -1
  229. package/dist/esm/loader.js +3 -3
  230. package/dist/esm/{number-helper-787aa192.js → number-helper-6ef9165b.js} +1 -1
  231. package/dist/esm/old-bcm-popover-box.entry.js +5 -5
  232. package/dist/esm/old-bcm-popover.entry.js +2 -2
  233. package/dist/esm/{package-42b4a30f.js → package-569c91f0.js} +1 -1
  234. package/dist/esm/{popover-placement-018109c4.js → popover-placement-7cce412f.js} +1 -1
  235. package/dist/esm/{slot-template-46035685.js → slot-template-7447145d.js} +1 -1
  236. package/dist/esm/{stepper-states-9f10dd4d.js → stepper-states-14adccae.js} +1 -1
  237. package/dist/esm/{string-helper-4a28f775.js → string-helper-5ef67a66.js} +2 -2
  238. package/dist/esm/{tooltip-helper-a6101f5d.js → tooltip-helper-3c146a26.js} +4 -4
  239. package/dist/esm/{validators-0ba6d217.js → validators-358cf956.js} +1 -1
  240. package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +25 -17
  241. package/dist/types/components/molecules/input-dropdown/input-dropdown.style.d.ts +307 -0
  242. package/dist/types/components/organism/date-picker/date-picker.d.ts +1 -0
  243. package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +1 -0
  244. package/dist/types/components/organism/time-picker/time-picker.d.ts +1 -0
  245. package/dist/types/components/other/toast/toast.d.ts +1 -0
  246. package/dist/types/components.d.ts +19 -7
  247. package/package.json +1 -1
  248. package/dist/bromcom-ui/p-042efd5e.entry.js +0 -5
  249. package/dist/bromcom-ui/p-2608b100.entry.js +0 -5
  250. package/dist/bromcom-ui/p-2a9053d8.js +0 -5
  251. package/dist/bromcom-ui/p-2ba8bfb9.js +0 -5
  252. package/dist/bromcom-ui/p-45ca98b5.entry.js +0 -5
  253. package/dist/bromcom-ui/p-4ae97c02.entry.js +0 -5
  254. package/dist/bromcom-ui/p-5600c817.js +0 -5
  255. package/dist/bromcom-ui/p-57a08b2c.entry.js +0 -5
  256. package/dist/bromcom-ui/p-7014cade.entry.js +0 -5
  257. package/dist/bromcom-ui/p-8403e81f.entry.js +0 -5
  258. package/dist/bromcom-ui/p-bebbec89.entry.js +0 -5
  259. package/dist/bromcom-ui/p-edfa7c7b.entry.js +0 -5
  260. package/dist/bromcom-ui/p-f8a91bd5.js +0 -5
  261. package/dist/cjs/bcm-textarea.cjs.entry.js +0 -163
@@ -1,163 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- 'use strict';
6
-
7
- Object.defineProperty(exports, '__esModule', { value: true });
8
-
9
- const index = require('./index-c591ecec.js');
10
- const index$1 = require('./index-95ae50d0.js');
11
- const isLoadDecorator = require('./is-load-decorator-7575fbd2.js');
12
- const generate = require('./generate-84a14c1a.js');
13
- const bcm = require('./bcm-03727f3b.js');
14
- const captionTemplate = require('./caption-template-81dbc490.js');
15
- const inputTemplate = require('./input-template-b5038151.js');
16
- const utils = require('./utils-fc077139.js');
17
- require('./_commonjsHelpers-ed84c3ca.js');
18
- require('./package-fe10d578.js');
19
- require('./colors-078851ec.js');
20
- require('./types-cc4adee7.js');
21
-
22
- var ResizeType;
23
- (function (ResizeType) {
24
- ResizeType["none"] = "none";
25
- ResizeType["both"] = "both";
26
- ResizeType["horizontal"] = "horizontal";
27
- ResizeType["vertical"] = "vertical";
28
- ResizeType["initial"] = "initial";
29
- ResizeType["inherit"] = "inherit";
30
- })(ResizeType || (ResizeType = {}));
31
-
32
- const textareaCss = "@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\"); @import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); @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-caption-area{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-size:12px;line-height:calc(12px + 8px);color:var(--bcm-new-ds-color-slate-400);display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;margin-top:2px}.bcm-caption-area__text{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.default{color:var(--bcm-new-ds-color-slate-400)}.bcm-caption-area__text.info{color:var(--bcm-new-ds-color-blue-500)}.bcm-caption-area__text.success{color:var(--bcm-new-ds-color-emerald-500)}.bcm-caption-area__text.warning{color:var(--bcm-new-ds-color-amber-500)}.bcm-caption-area__text.error{color:var(--bcm-new-ds-color-red-500)}.bcm-caption-area__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-caption-area__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-caption-area__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}*{box-sizing:border-box}.bcm-label{display:inline-flex;align-items:flex-start;grid-gap:2px}.bcm-label__text{margin-bottom:2px;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-block;color:var(--bcm-new-ds-color-slate-600)}.bcm-label__size-small{font-size:10px;line-height:calc(10px + 8px);min-height:calc(10px + 8px)}.bcm-label__size-medium{font-size:12px;line-height:calc(12px + 8px);min-height:calc(12px + 8px)}.bcm-label__size-large{font-size:14px;line-height:calc(14px + 8px);min-height:calc(14px + 8px)}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-input{display:inline-flex;flex-direction:column;width:100%;max-width:256px;margin-bottom:8px}.bcm-input.full-width{max-width:100%}.bcm-input.hidden{display:none}.bcm-input__container{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:flex;align-items:stretch;flex-direction:row;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;box-sizing:border-box;cursor:text;padding:0 0 0 4px;position:relative;width:100%}.bcm-input__container.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.bcm-input__container.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-500)}.bcm-input__container.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.bcm-input__container.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.bcm-input__container:not(.disabled):hover .caret-container,.bcm-input__container:not(.disabled).focused .caret-container{opacity:1}.bcm-input__container:not(.disabled):hover .input-clear-button,.bcm-input__container:not(.disabled).focused .input-clear-button{opacity:1}.bcm-input__container:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.bcm-input__container:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.bcm-input__container.empty .input-clear-button{display:none}.bcm-input__container.invalid,.bcm-input__container.error{border-color:var(--bcm-new-ds-color-red-500)}.bcm-input__container .bcm-input-element{width:100%;color:var(--bcm-new-ds-color-slate-600);flex:1;border:none;background:transparent;box-shadow:unset;padding:0 4px;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;overflow:hidden;text-overflow:ellipsis}.bcm-input__container .bcm-input-element::placeholder{font-family:\"Inter\", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.bcm-input__container .bcm-input-element::-webkit-search-decoration,.bcm-input__container .bcm-input-element::-webkit-search-cancel-button,.bcm-input__container .bcm-input-element::-webkit-search-results-button,.bcm-input__container .bcm-input-element::-webkit-search-results-decoration,.bcm-input__container .bcm-input-element::-webkit-calendar-picker-indicator,.bcm-input__container .bcm-input-element::-webkit-inner-spin-button,.bcm-input__container .bcm-input-element::-webkit-outer-spin-button{-webkit-appearance:none}.bcm-input__container .caret-container{width:30px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;border-left:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box}.bcm-input__container .caret-container .bcm-input-caret{display:flex;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer;flex:1}.bcm-input__container .caret-container .bcm-input-caret bcm-icon{line-height:1}.bcm-input__container .caret-container .bcm-input-caret:hover{color:var(--bcm-color-prime-blue-6)}.bcm-input__container .caret-container .bcm-input-caret:active{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container .bcm-input-caret:last-child{border-top:1px solid #D9D9D9}.bcm-input__container .caret-container.disabled{background-color:var(--bcm-color-grey-3)}.bcm-input__container .caret-container.disabled .bcm-input-caret{cursor:not-allowed}.bcm-input__container .input-suffix-content{display:flex;align-items:center;justify-content:center}.bcm-input__container .input-prefix:not(:empty){padding-left:4px}.bcm-input__container .input-suffix:not(:empty){min-width:24px;padding-right:4px}.bcm-input__container .input-prefix:not(:empty),.bcm-input__container .input-suffix:not(:empty){display:flex;align-items:center;justify-content:center;cursor:default;color:#64748a}.bcm-input__container .input-prefix:not(:empty) .unit-prefix,.bcm-input__container .input-suffix:not(:empty) .unit-prefix{color:#64748a}.bcm-input__container .input-prefix-button:not(:empty),.bcm-input__container .input-suffix-button:not(:empty){cursor:pointer}.bcm-input__container .caret-container,.bcm-input__container .input-clear-button{opacity:0}.bcm-input__container--small{font-size:12px}.bcm-input__container--medium{font-size:14px}.bcm-input__container--large{font-size:16px}.bcm-input__textarea.clearable .bcm-input-element{padding-right:24px}.bcm-input__textarea .input-clear-button{position:absolute;top:4px;right:0}";
33
-
34
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
35
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
36
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
37
- r = Reflect.decorate(decorators, target, key, desc);
38
- else
39
- for (var i = decorators.length - 1; i >= 0; i--)
40
- if (d = decorators[i])
41
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
42
- return c > 3 && r && Object.defineProperty(target, key, r), r;
43
- };
44
- const BcmTextarea = class {
45
- constructor(hostRef) {
46
- index.registerInstance(this, hostRef);
47
- this.focus = index.createEvent(this, "bcm-focus", 7);
48
- this.blur = index.createEvent(this, "bcm-blur", 7);
49
- this.clear = index.createEvent(this, "bcm-clear", 7);
50
- this.change = index.createEvent(this, "bcm-change", 7);
51
- this.input = index.createEvent(this, "bcm-input", 7);
52
- this._id = generate.Generate.UID();
53
- this._internal_id = generate.Generate.UID();
54
- this.hidden = false;
55
- this.value = undefined;
56
- this.placeholder = undefined;
57
- this.label = undefined;
58
- this.name = undefined;
59
- this.required = false;
60
- this.caption = undefined;
61
- this.noCaption = false;
62
- this.captionError = undefined;
63
- this.captionType = bcm.Bcm.Status.default;
64
- this.rows = 3;
65
- this.size = bcm.Bcm.Size.medium;
66
- this.disabled = undefined;
67
- this.readonly = false;
68
- this.clearable = undefined;
69
- this.resize = ResizeType.vertical;
70
- this.fullWidth = false;
71
- this.maxLength = undefined;
72
- this.focused = false;
73
- this.captionCache = undefined;
74
- this.captionTypeCache = undefined;
75
- }
76
- connectedCallback() {
77
- this.captionCache = this.caption;
78
- this.captionTypeCache = this.captionType;
79
- }
80
- async onBcmFocus() {
81
- this.textarea.focus();
82
- }
83
- async onBcmBlur() {
84
- this.textarea.blur();
85
- }
86
- async onBcmSelect() {
87
- this.textarea.select();
88
- }
89
- async set(data) {
90
- await this.setValue(data);
91
- }
92
- async get() {
93
- return this.value || null;
94
- }
95
- async setValue(value) {
96
- this.textarea.value = value;
97
- this.value = value;
98
- this.handleChange();
99
- return value;
100
- }
101
- async setClear() {
102
- this.textarea.value = '';
103
- this.value = '';
104
- await utils.delay(10);
105
- return Promise.resolve();
106
- }
107
- async resetCaption() {
108
- await utils.delay(10);
109
- this.caption = this.captionCache;
110
- this.captionType = this.captionTypeCache;
111
- this.captionError = null;
112
- await utils.delay(10);
113
- return Promise.resolve();
114
- }
115
- async getValue() {
116
- return this.value;
117
- }
118
- watchValue(newValue) {
119
- this.textarea.value = newValue;
120
- this.handleChange();
121
- }
122
- handleFocus() {
123
- this.focused = true;
124
- this.focus.emit();
125
- }
126
- handleBlur() {
127
- this.focused = false;
128
- this.blur.emit();
129
- }
130
- handleChange() {
131
- this.value = this.textarea.value;
132
- this.change.emit(this.value);
133
- }
134
- handleInput() {
135
- this.value = this.textarea.value;
136
- this.input.emit(this.value);
137
- }
138
- handleClear(e) {
139
- this.textarea.value = '';
140
- this.value = '';
141
- this.clear.emit();
142
- this.textarea.focus();
143
- e.stopPropagation();
144
- }
145
- render() {
146
- const { _id, hidden, readonly, fullWidth, size, rows, disabled, clearable, label, focused, noCaption, caption, captionError, captionType, value, resize, maxLength, placeholder, required } = this;
147
- const hostClasses = index$1.classnames('bcm-input', {
148
- hidden,
149
- 'full-width': fullWidth,
150
- });
151
- return (index.h(index.Host, { class: hostClasses }, label && index.h("bcm-label", { type: captionType, value: label, required: required, htmlFor: _id }), index.h(inputTemplate.InputTemplate, { elementType: bcm.Bcm.HtmlElementType.textarea, id: _id, value: value, rows: rows, disabled: disabled, maxLength: maxLength, placeholder: placeholder, clearable: clearable, resize: resize, readonly: readonly, size: size, focused: focused, handleFocus: () => this.handleFocus(), handleBlur: () => this.handleBlur(), handleChange: () => this.handleChange(), handleInput: () => this.handleInput(), handleClear: (e) => this.handleClear(e), ref: (el) => this.textarea = el, captionType: captionType }), index.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, value: value, maxLength: maxLength })));
152
- }
153
- get el() { return index.getElement(this); }
154
- static get watchers() { return {
155
- "value": ["watchValue"]
156
- }; }
157
- };
158
- __decorate([
159
- isLoadDecorator.IsLoad()
160
- ], BcmTextarea.prototype, "el", void 0);
161
- BcmTextarea.style = textareaCss;
162
-
163
- exports.bcm_textarea = BcmTextarea;