bromcom-ui 2.3.46 → 2.3.50

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 (66) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/{p-21acf1de.js → p-09753e05.js} +1 -1
  3. package/dist/bromcom-ui/{p-b6c0d182.entry.js → p-1a2724a0.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-09b8803d.entry.js → p-26b3d5d0.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-61cde6d6.entry.js → p-2c1ee381.entry.js} +1 -1
  6. package/dist/bromcom-ui/p-31e2a0d5.entry.js +1 -0
  7. package/dist/bromcom-ui/{p-192301be.entry.js → p-3704fffd.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-180a8dbf.entry.js → p-4396ee3b.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-c16d4f4f.entry.js → p-4a296c0a.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-47c82122.entry.js → p-4b7f14ed.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-16735e3f.entry.js → p-774ff4d9.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-a51fa846.entry.js → p-a18a0cc4.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-ce19d569.js → p-b92324e7.js} +1 -1
  14. package/dist/bromcom-ui/p-dafc1ec6.entry.js +1 -0
  15. package/dist/bromcom-ui/p-f27776a4.entry.js +1 -0
  16. package/dist/cjs/{bcm-badge_18.cjs.entry.js → bcm-badge_20.cjs.entry.js} +875 -199
  17. package/dist/cjs/bcm-empty_6.cjs.entry.js +3 -2
  18. package/dist/cjs/bcm-select.cjs.entry.js +11 -8
  19. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/collection/bromcom.js +8 -1
  22. package/dist/collection/components/atoms/button/buttons.css +1 -0
  23. package/dist/collection/components/molecules/list/list-item.css +188 -0
  24. package/dist/collection/components/molecules/list/list-item.js +12 -1
  25. package/dist/collection/components/molecules/list/list-select.css +82 -0
  26. package/dist/collection/components/molecules/list/list-select.js +399 -79
  27. package/dist/collection/components/molecules/list/list.css +57 -4
  28. package/dist/collection/components/molecules/list/list.js +700 -247
  29. package/dist/collection/components/molecules/modal/modal.css +7 -3
  30. package/dist/collection/components/molecules/radio/radio.css +2 -0
  31. package/dist/collection/components/molecules/select/select.js +17 -8
  32. package/dist/collection/components/organism/form/form.js +1 -0
  33. package/dist/collection/components/organism/listbox/listbox.js +2 -1
  34. package/dist/collection/components/organism/treeview/treeview-item.js +1 -1
  35. package/dist/esm/{bcm-badge_18.entry.js → bcm-badge_20.entry.js} +875 -201
  36. package/dist/esm/bcm-checkbox.entry.js +1 -1
  37. package/dist/esm/bcm-colorpicker.entry.js +2 -2
  38. package/dist/esm/bcm-datetime-picker_2.entry.js +2 -2
  39. package/dist/esm/bcm-dropdown.entry.js +1 -1
  40. package/dist/esm/bcm-empty_6.entry.js +4 -3
  41. package/dist/esm/bcm-popconfirm.entry.js +1 -1
  42. package/dist/esm/bcm-popover.entry.js +1 -1
  43. package/dist/esm/bcm-pulldown-group_2.entry.js +1 -1
  44. package/dist/esm/bcm-pulldown.entry.js +1 -1
  45. package/dist/esm/bcm-select.entry.js +12 -9
  46. package/dist/esm/bcm-upload.entry.js +1 -1
  47. package/dist/esm/bromcom-ui.js +1 -1
  48. package/dist/esm/{element-dragger-838e9223.js → element-dragger-03ac2a5e.js} +1 -1
  49. package/dist/esm/loader.js +1 -1
  50. package/dist/esm/{utils-3040bca4.js → utils-b7fba7c4.js} +1 -1
  51. package/dist/types/components/molecules/list/list-select.d.ts +35 -4
  52. package/dist/types/components/molecules/list/list.d.ts +53 -11
  53. package/dist/types/components/molecules/list/types.d.ts +8 -0
  54. package/dist/types/components/molecules/select/select.d.ts +1 -0
  55. package/dist/types/components.d.ts +59 -19
  56. package/dist/types/types/index.d.ts +4 -0
  57. package/package.json +1 -1
  58. package/dist/bromcom-ui/p-6103be4a.entry.js +0 -1
  59. package/dist/bromcom-ui/p-865ccb94.entry.js +0 -1
  60. package/dist/bromcom-ui/p-d71b1744.entry.js +0 -1
  61. package/dist/bromcom-ui/p-ec3b5c87.entry.js +0 -1
  62. package/dist/bromcom-ui/p-fe565105.entry.js +0 -1
  63. package/dist/cjs/bcm-radio-group.cjs.entry.js +0 -124
  64. package/dist/cjs/bcm-radio.cjs.entry.js +0 -104
  65. package/dist/esm/bcm-radio-group.entry.js +0 -120
  66. package/dist/esm/bcm-radio.entry.js +0 -100
@@ -224,7 +224,7 @@ const iconSizes = {
224
224
  },
225
225
  };
226
226
 
227
- const buttonsCss = "@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}.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:inline-block}:host(.hidden){display:none}:host(.full-width){width:100%}.button{border:none;outline:0;cursor:pointer;display:flex;align-items:center;justify-content:center;text-align:center;font-family:\"Roboto\", sans-serif;padding:unset;text-decoration:none;box-sizing:border-box;border-radius:2px;position:relative;margin:0;padding:0}.button.full-width{width:100%}.button.full-width.variant span{flex:none}.button .loading{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.button.rounded{border-radius:100%}.button.rounded .loading{border-radius:100%}.button:before,.button:after{content:\"\"}.solid{color:var(--bcm-color-grey-1);background-color:var(--bcm-color-prime-blue-6);border:1px solid var(--bcm-color-prime-blue-6)}.solid .loading{background-color:var(--bcm-color-prime-blue-6)}.solid.outline{color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-5)}.solid.outline .loading{background-color:var(--bcm-color-grey-1)}.solid.outline:hover,.solid.outline:focus{color:var(--bcm-color-prime-blue-5);background-color:var(--bcm-color-grey-1)}.solid.outline:active{color:var(--bcm-color-prime-blue-7);background-color:var(--bcm-color-grey-1)}.solid:hover,.solid:focus{background-color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}.solid:active{background-color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}.solid:disabled{color:var(--bcm-color-grey-6) !important;background-color:var(--bcm-color-grey-3) !important;border-color:var(--bcm-color-grey-5);cursor:not-allowed}.ghost{color:var(--bcm-color-prime-blue-6);background-color:transparent;border:1px solid var(--bcm-color-prime-blue-6)}.ghost .loading{background-color:var(--bcm-color-grey-1)}.ghost.outline{color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-1)}.ghost:hover,.ghost:focus{color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}.ghost:active{color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}.ghost:disabled{color:var(--bcm-color-grey-6);border-color:var(--bcm-color-grey-5);cursor:not-allowed}.variant.large bcm-icon.prefix{margin-right:4px}.variant span{flex:1}.variant.success.solid{color:var(--bcm-color-grey-1);background-color:var(--bcm-color-bc-green-5);border:1px solid var(--bcm-color-bc-green-5)}.variant.success.solid .loading{background-color:var(--bcm-color-bc-green-5)}.variant.success.solid.outline{color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-5)}.variant.success.solid.outline .loading{background-color:var(--bcm-color-grey-1)}.variant.success.solid.outline:hover,.variant.success.solid.outline:focus{color:var(--bcm-color-bc-green-4);background-color:var(--bcm-color-grey-1)}.variant.success.solid.outline:active{color:var(--bcm-color-bc-green-6);background-color:var(--bcm-color-grey-1)}.variant.success.solid:hover,.variant.success.solid:focus{background-color:var(--bcm-color-bc-green-4);border-color:var(--bcm-color-bc-green-4)}.variant.success.solid:active{background-color:var(--bcm-color-bc-green-6);border-color:var(--bcm-color-bc-green-6)}.variant.success.solid:disabled{color:var(--bcm-color-grey-6) !important;background-color:var(--bcm-color-grey-3) !important;border-color:var(--bcm-color-grey-5);cursor:not-allowed}.variant.success.ghost{color:var(--bcm-color-bc-green-5);background-color:transparent;border:1px solid var(--bcm-color-bc-green-5)}.variant.success.ghost .loading{background-color:var(--bcm-color-grey-1)}.variant.success.ghost.outline{color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-1)}.variant.success.ghost:hover,.variant.success.ghost:focus{color:var(--bcm-color-bc-green-4);border-color:var(--bcm-color-bc-green-4)}.variant.success.ghost:active{color:var(--bcm-color-bc-green-6);border-color:var(--bcm-color-bc-green-6)}.variant.success.ghost:disabled{color:var(--bcm-color-grey-6);border-color:var(--bcm-color-grey-5);cursor:not-allowed}.variant.warning.solid{color:var(--bcm-color-grey-1);background-color:var(--bcm-color-bc-red-5);border:1px solid var(--bcm-color-bc-red-5)}.variant.warning.solid .loading{background-color:var(--bcm-color-bc-red-5)}.variant.warning.solid.outline{color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-5)}.variant.warning.solid.outline .loading{background-color:var(--bcm-color-grey-1)}.variant.warning.solid.outline:hover,.variant.warning.solid.outline:focus{color:var(--bcm-color-bc-red-4);background-color:var(--bcm-color-grey-1)}.variant.warning.solid.outline:active{color:var(--bcm-color-bc-red-6);background-color:var(--bcm-color-grey-1)}.variant.warning.solid:hover,.variant.warning.solid:focus{background-color:var(--bcm-color-bc-red-4);border-color:var(--bcm-color-bc-red-4)}.variant.warning.solid:active{background-color:var(--bcm-color-bc-red-6);border-color:var(--bcm-color-bc-red-6)}.variant.warning.solid:disabled{color:var(--bcm-color-grey-6) !important;background-color:var(--bcm-color-grey-3) !important;border-color:var(--bcm-color-grey-5);cursor:not-allowed}.variant.warning.ghost{color:var(--bcm-color-bc-red-5);background-color:transparent;border:1px solid var(--bcm-color-bc-red-5)}.variant.warning.ghost .loading{background-color:var(--bcm-color-grey-1)}.variant.warning.ghost.outline{color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-1)}.variant.warning.ghost:hover,.variant.warning.ghost:focus{color:var(--bcm-color-bc-red-4);border-color:var(--bcm-color-bc-red-4)}.variant.warning.ghost:active{color:var(--bcm-color-bc-red-6);border-color:var(--bcm-color-bc-red-6)}.variant.warning.ghost:disabled{color:var(--bcm-color-grey-6);border-color:var(--bcm-color-grey-5);cursor:not-allowed}.button>bcm-icon.prefix{margin-right:4px}.button>bcm-icon.suffix{margin-left:4px}.large{min-height:40px;min-width:120px}.large bcm-icon.prefix{margin-right:16px}.large bcm-icon.suffix{margin-left:16px}.large:not(.rounded){padding:0 16px}.large:not(.rounded).with_suffix{padding-right:0}.medium{min-height:32px;min-width:32px}.medium:not(.rounded){padding:0 16px}.medium:not(.rounded).with_suffix{padding-right:0}.small{min-height:24px;min-width:24px}.small:not(.rounded){padding:0 8px}.small:not(.rounded).with_suffix{padding-right:0}.ghost-link{width:auto;min-width:40px;color:var(--bcm-color-prime-blue-6);background-color:transparent}.ghost-link .loading{background-color:var(--bcm-color-grey-1)}.ghost-link.outline{color:var(--bcm-color-grey-1)}.ghost-link:hover,.ghost-link:focus{color:var(--bcm-color-prime-blue-5)}.ghost-link:active{color:var(--bcm-color-prime-blue-7)}.ghost-link:disabled{color:var(--bcm-color-grey-6);cursor:not-allowed}.ghost-link.large bcm-icon.prefix{margin-right:8px}.ghost-link.large:not(.rounded){padding-left:8px}.ghost-link.large:not(.rounded):not(.with_suffix){padding-right:5px}.ghost-link.rounded{border-radius:2px}.solid-link,.link{width:auto;min-width:40px;color:var(--bcm-color-grey-1);background-color:var(--bcm-color-prime-blue-6)}.solid-link .loading,.link .loading{background-color:var(--bcm-color-prime-blue-6)}.solid-link.outline,.link.outline{color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1)}.solid-link.outline .loading,.link.outline .loading{background-color:var(--bcm-color-grey-1)}.solid-link.outline:hover,.solid-link.outline:focus,.link.outline:hover,.link.outline:focus{color:var(--bcm-color-prime-blue-5)}.solid-link.outline:active,.link.outline:active{color:var(--bcm-color-prime-blue-7)}.solid-link:hover,.solid-link:focus,.link:hover,.link:focus{background-color:var(--bcm-color-prime-blue-5)}.solid-link:active,.link:active{background-color:var(--bcm-color-prime-blue-7)}.solid-link:disabled,.link:disabled{color:var(--bcm-color-grey-6) !important;background-color:var(--bcm-color-grey-3) !important;cursor:not-allowed}.solid-link.large bcm-icon.prefix,.link.large bcm-icon.prefix{margin-right:8px}.solid-link.large:not(.rounded),.link.large:not(.rounded){padding-left:8px}.solid-link.large:not(.rounded):not(.with_suffix),.link.large:not(.rounded):not(.with_suffix){padding-right:5px}.solid-link.rounded,.link.rounded{border-radius:2px}:host-context(.split_summary.open) .solid{background-color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}:host-context(.split_summary.open) .solid.outline{color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7);background-color:var(--bcm-color-grey-1)}:host-context(.split_summary) .large:not(.rounded) bcm-icon.prefix{margin-right:4px}:host-context(.split_summary) .large:not(.rounded) bcm-icon.suffix{margin-left:4px}";
227
+ const buttonsCss = "@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}.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:inline-block;width:fit-content}:host(.hidden){display:none}:host(.full-width){width:100%}.button{border:none;outline:0;cursor:pointer;display:flex;align-items:center;justify-content:center;text-align:center;font-family:\"Roboto\", sans-serif;padding:unset;text-decoration:none;box-sizing:border-box;border-radius:2px;position:relative;margin:0;padding:0}.button.full-width{width:100%}.button.full-width.variant span{flex:none}.button .loading{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.button.rounded{border-radius:100%}.button.rounded .loading{border-radius:100%}.button:before,.button:after{content:\"\"}.solid{color:var(--bcm-color-grey-1);background-color:var(--bcm-color-prime-blue-6);border:1px solid var(--bcm-color-prime-blue-6)}.solid .loading{background-color:var(--bcm-color-prime-blue-6)}.solid.outline{color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-5)}.solid.outline .loading{background-color:var(--bcm-color-grey-1)}.solid.outline:hover,.solid.outline:focus{color:var(--bcm-color-prime-blue-5);background-color:var(--bcm-color-grey-1)}.solid.outline:active{color:var(--bcm-color-prime-blue-7);background-color:var(--bcm-color-grey-1)}.solid:hover,.solid:focus{background-color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}.solid:active{background-color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}.solid:disabled{color:var(--bcm-color-grey-6) !important;background-color:var(--bcm-color-grey-3) !important;border-color:var(--bcm-color-grey-5);cursor:not-allowed}.ghost{color:var(--bcm-color-prime-blue-6);background-color:transparent;border:1px solid var(--bcm-color-prime-blue-6)}.ghost .loading{background-color:var(--bcm-color-grey-1)}.ghost.outline{color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-1)}.ghost:hover,.ghost:focus{color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}.ghost:active{color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}.ghost:disabled{color:var(--bcm-color-grey-6);border-color:var(--bcm-color-grey-5);cursor:not-allowed}.variant.large bcm-icon.prefix{margin-right:4px}.variant span{flex:1}.variant.success.solid{color:var(--bcm-color-grey-1);background-color:var(--bcm-color-bc-green-5);border:1px solid var(--bcm-color-bc-green-5)}.variant.success.solid .loading{background-color:var(--bcm-color-bc-green-5)}.variant.success.solid.outline{color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-5)}.variant.success.solid.outline .loading{background-color:var(--bcm-color-grey-1)}.variant.success.solid.outline:hover,.variant.success.solid.outline:focus{color:var(--bcm-color-bc-green-4);background-color:var(--bcm-color-grey-1)}.variant.success.solid.outline:active{color:var(--bcm-color-bc-green-6);background-color:var(--bcm-color-grey-1)}.variant.success.solid:hover,.variant.success.solid:focus{background-color:var(--bcm-color-bc-green-4);border-color:var(--bcm-color-bc-green-4)}.variant.success.solid:active{background-color:var(--bcm-color-bc-green-6);border-color:var(--bcm-color-bc-green-6)}.variant.success.solid:disabled{color:var(--bcm-color-grey-6) !important;background-color:var(--bcm-color-grey-3) !important;border-color:var(--bcm-color-grey-5);cursor:not-allowed}.variant.success.ghost{color:var(--bcm-color-bc-green-5);background-color:transparent;border:1px solid var(--bcm-color-bc-green-5)}.variant.success.ghost .loading{background-color:var(--bcm-color-grey-1)}.variant.success.ghost.outline{color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-1)}.variant.success.ghost:hover,.variant.success.ghost:focus{color:var(--bcm-color-bc-green-4);border-color:var(--bcm-color-bc-green-4)}.variant.success.ghost:active{color:var(--bcm-color-bc-green-6);border-color:var(--bcm-color-bc-green-6)}.variant.success.ghost:disabled{color:var(--bcm-color-grey-6);border-color:var(--bcm-color-grey-5);cursor:not-allowed}.variant.warning.solid{color:var(--bcm-color-grey-1);background-color:var(--bcm-color-bc-red-5);border:1px solid var(--bcm-color-bc-red-5)}.variant.warning.solid .loading{background-color:var(--bcm-color-bc-red-5)}.variant.warning.solid.outline{color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-5)}.variant.warning.solid.outline .loading{background-color:var(--bcm-color-grey-1)}.variant.warning.solid.outline:hover,.variant.warning.solid.outline:focus{color:var(--bcm-color-bc-red-4);background-color:var(--bcm-color-grey-1)}.variant.warning.solid.outline:active{color:var(--bcm-color-bc-red-6);background-color:var(--bcm-color-grey-1)}.variant.warning.solid:hover,.variant.warning.solid:focus{background-color:var(--bcm-color-bc-red-4);border-color:var(--bcm-color-bc-red-4)}.variant.warning.solid:active{background-color:var(--bcm-color-bc-red-6);border-color:var(--bcm-color-bc-red-6)}.variant.warning.solid:disabled{color:var(--bcm-color-grey-6) !important;background-color:var(--bcm-color-grey-3) !important;border-color:var(--bcm-color-grey-5);cursor:not-allowed}.variant.warning.ghost{color:var(--bcm-color-bc-red-5);background-color:transparent;border:1px solid var(--bcm-color-bc-red-5)}.variant.warning.ghost .loading{background-color:var(--bcm-color-grey-1)}.variant.warning.ghost.outline{color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-1)}.variant.warning.ghost:hover,.variant.warning.ghost:focus{color:var(--bcm-color-bc-red-4);border-color:var(--bcm-color-bc-red-4)}.variant.warning.ghost:active{color:var(--bcm-color-bc-red-6);border-color:var(--bcm-color-bc-red-6)}.variant.warning.ghost:disabled{color:var(--bcm-color-grey-6);border-color:var(--bcm-color-grey-5);cursor:not-allowed}.button>bcm-icon.prefix{margin-right:4px}.button>bcm-icon.suffix{margin-left:4px}.large{min-height:40px;min-width:120px}.large bcm-icon.prefix{margin-right:16px}.large bcm-icon.suffix{margin-left:16px}.large:not(.rounded){padding:0 16px}.large:not(.rounded).with_suffix{padding-right:0}.medium{min-height:32px;min-width:32px}.medium:not(.rounded){padding:0 16px}.medium:not(.rounded).with_suffix{padding-right:0}.small{min-height:24px;min-width:24px}.small:not(.rounded){padding:0 8px}.small:not(.rounded).with_suffix{padding-right:0}.ghost-link{width:auto;min-width:40px;color:var(--bcm-color-prime-blue-6);background-color:transparent}.ghost-link .loading{background-color:var(--bcm-color-grey-1)}.ghost-link.outline{color:var(--bcm-color-grey-1)}.ghost-link:hover,.ghost-link:focus{color:var(--bcm-color-prime-blue-5)}.ghost-link:active{color:var(--bcm-color-prime-blue-7)}.ghost-link:disabled{color:var(--bcm-color-grey-6);cursor:not-allowed}.ghost-link.large bcm-icon.prefix{margin-right:8px}.ghost-link.large:not(.rounded){padding-left:8px}.ghost-link.large:not(.rounded):not(.with_suffix){padding-right:5px}.ghost-link.rounded{border-radius:2px}.solid-link,.link{width:auto;min-width:40px;color:var(--bcm-color-grey-1);background-color:var(--bcm-color-prime-blue-6)}.solid-link .loading,.link .loading{background-color:var(--bcm-color-prime-blue-6)}.solid-link.outline,.link.outline{color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1)}.solid-link.outline .loading,.link.outline .loading{background-color:var(--bcm-color-grey-1)}.solid-link.outline:hover,.solid-link.outline:focus,.link.outline:hover,.link.outline:focus{color:var(--bcm-color-prime-blue-5)}.solid-link.outline:active,.link.outline:active{color:var(--bcm-color-prime-blue-7)}.solid-link:hover,.solid-link:focus,.link:hover,.link:focus{background-color:var(--bcm-color-prime-blue-5)}.solid-link:active,.link:active{background-color:var(--bcm-color-prime-blue-7)}.solid-link:disabled,.link:disabled{color:var(--bcm-color-grey-6) !important;background-color:var(--bcm-color-grey-3) !important;cursor:not-allowed}.solid-link.large bcm-icon.prefix,.link.large bcm-icon.prefix{margin-right:8px}.solid-link.large:not(.rounded),.link.large:not(.rounded){padding-left:8px}.solid-link.large:not(.rounded):not(.with_suffix),.link.large:not(.rounded):not(.with_suffix){padding-right:5px}.solid-link.rounded,.link.rounded{border-radius:2px}:host-context(.split_summary.open) .solid{background-color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}:host-context(.split_summary.open) .solid.outline{color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7);background-color:var(--bcm-color-grey-1)}:host-context(.split_summary) .large:not(.rounded) bcm-icon.prefix{margin-right:4px}:host-context(.split_summary) .large:not(.rounded) bcm-icon.suffix{margin-left:4px}";
228
228
 
