bromcom-ui 2.7.38-rc.4 → 2.7.38-rc.6

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 (315) 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-0552d776.entry.js +5 -0
  4. package/dist/bromcom-ui/p-202a35f5.entry.js +5 -0
  5. package/dist/bromcom-ui/p-206ba944.entry.js +5 -0
  6. package/dist/bromcom-ui/{p-1537dc75.entry.js → p-247dc023.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-287c6793.entry.js → p-29f102ca.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-df71034a.entry.js → p-32fd7928.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-1df030ff.entry.js → p-34ddda2c.entry.js} +1 -1
  10. package/dist/bromcom-ui/p-3889671a.entry.js +5 -0
  11. package/dist/bromcom-ui/p-395c5af8.entry.js +5 -0
  12. package/dist/bromcom-ui/p-3b1c383d.entry.js +5 -0
  13. package/dist/bromcom-ui/p-3eb552e1.entry.js +5 -0
  14. package/dist/bromcom-ui/{p-9da1d3a6.js → p-3f4cb185.js} +1 -1
  15. package/dist/bromcom-ui/p-4bebc821.entry.js +5 -0
  16. package/dist/bromcom-ui/p-5d49b575.entry.js +5 -0
  17. package/dist/bromcom-ui/{p-b3c0ac04.entry.js → p-66e177fa.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-9220c563.entry.js → p-746b8d13.entry.js} +1 -1
  19. package/dist/bromcom-ui/p-76cc282d.entry.js +5 -0
  20. package/dist/bromcom-ui/p-7887788c.entry.js +5 -0
  21. package/dist/bromcom-ui/{p-95a04f13.js → p-7c8b3850.js} +1 -1
  22. package/dist/bromcom-ui/p-80da815b.entry.js +5 -0
  23. package/dist/bromcom-ui/{p-8bca8fa5.entry.js → p-832d5db2.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-6884586a.entry.js → p-8419365d.entry.js} +1 -1
  25. package/dist/bromcom-ui/p-842a7205.entry.js +5 -0
  26. package/dist/bromcom-ui/{p-210eb14c.entry.js → p-861bbeb4.entry.js} +1 -1
  27. package/dist/bromcom-ui/p-87a2ca93.entry.js +5 -0
  28. package/dist/bromcom-ui/p-8add2f07.js +5 -0
  29. package/dist/bromcom-ui/p-8afdd032.entry.js +5 -0
  30. package/dist/bromcom-ui/p-8b6c9b3f.entry.js +5 -0
  31. package/dist/bromcom-ui/p-902e5178.entry.js +5 -0
  32. package/dist/bromcom-ui/{p-66069e29.js → p-9893a7e0.js} +1 -1
  33. package/dist/bromcom-ui/p-9a333950.js +5 -0
  34. package/dist/bromcom-ui/{p-7eef67c6.entry.js → p-9c3491c8.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-0dff677e.entry.js → p-9df55487.entry.js} +1 -1
  36. package/dist/bromcom-ui/p-a262d557.entry.js +5 -0
  37. package/dist/bromcom-ui/{p-deb780f9.entry.js → p-a633eb0f.entry.js} +1 -1
  38. package/dist/bromcom-ui/p-a8abc160.entry.js +5 -0
  39. package/dist/bromcom-ui/p-b0ee4b82.entry.js +5 -0
  40. package/dist/bromcom-ui/p-b1014f04.entry.js +5 -0
  41. package/dist/bromcom-ui/p-bd07fa7e.entry.js +5 -0
  42. package/dist/bromcom-ui/p-bde3280f.entry.js +5 -0
  43. package/dist/bromcom-ui/p-c5e3161a.entry.js +5 -0
  44. package/dist/bromcom-ui/p-c600dbc4.entry.js +5 -0
  45. package/dist/bromcom-ui/p-cadb3b85.entry.js +5 -0
  46. package/dist/bromcom-ui/{p-cb8a8545.js → p-d62b511d.js} +1 -1
  47. package/dist/bromcom-ui/p-d82bfe4d.entry.js +5 -0
  48. package/dist/bromcom-ui/p-e2c4df6f.entry.js +5 -0
  49. package/dist/bromcom-ui/p-e377c5aa.entry.js +5 -0
  50. package/dist/bromcom-ui/p-e3d42795.entry.js +5 -0
  51. package/dist/bromcom-ui/p-ea31a4c1.entry.js +5 -0
  52. package/dist/bromcom-ui/p-ea341359.entry.js +5 -0
  53. package/dist/bromcom-ui/p-eb0ca642.js +5 -0
  54. package/dist/bromcom-ui/{p-135c85de.entry.js → p-ecaf2ad8.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-fd6163d6.entry.js → p-f31ef56a.entry.js} +1 -1
  56. package/dist/bromcom-ui/p-f62f236c.entry.js +5 -0
  57. package/dist/bromcom-ui/p-f8813732.entry.js +5 -0
  58. package/dist/bromcom-ui/p-f9508d68.entry.js +5 -0
  59. package/dist/bromcom-ui/p-fbb2529c.entry.js +5 -0
  60. package/dist/bromcom-ui/p-fc093746.entry.js +5 -0
  61. package/dist/bromcom-ui/p-fc1ef08f.entry.js +5 -0
  62. package/dist/cjs/bcm-accordion.cjs.entry.js +1 -1
  63. package/dist/cjs/bcm-alert.cjs.entry.js +1 -1
  64. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  65. package/dist/cjs/bcm-avatar_2.cjs.entry.js +5 -5
  66. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +1 -1
  67. package/dist/cjs/bcm-button-group.cjs.entry.js +2 -2
  68. package/dist/cjs/bcm-button.cjs.entry.js +384 -0
  69. package/dist/cjs/bcm-card.cjs.entry.js +2 -2
  70. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +1 -1
  71. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
  72. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +2 -2
  73. package/dist/cjs/bcm-chip.cjs.entry.js +17 -4
  74. package/dist/cjs/bcm-collapse.cjs.entry.js +1 -1
  75. package/dist/cjs/bcm-date-picker.cjs.entry.js +3 -2
  76. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +4 -3
  77. package/dist/cjs/bcm-default.cjs.entry.js +1 -1
  78. package/dist/cjs/bcm-drawer.cjs.entry.js +4 -4
  79. package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
  80. package/dist/cjs/bcm-error-layout.cjs.entry.js +1 -1
  81. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +2 -2
  82. package/dist/cjs/bcm-form-2.cjs.entry.js +1 -1
  83. package/dist/cjs/bcm-form.cjs.entry.js +487 -0
  84. package/dist/cjs/bcm-icon.cjs.entry.js +41 -0
  85. package/dist/cjs/bcm-input.cjs.entry.js +341 -0
  86. package/dist/cjs/bcm-item.cjs.entry.js +2 -2
  87. package/dist/cjs/bcm-items.cjs.entry.js +1 -1
  88. package/dist/cjs/bcm-label_2.cjs.entry.js +122 -0
  89. package/dist/cjs/bcm-link.cjs.entry.js +1 -1
  90. package/dist/cjs/bcm-linked_2.cjs.entry.js +25 -25
  91. package/dist/cjs/bcm-list.cjs.entry.js +14 -8
  92. package/dist/cjs/bcm-modal.cjs.entry.js +142 -0
  93. package/dist/cjs/bcm-old-input.cjs.entry.js +1 -1
  94. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -2
  95. package/dist/cjs/bcm-popconfirm.cjs.entry.js +1 -1
  96. package/dist/cjs/bcm-popover.cjs.entry.js +7 -7
  97. package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
  98. package/dist/cjs/bcm-radio-group.cjs.entry.js +2 -2
  99. package/dist/cjs/bcm-radio.cjs.entry.js +2 -2
  100. package/dist/cjs/bcm-range.cjs.entry.js +2 -2
  101. package/dist/cjs/bcm-search.cjs.entry.js +3 -3
  102. package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
  103. package/dist/cjs/bcm-step.cjs.entry.js +101 -0
  104. package/dist/cjs/bcm-stepper.cjs.entry.js +220 -0
  105. package/dist/cjs/bcm-switch.cjs.entry.js +2 -2
  106. package/dist/cjs/bcm-tab-group.cjs.entry.js +47 -47
  107. package/dist/cjs/bcm-tab.cjs.entry.js +1 -1
  108. package/dist/cjs/bcm-tag.cjs.entry.js +2 -2
  109. package/dist/cjs/bcm-text.cjs.entry.js +1 -1
  110. package/dist/cjs/bcm-textarea.cjs.entry.js +3 -3
  111. package/dist/cjs/bcm-time-picker.cjs.entry.js +3 -2
  112. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  113. package/dist/cjs/{generate-ffdc4983.js → generate-30477ea5.js} +1 -1
  114. package/dist/cjs/{input-template-8676eb60.js → input-template-03566262.js} +1 -1
  115. package/dist/cjs/{json-parse-decarator-c7151bdb.js → json-parse-decarator-cd45d5f3.js} +1 -1
  116. package/dist/cjs/loader.cjs.js +1 -1
  117. package/dist/cjs/{number-helper-385c0741.js → number-helper-c595fb51.js} +1 -1
  118. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -3
  119. package/dist/cjs/old-bcm-popover.cjs.entry.js +1 -1
  120. package/dist/cjs/stepper-states-dbd85ea1.js +85 -0
  121. package/dist/cjs/{tooltip-helper-21ff38a2.js → tooltip-helper-57c183c2.js} +3 -3
  122. package/dist/cjs/{validators-abb16812.js → validators-6a70f5f8.js} +1 -1
  123. package/dist/collection/components/atoms/avatar/avatar.css +3 -1
  124. package/dist/collection/components/atoms/badge/badge.css +3 -1
  125. package/dist/collection/components/atoms/button/button.css +3 -1
  126. package/dist/collection/components/atoms/chip/chip.css +3 -1
  127. package/dist/collection/components/atoms/chip/chip.js +61 -3
  128. package/dist/collection/components/atoms/label/label.css +3 -1
  129. package/dist/collection/components/atoms/link/link.css +3 -1
  130. package/dist/collection/components/molecules/button-group/button-group.css +7 -1
  131. package/dist/collection/components/molecules/card/card.css +3 -1
  132. package/dist/collection/components/molecules/checkbox/checkbox.css +9 -3
  133. package/dist/collection/components/molecules/drawer/drawer.css +3 -1
  134. package/dist/collection/components/molecules/dropdown/dropdown.css +3 -1
  135. package/dist/collection/components/molecules/error-layout/error-layout.css +3 -1
  136. package/dist/collection/components/molecules/expansion-panel/expansion-panel.css +3 -1
  137. package/dist/collection/components/molecules/input/input.css +9 -3
  138. package/dist/collection/components/molecules/item/item.css +3 -1
  139. package/dist/collection/components/molecules/linked/linked.js +28 -28
  140. package/dist/collection/components/molecules/menu/menu.css +3 -1
  141. package/dist/collection/components/molecules/modal/modal.css +3 -1
  142. package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +3 -1
  143. package/dist/collection/components/molecules/popover/popover.js +11 -11
  144. package/dist/collection/components/molecules/progress/progress.css +3 -1
  145. package/dist/collection/components/molecules/radio/group.css +6 -2
  146. package/dist/collection/components/molecules/radio/radio.css +9 -3
  147. package/dist/collection/components/molecules/range/range.css +3 -1
  148. package/dist/collection/components/molecules/search/search.css +9 -3
  149. package/dist/collection/components/molecules/skeleton/skeleton.js +8 -8
  150. package/dist/collection/components/molecules/stepper/stepper.css +5 -2
  151. package/dist/collection/components/molecules/switch/switch.css +9 -3
  152. package/dist/collection/components/molecules/tab-group/tab-group.js +52 -52
  153. package/dist/collection/components/molecules/textarea/textarea.css +9 -3
  154. package/dist/collection/components/molecules/tooltip/tooltip.js +9 -9
  155. package/dist/collection/components/organism/date-picker/date-picker.js +20 -1
  156. package/dist/collection/components/organism/datetime-picker/datetime-picker.css +9 -3
  157. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +20 -1
  158. package/dist/collection/components/organism/list/list.css +12 -4
  159. package/dist/collection/components/organism/time-picker/time-picker.js +20 -1
  160. package/dist/collection/components/other/attendance/attendance.css +3 -1
  161. package/dist/collection/components/other_deprecated/old-input/old-input.css +9 -3
  162. package/dist/collection/components/other_deprecated/old-popover/old-popover-box.css +3 -1
  163. package/dist/collection/components/other_deprecated/tabs/tab.css +3 -1
  164. package/dist/collection/components/other_deprecated/text/text.css +3 -1
  165. package/dist/collection/global/components/_checkbox.css +3 -1
  166. package/dist/collection/templates/list-template.js +8 -2
  167. package/dist/components/avatar.js +1 -1
  168. package/dist/components/badge.js +1 -1
  169. package/dist/components/bcm-attendance.js +1 -1
  170. package/dist/components/bcm-button-group.js +1 -1
  171. package/dist/components/bcm-card.js +1 -1
  172. package/dist/components/bcm-chip.js +17 -4
  173. package/dist/components/bcm-date-picker.js +3 -1
  174. package/dist/components/bcm-drawer.js +1 -1
  175. package/dist/components/bcm-dropdown.js +1 -1
  176. package/dist/components/bcm-error-layout.js +1 -1
  177. package/dist/components/bcm-expansion-panel.js +1 -1
  178. package/dist/components/bcm-input.js +1 -1
  179. package/dist/components/bcm-item.js +1 -1
  180. package/dist/components/bcm-list.js +9 -3
  181. package/dist/components/bcm-modal.js +1 -1
  182. package/dist/components/bcm-popover.js +4 -4
  183. package/dist/components/bcm-progress.js +1 -1
  184. package/dist/components/bcm-radio-group.js +1 -1
  185. package/dist/components/bcm-range.js +1 -1
  186. package/dist/components/bcm-stepper.js +1 -1
  187. package/dist/components/bcm-switch.js +1 -1
  188. package/dist/components/bcm-tab-group.js +46 -46
  189. package/dist/components/bcm-tab.js +1 -1
  190. package/dist/components/bcm-textarea.js +1 -1
  191. package/dist/components/bcm-time-picker.js +3 -1
  192. package/dist/components/button.js +1 -1
  193. package/dist/components/checkbox-lite.js +1 -1
  194. package/dist/components/checkbox.js +1 -1
  195. package/dist/components/datetime-picker.js +4 -2
  196. package/dist/components/generate.js +1 -1
  197. package/dist/components/label.js +1 -1
  198. package/dist/components/link.js +1 -1
  199. package/dist/components/linked.js +20 -20
  200. package/dist/components/menu.js +1 -1
  201. package/dist/components/old-input.js +1 -1
  202. package/dist/components/old-popover-box.js +1 -1
  203. package/dist/components/popconfirm-box.js +1 -1
  204. package/dist/components/radio.js +1 -1
  205. package/dist/components/search.js +1 -1
  206. package/dist/components/skeleton.js +5 -5
  207. package/dist/components/text.js +1 -1
  208. package/dist/components/tooltip.js +3 -3
  209. package/dist/esm/bcm-accordion.entry.js +1 -1
  210. package/dist/esm/bcm-alert.entry.js +1 -1
  211. package/dist/esm/bcm-attendance.entry.js +2 -2
  212. package/dist/esm/bcm-avatar_2.entry.js +5 -5
  213. package/dist/esm/bcm-breadcrumb.entry.js +1 -1
  214. package/dist/esm/bcm-button-group.entry.js +2 -2
  215. package/dist/esm/bcm-button.entry.js +380 -0
  216. package/dist/esm/bcm-card.entry.js +2 -2
  217. package/dist/esm/bcm-checkbox-group.entry.js +1 -1
  218. package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
  219. package/dist/esm/bcm-checkbox_2.entry.js +2 -2
  220. package/dist/esm/bcm-chip.entry.js +18 -5
  221. package/dist/esm/bcm-collapse.entry.js +1 -1
  222. package/dist/esm/bcm-date-picker.entry.js +3 -2
  223. package/dist/esm/bcm-datetime-picker.entry.js +4 -3
  224. package/dist/esm/bcm-default.entry.js +1 -1
  225. package/dist/esm/bcm-drawer.entry.js +4 -4
  226. package/dist/esm/bcm-dropdown.entry.js +3 -3
  227. package/dist/esm/bcm-error-layout.entry.js +1 -1
  228. package/dist/esm/bcm-expansion-panel.entry.js +2 -2
  229. package/dist/esm/bcm-form-2.entry.js +1 -1
  230. package/dist/esm/bcm-form.entry.js +483 -0
  231. package/dist/esm/bcm-icon.entry.js +37 -0
  232. package/dist/esm/bcm-input.entry.js +337 -0
  233. package/dist/esm/bcm-item.entry.js +2 -2
  234. package/dist/esm/bcm-items.entry.js +1 -1
  235. package/dist/esm/bcm-label_2.entry.js +117 -0
  236. package/dist/esm/bcm-link.entry.js +1 -1
  237. package/dist/esm/bcm-linked_2.entry.js +25 -25
  238. package/dist/esm/bcm-list.entry.js +14 -8
  239. package/dist/esm/bcm-modal.entry.js +138 -0
  240. package/dist/esm/bcm-old-input.entry.js +1 -1
  241. package/dist/esm/bcm-popconfirm-box.entry.js +2 -2
  242. package/dist/esm/bcm-popconfirm.entry.js +1 -1
  243. package/dist/esm/bcm-popover.entry.js +7 -7
  244. package/dist/esm/bcm-progress.entry.js +2 -2
  245. package/dist/esm/bcm-radio-group.entry.js +2 -2
  246. package/dist/esm/bcm-radio.entry.js +2 -2
  247. package/dist/esm/bcm-range.entry.js +2 -2
  248. package/dist/esm/bcm-search.entry.js +3 -3
  249. package/dist/esm/bcm-skeleton.entry.js +6 -6
  250. package/dist/esm/bcm-step.entry.js +97 -0
  251. package/dist/esm/bcm-stepper.entry.js +216 -0
  252. package/dist/esm/bcm-switch.entry.js +2 -2
  253. package/dist/esm/bcm-tab-group.entry.js +47 -47
  254. package/dist/esm/bcm-tab.entry.js +1 -1
  255. package/dist/esm/bcm-tag.entry.js +2 -2
  256. package/dist/esm/bcm-text.entry.js +1 -1
  257. package/dist/esm/bcm-textarea.entry.js +3 -3
  258. package/dist/esm/bcm-time-picker.entry.js +3 -2
  259. package/dist/esm/bromcom-ui.js +1 -1
  260. package/dist/esm/{generate-96aa3a80.js → generate-e8056697.js} +1 -1
  261. package/dist/esm/{input-template-406cfa58.js → input-template-ad71e08b.js} +1 -1
  262. package/dist/esm/{json-parse-decarator-18de5dec.js → json-parse-decarator-03fe6dfa.js} +1 -1
  263. package/dist/esm/loader.js +1 -1
  264. package/dist/esm/{number-helper-0bf42e53.js → number-helper-a38db352.js} +1 -1
  265. package/dist/esm/old-bcm-popover-box.entry.js +3 -3
  266. package/dist/esm/old-bcm-popover.entry.js +1 -1
  267. package/dist/esm/stepper-states-9ba4f442.js +83 -0
  268. package/dist/esm/{tooltip-helper-42bbc038.js → tooltip-helper-1f693a3d.js} +3 -3
  269. package/dist/esm/{validators-32a25ed9.js → validators-66052fb7.js} +1 -1
  270. package/dist/types/components/atoms/chip/chip.d.ts +6 -1
  271. package/dist/types/components/molecules/linked/linked.d.ts +2 -2
  272. package/dist/types/components/molecules/popover/popover.d.ts +3 -3
  273. package/dist/types/components/molecules/skeleton/skeleton.d.ts +1 -1
  274. package/dist/types/components/molecules/tab-group/tab-group.d.ts +2 -2
  275. package/dist/types/components/molecules/tooltip/tooltip.d.ts +3 -3
  276. package/dist/types/components/organism/date-picker/date-picker.d.ts +1 -0
  277. package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +1 -0
  278. package/dist/types/components/organism/time-picker/time-picker.d.ts +1 -0
  279. package/dist/types/components.d.ts +13 -0
  280. package/package.json +103 -70
  281. package/dist/bromcom-ui/p-0ade7886.entry.js +0 -5
  282. package/dist/bromcom-ui/p-16570413.entry.js +0 -5
  283. package/dist/bromcom-ui/p-16ab9bf2.entry.js +0 -5
  284. package/dist/bromcom-ui/p-19732368.entry.js +0 -5
  285. package/dist/bromcom-ui/p-2120c255.entry.js +0 -5
  286. package/dist/bromcom-ui/p-26d4b774.entry.js +0 -5
  287. package/dist/bromcom-ui/p-2a7f29b6.entry.js +0 -5
  288. package/dist/bromcom-ui/p-2c31ab48.entry.js +0 -5
  289. package/dist/bromcom-ui/p-2dcf148a.entry.js +0 -5
  290. package/dist/bromcom-ui/p-42b553bc.js +0 -5
  291. package/dist/bromcom-ui/p-473726c2.entry.js +0 -5
  292. package/dist/bromcom-ui/p-489a3e1c.entry.js +0 -5
  293. package/dist/bromcom-ui/p-59a920ae.entry.js +0 -5
  294. package/dist/bromcom-ui/p-6ea69621.entry.js +0 -5
  295. package/dist/bromcom-ui/p-7ac3ad73.entry.js +0 -5
  296. package/dist/bromcom-ui/p-7f04a6eb.entry.js +0 -5
  297. package/dist/bromcom-ui/p-83d32e1e.entry.js +0 -5
  298. package/dist/bromcom-ui/p-95bba59c.entry.js +0 -5
  299. package/dist/bromcom-ui/p-99bed73b.entry.js +0 -5
  300. package/dist/bromcom-ui/p-a0630fcd.entry.js +0 -5
  301. package/dist/bromcom-ui/p-abf5f0a4.entry.js +0 -5
  302. package/dist/bromcom-ui/p-c0710046.entry.js +0 -5
  303. package/dist/bromcom-ui/p-c53ddd71.entry.js +0 -5
  304. package/dist/bromcom-ui/p-c82d082b.entry.js +0 -5
  305. package/dist/bromcom-ui/p-cd784133.entry.js +0 -5
  306. package/dist/bromcom-ui/p-d4e04c94.entry.js +0 -5
  307. package/dist/bromcom-ui/p-d6e73a17.js +0 -5
  308. package/dist/bromcom-ui/p-e74d8281.entry.js +0 -5
  309. package/dist/bromcom-ui/p-e83e3eae.entry.js +0 -5
  310. package/dist/bromcom-ui/p-efb703ec.entry.js +0 -5
  311. package/dist/bromcom-ui/p-f1734c72.entry.js +0 -5
  312. package/dist/bromcom-ui/p-f38b5b13.entry.js +0 -5
  313. package/dist/bromcom-ui/p-f70f5c27.entry.js +0 -5
  314. package/dist/cjs/bcm-button_9.cjs.entry.js +0 -1795
  315. package/dist/esm/bcm-button_9.entry.js +0 -1783
