bromcom-ui 2.9.0-rc.14 → 2.9.0-rc.15

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 (337) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/p-01557c50.entry.js +5 -0
  3. package/dist/bromcom-ui/p-041126d7.entry.js +5 -0
  4. package/dist/bromcom-ui/{p-4798d827.js → p-07c3eb8e.js} +1 -1
  5. package/dist/bromcom-ui/{p-6a7e07a9.entry.js → p-10f6df36.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-ba3c6657.entry.js → p-1c801d0c.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-df185078.entry.js → p-1c9314bd.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-8a117641.entry.js → p-1f5d0561.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-3006537d.entry.js → p-245a569e.entry.js} +1 -1
  10. package/dist/bromcom-ui/p-250ab35e.entry.js +13 -0
  11. package/dist/bromcom-ui/{p-7f1612df.entry.js → p-2aaeb247.entry.js} +1 -1
  12. package/dist/bromcom-ui/p-2dd61eee.entry.js +5 -0
  13. package/dist/bromcom-ui/{p-c17a1c9c.entry.js → p-2e480f64.entry.js} +1 -1
  14. package/dist/bromcom-ui/p-33602526.entry.js +5 -0
  15. package/dist/bromcom-ui/p-3432a82d.js +19 -0
  16. package/dist/bromcom-ui/{p-8d7c1af0.entry.js → p-3a992769.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-37488f1a.entry.js → p-3b9a3c38.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-4df7fdfe.entry.js → p-438e38a8.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-9314d7ed.entry.js → p-46207bba.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-6b5754c6.entry.js → p-4961dc1f.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-d421811f.entry.js → p-4b0275bf.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-123d6355.entry.js → p-4e79863b.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-6e592196.entry.js → p-560ce7f5.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-7b486021.entry.js → p-5699f67d.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-91246af3.js → p-5855a3ac.js} +1 -1
  26. package/dist/bromcom-ui/{p-dec4ea67.entry.js → p-5ea0ebfd.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-8fcf6a44.js → p-5ee90aab.js} +1 -1
  28. package/dist/bromcom-ui/p-5f0daba7.entry.js +5 -0
  29. package/dist/bromcom-ui/p-61193b4a.js +5 -0
  30. package/dist/bromcom-ui/{p-e7728eb8.entry.js → p-616eb967.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-3078fcd2.entry.js → p-626b805d.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-f6648bd1.js → p-63e7f7ca.js} +1 -1
  33. package/dist/bromcom-ui/p-64a2dd84.entry.js +5 -0
  34. package/dist/bromcom-ui/p-64fad38b.js +11 -0
  35. package/dist/bromcom-ui/p-689cff39.entry.js +5 -0
  36. package/dist/bromcom-ui/{p-01416407.entry.js → p-69260d36.entry.js} +1 -1
  37. package/dist/bromcom-ui/p-6bd58eb2.entry.js +5 -0
  38. package/dist/bromcom-ui/{p-034bbcdd.js → p-6edf985f.js} +1 -1
  39. package/dist/bromcom-ui/p-71a5cbd0.entry.js +5 -0
  40. package/dist/bromcom-ui/{p-e096c551.entry.js → p-7441ea36.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-43a16ce4.js → p-74f28bd6.js} +1 -1
  42. package/dist/bromcom-ui/p-75668f78.entry.js +5 -0
  43. package/dist/bromcom-ui/{p-28f78dd4.entry.js → p-7d18ce0e.entry.js} +1 -1
  44. package/dist/bromcom-ui/p-7e289ea9.entry.js +5 -0
  45. package/dist/bromcom-ui/p-84f08fc7.entry.js +5 -0
  46. package/dist/bromcom-ui/{p-a42921be.entry.js → p-854d7f14.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-e45c1546.js → p-85eedabc.js} +1 -1
  48. package/dist/bromcom-ui/p-89155301.entry.js +5 -0
  49. package/dist/bromcom-ui/{p-02ad5557.entry.js → p-8994c73d.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-12a73bfa.entry.js → p-8adc3340.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-fd37157c.entry.js → p-9215fe3e.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-395c780d.entry.js → p-921e14a0.entry.js} +1 -1
  53. package/dist/bromcom-ui/p-9850cbce.js +5 -0
  54. package/dist/bromcom-ui/p-986da63d.entry.js +5 -0
  55. package/dist/bromcom-ui/p-98fddc9a.entry.js +5 -0
  56. package/dist/bromcom-ui/{p-8c111486.entry.js → p-9b786a19.entry.js} +1 -1
  57. package/dist/bromcom-ui/p-9d4504f2.js +5 -0
  58. package/dist/bromcom-ui/{p-00c15b34.entry.js → p-a107ad5c.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-88c10970.entry.js → p-a389094e.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-4e33341b.entry.js → p-a664cc20.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-d28142f9.entry.js → p-a7d791f3.entry.js} +1 -1
  62. package/dist/bromcom-ui/p-aa7af475.entry.js +5 -0
  63. package/dist/bromcom-ui/{p-1359971c.entry.js → p-acae5107.entry.js} +1 -1
  64. package/dist/bromcom-ui/p-adf9975b.js +5 -0
  65. package/dist/bromcom-ui/p-af3a04fa.entry.js +5 -0
  66. package/dist/bromcom-ui/p-b0c257dc.entry.js +5 -0
  67. package/dist/bromcom-ui/{p-1cadeabe.entry.js → p-b10f0360.entry.js} +1 -1
  68. package/dist/bromcom-ui/{p-a2ab6adb.entry.js → p-b3ed20fd.entry.js} +1 -1
  69. package/dist/bromcom-ui/{p-6ab403d2.entry.js → p-b4ab469f.entry.js} +1 -1
  70. package/dist/bromcom-ui/p-b4dedf15.js +5 -0
  71. package/dist/bromcom-ui/p-b81e8f91.js +5 -0
  72. package/dist/bromcom-ui/{p-3a06c6b1.entry.js → p-ba9eff2a.entry.js} +1 -1
  73. package/dist/bromcom-ui/{p-ebe49b26.entry.js → p-bb43edd6.entry.js} +1 -1
  74. package/dist/bromcom-ui/{p-0332d483.js → p-bb4c1bd7.js} +1 -1
  75. package/dist/bromcom-ui/p-c1863294.entry.js +5 -0
  76. package/dist/bromcom-ui/p-c778dc08.js +5 -0
  77. package/dist/bromcom-ui/{p-9d12a9da.entry.js → p-c9c7067e.entry.js} +1 -1
  78. package/dist/bromcom-ui/{p-dbbe85a2.entry.js → p-d3c73f06.entry.js} +1 -1
  79. package/dist/bromcom-ui/{p-8c3535b6.entry.js → p-d551a51d.entry.js} +1 -1
  80. package/dist/bromcom-ui/{p-6b7f2b84.entry.js → p-da961102.entry.js} +1 -1
  81. package/dist/bromcom-ui/{p-461a8ad1.js → p-dc408605.js} +1 -1
  82. package/dist/bromcom-ui/{p-dc8305dc.js → p-df49c771.js} +1 -1
  83. package/dist/bromcom-ui/p-e161ca50.entry.js +5 -0
  84. package/dist/bromcom-ui/{p-5f9c9549.entry.js → p-e906f698.entry.js} +1 -1
  85. package/dist/bromcom-ui/{p-3960cae8.entry.js → p-ece578ef.entry.js} +1 -1
  86. package/dist/bromcom-ui/{p-1e439cb9.entry.js → p-ed0327fa.entry.js} +1 -1
  87. package/dist/bromcom-ui/{p-74d95615.js → p-f4c1f369.js} +1 -1
  88. package/dist/bromcom-ui/{p-774708c3.js → p-f6aefdd0.js} +1 -1
  89. package/dist/bromcom-ui/{p-d8cadf00.entry.js → p-f96a3dfc.entry.js} +1 -1
  90. package/dist/bromcom-ui/{p-84e87c10.entry.js → p-fbd1bec7.entry.js} +1 -1
  91. package/dist/bromcom-ui/{p-b284e383.entry.js → p-fff1a0f9.entry.js} +1 -1
  92. package/dist/cjs/{bcm-03727f3b.js → bcm-2f1e54ba.js} +27 -27
  93. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  94. package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
  95. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  96. package/dist/cjs/bcm-avatar_2.cjs.entry.js +6 -7
  97. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  98. package/dist/cjs/bcm-button-group.cjs.entry.js +4 -4
  99. package/dist/cjs/{bcm-button_9.cjs.entry.js → bcm-button_14.cjs.entry.js} +16737 -891
  100. package/dist/cjs/bcm-card.cjs.entry.js +5 -5
  101. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +7 -7
  102. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +3 -3
  103. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +6 -6
  104. package/dist/cjs/bcm-chip-group.cjs.entry.js +8 -9
  105. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  106. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
  107. package/dist/cjs/bcm-color-input.cjs.entry.js +6 -7
  108. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  109. package/dist/cjs/bcm-drawer.cjs.entry.js +6 -7
  110. package/dist/cjs/bcm-dropdown.cjs.entry.js +5 -5
  111. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +4 -4
  112. package/dist/cjs/bcm-form.cjs.entry.js +3 -3
  113. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  114. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +309 -0
  115. package/dist/cjs/bcm-item.cjs.entry.js +3 -3
  116. package/dist/cjs/bcm-items.cjs.entry.js +4 -4
  117. package/dist/cjs/bcm-link.cjs.entry.js +1 -1
  118. package/dist/cjs/bcm-list_3.cjs.entry.js +28 -29
  119. package/dist/cjs/bcm-menu.cjs.entry.js +9 -10
  120. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -7
  121. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -7
  122. package/dist/cjs/bcm-modal-2.cjs.entry.js +6 -7
  123. package/dist/cjs/bcm-modal.cjs.entry.js +5 -5
  124. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +5 -5
  125. package/dist/cjs/bcm-popconfirm.cjs.entry.js +3 -3
  126. package/dist/cjs/bcm-popover.cjs.entry.js +7 -8
  127. package/dist/cjs/bcm-progress.cjs.entry.js +3 -3
  128. package/dist/cjs/bcm-radio-group.cjs.entry.js +7 -8
  129. package/dist/cjs/bcm-radio.cjs.entry.js +6 -7
  130. package/dist/cjs/bcm-range.cjs.entry.js +3 -3
  131. package/dist/cjs/bcm-select.cjs.entry.js +2 -2
  132. package/dist/cjs/bcm-skeleton.cjs.entry.js +2 -2
  133. package/dist/cjs/bcm-step.cjs.entry.js +3 -3
  134. package/dist/cjs/bcm-stepper.cjs.entry.js +7 -8
  135. package/dist/cjs/bcm-switch.cjs.entry.js +4 -4
  136. package/dist/cjs/bcm-tab-group.cjs.entry.js +6 -7
  137. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +6 -7
  138. package/dist/cjs/bcm-tab-item.cjs.entry.js +6 -7
  139. package/dist/cjs/bcm-table.cjs.entry.js +6 -7
  140. package/dist/cjs/bcm-tag.cjs.entry.js +4 -4
  141. package/dist/cjs/bcm-text.cjs.entry.js +3 -3
  142. package/dist/cjs/bcm-textarea.cjs.entry.js +163 -0
  143. package/dist/cjs/bcm-toast.cjs.entry.js +4 -4
  144. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  145. package/dist/cjs/{floating-ui-baa45717.js → floating-ui-b8cf8165.js} +1 -1
  146. package/dist/cjs/{generate-3ece348b.js → generate-a8f024e6.js} +1 -1
  147. package/dist/cjs/{global-6ab24771.js → global-a2abdfa3.js} +1 -1
  148. package/dist/cjs/{index-e05a7c6f.js → index-7eed931f.js} +1625 -24
  149. package/dist/cjs/{input-template-dba31783.js → input-template-b7d69c48.js} +2 -2
  150. package/dist/cjs/{is-load-decorator-7575fbd2.js → is-load-decorator-15036f37.js} +2 -1
  151. package/dist/cjs/{json-parse-decarator-1987a7bd.js → json-parse-decarator-4ca20ea1.js} +1 -1
  152. package/dist/cjs/{label-template-15c3c0ed.js → label-template-7549bfd3.js} +2 -2
  153. package/dist/cjs/loader.cjs.js +3 -3
  154. package/dist/cjs/{number-helper-f80c6c41.js → number-helper-10130b47.js} +1 -1
  155. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
  156. package/dist/cjs/old-bcm-popover.cjs.entry.js +3 -3
  157. package/dist/cjs/{package-338cedd9.js → package-e4999946.js} +1 -1
  158. package/dist/cjs/{popover-placement-8866eab1.js → popover-placement-e2d2de50.js} +1 -1
  159. package/dist/cjs/{slot-template-de6a91b1.js → slot-template-c6d74441.js} +1 -1
  160. package/dist/cjs/{stepper-states-310b6127.js → stepper-states-1fc0765b.js} +1 -1
  161. package/dist/cjs/{string-helper-9b392049.js → string-helper-77273186.js} +1 -1
  162. package/dist/cjs/{tooltip-helper-1a672e09.js → tooltip-helper-57810baa.js} +6 -7
  163. package/dist/cjs/{validators-c318271a.js → validators-b6b4447d.js} +6 -1
  164. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +16 -14
  165. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +1 -1
  166. package/dist/collection/components/organism/list/list.js +19 -0
  167. package/dist/collection/components/third-parts/rc-picker/date.js +163 -19
  168. package/dist/collection/components/third-parts/rc-picker/rc-picker.css +912 -366
  169. package/dist/collection/components/third-parts/rc-picker/rc-picker.js +210 -33
  170. package/dist/collection/decorators/is-load-decorator.js +2 -1
  171. package/dist/collection/models/bcm.js +27 -27
  172. package/dist/components/bcm-date.js +54 -12
  173. package/dist/components/bcm.js +27 -27
  174. package/dist/components/datetime-picker.js +1 -1
  175. package/dist/components/generate.js +1 -1
  176. package/dist/components/is-load-decorator.js +2 -1
  177. package/dist/components/list.js +2 -0
  178. package/dist/components/rc-picker.js +64 -29
  179. package/dist/esm/{_commonjsHelpers-be0d4ec8.js → _commonjsHelpers-7002e5de.js} +1 -1
  180. package/dist/esm/{bcm-ac17222c.js → bcm-40f18097.js} +27 -27
  181. package/dist/esm/bcm-accordion.entry.js +4 -4
  182. package/dist/esm/bcm-alert.entry.js +7 -7
  183. package/dist/esm/bcm-attendance.entry.js +4 -4
  184. package/dist/esm/bcm-autocomplete.entry.js +2 -2
  185. package/dist/esm/bcm-avatar_2.entry.js +9 -10
  186. package/dist/esm/bcm-breadcrumb.entry.js +5 -5
  187. package/dist/esm/bcm-button-group.entry.js +7 -7
  188. package/dist/esm/{bcm-button_9.entry.js → bcm-button_14.entry.js} +16737 -896
  189. package/dist/esm/bcm-card.entry.js +9 -9
  190. package/dist/esm/bcm-checkbox-group.entry.js +10 -10
  191. package/dist/esm/bcm-checkbox-lite_9.entry.js +6 -6
  192. package/dist/esm/bcm-checkbox_2.entry.js +11 -11
  193. package/dist/esm/bcm-chip-group.entry.js +13 -14
  194. package/dist/esm/bcm-chip.entry.js +6 -6
  195. package/dist/esm/bcm-collapse.entry.js +5 -5
  196. package/dist/esm/bcm-color-input.entry.js +9 -10
  197. package/dist/esm/bcm-colorpicker.entry.js +2 -2
  198. package/dist/esm/bcm-default.entry.js +4 -4
  199. package/dist/esm/bcm-drawer.entry.js +10 -11
  200. package/dist/esm/bcm-dropdown.entry.js +8 -8
  201. package/dist/esm/bcm-error-layout.entry.js +2 -2
  202. package/dist/esm/bcm-expansion-panel.entry.js +8 -8
  203. package/dist/esm/bcm-form.entry.js +5 -5
  204. package/dist/esm/bcm-input-custom.entry.js +5 -5
  205. package/dist/esm/bcm-input-dropdown.entry.js +305 -0
  206. package/dist/esm/bcm-item.entry.js +7 -7
  207. package/dist/esm/bcm-items.entry.js +6 -6
  208. package/dist/esm/bcm-link.entry.js +3 -3
  209. package/dist/esm/bcm-list_3.entry.js +19 -20
  210. package/dist/esm/bcm-menu.entry.js +13 -14
  211. package/dist/esm/bcm-message.entry.js +2 -2
  212. package/dist/esm/bcm-modal-2-footer.entry.js +10 -11
  213. package/dist/esm/bcm-modal-2-header.entry.js +9 -10
  214. package/dist/esm/bcm-modal-2.entry.js +10 -11
  215. package/dist/esm/bcm-modal.entry.js +8 -8
  216. package/dist/esm/bcm-notification.entry.js +2 -2
  217. package/dist/esm/bcm-old-tag_2.entry.js +2 -2
  218. package/dist/esm/bcm-overlay_2.entry.js +3 -3
  219. package/dist/esm/bcm-popconfirm-box.entry.js +9 -9
  220. package/dist/esm/bcm-popconfirm.entry.js +6 -6
  221. package/dist/esm/bcm-popover.entry.js +10 -11
  222. package/dist/esm/bcm-progress.entry.js +7 -7
  223. package/dist/esm/bcm-radio-group.entry.js +12 -13
  224. package/dist/esm/bcm-radio.entry.js +10 -11
  225. package/dist/esm/bcm-range.entry.js +6 -6
  226. package/dist/esm/bcm-result.entry.js +2 -2
  227. package/dist/esm/bcm-select-group.entry.js +2 -2
  228. package/dist/esm/bcm-select-option.entry.js +2 -2
  229. package/dist/esm/bcm-select.entry.js +4 -4
  230. package/dist/esm/bcm-skeleton.entry.js +4 -4
  231. package/dist/esm/bcm-step.entry.js +6 -6
  232. package/dist/esm/bcm-stepper.entry.js +11 -12
  233. package/dist/esm/bcm-switch.entry.js +8 -8
  234. package/dist/esm/bcm-tab-group.entry.js +9 -10
  235. package/dist/esm/bcm-tab-item-header.entry.js +10 -11
  236. package/dist/esm/bcm-tab-item.entry.js +9 -10
  237. package/dist/esm/bcm-tab-pane.entry.js +2 -2
  238. package/dist/esm/bcm-tab.entry.js +2 -2
  239. package/dist/esm/bcm-table.entry.js +10 -11
  240. package/dist/esm/bcm-tabs-content.entry.js +2 -2
  241. package/dist/esm/bcm-tabs.entry.js +2 -2
  242. package/dist/esm/bcm-tag.entry.js +7 -7
  243. package/dist/esm/bcm-text.entry.js +7 -7
  244. package/dist/esm/bcm-textarea.entry.js +159 -0
  245. package/dist/esm/bcm-timeline-item.entry.js +2 -2
  246. package/dist/esm/bcm-timeline.entry.js +2 -2
  247. package/dist/esm/bcm-toast.entry.js +7 -7
  248. package/dist/esm/bromcom-ui.js +3 -3
  249. package/dist/esm/{caption-template-e973a48c.js → caption-template-d47f338f.js} +1 -1
  250. package/dist/esm/{color-helper-c4fa9ebc.js → color-helper-71b610e7.js} +1 -1
  251. package/dist/esm/{colors-e1c31f79.js → colors-ebea297f.js} +1 -1
  252. package/dist/esm/{floating-ui-54c52eaa.js → floating-ui-fa2d9209.js} +1 -1
  253. package/dist/esm/{generate-87200d1c.js → generate-ad35cf8e.js} +2 -2
  254. package/dist/esm/{global-50960b0d.js → global-4ab30789.js} +1 -1
  255. package/dist/esm/{index-b84bc8c9.js → index-00c8a8f7.js} +1 -1
  256. package/dist/esm/{index-a6d9d0af.js → index-e4b6a4ce.js} +1612 -26
  257. package/dist/esm/{input-template-ab70223f.js → input-template-25434b4d.js} +3 -3
  258. package/dist/esm/{is-load-decorator-6784aa87.js → is-load-decorator-8277e3b8.js} +2 -1
  259. package/dist/esm/{json-parse-decarator-a56bad01.js → json-parse-decarator-6ef9274a.js} +1 -1
  260. package/dist/esm/{label-template-62e49c38.js → label-template-9cddb5ed.js} +3 -3
  261. package/dist/esm/loader.js +3 -3
  262. package/dist/esm/{number-helper-d3485207.js → number-helper-32d36561.js} +1 -1
  263. package/dist/esm/old-bcm-popover-box.entry.js +10 -10
  264. package/dist/esm/old-bcm-popover.entry.js +6 -6
  265. package/dist/esm/{package-e0503891.js → package-a8541483.js} +1 -1
  266. package/dist/esm/{popover-placement-7cce412f.js → popover-placement-bc0c4fdf.js} +1 -1
  267. package/dist/esm/{slot-template-7447145d.js → slot-template-d37d0312.js} +1 -1
  268. package/dist/esm/{stepper-states-8ed538e6.js → stepper-states-bc4dc077.js} +1 -1
  269. package/dist/esm/{string-helper-5ef67a66.js → string-helper-5a67b5cc.js} +2 -2
  270. package/dist/esm/{tooltip-helper-c8970f99.js → tooltip-helper-4624c4e4.js} +7 -8
  271. package/dist/esm/{validators-3438f640.js → validators-5606ad07.js} +6 -2
  272. package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +5 -17
  273. package/dist/types/components/organism/list/list.d.ts +1 -0
  274. package/dist/types/components/third-parts/rc-picker/date.d.ts +16 -2
  275. package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +10 -2
  276. package/dist/types/components.d.ts +41 -12
  277. package/dist/types/models/bcm.d.ts +246 -235
  278. package/package.json +1 -1
  279. package/dist/bromcom-ui/p-013e2754.entry.js +0 -5
  280. package/dist/bromcom-ui/p-109e236f.entry.js +0 -5
  281. package/dist/bromcom-ui/p-18cec6df.js +0 -5
  282. package/dist/bromcom-ui/p-1b6cf687.entry.js +0 -5
  283. package/dist/bromcom-ui/p-3182df7e.js +0 -10
  284. package/dist/bromcom-ui/p-36086f27.entry.js +0 -5
  285. package/dist/bromcom-ui/p-36e8b68d.entry.js +0 -5
  286. package/dist/bromcom-ui/p-3ade1099.js +0 -5
  287. package/dist/bromcom-ui/p-3d135c37.entry.js +0 -5
  288. package/dist/bromcom-ui/p-43a6794f.entry.js +0 -5
  289. package/dist/bromcom-ui/p-44ca28fa.entry.js +0 -5
  290. package/dist/bromcom-ui/p-489cf42b.entry.js +0 -5
  291. package/dist/bromcom-ui/p-49f37d54.js +0 -5
  292. package/dist/bromcom-ui/p-4a6505b5.entry.js +0 -5
  293. package/dist/bromcom-ui/p-51ea1c7b.entry.js +0 -5
  294. package/dist/bromcom-ui/p-59749f31.entry.js +0 -5
  295. package/dist/bromcom-ui/p-5bc314e4.entry.js +0 -5
  296. package/dist/bromcom-ui/p-626a65e9.js +0 -5
  297. package/dist/bromcom-ui/p-6ed4b153.entry.js +0 -5
  298. package/dist/bromcom-ui/p-73c223c8.entry.js +0 -5
  299. package/dist/bromcom-ui/p-7853a51e.entry.js +0 -5
  300. package/dist/bromcom-ui/p-7e3209a0.js +0 -14
  301. package/dist/bromcom-ui/p-88485410.entry.js +0 -5
  302. package/dist/bromcom-ui/p-891889f6.entry.js +0 -5
  303. package/dist/bromcom-ui/p-89f1571f.entry.js +0 -5
  304. package/dist/bromcom-ui/p-95fa989d.entry.js +0 -5
  305. package/dist/bromcom-ui/p-a7ed0981.entry.js +0 -5
  306. package/dist/bromcom-ui/p-b27f3556.js +0 -5
  307. package/dist/bromcom-ui/p-b48b8c98.entry.js +0 -5
  308. package/dist/bromcom-ui/p-b712ba6c.js +0 -5
  309. package/dist/bromcom-ui/p-b82685e4.js +0 -12
  310. package/dist/bromcom-ui/p-bb9aa7d4.entry.js +0 -5
  311. package/dist/bromcom-ui/p-bed627ab.js +0 -11
  312. package/dist/bromcom-ui/p-d3d07c8c.js +0 -5
  313. package/dist/bromcom-ui/p-e1877ee9.js +0 -5
  314. package/dist/bromcom-ui/p-ebf322d6.entry.js +0 -5
  315. package/dist/bromcom-ui/p-f659324d.entry.js +0 -5
  316. package/dist/bromcom-ui/p-fdcde7e8.entry.js +0 -5
  317. package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -182
  318. package/dist/cjs/bcm-date.cjs.entry.js +0 -124
  319. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1451
  320. package/dist/cjs/bcm-form-2.cjs.entry.js +0 -212
  321. package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
  322. package/dist/cjs/bcm-rc-picker.cjs.entry.js +0 -8150
  323. package/dist/cjs/bcm-time-picker.cjs.entry.js +0 -150
  324. package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
  325. package/dist/cjs/index-c08b35b2.js +0 -1610
  326. package/dist/cjs/moment-c1a71617.js +0 -5689
  327. package/dist/esm/bcm-date-picker.entry.js +0 -178
  328. package/dist/esm/bcm-date.entry.js +0 -120
  329. package/dist/esm/bcm-datetime-picker.entry.js +0 -1447
  330. package/dist/esm/bcm-form-2.entry.js +0 -208
  331. package/dist/esm/bcm-old-input.entry.js +0 -393
  332. package/dist/esm/bcm-rc-picker.entry.js +0 -8146
  333. package/dist/esm/bcm-time-picker.entry.js +0 -146
  334. package/dist/esm/datetime-helper-df25808a.js +0 -9
  335. package/dist/esm/index-c4568336.js +0 -1594
  336. package/dist/esm/moment-24231dde.js +0 -5686
  337. /package/dist/bromcom-ui/{p-23c35e1b.js → p-65c5eac0.js} +0 -0
