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

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 (245) 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-5ca4aa84.entry.js → p-073d177e.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-39a40a6e.entry.js → p-07e9b5e7.entry.js} +1 -1
  6. package/dist/bromcom-ui/p-0fc73cca.entry.js +5 -0
  7. package/dist/bromcom-ui/{p-09699c4d.entry.js → p-16450a8b.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-be434461.entry.js → p-175eb1c7.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-0b820f78.entry.js → p-17c0a72a.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-0325e8a4.entry.js → p-17eb0140.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-3f39982f.entry.js → p-18d28737.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-a42cc789.entry.js → p-1f5ca41b.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-a839a0e5.entry.js → p-21cb3cfe.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-0b316c6f.entry.js → p-23eb79ac.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-b013cff9.entry.js → p-2d965b60.entry.js} +1 -1
  16. package/dist/bromcom-ui/p-32d93221.entry.js +21 -0
  17. package/dist/bromcom-ui/{p-fb597d84.entry.js → p-33513345.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-0fe106fc.entry.js → p-3b5c36e8.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-7f09901d.entry.js → p-3f127ea5.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-3756f541.entry.js → p-424b7562.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-483b4ba8.entry.js → p-43a1f84c.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-0973538a.entry.js → p-4e436468.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-ea2ce157.js → p-52b7fc24.js} +1 -1
  24. package/dist/bromcom-ui/{p-d89b7e22.entry.js → p-56187d14.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-bec8a936.entry.js → p-58d5775f.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-f1dbd96d.entry.js → p-594953e7.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-62d178e3.entry.js → p-5b96272e.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-14c32a34.entry.js → p-5bf620b2.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-e38c4c3a.entry.js → p-5fc49f6f.entry.js} +1 -1
  30. package/dist/bromcom-ui/{p-3b41df22.entry.js → p-60a12878.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-d06f5291.js → p-61314a43.js} +1 -1
  32. package/dist/bromcom-ui/{p-1708a5ec.entry.js → p-6153f889.entry.js} +1 -1
  33. package/dist/bromcom-ui/{p-551058cd.entry.js → p-643a09b4.entry.js} +1 -1
  34. package/dist/bromcom-ui/p-64999c43.entry.js +5 -0
  35. package/dist/bromcom-ui/{p-015d19dd.entry.js → p-79712823.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-646cf63c.entry.js → p-7e2da99e.entry.js} +1 -1
  37. package/dist/bromcom-ui/{p-a04aab3c.entry.js → p-841f2b60.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-8d43aa14.entry.js → p-8c3a6509.entry.js} +1 -1
  39. package/dist/bromcom-ui/p-8c610886.js +5 -0
  40. package/dist/bromcom-ui/{p-d7538ba4.entry.js → p-8e772077.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-795d2f76.entry.js → p-8fbdb72f.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-b3b59bc3.entry.js → p-910c935f.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-55291cc5.entry.js → p-9ac757e9.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-77eb2287.entry.js → p-9da1d897.entry.js} +1 -1
  45. package/dist/bromcom-ui/{p-c566b3a0.entry.js → p-9f1e6daa.entry.js} +1 -1
  46. package/dist/bromcom-ui/{p-c1b167a3.js → p-a1477028.js} +1 -1
  47. package/dist/bromcom-ui/{p-9a41b688.js → p-a58b2664.js} +1 -1
  48. package/dist/bromcom-ui/{p-56f7477e.entry.js → p-a835bff0.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-9889a4ed.entry.js → p-a889681e.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-dac3117a.entry.js → p-aab72ea1.entry.js} +1 -1
  51. package/dist/bromcom-ui/p-abc44b58.entry.js +5 -0
  52. package/dist/bromcom-ui/{p-16848643.entry.js → p-afde516e.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-571dca86.entry.js → p-c977ed98.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-a1f9e7d4.entry.js → p-cfd52d5f.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-e11ab4ed.entry.js → p-da5fdda2.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-3d142f76.entry.js → p-e19a8e73.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-e131b27f.js → p-e2aaaece.js} +1 -1
  58. package/dist/bromcom-ui/{p-29614b49.entry.js → p-e6faa2bb.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-673f7ee8.entry.js → p-ec36f5a0.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-cf0c0700.entry.js → p-ec992ac3.entry.js} +1 -1
  61. package/dist/bromcom-ui/{p-cd04678a.entry.js → p-ecd8d70f.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-cf171578.js → p-edbdd7dd.js} +1 -1
  63. package/dist/bromcom-ui/{p-24710a65.entry.js → p-f077a1d7.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-2da72d6a.entry.js → p-f2776268.entry.js} +1 -1
  65. package/dist/bromcom-ui/{p-813ec92d.js → p-f83b3048.js} +1 -1
  66. package/dist/bromcom-ui/{p-f3431dc8.js → p-fed84581.js} +1 -1
  67. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  68. package/dist/cjs/bcm-alert.cjs.entry.js +2 -2
  69. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  70. package/dist/cjs/bcm-avatar_2.cjs.entry.js +4 -4
  71. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  72. package/dist/cjs/bcm-button-group.cjs.entry.js +2 -2
  73. package/dist/cjs/{bcm-button_10.cjs.entry.js → bcm-button_15.cjs.entry.js} +5751 -828
  74. package/dist/cjs/bcm-caption.cjs.entry.js +5 -5
  75. package/dist/cjs/bcm-card.cjs.entry.js +2 -2
  76. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +3 -3
  77. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +2 -2
  78. package/dist/cjs/bcm-chip-group.cjs.entry.js +5 -5
  79. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  80. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
  81. package/dist/cjs/bcm-color-input.cjs.entry.js +4 -4
  82. package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -2
  83. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +3 -3
  84. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  85. package/dist/cjs/bcm-drawer.cjs.entry.js +4 -4
  86. package/dist/cjs/bcm-dropdown.cjs.entry.js +3 -3
  87. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +2 -2
  88. package/dist/cjs/bcm-form-2.cjs.entry.js +2 -2
  89. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  90. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +6 -6
  91. package/dist/cjs/bcm-item.cjs.entry.js +2 -2
  92. package/dist/cjs/bcm-items.cjs.entry.js +2 -2
  93. package/dist/cjs/bcm-menu.cjs.entry.js +5 -5
  94. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +4 -4
  95. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +4 -4
  96. package/dist/cjs/bcm-modal-2.cjs.entry.js +4 -4
  97. package/dist/cjs/bcm-modal.cjs.entry.js +2 -2
  98. package/dist/cjs/bcm-number-input.cjs.entry.js +109 -0
  99. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +2 -2
  100. package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
  101. package/dist/cjs/bcm-popover.cjs.entry.js +4 -4
  102. package/dist/cjs/bcm-progress.cjs.entry.js +2 -2
  103. package/dist/cjs/bcm-radio-group.cjs.entry.js +4 -4
  104. package/dist/cjs/bcm-radio.cjs.entry.js +4 -4
  105. package/dist/cjs/bcm-range.cjs.entry.js +2 -2
  106. package/dist/cjs/bcm-shortcut.cjs.entry.js +4 -4
  107. package/dist/cjs/bcm-skeleton.cjs.entry.js +4 -4
  108. package/dist/cjs/bcm-step.cjs.entry.js +3 -3
  109. package/dist/cjs/bcm-stepper.cjs.entry.js +5 -5
  110. package/dist/cjs/bcm-tab-group.cjs.entry.js +4 -4
  111. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +4 -4
  112. package/dist/cjs/bcm-tab-item.cjs.entry.js +4 -4
  113. package/dist/cjs/bcm-table.cjs.entry.js +4 -4
  114. package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
  115. package/dist/cjs/bcm-textarea.cjs.entry.js +3 -3
  116. package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -2
  117. package/dist/cjs/bcm-toast.cjs.entry.js +2 -2
  118. package/dist/cjs/bcm-typography.cjs.entry.js +21 -0
  119. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  120. package/dist/cjs/{generate-e79347af.js → generate-c3a6c8c7.js} +15 -1
  121. package/dist/cjs/{global-9bb1902a.js → global-9e8b5009.js} +1 -1
  122. package/dist/cjs/{input-template-3d21aacb.js → input-template-8eeb94e7.js} +1 -1
  123. package/dist/cjs/{json-parse-decarator-4d7afa63.js → json-parse-decarator-0932bec0.js} +1 -1
  124. package/dist/cjs/{label-template-8dc10d0a.js → label-template-a6f51ef2.js} +6 -3
  125. package/dist/cjs/loader.cjs.js +3 -3
  126. package/dist/cjs/{number-helper-2f971fd8.js → number-helper-4e902d31.js} +1 -1
  127. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +3 -3
  128. package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
  129. package/dist/cjs/{package-47b7b998.js → package-b23f7b7f.js} +1 -1
  130. package/dist/cjs/{stepper-states-a5699b31.js → stepper-states-cb2339c3.js} +1 -1
  131. package/dist/cjs/{tooltip-helper-7d5d1cb5.js → tooltip-helper-4ddec3b4.js} +3 -3
  132. package/dist/cjs/{validators-507307b9.js → validators-e2155072.js} +1 -1
  133. package/dist/collection/collection-manifest.json +1 -0
  134. package/dist/collection/components/atoms/label/label.js +1 -1
  135. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +1 -1
  136. package/dist/collection/components/molecules/input-dropdown/input-dropdown.style.js +1 -1
  137. package/dist/collection/components/molecules/number-input/number-input.css +137 -0
  138. package/dist/collection/components/molecules/number-input/number-input.js +425 -0
  139. package/dist/collection/components/molecules/number-input/number-input.style.js +45 -0
  140. package/dist/collection/components/molecules/switch/switch.css +1 -0
  141. package/dist/collection/components/organism/list/list.css +2 -0
  142. package/dist/collection/components/organism/list/list.js +38 -9
  143. package/dist/collection/helper/generate.js +14 -0
  144. package/dist/collection/templates/label-template.js +6 -6
  145. package/dist/collection/templates/list-item-template.js +3 -2
  146. package/dist/components/bcm-caption.js +2 -2
  147. package/dist/components/bcm-input-dropdown.js +2 -2
  148. package/dist/components/bcm-number-input.d.ts +11 -0
  149. package/dist/components/bcm-number-input.js +157 -0
  150. package/dist/components/bcm-switch.js +1 -1
  151. package/dist/components/generate.js +15 -1
  152. package/dist/components/index.d.ts +1 -0
  153. package/dist/components/index.js +1 -0
  154. package/dist/components/label.js +7 -4
  155. package/dist/components/list.js +19 -10
  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 -4
  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_15.entry.js} +5283 -365
  163. package/dist/esm/bcm-caption.entry.js +5 -5
  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 -5
  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 -4
  171. package/dist/esm/bcm-date-picker.entry.js +2 -2
  172. package/dist/esm/bcm-datetime-picker.entry.js +3 -3
  173. package/dist/esm/bcm-default.entry.js +2 -2
  174. package/dist/esm/bcm-drawer.entry.js +4 -4
  175. package/dist/esm/bcm-dropdown.entry.js +3 -3
  176. package/dist/esm/bcm-expansion-panel.entry.js +2 -2
  177. package/dist/esm/bcm-form-2.entry.js +2 -2
  178. package/dist/esm/bcm-input-custom.entry.js +2 -2
  179. package/dist/esm/bcm-input-dropdown.entry.js +6 -6
  180. package/dist/esm/bcm-item.entry.js +2 -2
  181. package/dist/esm/bcm-items.entry.js +2 -2
  182. package/dist/esm/bcm-menu.entry.js +5 -5
  183. package/dist/esm/bcm-modal-2-footer.entry.js +4 -4
  184. package/dist/esm/bcm-modal-2-header.entry.js +4 -4
  185. package/dist/esm/bcm-modal-2.entry.js +4 -4
  186. package/dist/esm/bcm-modal.entry.js +2 -2
  187. package/dist/esm/bcm-number-input.entry.js +105 -0
  188. package/dist/esm/bcm-popconfirm-box.entry.js +2 -2
  189. package/dist/esm/bcm-popconfirm.entry.js +2 -2
  190. package/dist/esm/bcm-popover.entry.js +4 -4
  191. package/dist/esm/bcm-progress.entry.js +2 -2
  192. package/dist/esm/bcm-radio-group.entry.js +4 -4
  193. package/dist/esm/bcm-radio.entry.js +4 -4
  194. package/dist/esm/bcm-range.entry.js +2 -2
  195. package/dist/esm/bcm-shortcut.entry.js +4 -4
  196. package/dist/esm/bcm-skeleton.entry.js +4 -4
  197. package/dist/esm/bcm-step.entry.js +3 -3
  198. package/dist/esm/bcm-stepper.entry.js +5 -5
  199. package/dist/esm/bcm-tab-group.entry.js +4 -4
  200. package/dist/esm/bcm-tab-item-header.entry.js +4 -4
  201. package/dist/esm/bcm-tab-item.entry.js +4 -4
  202. package/dist/esm/bcm-table.entry.js +4 -4
  203. package/dist/esm/bcm-tag.entry.js +3 -3
  204. package/dist/esm/bcm-textarea.entry.js +3 -3
  205. package/dist/esm/bcm-time-picker.entry.js +2 -2
  206. package/dist/esm/bcm-toast.entry.js +2 -2
  207. package/dist/esm/bcm-typography.entry.js +17 -0
  208. package/dist/esm/bromcom-ui.js +3 -3
  209. package/dist/esm/{generate-b9c6f412.js → generate-80f589b2.js} +15 -1
  210. package/dist/esm/{global-114427da.js → global-9afe304c.js} +1 -1
  211. package/dist/esm/{input-template-dc94e47f.js → input-template-a5d07ba6.js} +1 -1
  212. package/dist/esm/{json-parse-decarator-fca2dc09.js → json-parse-decarator-5195f510.js} +1 -1
  213. package/dist/esm/{label-template-989d1700.js → label-template-ad2e8119.js} +6 -3
  214. package/dist/esm/loader.js +3 -3
  215. package/dist/esm/{number-helper-70be3621.js → number-helper-aeb5881f.js} +1 -1
  216. package/dist/esm/old-bcm-popover-box.entry.js +3 -3
  217. package/dist/esm/old-bcm-popover.entry.js +2 -2
  218. package/dist/esm/{package-6f4c9f8c.js → package-5e39e390.js} +1 -1
  219. package/dist/esm/{stepper-states-291a682f.js → stepper-states-97a648ff.js} +1 -1
  220. package/dist/esm/{tooltip-helper-089735b1.js → tooltip-helper-d339c58a.js} +3 -3
  221. package/dist/esm/{validators-c1fe8b4b.js → validators-b5e106d5.js} +1 -1
  222. package/dist/types/components/molecules/number-input/number-input.d.ts +29 -0
  223. package/dist/types/components/molecules/number-input/number-input.style.d.ts +200 -0
  224. package/dist/types/components/organism/list/list.d.ts +3 -1
  225. package/dist/types/components.d.ts +55 -1
  226. package/dist/types/helper/generate.d.ts +3 -0
  227. package/dist/types/models/bcm.d.ts +3 -0
  228. package/dist/types/templates/label-template.d.ts +2 -1
  229. package/package.json +1 -1
  230. package/dist/bromcom-ui/p-140f3478.js +0 -5
  231. package/dist/bromcom-ui/p-3432a82d.js +0 -19
  232. package/dist/bromcom-ui/p-5ff3c68f.entry.js +0 -5
  233. package/dist/bromcom-ui/p-71b9ea64.entry.js +0 -7
  234. package/dist/bromcom-ui/p-8b202d9e.js +0 -5
  235. package/dist/bromcom-ui/p-93b8a3ff.entry.js +0 -5
  236. package/dist/bromcom-ui/p-a00170b7.entry.js +0 -5
  237. package/dist/bromcom-ui/p-f7549b1f.entry.js +0 -5
  238. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +0 -194
  239. package/dist/cjs/bcm-list_3.cjs.entry.js +0 -2536
  240. package/dist/cjs/bcm-switch.cjs.entry.js +0 -151
  241. package/dist/cjs/index-7eed931f.js +0 -2146
  242. package/dist/esm/bcm-checkbox_2.entry.js +0 -189
  243. package/dist/esm/bcm-list_3.entry.js +0 -2530
  244. package/dist/esm/bcm-switch.entry.js +0 -147
  245. package/dist/esm/index-e4b6a4ce.js +0 -2127
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as i,c as e,h as t,H as c,g as s}from"./p-170cf07d.js";import{c as n}from"./p-64fad38b.js";import{I as o}from"./p-9850cbce.js";import{G as a}from"./p-140f3478.js";import{B as h}from"./p-6369b73b.js";import{C as l}from"./p-a25c8a55.js";import{d as r}from"./p-8c018ae0.js";import"./p-85eedabc.js";import"./p-9a41b688.js";import"./p-6edf985f.js";const m=class{constructor(t){i(this,t),this.change=e(this,"bcm-change",7),this.focus=e(this,"bcm-focus",7),this.blur=e(this,"bcm-blur",7),this._id=a.UID(),this._internal_id=a.UID(),this.checked=!1,this.hidden=!1,this.value=!1,this.name=void 0,this.disabled=!1,this.required=!1,this.size=h.Size.medium,this.readonly=!1,this.activeIcon=void 0,this.activeText=void 0,this.inactiveIcon=void 0,this.inactiveText=void 0,this.pending=!1,this.label=void 0,this.labelPosition="top",this.tooltip=void 0,this.caption=void 0,this.noCaption=!1,this.captionError=void 0,this.captionType=h.Status.default,this.captionCache=void 0,this.captionTypeCache=void 0}connectedCallback(){this.captionCache=this.caption,this.captionTypeCache=this.captionType,this.value=this.checked}handleChange(){this.checked=this.inputElement.checked,this.value=this.checked,this.change.emit(this.checked)}componentWillRender(){this.pending&&(this.disabled=!0)}async onBcmFocus(){this.el.focus()}async onBcmBlur(){this.el.blur()}async set(i){"boolean"==typeof i&&await this.check(i)}async check(i=!0){this.inputElement.checked=i,this.handleChange()}async get(){return this.checked||!1}async setClear(){return 1==this.inputElement.checked&&(this.inputElement.checked=!1,this.checked=this.inputElement.checked,this.value=this.checked,this.change.emit(this.checked)),await r(10),Promise.resolve()}async resetCaption(){return await r(10),this.caption=this.captionCache,this.captionType=this.captionTypeCache,this.captionError=null,await r(10),Promise.resolve()}handleKeyUp(i){if(i.keyCode==h.KeyCode.space||i.keyCode==h.KeyCode.enter)return this.disabled||this.readonly||(this.inputElement.checked=!this.inputElement.checked,this.handleChange()),i.stopPropagation(),i.preventDefault(),!1}render(){const{hidden:i,_internal_id:e,checked:s,size:o,activeIcon:a,inactiveIcon:r,activeText:m,inactiveText:b,pending:p,disabled:d,readonly:g,label:_,required:w,noCaption:x,captionType:f,captionError:u,caption:z}=this,v=n("bcm-switch__toggle","bcm-switch__size-"+o,{"switch-checked":s,disabled:d,readonly:g}),y=n("bcm-switch","bcm-switch__size-"+o,{hidden:i,checked:s,disabled:d,readonly:g}),k=n("bcm-switch__label","input-size-"+h.Size[o]),j=n("bcm-switch__container",`bcm-switch__container--${this.labelPosition}`),C=i=>o!=h.Size.small&&(m||b)&&t("span",{class:i+"-text"},"active"==i?m:b),B=i=>o!=h.Size.small&&(a||r)&&t("bcm-icon",{icon:"active"==i?a:r,class:" icon-"+i});return t(c,{tabindex:"0",onFocus:()=>this.focus.emit(this.el),onBlur:()=>this.blur.emit(this.el),class:y},t("span",{hidden:!0},t("slot",null)),t("div",{class:j},_&&t("bcm-label",{htmlFor:e,tooltip:this.tooltip,type:f,value:_,required:w}),t("input",{id:e,onChange:()=>this.handleChange(),ref:i=>this.inputElement=i,checked:s,type:"checkbox",class:"switch",disabled:d||g}),t("label",{htmlFor:e,class:k},C("inactive"),t("div",{class:v},B("active"),t("span",{class:"handle"},p&&t("span",{class:"switch-spinner"})),B("inactive")),C("active"))),t(l,{noCaption:x,captionType:f,captionError:u,caption:z}))}get el(){return s(this)}};(function(i,e,t,c){var s,n=arguments.length,o=n<3?e:null===c?c=Object.getOwnPropertyDescriptor(e,t):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(i,e,t,c);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);n>3&&o&&Object.defineProperty(e,t,o)})([o()],m.prototype,"el",void 0),m.style='@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-switch{display:inline-flex;user-select:none;flex-direction:column;margin-bottom:8px}.bcm-switch__container{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.bcm-switch__container--left,.bcm-switch__container--right{align-items:center}.bcm-switch__container--left .bcm-label__text,.bcm-switch__container--right .bcm-label__text{margin:0}.bcm-switch__container--left{flex-direction:row}.bcm-switch__container--left .bcm-label__text{margin-right:4px}.bcm-switch__container--right{flex-direction:row-reverse}.bcm-switch__container--right .bcm-label__text{margin-left:4px}.bcm-switch:focus-visible{outline:none}.bcm-switch:focus-visible .bcm-switch__toggle{background-color:var(--bcm-new-ds-color-slate-400)}.bcm-switch:focus-visible .bcm-switch__toggle.switch-checked{background-color:var(--bcm-new-ds-color-blue-600)}.bcm-switch:hover{outline:none}.bcm-switch:hover .bcm-switch__toggle .handle{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-switch:hover .bcm-switch__toggle.switch-checked .handle{background-color:var(--bcm-new-ds-color-slate-100)}.bcm-switch *{box-sizing:border-box}.bcm-switch.hidden{display:none}.bcm-switch input{display:none}.bcm-switch.disabled .bcm-switch__toggle{cursor:not-allowed;opacity:40%}.bcm-switch.readonly .bcm-switch__toggle{cursor:default;opacity:80%}.bcm-switch__label{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline-flex;align-items:center;margin:0}.bcm-switch__label .active-text{color:var(--bcm-new-ds-color-blue-500);margin:0 0 0 4px}.bcm-switch__label .inactive-text{color:var(--bcm-new-ds-color-slate-500);margin:0 4px 0 0}.bcm-switch__toggle{display:flex;justify-content:space-between;align-items:center;border-radius:16px;background-color:var(--bcm-new-ds-color-slate-300);position:relative;cursor:pointer}.bcm-switch__toggle .handle{padding:1px;position:absolute;background-color:var(--bcm-new-ds-color-slate-50);display:inline-flex;align-items:center;justify-content:center;border-radius:16px;transition:left 0.2s ease-in-out, width 0.2s ease-in-out;box-shadow:0 1px 3px 0 rgba(17, 24, 38, 0.1)}.bcm-switch__toggle .icon-active{opacity:0;margin-left:2px}.bcm-switch__toggle .icon-inactive{opacity:1;margin-right:2px}.bcm-switch__toggle.bcm-switch__size-small{width:32px;min-width:32px;height:16px;padding:4px}.bcm-switch__toggle.bcm-switch__size-small .handle{width:12px;height:12px;left:2px}.bcm-switch__toggle.bcm-switch__size-small.switch-checked .handle{left:18px}.bcm-switch__toggle.bcm-switch__size-small:active:not(.disabled):not(.readonly) .handle{width:16px}.bcm-switch__toggle.bcm-switch__size-small:active.switch-checked:not(.disabled):not(.readonly) .handle{left:12px}.bcm-switch__toggle.bcm-switch__size-small .switch-spinner{box-sizing:border-box;display:inline-flex;width:9px;height:9px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.bcm-switch__size-medium{width:36px;min-width:36px;height:18px;padding:4px}.bcm-switch__toggle.bcm-switch__size-medium .handle{width:14px;height:14px;left:2px}.bcm-switch__toggle.bcm-switch__size-medium.switch-checked .handle{left:20px}.bcm-switch__toggle.bcm-switch__size-medium:active:not(.disabled):not(.readonly) .handle{width:18px}.bcm-switch__toggle.bcm-switch__size-medium:active.switch-checked:not(.disabled):not(.readonly) .handle{left:14px}.bcm-switch__toggle.bcm-switch__size-medium .switch-spinner{box-sizing:border-box;display:inline-flex;width:11px;height:11px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.bcm-switch__size-large{width:40px;min-width:40px;height:20px;padding:4px}.bcm-switch__toggle.bcm-switch__size-large .handle{width:16px;height:16px;left:2px}.bcm-switch__toggle.bcm-switch__size-large.switch-checked .handle{left:22px}.bcm-switch__toggle.bcm-switch__size-large:active:not(.disabled):not(.readonly) .handle{width:20px}.bcm-switch__toggle.bcm-switch__size-large:active.switch-checked:not(.disabled):not(.readonly) .handle{left:16px}.bcm-switch__toggle.bcm-switch__size-large .switch-spinner{box-sizing:border-box;display:inline-flex;width:13px;height:13px;border-radius:50%;border:1px solid var(--bcm-new-ds-color-white);border-top-color:var(--bcm-new-ds-color-slate-900);animation:switch-spinner 1.5s linear infinite}.bcm-switch__toggle.switch-checked{background-color:var(--bcm-new-ds-color-blue-500)}.bcm-switch__toggle.switch-checked .icon-active{color:var(--bcm-new-ds-color-slate-100);opacity:1}.bcm-switch__toggle.switch-checked .icon-inactive{opacity:0}.bcm-switch__toggle.switch-checked .switch-spinner{border-top-color:var(--bcm-new-ds-color-blue-600)}.bcm-switch__size-small .bcm-switch__label,.bcm-switch__size-small .bcm-label__text{font-size:12px}.bcm-switch__size-small .bcm-switch__toggle{font-size:8px}.bcm-switch__size-medium .bcm-switch__label,.bcm-switch__size-medium .bcm-label__text{font-size:13px}.bcm-switch__size-medium .bcm-switch__toggle{font-size:9px}.bcm-switch__size-large .bcm-switch__label,.bcm-switch__size-large .bcm-label__text{font-size:16px}.bcm-switch__size-large .bcm-switch__toggle{font-size:12px}@keyframes switch-spinner{to{transform:rotate(360deg)}}';export{m as bcm_switch}