229
229
  const BcmButton = class {
230
230
  constructor(hostRef) {
@@ -414,6 +414,7 @@ const BcmForm = class {
414
414
  TIME_PICKER: 'time-picker',
415
415
  DATETIME_PICKER: 'datetime-picker',
416
416
  COLORPICKER: 'colorpicker',
417
+ LIST: 'list',
417
418
  SWITCH: 'switch',
418
419
  LISTBOX: 'listbox'
419
420
  },
@@ -6439,7 +6440,7 @@ const BcmInput = class {
6439
6440
  };
6440
6441
  BcmInput.style = inputCss;
6441
6442
 
6442
- const listCss = "@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}:host{display:block;position:relative;width:256px;height:256px;background-color:#ffffff;border:1px solid #d9d9d9;box-sizing:border-box;transition:height 1s ease 1s;display:flex;flex-direction:column;position:relative;user-select:none;opacity:0}:host(.full-width){width:100%}:host(.linked){z-index:-999;position:absolute;opacity:0;top:-10000;left:-10000;box-shadow:0px 2px 8px rgba(0, 0, 0, 0.15)}:host(.linked.show){opacity:1;z-index:100000}:host(.flex){width:100%;height:100%}.search-container{margin:0 8px;padding-top:8px;background-color:#ffffff}.search-container+.list-container{padding-top:0}.footer{text-align:right;padding:4px 8px;background-color:var(--bcm-color-grey-3)}.list-container{flex:1;overflow-y:auto;display:flex;flex-direction:column;grid-gap:4px;position:relative}.list-container .list{display:flex;flex-direction:column;grid-gap:4px}.spinner{position:absolute;z-index:1;top:0;opacity:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#ffffff;visibility:hidden;transition:opacity 0.3s, visibility 0.5s}.spinner.show{visibility:visible;opacity:0.9}.spinner.first-run{visibility:visible;opacity:1}.list-item{padding:8px;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);cursor:pointer;display:flex;justify-content:flex-start;align-items:center;flex-direction:row}.list-item:hover:not(.disabled),.list-item:active:not(.disabled){color:var(--bcm-color-prime-blue-6);background-color:var(--bcm-color-prime-blue-1)}.divider{margin:0 8px}";
6443
+ const listCss = "@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}:host{display:block;position:relative;user-select:none;width:256px}:host main{width:256px;height:256px;background-color:#ffffff;border:1px solid #d9d9d9;box-sizing:border-box;transition:height 1s ease 1s;display:flex;flex-direction:column;position:relative;padding:8px}:host(.full-width){width:100%}:host(.full-width) main{width:100%}:host(.linked){z-index:-999;position:absolute;opacity:0;top:-10000;left:-10000;box-shadow:0px 2px 8px rgba(0, 0, 0, 0.15)}:host(.linked.show){opacity:1;z-index:100000}:host(.flex){width:100%;height:100%}:host(.flex) main{width:100%}:host(.type-autocomplete) .search-container{height:0;margin:0;padding:0;overflow:hidden}.label{display:block;color:var(--bcm-color-grey-9);margin-bottom:4px}.caption-area{min-height:20px}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}:host(.error) .label{color:var(--bcm-color-red-6) !important}:host(.error) main{border:1px solid var(--bcm-color-red-6) !important}.search-container{margin:0 8px;padding-top:8px;background-color:#ffffff}.search-container+.list-container{padding-top:0}.footer{text-align:right;padding:4px 8px;background-color:var(--bcm-color-grey-3)}.list-container{flex:1;overflow-y:auto;display:flex;flex-direction:column;grid-gap:4px;position:relative}.list-container .list{display:flex;flex-direction:column;grid-gap:4px}.spinner{position:absolute;z-index:1;top:0;opacity:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#ffffff;visibility:hidden;transition:opacity 0.3s, visibility 0.5s}.spinner.show{visibility:visible;opacity:0.8}.spinner.first-run{visibility:visible;opacity:0.9}.list-item{padding:8px;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);cursor:pointer;display:flex;justify-content:flex-start;align-items:center;flex-direction:row}.list-item:hover:not(.disabled),.list-item:active:not(.disabled){color:var(--bcm-color-prime-blue-6);background-color:var(--bcm-color-prime-blue-1)}.divider{margin:0 8px}";
6443
6444
 
6444
6445
  const lowercase$2 = (str) => str.toLowerCase();
6445
6446
  const BcmList = class {
@@ -6447,14 +6448,15 @@ const BcmList = class {
6447
6448
  index.registerInstance(this, hostRef);
6448
6449
  this.listSelected = index.createEvent(this, "bcm-list-selected", 7);
6449
6450
  this.listChecked = index.createEvent(this, "bcm-list-checklist", 7);
6451
+ this.change = index.createEvent(this, "bcm-change", 7);
6450
6452
  this.configObject = [];
6451
- this.searchData = null;
6452
6453
  this.isRendered = false;
6453
6454
  this.firstRender = true;
6454
6455
  this.linkedElementWidth = "100%";
6455
6456
  this.bodyStyleOverflow = '';
6456
6457
  this.dataLength = 0;
6457
6458
  this.checklist = [];
6459
+ this.otherList = [];
6458
6460
  this.configured = false;
6459
6461
  this.checkStatus = false;
6460
6462
  this.resetSelected = false;
@@ -6471,6 +6473,7 @@ const BcmList = class {
6471
6473
  this._list_select_id = null;
6472
6474
  this._list_id = null;
6473
6475
  this.type = 'default';
6476
+ this.processType = 'default';
6474
6477
  this.hidden = false;
6475
6478
  this.items = [];
6476
6479
  this.isShow = true;
@@ -6483,16 +6486,19 @@ const BcmList = class {
6483
6486
  this.width = "100%";
6484
6487
  this.minWidth = null;
6485
6488
  this.maxWidth = null;
6489
+ this.fullWidth = false;
6490
+ this.size = 'medium';
6486
6491
  this.infoFooter = false;
6487
- this.highlight = false;
6488
6492
  this.searchable = false;
6493
+ this.highlight = false;
6489
6494
  this.searchPlaceholder = "Search";
6490
6495
  this.searchFields = ['text'];
6491
6496
  this.returnField = "id";
6497
+ this.searchData = null;
6498
+ this.searchSub = "items";
6499
+ this.searchText = "";
6492
6500
  this.value = null;
6493
6501
  this.multiSelect = false;
6494
- this.fullWidth = false;
6495
- this.size = 'medium';
6496
6502
  /******/
6497
6503
  this.clearable = false;
6498
6504
  this.label = null;
@@ -6506,9 +6512,11 @@ const BcmList = class {
6506
6512
  this.required = false;
6507
6513
  }
6508
6514
  connectedCallback() {
6515
+ this.captionCache = this.caption;
6516
+ this.captionTypeCache = this.captionType;
6509
6517
  this.bodyStyleOverflow = document.querySelector("body").style.overflow;
6510
- const elementId = "bcm-list-select-" + this._internal_id;
6511
- if (this.type === 'select') {
6518
+ const elementId = "bcm-list-select-" + this._id;
6519
+ if (this.type === 'select' || this.type === 'autocomplete') {
6512
6520
  this.selectIsInitialize();
6513
6521
  this.linkedComponent = elementId;
6514
6522
  }
@@ -6528,17 +6536,23 @@ const BcmList = class {
6528
6536
  }
6529
6537
  disconnectedCallback() { }
6530
6538
  componentWillLoad() { }
6531
- componentDidLoad() {
6532
- setTimeout(() => {
6533
- const spinner = this.el.shadowRoot.querySelector('.spinner');
6534
- spinner.classList.remove("first-run");
6535
- }, 500);
6536
- }
6539
+ componentDidLoad() { }
6537
6540
  componentWillRender() { }
6538
6541
  componentDidRender() {
6542
+ const elementId = "bcm-list-select-" + this._id;
6543
+ if (this.type === 'select' || this.type === 'autocomplete') {
6544
+ this.selectIsInitialize();
6545
+ this.linkedComponent = elementId;
6546
+ }
6539
6547
  if (sessionStorage.getItem(this._internal_id + "-config")) {
6540
6548
  this.config(JSON.parse(sessionStorage.getItem(this._internal_id + "-config")));
6541
6549
  }
6550
+ setTimeout(() => {
6551
+ const spinner = this.el.shadowRoot.querySelector('.spinner');
6552
+ if (spinner) {
6553
+ spinner.classList.remove("first-run");
6554
+ }
6555
+ }, 500);
6542
6556
  }
6543
6557
  componentWillUpdate() { }
6544
6558
  componentDidUpdate() { }
@@ -6549,10 +6563,34 @@ const BcmList = class {
6549
6563
  this.isShow = false;
6550
6564
  document.querySelector("body").style.overflow = this.bodyStyleOverflow;
6551
6565
  }
6566
+ async setSearch(text) {
6567
+ const searchInput = this.el.shadowRoot.querySelector("bcm-search");
6568
+ if (searchInput) {
6569
+ searchInput.setValue(text);
6570
+ // searchInput.select()
6571
+ }
6572
+ }
6573
+ async clearAndSelectSearch(select = true) {
6574
+ if (this.searchable == true) {
6575
+ // var searchInput = null
6576
+ const searchInput = this.el.shadowRoot.querySelector("bcm-search");
6577
+ if (searchInput) {
6578
+ searchInput.setClear();
6579
+ if (select == true) {
6580
+ searchInput.select();
6581
+ }
6582
+ }
6583
+ }
6584
+ }
6552
6585
  /**
6553
6586
  * @desc
6554
6587
  */
6555
6588
  async show() {
6589
+ if (this.processType == 'deselect') {
6590
+ this.firstRender = true;
6591
+ this.isRendered = false;
6592
+ this.setData(this.otherList);
6593
+ }
6556
6594
  this.isShow = true;
6557
6595
  if (this.items && this.isRendered === false) {
6558
6596
  this.isRendered = true;
@@ -6568,10 +6606,56 @@ const BcmList = class {
6568
6606
  async toggle() {
6569
6607
  this.isShow = !this.isShow;
6570
6608
  }
6609
+ /**
6610
+ * @desc
6611
+ */
6612
+ async openStatus() {
6613
+ return this.isShow;
6614
+ }
6615
+ /**
6616
+ * @desc
6617
+ */
6618
+ handleOpen(value) {
6619
+ if (this.processType === "deselect") {
6620
+ const listSelect = document.getElementById(this._list_select_id);
6621
+ if (listSelect) {
6622
+ const otherTag = listSelect.shadowRoot.querySelector("#other-tag");
6623
+ if (otherTag) {
6624
+ if (value === true) {
6625
+ otherTag.setAttribute("color", "prime-blue");
6626
+ }
6627
+ else {
6628
+ otherTag.removeAttribute("color");
6629
+ }
6630
+ }
6631
+ }
6632
+ }
6633
+ }
6634
+ /**
6635
+ * @desc
6636
+ */
6637
+ handleChange(newValue) {
6638
+ this.change.emit(newValue);
6639
+ }
6571
6640
  /**
6572
6641
  * @desc
6573
6642
  */
6574
6643
  async config(_config) {
6644
+ if (_config['type']) {
6645
+ this.type = _config['type'];
6646
+ }
6647
+ if (_config['searchPlaceholder']) {
6648
+ this.searchPlaceholder = _config['searchPlaceholder'];
6649
+ }
6650
+ if (_config['searchFields']) {
6651
+ this.searchFields = _config['searchFields'];
6652
+ }
6653
+ if (_config['returnField']) {
6654
+ this.returnField = _config['returnField'];
6655
+ }
6656
+ if (_config['highlight']) {
6657
+ this.highlight = _config['highlight'];
6658
+ }
6575
6659
  if (_config['linkedComponent'] && typeof _config['linkedComponent'] == 'string') {
6576
6660
  this.linkedComponent = _config['linkedComponent'];
6577
6661
  }
@@ -6597,6 +6681,12 @@ const BcmList = class {
6597
6681
  this.configObject = _config;
6598
6682
  return _config;
6599
6683
  }
6684
+ /**
6685
+ * @desc
6686
+ */
6687
+ async setDataOther(_data = []) {
6688
+ this.otherList = _data;
6689
+ }
6600
6690
  /**
6601
6691
  * @desc
6602
6692
  */
@@ -6605,12 +6695,26 @@ const BcmList = class {
6605
6695
  typeof _data == 'string'
6606
6696
  ? this.items = JSON.parse(_data)
6607
6697
  : this.items = _data;
6608
- if (this.items && this.items.find(e => e[this.objectMapping['selected']])) {
6609
- var selectedIDs = [];
6610
- this.items.filter(e => String(e[this.objectMapping['selected']]) === "true").forEach(element => {
6611
- selectedIDs.push(element[this.objectMapping['id']]);
6612
- });
6613
- this.checked(selectedIDs);
6698
+ if (this.items) {
6699
+ switch (this.processType) {
6700
+ case 'default':
6701
+ if (this.items.find(e => e[this.objectMapping['selected']])) {
6702
+ var selectedIDs = [];
6703
+ this.items.filter(e => String(e[this.objectMapping['selected']]) === "true").forEach(element => {
6704
+ selectedIDs.push(element[this.objectMapping['id']]);
6705
+ });
6706
+ this.checked(selectedIDs);
6707
+ }
6708
+ break;
6709
+ case 'deselect':
6710
+ var selectedIDs = [];
6711
+ this.items.forEach(element => {
6712
+ // element[ this.objectMapping['selected'] ] = true;
6713
+ selectedIDs.push(element[this.objectMapping['id']]);
6714
+ });
6715
+ this.checked(selectedIDs);
6716
+ break;
6717
+ }
6614
6718
  }
6615
6719
  this.calculatedTotals({ "total": this.items.length });
6616
6720
  if (this.multiSelect === true) {
@@ -6638,48 +6742,159 @@ const BcmList = class {
6638
6742
  /**
6639
6743
  * @desc
6640
6744
  */
6641
- async checked(checkedItems) {
6642
- if (this.items && this.items.find(e => e[this.objectMapping['selected']])) {
6643
- this.items.filter(e => String(e[this.objectMapping['selected']]) === "true").forEach(element => {
6644
- element[this.objectMapping['selected']] = false;
6645
- });
6745
+ async resetCaption() {
6746
+ this.caption = this.captionCache;
6747
+ this.captionType = this.captionTypeCache;
6748
+ this.captionError = null;
6749
+ }
6750
+ /**
6751
+ * @desc
6752
+ */
6753
+ async toggleChecked(checkedItems = null) {
6754
+ if (checkedItems !== null) {
6755
+ var checkStatus = false;
6756
+ if (typeof checkedItems == 'string') {
6757
+ checkStatus = this.items.find(e => e[this.objectMapping['id']] == checkedItems)[this.objectMapping['selected']];
6758
+ }
6759
+ else {
6760
+ let state = 'uncheck';
6761
+ let allChecked = true;
6762
+ let allUnchecked = true;
6763
+ checkedItems.forEach((item) => {
6764
+ if (String(this.items.find(e => e[this.objectMapping['id']] == item)[this.objectMapping['selected']]) === 'true') {
6765
+ allUnchecked = false;
6766
+ }
6767
+ else {
6768
+ allChecked = false;
6769
+ }
6770
+ });
6771
+ !allChecked && !allUnchecked
6772
+ ? state = 'determinate'
6773
+ : allChecked
6774
+ ? state = 'determinate'
6775
+ : state = 'uncheck';
6776
+ checkStatus = state == 'determinate' ? false : true;
6777
+ }
6778
+ // let state: string = 'uncheck'
6779
+ // let allChecked: boolean = true
6780
+ // let allUnchecked: boolean = true
6781
+ // checkedItems.map((item) => {
6782
+ // item[ this.objectMapping['selected'] ] === true && (allUnchecked = false)
6783
+ // !item[ this.objectMapping['selected'] ] === true && (allChecked = false)
6784
+ // });
6785
+ // !allChecked && !allUnchecked
6786
+ // ? state = 'determinate'
6787
+ // : allChecked
6788
+ // ? state = 'determinate'
6789
+ // : state = 'uncheck'
6790
+ // const checkStatus = state == 'determinate' ? true : false
6791
+ // const checkStatus = this.items.find( e => e[ this.objectMapping['id'] ] == checkedItems )[ this.objectMapping['selected'] ]
6792
+ if (checkStatus === true) {
6793
+ this.unChecked(checkedItems);
6794
+ }
6795
+ else {
6796
+ // this.checked(checkedItems, false)
6797
+ var selectedIDs = [];
6798
+ // var checkItem = null
6799
+ if (typeof checkedItems == 'string') {
6800
+ // checkItem = this.sendSelectId( String(checkedItems), true)
6801
+ selectedIDs.push(checkedItems);
6802
+ }
6803
+ else {
6804
+ checkedItems.forEach((item) => {
6805
+ selectedIDs.push(item);
6806
+ // String(item[ this.objectMapping['selected'] ]) === 'true' && (allUnchecked = false),
6807
+ // String(item[ this.objectMapping['selected'] ]) !== 'true' && (allChecked = false)
6808
+ });
6809
+ // this.sendSelectId( String(checkedItems), true)
6810
+ // var selectedIDs = []
6811
+ // if( this.items && this.items.find( e => e[ this.objectMapping['selected'] ] ) ){
6812
+ // this.items.filter( e => String( e[ this.objectMapping['selected'] ] ) === "true" ).forEach(element => {
6813
+ // selectedIDs.push( element )
6814
+ // });
6815
+ // }
6816
+ // this.value = selectedIDs
6817
+ // this.listChecked.emit( this.value )
6818
+ // this.handleIndeterminateStatus()
6819
+ // this.sendSelectValue()
6820
+ }
6821
+ this.checked(selectedIDs, false);
6822
+ }
6646
6823
  }
6647
- var selectedIDs = [];
6648
- this.setClear(false);
6649
- var checkItem = null;
6650
- if (typeof checkedItems == 'string') {
6651
- if (this.sendSelectId(String(checkedItems)) !== false) {
6652
- checkItem = this.sendSelectId(String(checkedItems));
6653
- selectedIDs.push(checkItem);
6824
+ }
6825
+ /**
6826
+ * @desc
6827
+ */
6828
+ async unChecked(checkedItems = null) {
6829
+ if (checkedItems !== null) {
6830
+ var selectedIDs = [];
6831
+ this.selectedId = null;
6832
+ if (typeof checkedItems == 'string') {
6833
+ this.sendSelectId(String(checkedItems), false);
6834
+ }
6835
+ else {
6836
+ checkedItems.forEach(item => {
6837
+ this.sendSelectId(String(item), false);
6838
+ });
6654
6839
  }
6840
+ if (this.items && this.items.find(e => e[this.objectMapping['selected']])) {
6841
+ this.items.filter(e => String(e[this.objectMapping['selected']]) === "true").forEach(element => {
6842
+ selectedIDs.push(element);
6843
+ });
6844
+ }
6845
+ this.value = selectedIDs;
6846
+ this.listChecked.emit(this.value);
6847
+ this.handleIndeterminateStatus();
6848
+ this.sendSelectValue();
6655
6849
  }
6656
- else {
6657
- checkedItems.forEach(item => {
6658
- if (this.sendSelectId(String(item)) !== false) {
6659
- checkItem = this.sendSelectId(String(item));
6660
- selectedIDs.push(checkItem);
6850
+ }
6851
+ /**
6852
+ * @desc
6853
+ */
6854
+ async checked(checkedItems = null, reset = true) {
6855
+ if (checkedItems !== null) {
6856
+ var selectedIDs = [];
6857
+ if (reset === true) {
6858
+ if (this.items && this.items.find(e => e[this.objectMapping['selected']])) {
6859
+ this.items.filter(e => String(e[this.objectMapping['selected']]) === "true").forEach(element => {
6860
+ element[this.objectMapping['selected']] = false;
6861
+ });
6661
6862
  }
6662
- });
6663
- }
6664
- if (this.multiSelect === false) {
6665
- this.selectedId = this.items.find(e => String(e[this.objectMapping['id']]) === String(checkedItems));
6863
+ this.setClear(false);
6864
+ }
6865
+ if (typeof checkedItems == 'string') {
6866
+ this.sendSelectId(String(checkedItems));
6867
+ if (this.multiSelect === false) {
6868
+ this.selectedId = this.items.find(e => String(e[this.objectMapping['id']]) === String(checkedItems));
6869
+ }
6870
+ }
6871
+ else {
6872
+ if (this.multiSelect === true) {
6873
+ checkedItems.forEach(item => {
6874
+ this.sendSelectId(String(item));
6875
+ });
6876
+ }
6877
+ }
6878
+ // if ( this.multiSelect === false ){
6879
+ // this.selectedId = this.items.find( e => String(e[ this.objectMapping['id'] ]) === String(checkedItems) )
6880
+ // }
6881
+ if (this.items && this.items.find(e => e[this.objectMapping['selected']])) {
6882
+ this.items.filter(e => String(e[this.objectMapping['selected']]) === "true").forEach(element => {
6883
+ selectedIDs.push(element);
6884
+ });
6885
+ }
6886
+ this.value = selectedIDs;
6887
+ this.listChecked.emit(this.value);
6888
+ this.handleIndeterminateStatus();
6889
+ this.sendSelectValue();
6666
6890
  }
6667
- this.value = selectedIDs;
6668
- this.listChecked.emit(this.value);
6669
- this.handleIndeterminateStatus();
6670
- this.sendSelectValue();
6671
6891
  }
6672
6892
  /**
6673
6893
  * @desc
6674
6894
  */
6675
6895
  async setClear(eventEmit = true) {
6676
6896
  if (this.items != undefined && this.items.length > 0) {
6677
- this.el.shadowRoot.querySelectorAll("bcm-list-item").forEach(item => {
6678
- if (item.shadowRoot.querySelector("bcm-checkbox-lite")) {
6679
- item.shadowRoot.querySelector("bcm-checkbox-lite")["checked"] = false;
6680
- }
6681
- item.classList.remove("selected");
6682
- });
6897
+ this.unChecked(this.items.map(item => { return item[this.objectMapping["id"]]; }));
6683
6898
  }
6684
6899
  this.selectedId = null;
6685
6900
  this.checklist = [];
@@ -6695,21 +6910,25 @@ const BcmList = class {
6695
6910
  */
6696
6911
  async processData(_data) {
6697
6912
  this.handleLoading(true);
6913
+ await utils.delay(100);
6698
6914
  const list = this.el.shadowRoot.querySelector('.list');
6699
6915
  list.innerHTML = "";
6700
6916
  this.selectedId = null;
6701
6917
  this.value = null;
6702
6918
  const elementStatuses = [];
6919
+ var checkedItems = [];
6703
6920
  if (_data.length > 0) {
6704
6921
  this.dataLength = _data.length;
6705
6922
  this.searchData = _data;
6923
+ await utils.delay(100);
6706
6924
  _data.map(item => {
6707
6925
  const element = document.createElement("bcm-list-item");
6708
6926
  element.setAttribute("_internal_id", this._internal_id);
6709
6927
  element.setAttribute("text", item[this.objectMapping['text']]);
6710
6928
  element.setAttribute("id", String(item[this.objectMapping['id']]));
6711
6929
  if (item[this.objectMapping['selected']]) {
6712
- element.select();
6930
+ // element.select()
6931
+ checkedItems.push(String(item[this.objectMapping['id']]));
6713
6932
  }
6714
6933
  // element.setAttribute("item-object", JSON.stringify(item))
6715
6934
  var object = item;
@@ -6720,6 +6939,13 @@ const BcmList = class {
6720
6939
  });
6721
6940
  const allStatuses = await Promise.all(elementStatuses);
6722
6941
  if (allStatuses) {
6942
+ if (checkedItems != []) {
6943
+ checkedItems.forEach(item => {
6944
+ // if ( this.sendSelectId( String(item) ) !== false ){
6945
+ this.sendSelectId(String(item));
6946
+ // }
6947
+ });
6948
+ }
6723
6949
  this.handleLoading(false);
6724
6950
  this.firstRender = false;
6725
6951
  }
@@ -6751,22 +6977,33 @@ const BcmList = class {
6751
6977
  * @desc
6752
6978
  */
6753
6979
  handleClick(event) {
6980
+ var path = event.path || (event.composedPath && event.composedPath());
6754
6981
  if (!this.el.contains(event.target)
6755
- || (event["path"]
6756
- && event["path"].filter((input) => input['_internal_id'] == this._internal_id)[0]
6757
- && event["path"].filter((input) => input['nodeName'] == "BCM-LIST-ITEM")[0]
6982
+ || (path
6983
+ && path.filter((input) => input['_internal_id'] == this._internal_id)[0]
6984
+ && path.filter((input) => input['nodeName'] == "BCM-LIST-ITEM")[0]
6758
6985
  && this.multiSelect === false)) {
6759
6986
  if (this.isShow === true) {
6760
6987
  this.hide();
6761
6988
  }
6762
6989
  }
6763
6990
  }
6991
+ /**
6992
+ * @desc
6993
+ */
6994
+ wheelEvent(event) {
6995
+ if (!this.el.contains(event.target)) {
6996
+ if (this.isShow === true) {
6997
+ this.hide();
6998
+ }
6999
+ }
7000
+ }
6764
7001
  /**
6765
7002
  * @desc
6766
7003
  */
6767
7004
  scrollEvent(event) {
6768
7005
  if (!this.el.contains(event.target)) {
6769
- if (this.isShow) {
7006
+ if (this.isShow === true) {
6770
7007
  this.hide();
6771
7008
  }
6772
7009
  }
@@ -6796,27 +7033,28 @@ const BcmList = class {
6796
7033
  * @descc
6797
7034
 
6798
7035
  */
6799
- listenSearchResult(e) {
6800
- if (e.isEvent == undefined) {
6801
- if (e["path"] && e["path"].filter((input) => input['_internal_id'] == this._internal_id)[0] != undefined) {
7036
+ listenSearchResult(event) {
7037
+ var path = event.path || (event.composedPath && event.composedPath());
7038
+ if (event.isEvent == undefined) {
7039
+ if (path && path.filter((input) => input['_internal_id'] == this._internal_id)[0] != undefined) {
6802
7040
  // var childs: any[] = getChilds(this.el, 'bcm-list-item')
6803
7041
  var childs = this.el.shadowRoot.querySelectorAll("bcm-list-item");
6804
7042
  childs.forEach(element => {
6805
7043
  element.classList.add("hidden");
6806
7044
  });
6807
- if (e.detail.length > 0) {
6808
- if (e.detail[0] == -1) {
7045
+ if (event.detail.length > 0) {
7046
+ if (event.detail[0] == -1) {
6809
7047
  this.totalSearch = 0;
6810
7048
  this.empty = true;
6811
7049
  }
6812
7050
  else {
6813
- this.totalSearch = e.detail.length;
7051
+ this.totalSearch = event.detail.length;
6814
7052
  this.empty = false;
6815
7053
  if (this.dataLength > 0) {
6816
7054
  childs.forEach(element => {
6817
7055
  if (this.highlight) {
6818
- e.target.addEventListener('bcm-on-search-value', async (e) => {
6819
- var searchValue = await e.detail;
7056
+ event.target.addEventListener('bcm-on-search-value', async (event) => {
7057
+ var searchValue = await event.detail;
6820
7058
  var inputText = element.shadowRoot.getElementById("text");
6821
7059
  inputText = inputText.textContent || inputText.innerText || "";
6822
7060
  if (searchValue) {
@@ -6830,14 +7068,14 @@ const BcmList = class {
6830
7068
  element.shadowRoot.getElementById("text").innerHTML = inputText;
6831
7069
  });
6832
7070
  }
6833
- if (e.detail.indexOf(element.id) >= 0) {
7071
+ if (event.detail.indexOf(element._id) >= 0) {
6834
7072
  element.classList.remove("hidden");
6835
7073
  }
6836
7074
  });
6837
7075
  }
6838
7076
  }
6839
7077
  }
6840
- else if (e.detail === true) {
7078
+ else if (event.detail === true) {
6841
7079
  this.totalSearch = this.dataLength;
6842
7080
  this.empty = false;
6843
7081
  childs.forEach(element => {
@@ -6852,25 +7090,30 @@ const BcmList = class {
6852
7090
  * @descc
6853
7091
 
6854
7092
  */
6855
- sendSelectId(id) {
6856
- // console.log(this.items.find( e => e[ this.objectMapping['id'] ] == id ))
7093
+ sendSelectId(id, status = true) {
6857
7094
  if (this.items && this.items.find(e => e[this.objectMapping['id']] == id)) {
6858
7095
  if (this.isRendered === false) {
6859
- this.items.find(e => e[this.objectMapping['id']] == id)[this.objectMapping['selected']] = true;
7096
+ this.items.find(e => e[this.objectMapping['id']] == id)[this.objectMapping['selected']] = status;
7097
+ this.handleChecklist(this.items.find(e => e[this.objectMapping['id']] == id), status);
6860
7098
  return this.items.find(e => e[this.objectMapping['id']] == id);
6861
7099
  }
6862
7100
  else {
6863
7101
  var selectedItem = null;
6864
7102
  if (selectedItem = this.el.shadowRoot.getElementById(id)) {
6865
- selectedItem.classList.add("selected");
7103
+ if (status === true) {
7104
+ selectedItem.classList.add("selected");
7105
+ }
7106
+ else {
7107
+ selectedItem.classList.remove("selected");
7108
+ }
6866
7109
  if (this.multiSelect === true) {
6867
- this.handleChecklist(selectedItem["itemObject"], true);
7110
+ this.handleChecklist(selectedItem["itemObject"], status);
6868
7111
  // selectedItem.classList.toggle("selected")
6869
- if (selectedItem.shadowRoot.querySelector("bcm-checkbox-lite")) {
6870
- selectedItem.shadowRoot.querySelector("bcm-checkbox-lite")["checked"] = true;
7112
+ if (selectedItem.shadowRoot.querySelector(".checkbox")) {
7113
+ selectedItem.shadowRoot.querySelector(".checkbox").querySelector("input").checked = status;
6871
7114
  }
6872
7115
  }
6873
- this.items.find(e => e[this.objectMapping['id']] == id)[this.objectMapping['selected']] = true;
7116
+ this.items.find(e => e[this.objectMapping['id']] == id)[this.objectMapping['selected']] = status;
6874
7117
  return this.items.find(e => e[this.objectMapping['id']] == id);
6875
7118
  }
6876
7119
  }
@@ -6881,44 +7124,50 @@ const BcmList = class {
6881
7124
  * @descc
6882
7125
  */
6883
7126
  jsonDataProcess(id, status) {
6884
- this.items.find(e => String(e[this.objectMapping['id']]) == String(id))[this.objectMapping['selected']] = status;
7127
+ // console.log(id)
7128
+ var item = this.items.find(e => String(e[this.objectMapping['id']]) == String(id));
7129
+ if (item) {
7130
+ item[this.objectMapping['selected']] = status;
7131
+ }
6885
7132
  }
6886
7133
  /**
6887
7134
  * @descc
6888
7135
  */
6889
7136
  handleListSelected(event) {
6890
- // console.log(event)
7137
+ var path = event.path || (event.composedPath && event.composedPath());
7138
+ // console.log(path);
6891
7139
  if (this.isInternal(event) || (!this.isInternal(event) && this.isInternalSlot(event))) {
7140
+ var status = false;
6892
7141
  var selectedItem = null;
6893
7142
  const itemId = this.getItemId(event);
6894
7143
  if (this.multiSelect === false) {
6895
- if (selectedItem = utils.getChilds(this.el, "bcm-list-item").find(x => x.id === this.selectedId)) {
7144
+ if (selectedItem = utils.getChilds(this.el, "bcm-list-item").find(x => x._id === this.selectedId)) {
6896
7145
  selectedItem.classList.remove("selected");
6897
- this.jsonDataProcess(this.selectedId, false);
7146
+ status = false;
6898
7147
  // selectedItem.selected = false
6899
7148
  }
6900
7149
  }
6901
7150
  selectedItem = this.el.shadowRoot.getElementById(itemId);
6902
7151
  if (selectedItem) {
6903
- this.selectedId = this.getItemId(event);
7152
+ this.selectedId = selectedItem["id"];
6904
7153
  // selectedItem.selected = true
6905
7154
  if (this.multiSelect === true) {
6906
7155
  selectedItem.classList.toggle("selected");
6907
7156
  if (selectedItem.classList.contains("selected") === true) {
6908
- this.jsonDataProcess(this.selectedId, false);
7157
+ status = false;
6909
7158
  }
6910
7159
  else {
6911
- this.jsonDataProcess(this.selectedId, true);
7160
+ status = true;
6912
7161
  }
6913
7162
  }
6914
7163
  else {
6915
7164
  selectedItem.classList.add("selected");
6916
- this.jsonDataProcess(this.selectedId, true);
7165
+ status = true;
6917
7166
  }
6918
7167
  }
6919
7168
  if (this.isInternalSlot(event)) {
6920
- if (selectedItem = event.path[0]) {
6921
- this.selectedId = event.path[0].id;
7169
+ if (selectedItem = path[0]) {
7170
+ this.selectedId = path[0].id;
6922
7171
  this.value = event.detail;
6923
7172
  return true;
6924
7173
  }
@@ -6926,16 +7175,28 @@ const BcmList = class {
6926
7175
  if (this.multiSelect === true) {
6927
7176
  this.handleChecklist(selectedItem["itemObject"], selectedItem.classList.contains("selected"));
6928
7177
  this.listChecked.emit(this.checklist);
6929
- if (selectedItem.shadowRoot.querySelector("bcm-checkbox-lite")) {
6930
- selectedItem.shadowRoot.querySelector("bcm-checkbox-lite")["checked"] = selectedItem.classList.contains("selected");
7178
+ if (selectedItem.shadowRoot.querySelector(".checkbox")) {
7179
+ selectedItem.shadowRoot.querySelector(".checkbox").querySelector("input").checked = selectedItem.classList.contains("selected");
6931
7180
  }
6932
7181
  this.value = this.checklist;
6933
7182
  }
6934
7183
  else {
6935
7184
  this.value = event.detail;
6936
7185
  }
7186
+ if (this.processType === 'default') {
7187
+ this.jsonDataProcess(this.selectedId, status);
7188
+ }
6937
7189
  this.handleIndeterminateStatus();
6938
7190
  this.sendSelectValue();
7191
+ if (this.processType === 'deselect') {
7192
+ var element = document.querySelector("#" + this._list_id);
7193
+ if (element) {
7194
+ if (this.firstRender === false) {
7195
+ element.toggleChecked(this.selectedId);
7196
+ }
7197
+ // element.unChecked(this.selectedId)
7198
+ }
7199
+ }
6939
7200
  }
6940
7201
  }
6941
7202
  /**
@@ -6960,9 +7221,9 @@ const BcmList = class {
6960
7221
  }
6961
7222
  let sorted = this.checklist.sort(function (a, b) { return a - b; });
6962
7223
  this.checklist = sorted;
6963
- if (this.firstRender === false) {
6964
- this.calculatedTotals({ "selected": this.checklist.length });
6965
- }
7224
+ // if ( this.firstRender === false ){
7225
+ this.calculatedTotals({ "selected": this.checklist.length });
7226
+ // }
6966
7227
  }
6967
7228
  }
6968
7229
  /**
@@ -7023,32 +7284,35 @@ const BcmList = class {
7023
7284
  * @desc
7024
7285
  */
7025
7286
  getItemId(event) {
7026
- const detect = event.path
7027
- && event.path[0]
7028
- && event.path[0].attributes
7029
- && event.path[0].attributes['id']
7030
- && event.path[0].attributes['id'].value;
7287
+ var path = event.path || (event.composedPath && event.composedPath());
7288
+ const detect = path
7289
+ && path[0]
7290
+ && path[0].attributes
7291
+ && path[0].attributes['id']
7292
+ && path[0].attributes['id'].value;
7031
7293
  return detect;
7032
7294
  }
7033
7295
  /**
7034
7296
  * @desc
7035
7297
  */
7036
7298
  isInternalSlot(event) {
7037
- const detect = event.path
7038
- && event.path[0]
7039
- && lowercase$2(event.path[0].tagName) === 'bcm-list-item'
7040
- && this.el.contains(event.path[0]);
7299
+ var path = event.path || (event.composedPath && event.composedPath());
7300
+ const detect = path
7301
+ && path[0]
7302
+ && lowercase$2(path[0].tagName) === 'bcm-list-item'
7303
+ && this.el.contains(path[0]);
7041
7304
  return detect;
7042
7305
  }
7043
7306
  /**
7044
7307
  * @desc
7045
7308
  */
7046
7309
  isInternal(event) {
7047
- const detect = event.path
7048
- && event.path[0]
7049
- && event.path[0].attributes
7050
- && event.path[0].attributes['_internal_id']
7051
- && event.path[0].attributes['_internal_id'].value;
7310
+ var path = event.path || (event.composedPath && event.composedPath());
7311
+ const detect = path
7312
+ && path[0]
7313
+ && path[0].attributes
7314
+ && path[0].attributes['_internal_id']
7315
+ && path[0].attributes['_internal_id'].value;
7052
7316
  return detect == this._internal_id;
7053
7317
  }
7054
7318
  /**
@@ -7065,7 +7329,7 @@ const BcmList = class {
7065
7329
  * @desc
7066
7330
  */
7067
7331
  async selectIsInitialize() {
7068
- const elementId = "bcm-list-select-" + this._internal_id;
7332
+ const elementId = "bcm-list-select-" + this._id;
7069
7333
  var element;
7070
7334
  if (!document.getElementById(elementId)) {
7071
7335
  element = document.createElement("bcm-list-select");
@@ -7076,6 +7340,9 @@ const BcmList = class {
7076
7340
  element.setAttribute("id", elementId);
7077
7341
  element.setAttribute("_list_id", this._id);
7078
7342
  element.setAttribute("_internal_id", this._internal_id);
7343
+ if (this.type) {
7344
+ element.setAttribute("type", this.type);
7345
+ }
7079
7346
  if (this.clearable) {
7080
7347
  element.setAttribute("clearable", this.clearable);
7081
7348
  }
@@ -7109,6 +7376,9 @@ const BcmList = class {
7109
7376
  if (this.fullWidth) {
7110
7377
  element.setAttribute("full-width", this.fullWidth);
7111
7378
  }
7379
+ if (this.multiSelect) {
7380
+ element.setAttribute("multiselect", this.multiSelect);
7381
+ }
7112
7382
  const parentNode = this.el.parentNode;
7113
7383
  parentNode.insertBefore(element, this.el);
7114
7384
  return elementId;
@@ -7132,22 +7402,42 @@ const BcmList = class {
7132
7402
  this.checkStatus = false;
7133
7403
  }
7134
7404
  if (this.items != undefined && this.items.length > 0) {
7135
- const subItems = this.el.shadowRoot.querySelectorAll("bcm-list-item");
7136
- subItems.forEach(item => {
7137
- this.handleChecklist(item["itemObject"], this.checkStatus === true ? true : false);
7138
- if (item.shadowRoot.querySelector("bcm-checkbox-lite")) {
7139
- item.shadowRoot.querySelector("bcm-checkbox-lite")["checked"] = this.checkStatus;
7140
- }
7141
- if (this.checkStatus === true) {
7142
- item.classList.add("selected");
7143
- }
7144
- else {
7145
- item.classList.remove("selected");
7146
- }
7405
+ // const subItems = this.el.shadowRoot.querySelectorAll("bcm-list-item")
7406
+ var selectedIDs = [];
7407
+ this.items.forEach(item => {
7408
+ selectedIDs.push(item[this.objectMapping['id']]);
7409
+ // this.jsonDataProcess( item[ this.objectMapping['id'] ], this.checkStatus === true ? true : false)
7410
+ // this.handleChecklist( item, this.checkStatus === true ? true : false)
7411
+ // var element:any = this.el.shadowRoot.getElementById( item[ this.objectMapping['id'] ] )
7412
+ // if ( element ) {
7413
+ // if ( element.shadowRoot.querySelector(".checkbox") ){
7414
+ // element.shadowRoot.querySelector(".checkbox").querySelector("input").checked = this.checkStatus
7415
+ // }
7416
+ // if ( this.checkStatus === true ){
7417
+ // element.classList.add("selected")
7418
+ // } else {
7419
+ // element.classList.remove("selected")
7420
+ // }
7421
+ // }
7147
7422
  });
7148
- this.listChecked.emit(this.checklist);
7149
- this.value = this.checklist;
7150
- this.sendSelectValue();
7423
+ if (this.checkStatus === true) {
7424
+ this.checked(selectedIDs, false);
7425
+ }
7426
+ else {
7427
+ this.unChecked(selectedIDs);
7428
+ }
7429
+ if (this.processType === 'deselect') {
7430
+ var element = document.querySelector("#" + this._list_id);
7431
+ if (element) {
7432
+ // if ( this.firstRender === false ){
7433
+ element.toggleChecked(selectedIDs);
7434
+ // }
7435
+ // element.unChecked(this.selectedId)
7436
+ }
7437
+ }
7438
+ // this.listChecked.emit( this.checklist )
7439
+ // this.value = this.checklist
7440
+ // this.sendSelectValue()
7151
7441
  }
7152
7442
  this.handleIndeterminateStatus();
7153
7443
  }
@@ -7155,15 +7445,14 @@ const BcmList = class {
7155
7445
  * @desc
7156
7446
  */
7157
7447
  sendSelectValue() {
7158
- if (this.type === 'select') {
7159
- const select = document.getElementById("bcm-list-select-" + this._internal_id);
7448
+ if (this.type === 'select' || this.type === 'autocomplete') {
7449
+ const select = document.getElementById("bcm-list-select-" + this._id);
7160
7450
  if (select) {
7161
- // console.log("sendSelectValue")
7162
7451
  if (this.multiSelect === true) {
7163
7452
  select.setValue(this.value, this.objectMapping["id"], this.objectMapping["text"]);
7164
7453
  }
7165
7454
  else {
7166
- select.setValue(this.value[this.value.length - 1][this.objectMapping["text"]]);
7455
+ select.setValue(this.value[this.objectMapping["text"]]);
7167
7456
  }
7168
7457
  }
7169
7458
  }
@@ -7174,7 +7463,8 @@ const BcmList = class {
7174
7463
  'size-2': this.size === 'small' || this.size === 'medium',
7175
7464
  'size-3': this.size === 'large',
7176
7465
  });
7177
- const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, {
7466
+ const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, 'type-' + this.type, {
7467
+ 'error': this.captionType == 'error' ? true : false,
7178
7468
  'show': this.isShow,
7179
7469
  'flex': this.minHeight != null || this.maxHeight != null,
7180
7470
  'full-width': this.fullWidth
@@ -7183,6 +7473,7 @@ const BcmList = class {
7183
7473
  'show': this.searchable,
7184
7474
  });
7185
7475
  const footer = index$1.classnames('footer');
7476
+ const captionClasses = index$1.classnames('size-1', 'input-caption', 'caption-' + this.captionType);
7186
7477
  var customStyle = {
7187
7478
  'height': this.minHeight != null || this.maxHeight != null ? 'auto' : this.height,
7188
7479
  'min-height': this.minHeight != null ? this.minHeight : null,
@@ -7192,13 +7483,19 @@ const BcmList = class {
7192
7483
  'min-width': this.minWidth != null ? this.minWidth == "100%" || this.minWidth == "auto" ? this.linkedElementWidth : this.minWidth : null,
7193
7484
  'max-width': this.maxWidth != null ? this.maxWidth == "100%" || this.maxWidth == "auto" ? this.linkedElementWidth : this.maxWidth : null,
7194
7485
  };
7195
- return (index.h(index.Host, { class: hostClasses, style: customStyle }, this.searchable === true && (index.h("div", { class: searchContainer }, index.h("bcm-search", { id: "search", _internal_id: this._internal_id, searchPlaceholder: this.searchPlaceholder, data: this.searchData, returnField: this.returnField, searchFields: this.searchFields, clearable: true }), index.h("bcm-divider", null))), this.multiSelect === true && (index.h("div", { class: "check-container" }, index.h("div", { class: listItem, id: "text", onClick: (e) => this.handleIndeterminateClick(e) }, index.h("div", { class: "check-content" }, index.h("bcm-checkbox-lite", { id: 'check-lite-' + this._id, name: 'check-lite-' + this._id, checked: false, indeterminate: false, onClick: (e) => this.handleCheckboxClick(e) })), "Select All"), index.h("div", { class: "divider" }, index.h("bcm-divider", null)))), index.h("div", { class: classes }, index.h("slot", null), index.h("div", { class: "list" }), index.h("div", { class: "spinner first-run" }, index.h("bcm-icon", { type: "animated", color: "prime-blue", class: "prefix", icon: "loading" }))), this.infoFooter == true && (index.h("div", { class: footer }, index.h("bcm-text", { scale: "size-1", color: "grey-8" }, index.h("span", { id: "selected-item" }), " Total ", index.h("span", { id: "in-total" }, "0"), " items found.")))));
7486
+ return (index.h(index.Host, { class: hostClasses, style: customStyle }, (this.type === 'default' && this.processType === 'default' && this.label) && (index.h("label", { class: "label size-1" }, " ", this.label, " ", this.required && ('*'), " ")), index.h("main", { style: customStyle }, this.searchable === true && (index.h("div", { class: searchContainer }, index.h("bcm-search", { id: "search", _internal_id: this._internal_id, searchPlaceholder: this.searchPlaceholder, data: this.searchData, returnField: this.returnField, searchFields: this.searchFields, searchValue: this.searchText, clearable: true }), index.h("bcm-divider", null))), index.h("div", { class: classes }, this.multiSelect === true && (index.h("div", { class: "check-container" }, index.h("div", { class: listItem, id: "text", onClick: (e) => this.handleIndeterminateClick(e) }, index.h("div", { class: "check-content" }, index.h("bcm-checkbox-lite", { id: 'check-lite-' + this._id, name: 'check-lite-' + this._id, checked: false, indeterminate: false, onClick: (e) => this.handleCheckboxClick(e) })), "Select All"), index.h("div", { class: "divider" }, index.h("bcm-divider", null)))), index.h("slot", null), index.h("div", { class: "list" }), index.h("div", { class: "spinner first-run" }, index.h("bcm-icon", { type: "animated", color: "prime-blue", class: "prefix", icon: "loading" }))), this.infoFooter == true && (index.h("div", { class: footer }, index.h("bcm-text", { scale: "size-1", color: "grey-8" }, index.h("span", { id: "selected-item" }), " Total ", index.h("span", { id: "in-total" }, "0"), " items found.")))), (this.type === 'default' && this.processType === 'default' && !this.noCaption) && (index.h("div", { class: "caption-area" }, this.captionType == "error"
7487
+ ? index.h("span", { class: captionClasses }, " ", this.captionError, " ")
7488
+ : this.caption && index.h("span", { class: captionClasses }, " ", this.caption, " ")))));
7196
7489
  }
7197
7490
  get el() { return index.getElement(this); }
7491
+ static get watchers() { return {
7492
+ "isShow": ["handleOpen"],
7493
+ "value": ["handleChange"]
7494
+ }; }
7198
7495
  };
7199
7496
  BcmList.style = listCss;
7200
7497
 
7201
- const listItemCss = "@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}:host(.hidden){display:none}:host(.selected) .list-item{color:var(--bcm-color-prime-blue-6);background-color:var(--bcm-color-prime-blue-1)}:host(.selected) .list-item:hover:not(.disabled){color:var(--bcm-color-prime-blue-7);background-color:var(--bcm-color-prime-blue-1)}:host(.selected) .list-item.disabled{color:var(--bcm-color-grey-6);cursor:not-allowed}:host(.selected) .list-item .check{background-color:#333333}:host(.checkable) .list-item .check{display:inline-block}.list-item{padding:8px;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);cursor:pointer;display:flex;justify-content:flex-start;align-items:center;flex-direction:row;white-space:break-spaces}.list-item .check{display:none;background-color:#ededed;width:15px;height:15px}.list-item .highlight{background-color:var(--bcm-color-yellow-5)}.list-item:hover:not(.disabled),.list-item:active:not(.disabled){color:var(--bcm-color-grey-8);background-color:var(--bcm-color-prime-blue-1)}.list-item .check-content{display:flex;align-items:center;justify-content:flex-start;width:16px;min-width:16px;margin-right:8px;margin-bottom:2px}";
7498
+ const listItemCss = "@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}:host(.hidden){display:none}:host(.selected) .list-item{color:var(--bcm-color-prime-blue-6);background-color:var(--bcm-color-prime-blue-1)}:host(.selected) .list-item:hover:not(.disabled){color:var(--bcm-color-prime-blue-7);background-color:var(--bcm-color-prime-blue-1)}:host(.selected) .list-item.disabled{color:var(--bcm-color-grey-6);cursor:not-allowed}:host(.selected) .list-item .check{background-color:#333333}:host(.checkable) .list-item .check{display:inline-block}.list-item{padding:8px;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);cursor:pointer;display:flex;justify-content:flex-start;align-items:center;flex-direction:row;white-space:break-spaces}.list-item .check{display:none;background-color:#ededed;width:15px;height:15px}.list-item .highlight{background-color:var(--bcm-color-yellow-5)}.list-item:hover:not(.disabled),.list-item:active:not(.disabled){color:var(--bcm-color-grey-8);background-color:var(--bcm-color-prime-blue-1)}.list-item .check-content{display:flex;align-items:center;justify-content:flex-start;width:16px;min-width:16px;margin-right:8px;margin-bottom:2px}.checkbox{}.checkbox input{display:none}.checkbox .svg-icon{filter:brightness(0) invert(1);width:12px;height:12px}.checkbox label{display:flex;align-items:flex-start;font-size:14px;color:var(--bcm-color-grey-8);cursor:pointer}.checkbox label span.icon{display:flex;align-items:center;justify-content:center;min-width:16px;min-height:16px;border:1px solid #D9D9D9;margin-right:8px;border-radius:2px;margin-top:2px;background-color:var(--bcm-color-grey-1)}.checkbox.indeterminate label span.icon{position:relative}.checkbox.indeterminate label span.icon::after{content:\"\";position:absolute;top:50%;left:8px;width:10px;height:10px;background-color:var(--bcm-color-prime-blue-6);transform:translate(-50%, -50%);opacity:1;z-index:1}.checkbox.indeterminate label span.icon::before{content:\"\";position:absolute;top:-1px;left:-1px;width:16px;height:100%;border-radius:2px;background-color:var(--bcm-color-grey-1);border:1px solid var(--bcm-color-grey-5);opacity:1;z-index:1}.checkbox.indeterminate label span.icon:hover:not(.disabled):before{border-color:var(--bcm-color-prime-blue-6);box-shadow:0px 2px 4px rgba(54, 121, 171, 0.5)}.checkbox input:checked+label span.icon{background-color:var(--bcm-color-prime-blue-6);border-color:transparent}.checkbox input:checked+label .icon-checked{display:block}.checkbox bcm-icon{filter:brightness(0) invert(1)}.checkbox input[disabled]+label{cursor:not-allowed}.checkbox input[disabled]+label span.icon{background-color:var(--bcm-color-grey-3);border-color:var(--bcm-color-grey-5)}.checkbox input[disabled]+label bcm-icon{filter:brightness(0);opacity:0.3}.checkbox input:not([disabled])+label:hover span.icon{border-color:var(--bcm-color-prime-blue-6);box-shadow:0px 2px 4px rgba(54, 121, 171, 0.5)}.checkbox .caption-area{margin-bottom:8px;min-height:20px;display:block}.checkbox .input-caption{display:block}.checkbox .caption-default{color:#8C8C8C}.checkbox .caption-primary{color:#4293CF}.checkbox .caption-success{color:#52C41A}.checkbox .caption-warning{color:#FA8C16}.checkbox .caption-error{color:#F5222D}.checkbox .radio-button{background-color:var(--bcm-color-grey-1);color:var(--bcm-color-grey-8);border:1px solid var(--bcm-color-grey-5);padding:0 16px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.checkbox .radio-button>span.icon{display:none}.checkbox .radio-button>span.slot{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;user-select:none}.checkbox .radio-button:hover:not(.disabled){color:var(--bcm-color-prime-blue-5)}.checkbox .radio-button:active:not(.disabled){color:var(--bcm-color-prime-blue-7)}.checkbox .radio-button.disabled{background-color:var(--bcm-color-grey-3);color:var(--bcm-color-grey-6);cursor:not-allowed}.checkbox .radio-button.checked.disabled{background-color:var(--bcm-color-grey-4);color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-5)}.checkbox .radio-button.checked.solid{color:var(--bcm-color-grey-1);background-color:var(--bcm-color-prime-blue-6);border-color:var(--bcm-color-prime-blue-6)}.checkbox .radio-button.checked.solid:hover{background-color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}.checkbox .radio-button.checked.solid:active{background-color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}.checkbox .radio-button.checked.outline{background-color:var(--bcm-color-grey-1);color:var(--bcm-color-prime-blue-6);border-color:var(--bcm-color-prime-blue-6)}.checkbox .radio-button.checked.outline:hover{color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}.checkbox .radio-button.checked.outline:active{color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}.checkbox .radio-button.large{height:40px}.checkbox .radio-button.medium{height:32px}.checkbox .radio-button.small{height:24px}";
7202
7499
 
7203
7500
  const BcmListItem = class {
7204
7501
  constructor(hostRef) {
@@ -7211,6 +7508,7 @@ const BcmListItem = class {
7211
7508
  this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
7212
7509
  this.template = null;
7213
7510
  this._uniq_id = (Math.random() * 4).toString(16).replace('.', '');
7511
+ // @Prop({ attribute: 'id', reflect: true }) id: string = (Math.random() * 4).toString(16).replace('.', '')
7214
7512
  this._id = (Math.random() * 4).toString(16).replace('.', '');
7215
7513
  this.itemObject = null;
7216
7514
  this.selected = false;
@@ -7221,6 +7519,7 @@ const BcmListItem = class {
7221
7519
  disconnectedCallback() { }
7222
7520
  componentWillLoad() { }
7223
7521
  componentDidLoad() {
7522
+ this.itemObject = this.itemObject;
7224
7523
  // setTimeout(() => {
7225
7524
  // this.loaded.emit(true);
7226
7525
  // }, 1000);
@@ -7275,13 +7574,17 @@ const BcmListItem = class {
7275
7574
  'selected': selected,
7276
7575
  'checkable': multiSelect,
7277
7576
  });
7278
- return (index.h(index.Host, { class: hostClasses, onClick: () => this.handleClick() }, index.h("div", { class: classes }, multiSelect && (index.h("div", { class: "check-content" }, index.h("bcm-checkbox-lite", { id: 'check-' + this._id, name: 'check-' + this._id, onClick: (e) => this.handleCheckboxClick(e), checked: this.selected, disabled: this.disabled }))), index.h("span", { id: "text" }, this.text ? this.text : index.h("slot", null)))));
7577
+ const checkboxClasses = index$1.classnames('checkbox', this.hidden ? 'hidden' : null, {
7578
+ 'indeterminate': false
7579
+ });
7580
+ const checkboxIconClasses = index$1.classnames('icon');
7581
+ return (index.h(index.Host, { class: hostClasses, onClick: () => this.handleClick() }, index.h("div", { class: classes }, multiSelect && (index.h("div", { class: "check-content" }, index.h("div", { class: checkboxClasses, onClick: (e) => this.handleCheckboxClick(e) }, index.h("input", { id: 'check-' + this._id, type: "checkbox", name: 'check-' + this._id, checked: this.selected, disabled: this.disabled }), index.h("label", { htmlFor: 'check-' + this._id }, index.h("span", { class: checkboxIconClasses }, index.h("svg", { class: "svg-icon icon-checked", width: "11", height: "9", viewBox: "0 0 11 9", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M1.91308 4.03516H1.91326C1.99256 4.03525 2.07081 4.05331 2.14213 4.08798C2.21341 4.12262 2.27591 4.17295 2.32497 4.2352L1.91308 4.03516ZM1.91308 4.03516H1.09394C0.890308 4.03516 0.776602 4.26975 0.902321 4.4292L0.902371 4.42927L4.11214 8.49567L4.11218 8.49573C4.32247 8.76188 4.72568 8.76114 4.93667 8.49617L4.93708 8.49566L10.6597 1.24398C10.6598 1.24378 10.66 1.24358 10.6602 1.24338C10.7884 1.08295 10.6699 0.85 10.4689 0.85H9.6498C9.48941 0.85 9.33668 0.9235 9.2376 1.05044C9.23751 1.05055 9.23742 1.05066 9.23734 1.05077L4.52403 7.02157M1.91308 4.03516L4.52403 7.02157M4.52403 7.02157L2.32506 4.23531L4.52403 7.02157Z", fill: "#BFBFBF", stroke: "#BFBFBF", "stroke-width": "0.3" }))))))), index.h("span", { id: "text" }, this.text ? this.text : index.h("slot", null)))));
7279
7582
  }
7280
7583
  get el() { return index.getElement(this); }
7281
7584
  };
7282
7585
  BcmListItem.style = listItemCss;
7283
7586
 
7284
- const listSelectCss = "@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}.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:inline-block;width:256px;margin:0 0 8px 0}:host(.hidden){display:none}:host(.full-width){width:100%}.container{display:block;max-width:256px;position:relative}.container.full-width{width:100%;max-width:100%}.selected{width:100%;box-sizing:border-box;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);display:flex;justify-content:space-between;align-items:center;border:1px solid var(--bcm-color-grey-5);user-select:none;cursor:pointer;border-radius:2px;position:relative}.selected:hover:not(.disabled){border-color:var(--bcm-color-prime-blue-5)}.selected:hover:not(.disabled) .select-clear-button{opacity:1}.selected:focus:not(.disabled){border-color:var(--bcm-color-prime-blue-5);box-shadow:0px 0px 4px var(--bcm-color-prime-blue-6)}.selected:focus:not(.disabled) .select-clear-button{opacity:1}.selected:focus{outline:none}.selected.disabled{background-color:var(--bcm-color-grey-3);color:var(--bcm-color-grey-8);cursor:not-allowed}.selected .buttons{padding:8px;height:100%;display:flex;align-items:center;justify-content:center}.selected .selected-text{padding:0 8px;width:100%;height:100%;flex:1;display:flex;align-items:center}.selected .selected-text .text-content{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.selected .selected-tags{padding:0 4px;height:100%}.selected .tag-container{height:100%;display:flex;align-items:center;justify-content:flex-start;grid-gap:2px}.selected .tag-container>span{height:100%;align-items:center;justify-content:flex-start;display:flex;grid-gap:2px}.selected .tag-container .tag{max-width:200px}.selected .tag-container #other-tag{cursor:pointer}.selected .open,.selected .close{display:inline-flex}.selected .close{transform:rotate(180deg)}.selected .placeholder{color:var(--bcm-color-grey-6);user-select:none;font-size:14px;display:flex;align-items:center;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.options-viewport{display:inline-block}.option-container{display:block;position:absolute;background-color:var(--bcm-color-grey-1);box-shadow:0px 2px 8px rgba(0, 0, 0, 0.15);box-sizing:border-box;width:100%;z-index:10000}.option-container.alignment-left{left:0}.option-container.alignment-right{right:0}.option-container.hidden{display:none}.option-container .search{position:sticky;padding:8px;margin-bottom:4px}.option-container .search:after{content:\"\";position:absolute;bottom:0;height:1px;width:calc(100% - 16px);background-color:var(--bcm-color-grey-5)}.items{display:flex;flex-direction:column}.buttons{display:flex}.select-clear-button{display:inline-flex;align-items:center;outline:none;border:none;background:none;padding:0;cursor:pointer;margin-right:4px;opacity:0}.label{display:block;color:var(--bcm-color-grey-9);margin-bottom:4px}.caption-area{min-height:20px}.input-caption{display:block}.selected-large{height:40px}.selected-medium{height:32px}.selected-small{height:24px}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}.error .label{color:var(--bcm-color-red-6) !important}.error .selected{border:1px solid var(--bcm-color-red-6) !important}.spinner{position:absolute;z-index:1;top:0;opacity:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#ffffff;visibility:hidden;transition:opacity 0.3s, visibility 0.5s}.spinner.show{visibility:visible;opacity:0.9}.spinner.first-run{visibility:visible;opacity:1}";
7587
+ const listSelectCss = "@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}.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:inline-block;width:256px;margin:0 0 8px 0;overflow:hidden;max-width:100%}:host(.hidden){display:none}:host(.full-width){width:100%}:host(.type-autocomplete) #selected-container{border:none}:host(.type-autocomplete) #selected-container .selected-text{padding:0;border:none}:host(.type-autocomplete) #selected-container .selected-text bcm-input{display:contents}.container{display:block;max-width:256px;position:relative}.container.full-width{width:100%;max-width:100%}.selected{width:100%;box-sizing:border-box;color:var(--bcm-color-grey-8);background-color:var(--bcm-color-grey-1);display:flex;justify-content:space-between;align-items:center;border:1px solid var(--bcm-color-grey-5);user-select:none;cursor:pointer;border-radius:2px;position:relative}.selected:hover:not(.disabled){border-color:var(--bcm-color-prime-blue-5)}.selected:hover:not(.disabled) .select-clear-button{opacity:1}.selected:focus:not(.disabled){border-color:var(--bcm-color-prime-blue-5);box-shadow:0px 0px 4px var(--bcm-color-prime-blue-6)}.selected:focus:not(.disabled) .select-clear-button{opacity:1}.selected:focus{outline:none}.selected.disabled{background-color:var(--bcm-color-grey-3);color:var(--bcm-color-grey-8);cursor:not-allowed}.selected .buttons{padding:8px;height:100%;display:flex;align-items:center;justify-content:center}.selected .selected-text{padding:0 8px;width:100%;height:100%;flex:1;display:flex;align-items:center;overflow:hidden}.selected .selected-text .text-content{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.selected .selected-tags{padding:0 4px;height:100%}.selected .tag-container{height:100%;display:flex;align-items:center;justify-content:flex-start;grid-gap:2px}.selected .tag-container>span{height:100%;align-items:center;justify-content:flex-start;display:flex;grid-gap:2px}.selected .tag-container .tag{max-width:200px}.selected .tag-container #other-tag{cursor:pointer}.selected .open,.selected .close{display:inline-flex}.selected .close{transform:rotate(180deg)}.selected .placeholder{color:var(--bcm-color-grey-6);user-select:none;font-size:14px;display:flex;align-items:center;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.options-viewport{display:inline-block}.option-container{display:block;position:absolute;background-color:var(--bcm-color-grey-1);box-shadow:0px 2px 8px rgba(0, 0, 0, 0.15);box-sizing:border-box;width:100%;z-index:10000}.option-container.alignment-left{left:0}.option-container.alignment-right{right:0}.option-container.hidden{display:none}.option-container .search{position:sticky;padding:8px;margin-bottom:4px}.option-container .search:after{content:\"\";position:absolute;bottom:0;height:1px;width:calc(100% - 16px);background-color:var(--bcm-color-grey-5)}.items{display:flex;flex-direction:column}.buttons{display:flex}.select-clear-button{display:inline-flex;align-items:center;outline:none;border:none;background:none;padding:0;cursor:pointer;margin-right:4px;opacity:0}.label{display:block;color:var(--bcm-color-grey-9);margin-bottom:4px}.caption-area{min-height:20px}.input-caption{display:block}.selected-large{height:40px}.selected-medium{height:32px}.selected-small{height:24px}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}.error .label{color:var(--bcm-color-red-6) !important}.error .selected{border:1px solid var(--bcm-color-red-6) !important}.spinner{position:absolute;z-index:1;top:0;opacity:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#ffffff;visibility:hidden;transition:opacity 0.3s, visibility 0.5s}.spinner.show{visibility:visible;opacity:0.9}.spinner.first-run{visibility:visible;opacity:1}.tag{display:flex;align-items:center;justify-content:center;padding:0 8px;cursor:default;border-radius:48px;border:1px solid var(--bcm-color-grey-5);user-select:none;min-width:10px;min-height:20px;height:20px}.tag[hidden]{opacity:0 !important;position:absolute !important;z-index:-1}.tag .value{cursor:pointer;max-width:164px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block}.tag.size-large{padding:calc(40px - 8px) 40px}.tag.size-medium{padding:calc(32px - 8px) 32px}.tag.size-small{padding:calc(24px - 8px) 24px}.tag.dissmisable{background-color:var(--bcm-color-grey-3);color:var(--bcm-color-grey-8)}.tag.dissmisable:hover{opacity:0.85}.tag.dissmisable{color:var(--bcm-color-grey-10)}.tag.dissmisable .close-button{width:14px;cursor:pointer}.tag.dissmisable .close-button bcm-icon,.tag.dissmisable .close-button .icon *{color:var(--bcm-color-grey-7)}.tag.dissmisable .close-button:hover bcm-icon,.tag.dissmisable .close-button:hover .icon *{color:var(--bcm-color-grey-10)}.tag span{display:inline-flex}.tag span.left{margin-right:4px}.tag span.right{margin-left:4px}.tag:before,.tag:after{content:\"\"}";
7285
7588
 
7286
7589
  const BcmListSelect = class {
7287
7590
  constructor(hostRef) {
@@ -7299,13 +7602,21 @@ const BcmListSelect = class {
7299
7602
  this._id = (Math.random() * 4).toString(16).replace('.', '');
7300
7603
  this._list_id = null;
7301
7604
  this.value = null;
7605
+ this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
7606
+ this.type = 'default';
7302
7607
  this.size = 'medium';
7303
7608
  this.placeholder = "Choose an option";
7304
7609
  this.noCaption = false;
7305
7610
  this.captionType = 'default';
7306
7611
  this.fullWidth = false;
7307
7612
  this.required = false;
7308
- this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
7613
+ this.multiSelect = false;
7614
+ this.searchData = null;
7615
+ this.searchPlaceholder = "Search";
7616
+ this.searchFields = ['text'];
7617
+ this.returnField = "id";
7618
+ this.searchSub = "items";
7619
+ this.searchText = "";
7309
7620
  this.captionCache = null;
7310
7621
  this.captionTypeCache = null;
7311
7622
  this.isOpen = false;
@@ -7333,8 +7644,8 @@ const BcmListSelect = class {
7333
7644
  this.selectArea = this.el.shadowRoot.querySelector(".selected-text");
7334
7645
  this.selectAreaWidth = this.selectArea.clientWidth;
7335
7646
  }
7647
+ this.selectArea.style.width = "100%";
7336
7648
  this.handleTagControl();
7337
- this.selectArea.style.width = this.selectAreaWidth - 16 + "px";
7338
7649
  if (sessionStorage.getItem(this._internal_id + "-config")) {
7339
7650
  this.config(JSON.parse(sessionStorage.getItem(this._internal_id + "-config")));
7340
7651
  }
@@ -7353,20 +7664,82 @@ const BcmListSelect = class {
7353
7664
  handleBlur() {
7354
7665
  this.blur.emit();
7355
7666
  }
7667
+ /**
7668
+ * @desc
7669
+ */
7670
+ async resetCaption() {
7671
+ this.caption = this.captionCache;
7672
+ this.captionType = this.captionTypeCache;
7673
+ this.captionError = null;
7674
+ }
7356
7675
  /**
7357
7676
  * @descc
7358
7677
  */
7359
- async handleOpen() {
7360
- if (this._list_id !== null) {
7361
- const list = document.getElementById(this._list_id);
7362
- if (list.classList.contains("show") === true) {
7363
- list.hide();
7678
+ async handleOpen(list = "default") {
7679
+ var element = null;
7680
+ var list_id = null;
7681
+ switch (list) {
7682
+ case "default":
7683
+ list_id = this._list_id;
7684
+ break;
7685
+ case "other":
7686
+ list_id = "bcm-clone-list-" + this._internal_id;
7687
+ break;
7688
+ }
7689
+ element = document.getElementById(list_id);
7690
+ if (element != null) {
7691
+ if (element.classList.contains("show") === true) {
7692
+ element.hide();
7364
7693
  }
7365
7694
  else {
7366
- list.show();
7695
+ element.show();
7367
7696
  }
7368
7697
  }
7369
7698
  }
7699
+ /**
7700
+ * @desc
7701
+ */
7702
+ async hide(list = "default") {
7703
+ var element = null;
7704
+ var list_id = null;
7705
+ switch (list) {
7706
+ case "default":
7707
+ list_id = this._list_id;
7708
+ break;
7709
+ case "other":
7710
+ list_id = "bcm-clone-list-" + this._internal_id;
7711
+ break;
7712
+ }
7713
+ element = document.getElementById(list_id);
7714
+ if (element != null) {
7715
+ element.hide();
7716
+ }
7717
+ }
7718
+ /**
7719
+ * @desc
7720
+ */
7721
+ async show(list = "default") {
7722
+ var element = null;
7723
+ var list_id = null;
7724
+ switch (list) {
7725
+ case "default":
7726
+ list_id = this._list_id;
7727
+ break;
7728
+ case "other":
7729
+ list_id = "bcm-clone-list-" + this._internal_id;
7730
+ break;
7731
+ }
7732
+ element = document.getElementById(list_id);
7733
+ if (element != null) {
7734
+ element.show();
7735
+ }
7736
+ }
7737
+ /**
7738
+ * @desc
7739
+ */
7740
+ async toggle(list = "default") {
7741
+ this.handleOpen(list);
7742
+ }
7370
7743
  /**
7371
7744
  * @descc
7372
7745
  */
@@ -7377,6 +7750,26 @@ const BcmListSelect = class {
7377
7750
  * @desc
7378
7751
  */
7379
7752
  async config(_config) {
7753
+ this.selectArea = this.el.shadowRoot.querySelector(".selected-text");
7754
+ this.selectArea.style.width = "100%";
7755
+ this.selectAreaWidth = this.selectArea.clientWidth;
7756
+ this.handleTagControl();
7757
+ this.selectArea.style.width = this.selectAreaWidth - 16 + "px";
7758
+ if (_config['searchPlaceholder']) {
7759
+ this.searchPlaceholder = _config['searchPlaceholder'];
7760
+ }
7761
+ if (_config['searchFields']) {
7762
+ this.searchFields = _config['searchFields'];
7763
+ }
7764
+ if (_config['returnField']) {
7765
+ this.returnField = _config['returnField'];
7766
+ }
7767
+ if (_config['searchSub']) {
7768
+ this.searchSub = _config['searchSub'];
7769
+ }
7770
+ if (_config['searchText']) {
7771
+ this.searchText = _config['searchText'];
7772
+ }
7380
7773
  if (_config['mapping']) {
7381
7774
  if (_config['mapping']['id']) {
7382
7775
  this.objectMapping['id'] = _config['mapping']['id'];
@@ -7395,55 +7788,68 @@ const BcmListSelect = class {
7395
7788
  */
7396
7789
  async setValue(value, _id = "id", _text = "text") {
7397
7790
  var newValue = value;
7398
- // console.log('asd: ', value)
7791
+ // this.searchData = JSON.parse(value as string)
7399
7792
  this.handleLoading(true);
7400
7793
  this.selectData = [];
7401
7794
  this.otherList = [];
7402
7795
  if (typeof value == 'string') {
7403
- this.selectText = String(value);
7404
- this.value = this.selectText;
7796
+ if (this.value !== value) {
7797
+ this.selectText = String(value);
7798
+ this.value = this.selectText;
7799
+ }
7405
7800
  this.handleLoading(false);
7406
7801
  }
7407
7802
  else {
7408
- newValue.forEach(element => {
7409
- element[this.objectMapping['selected']] = true;
7410
- });
7411
- value.forEach(item => {
7412
- // console.log(item[id] + " " + item[text])
7413
- this.selectData.push({ id: item[_id], text: item[_text], selected: true });
7414
- });
7415
- this.otherList = newValue;
7416
- this.value = this.selectData;
7803
+ if (value) {
7804
+ value.forEach(item => {
7805
+ // console.log(item[id] + " " + item[text])
7806
+ this.selectData.push({ id: item[_id], text: item[_text], selected: true });
7807
+ });
7808
+ }
7809
+ if (this.value !== this.selectData) {
7810
+ this.value = this.selectData;
7811
+ if (value) {
7812
+ newValue.forEach(element => {
7813
+ // element[this.objectMapping['id']] = element[this.objectMapping['id']]
7814
+ element[this.objectMapping['selected']] = true;
7815
+ });
7816
+ }
7817
+ this.otherList = newValue;
7818
+ var visibleTags = this.el.shadowRoot.getElementById("visible-tags");
7819
+ if (visibleTags) {
7820
+ visibleTags.innerHTML = " ";
7821
+ const maxTags = Math.ceil((this.selectAreaWidth - 16) / 40);
7822
+ const visibleSelectData = this.selectData.slice(0, maxTags);
7823
+ visibleSelectData.map((item) => {
7824
+ const newTag = document.createElement("span");
7825
+ newTag.setAttribute("id", String(item["id"]));
7826
+ newTag.setAttribute("value", item["text"]);
7827
+ newTag.setAttribute("title", item["text"]);
7828
+ newTag.setAttribute("_internal_id", this._internal_id);
7829
+ // newTag.customStyle = customStyleTag
7830
+ newTag.style.opacity = "0";
7831
+ newTag.style.position = "absolute";
7832
+ newTag.classList.add("tag");
7833
+ newTag.classList.add("dissmisable");
7834
+ newTag.classList.add("size-1");
7835
+ newTag.setAttribute("_internal_id", this._internal_id);
7836
+ newTag.innerHTML = '<span class="value"> ' + item["text"] + ' </span>'
7837
+ + '<span id="close-button" ' + '_internal_id="' + this._internal_id + '" class="right close-button"> '
7838
+ + '<svg class="icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> '
7839
+ + '<g id="icon/outlined/suggested/close">'
7840
+ + '<path id="Vector" d="M18.9275 4.07814L19.9219 5.07251C20.0103 5.1609 20.0103 5.24928 19.9219 5.33767L5.3378 19.9218C5.24941 20.0101 5.16102 20.0101 5.07263 19.9218L4.07826 18.9274C3.98987 18.839 3.98987 18.7506 4.07826 18.6622L18.6623 4.07814C18.7507 3.98975 18.8391 3.98975 18.9275 4.07814Z" fill="black"/>'
7841
+ + '<path id="Vector_2" d="M5.33766 4.07814L19.9217 18.6622C20.0101 18.7506 20.0101 18.839 19.9217 18.9274L18.9274 19.9218C18.839 20.0101 18.7506 20.0101 18.6622 19.9218L4.07813 5.33767C3.98974 5.24928 3.98974 5.1609 4.07813 5.07251L5.0725 4.07814C5.16088 3.98975 5.24927 3.98975 5.33766 4.07814Z" fill="black"/>'
7842
+ + '</g>'
7843
+ + '</svg>'
7844
+ + '</span>';
7845
+ visibleTags.appendChild(newTag);
7846
+ });
7847
+ }
7848
+ }
7417
7849
  // this.selectHiddenData = this.value
7418
7850
  }
7419
7851
  // console.log('this.otherList: ', this.otherList)
7420
- var visibleTags = this.el.shadowRoot.getElementById("visible-tags");
7421
- if (visibleTags) {
7422
- const customStyleTag = {
7423
- "cursor": "pointer",
7424
- "max-width": "164px",
7425
- "text-overflow": "ellipsis",
7426
- "white-space": "nowrap",
7427
- "overflow": "hidden",
7428
- "display": "block"
7429
- };
7430
- visibleTags.innerHTML = " ";
7431
- const maxTags = Math.ceil((this.selectAreaWidth - 16) / 40);
7432
- const visibleSelectData = this.selectData.slice(0, maxTags);
7433
- visibleSelectData.map((item) => {
7434
- const newTag = document.createElement("bcm-tag");
7435
- newTag.setAttribute("id", String(item["id"]));
7436
- newTag.setAttribute("value", item["text"]);
7437
- newTag.setAttribute("title", item["text"]);
7438
- newTag.setAttribute("type", "dissmisable");
7439
- newTag.setAttribute("_internal_id", this._internal_id);
7440
- newTag.customStyle = customStyleTag;
7441
- newTag.style.opacity = "0";
7442
- newTag.style.position = "absolute";
7443
- newTag.classList.add("tag");
7444
- visibleTags.appendChild(newTag);
7445
- });
7446
- }
7852
+ // this.resetCaption()
7447
7853
  return this.value;
7448
7854
  }
7449
7855
  /**
@@ -7476,10 +7882,10 @@ const BcmListSelect = class {
7476
7882
  this.selectHiddenData = [];
7477
7883
  const tagcontainer = this.el.shadowRoot.getElementById("tagcontainer");
7478
7884
  if (tagcontainer) {
7479
- var tags = tagcontainer.querySelectorAll("bcm-tag.tag");
7885
+ var tags = tagcontainer.querySelectorAll(".tag");
7480
7886
  var tagsWidth = 0;
7481
7887
  // var otherStatus = false
7482
- var otherTagWidth = 130 + 2;
7888
+ var otherTagWidth = 135 + 2;
7483
7889
  var padding = 16;
7484
7890
  var visibleTags = [];
7485
7891
  tags.forEach(element => {
@@ -7487,10 +7893,10 @@ const BcmListSelect = class {
7487
7893
  element["style"]["opacity"] = "0";
7488
7894
  element["style"]["position"] = "absolute";
7489
7895
  });
7490
- await utils.delay(100);
7491
7896
  tags.forEach(element => {
7492
- if ((this.selectAreaWidth - padding) > (element.clientWidth + 2 + tagsWidth)) {
7493
- tagsWidth += element.clientWidth + 2;
7897
+ var clientWidth = element.clientWidth <= 200 ? element.clientWidth : 200;
7898
+ if ((this.selectAreaWidth - padding) > (clientWidth + 2 + tagsWidth)) {
7899
+ tagsWidth += clientWidth + 2;
7494
7900
  element["style"]["opacity"] = "1";
7495
7901
  element["style"]["position"] = "relative";
7496
7902
  }
@@ -7503,14 +7909,16 @@ const BcmListSelect = class {
7503
7909
  if ((this.selectAreaWidth - padding) < (calcOther === true ? tagsWidth + otherTagWidth : tagsWidth)) {
7504
7910
  visibleTags = Array.from(tags).filter(e => e["hidden"] === false);
7505
7911
  if (visibleTags[visibleTags.length - 1]) {
7506
- tagsWidth -= visibleTags[visibleTags.length - 1].clientWidth + 2;
7912
+ var clientWidth = visibleTags[visibleTags.length - 1].clientWidth <= 200 ? visibleTags[visibleTags.length - 1].clientWidth : 200;
7913
+ tagsWidth -= clientWidth + 2;
7507
7914
  visibleTags[visibleTags.length - 1]["hidden"] = true;
7508
7915
  removeTag(calcOther);
7509
7916
  }
7510
7917
  }
7511
7918
  };
7512
7919
  removeTag();
7513
- tags = tagcontainer.querySelectorAll("bcm-tag.tag");
7920
+ await utils.delay(100);
7921
+ tags = tagcontainer.querySelectorAll(".tag");
7514
7922
  var hiddenData = Array.from(tags).filter(e => e["hidden"] === true);
7515
7923
  const otherTagcontainer = this.el.shadowRoot.getElementById("other-container");
7516
7924
  if (Number(hiddenData.length) > 0) {
@@ -7542,9 +7950,10 @@ const BcmListSelect = class {
7542
7950
  cloneList.config(JSON.parse(sessionStorage.getItem(this._internal_id + "-config")));
7543
7951
  }
7544
7952
  // console.log('selectHiddenData: ', this.selectHiddenData )
7545
- cloneList.setData(this.selectHiddenData);
7546
- cloneList.show();
7953
+ cloneList.setDataOther(this.selectHiddenData);
7954
+ // cloneList.show()
7547
7955
  }
7956
+ // await delay(100)
7548
7957
  this.handleLoading(false);
7549
7958
  }
7550
7959
  /**
@@ -7559,18 +7968,18 @@ const BcmListSelect = class {
7559
7968
  element = document.createElement("bcm-list");
7560
7969
  var el = document.getElementById(this._list_id);
7561
7970
  for (var i = 0, atts = el.attributes, n = atts.length; i < n; i++) {
7562
- // arr.push(atts[i].nodeName);
7563
- // console.log(atts[i].nodeName)
7564
- // console.log(atts[i].nodeValue)
7565
7971
  element.setAttribute(atts[i].nodeName, atts[i].nodeValue);
7566
7972
  }
7567
7973
  element.setAttribute("id", elementId);
7568
7974
  element.setAttribute("_list_id", this._list_id);
7569
- // element.setAttribute("_list_select_id", this._id)
7975
+ element.setAttribute("_list_select_id", this._id);
7570
7976
  element.setAttribute("_internal_id", otherListInternalId);
7571
7977
  element.searchable = true;
7978
+ element.infoFooter = false;
7572
7979
  element.type = "default";
7980
+ element.processType = "deselect";
7573
7981
  element.setAttribute("linked-component", this._id);
7982
+ element.linkedComponent = this._id;
7574
7983
  element.multiSelect = true;
7575
7984
  const parentNode = this.el.parentNode;
7576
7985
  parentNode.insertBefore(element, this.el);
@@ -7584,15 +7993,70 @@ const BcmListSelect = class {
7584
7993
  /**
7585
7994
  * @descc
7586
7995
  */
7587
- // handleClickTag(){
7588
- // }
7996
+ inputChange(e) {
7997
+ this.search(e);
7998
+ }
7999
+ search(value) {
8000
+ const element = document.getElementById(this._list_id);
8001
+ if (element != null) {
8002
+ element.setSearch(value);
8003
+ }
8004
+ }
8005
+ /**
8006
+ * @desc
8007
+ */
8008
+ async handleClick(event) {
8009
+ var path = event.path || (event.composedPath && event.composedPath());
8010
+ if (path && path.filter((input) => input['_internal_id'] == this._internal_id)[0]) {
8011
+ const cloneElementId = "bcm-clone-list-" + this._internal_id;
8012
+ const cloneElement = document.querySelector("#" + cloneElementId);
8013
+ const element = document.querySelector("#" + this._list_id);
8014
+ if (path.filter((input) => input['id'] == "close-button")[0]
8015
+ && path.filter((input) => input['className'] == "tag dissmisable size-1")[0]
8016
+ && path.filter((input) => input['className'] == "tag dissmisable size-1")[0]["id"]) {
8017
+ event.preventDefault();
8018
+ event.stopPropagation();
8019
+ const selectedID = path.filter((input) => input['className'] == "tag dissmisable size-1")[0]["id"];
8020
+ if (element) {
8021
+ element.unChecked(selectedID);
8022
+ }
8023
+ }
8024
+ if (path.filter((input) => input['id'] == "other-tag")[0]) {
8025
+ event.preventDefault();
8026
+ event.stopPropagation();
8027
+ if (path.filter((input) => input['id'] == "close")[0]) {
8028
+ if (cloneElement) {
8029
+ if (await cloneElement.openStatus() === true) {
8030
+ if (element) {
8031
+ element.show();
8032
+ }
8033
+ }
8034
+ }
8035
+ var selectedIDs = [];
8036
+ this.selectHiddenData.forEach(item => {
8037
+ selectedIDs.push(item[this.objectMapping['id']]);
8038
+ });
8039
+ if (element) {
8040
+ element.unChecked(selectedIDs);
8041
+ }
8042
+ }
8043
+ else {
8044
+ if (cloneElement) {
8045
+ setTimeout(() => {
8046
+ cloneElement.show();
8047
+ }, 100);
8048
+ }
8049
+ }
8050
+ }
8051
+ }
8052
+ }
7589
8053
  render() {
7590
8054
  const { label, fullWidth, required, selectText, selectData, placeholder, clearable, value, isOpen, noCaption, captionType, captionError, caption, size, disabled } = this;
7591
8055
  // const classes = cs(
7592
8056
  // 'card',
7593
8057
  // this.size
7594
8058
  // )
7595
- const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, {
8059
+ const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, 'type-' + this.type, {
7596
8060
  'full-width': fullWidth
7597
8061
  });
7598
8062
  const captionClasses = index$1.classnames('size-1', 'input-caption', 'caption-' + captionType);
@@ -7624,7 +8088,7 @@ const BcmListSelect = class {
7624
8088
  // <slot />
7625
8089
  // </div>
7626
8090
  // </Host>
7627
- index.h(index.Host, { class: hostClasses, onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }, index.h("div", { class: container }, label && index.h("label", { class: "label size-1", onClick: () => this.handleOpen() }, " ", label, " ", required && ('*'), " "), index.h("div", { id: "selected-container", class: selected, onClick: () => this.handleOpen(), tabIndex: -1 }, index.h("span", { class: selectedText, title: selectText !== null && (selectText) }, index.h("div", { class: "spinner first-run" }), (selectText !== null && (index.h("div", { class: "text-content" }, selectText))), (selectText === null && (index.h("span", { id: "tagcontainer", class: "tag-container" }, index.h("span", { id: "visible-tags" }), index.h("span", { id: "other-container" }, index.h("bcm-tag", { _internal_id: this._internal_id, customStyle: customStyleOtherTag, type: "dissmisable", id: "other-tag" }))))), (selectText === null && selectData.length === 0 && placeholder !== null && (index.h("span", { class: "placeholder" }, " ", placeholder, " ")))), index.h("div", { class: "buttons" }, clearable && value && (index.h("button", { class: "select-clear-button", onClick: (e) => this.clickClear(e) }, index.h("bcm-icon", { icon: "close-circle", type: "fill", size: 18, color: "grey-7" }))), index.h("span", { class: isOpen ? 'open' : 'close' }, index.h("bcm-icon", { icon: "caret-up", type: "outlined", size: 18, color: "grey-6" })))), noCaption === false && (index.h("div", { class: "caption-area" }, captionType == "error"
8091
+ index.h(index.Host, { class: hostClasses, onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }, index.h("div", { class: container }, label && index.h("label", { class: "label size-1", onClick: () => this.handleOpen() }, " ", label, " ", required === true && ('*'), " "), index.h("div", { id: "selected-container", class: selected, onClick: () => this.handleOpen(), tabIndex: -1 }, index.h("span", { class: selectedText, title: selectText !== null && (selectText) }, index.h("div", { class: "spinner first-run" }), this.type === 'select' && (selectText !== null && (index.h("div", { class: "text-content" }, selectText))), (this.type === 'select' || this.type === 'autocomplete' && this.multiSelect === true) && (selectText === null && (index.h("span", { id: "tagcontainer", class: "tag-container" }, index.h("span", { id: "visible-tags" }), index.h("span", { id: "other-container" }, index.h("bcm-tag", { _internal_id: this._internal_id, customStyle: customStyleOtherTag, type: "dissmisable", id: "other-tag" }))))), this.type === 'select' && (selectText === null && selectData.length === 0 && placeholder !== null && (index.h("span", { class: "placeholder" }, " ", placeholder, " "))), this.type === 'autocomplete' && (index.h("bcm-input", { "on-bcm-change": e => this.inputChange(e.detail), "full-width": true, placeholder: this.searchPlaceholder, id: "autocomplete", value: this.searchText, "no-caption": true, "no-margin": true, type: "search", clearable: true }))), this.type === 'select' && (index.h("div", { class: "buttons" }, clearable && value && (index.h("button", { class: "select-clear-button", onClick: (e) => this.clickClear(e) }, index.h("bcm-icon", { icon: "close-circle", type: "fill", size: 18, color: "grey-7" }))), index.h("span", { class: isOpen ? 'open' : 'close' }, index.h("bcm-icon", { icon: "caret-up", type: "outlined", size: 18, color: "grey-6" }))))), noCaption === false && (index.h("div", { class: "caption-area" }, captionType == "error"
7628
8092
  ? index.h("span", { class: captionClasses }, " ", captionError, " ")
7629
8093
  : caption && index.h("span", { class: captionClasses }, " ", caption, " "))))));
7630
8094
  }
@@ -7661,7 +8125,7 @@ var OrientationProps;
7661
8125
  OrientationProps["landscape"] = "landscape";
7662
8126
  })(OrientationProps || (OrientationProps = {}));
7663
8127
 
7664
- const modalCss = "@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}:host{display:block}:host(.hidden){display:none}.modal{display:flex;position:fixed;top:0;left:0;opacity:0;justify-content:center;align-items:flex-start;width:100vw;height:100vh;padding:80px 40px 40px;overflow:hidden;overflow-y:auto;background-color:rgba(0, 0, 0, 0.5);box-sizing:border-box;z-index:-1}.modal.show{top:0;opacity:1;z-index:10500}.overlay{position:fixed;width:100vw;height:100vh;z-index:1;top:0;left:0}.card{display:flex;flex-direction:column;width:100%;box-shadow:0px 4px 12px rgba(0, 0, 0, 0.15);border-radius:2px;background-color:#fff;z-index:2}.card.portrait{max-width:312px}.card.landscape{max-width:475px}.card.small{width:576px}.card.medium{width:768px}.card.large{width:992px}.card.x-large{width:1024px}.card.xx-large{width:1200px}.card.xxx-large{width:1700px}.card.full-width{width:100%}.text-content{font-size:14px;line-height:22px;color:var(--bcm-color-grey-8);padding:0}.title{position:relative;display:flex;align-items:center;justify-content:flex-start;padding-right:24px;font-size:16px;line-height:24px;font-weight:500;color:var(--bcm-color-grey-9)}.title bcm-icon{margin-right:8px}p:not(.with-status){margin:0}p.with-status{padding-left:32px}header{position:relative;display:flex;align-items:center;justify-content:space-between;padding:16px 24px;font-size:16px;line-height:24px;font-weight:500;color:var(--bcm-color-grey-9);background-color:var(--bcm-color-grey-2);border-bottom:1px solid var(--bcm-color-grey-5)}header bcm-icon{cursor:pointer}footer{position:relative;display:flex;align-items:flex-start;justify-content:flex-end;padding:10px 16px;border-top:1px solid var(--bcm-color-grey-5);background-color:var(--bcm-color-grey-2)}footer bcm-button+bcm-button{margin-left:8px}.footer{display:flex;align-items:flex-start;justify-content:flex-end}.footer bcm-button+bcm-button{margin-left:8px}";
8128
+ const modalCss = "@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}:host{display:block}:host(.hidden){display:none}.modal{display:flex;position:fixed;top:0;left:0;opacity:0;justify-content:center;align-items:flex-start;height:0;padding:0;margin:0;width:0;overflow:hidden;overflow-y:auto;background-color:rgba(0, 0, 0, 0.5);box-sizing:border-box;z-index:-1}.modal.show{width:100vw;height:100vh;padding:80px 40px 40px;top:0;opacity:1;z-index:10500}.overlay{position:fixed;width:100vw;height:100vh;z-index:1;top:0;left:0}.card{display:flex;flex-direction:column;width:100%;box-shadow:0px 4px 12px rgba(0, 0, 0, 0.15);border-radius:2px;background-color:#fff;z-index:2}.card.portrait{max-width:312px}.card.landscape{max-width:475px}.card.small{width:576px}.card.medium{width:768px}.card.large{width:992px}.card.x-large{width:1024px}.card.xx-large{width:1200px}.card.xxx-large{width:1700px}.card.full-width{width:100%}.text-content{font-size:14px;line-height:22px;color:var(--bcm-color-grey-8);padding:0}.title{position:relative;display:flex;align-items:center;justify-content:flex-start;padding-right:24px;font-size:16px;line-height:24px;font-weight:500;color:var(--bcm-color-grey-9)}.title bcm-icon{margin-right:8px}p:not(.with-status){margin:0}p.with-status{padding-left:32px}header{position:relative;display:flex;align-items:center;justify-content:space-between;padding:16px 24px;font-size:16px;line-height:24px;font-weight:500;color:var(--bcm-color-grey-9);background-color:var(--bcm-color-grey-2);border-bottom:1px solid var(--bcm-color-grey-5)}header bcm-icon{cursor:pointer}footer{position:relative;display:flex;align-items:flex-start;justify-content:flex-end;padding:10px 16px;border-top:1px solid var(--bcm-color-grey-5);background-color:var(--bcm-color-grey-2)}footer bcm-button+bcm-button{margin-left:8px}.footer{display:flex;align-items:flex-start;justify-content:flex-end}.footer bcm-button+bcm-button{margin-left:8px}";
7665
8129
 
7666
8130
  /**
7667
8131
  * @desc
@@ -7816,6 +8280,216 @@ const BcmModal = class {
7816
8280
  };
7817
8281
  BcmModal.style = modalCss;
7818
8282
 
8283
+ /**
8284
+ * 'color' prop predefined values
8285
+ */
8286
+ var ColorProps;
8287
+ (function (ColorProps) {
8288
+ ColorProps["black"] = "black";
8289
+ ColorProps["white"] = "white";
8290
+ ColorProps["prime-blue"] = "prime-blue";
8291
+ ColorProps["grey"] = "grey";
8292
+ ColorProps["blue"] = "blue";
8293
+ ColorProps["warmyellow"] = "warmyellow";
8294
+ ColorProps["yellow"] = "yellow";
8295
+ ColorProps["limegreen"] = "limegreen";
8296
+ ColorProps["red"] = "red";
8297
+ ColorProps["darkorange"] = "darkorange";
8298
+ ColorProps["orange"] = "orange";
8299
+ ColorProps["green"] = "green";
8300
+ ColorProps["turquosie"] = "turquosie";
8301
+ ColorProps["cobaltblue"] = "cobaltblue";
8302
+ ColorProps["magenta"] = "magenta";
8303
+ ColorProps["purple"] = "purple";
8304
+ ColorProps["bc-red"] = "bc-red";
8305
+ ColorProps["bc-blue"] = "bc-blue";
8306
+ ColorProps["bc-green"] = "bc-green";
8307
+ ColorProps["bc-orange"] = "bc-orange";
8308
+ })(ColorProps || (ColorProps = {}));
8309
+
8310
+ const radioCss = "@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}:host{display:inline-block}:host(.hidden){display:none}input[type=radio]{position:absolute;width:0;height:0;opacity:0}label{user-select:none;display:inline-flex;align-items:center;color:var(--bcm-color-grey-8);cursor:pointer}.radio-container .radio{width:16px;height:16px;min-width:16px;min-height:16px;border:1px solid var(--bcm-color-grey-5);border-radius:100%;background-color:var(--bcm-color-grey-1);box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;transition-duration:0.3s;margin-right:8px}.radio-container .radio .inner{width:8px;height:8px;border-radius:100%;background-color:var(--bcm-color-grey-1)}.radio-container:hover:not(.disabled) .radio{border-color:var(--bcm-color-prime-blue-6);filter:drop-shadow(0px 2px 4px rgba(54, 121, 171, 0.5))}.radio-container.disabled{color:var(--bcm-color-grey-6);cursor:not-allowed}.radio-container.disabled .radio{border-color:var(--bcm-color-grey-5)}.radio-container.checked .radio{border-color:var(--bcm-color-prime-blue-6)}.radio-container.checked .inner{background-color:var(--bcm-color-prime-blue-6)}.radio-container.checked.disabled .radio{background-color:var(--bcm-color-grey-3);border-color:var(--bcm-color-grey-5)}.radio-container.checked.disabled .inner{background-color:var(--bcm-color-grey-6)}.radio-button{background-color:var(--bcm-color-grey-1);color:var(--bcm-color-grey-8);border:1px solid var(--bcm-color-grey-5);padding:0 16px;box-sizing:border-box}.radio-button:hover:not(.disabled){color:var(--bcm-color-prime-blue-5)}.radio-button:active:not(.disabled){color:var(--bcm-color-prime-blue-7)}.radio-button.disabled{background-color:var(--bcm-color-grey-3);color:var(--bcm-color-grey-6);cursor:not-allowed}.radio-button.checked.disabled{background-color:var(--bcm-color-grey-4);color:var(--bcm-color-grey-1);border-color:var(--bcm-color-grey-5)}.radio-button.checked.solid{color:var(--bcm-color-grey-1);background-color:var(--bcm-color-prime-blue-6);border-color:var(--bcm-color-prime-blue-6)}.radio-button.checked.solid:hover{background-color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}.radio-button.checked.solid:active{background-color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}.radio-button.checked.outline{background-color:var(--bcm-color-grey-1);color:var(--bcm-color-prime-blue-6);border-color:var(--bcm-color-prime-blue-6)}.radio-button.checked.outline:hover{color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}.radio-button.checked.outline:active{color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}.radio-button.large{height:40px}.radio-button.medium{height:32px}.radio-button.small{height:24px}";
8311
+
8312
+ const BcmRadio = class {
8313
+ constructor(hostRef) {
8314
+ index.registerInstance(this, hostRef);
8315
+ this.change = index.createEvent(this, "bcm-change", 3);
8316
+ this.focus = index.createEvent(this, "bcm-focus", 3);
8317
+ this.blur = index.createEvent(this, "bcm-blur", 3);
8318
+ this.optionType = 'default';
8319
+ this.buttonStyle = 'solid';
8320
+ this.size = 'medium';
8321
+ this.hidden = false;
8322
+ this.required = false;
8323
+ }
8324
+ handleFocus() {
8325
+ this.focus.emit();
8326
+ }
8327
+ handleBlur() {
8328
+ this.blur.emit();
8329
+ }
8330
+ /**
8331
+ * @desc
8332
+ * @param name -
8333
+ * @returns {void}
8334
+ */
8335
+ async check(uncheck) {
8336
+ this.radio.checked = uncheck;
8337
+ this.handleChange();
8338
+ }
8339
+ handleChange() {
8340
+ this.checked = this.radio.checked;
8341
+ this.change.emit({
8342
+ value: this.radio.value,
8343
+ checked: this.radio.checked
8344
+ });
8345
+ }
8346
+ connectedCallback() {
8347
+ this.handleChange = this.handleChange.bind(this);
8348
+ this.handleFocus = this.handleFocus.bind(this);
8349
+ this.handleBlur = this.handleBlur.bind(this);
8350
+ }
8351
+ getColor(color) {
8352
+ if (this.color !== 'default' && this.optionType == 'button' && this.checked)
8353
+ return {
8354
+ // color: extractColor(ColorPalette, ColorProps[color] + '-6'),
8355
+ borderColor: utils.extractColor(colors.ColorPalette, ColorProps[color] + '-5'),
8356
+ backgroundColor: utils.extractColor(colors.ColorPalette, ColorProps[color] + '-5')
8357
+ };
8358
+ }
8359
+ render() {
8360
+ const { checked, value, disabled, optionType, buttonStyle, size } = this;
8361
+ const defaultClasses = index$1.classnames('radio-container', 'size-2', {
8362
+ 'checked': checked,
8363
+ 'disabled': disabled
8364
+ });
8365
+ const buttonClasses = index$1.classnames('radio-button', buttonStyle, size, {
8366
+ 'size-2': size === 'small' || size === 'medium',
8367
+ 'size-3': size === 'large',
8368
+ 'checked': checked,
8369
+ 'disabled': disabled,
8370
+ });
8371
+ const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
8372
+ return (index.h(index.Host, { class: hostClasses, onFocus: this.handleFocus, onBlur: this.handleBlur }, index.h("label", { class: optionType == 'default' ? defaultClasses : buttonClasses, style: this.getColor(this.color) }, index.h("input", { type: "radio", value: value, checked: checked, ref: el => (this.radio = el), onChange: this.handleChange, disabled: disabled }), optionType === 'default' && (index.h("span", { class: "radio" }, index.h("span", { class: "inner" }))), index.h("slot", null))));
8373
+ }
8374
+ };
8375
+ BcmRadio.style = radioCss;
8376
+
8377
+ const groupCss = "@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}:host{display:block;margin:0 0 8px 0}:host(.hidden){display:none}:host(.error) label{color:var(--bcm-color-red-6) !important}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}.radio-group{display:flex}.radio-group.horizontal{flex-direction:row;margin-bottom:5px}.radio-group.horizontal ::slotted(bcm-radio:not(:last-of-type)){margin-right:16px}.radio-group.horizontal bcm-radio:not(:last-of-type){margin-right:16px}.radio-group.vertical{flex-direction:column}.radio-group.vertical label{margin-bottom:4px}.radio-group.vertical ::slotted(bcm-radio:not(:last-of-type)){margin-bottom:8px}.radio-group.vertical bcm-radio:not(:last-of-type){margin-bottom:8px}.label{display:flex;flex-direction:column;color:var(--bcm-color-grey-9);padding-right:4px;margin-right:8px;margin-bottom:8px}.caption-area{min-height:20px}.input-caption{display:block}";
8378
+
8379
+ const BcmRadioGroup = class {
8380
+ constructor(hostRef) {
8381
+ index.registerInstance(this, hostRef);
8382
+ this.change = index.createEvent(this, "bcm-change", 7);
8383
+ this.childRadios = [];
8384
+ this.direction = 'horizontal';
8385
+ this.optionType = 'default';
8386
+ this.buttonStyle = 'solid';
8387
+ this.size = 'medium';
8388
+ this.disabled = false;
8389
+ this.hidden = false;
8390
+ this.label = null;
8391
+ this.required = false;
8392
+ this.noCaption = false;
8393
+ this.captionType = 'default';
8394
+ this.radioOptions = [];
8395
+ this.usingSlots = true;
8396
+ }
8397
+ async setData(_data) {
8398
+ setTimeout(() => {
8399
+ this.options = _data;
8400
+ }, 100);
8401
+ return Promise.resolve(true);
8402
+ }
8403
+ async getValue() {
8404
+ return this.value;
8405
+ }
8406
+ async check(value) {
8407
+ this.defaultValue = value;
8408
+ this.value = value;
8409
+ }
8410
+ async setClear() {
8411
+ this.value = '';
8412
+ }
8413
+ async resetCaption() {
8414
+ this.caption = this.captionCache;
8415
+ this.captionType = this.captionTypeCache;
8416
+ this.captionError = null;
8417
+ }
8418
+ parseOptions(newValue) {
8419
+ if (newValue) {
8420
+ typeof newValue === 'string'
8421
+ ? this.radioOptions = JSON.parse(newValue)
8422
+ : this.radioOptions = newValue;
8423
+ if (this.radioOptions.length > 0)
8424
+ this.usingSlots = false;
8425
+ }
8426
+ }
8427
+ // If checked radio changes, emits change event
8428
+ handleChange(newValue) {
8429
+ this.change.emit(newValue);
8430
+ }
8431
+ // Controls radios styles and states
8432
+ controlRadio(elements) {
8433
+ elements.forEach((radio) => {
8434
+ radio.checked = this.value ? radio.value === this.value : this.defaultValue ? radio.value === this.defaultValue : null;
8435
+ radio.disabled = this.disabled;
8436
+ radio.optionType = this.optionType;
8437
+ radio.buttonStyle = this.buttonStyle;
8438
+ radio.size = this.size;
8439
+ radio.addEventListener('bcm-change', (e) => {
8440
+ e.stopPropagation();
8441
+ if (e.detail.checked) {
8442
+ this.value = radio.value;
8443
+ }
8444
+ }, { once: true });
8445
+ });
8446
+ }
8447
+ connectedCallback() {
8448
+ this.captionCache = this.caption;
8449
+ this.captionTypeCache = this.captionType;
8450
+ }
8451
+ componentWillLoad() {
8452
+ this.parseOptions(this.options);
8453
+ }
8454
+ componentDidRender() {
8455
+ let elements = [];
8456
+ if (this.usingSlots) {
8457
+ elements = this.host.shadowRoot.querySelector('slot').assignedElements();
8458
+ this.childRadios = [];
8459
+ elements.map(el => {
8460
+ String(el.tagName).toLowerCase() == 'bcm-radio' && this.childRadios.push(el);
8461
+ });
8462
+ this.controlRadio(this.childRadios);
8463
+ }
8464
+ else {
8465
+ elements = Array.from(this.host.shadowRoot.querySelectorAll('bcm-radio'));
8466
+ this.controlRadio(elements);
8467
+ }
8468
+ }
8469
+ render() {
8470
+ const { label, required, noCaption, caption, captionError, captionType } = this;
8471
+ const classes = index$1.classnames('radio-group', {
8472
+ [this.direction]: this.optionType === 'default'
8473
+ });
8474
+ const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, {
8475
+ 'error': captionType == 'error' ? true : false
8476
+ });
8477
+ const captionClasses = index$1.classnames('size-1', 'input-caption', 'caption-' + captionType);
8478
+ if (this.radioOptions) {
8479
+ return (index.h(index.Host, { class: hostClasses }, label && index.h("label", { class: "label size-1" }, " ", label, " ", required && ('*'), " "), index.h("div", { class: classes }, this.radioOptions && this.radioOptions.map(radio => (index.h("bcm-radio", { value: radio.value, disabled: radio.disabled, checked: radio.checked }, " ", radio.label, " "))), index.h("slot", null)), !noCaption && (index.h("div", { class: "caption-area" }, captionType == "error"
8480
+ ? index.h("span", { class: captionClasses }, " ", captionError, " ")
8481
+ : caption && index.h("span", { class: captionClasses }, " ", caption, " ")))));
8482
+ }
8483
+ return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: classes }, index.h("slot", null))));
8484
+ }
8485
+ get host() { return index.getElement(this); }
8486
+ static get watchers() { return {
8487
+ "options": ["parseOptions"],
8488
+ "value": ["handleChange"]
8489
+ }; }
8490
+ };
8491
+ BcmRadioGroup.style = groupCss;
8492
+
7819
8493
  const searchCss = "@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}:host{display:block}:host(.hidden){display:none}";
7820
8494
 
7821
8495
  const lowercase$4 = (str) => str.toLowerCase();
@@ -8494,7 +9168,7 @@ BcmTabsContent.style = tabsContentCss;
8494
9168
  /**
8495
9169
  * 'color' prop predefined values
8496
9170
  */
8497
- var ColorProps;
9171
+ var ColorProps$1;
8498
9172
  (function (ColorProps) {
8499
9173
  ColorProps["black"] = "black";
8500
9174
  ColorProps["white"] = "white";
@@ -8516,7 +9190,7 @@ var ColorProps;
8516
9190
  ColorProps["bc-blue"] = "bc-blue";
8517
9191
  ColorProps["bc-green"] = "bc-green";
8518
9192
  ColorProps["bc-orange"] = "bc-orange";
8519
- })(ColorProps || (ColorProps = {}));
9193
+ })(ColorProps$1 || (ColorProps$1 = {}));
8520
9194
 
8521
9195
  const tagCss = "@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}.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}:host{display:inline-block;width:fit-content}:host(.hidden){display:none}:host(.maxwidth){max-width:100px}.tag{display:flex;align-items:center;justify-content:center;padding:0 8px;cursor:default;border-radius:48px;border:1px solid var(--bcm-color-grey-5);user-select:none;min-width:10px;min-height:20px}.tag.size-1{padding:calc(8px - 8px) 8px}.tag.size-2{padding:calc(9px - 8px) 9px}.tag.size-3{padding:calc(10px - 8px) 10px}.tag.size-4{padding:calc(11px - 8px) 11px}.tag.size-5{padding:calc(12px - 8px) 12px}.tag.size-6{padding:calc(13px - 8px) 13px}.tag.size-7{padding:calc(14px - 8px) 14px}.tag.size-8{padding:calc(15px - 8px) 15px}.tag.size-9{padding:calc(16px - 8px) 16px}.tag.basic,.tag.closeable,.tag.add,.tag.dissmisable{background-color:var(--bcm-color-grey-3);color:var(--bcm-color-grey-8)}.tag.basic:hover,.tag.closeable:hover,.tag.add:hover,.tag.dissmisable:hover{opacity:0.85}.tag.dissmisable{color:var(--bcm-color-grey-10)}.tag.dissmisable .close-button{width:14px;cursor:pointer}.tag.dissmisable .close-button bcm-icon{color:var(--bcm-color-grey-7)}.tag.dissmisable .close-button:hover bcm-icon{color:var(--bcm-color-grey-10)}.tag.add{border-style:dashed;background-color:var(--bcm-color-grey-1)}.tag.checkable{background-color:var(--bcm-color-grey-1);color:var(--bcm-color-grey-8);border-color:var(--bcm-color-grey-1)}.tag.checkable:hover{color:var(--bcm-color-prime-blue-5);cursor:pointer}.tag span{display:inline-flex}.tag span.left{margin-right:4px}.tag span.right{margin-left:4px}.tag:before,.tag:after{content:\"\"}button{border:none;outline:0;cursor:pointer !important;margin:0}input[type=checkbox]{margin:0;width:0;height:0;visibility:hidden;position:absolute}input[type=checkbox]:checked+label{background-color:var(--bcm-color-prime-blue-6);color:var(--bcm-color-grey-1);border-color:var(--bcm-color-prime-blue-6)}input[type=checkbox]:checked+label:hover{background-color:var(--bcm-color-prime-blue-5);border-color:var(--bcm-color-prime-blue-5)}input[type=checkbox]:checked+label:active{background-color:var(--bcm-color-prime-blue-7);border-color:var(--bcm-color-prime-blue-7)}";
8522
9196
 
@@ -8543,11 +9217,11 @@ const BcmTag = class {
8543
9217
  this.checkedChange.emit({ newValue, oldValue });
8544
9218
  }
8545
9219
  getColor(color) {
8546
- if ((this.type == 'basic' || this.type == 'dissmisable') && ColorProps[color])
9220
+ if ((this.type == 'basic' || this.type == 'dissmisable') && ColorProps$1[color])
8547
9221
  return {
8548
- color: utils.extractColor(colors.ColorPalette, ColorProps[color] + '-6'),
8549
- borderColor: utils.extractColor(colors.ColorPalette, ColorProps[color] + '-3'),
8550
- backgroundColor: utils.extractColor(colors.ColorPalette, ColorProps[color] + '-1')
9222
+ color: utils.extractColor(colors.ColorPalette, ColorProps$1[color] + '-6'),
9223
+ borderColor: utils.extractColor(colors.ColorPalette, ColorProps$1[color] + '-3'),
9224
+ backgroundColor: utils.extractColor(colors.ColorPalette, ColorProps$1[color] + '-1')
8551
9225
  };
8552
9226
  }
8553
9227
  getSize(size, returnNumber = false) {
@@ -8617,6 +9291,8 @@ exports.bcm_list = BcmList;
8617
9291
  exports.bcm_list_item = BcmListItem;
8618
9292
  exports.bcm_list_select = BcmListSelect;
8619
9293
  exports.bcm_modal = BcmModal;
9294
+ exports.bcm_radio = BcmRadio;
9295
+ exports.bcm_radio_group = BcmRadioGroup;
8620
9296
  exports.bcm_search = BcmSearch;
8621
9297
  exports.bcm_tab = BcmTab;
8622
9298
  exports.bcm_tab_pane = BcmTabPane;