bromcom-ui 2.10.1-rc.1 → 2.10.1-rc.11

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 (278) 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-000670b6.js +5 -0
  4. package/dist/bromcom-ui/p-01c19c5a.entry.js +5 -0
  5. package/dist/bromcom-ui/{p-09699c4d.entry.js → p-0985e7ba.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-3756f541.entry.js → p-10e70228.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-16848643.entry.js → p-13c47eea.entry.js} +1 -1
  8. package/dist/bromcom-ui/p-140b6ce0.js +5 -0
  9. package/dist/bromcom-ui/{p-1708a5ec.entry.js → p-18020ef7.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-7f09901d.entry.js → p-1b9bffba.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-3f39982f.entry.js → p-30bfe3bd.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-571dca86.entry.js → p-372ffe04.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-551058cd.entry.js → p-3c87fd88.entry.js} +1 -1
  14. package/dist/bromcom-ui/p-4597ee14.entry.js +5 -0
  15. package/dist/bromcom-ui/p-47682d2b.entry.js +21 -0
  16. package/dist/bromcom-ui/p-4bace961.entry.js +5 -0
  17. package/dist/bromcom-ui/{p-0973538a.entry.js → p-5f419e20.entry.js} +1 -1
  18. package/dist/bromcom-ui/p-6132700e.entry.js +5 -0
  19. package/dist/bromcom-ui/{p-9a41b688.js → p-62840867.js} +1 -1
  20. package/dist/bromcom-ui/p-629bcf93.entry.js +5 -0
  21. package/dist/bromcom-ui/{p-77eb2287.entry.js → p-6a02ed0b.entry.js} +1 -1
  22. package/dist/bromcom-ui/p-6bfed79a.entry.js +5 -0
  23. package/dist/bromcom-ui/{p-55291cc5.entry.js → p-6d83c8f6.entry.js} +1 -1
  24. package/dist/bromcom-ui/p-6de1c6ea.entry.js +5 -0
  25. package/dist/bromcom-ui/p-71cbd6f6.entry.js +5 -0
  26. package/dist/bromcom-ui/{p-56f7477e.entry.js → p-73d4bd1c.entry.js} +1 -1
  27. package/dist/bromcom-ui/p-7ada3462.entry.js +5 -0
  28. package/dist/bromcom-ui/p-7c0a3a3d.js +5 -0
  29. package/dist/bromcom-ui/{p-dac3117a.entry.js → p-7d1dd1b9.entry.js} +1 -1
  30. package/dist/bromcom-ui/{p-673f7ee8.entry.js → p-82331114.entry.js} +1 -1
  31. package/dist/bromcom-ui/p-8301a465.entry.js +5 -0
  32. package/dist/bromcom-ui/p-85565afb.js +5 -0
  33. package/dist/bromcom-ui/{p-5ca4aa84.entry.js → p-88c38780.entry.js} +1 -1
  34. package/dist/bromcom-ui/p-8dc361a8.js +5 -0
  35. package/dist/bromcom-ui/{p-015d19dd.entry.js → p-90510968.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-e131b27f.js → p-92d1a4c9.js} +1 -1
  37. package/dist/bromcom-ui/{p-cf171578.js → p-9398df85.js} +1 -1
  38. package/dist/bromcom-ui/{p-a04aab3c.entry.js → p-9ec71162.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-0325e8a4.entry.js → p-9f954c08.entry.js} +1 -1
  40. package/dist/bromcom-ui/p-9fbc30a6.entry.js +5 -0
  41. package/dist/bromcom-ui/{p-f3431dc8.js → p-a40d4f27.js} +1 -1
  42. package/dist/bromcom-ui/p-a8d23b66.entry.js +5 -0
  43. package/dist/bromcom-ui/p-a953375b.entry.js +5 -0
  44. package/dist/bromcom-ui/p-a95b18f2.entry.js +5 -0
  45. package/dist/bromcom-ui/{p-24710a65.entry.js → p-a9c8b43c.entry.js} +1 -1
  46. package/dist/bromcom-ui/p-abc44b58.entry.js +5 -0
  47. package/dist/bromcom-ui/p-baf565be.entry.js +5 -0
  48. package/dist/bromcom-ui/{p-e38c4c3a.entry.js → p-bffc5f8c.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-39a40a6e.entry.js → p-c80014e3.entry.js} +1 -1
  50. package/dist/bromcom-ui/p-c852c8fe.entry.js +5 -0
  51. package/dist/bromcom-ui/{p-cf0c0700.entry.js → p-ca788dc4.entry.js} +1 -1
  52. package/dist/bromcom-ui/p-ca8a4fc8.entry.js +5 -0
  53. package/dist/bromcom-ui/p-cc6c6f9e.entry.js +5 -0
  54. package/dist/bromcom-ui/p-d283e83e.entry.js +5 -0
  55. package/dist/bromcom-ui/p-dbad3126.entry.js +5 -0
  56. package/dist/bromcom-ui/{p-c1b167a3.js → p-de2272c5.js} +1 -1
  57. package/dist/bromcom-ui/{p-3b41df22.entry.js → p-df444847.entry.js} +1 -1
  58. package/dist/bromcom-ui/p-ee4845ac.entry.js +5 -0
  59. package/dist/bromcom-ui/{p-e11ab4ed.entry.js → p-ef829d33.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-646cf63c.entry.js → p-f24b096b.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-d7538ba4.entry.js → p-f372306f.entry.js} +1 -1
  62. package/dist/bromcom-ui/p-f818d2a9.entry.js +5 -0
  63. package/dist/bromcom-ui/{p-14c32a34.entry.js → p-f93bf6db.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-f1dbd96d.entry.js → p-fc18af27.entry.js} +1 -1
  65. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  66. package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
  67. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  68. package/dist/cjs/bcm-avatar_2.cjs.entry.js +4 -5
  69. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  70. package/dist/cjs/bcm-button-group.cjs.entry.js +2 -2
  71. package/dist/cjs/{bcm-button_10.cjs.entry.js → bcm-button_18.cjs.entry.js} +8309 -1414
  72. package/dist/cjs/bcm-caption.cjs.entry.js +5 -6
  73. package/dist/cjs/bcm-card.cjs.entry.js +2 -2
  74. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +3 -3
  75. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
  76. package/dist/cjs/bcm-chip-group.cjs.entry.js +5 -6
  77. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  78. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
  79. package/dist/cjs/bcm-color-input.cjs.entry.js +4 -5
  80. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  81. package/dist/cjs/bcm-drawer.cjs.entry.js +4 -5
  82. package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
  83. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +2 -2
  84. package/dist/cjs/bcm-form-2.cjs.entry.js +2 -2
  85. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  86. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +6 -7
  87. package/dist/cjs/bcm-item.cjs.entry.js +2 -2
  88. package/dist/cjs/bcm-items.cjs.entry.js +2 -2
  89. package/dist/cjs/bcm-menu.cjs.entry.js +5 -6
  90. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -5
  91. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -5
  92. package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -5
  93. package/dist/cjs/bcm-modal.cjs.entry.js +2 -2
  94. package/dist/cjs/bcm-number-input.cjs.entry.js +108 -0
  95. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -2
  96. package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
  97. package/dist/cjs/bcm-popover.cjs.entry.js +4 -5
  98. package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
  99. package/dist/cjs/bcm-radio-group.cjs.entry.js +4 -5
  100. package/dist/cjs/bcm-radio.cjs.entry.js +4 -5
  101. package/dist/cjs/bcm-range.cjs.entry.js +2 -2
  102. package/dist/cjs/bcm-shortcut.cjs.entry.js +4 -5
  103. package/dist/cjs/bcm-skeleton.cjs.entry.js +4 -5
  104. package/dist/cjs/bcm-step.cjs.entry.js +3 -3
  105. package/dist/cjs/bcm-stepper.cjs.entry.js +5 -6
  106. package/dist/cjs/bcm-tab-group.cjs.entry.js +4 -5
  107. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +4 -5
  108. package/dist/cjs/bcm-tab-item.cjs.entry.js +4 -5
  109. package/dist/cjs/bcm-table.cjs.entry.js +4 -5
  110. package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
  111. package/dist/cjs/bcm-textarea.cjs.entry.js +3 -3
  112. package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -2
  113. package/dist/cjs/bcm-toast.cjs.entry.js +2 -2
  114. package/dist/cjs/bcm-typography.cjs.entry.js +21 -0
  115. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  116. package/dist/cjs/{generate-e79347af.js → generate-8f2a5b22.js} +15 -1
  117. package/dist/cjs/{global-9bb1902a.js → global-6e3108be.js} +1 -1
  118. package/dist/cjs/{input-template-3d21aacb.js → input-template-866a71d3.js} +1 -1
  119. package/dist/cjs/{json-parse-decarator-4d7afa63.js → json-parse-decarator-f30bb239.js} +1 -1
  120. package/dist/cjs/{label-template-8dc10d0a.js → label-template-a6f51ef2.js} +6 -3
  121. package/dist/cjs/loader.cjs.js +3 -3
  122. package/dist/cjs/{number-helper-2f971fd8.js → number-helper-57ea679e.js} +1 -1
  123. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -3
  124. package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
  125. package/dist/cjs/{package-47b7b998.js → package-9f43976f.js} +1 -1
  126. package/dist/cjs/{stepper-states-a5699b31.js → stepper-states-1199c518.js} +1 -1
  127. package/dist/cjs/{tooltip-helper-7d5d1cb5.js → tooltip-helper-f55fc832.js} +3 -4
  128. package/dist/cjs/{validators-507307b9.js → validators-463a67ba.js} +6 -1
  129. package/dist/collection/collection-manifest.json +1 -0
  130. package/dist/collection/components/atoms/label/label.js +1 -1
  131. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
  132. package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +1 -1
  133. package/dist/collection/components/molecules/number-input/number-input.css +137 -0
  134. package/dist/collection/components/molecules/number-input/number-input.js +425 -0
  135. package/dist/collection/components/molecules/number-input/number-input.style.js +45 -0
  136. package/dist/collection/components/molecules/switch/switch.css +1 -0
  137. package/dist/collection/components/organism/datetime-picker/datetime-picker.css +47 -0
  138. package/dist/collection/components/organism/list/list.css +2 -0
  139. package/dist/collection/components/organism/list/list.js +38 -9
  140. package/dist/collection/components/other_deprecated/old-input/old-input.css +47 -0
  141. package/dist/collection/helper/generate.js +14 -0
  142. package/dist/collection/templates/label-template.js +6 -6
  143. package/dist/collection/templates/list-item-template.js +3 -2
  144. package/dist/components/bcm-caption.js +2 -2
  145. package/dist/components/bcm-input-dropdown.js +2 -2
  146. package/dist/components/bcm-number-input.d.ts +11 -0
  147. package/dist/components/bcm-number-input.js +157 -0
  148. package/dist/components/bcm-switch.js +1 -1
  149. package/dist/components/datetime-picker.js +1 -1
  150. package/dist/components/generate.js +15 -1
  151. package/dist/components/index.d.ts +1 -0
  152. package/dist/components/index.js +1 -0
  153. package/dist/components/label.js +7 -4
  154. package/dist/components/list.js +19 -10
  155. package/dist/components/old-input.js +1 -1
  156. package/dist/esm/bcm-accordion.entry.js +2 -2
  157. package/dist/esm/bcm-alert.entry.js +2 -2
  158. package/dist/esm/bcm-attendance.entry.js +2 -2
  159. package/dist/esm/bcm-avatar_2.entry.js +4 -5
  160. package/dist/esm/bcm-breadcrumb.entry.js +2 -2
  161. package/dist/esm/bcm-button-group.entry.js +2 -2
  162. package/dist/esm/{bcm-button_10.entry.js → bcm-button_18.entry.js} +7872 -985
  163. package/dist/esm/bcm-caption.entry.js +5 -6
  164. package/dist/esm/bcm-card.entry.js +2 -2
  165. package/dist/esm/bcm-checkbox-group.entry.js +3 -3
  166. package/dist/esm/bcm-checkbox-lite_9.entry.js +2 -2
  167. package/dist/esm/bcm-chip-group.entry.js +5 -6
  168. package/dist/esm/bcm-chip.entry.js +2 -2
  169. package/dist/esm/bcm-collapse.entry.js +2 -2
  170. package/dist/esm/bcm-color-input.entry.js +4 -5
  171. package/dist/esm/bcm-default.entry.js +2 -2
  172. package/dist/esm/bcm-drawer.entry.js +4 -5
  173. package/dist/esm/bcm-dropdown.entry.js +3 -3
  174. package/dist/esm/bcm-expansion-panel.entry.js +2 -2
  175. package/dist/esm/bcm-form-2.entry.js +2 -2
  176. package/dist/esm/bcm-input-custom.entry.js +2 -2
  177. package/dist/esm/bcm-input-dropdown.entry.js +6 -7
  178. package/dist/esm/bcm-item.entry.js +2 -2
  179. package/dist/esm/bcm-items.entry.js +2 -2
  180. package/dist/esm/bcm-menu.entry.js +5 -6
  181. package/dist/esm/bcm-modal-2-footer.entry.js +4 -5
  182. package/dist/esm/bcm-modal-2-header.entry.js +4 -5
  183. package/dist/esm/bcm-modal-2.entry.js +4 -5
  184. package/dist/esm/bcm-modal.entry.js +2 -2
  185. package/dist/esm/bcm-number-input.entry.js +104 -0
  186. package/dist/esm/bcm-popconfirm-box.entry.js +2 -2
  187. package/dist/esm/bcm-popconfirm.entry.js +2 -2
  188. package/dist/esm/bcm-popover.entry.js +4 -5
  189. package/dist/esm/bcm-progress.entry.js +2 -2
  190. package/dist/esm/bcm-radio-group.entry.js +4 -5
  191. package/dist/esm/bcm-radio.entry.js +4 -5
  192. package/dist/esm/bcm-range.entry.js +2 -2
  193. package/dist/esm/bcm-shortcut.entry.js +4 -5
  194. package/dist/esm/bcm-skeleton.entry.js +4 -5
  195. package/dist/esm/bcm-step.entry.js +3 -3
  196. package/dist/esm/bcm-stepper.entry.js +5 -6
  197. package/dist/esm/bcm-tab-group.entry.js +4 -5
  198. package/dist/esm/bcm-tab-item-header.entry.js +4 -5
  199. package/dist/esm/bcm-tab-item.entry.js +4 -5
  200. package/dist/esm/bcm-table.entry.js +4 -5
  201. package/dist/esm/bcm-tag.entry.js +3 -3
  202. package/dist/esm/bcm-textarea.entry.js +3 -3
  203. package/dist/esm/bcm-time-picker.entry.js +2 -2
  204. package/dist/esm/bcm-toast.entry.js +2 -2
  205. package/dist/esm/bcm-typography.entry.js +17 -0
  206. package/dist/esm/bromcom-ui.js +3 -3
  207. package/dist/esm/{generate-b9c6f412.js → generate-c1065765.js} +15 -1
  208. package/dist/esm/{global-114427da.js → global-6365ce83.js} +1 -1
  209. package/dist/esm/{input-template-dc94e47f.js → input-template-74229cd2.js} +1 -1
  210. package/dist/esm/{json-parse-decarator-fca2dc09.js → json-parse-decarator-a301c8b7.js} +1 -1
  211. package/dist/esm/{label-template-989d1700.js → label-template-ad2e8119.js} +6 -3
  212. package/dist/esm/loader.js +3 -3
  213. package/dist/esm/{number-helper-70be3621.js → number-helper-d42f27d5.js} +1 -1
  214. package/dist/esm/old-bcm-popover-box.entry.js +3 -3
  215. package/dist/esm/old-bcm-popover.entry.js +2 -2
  216. package/dist/esm/{package-6f4c9f8c.js → package-5c7049c1.js} +1 -1
  217. package/dist/esm/{stepper-states-291a682f.js → stepper-states-39645921.js} +1 -1
  218. package/dist/esm/{tooltip-helper-089735b1.js → tooltip-helper-61f3e8cb.js} +3 -4
  219. package/dist/esm/{validators-c1fe8b4b.js → validators-3881959b.js} +6 -2
  220. package/dist/types/components/molecules/number-input/number-input.d.ts +29 -0
  221. package/dist/types/components/molecules/number-input/number-input.style.d.ts +200 -0
  222. package/dist/types/components/organism/list/list.d.ts +3 -1
  223. package/dist/types/components.d.ts +55 -1
  224. package/dist/types/helper/generate.d.ts +3 -0
  225. package/dist/types/models/bcm.d.ts +3 -0
  226. package/dist/types/templates/label-template.d.ts +2 -1
  227. package/package.json +1 -1
  228. package/dist/bromcom-ui/p-0b316c6f.entry.js +0 -5
  229. package/dist/bromcom-ui/p-0b820f78.entry.js +0 -5
  230. package/dist/bromcom-ui/p-0fe106fc.entry.js +0 -5
  231. package/dist/bromcom-ui/p-140f3478.js +0 -5
  232. package/dist/bromcom-ui/p-29614b49.entry.js +0 -5
  233. package/dist/bromcom-ui/p-2da72d6a.entry.js +0 -5
  234. package/dist/bromcom-ui/p-3432a82d.js +0 -19
  235. package/dist/bromcom-ui/p-3d142f76.entry.js +0 -5
  236. package/dist/bromcom-ui/p-40b85b9b.entry.js +0 -5
  237. package/dist/bromcom-ui/p-483b4ba8.entry.js +0 -5
  238. package/dist/bromcom-ui/p-5ff3c68f.entry.js +0 -5
  239. package/dist/bromcom-ui/p-626a65e9.js +0 -5
  240. package/dist/bromcom-ui/p-62d178e3.entry.js +0 -5
  241. package/dist/bromcom-ui/p-71b9ea64.entry.js +0 -7
  242. package/dist/bromcom-ui/p-795d2f76.entry.js +0 -5
  243. package/dist/bromcom-ui/p-813ec92d.js +0 -5
  244. package/dist/bromcom-ui/p-8b202d9e.js +0 -5
  245. package/dist/bromcom-ui/p-8d43aa14.entry.js +0 -5
  246. package/dist/bromcom-ui/p-93b8a3ff.entry.js +0 -5
  247. package/dist/bromcom-ui/p-9889a4ed.entry.js +0 -5
  248. package/dist/bromcom-ui/p-a00170b7.entry.js +0 -5
  249. package/dist/bromcom-ui/p-a1f9e7d4.entry.js +0 -5
  250. package/dist/bromcom-ui/p-a42cc789.entry.js +0 -5
  251. package/dist/bromcom-ui/p-a839a0e5.entry.js +0 -5
  252. package/dist/bromcom-ui/p-b013cff9.entry.js +0 -5
  253. package/dist/bromcom-ui/p-b3b59bc3.entry.js +0 -5
  254. package/dist/bromcom-ui/p-be434461.entry.js +0 -5
  255. package/dist/bromcom-ui/p-bec8a936.entry.js +0 -5
  256. package/dist/bromcom-ui/p-c566b3a0.entry.js +0 -5
  257. package/dist/bromcom-ui/p-cd04678a.entry.js +0 -5
  258. package/dist/bromcom-ui/p-d06f5291.js +0 -5
  259. package/dist/bromcom-ui/p-d89b7e22.entry.js +0 -5
  260. package/dist/bromcom-ui/p-ea2ce157.js +0 -5
  261. package/dist/bromcom-ui/p-f7549b1f.entry.js +0 -5
  262. package/dist/bromcom-ui/p-fb597d84.entry.js +0 -5
  263. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
  264. package/dist/cjs/bcm-date-picker.cjs.entry.js +0 -182
  265. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +0 -1450
  266. package/dist/cjs/bcm-list_3.cjs.entry.js +0 -2536
  267. package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
  268. package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
  269. package/dist/cjs/datetime-helper-eaf4fadb.js +0 -11
  270. package/dist/cjs/index-7eed931f.js +0 -2146
  271. package/dist/esm/bcm-checkbox_2.entry.js +0 -189
  272. package/dist/esm/bcm-date-picker.entry.js +0 -178
  273. package/dist/esm/bcm-datetime-picker.entry.js +0 -1446
  274. package/dist/esm/bcm-list_3.entry.js +0 -2530
  275. package/dist/esm/bcm-old-input.entry.js +0 -393
  276. package/dist/esm/bcm-switch.entry.js +0 -147
  277. package/dist/esm/datetime-helper-df25808a.js +0 -9
  278. package/dist/esm/index-e4b6a4ce.js +0 -2127