@@ -1,208 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-0615c2b8.js';
6
- import { I as IsLoad } from './is-load-decorator-6784aa87.js';
7
- import { G as Generate, s as snq } from './generate-87200d1c.js';
8
- import { S as StringHelper } from './string-helper-5ef67a66.js';
9
- import { B as Bcm } from './bcm-ac17222c.js';
10
- import './package-e0503891.js';
11
- import './colors-e1c31f79.js';
12
- import './_commonjsHelpers-be0d4ec8.js';
13
-
14
- const BcmFormComponents = [
15
- 'BCM-INPUT',
16
- 'BCM-TEXTAREA',
17
- 'BCM-SWITCH',
18
- 'BCM-CHECKBOX',
19
- 'BCM-RADIO-GROUP',
20
- 'BCM-CHECKBOX-GROUP',
21
- 'BCM-RANGE',
22
- 'BCM-FORM',
23
- 'BCM-FORM-GROUP',
24
- 'BCM-LIST',
25
- 'BCM-COLORPICKER',
26
- 'BCM-DATE',
27
- 'BCM-DATE-PICKER',
28
- 'BCM-TIME-PICKER',
29
- 'BCM-DATETIME-PICKER',
30
- 'BCM-SELECT',
31
- 'BCM-LISTBOX',
32
- 'BCM-CHIP-GROUP',
33
- 'BCM-INPUT-DROPDOWN'
34
- //... to be added to v3
35
- ];
36
-
37
- const form2Css = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.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}:host{display:block}";
38
-
39
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
40
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
41
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
42
- r = Reflect.decorate(decorators, target, key, desc);
43
- else
44
- for (var i = decorators.length - 1; i >= 0; i--)
45
- if (d = decorators[i])
46
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
47
- return c > 3 && r && Object.defineProperty(target, key, r), r;
48
- };
49
- const BcmForm2 = class {
50
- constructor(hostRef) {
51
- registerInstance(this, hostRef);
52
- this.bcmForm = createEvent(this, "bcm-form", 7);
53
- this.isLoad = false;
54
- this.formData = {};
55
- this.formObj = new Map();
56
- this._id = Generate.UID();
57
- this.validation = false;
58
- }
59
- componentDidLoad() {
60
- this.isLoad = true;
61
- forceUpdate(this);
62
- }
63
- componentIsValid(element) {
64
- if (!element.hidden) {
65
- this.checkIsGroup(element);
66
- const noValid = ['bcm-checkbox', 'bcm-switch'].includes(StringHelper.lowercase(element.tagName)) ? element.value == false : StringHelper.isNullOrEmpty(element.value);
67
- if (element.required) {
68
- if (noValid) {
69
- element.captionError = Bcm.FormErrorMessages.required;
70
- element.captionType = 'error';
71
- this.formObj.set(element.id, {
72
- name: element.name,
73
- valid: false,
74
- errorDetails: element.captionError,
75
- });
76
- }
77
- else {
78
- element.captionError = null;
79
- element.captionType = 'default';
80
- this.formObj.delete(element.id);
81
- }
82
- }
83
- }
84
- }
85
- isGroup(el) {
86
- return ['bcm-checkbox-group'].includes(StringHelper.lowercase(el.tagName));
87
- }
88
- checkIsGroup(element) {
89
- if (this.isGroup(element)) {
90
- for (let checkbox of Array.from(element.querySelectorAll('bcm-checkbox'))) {
91
- checkbox && this.componentIsValid(checkbox);
92
- }
93
- }
94
- }
95
- changeCheckboxGroup(event) {
96
- const element = event.target;
97
- const { changed } = event.detail;
98
- const checkboxes = Array.from(element.querySelectorAll('bcm-checkbox'));
99
- for (let checkbox of checkboxes) {
100
- if (checkbox.id == changed.element.id) {
101
- checkbox.value = changed.event.value;
102
- this.componentIsValid(checkbox);
103
- }
104
- }
105
- }
106
- bcmComponentList() {
107
- return snq(() => Array.from(this.el.querySelectorAll('*'))
108
- .filter(item => BcmFormComponents.includes(item.tagName) && (!item['s-hn'] || item['s-hn'] == 'BCM-FORM-2'))
109
- .filter(Boolean), []);
110
- }
111
- formResponse() {
112
- const formRespObj = {
113
- formData: this.formData,
114
- isValid: this.formObj.size == 0,
115
- errorDetails: Object.assign({}, (this.formObj.size > 0 &&
116
- Array.from(this.formObj).map(([_, value]) => ({
117
- [value.name]: value.errorDetails,
118
- })))),
119
- message: this.formObj.size == 0 ? '' : 'Please fill in all inputs',
120
- };
121
- this.bcmForm.emit(formRespObj);
122
- return formRespObj;
123
- }
124
- async setMethodType(type) {
125
- const { isLoad, validation } = this;
126
- if (isLoad) {
127
- for (const component of this.bcmComponentList()) {
128
- try {
129
- await component[type]();
130
- type == 'setClear' && validation && (this.componentIsValid(component));
131
- }
132
- catch (e) {
133
- console.error(component.nodeName, type, e);
134
- }
135
- }
136
- }
137
- return Promise.resolve();
138
- }
139
- async submit() {
140
- const { isLoad, validation } = this;
141
- if (isLoad) {
142
- for (const item of this.bcmComponentList()) {
143
- const { name, value } = item;
144
- this.formData[name] = StringHelper.isNullOrEmpty(value) ? null : value;
145
- validation && this.componentIsValid(item);
146
- }
147
- }
148
- return Promise.resolve(this.formResponse());
149
- }
150
- async set(data) {
151
- var _a, _b, _c;
152
- if (this.isLoad && data && ((_a = this.bcmComponentList()) === null || _a === void 0 ? void 0 : _a.length) > 0) {
153
- for (let key of Object.keys(data)) {
154
- const element = (_c = (_b = this.bcmComponentList()) === null || _b === void 0 ? void 0 : _b.find((item) => item.name == key)) !== null && _c !== void 0 ? _c : {};
155
- if (element) {
156
- try {
157
- await element.set(data[key]);
158
- this.componentIsValid(element);
159
- }
160
- catch (error) {
161
- console.warn('set: ', key, element.nodeName);
162
- }
163
- }
164
- }
165
- }
166
- }
167
- async get() {
168
- var _a;
169
- let form = {};
170
- if (((_a = this.bcmComponentList()) === null || _a === void 0 ? void 0 : _a.length) > 0) {
171
- for (let element of this.bcmComponentList()) {
172
- const value = await element.get();
173
- form = Object.assign(Object.assign({}, form), { [element.name]: StringHelper.isNullOrEmpty(value) ? null : value });
174
- }
175
- }
176
- return Promise.resolve(form);
177
- }
178
- async resetCaption() {
179
- return Promise.resolve(await this.setMethodType('resetCaption'));
180
- }
181
- async setClear() {
182
- this.formData = {};
183
- this.formObj = new Map();
184
- return Promise.resolve(await this.setMethodType('setClear'));
185
- }
186
- onChange(event) {
187
- const { isLoad, validation } = this;
188
- if (isLoad) {
189
- const target = event.target;
190
- const isBcmElement = target && target.tagName.toLowerCase().startsWith('bcm-');
191
- if (validation && isBcmElement) {
192
- if (this.isGroup(target))
193
- return this.changeCheckboxGroup(event);
194
- this.componentIsValid(target);
195
- }
196
- }
197
- }
198
- render() {
199
- return (h(Host, null, h("slot", null)));
200
- }
201
- get el() { return getElement(this); }
202
- };
203
- __decorate([
204
- IsLoad()
205
- ], BcmForm2.prototype, "el", void 0);
206
- BcmForm2.style = form2Css;
207
-
208
- export { BcmForm2 as bcm_form_2 };
@@ -1,393 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-0615c2b8.js';
6
- import { c as classnames } from './index-b84bc8c9.js';
7
- import { C as CaptionTemplate } from './caption-template-e973a48c.js';
8
- import { d as delay } from './utils-b3338faf.js';
9
- import './_commonjsHelpers-be0d4ec8.js';
10
-
11
- const oldInputCss = "@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}.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}:host{display:inline-block;width:100%;margin:0 0 8px 0}:host(.hidden){display:none}:host(.no-margin){margin:0}.input-container{display:flex;flex-direction:column;width:100%;max-width:256px}.input-container.full-width{max-width:100%}.input-base{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;background-color:var(--bcm-new-ds-color-white);border:1px solid var(--bcm-new-ds-color-slate-300);border-radius:4px;vertical-align:middle;overflow:hidden;padding:0 4px;cursor:text}.input-base.disabled{background-color:var(--bcm-new-ds-color-slate-50);cursor:not-allowed}.input-base.disabled .bcm-input-element{color:var(--bcm-new-ds-color-slate-300)}.input-base.readonly{background-color:var(--bcm-new-ds-color-slate-50);cursor:default}.input-base.readonly .bcm-input-element{color:var(--bcm-new-ds-color-slate-600)}.input-base:not(.disabled):hover .caret-container,.input-base:not(.disabled).focused .caret-container{opacity:1}.input-base:not(.disabled):hover .input-clear-button,.input-base:not(.disabled).focused .input-clear-button{opacity:1}.input-base:not(.disabled).focused{background-color:var(--bcm-new-ds-color-slate-50)}.input-base:not(.disabled):hover{border-color:var(--bcm-color-prime-blue-6)}.input-base.focused:not(.disabled) .caret-container{opacity:1}.input-base.focused:not(.disabled) .input-clear-button{opacity:1}.input-base:hover:not(.disabled) .caret-container{opacity:1}.input-base:hover:not(.disabled) .input-clear-button{opacity:1}.input-base.disabled{cursor:not-allowed}.input-base.readonly{cursor:default}.input-base.empty .input-clear-button{display:none}.input-base.invalid,.input-base.error{border-color:var(--bcm-new-ds-color-red-500)}.error .label{color:var(--bcm-new-ds-color-red-500) !important}.error .input-base{border-color:var(--bcm-new-ds-color-red-500) !important}.input-base input{color:var(--bcm-new-ds-color-slate-600);flex:1 1 auto;width:0%;border:none;border-radius:2px;background:none;box-shadow:none;padding:0;margin:0 4px;font-family:\"Inter\", sans-serif;cursor:inherit;-webkit-appearance:none;appearance:none}.input-base input::-webkit-search-decoration,.input-base input::-webkit-search-cancel-button,.input-base input::-webkit-search-results-button,.input-base input::-webkit-search-results-decoration{-webkit-appearance:none}.input-base input::placeholder{font-family:\"Inter\", sans-serif;color:var(--bcm-new-ds-color-slate-300);user-select:none}.input-base input:focus{outline:none}input::-webkit-calendar-picker-indicator{-webkit-appearance:none;display:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input[type=number]{-moz-appearance:textfield}.input-prefix,.input-suffix{display:inline-flex;align-items:center;justify-content:center;cursor:default;color:var(--bcm-new-ds-color-slate-500)}.input-prefix ::slotted(*),.input-prefix>span{line-height:1;margin-left:4px}.input-suffix ::slotted(*),.input-suffix>span{line-height:1;margin-right:4px}.input-clear-button,.input-password-toggle{display:inline-flex;align-items:center;border:none;background:none;padding:0;cursor:pointer;margin-right:4px;transition:0.2s opacity}.input-clear-button:last-child,.input-clear-button:last-of-type,.input-password-toggle:last-child,.input-password-toggle:last-of-type{margin-right:8px}.input-clear-button:focus,.input-password-toggle:focus{outline:none}.input-clear-button{opacity:0}.label{display:flex;flex-direction:column;font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;color:var(--bcm-new-ds-color-slate-600);margin-bottom:4px}.caption-area{min-height:20px}.input-caption{display:block}.unit.input-suffix{width:24px}.unit-prefix{display:inline-flex;flex:0 0 auto;align-items:center;cursor:default;color:var(--bcm-color-grey-8)}.caret-container{opacity:0;width:30px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-left:1px solid #D9D9D9;border-right:1px solid #D9D9D9;transition:0.2s opacity;user-select:none;box-sizing:border-box;margin-right:4px}.caret-container:last-of-type{margin-right:-space(\"xxxs\");border-right:none}.caret-container .caret{display:inline-flex;height:50%;width:100%;align-items:center;justify-content:center;color:var(--bcm-color-grey-7);cursor:pointer}.caret-container .caret:hover{color:var(--bcm-color-prime-blue-6)}.caret-container .caret:active{background-color:var(--bcm-color-grey-3)}.caret-container .caret:last-child{border-top:1px solid #D9D9D9}.caret-container.disabled{background-color:var(--bcm-color-grey-3)}.caret-container.disabled .caret{cursor:not-allowed}.default-icon{margin-right:8px}.input-large{height:40px}.input-medium{height:32px}.input-small{height:24px}";
12
-
13
- let id = 0;
14
- const defaultIcons = {
15
- email: '<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"/></svg>',
16
- tel: '<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M476.5 22.9L382.3 1.2c-21.6-5-43.6 6.2-52.3 26.6l-43.5 101.5c-8 18.6-2.6 40.6 13.1 53.4l40 32.7C311 267.8 267.8 311 215.4 339.5l-32.7-40c-12.8-15.7-34.8-21.1-53.4-13.1L27.7 329.9c-20.4 8.7-31.5 30.7-26.6 52.3l21.7 94.2c4.8 20.9 23.2 35.5 44.6 35.5C312.3 512 512 313.7 512 67.5c0-21.4-14.6-39.8-35.5-44.6zM69.3 464l-20.9-90.7 98.2-42.1 55.7 68.1c98.8-46.4 150.6-98 197-197l-68.1-55.7 42.1-98.2L464 69.3C463 286.9 286.9 463 69.3 464z"/></svg>',
17
- search: '<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z"/></svg>',
18
- url: '<svg style="fill: #595959; width: 14px; height: 14px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M314.222 197.78c51.091 51.091 54.377 132.287 9.75 187.16-6.242 7.73-2.784 3.865-84.94 86.02-54.696 54.696-143.266 54.745-197.99 0-54.711-54.69-54.734-143.255 0-197.99 32.773-32.773 51.835-51.899 63.409-63.457 7.463-7.452 20.331-2.354 20.486 8.192a173.31 173.31 0 0 0 4.746 37.828c.966 4.029-.272 8.269-3.202 11.198L80.632 312.57c-32.755 32.775-32.887 85.892 0 118.8 32.775 32.755 85.892 32.887 118.8 0l75.19-75.2c32.718-32.725 32.777-86.013 0-118.79a83.722 83.722 0 0 0-22.814-16.229c-4.623-2.233-7.182-7.25-6.561-12.346 1.356-11.122 6.296-21.885 14.815-30.405l4.375-4.375c3.625-3.626 9.177-4.594 13.76-2.294 12.999 6.524 25.187 15.211 36.025 26.049zM470.958 41.04c-54.724-54.745-143.294-54.696-197.99 0-82.156 82.156-78.698 78.29-84.94 86.02-44.627 54.873-41.341 136.069 9.75 187.16 10.838 10.838 23.026 19.525 36.025 26.049 4.582 2.3 10.134 1.331 13.76-2.294l4.375-4.375c8.52-8.519 13.459-19.283 14.815-30.405.621-5.096-1.938-10.113-6.561-12.346a83.706 83.706 0 0 1-22.814-16.229c-32.777-32.777-32.718-86.065 0-118.79l75.19-75.2c32.908-32.887 86.025-32.755 118.8 0 32.887 32.908 32.755 86.025 0 118.8l-45.848 45.84c-2.93 2.929-4.168 7.169-3.202 11.198a173.31 173.31 0 0 1 4.746 37.828c.155 10.546 13.023 15.644 20.486 8.192 11.574-11.558 30.636-30.684 63.409-63.457 54.733-54.735 54.71-143.3-.001-197.991z"/></svg>'
19
- };
20
- const BcmOldInput = class {
21
- constructor(hostRef) {
22
- registerInstance(this, hostRef);
23
- this.focus = createEvent(this, "bcm-focus", 7);
24
- this.blur = createEvent(this, "bcm-blur", 7);
25
- this.clear = createEvent(this, "bcm-clear", 7);
26
- this.change = createEvent(this, "bcm-change", 7);
27
- this.input = createEvent(this, "bcm-input", 7);
28
- this.inputId = `input-${++id}`;
29
- this.isBlur = false;
30
- this.type = 'text';
31
- this.value = '';
32
- this.size = "medium";
33
- this.label = undefined;
34
- this.noCaption = false;
35
- this.noMargin = false;
36
- this.captionError = undefined;
37
- this.caption = undefined;
38
- this.captionType = 'default';
39
- this.placeholder = undefined;
40
- this.fullWidth = false;
41
- this.disabled = false;
42
- this.readonly = false;
43
- this.clearable = false;
44
- this.passwordToggle = undefined;
45
- this.noDefaultIcon = undefined;
46
- this._id = undefined;
47
- this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
48
- this.name = undefined;
49
- this.unit = null;
50
- this.unitPrefix = null;
51
- this.decimal = undefined;
52
- this.min = null;
53
- this.max = null;
54
- this.step = null;
55
- this.hidden = false;
56
- this.required = false;
57
- this.disableWatchValue = false;
58
- this.maxLength = null;
59
- this.tooltip = undefined;
60
- this.inValid = false;
61
- this.valueCache = undefined;
62
- this.captionCache = undefined;
63
- this.captionTypeCache = undefined;
64
- this.hasFocus = false;
65
- this.isPasswordVisible = false;
66
- }
67
- async setFocus() {
68
- this.inputElement.focus();
69
- }
70
- async removeFocus() {
71
- this.inputElement.blur();
72
- }
73
- async select() {
74
- return this.inputElement.select();
75
- }
76
- async setValue(value) {
77
- this.inputElement.value = value;
78
- this.value = value;
79
- this.handleChange();
80
- return value;
81
- }
82
- async setClear() {
83
- this.inputElement.value = '';
84
- this.value = '';
85
- await delay(10);
86
- return Promise.resolve();
87
- }
88
- async resetCaption() {
89
- await delay(10);
90
- this.caption = this.captionCache;
91
- this.captionType = this.captionTypeCache;
92
- this.captionError = null;
93
- await delay(10);
94
- return Promise.resolve();
95
- }
96
- async getValue() {
97
- return this.value;
98
- }
99
- handleFocus() {
100
- this.hasFocus = true;
101
- this.focus.emit();
102
- }
103
- handleBlur() {
104
- this.hasFocus = false;
105
- this.isBlur = true;
106
- if (this.type == "email") {
107
- this.isEmailValid();
108
- }
109
- if (this.type == "tel") {
110
- this.isTelValid();
111
- }
112
- this.blur.emit();
113
- }
114
- handleChange() {
115
- this.value = this.inputElement.value;
116
- this.change.emit(this.value);
117
- }
118
- handleInput() {
119
- if (this.type == "number") {
120
- if (this.decimal == "false") {
121
- this.inputElement.value = this.inputElement.value.replace(/[^0-9-]/g, '');
122
- }
123
- else {
124
- this.inputElement.value = this.inputElement.value.replace(/[^0-9.,-]/g, '');
125
- }
126
- this.inputElement.value = this.inputElement.value.replace(/(\..*)\./g, '$1').replace(/(\-.*)\-/g, '$1');
127
- }
128
- this.value = this.inputElement.value;
129
- this.input.emit(this.value);
130
- }
131
- handleClear(e) {
132
- this.inputElement.value = '';
133
- this.value = '';
134
- this.inputElement.focus();
135
- this.change.emit(this.value);
136
- this.clear.emit(e);
137
- e.stopPropagation();
138
- }
139
- changePasswordVisibility() {
140
- this.isPasswordVisible = !this.isPasswordVisible;
141
- }
142
- incrementNumber() {
143
- if (!this.inValid && !this.disabled && !this.readonly) {
144
- let step = this.getNumberStep();
145
- let val = Number(this.value) + Number(step);
146
- this.value = this.numberDecimal(val);
147
- }
148
- }
149
- decrementNumber() {
150
- if (!this.inValid && !this.disabled && !this.readonly) {
151
- let step = this.getNumberStep();
152
- let val = Number(this.value) - Number(step);
153
- this.value = this.numberDecimal(val);
154
- }
155
- }
156
- getNumberStep(step = Number(this.step)) {
157
- let returnStep = 1;
158
- if (step && Number(step) == step)
159
- returnStep = step;
160
- return Number(returnStep);
161
- }
162
- connectedCallback() {
163
- this.changePasswordVisibility = this.changePasswordVisibility.bind(this);
164
- this.handleChange = this.handleChange.bind(this);
165
- this.handleBlur = this.handleBlur.bind(this);
166
- this.handleFocus = this.handleFocus.bind(this);
167
- this.handleInput = this.handleInput.bind(this);
168
- this.handleClear = this.handleClear.bind(this);
169
- this.incrementNumber = this.incrementNumber.bind(this);
170
- this.decrementNumber = this.decrementNumber.bind(this);
171
- this.valueCache = this.value;
172
- this.captionCache = this.caption;
173
- this.captionTypeCache = this.captionType;
174
- }
175
- validationRange(val = JSON.stringify({
176
- "value": this.value,
177
- "min": this.min,
178
- "max": this.max
179
- })) {
180
- let cap = null;
181
- let capType = null;
182
- let returnValidation = true;
183
- let item = JSON.parse(val);
184
- let { length, value, min, max } = item;
185
- length = parseFloat(length);
186
- value = parseFloat(value);
187
- min = parseFloat(min);
188
- max = parseFloat(max);
189
- length !== 0 && (value && (min && max && ((value < min || value > max) && (cap = "Please enter a value between " + min + " and " + max + ".",
190
- capType = "error",
191
- returnValidation = false)) || min && !max && (value < min && (cap = "Please enter a value greater than or equal to " + min + ".",
192
- capType = "error",
193
- returnValidation = false)) || !min && max && (value > max && (cap = "Please enter a value less than or equal to " + max + ".",
194
- capType = "error",
195
- returnValidation = false))));
196
- this.setCaption(cap, capType);
197
- return returnValidation;
198
- }
199
- setCaption(caption = null, captionType = null) {
200
- this.caption = caption ? caption : this.captionCache;
201
- this.captionType = captionType ? captionType : this.captionTypeCache;
202
- this.captionError = captionType == "error" ? caption : null;
203
- }
204
- isEmailValid() {
205
- const { value } = this;
206
- const regexp = new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
207
- let cap = null;
208
- let capType = null;
209
- if (value && !regexp.test(value)) {
210
- cap = "Please enter a valid email address.",
211
- capType = "error",
212
- this.inValid = true;
213
- }
214
- else {
215
- this.inValid = false;
216
- }
217
- this.setCaption(cap, capType);
218
- return this.inValid;
219
- }
220
- isTelValid() {
221
- const { value } = this;
222
- const regexp = new RegExp(/^(?=.*[0-9])[- +()0-9]+$/);
223
- let cap = null;
224
- let capType = null;
225
- if (value && !regexp.test(value)) {
226
- cap = "Please enter a valid phone number.",
227
- capType = "error",
228
- this.inValid = true;
229
- }
230
- else {
231
- this.inValid = false;
232
- }
233
- this.setCaption(cap, capType);
234
- return this.inValid;
235
- }
236
- isNumberValid(caption = "Invalid number", captionType = "error") {
237
- const { value } = this;
238
- if (value && Number(value) != value) {
239
- this.inValid = true;
240
- this.setCaption(caption, captionType);
241
- return true;
242
- }
243
- this.inValid = false;
244
- return false;
245
- }
246
- setNumberUnit() {
247
- const { value, unit } = this;
248
- if (Number(value) == value && (unit === null || unit === void 0 ? void 0 : unit.length) > 0 && !value)
249
- this.value = 0;
250
- }
251
- numberDecimal(val = '') {
252
- let decLen = this.getDecimalLength();
253
- if (val && decLen)
254
- return parseFloat(val).toFixed(decLen);
255
- return val;
256
- }
257
- numberNotDecimal(val = 0) {
258
- return Math.trunc(val);
259
- }
260
- getDecimalLength() {
261
- const { step } = this;
262
- let returnDecimalLength = 0, splitted, splitDec;
263
- if (step && Number(step) == step) {
264
- if (String(step).includes(".")) {
265
- splitted = String(step).split('.');
266
- splitDec = splitted[splitted.length - 1].length;
267
- }
268
- else {
269
- splitDec = 0;
270
- }
271
- returnDecimalLength = splitDec;
272
- }
273
- return Number(returnDecimalLength);
274
- }
275
- componentWillRender() {
276
- const { type } = this;
277
- if (type == "number" && this.value) {
278
- if (!this.isNumberValid()) {
279
- this.validationRange();
280
- }
281
- }
282
- if (this.isBlur) {
283
- if (type == "email" && this.value) {
284
- this.isEmailValid();
285
- }
286
- if (type == "tel" && this.value) {
287
- this.isTelValid();
288
- }
289
- }
290
- }
291
- componentWillLoad() {
292
- const { type, value } = this;
293
- if (type == "number" && Number(value) == value) {
294
- this.value = this.numberDecimal(value);
295
- }
296
- }
297
- numberControl(e) {
298
- if (!this.disabled && !this.readonly) {
299
- if (this.type == "number") {
300
- var which = e.which || 0;
301
- var key = e.key;
302
- which == 38 && ( // up arrow
303
- e.preventDefault(),
304
- this.incrementNumber());
305
- which == 40 && ( // down arrow
306
- e.preventDefault(),
307
- this.decrementNumber());
308
- key == "." && String(this.value).includes(".") && ( // dot: shouldn't be more than one
309
- e.preventDefault());
310
- if (which == 8 || //backspace / delete
311
- which == 9 || //tab
312
- which == 13 || //enter
313
- which == 16 || //shift
314
- which == 17 || //ctrl
315
- which == 18 || //alt
316
- which == 46 || //delete
317
- (which == 110 && (this.type == 'number' && this.decimal != false)) || //decimal point
318
- // (which == 188 && key == ",") || //comma
319
- (which == 190 && key == "." && (this.type == 'number' && this.decimal != false)) || //period
320
- (which == 189 && this.inputElement.value.length == 0) || //-
321
- (which == 109 && this.inputElement.value.length == 0) || //-
322
- (which >= 35 && which <= 40) || //end, home, left arrow, up arrow, right arrow, down arrow
323
- (which >= 48 && which <= 57) || //0-9
324
- (which >= 96 && which <= 105) //0-9(numpad)
325
- )
326
- return true;
327
- e.preventDefault();
328
- if (this.decimal == true) {
329
- this.value = this.numberDecimal(this.value);
330
- }
331
- else if (this.decimal == false) {
332
- this.value = this.numberNotDecimal(this.value);
333
- }
334
- }
335
- }
336
- }
337
- whatchHasFocus() {
338
- const { type, hasFocus, value, valueCache, inValid } = this;
339
- if (type == "number") {
340
- this.isNumberValid();
341
- let inValidState = false;
342
- if (hasFocus == true) {
343
- if (inValid == true) {
344
- this.value = '';
345
- inValidState = true;
346
- }
347
- }
348
- else {
349
- if (this.value == '' && inValid == false) {
350
- this.value = valueCache;
351
- inValidState = true;
352
- }
353
- if (value != valueCache && inValid == false && inValidState == false) {
354
- this.value = value ? this.numberDecimal(value) : '';
355
- }
356
- }
357
- }
358
- }
359
- watchValue() {
360
- if (!this.disableWatchValue && this.type != 'number') {
361
- this.handleChange();
362
- }
363
- }
364
- render() {
365
- const { value, size, label, type, captionType, caption, captionError, placeholder, fullWidth, disabled, readonly, clearable, passwordToggle, isPasswordVisible, noDefaultIcon, unit, inValid, hasFocus, unitPrefix, noCaption, required } = this;
366
- const containerClasses = classnames('input-container', {
367
- 'full-width': fullWidth,
368
- 'error': captionType == 'error' ? true : false
369
- });
370
- const baseClasses = classnames('input-base', 'input-' + size, {
371
- 'invalid': inValid,
372
- 'unit': (unit === null || unit === void 0 ? void 0 : unit.length) > 0,
373
- 'focused': hasFocus,
374
- 'disabled': disabled,
375
- 'readonly': readonly,
376
- 'empty': (value === null || value === void 0 ? void 0 : value.length) < 1
377
- });
378
- const inputClass = size === 'large' ? 'size-3' : 'size-2';
379
- const hostClasses = classnames(this.hidden ? 'hidden' : null, this.noMargin ? 'no-margin' : null);
380
- return (h(Host, { class: hostClasses }, h("div", { class: containerClasses }, label && h("div", null, h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required, htmlFor: this.inputId })), h("div", { class: baseClasses }, h("span", { class: "input-prefix" }, h("slot", { name: "prefix" }), unitPrefix && h("span", { class: classnames(inputClass, 'unit-prefix') }, unitPrefix)), h("input", { "bcm-internal-id": this._id, id: this.inputId, class: inputClass, ref: el => (this.inputElement = el), onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: this.handleChange, onInput: this.handleInput, maxLength: this.maxLength, type: type === 'password' && isPasswordVisible ? 'text' :
381
- type === 'number' ? 'text' : type, placeholder: placeholder, value: type === 'number' && !this.hasFocus
382
- ? value + (value && (unit === null || unit === void 0 ? void 0 : unit.length) > 0 ? ' ' + unit : '')
383
- : value, disabled: this.disabled, readonly: this.readonly }), clearable && !this.disabled && (h("button", { class: "input-clear-button", onClick: this.handleClear }, h("svg", { style: { "fill": "#595959", "width": "14px", "height": "14px" }, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512" }, h("path", { d: "M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z" })))), type === 'password' && passwordToggle && (h("button", { class: "input-password-toggle", onClick: this.changePasswordVisibility }, h("bcm-icon", { icon: isPasswordVisible ? "far fa-eye-invisible" : "far fa-eye" }))), Object.keys(defaultIcons).includes(type) && !noDefaultIcon && (h("span", { class: "input-suffix default-icon", innerHTML: defaultIcons[type] })), type === 'number' && (h("div", { class: classnames('caret-container', { 'unit': (unit === null || unit === void 0 ? void 0 : unit.length) > 0 }, { 'disabled': inValid }, { 'disabled': readonly }) }, h("span", { class: "caret", onClick: inValid == false && this.incrementNumber }, h("bcm-icon", { icon: "far fa-caret-up" })), h("span", { class: "caret", onClick: inValid == false && this.decrementNumber }, h("bcm-icon", { icon: "far fa-caret-down" })))), type !== 'number' && (h("span", { class: "input-suffix" }, h("slot", { name: "suffix" })))), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption }))));
384
- }
385
- get el() { return getElement(this); }
386
- static get watchers() { return {
387
- "hasFocus": ["whatchHasFocus"],
388
- "value": ["watchValue"]
389
- }; }
390
- };
391
- BcmOldInput.style = oldInputCss;
392
-
393
- export { BcmOldInput as bcm_old_input };