@@ -0,0 +1,487 @@
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-1fda1524.js');
10
+ const index$1 = require('./index-a2b50e51.js');
11
+ const isLoadDecorator = require('./is-load-decorator-77664890.js');
12
+ const stringHelper = require('./string-helper-df40a475.js');
13
+ const utils = require('./utils-fc077139.js');
14
+ require('./_commonjsHelpers-bd20f4c0.js');
15
+ require('./bcm-2c51bf0c.js');
16
+
17
+ // /**
18
+ // *
19
+ // * @param type
20
+ // */
21
+ // export const required = (value:any) => {
22
+ // if ( value || value != null ) {
23
+ // return true
24
+ // } else {
25
+ // return true
26
+ // }
27
+ // }
28
+ class rules {
29
+ constructor() { }
30
+ response(status, message) {
31
+ return Object.assign(Object.assign({ valid: status }, (message && { message })), (!status && { type: 'error' }));
32
+ }
33
+ required(value, componentValidation) {
34
+ let validation = this.response(true);
35
+ if (value == '' || value == "" || value == undefined || value == null || value === false) {
36
+ validation = this.response(false, 'This field is required.');
37
+ }
38
+ if (componentValidation) {
39
+ if (!componentValidation.valid) {
40
+ validation = this.response(false, componentValidation.errorText);
41
+ }
42
+ if (value instanceof Object) {
43
+ if (value.isValid) {
44
+ if (value.isValid == false)
45
+ validation = this.response(false, 'This field is required.');
46
+ }
47
+ }
48
+ }
49
+ return validation;
50
+ }
51
+ selfValidation(input) {
52
+ let validation = this.response(true);
53
+ if (input.captionError != null || input.captionType == 'error') {
54
+ validation = this.response(false, input.captionError);
55
+ }
56
+ return validation;
57
+ }
58
+ }
59
+ const validate = new rules;
60
+
61
+ const formCss = "@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;margin-bottom:8px}:host(.hidden){display:none}";
62
+
63
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
64
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
65
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
66
+ r = Reflect.decorate(decorators, target, key, desc);
67
+ else
68
+ for (var i = decorators.length - 1; i >= 0; i--)
69
+ if (d = decorators[i])
70
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
71
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
72
+ };
73
+ const BcmForm = class {
74
+ constructor(hostRef) {
75
+ index.registerInstance(this, hostRef);
76
+ this.bcmForm = index.createEvent(this, "bcm-form", 7);
77
+ this.formData = {};
78
+ this.inputs = [];
79
+ this.duplicateInput = [];
80
+ this.isValid = true;
81
+ this.returnCaption = [];
82
+ this.Bromcom = {
83
+ errors: {
84
+ targetFormNotExist: 'target form is not exist --> ',
85
+ },
86
+ inputComponents: {
87
+ // Birbirinin aynısı
88
+ INPUT: 'input',
89
+ TEXTAREA: 'textarea',
90
+ //çok benzer
91
+ SWITCH: 'switch',
92
+ CHECKBOX: 'checkbox',
93
+ RADIO_GROUP: 'radio-group',
94
+ CHECKBOX_GROUP: 'checkbox-group',
95
+ RANGE: 'range',
96
+ // sadece value fırlatıyor
97
+ FORM: 'form',
98
+ FORM_GROUP: 'form-group',
99
+ // *En vakit alacak => içinde select, autocomplete, listbox, treeview özellikleri var
100
+ LIST: 'list',
101
+ //
102
+ COLORPICKER: 'colorpicker',
103
+ // picker aslında tek komponent hepsi datetimepicker
104
+ DATE_PICKER: 'date-picker',
105
+ TIME_PICKER: 'time-picker',
106
+ DATETIME_PICKER: 'datetime-picker',
107
+ // silinecek komponentler
108
+ SELECT: 'select',
109
+ LISTBOX: 'listbox'
110
+ },
111
+ helpers: {
112
+ randomId: function () {
113
+ return Math.random().toString(16).slice(2, -1);
114
+ },
115
+ },
116
+ };
117
+ this._id = (Math.random() * 4).toString(16).replace('.', '');
118
+ this.hidden = false;
119
+ this.validation = false;
120
+ this.name = "";
121
+ this.value = undefined;
122
+ this.autocomplete = false;
123
+ }
124
+ handleSubmit() {
125
+ // if (lowercase(e.target.nodeName) === 'bcm-button') {
126
+ // if (e.target.type === 'submit') {
127
+ // this.submitFunction()
128
+ // }
129
+ // }
130
+ }
131
+ async submitFunction() {
132
+ this.formData = {};
133
+ this.inputs = [];
134
+ this.selector = this.el;
135
+ await this.getInputs();
136
+ await utils.delay(10);
137
+ const usrFrmData = await this.userFormData();
138
+ var formData = { isValid: true, formData: usrFrmData };
139
+ if (this.name) {
140
+ formData = Object.assign(Object.assign({}, formData), { formName: this.name });
141
+ }
142
+ if (this.isValid) {
143
+ this.bcmForm.emit(formData);
144
+ return formData;
145
+ }
146
+ else {
147
+ this.returnCaption = { isValid: false, 'message': 'Please fill in all inputs', 'errorDetails': this.returnCaption, formData: usrFrmData };
148
+ if (this.name) {
149
+ this.returnCaption = Object.assign(Object.assign({}, this.returnCaption), { formName: this.name });
150
+ }
151
+ this.bcmForm.emit(this.returnCaption);
152
+ return this.returnCaption;
153
+ }
154
+ }
155
+ async submit() {
156
+ return Promise.resolve(this.submitFunction());
157
+ }
158
+ async set(data) {
159
+ var _a;
160
+ const validate = this.validation;
161
+ this.validation = false;
162
+ // debugger
163
+ this.selector = this.el;
164
+ await this.getInputs();
165
+ if (data && ((_a = this.inputs) === null || _a === void 0 ? void 0 : _a.length) > 0) {
166
+ for (const key of Object.keys(data)) {
167
+ const item = this.inputs.find(item => item.name === key);
168
+ if (item) {
169
+ try {
170
+ await item.set(data[key]);
171
+ }
172
+ catch (error) {
173
+ console.log(item.nodeName, "set", error);
174
+ }
175
+ }
176
+ }
177
+ }
178
+ this.validation = validate;
179
+ }
180
+ async get() {
181
+ var _a;
182
+ let formData = {};
183
+ this.selector = this.el;
184
+ const inputsCache = this.inputs;
185
+ await this.getInputs();
186
+ ((_a = this.inputs) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.inputs.forEach(async (item) => {
187
+ try {
188
+ const value = await item.get();
189
+ formData = Object.assign(Object.assign({}, formData), { [item.name]: value });
190
+ }
191
+ catch (error) {
192
+ console.log(`${item.nodeName} get error`);
193
+ }
194
+ });
195
+ this.inputs = inputsCache;
196
+ await utils.delay(10);
197
+ return Promise.resolve(formData);
198
+ }
199
+ async setClear() {
200
+ this.formData = {};
201
+ this.inputs = [];
202
+ this.selector = this.el;
203
+ let clear = [];
204
+ await this.getInputs();
205
+ this.inputs.forEach(async (item) => {
206
+ try {
207
+ clear.push(await item.setClear());
208
+ }
209
+ catch (error) {
210
+ console.log(error);
211
+ }
212
+ });
213
+ await Promise.all(clear).then(() => {
214
+ this.formData = {};
215
+ this.inputs = [];
216
+ this.duplicateInput = [];
217
+ this.isValid = true;
218
+ this.returnCaption = [];
219
+ });
220
+ await utils.delay(10);
221
+ return Promise.resolve(true);
222
+ }
223
+ async resetCaption() {
224
+ await utils.delay(10);
225
+ this.formData = {};
226
+ this.inputs = [];
227
+ this.selector = this.el;
228
+ await this.getInputs();
229
+ for (const item of this.inputs) {
230
+ try {
231
+ await item.resetCaption();
232
+ }
233
+ catch (error) {
234
+ console.log(item.nodeName, "rc p");
235
+ }
236
+ }
237
+ await utils.delay(10);
238
+ return Promise.resolve();
239
+ }
240
+ async config(_config) {
241
+ if (_config['validation']) {
242
+ typeof _config['validation'] == 'boolean'
243
+ ? this.validation = _config['validation']
244
+ : this.validation = false;
245
+ }
246
+ return true;
247
+ }
248
+ async getInputs() {
249
+ var form = this.selector;
250
+ if (!form) {
251
+ console.warn(this.Bromcom.errors.targetFormNotExist + this.selector);
252
+ return;
253
+ }
254
+ const inputs = Array.from(form.querySelectorAll('bcm-' + Object.values(this.Bromcom.inputComponents).join(',bcm-')));
255
+ this.duplicateInput = [];
256
+ // s-hn: Stencil private flag that contains host web component
257
+ // https://github.com/ionic-team/stencil/blob/45388e95edb46ef357eb9ae37cd32bbb5bc1ed23/src/runtime/vdom/vdom-render.ts#L116
258
+ const rootInputs = inputs.filter((input) => { var _a; return !input['s-hn'] || ((_a = input['s-hn']) === null || _a === void 0 ? void 0 : _a.nodeName) !== 'BcmForm'; });
259
+ // debugger;
260
+ for (const item of rootInputs) {
261
+ if (stringHelper.StringHelper.lowercase(item.nodeName) == "bcm-checkbox-group") {
262
+ let checkboxs = item.querySelectorAll("bcm-checkbox");
263
+ if (checkboxs) {
264
+ for (const checkbox of checkboxs) {
265
+ this.duplicateInput.push(checkbox.name);
266
+ }
267
+ }
268
+ }
269
+ if (stringHelper.StringHelper.lowercase(item.nodeName) == "bcm-form") {
270
+ const groupInputs = Array.from(item.querySelectorAll('bcm-' + Object.values(this.Bromcom.inputComponents).join(',bcm-')));
271
+ let itemObject = {};
272
+ for (const element of groupInputs) {
273
+ var name = element.name;
274
+ var value = element.value;
275
+ itemObject = Object.assign(Object.assign({}, itemObject), { [name]: value });
276
+ this.duplicateInput.push(element.name);
277
+ }
278
+ item.value = itemObject;
279
+ let checkboxs = item.querySelectorAll("bcm-checkbox");
280
+ if (checkboxs) {
281
+ for (const checkbox of checkboxs) {
282
+ this.duplicateInput.push(checkbox.name);
283
+ }
284
+ }
285
+ }
286
+ }
287
+ await utils.delay(10);
288
+ this.inputs = rootInputs;
289
+ }
290
+ getItemValue(item) {
291
+ const tagName = item.tagName.toLowerCase().replace('bcm-', '');
292
+ switch (tagName) {
293
+ /* case 'date-picker':
294
+ case 'datetime-picker':
295
+ return item.value.timestamp
296
+ case 'time-picker':
297
+ return item.value.time */
298
+ default:
299
+ return item.value;
300
+ }
301
+ }
302
+ isWrapperComponent(item) {
303
+ return ['bcm-datetime-picker', 'bcm-date-picker', 'bcm-time-picker'].includes(item.toLowerCase());
304
+ }
305
+ isGroupComponent(item) {
306
+ return ['bcm-checkbox-group'].includes(item.toLowerCase());
307
+ }
308
+ isListComponent(item) {
309
+ return ['bcm-list'].includes(item.toLowerCase());
310
+ }
311
+ async userFormData() {
312
+ this.formData = {};
313
+ this.isValid = true;
314
+ this.returnCaption = [];
315
+ for (const item of this.inputs) {
316
+ // const isListComponent = this.isListComponent(item.tagName);
317
+ const isGroupComponent = this.isGroupComponent(item.tagName);
318
+ const isWrapperComponent = this.isWrapperComponent(item.tagName);
319
+ const wrapperComponent = isWrapperComponent && item;
320
+ const input = isWrapperComponent
321
+ ? await item.getInput() && item
322
+ : item;
323
+ // input.caption = ''
324
+ // input.captionType = ''
325
+ if (this.validation) {
326
+ let valid = null;
327
+ // if (isListComponent) {
328
+ // valid = !(input.value && input.value.length > 0) && validate.required(input.value)
329
+ // } else
330
+ if (isWrapperComponent) {
331
+ const isPickerValid = await wrapperComponent.isValid();
332
+ valid = validate.required(input.value, isPickerValid);
333
+ if (valid) {
334
+ if (input.value instanceof Object) {
335
+ if (input.value["isValid"] == false) {
336
+ valid = validate.required("", isPickerValid);
337
+ }
338
+ }
339
+ else {
340
+ valid = validate.required(input.value, isPickerValid);
341
+ }
342
+ }
343
+ }
344
+ else if (isGroupComponent) {
345
+ const childsCheckbox = utils.getChildElements(input, 'bcm-checkbox:not(#bcm-indeterminate-element)');
346
+ if (childsCheckbox && childsCheckbox.length > 0) {
347
+ for (const element of childsCheckbox) {
348
+ if (element && element.required === true) {
349
+ valid = validate.required(element.checked);
350
+ if (!valid['valid']) {
351
+ element.noCaption = false;
352
+ element.captionError = valid['message'];
353
+ element.captionType = valid['type'];
354
+ }
355
+ else {
356
+ element.noCaption = input.noCaption;
357
+ element.captionError = null;
358
+ element.captionType = "default";
359
+ }
360
+ }
361
+ }
362
+ }
363
+ }
364
+ else {
365
+ valid = validate.required(input.value);
366
+ }
367
+ if (input.required) {
368
+ if (!valid['valid']) {
369
+ input.captionError = valid['message'];
370
+ input.captionType = valid['type'];
371
+ }
372
+ else {
373
+ input.captionError = null;
374
+ input.captionType = "default";
375
+ }
376
+ await utils.delay(10);
377
+ const selfValidation = validate.selfValidation(input);
378
+ if (valid['valid']) {
379
+ if (!selfValidation['valid']) {
380
+ input.captionError = selfValidation['message'];
381
+ input.captionType = selfValidation['type'];
382
+ }
383
+ }
384
+ }
385
+ let name = input.name;
386
+ let value = input.captionError;
387
+ !input.hidden && input.captionType == 'error' && (this.returnCaption = [...Array.from(this.returnCaption), { [name]: value }],
388
+ this.isValid = false);
389
+ }
390
+ if (input.name && !this.duplicateInput.includes(input.name)) {
391
+ var itemValue = this.getItemValue(input);
392
+ if (!itemValue || itemValue == undefined || itemValue == null) {
393
+ itemValue = null;
394
+ }
395
+ this.formData[input.name] = itemValue;
396
+ }
397
+ }
398
+ return this.formData;
399
+ }
400
+ async handleChange(e) {
401
+ const isWrapperComponent = this.isWrapperComponent(e.target.tagName);
402
+ const isGroupComponent = this.isGroupComponent(e.target.tagName);
403
+ let target;
404
+ if (isWrapperComponent) {
405
+ target = e.target.getInput && await e.target.getInput() || e.target;
406
+ }
407
+ else if (isGroupComponent) {
408
+ let req = false;
409
+ const childsCheckbox = utils.getChildElements(e.target, 'bcm-checkbox:not(#bcm-indeterminate-element)');
410
+ childsCheckbox.length > 0 && (childsCheckbox.forEach((element) => {
411
+ if (element && element.required === true) {
412
+ req = true;
413
+ }
414
+ }));
415
+ target = Object.assign(Object.assign({}, e.target), { required: req });
416
+ }
417
+ else {
418
+ target = e.target;
419
+ }
420
+ const value = e.target.value;
421
+ const wrapperComponent = isWrapperComponent && e.target;
422
+ var isPickerValid;
423
+ if (isWrapperComponent) {
424
+ isPickerValid = await wrapperComponent.isValid();
425
+ }
426
+ const tick = setTimeout(() => {
427
+ if (target.required) {
428
+ let valid = null;
429
+ if (isWrapperComponent) {
430
+ valid = validate.required(value, isPickerValid);
431
+ if (valid) {
432
+ if (value instanceof Object) {
433
+ if (value["isValid"] == false) {
434
+ valid = validate.required("", isPickerValid);
435
+ }
436
+ }
437
+ else {
438
+ valid = validate.required(value, isPickerValid);
439
+ }
440
+ }
441
+ }
442
+ else if (isGroupComponent) {
443
+ const childsCheckbox = utils.getChildElements(e.target, 'bcm-checkbox:not(#bcm-indeterminate-element)');
444
+ childsCheckbox.length > 0 && (childsCheckbox.forEach((element) => {
445
+ if (element && element.required === true) {
446
+ valid = validate.required(element.checked);
447
+ if (!valid['valid']) {
448
+ element.noCaption = false;
449
+ element.captionError = valid['message'];
450
+ element.captionType = valid['type'];
451
+ }
452
+ else {
453
+ element.noCaption = e.target.noCaption;
454
+ element.captionError = null;
455
+ element.captionType = "default";
456
+ }
457
+ }
458
+ }));
459
+ }
460
+ else {
461
+ valid = validate.required(value);
462
+ }
463
+ if (valid['valid']) {
464
+ target.captionError = null;
465
+ target.captionType = null;
466
+ }
467
+ else {
468
+ target.captionError = valid['message'];
469
+ target.captionType = valid['type'];
470
+ }
471
+ }
472
+ clearTimeout(tick);
473
+ });
474
+ this.value = await this.userFormData();
475
+ }
476
+ render() {
477
+ const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
478
+ return (index.h(index.Host, { class: hostClasses, tabindex: "-1" }, index.h("form", { class: "bcm-form", autocomplete: this.autocomplete ? "on" : "off", tabindex: "-1" }, index.h("slot", null))));
479
+ }
480
+ get el() { return index.getElement(this); }
481
+ };
482
+ __decorate([
483
+ isLoadDecorator.IsLoad()
484
+ ], BcmForm.prototype, "el", void 0);
485
+ BcmForm.style = formCss;
486
+
487
+ exports.bcm_form = BcmForm;
@@ -0,0 +1,41 @@
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-1fda1524.js');
10
+ const isLoadDecorator = require('./is-load-decorator-77664890.js');
11
+
12
+ const iconCss = "@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}.bcm-icon.hidden{display:none}";
13
+
14
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
17
+ r = Reflect.decorate(decorators, target, key, desc);
18
+ else
19
+ for (var i = decorators.length - 1; i >= 0; i--)
20
+ if (d = decorators[i])
21
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ const BcmIcon = class {
25
+ constructor(hostRef) {
26
+ index.registerInstance(this, hostRef);
27
+ this.hidden = false;
28
+ this.icon = undefined;
29
+ }
30
+ render() {
31
+ const { icon, hidden } = this;
32
+ return (index.h(index.Host, { class: `bcm-icon fa ${hidden ? 'hidden' : ''}` }, index.h("i", { class: `${icon}` })));
33
+ }
34
+ get el() { return index.getElement(this); }
35
+ };
36
+ __decorate([
37
+ isLoadDecorator.IsLoad()
38
+ ], BcmIcon.prototype, "el", void 0);
39
+ BcmIcon.style = iconCss;
40
+
41
+ exports.bcm_icon = BcmIcon;