@@ -1,194 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- 'use strict';
6
-
7
- Object.defineProperty(exports, '__esModule', { value: true });
8
-
9
- const index = require('./index-c591ecec.js');
10
- const index$1 = require('./index-95ae50d0.js');
11
- const captionTemplate = require('./caption-template-6f535b93.js');
12
- const generate = require('./generate-e79347af.js');
13
- const slotTemplate = require('./slot-template-80b019d5.js');
14
- const bcm = require('./bcm-3c58a6d5.js');
15
- const utils = require('./utils-fc077139.js');
16
- const colorHelper = require('./color-helper-c3a819ea.js');
17
- const isLoadDecorator = require('./is-load-decorator-15036f37.js');
18
- require('./_commonjsHelpers-ed84c3ca.js');
19
- require('./package-47b7b998.js');
20
- require('./colors-078851ec.js');
21
- require('./string-helper-3212f4ea.js');
22
- require('./colors-56282b00.js');
23
-
24
- const checkboxCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}.bcm-input[no-margin]{margin:0}.bcm-textarea[no-margin]{margin:0}.bcm-switch[no-margin]{margin:0}.bcm-checkbox[no-margin]{margin:0}.bcm-radio-group[no-margin]{margin:0}.bcm-checkbox-group[no-margin]{margin:0}.bcm-range[no-margin]{margin:0}.bcm-form[no-margin]{margin:0}.bcm-form-group[no-margin]{margin:0}.bcm-list[no-margin]{margin:0}.bcm-colorpicker[no-margin]{margin:0}.bcm-date-picker[no-margin]{margin:0}.bcm-time-picker[no-margin]{margin:0}.bcm-datetime-picker[no-margin]{margin:0}.bcm-select[no-margin]{margin:0}.bcm-listbox[no-margin]{margin:0}*{box-sizing:border-box}.bcm-checkbox{outline:none;border:none;--bcm-checkbox-primary-color-default:var(--bcm-new-ds-color-blue-500);--bcm-checkbox-secondary-color-default:var(--bcm-new-ds-color-white);--bcm-checkbox-primary-color-hover:var(--bcm-new-ds-color-blue-600);--bcm-checkbox-secondary-color-hover:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-focus-visible:var(--bcm-new-ds-color-blue-800);--bcm-checkbox-secondary-color-focus-visible:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-active:var(--bcm-new-ds-color-blue-700);--bcm-checkbox-secondary-color-active:var(--bcm-new-ds-color-slate-50);--bcm-checkbox-primary-color-disabled:var(--bcm-new-ds-color-slate-300);--bcm-checkbox-secondary-color-disabled:var(--bcm-new-ds-color-slate-200);display:inline-flex;width:fit-content;flex-direction:column;margin-bottom:8px}.bcm-checkbox:focus,.bcm-checkbox:hover,.bcm-checkbox:active{outline:none;border:none}.bcm-checkbox *{box-sizing:border-box}.bcm-checkbox input[type=radio],.bcm-checkbox input[type=checkbox]{-webkit-appearance:none;appearance:none;background-color:#fff;margin:0;display:none}.bcm-checkbox__input{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;padding-top:4px}.bcm-checkbox.hidden{display:none}.bcm-checkbox :hover{cursor:pointer}.bcm-checkbox[disabled] :hover,.bcm-checkbox.disabled :hover{cursor:not-allowed}.bcm-checkbox .slot{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;font-weight:500;color:var(--bcm-new-ds-color-slate-600)}.bcm-checkbox .slot:not(:empty){margin-left:8px;margin-right:8px}.bcm-checkbox-size-small .slot{font-size:12px;line-height:calc(12px + 8px);margin-top:-2.5px}.bcm-checkbox-size-small .bcm-checkbox__input{min-height:calc(24px - 4px)}.bcm-checkbox-size-small .bcm-checkbox__label-icon{width:14px;height:14px;min-width:14px;font-size:calc(10px - 2px)}.bcm-checkbox-size-medium .slot{font-size:calc(12px + 1px);line-height:calc(12px + 8px);margin-top:-1.5px}.bcm-checkbox-size-medium .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-medium .bcm-checkbox__label-icon{width:16px;height:16px;min-width:16px;font-size:10px}.bcm-checkbox-size-large .slot{font-size:16px;line-height:calc(16px + 8px);margin-top:-1.5px}.bcm-checkbox-size-large .bcm-checkbox__input{min-height:calc(32px - 4px)}.bcm-checkbox-size-large .bcm-checkbox__label-icon{width:18px;height:18px;min-width:18px;font-size:12px}.bcm-checkbox__label{display:flex;flex-direction:row;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap}.bcm-checkbox__label-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-wrap:nowrap;border-width:1px;border-style:solid;border-radius:2px}.bcm-checkbox__label-icon-indeterminate{position:relative}.bcm-checkbox__label-icon-indeterminate:after{content:\"\";display:block;position:absolute;width:70%;height:1.5px;background:var(--bcm-new-ds-color-white)}.bcm-checkbox__label-icon.bcm-radio__icon{width:16px;height:16px;box-sizing:border-box;border-radius:100px}.bcm-checkbox__label-icon.bcm-radio__icon .bcm-radio__icon-inner{width:10px;height:10px;border-radius:100px;background-color:var(--bcm-new-ds-color-white)}.bcm-checkbox .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-default);color:var(--bcm-checkbox-secondary-color-default);border-color:var(--bcm-new-ds-color-slate-300)}.bcm-checkbox .bcm-checkbox__label-icon-checked,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-default);border-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-default);background-color:var(--bcm-checkbox-secondary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-default)}.bcm-checkbox:hover .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-hover);color:var(--bcm-checkbox-secondary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-hover);border-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-hover);background-color:var(--bcm-checkbox-secondary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:hover .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-hover)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-focus-visible);color:var(--bcm-checkbox-secondary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-focus-visible);border-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-focus-visible);background-color:var(--bcm-checkbox-secondary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:focus-visible .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-focus-visible)}.bcm-checkbox:active .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-active);color:var(--bcm-checkbox-secondary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-active);border-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-active);background-color:var(--bcm-checkbox-secondary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox:active .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-active)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon{background:var(--bcm-checkbox-secondary-color-disabled);color:var(--bcm-checkbox-secondary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-new-ds-color-white);background-color:var(--bcm-checkbox-primary-color-disabled);border-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon{border-color:var(--bcm-checkbox-primary-color-disabled);background-color:var(--bcm-checkbox-secondary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-checked.bcm-radio__icon .bcm-radio__icon-inner,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate.bcm-radio__icon .bcm-radio__icon-inner{background-color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[disabled] .bcm-checkbox__label-icon-indeterminate,.bcm-checkbox.disabled .bcm-checkbox__label-icon-indeterminate{color:var(--bcm-checkbox-primary-color-disabled)}.bcm-checkbox[no-margin] .bcm-checkbox__input{margin:0;min-height:0;padding:0}";
25
-
26
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
27
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
28
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
29
- r = Reflect.decorate(decorators, target, key, desc);
30
- else
31
- for (var i = decorators.length - 1; i >= 0; i--)
32
- if (d = decorators[i])
33
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
34
- return c > 3 && r && Object.defineProperty(target, key, r), r;
35
- };
36
- const BcmCheckbox = class {
37
- constructor(hostRef) {
38
- index.registerInstance(this, hostRef);
39
- this.blur = index.createEvent(this, "bcm-blur", 7);
40
- this.focus = index.createEvent(this, "bcm-focus", 7);
41
- this.change = index.createEvent(this, "bcm-change", 7);
42
- this.changeCheckbox = index.createEvent(this, "bcm-change-checkbox", 7);
43
- this._id = generate.Generate.UID();
44
- this.inGroup = false;
45
- this.value = false;
46
- this.checked = false;
47
- this.name = undefined;
48
- this.disabled = false;
49
- this.hidden = false;
50
- this.required = false;
51
- this.label = undefined;
52
- this.readonly = false;
53
- this.size = bcm.Bcm.Size.medium;
54
- this.indeterminate = null;
55
- this.color = "blue";
56
- this.caption = undefined;
57
- this.noCaption = false;
58
- this.captionError = undefined;
59
- this.captionType = bcm.Bcm.Status.default;
60
- this.captionCache = undefined;
61
- this.captionTypeCache = undefined;
62
- }
63
- connectedCallback() {
64
- this.captionCache = this.caption;
65
- this.captionTypeCache = this.captionType;
66
- this.value = this.checked;
67
- }
68
- componentDidRender() {
69
- this.inputElement.checked = this.checked;
70
- }
71
- async onBcmFocus() {
72
- this.el.focus();
73
- }
74
- async onBcmBlur() {
75
- this.el.blur();
76
- }
77
- async setClear() {
78
- this.check(false);
79
- this.handleChange();
80
- await utils.delay(10);
81
- return Promise.resolve();
82
- }
83
- async resetCaption() {
84
- await utils.delay(10);
85
- this.caption = this.captionCache;
86
- this.captionType = this.captionTypeCache;
87
- this.captionError = null;
88
- await utils.delay(10);
89
- return Promise.resolve();
90
- }
91
- handleChange() {
92
- this.checked = this.inputElement.checked;
93
- this.value = this.checked;
94
- if (!this.indeterminate) {
95
- this.changeCheckbox.emit();
96
- this.change.emit({
97
- name: this.name,
98
- value: this.checked
99
- });
100
- }
101
- }
102
- watchIndeterminate(newValue, oldValue) {
103
- if (newValue != oldValue) {
104
- this.inputElement.checked = this.indeterminate == bcm.Bcm.IndeterminateType.determinate ? true : false;
105
- this.handleChange();
106
- }
107
- }
108
- async set(data) {
109
- if (typeof data === 'boolean') {
110
- await this.check(data);
111
- }
112
- }
113
- async get() {
114
- return this.checked || false;
115
- }
116
- async check(uncheck = true) {
117
- this.inputElement.checked = uncheck;
118
- this.handleChange();
119
- }
120
- handleKeyUp(ev) {
121
- if (ev.keyCode == bcm.Bcm.KeyCode.space || ev.keyCode == bcm.Bcm.KeyCode.enter) {
122
- if (!this.disabled && !this.readonly) {
123
- this.inputElement.checked = !this.inputElement.checked;
124
- this.handleChange();
125
- }
126
- ev.stopPropagation();
127
- ev.preventDefault();
128
- return false;
129
- }
130
- }
131
- watchChecked() {
132
- if (this.checked) {
133
- this.resetCaption();
134
- }
135
- this.value = this.checked;
136
- }
137
- setColor(color = this.color) {
138
- if (!color)
139
- return;
140
- const prefix = `--bcm-checkbox`;
141
- return {
142
- [`${prefix}-primary-color-default`]: colorHelper.ColorHelper.dsColor(color + '-500'),
143
- [`${prefix}-primary-color-hover`]: colorHelper.ColorHelper.dsColor(color + '-600'),
144
- [`${prefix}-primary-color-focus-visible`]: colorHelper.ColorHelper.dsColor(color + '-800'),
145
- [`${prefix}-primary-color-active`]: colorHelper.ColorHelper.dsColor(color + '-700'),
146
- // [`${prefix}-primary-color-disabled`]: ColorHelper.dsColor(color + '-300'),
147
- [`${prefix}-secondary-color-default`]: colorHelper.ColorHelper.dsColor('white'),
148
- [`${prefix}-secondary-color-hover`]: colorHelper.ColorHelper.dsColor('slate-50'),
149
- [`${prefix}-secondary-color-focus-visible`]: colorHelper.ColorHelper.dsColor('slate-50'),
150
- [`${prefix}-secondary-color-active`]: colorHelper.ColorHelper.dsColor('slate-50'),
151
- // [`${prefix}-secondary-color-disabled`]: ColorHelper.dsColor('slate-200')
152
- };
153
- }
154
- render() {
155
- const { label, _id, indeterminate, hidden, disabled, checked, readonly, required, caption, captionError, captionType, noCaption, size } = this;
156
- //////
157
- const bcmCheckboxClass = index$1.classnames('bcm-checkbox', `bcm-checkbox-size-${size}`, {
158
- 'error': captionType == bcm.Bcm.Status.error,
159
- hidden,
160
- checked,
161
- disabled,
162
- required,
163
- readonly,
164
- });
165
- const bcmCheckboxIconClass = index$1.classnames('bcm-checkbox__label-icon', 'bcm-checkbox__label-icon-lite', 'bcm-checkbox__label-icon-' + indeterminate, {
166
- 'bcm-checkbox__label-icon-checked': checked,
167
- });
168
- const bcmCheckboxLabelClass = index$1.classnames('bcm-checkbox__label');
169
- const bcmCheckboxInputClass = index$1.classnames('bcm-checkbox__input');
170
- return (index.h(index.Host, { tabindex: "0", onFocus: () => this.focus.emit(this.el), onBlur: () => this.blur.emit(this.el), style: this.setColor(this.color), class: bcmCheckboxClass, disabled: disabled }, index.h("span", { hidden: true }, index.h("slot", null)), label && index.h("bcm-label", { htmlFor: `input-${_id}`, type: captionType, value: label, required: required }), index.h("div", { class: bcmCheckboxInputClass }, index.h("input", { id: `input-${_id}`, type: "checkbox", checked: checked, disabled: disabled, required: required, readonly: readonly, onChange: () => { !disabled && !readonly && (this.handleChange()); }, ref: el => (this.inputElement = el) }), index.h("label", { class: bcmCheckboxLabelClass, htmlFor: `input-${_id}` }, index.h("span", { class: bcmCheckboxIconClass }, index.h("bcm-icon", { icon: "far fa-check" })), index.h(slotTemplate.SlotTemplate, { className: "slot" }))), index.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption })));
171
- }
172
- get el() { return index.getElement(this); }
173
- static get watchers() { return {
174
- "indeterminate": ["watchIndeterminate"],
175
- "checked": ["watchChecked"]
176
- }; }
177
- };
178
- __decorate([
179
- isLoadDecorator.IsLoad()
180
- ], BcmCheckbox.prototype, "el", void 0);
181
- BcmCheckbox.style = checkboxCss;
182
-
183
- const BcmTypography = class {
184
- constructor(hostRef) {
185
- index.registerInstance(this, hostRef);
186
- }
187
- render() {
188
- return (index.h(index.Host, { class: "bcm-ui-element bcm-ui-content-display" }, index.h("slot", null)));
189
- }
190
- get el() { return index.getElement(this); }
191
- };
192
-
193
- exports.bcm_checkbox = BcmCheckbox;
194
- exports.bcm_typography = BcmTypography;
@@ -1,182 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- 'use strict';
6
-
7
- Object.defineProperty(exports, '__esModule', { value: true });
8
-
9
- const index = require('./index-c591ecec.js');
10
- const index$1 = require('./index-95ae50d0.js');
11
- const isLoadDecorator = require('./is-load-decorator-15036f37.js');
12
- const datetimeHelper = require('./datetime-helper-eaf4fadb.js');
13
- const generate = require('./generate-e79347af.js');
14
- const bcm = require('./bcm-3c58a6d5.js');
15
- const utils = require('./utils-fc077139.js');
16
- require('./_commonjsHelpers-ed84c3ca.js');
17
- require('./package-47b7b998.js');
18
- require('./colors-078851ec.js');
19
-
20
- const datePickerCss = "@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:inline-flex;width:100%;max-width:256px}:host(.full-width){max-width:100%}:host(.hidden){display:none}:host(.linked-component){display:none}";
21
-
22
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
23
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
24
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
25
- r = Reflect.decorate(decorators, target, key, desc);
26
- else
27
- for (var i = decorators.length - 1; i >= 0; i--)
28
- if (d = decorators[i])
29
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
30
- return c > 3 && r && Object.defineProperty(target, key, r), r;
31
- };
32
- const BcmDatePicker = class {
33
- constructor(hostRef) {
34
- index.registerInstance(this, hostRef);
35
- this._id = generate.Generate.UID();
36
- this.date = new Date();
37
- this.value = undefined;
38
- this.endDate = null;
39
- this.range = false;
40
- this.hidden = false;
41
- this.name = undefined;
42
- this.fullWidth = false;
43
- this.required = false;
44
- this.label = undefined;
45
- this.placeholder = undefined;
46
- this.disabledDates = '';
47
- this.disabled = false;
48
- this.noMargin = false;
49
- this.noCaption = false;
50
- this.caption = '';
51
- this.captionError = undefined;
52
- this.captionType = 'default';
53
- this.alignment = undefined;
54
- this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
55
- this.placement = bcm.Bcm.Placement['bottom-start'];
56
- this.linkedComponent = undefined;
57
- this.clearable = false;
58
- this.stateStartDate = null;
59
- this.stateEndDate = null;
60
- }
61
- handleStartDateChange() {
62
- this.handleDate();
63
- }
64
- handleEndDateChange() {
65
- this.handleDate();
66
- }
67
- /**
68
- * @desc
69
- */
70
- handlePickerLoad() {
71
- this.value = this.picker.value;
72
- }
73
- /**
74
- * @desc
75
- * @param event
76
- */
77
- handlePickerChange(event) {
78
- this.value = event.detail;
79
- }
80
- /**
81
- * @desc
82
- * @param value
83
- */
84
- async set(value) {
85
- return this.picker.set(value);
86
- }
87
- async get() {
88
- var _a;
89
- return ((_a = this.value) === null || _a === void 0 ? void 0 : _a.timestamp) || null;
90
- }
91
- /**
92
- * @desc
93
- * @param disabled
94
- */
95
- async setDisabled(disabled) {
96
- this.disabled = disabled;
97
- }
98
- async setClear() {
99
- await this.picker.setClear();
100
- await utils.delay(10);
101
- return Promise.resolve();
102
- }
103
- async setStartDate(dateOrTime) {
104
- if (dateOrTime) {
105
- dateOrTime = datetimeHelper.DateTimeHelper.convertTimeStampToDate(new Date(dateOrTime).getTime());
106
- this.stateStartDate = dateOrTime;
107
- }
108
- else {
109
- this.setClear();
110
- }
111
- }
112
- async setEndDate(dateOrTime) {
113
- if (dateOrTime) {
114
- dateOrTime = datetimeHelper.DateTimeHelper.convertTimeStampToDate(new Date(dateOrTime).getTime());
115
- this.stateEndDate = dateOrTime;
116
- }
117
- else {
118
- this.setClear();
119
- }
120
- }
121
- /* mp --- */
122
- handleDate() {
123
- if (this.range) {
124
- if (this.stateStartDate && this.stateEndDate) {
125
- this.set(this.stateStartDate + '-' + this.stateEndDate);
126
- }
127
- }
128
- else {
129
- this.set(this.stateStartDate);
130
- }
131
- }
132
- /**
133
- * @desc
134
- */
135
- async getInput() {
136
- return await this.picker.getInput();
137
- }
138
- /**
139
- * @desc
140
- */
141
- async open() {
142
- return await this.picker.open();
143
- }
144
- /**
145
- * @desc
146
- */
147
- async getValue() {
148
- return this.value;
149
- }
150
- /**
151
- * @desc
152
- */
153
- async isValid() {
154
- return await this.picker.isValid();
155
- }
156
- async resetCaption() {
157
- await utils.delay(10);
158
- await this.picker.resetCaption();
159
- this.captionType = 'default';
160
- this.captionError = null;
161
- await utils.delay(10);
162
- return Promise.resolve();
163
- }
164
- render() {
165
- const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, {
166
- 'full-width': this.fullWidth,
167
- 'linked-component': this.linkedComponent,
168
- });
169
- return (index.h(index.Host, { class: hostClasses }, index.h("bcm-datetime-picker", { "linked-component": this.linkedComponent, id: this._id, name: this.name, type: this.range ? 'range' : 'date', date: this.date, placeholder: this.placeholder, fullWidth: this.fullWidth, ref: el => (this.picker = el), required: this.required, clearable: this.clearable, label: this.label, "end-date": this.endDate, disabled: this.disabled, disabledDates: this.disabledDates, "on-bcm-load": () => this.handlePickerLoad(), "on-bcm-change": (e) => this.handlePickerChange(e), noCaption: this.noCaption, caption: this.caption, captionError: this.captionError, captionType: this.captionType, alignment: this.alignment, placement: this.placement, noMargin: this.noMargin })));
170
- }
171
- get el() { return index.getElement(this); }
172
- static get watchers() { return {
173
- "stateStartDate": ["handleStartDateChange"],
174
- "stateEndDate": ["handleEndDateChange"]
175
- }; }
176
- };
177
- __decorate([
178
- isLoadDecorator.IsLoad()
179
- ], BcmDatePicker.prototype, "el", void 0);
180
- BcmDatePicker.style = datePickerCss;
181
-
182
- exports.bcm_date_picker = BcmDatePicker;