bromcom-ui 2.3.54 → 2.3.58

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 (212) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +0 -0
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/index.esm.js +0 -0
  4. package/dist/bromcom-ui/p-12493dbc.entry.js +1 -0
  5. package/dist/bromcom-ui/{p-a18a0cc4.entry.js → p-13d038f5.entry.js} +1 -1
  6. package/dist/bromcom-ui/p-1429a2b4.js +1 -0
  7. package/dist/bromcom-ui/{p-4b7f14ed.entry.js → p-20d03fa1.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-774ff4d9.entry.js → p-30c1cd7f.entry.js} +1 -1
  9. package/dist/bromcom-ui/p-37750343.entry.js +1 -0
  10. package/dist/bromcom-ui/p-3f797656.entry.js +1 -0
  11. package/dist/bromcom-ui/{p-4396ee3b.entry.js → p-4092f5f1.entry.js} +1 -1
  12. package/dist/bromcom-ui/p-4a41ef80.entry.js +1 -0
  13. package/dist/bromcom-ui/p-4cb268d2.js +1 -0
  14. package/dist/bromcom-ui/p-53e9b679.entry.js +1 -0
  15. package/dist/bromcom-ui/{p-09753e05.js → p-554d326a.js} +1 -1
  16. package/dist/bromcom-ui/p-68ff64de.js +1 -0
  17. package/dist/bromcom-ui/p-7238d22f.entry.js +1 -0
  18. package/dist/bromcom-ui/p-7f1cd976.entry.js +1 -0
  19. package/dist/bromcom-ui/p-811c24d7.entry.js +1 -0
  20. package/dist/bromcom-ui/p-8851e01e.entry.js +1 -0
  21. package/dist/bromcom-ui/{p-1a2724a0.entry.js → p-92e3e240.entry.js} +1 -1
  22. package/dist/bromcom-ui/p-9ffff762.entry.js +1 -0
  23. package/dist/bromcom-ui/p-a6ef098a.entry.js +1 -0
  24. package/dist/bromcom-ui/p-af7e4741.entry.js +1 -0
  25. package/dist/bromcom-ui/{p-0d336381.entry.js → p-afb68492.entry.js} +1 -1
  26. package/dist/bromcom-ui/p-bbf99620.entry.js +1 -0
  27. package/dist/bromcom-ui/p-bc50aa86.entry.js +1 -0
  28. package/dist/bromcom-ui/p-e21a8f2d.entry.js +1 -0
  29. package/dist/bromcom-ui/p-e450ebda.entry.js +1 -0
  30. package/dist/bromcom-ui/p-e8307da9.entry.js +1 -0
  31. package/dist/bromcom-ui/{p-26b3d5d0.entry.js → p-e8771d32.entry.js} +1 -1
  32. package/dist/bromcom-ui/p-f067821e.entry.js +1 -0
  33. package/dist/bromcom-ui/p-f12743d8.entry.js +1 -0
  34. package/dist/bromcom-ui/p-ff5e57d3.entry.js +1 -0
  35. package/dist/cjs/bcm-alert.cjs.entry.js +7 -26
  36. package/dist/cjs/bcm-badge.cjs.entry.js +50 -0
  37. package/dist/cjs/{bcm-badge_20.cjs.entry.js → bcm-button_11.cjs.entry.js} +1209 -2835
  38. package/dist/cjs/bcm-checkbox-lite_4.cjs.entry.js +291 -0
  39. package/dist/cjs/bcm-colorpicker.cjs.entry.js +3 -3
  40. package/dist/cjs/{bcm-datetime-picker_2.cjs.entry.js → bcm-datetime-picker.cjs.entry.js} +3 -137
  41. package/dist/cjs/bcm-dropdown.cjs.entry.js +1 -1
  42. package/dist/cjs/bcm-list-item_2.cjs.entry.js +197 -0
  43. package/dist/cjs/bcm-list-select.cjs.entry.js +658 -0
  44. package/dist/cjs/bcm-list.cjs.entry.js +1204 -0
  45. package/dist/cjs/{bcm-empty_6.cjs.entry.js → bcm-listbox_5.cjs.entry.js} +10 -77
  46. package/dist/cjs/bcm-modal.cjs.entry.js +197 -0
  47. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +1 -1
  48. package/dist/cjs/bcm-popconfirm.cjs.entry.js +2 -2
  49. package/dist/cjs/bcm-popover-box.cjs.entry.js +1 -1
  50. package/dist/cjs/bcm-popover.cjs.entry.js +2 -2
  51. package/dist/cjs/bcm-pulldown-group_2.cjs.entry.js +1 -1
  52. package/dist/cjs/bcm-pulldown.cjs.entry.js +1 -1
  53. package/dist/cjs/bcm-radio-group.cjs.entry.js +124 -0
  54. package/dist/cjs/bcm-radio.cjs.entry.js +104 -0
  55. package/dist/cjs/bcm-select.cjs.entry.js +68 -8
  56. package/dist/cjs/bcm-tab-pane.cjs.entry.js +51 -0
  57. package/dist/cjs/bcm-tab.cjs.entry.js +72 -0
  58. package/dist/cjs/bcm-tabs-content.cjs.entry.js +43 -0
  59. package/dist/cjs/bcm-tabs.cjs.entry.js +361 -0
  60. package/dist/cjs/bcm-text.cjs.entry.js +28 -0
  61. package/dist/cjs/bcm-upload.cjs.entry.js +1 -1
  62. package/dist/cjs/bromcom-ui.cjs.js +1 -1
  63. package/dist/cjs/{element-dragger-36fcb296.js → element-dragger-4a91c708.js} +1 -1
  64. package/dist/cjs/loader.cjs.js +1 -1
  65. package/dist/cjs/types-37c8ced6.js +16 -0
  66. package/dist/cjs/types-f53bc841.js +19 -0
  67. package/dist/cjs/{utils-43fda566.js → utils-60414768.js} +25 -0
  68. package/dist/collection/collection-manifest.json +1 -0
  69. package/dist/collection/components/atoms/label/label.css +70 -0
  70. package/dist/collection/components/atoms/label/label.js +203 -0
  71. package/dist/collection/components/molecules/checkbox/group.js +19 -6
  72. package/dist/collection/components/molecules/input/input.js +39 -7
  73. package/dist/collection/components/molecules/list/list-item.css +1 -0
  74. package/dist/collection/components/molecules/list/list-select.css +10 -5
  75. package/dist/collection/components/molecules/list/list-select.js +232 -34
  76. package/dist/collection/components/molecules/list/list.css +24 -2
  77. package/dist/collection/components/molecules/list/list.js +391 -119
  78. package/dist/collection/components/molecules/popconfirm/popconfirm-box.css +1 -0
  79. package/dist/collection/components/molecules/popconfirm/popconfirm.css +1 -0
  80. package/dist/collection/components/molecules/popover/popover-box.css +1 -0
  81. package/dist/collection/components/molecules/popover/popover.css +1 -0
  82. package/dist/collection/components/molecules/radio/group.js +19 -6
  83. package/dist/collection/components/molecules/search/search.js +2 -2
  84. package/dist/collection/components/molecules/select/select.js +85 -12
  85. package/dist/collection/components/molecules/switch/switch.css +0 -1
  86. package/dist/collection/components/molecules/switch/switch.js +20 -7
  87. package/dist/collection/components/molecules/textarea/textarea.css +4 -1
  88. package/dist/collection/components/molecules/textarea/textarea.js +33 -17
  89. package/dist/collection/components/molecules/tooltip/tooltip-box.css +1 -0
  90. package/dist/collection/components/molecules/tooltip/tooltip.css +1 -0
  91. package/dist/collection/components/organism/colorpicker/colorpicker.js +19 -6
  92. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +1 -1
  93. package/dist/collection/components/organism/form/form.js +5 -4
  94. package/dist/collection/components/organism/listbox/listbox.js +27 -17
  95. package/dist/collection/helper/color-helper.js +33 -0
  96. package/dist/collection/helper/generate.js +47 -0
  97. package/dist/collection/helper/number-helper.js +10 -0
  98. package/dist/collection/helper/string-helper.js +21 -0
  99. package/dist/collection/helper/validators.js +21 -0
  100. package/dist/collection/models/bcm-types.js +1 -0
  101. package/dist/collection/models/bcm.js +451 -0
  102. package/dist/collection/templates/caption-template.js +22 -0
  103. package/dist/collection/templates/label-template.js +16 -0
  104. package/dist/collection/templates/slot-template.js +6 -0
  105. package/dist/collection/utils/utils.js +24 -0
  106. package/dist/esm/bcm-alert.entry.js +1 -20
  107. package/dist/esm/bcm-badge.entry.js +46 -0
  108. package/dist/esm/{bcm-badge_20.entry.js → bcm-button_11.entry.js} +1204 -2821
  109. package/dist/esm/bcm-checkbox-lite_4.entry.js +284 -0
  110. package/dist/esm/bcm-colorpicker.entry.js +3 -3
  111. package/dist/esm/{bcm-datetime-picker_2.entry.js → bcm-datetime-picker.entry.js} +4 -137
  112. package/dist/esm/bcm-dropdown.entry.js +1 -1
  113. package/dist/esm/bcm-list-item_2.entry.js +192 -0
  114. package/dist/esm/bcm-list-select.entry.js +654 -0
  115. package/dist/esm/bcm-list.entry.js +1200 -0
  116. package/dist/esm/{bcm-empty_6.entry.js → bcm-listbox_5.entry.js} +12 -78
  117. package/dist/esm/bcm-modal.entry.js +193 -0
  118. package/dist/esm/bcm-popconfirm-box.entry.js +1 -1
  119. package/dist/esm/bcm-popconfirm.entry.js +2 -2
  120. package/dist/esm/bcm-popover-box.entry.js +1 -1
  121. package/dist/esm/bcm-popover.entry.js +2 -2
  122. package/dist/esm/bcm-pulldown-group_2.entry.js +1 -1
  123. package/dist/esm/bcm-pulldown.entry.js +1 -1
  124. package/dist/esm/bcm-radio-group.entry.js +120 -0
  125. package/dist/esm/bcm-radio.entry.js +100 -0
  126. package/dist/esm/bcm-select.entry.js +68 -8
  127. package/dist/esm/bcm-tab-pane.entry.js +47 -0
  128. package/dist/esm/bcm-tab.entry.js +68 -0
  129. package/dist/esm/bcm-tabs-content.entry.js +39 -0
  130. package/dist/esm/bcm-tabs.entry.js +357 -0
  131. package/dist/esm/bcm-text.entry.js +24 -0
  132. package/dist/esm/bcm-upload.entry.js +1 -1
  133. package/dist/esm/bromcom-ui.js +1 -1
  134. package/dist/esm/{element-dragger-03ac2a5e.js → element-dragger-97a8f373.js} +1 -1
  135. package/dist/esm/loader.js +1 -1
  136. package/dist/esm/polyfills/css-shim.js +0 -0
  137. package/dist/esm/types-4b11eac9.js +28 -0
  138. package/dist/esm/types-911a8837.js +21 -0
  139. package/dist/esm/{utils-b7fba7c4.js → utils-de9aee67.js} +25 -1
  140. package/dist/types/assets/icons/index.d.ts +0 -0
  141. package/dist/types/assets/icons/index.example.d.ts +0 -0
  142. package/dist/types/components/atoms/avatar/avatar.d.ts +0 -0
  143. package/dist/types/components/atoms/badge/badge.d.ts +0 -0
  144. package/dist/types/components/atoms/button/button.d.ts +0 -0
  145. package/dist/types/components/atoms/divider/divider.d.ts +0 -0
  146. package/dist/types/components/atoms/icon/icon.d.ts +0 -0
  147. package/dist/types/components/atoms/icon/types.d.ts +0 -0
  148. package/dist/types/components/atoms/label/label.d.ts +16 -0
  149. package/dist/types/components/atoms/tag/tag.d.ts +0 -0
  150. package/dist/types/components/atoms/text/text.d.ts +0 -0
  151. package/dist/types/components/molecules/card/card-footer.d.ts +0 -0
  152. package/dist/types/components/molecules/card/card-header.d.ts +0 -0
  153. package/dist/types/components/molecules/card/card.d.ts +0 -0
  154. package/dist/types/components/molecules/checkbox/checkbox.d.ts +0 -0
  155. package/dist/types/components/molecules/checkbox/group.d.ts +1 -0
  156. package/dist/types/components/molecules/input/input.d.ts +2 -0
  157. package/dist/types/components/molecules/list/list-select.d.ts +24 -4
  158. package/dist/types/components/molecules/list/list.d.ts +13 -3
  159. package/dist/types/components/molecules/radio/group.d.ts +1 -0
  160. package/dist/types/components/molecules/radio/radio.d.ts +0 -0
  161. package/dist/types/components/molecules/select/group.d.ts +0 -0
  162. package/dist/types/components/molecules/select/option.d.ts +0 -0
  163. package/dist/types/components/molecules/select/select.d.ts +1 -0
  164. package/dist/types/components/molecules/switch/switch.d.ts +1 -0
  165. package/dist/types/components/molecules/textarea/textarea.d.ts +3 -2
  166. package/dist/types/components/organism/colorpicker/colorpicker.d.ts +1 -0
  167. package/dist/types/components/organism/listbox/listbox.d.ts +1 -0
  168. package/dist/types/components.d.ts +95 -12
  169. package/dist/types/global/variables/colors.d.ts +0 -0
  170. package/dist/types/helper/color-helper.d.ts +9 -0
  171. package/dist/types/helper/generate.d.ts +10 -0
  172. package/dist/types/helper/number-helper.d.ts +9 -0
  173. package/dist/types/helper/string-helper.d.ts +20 -0
  174. package/dist/types/helper/validators.d.ts +8 -0
  175. package/dist/types/index.d.ts +0 -0
  176. package/dist/types/models/bcm-types.d.ts +19 -0
  177. package/dist/types/models/bcm.d.ts +447 -0
  178. package/dist/types/stencil-public-runtime.d.ts +0 -0
  179. package/dist/types/templates/caption-template.d.ts +12 -0
  180. package/dist/types/templates/label-template.d.ts +12 -0
  181. package/dist/types/templates/slot-template.d.ts +8 -0
  182. package/dist/types/utils/utils.d.ts +1 -0
  183. package/loader/cdn.js +0 -0
  184. package/loader/index.cjs.js +0 -0
  185. package/loader/index.d.ts +0 -0
  186. package/loader/index.es2017.js +0 -0
  187. package/loader/index.js +0 -0
  188. package/loader/package.json +0 -0
  189. package/package.json +1 -1
  190. package/dist/bromcom-ui/p-013b6f5d.entry.js +0 -1
  191. package/dist/bromcom-ui/p-0532e299.entry.js +0 -1
  192. package/dist/bromcom-ui/p-0aa53bdb.entry.js +0 -1
  193. package/dist/bromcom-ui/p-2c1ee381.entry.js +0 -1
  194. package/dist/bromcom-ui/p-607bc9b3.entry.js +0 -1
  195. package/dist/bromcom-ui/p-6355c903.entry.js +0 -1
  196. package/dist/bromcom-ui/p-6bd805f1.entry.js +0 -1
  197. package/dist/bromcom-ui/p-77a480ff.entry.js +0 -1
  198. package/dist/bromcom-ui/p-a88256f2.entry.js +0 -1
  199. package/dist/bromcom-ui/p-b92324e7.js +0 -1
  200. package/dist/bromcom-ui/p-ba219861.entry.js +0 -1
  201. package/dist/bromcom-ui/p-cdfd9ba0.entry.js +0 -1
  202. package/dist/bromcom-ui/p-cf6b0656.entry.js +0 -1
  203. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +0 -273
  204. package/dist/cjs/bcm-checkbox.cjs.entry.js +0 -143
  205. package/dist/cjs/bcm-switch.cjs.entry.js +0 -86
  206. package/dist/cjs/bcm-textarea.cjs.entry.js +0 -136
  207. package/dist/cjs/bcm-tooltip-box.cjs.entry.js +0 -36
  208. package/dist/esm/bcm-checkbox-group.entry.js +0 -269
  209. package/dist/esm/bcm-checkbox.entry.js +0 -139
  210. package/dist/esm/bcm-switch.entry.js +0 -82
  211. package/dist/esm/bcm-textarea.entry.js +0 -132
  212. package/dist/esm/bcm-tooltip-box.entry.js +0 -32
@@ -1,69 +1,6 @@
1
- import { r as registerInstance, h, a as getAssetPath, H as Host, g as getElement, c as createEvent } from './index-8fe7aea4.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-8fe7aea4.js';
2
2
  import { c as classnames } from './index-e58a2d48.js';
3
- import { g as getChilds, d as delay } from './utils-b7fba7c4.js';
4
-
5
- /**
6
- * 'image' prop predefined values
7
- */
8
- var ImageProps;
9
- (function (ImageProps) {
10
- ImageProps["default"] = "default.svg";
11
- ImageProps["simple"] = "simple.svg";
12
- })(ImageProps || (ImageProps = {}));
13
- /**
14
- * 'size' prop predefined values
15
- */
16
- var SizeProps;
17
- (function (SizeProps) {
18
- SizeProps["small"] = "small";
19
- SizeProps["medium"] = "medium";
20
- SizeProps["big"] = "big";
21
- })(SizeProps || (SizeProps = {}));
22
-
23
- const emptyCss = "@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}.empty.small{max-width:100px}.empty.medium{max-width:140px}.empty.big{max-width:200px}.text{font-size:14px;color:var(--bcm-color-grey-8)}.content{text-align:center}img{max-width:100%}";
24
-
25
- const BcmEmpty = class {
26
- constructor(hostRef) {
27
- registerInstance(this, hostRef);
28
- /**
29
- * Component Properties
30
- */
31
- this._image = ImageProps.default;
32
- this.size = SizeProps.medium;
33
- this.hidden = false;
34
- }
35
- /**
36
- * @ComponentMethod
37
- */
38
- componentWillLoad() {
39
- this.parseImage(this._image);
40
- }
41
- /**
42
- * @desc
43
- * @param newValue
44
- * @returns {void}
45
- */
46
- parseImage(newValue) {
47
- if (newValue) {
48
- newValue in ImageProps
49
- ? this.image = ImageProps[newValue]
50
- : this.image = ImageProps.default;
51
- }
52
- }
53
- render() {
54
- const classes = classnames('empty', {
55
- [this.size]: this.size
56
- });
57
- const hostClasses = classnames(this.hidden ? 'hidden' : null);
58
- return (h(Host, { class: hostClasses }, h("div", { class: classes }, h("img", { src: getAssetPath(`./static/${this.image}`) }), h("div", { class: "content" }, this.text && (h("span", { class: "text" }, this.text)), h("slot", null)))));
59
- }
60
- static get assetsDirs() { return ["static"]; }
61
- get el() { return getElement(this); }
62
- static get watchers() { return {
63
- "_image": ["parseImage"]
64
- }; }
65
- };
66
- BcmEmpty.style = emptyCss;
3
+ import { g as getChilds, d as delay } from './utils-de9aee67.js';
67
4
 
68
5
  const listboxCss = "@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;width:fit-content;height:fit-content;background-color:#ffffff}:host(.hidden){display:none}:host(.flex){width:100%;height:100%}:host(.flex) .bcm-listbox{max-height:100%;max-width:100%;height:100%;min-width:100%}:host(.full-width){width:100%}:host(.full-width) .bcm-listbox{max-width:100%;min-width:100%}.bcm-listbox{flex:1;background-color:var(--bcm-color-grey-1);width:fit-content;display:flex;flex-direction:column;height:100%;width:100%;min-width:256px;max-width:256px;min-height:auto;max-height:300px;box-sizing:border-box;border:1px solid var(--bcm-color-grey-5)}.bcm-listbox-list{flex:1;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto;border-bottom:none}.bcm-listbox-list.loading{min-height:150px;position:relative;margin:0 8px 8px 8px}.bcm-listbox-list .loading{display:none;align-items:center;justify-content:center;height:100%;width:100%;position:absolute;background-color:rgba(255, 255, 255, 0.03)}.bcm-listbox-list .loading.show{display:flex}.bcm-listbox-list .list-container.hidden{display:none}.bcm-listbox .search{padding:8px;padding-bottom:0}.bcm-listbox .search.hidden{display:none !important}.bcm-listbox .empty{display:none;align-items:center;justify-content:center;flex:1;height:100%}.bcm-listbox .empty.show{display:flex}.bcm-listbox-footer{text-align:right;padding:4px 8px;background-color:var(--bcm-color-grey-3)}.label{display:block;color:var(--bcm-color-grey-9);margin-bottom:4px}.listbox-item{display:flex;align-items:stretch;justify-content:flex-start;flex-direction:column;color:var(--bcm-color-grey-8);user-select:none;background-color:var(--bcm-color-grey-1)}.listbox-item.hidden{display:none}.listbox-item .divider{padding:0 8px}.listbox-item-container{display:flex;align-items:center;justify-content:flex-start;flex-direction:row;padding-left:8px;width:100%}.listbox-item-container .check-content{display:flex;align-items:center;justify-content:flex-start;width:16px;min-width:16px;margin-right:4px}.listbox-item-container .check-content .indeterminate{width:16px;height:16px;position:relative;display:block;padding-right:8px;cursor:pointer}.listbox-item-container .check-content .indeterminate:after{content:\"\";position:absolute;top:50%;left:9px;width:10px;height:10px;background-color:var(--bcm-color-prime-blue-6);transform:translate(-50%, -50%);opacity:1;z-index:1}.listbox-item-container .check-content .indeterminate:before{content:\"\";position:absolute;top:-1px;left:0px;width:16px;height:100%;border-radius:2px;background-color:transparent;border:1px solid var(--bcm-color-grey-5);opacity:1;z-index:2}.listbox-item-container .check-content .indeterminate:hover:before{border-color:var(--bcm-color-prime-blue-6);box-shadow:0px 2px 4px rgba(54, 121, 171, 0.5)}.listbox-item-container-text-content{display:flex;align-items:center;justify-content:flex-start;flex-direction:row;cursor:pointer;width:100%;padding:4px 8px 4px 4px}.listbox-item-container.disabled{color:var(--bcm-color-grey-6)}.listbox-item-container.selected{color:var(--bcm-color-prime-blue-6)}.listbox-item-container.selected:hover:not(.disabled){color:var(--bcm-color-prime-blue-6);background-color:var(--bcm-color-prime-blue-1)}.listbox-item-container:hover:not(.disabled),.listbox-item-container:active:not(.disabled){color:var(--bcm-color-prime-blue-6);background-color:var(--bcm-color-prime-blue-1)}.caption-area{margin-bottom:8px;min-height:20px}.input-caption{display:block}.error.label{color:var(--bcm-color-red-6) !important}.error.bcm-listbox{border:1px solid 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}.input-large{height:38px}.input-medium{height:30px}.input-small{height:20px}";
69
6
 
@@ -364,6 +301,7 @@ const BcmListbox = class {
364
301
  ? this.size = _config['size']
365
302
  : this.size = 'medium';
366
303
  }
304
+ this.searchSub = this.objectMapping['items'];
367
305
  if (_config['mapping']) {
368
306
  if (_config['mapping']['id']) {
369
307
  this.objectMapping['id'] = String(_config['mapping']['id']);
@@ -399,15 +337,14 @@ const BcmListbox = class {
399
337
  if (_config['mapping']['selected']) {
400
338
  this.objectMapping['selected'] = _config['mapping']['selected'];
401
339
  }
402
- if (this.treeview) {
403
- if (_config['mapping']['items']) {
404
- this.objectMapping['items'] = _config['mapping']['items'];
405
- this.searchSub = this.objectMapping['items'];
406
- }
407
- }
408
- else {
340
+ if (_config['mapping']['items']) {
341
+ this.objectMapping['items'] = _config['mapping']['items'];
409
342
  this.searchSub = this.objectMapping['items'];
410
343
  }
344
+ // if ( this.treeview ) {
345
+ // }else{
346
+ // this.searchSub = this.objectMapping['items']
347
+ // }
411
348
  }
412
349
  sessionStorage.setItem(this._internal_id + "-config", JSON.stringify(_config));
413
350
  // forceUpdate(this.el)
@@ -654,7 +591,7 @@ const BcmListbox = class {
654
591
  // this.listboxChecked.emit(item[this.objectMapping['id']])
655
592
  // }
656
593
  // }
657
- return (h("bcm-listbox-item", Object.assign({ _internal_id: this._internal_id, id: String(item[this.objectMapping['id']]), text: item[this.objectMapping['text']] }, (item[this.objectMapping['icon']] && { icon: item[this.objectMapping['icon']] }), (item[this.objectMapping['avatar']] && { avatar: item[this.objectMapping['avatar']] }), (item[this.objectMapping['avatarName']] && { avatarName: item[this.objectMapping['avatarName']] }), (item[this.objectMapping['avatarImage']] && { avatarImage: item[this.objectMapping['avatarImage']] }), (item[this.objectMapping['secondaryText']] && { secondaryText: item[this.objectMapping['secondaryText']] }), (item[this.objectMapping['tooltipText']] && { tooltipText: item[this.objectMapping['tooltipText']] }), (item[this.objectMapping['checked']] === true && { checked: item[this.objectMapping['checked']] }), (item[this.objectMapping['disabled']] === true && { disabled: true }), (item[this.objectMapping['selected']] === true && this.checkboxes == false && { selected: item[this.objectMapping['selected']] }), (this.template && { template: this.template }), (this.checkboxes && { checkboxes: true }), (this.size && { size: this.size }), { itemObject: item, objectMapping: this.objectMapping })));
594
+ return (h("bcm-listbox-item", Object.assign({ _internal_id: this._internal_id, id: String(item[this.objectMapping['id']]), text: item[this.objectMapping['text']] }, (item[this.objectMapping['icon']] && { icon: item[this.objectMapping['icon']] }), (item[this.objectMapping['avatar']] && { avatar: item[this.objectMapping['avatar']] }), (item[this.objectMapping['avatarName']] && { avatarName: item[this.objectMapping['avatarName']] }), (item[this.objectMapping['avatarImage']] && { avatarImage: item[this.objectMapping['avatarImage']] }), (item[this.objectMapping['secondaryText']] && { secondaryText: item[this.objectMapping['secondaryText']] }), (item[this.objectMapping['tooltipText']] && { tooltipText: item[this.objectMapping['tooltipText']] }), (Boolean(item[this.objectMapping['checked']]) === Boolean(true) && { checked: Boolean(item[this.objectMapping['checked']]) }), (item[this.objectMapping['disabled']] === true && { disabled: true }), (Boolean(item[this.objectMapping['selected']]) === Boolean(true) && this.checkboxes == false && { selected: Boolean(item[this.objectMapping['selected']]) }), (this.template && { template: this.template }), (this.checkboxes && { checkboxes: true }), (this.size && { size: this.size }), { itemObject: item, objectMapping: this.objectMapping })));
658
595
  }
659
596
  /**
660
597
  * @desc
@@ -949,10 +886,7 @@ const BcmListbox = class {
949
886
  customStyles = Object.assign(Object.assign({}, customStyles), { 'height': this.height });
950
887
  }
951
888
  const captionClasses = classnames('size-1', 'input-caption', 'caption-' + captionType);
952
- const labelClasses = classnames('size-1', 'label', {
953
- 'error': captionType == 'error' ? true : false
954
- });
955
- return (h(Host, { class: hostClasses, style: customStyles, "bcm-internal-id": this._internal_id }, !innerComponent && label && h("label", { class: labelClasses }, " ", label, " ", required && ('*'), " "), treeview === true && (h("bcm-treeview", { _internal_id: this._internal_id })), treeview == false && (h("div", { class: bcmListbox, style: customStyles }, search && (h("div", { class: "search", id: "search", style: { 'display': String(showSearch) == 'false' ? 'none' : 'block' } }, h("bcm-search", { _internal_id: this._internal_id, searchPlaceholder: this.searchPlaceholder, searchValue: searchText, "on-bcm-focus": () => this.handleFocus(true), "on-bcm-blur": () => this.handleFocus(false), data: searchData, returnField: returnField, searchFields: searchFields, searchSub: searchSub, clearable: true }), h("bcm-divider", null))), h("div", { id: "bcm-listbox-list", class: "bcm-listbox-list loading", style: customStylesList }, checkboxes && (h("div", { class: classes, id: "checkall" }, h("div", { class: classesContainer, onClick: () => this.handleIndeterminateClick() }, h("div", { class: "check-content" }, indeterminateState == 'indeterminate' && (h("span", { class: "indeterminate" })) || (h("bcm-checkbox", { onClick: (e) => this.handleCheckboxClick(e), checked: checked, noCaption: true }))), h("div", { class: textContent }, "Select All")), h("div", { class: "divider" }, h("bcm-divider", null)))),
889
+ return (h(Host, { class: hostClasses, style: customStyles, "bcm-internal-id": this._internal_id }, !innerComponent && label && h("div", null, h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required })), treeview === true && (h("bcm-treeview", { _internal_id: this._internal_id })), treeview == false && (h("div", { class: bcmListbox, style: customStyles }, search && (h("div", { class: "search", id: "search", style: { 'display': String(showSearch) == 'false' ? 'none' : 'block' } }, h("bcm-search", { _internal_id: this._internal_id, searchPlaceholder: this.searchPlaceholder, searchValue: searchText, "on-bcm-focus": () => this.handleFocus(true), "on-bcm-blur": () => this.handleFocus(false), data: searchData, returnField: returnField, searchFields: searchFields, searchSub: searchSub, clearable: true }), h("bcm-divider", null))), h("div", { id: "bcm-listbox-list", class: "bcm-listbox-list loading", style: customStylesList }, checkboxes && (h("div", { class: classes, id: "checkall" }, h("div", { class: classesContainer, onClick: () => this.handleIndeterminateClick() }, h("div", { class: "check-content" }, indeterminateState == 'indeterminate' && (h("span", { class: "indeterminate" })) || (h("bcm-checkbox", { onClick: (e) => this.handleCheckboxClick(e), checked: checked, noCaption: true }))), h("div", { class: textContent }, "Select All")), h("div", { class: "divider" }, h("bcm-divider", null)))),
956
890
  // this.empty == false && (
957
891
  h("div", { id: "list-container", class: listContainer, style: listContainerStyle }, this.items.length !== 0 && this.items.map((item) => ((item.type === 'group' ? this.recursiveGroupRenderer(item) : this.itemRenderer(item)))))
958
892
  // )
@@ -2307,4 +2241,4 @@ const BcmtreeviewItem = class {
2307
2241
  };
2308
2242
  BcmtreeviewItem.style = treeviewItemCss;
2309
2243
 
2310
- export { BcmEmpty as bcm_empty, BcmListbox as bcm_listbox, BcmListboxGroup as bcm_listbox_group, BcmListboxItem as bcm_listbox_item, Bcmtreeview as bcm_treeview, BcmtreeviewItem as bcm_treeview_item };
2244
+ export { BcmListbox as bcm_listbox, BcmListboxGroup as bcm_listbox_group, BcmListboxItem as bcm_listbox_item, Bcmtreeview as bcm_treeview, BcmtreeviewItem as bcm_treeview_item };
@@ -0,0 +1,193 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-8fe7aea4.js';
2
+ import { c as classnames } from './index-e58a2d48.js';
3
+
4
+ /**
5
+ * 'status' prop predefined values
6
+ */
7
+ var StatusProps;
8
+ (function (StatusProps) {
9
+ StatusProps["info"] = "info";
10
+ StatusProps["error"] = "error";
11
+ StatusProps["warning"] = "warning";
12
+ StatusProps["success"] = "success";
13
+ StatusProps["none"] = "none";
14
+ })(StatusProps || (StatusProps = {}));
15
+ /**
16
+ * 'type' prop predefined values
17
+ */
18
+ var TypeProps;
19
+ (function (TypeProps) {
20
+ TypeProps["modal"] = "modal";
21
+ TypeProps["information"] = "information";
22
+ TypeProps["confirmation"] = "confirmation";
23
+ })(TypeProps || (TypeProps = {}));
24
+ /**
25
+ * 'type' prop predefined values
26
+ */
27
+ var OrientationProps;
28
+ (function (OrientationProps) {
29
+ OrientationProps["portrait"] = "portrait";
30
+ OrientationProps["landscape"] = "landscape";
31
+ })(OrientationProps || (OrientationProps = {}));
32
+
33
+ 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;justify-content:center;align-items:flex-start;top:0;left:0;opacity:0;margin:0;padding:80px 40px 40px;overflow:hidden;overflow-y:auto;background-color:rgba(0, 0, 0, 0.5);box-sizing:border-box;z-index:-1000;width:100vw;height:100vh;visibility:hidden}.modal.show{visibility:visible;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}";
34
+
35
+ /**
36
+ * @desc
37
+ * @param str
38
+ */
39
+ const lowercase = (str) => str.toLowerCase();
40
+ const BcmModal = class {
41
+ constructor(hostRef) {
42
+ registerInstance(this, hostRef);
43
+ this.ok = createEvent(this, "bcm-ok", 7);
44
+ this.cancel = createEvent(this, "bcm-cancel", 7);
45
+ this.slotHeader = false;
46
+ this.slotContent = false;
47
+ this.slotFooter = false;
48
+ this.slotHeaderHtml = '';
49
+ this.slotContentHtml = '';
50
+ this.slotFooterHtml = '';
51
+ this.bodyStyleOverflow = '';
52
+ this.type = TypeProps.modal;
53
+ this.status = StatusProps.none;
54
+ this.okText = 'OK';
55
+ this.cancelText = 'Cancel';
56
+ this.isShow = false;
57
+ this.hidden = false;
58
+ this.size = 'medium';
59
+ this.fullWidth = false;
60
+ this.backdrop = true;
61
+ }
62
+ /**
63
+ * @StencilMethod
64
+ */
65
+ componentWillLoad() {
66
+ if (this.type !== TypeProps.modal && this.status === StatusProps.none)
67
+ this.status = StatusProps.info;
68
+ // if ( this.el.querySelector('bcm-modal-header') ) {
69
+ // this.slotHeaderHtml = this.el.querySelector('bcm-modal-header').innerHTML
70
+ // this.slotHeader = true
71
+ // }
72
+ // if ( this.el.querySelector('bcm-modal-content') ) {
73
+ // this.slotContentHtml = this.el.querySelector('bcm-modal-content').outerHTML
74
+ // this.slotContent = true
75
+ // }
76
+ // if ( this.el.querySelector('bcm-modal-footer') ) {
77
+ // this.slotFooter = true
78
+ // }
79
+ }
80
+ componentDidRender() {
81
+ const slot = this.el.shadowRoot.querySelector('slot').assignedElements();
82
+ slot.map(el => {
83
+ if (String(el.tagName).toLowerCase() === 'bcm-modal-header') {
84
+ el.slot = 'header';
85
+ this.headerArea = true;
86
+ }
87
+ if (String(el.tagName).toLowerCase() === 'bcm-modal-footer') {
88
+ el.slot = 'footer';
89
+ this.footerArea = true;
90
+ }
91
+ });
92
+ }
93
+ /**
94
+ * @desc
95
+ * @returns {BcmIcon}
96
+ */
97
+ getIcon() {
98
+ switch (this.status) {
99
+ case StatusProps.info:
100
+ return h("bcm-icon", { type: "outlined", icon: "info-circle", size: "medium", color: "prime-blue-6" });
101
+ case StatusProps.error:
102
+ return h("bcm-icon", { type: "outlined", icon: "close-circle", size: "medium", color: "red-6" });
103
+ case StatusProps.warning:
104
+ return h("bcm-icon", { type: "outlined", icon: "exclamation-circle", size: "medium", color: "warmyellow-6" });
105
+ case StatusProps.success:
106
+ return h("bcm-icon", { type: "outlined", icon: "check-circle", size: "medium", color: "green-6" });
107
+ }
108
+ }
109
+ /**
110
+ * @desc
111
+ */
112
+ handleOk() {
113
+ this.ok.emit();
114
+ this.isShow = false;
115
+ }
116
+ /**
117
+ * @desc
118
+ */
119
+ handleCancel() {
120
+ this.cancel.emit();
121
+ this.isShow = false;
122
+ }
123
+ /**
124
+ * @desc
125
+ * @returns {BcmIcon}
126
+ */
127
+ getFooterActions() {
128
+ return ((this.footerArea && (h("footer", null, " ", h("slot", { name: "footer" }), " "))));
129
+ }
130
+ handleSubmit(e) {
131
+ if (lowercase(e.target.nodeName) === 'bcm-button') {
132
+ if (e.target.dataDismiss) {
133
+ this.dismiss();
134
+ }
135
+ }
136
+ }
137
+ /**
138
+ * @desc Removes component itself
139
+ */
140
+ dismiss() {
141
+ this.isShow = false;
142
+ document.querySelector("body").style.overflow = this.bodyStyleOverflow;
143
+ // this.el.remove()
144
+ }
145
+ handleBackdrop() {
146
+ if (this.backdrop == true) {
147
+ this.dismiss();
148
+ }
149
+ }
150
+ /**
151
+ * @desc
152
+ */
153
+ async hide() {
154
+ this.dismiss();
155
+ }
156
+ /**
157
+ * @desc
158
+ */
159
+ async show() {
160
+ this.isShow = true;
161
+ if (document.querySelector("body").style.overflow != "hidden") {
162
+ this.bodyStyleOverflow = document.querySelector("body").style.overflow;
163
+ }
164
+ document.querySelector("body").style.overflow = "hidden";
165
+ // const bcmTabs = this.el.querySelector('bcm-tabs')
166
+ // if ( bcmTabs ) {
167
+ // var getActiveTab = await bcmTabs.getActiveTab()
168
+ // bcmTabs.active( getActiveTab )
169
+ // }
170
+ }
171
+ keyboardNavigation(e) {
172
+ if (this.backdrop == true) {
173
+ const which = e.which || 0;
174
+ if (which == 27) {
175
+ e.preventDefault();
176
+ this.dismiss();
177
+ }
178
+ }
179
+ }
180
+ render() {
181
+ const { type, status, headerTitle, isShow, headerArea, size, fullWidth } = this;
182
+ const cardClasses = classnames('card', status, size, fullWidth ? 'full-width' : null);
183
+ const modal = classnames('modal', {
184
+ 'show': isShow
185
+ });
186
+ const hostClasses = classnames(this.hidden ? 'hidden' : null);
187
+ return (h(Host, { class: hostClasses }, h("div", { class: modal }, h("div", { class: "overlay", onClick: () => this.handleBackdrop() }), h("div", { class: cardClasses }, type === TypeProps.modal && (headerArea && (h("header", null, h("slot", { name: "header" }), " ", h("bcm-icon", { icon: "close", color: "grey-10", onClick: () => this.dismiss() })))), h("div", { class: "text-content" }, type !== TypeProps.modal && (h("span", { class: "title" }, this.getIcon(), headerArea && (h("slot", { name: "header" })), !headerArea && (headerTitle))), h("p", { class: type !== TypeProps.modal ? 'with-status' : '' }, h("slot", null)), type !== TypeProps.modal && this.getFooterActions()), type === TypeProps.modal && (this.getFooterActions())))));
188
+ }
189
+ get el() { return getElement(this); }
190
+ };
191
+ BcmModal.style = modalCss;
192
+
193
+ export { BcmModal as bcm_modal };
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-8fe7aea4.js';
2
2
  import { c as classnames } from './index-e58a2d48.js';
3
3
 
4
- const popconfirmBoxCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popconfirm-box{position:relative;}.popconfirm-box .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25));padding:8px 16px}.popconfirm-box .box .content{display:flex}.popconfirm-box .box .content .icon{margin-right:8px;margin-top:4px}.popconfirm-box .box .buttons{display:flex;justify-content:flex-end;margin-top:8px}.popconfirm-box .box .buttons bcm-button:first-child{margin-right:8px}.popconfirm-box::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700}.popconfirm-box.open .box,.popconfirm-box.open::after{display:block}.popconfirm-box.top .box{bottom:100%;margin-bottom:16px}.popconfirm-box.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popconfirm-box.bottom .box{top:100%;margin-top:16px}.popconfirm-box.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popconfirm-box.left .box{right:100%;margin-right:16px}.popconfirm-box.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popconfirm-box.right .box{left:100%;margin-left:16px}.popconfirm-box.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popconfirm-box.top.center .box,.popconfirm-box.bottom.center .box{left:50%;transform:translateX(-50%)}.popconfirm-box.top.center::after,.popconfirm-box.bottom.center::after{left:50%;transform:translateX(-50%)}.popconfirm-box.top.start .box,.popconfirm-box.bottom.start .box{left:0}.popconfirm-box.top.start::after,.popconfirm-box.bottom.start::after{left:16px}.popconfirm-box.top.end .box,.popconfirm-box.bottom.end .box{right:0}.popconfirm-box.top.end::after,.popconfirm-box.bottom.end::after{right:16px}.popconfirm-box.left.center .box,.popconfirm-box.right.center .box{top:50%;transform:translateY(-50%)}.popconfirm-box.left.center::after,.popconfirm-box.right.center::after{top:50%;transform:translateY(-50%)}.popconfirm-box.left.start .box,.popconfirm-box.right.start .box{top:0}.popconfirm-box.left.start::after,.popconfirm-box.right.start::after{top:12px}.popconfirm-box.left.end .box,.popconfirm-box.right.end .box{bottom:0}.popconfirm-box.left.end::after,.popconfirm-box.right.end::after{bottom:12px}";
4
+ const popconfirmBoxCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popconfirm-box{position:relative;}.popconfirm-box .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25));padding:8px 16px}.popconfirm-box .box .content{display:flex}.popconfirm-box .box .content .icon{margin-right:8px;margin-top:4px}.popconfirm-box .box .buttons{display:flex;justify-content:flex-end;margin-top:8px}.popconfirm-box .box .buttons bcm-button:first-child{margin-right:8px}.popconfirm-box::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700;pointer-events:none}.popconfirm-box.open .box,.popconfirm-box.open::after{display:block}.popconfirm-box.top .box{bottom:100%;margin-bottom:16px}.popconfirm-box.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popconfirm-box.bottom .box{top:100%;margin-top:16px}.popconfirm-box.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popconfirm-box.left .box{right:100%;margin-right:16px}.popconfirm-box.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popconfirm-box.right .box{left:100%;margin-left:16px}.popconfirm-box.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popconfirm-box.top.center .box,.popconfirm-box.bottom.center .box{left:50%;transform:translateX(-50%)}.popconfirm-box.top.center::after,.popconfirm-box.bottom.center::after{left:50%;transform:translateX(-50%)}.popconfirm-box.top.start .box,.popconfirm-box.bottom.start .box{left:0}.popconfirm-box.top.start::after,.popconfirm-box.bottom.start::after{left:16px}.popconfirm-box.top.end .box,.popconfirm-box.bottom.end .box{right:0}.popconfirm-box.top.end::after,.popconfirm-box.bottom.end::after{right:16px}.popconfirm-box.left.center .box,.popconfirm-box.right.center .box{top:50%;transform:translateY(-50%)}.popconfirm-box.left.center::after,.popconfirm-box.right.center::after{top:50%;transform:translateY(-50%)}.popconfirm-box.left.start .box,.popconfirm-box.right.start .box{top:0}.popconfirm-box.left.start::after,.popconfirm-box.right.start::after{top:12px}.popconfirm-box.left.end .box,.popconfirm-box.right.end .box{bottom:0}.popconfirm-box.left.end::after,.popconfirm-box.right.end::after{bottom:12px}";
5
5
 
6
6
  const statuses = {
7
7
  error: ['close-circle', 'red-6'],
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-8fe7aea4.js';
2
2
  import { c as classnames } from './index-e58a2d48.js';
3
- import { d as delay } from './utils-b7fba7c4.js';
3
+ import { d as delay } from './utils-de9aee67.js';
4
4
  import { p as popoverPlacement, a as popoverBoxPlacement } from './popover-placement-a4ab1587.js';
5
5
 
6
- const popconfirmCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popconfirm{position:relative;}.popconfirm .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25));padding:8px 16px}.popconfirm .box .content{display:flex}.popconfirm .box .content .icon{margin-right:8px;margin-top:4px}.popconfirm .box .buttons{display:flex;justify-content:flex-end;margin-top:8px}.popconfirm .box .buttons bcm-button:first-child{margin-right:8px}.popconfirm::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700}.popconfirm.open .box,.popconfirm.open::after{display:block}.popconfirm.top .box{bottom:100%;margin-bottom:16px}.popconfirm.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popconfirm.bottom .box{top:100%;margin-top:16px}.popconfirm.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popconfirm.left .box{right:100%;margin-right:16px}.popconfirm.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popconfirm.right .box{left:100%;margin-left:16px}.popconfirm.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popconfirm.top.center .box,.popconfirm.bottom.center .box{left:50%;transform:translateX(-50%)}.popconfirm.top.center::after,.popconfirm.bottom.center::after{left:50%;transform:translateX(-50%)}.popconfirm.top.start .box,.popconfirm.bottom.start .box{left:0}.popconfirm.top.start::after,.popconfirm.bottom.start::after{left:16px}.popconfirm.top.end .box,.popconfirm.bottom.end .box{right:0}.popconfirm.top.end::after,.popconfirm.bottom.end::after{right:16px}.popconfirm.left.center .box,.popconfirm.right.center .box{top:50%;transform:translateY(-50%)}.popconfirm.left.center::after,.popconfirm.right.center::after{top:50%;transform:translateY(-50%)}.popconfirm.left.start .box,.popconfirm.right.start .box{top:0}.popconfirm.left.start::after,.popconfirm.right.start::after{top:12px}.popconfirm.left.end .box,.popconfirm.right.end .box{bottom:0}.popconfirm.left.end::after,.popconfirm.right.end::after{bottom:12px}";
6
+ const popconfirmCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popconfirm{position:relative;}.popconfirm .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25));padding:8px 16px}.popconfirm .box .content{display:flex}.popconfirm .box .content .icon{margin-right:8px;margin-top:4px}.popconfirm .box .buttons{display:flex;justify-content:flex-end;margin-top:8px}.popconfirm .box .buttons bcm-button:first-child{margin-right:8px}.popconfirm::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700;pointer-events:none}.popconfirm.open .box,.popconfirm.open::after{display:block}.popconfirm.top .box{bottom:100%;margin-bottom:16px}.popconfirm.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popconfirm.bottom .box{top:100%;margin-top:16px}.popconfirm.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popconfirm.left .box{right:100%;margin-right:16px}.popconfirm.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popconfirm.right .box{left:100%;margin-left:16px}.popconfirm.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popconfirm.top.center .box,.popconfirm.bottom.center .box{left:50%;transform:translateX(-50%)}.popconfirm.top.center::after,.popconfirm.bottom.center::after{left:50%;transform:translateX(-50%)}.popconfirm.top.start .box,.popconfirm.bottom.start .box{left:0}.popconfirm.top.start::after,.popconfirm.bottom.start::after{left:16px}.popconfirm.top.end .box,.popconfirm.bottom.end .box{right:0}.popconfirm.top.end::after,.popconfirm.bottom.end::after{right:16px}.popconfirm.left.center .box,.popconfirm.right.center .box{top:50%;transform:translateY(-50%)}.popconfirm.left.center::after,.popconfirm.right.center::after{top:50%;transform:translateY(-50%)}.popconfirm.left.start .box,.popconfirm.right.start .box{top:0}.popconfirm.left.start::after,.popconfirm.right.start::after{top:12px}.popconfirm.left.end .box,.popconfirm.right.end .box{bottom:0}.popconfirm.left.end::after,.popconfirm.right.end::after{bottom:12px}";
7
7
 
8
8
  const BcmPopconfirm = class {
9
9
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-8fe7aea4.js';
2
2
  import { c as classnames } from './index-e58a2d48.js';
3
3
 
4
- const popoverBoxCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popover-box{position:relative;}.popover-box .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25))}.popover-box .box .heading,.popover-box .box .content{display:block}.popover-box .box .heading{padding:4px 16px;border-bottom:1px solid #D9D9D9;color:var(--bcm-color-grey-9)}.popover-box .box .content{padding:8px 16px;color:var(--bcm-color-grey-8)}.popover-box::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700}.popover-box.open .box,.popover-box.open::after{display:block}.popover-box.top .box{bottom:100%;margin-bottom:16px}.popover-box.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popover-box.bottom .box{top:100%;margin-top:16px}.popover-box.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popover-box.left .box{right:100%;margin-right:16px}.popover-box.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popover-box.right .box{left:100%;margin-left:16px}.popover-box.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popover-box.top.center .box,.popover-box.bottom.center .box{left:50%;transform:translateX(-50%)}.popover-box.top.center::after,.popover-box.bottom.center::after{left:50%;transform:translateX(-50%)}.popover-box.top.start .box,.popover-box.bottom.start .box{left:0}.popover-box.top.start::after,.popover-box.bottom.start::after{left:16px}.popover-box.top.end .box,.popover-box.bottom.end .box{right:0}.popover-box.top.end::after,.popover-box.bottom.end::after{right:16px}.popover-box.left.center .box,.popover-box.right.center .box{top:50%;transform:translateY(-50%)}.popover-box.left.center::after,.popover-box.right.center::after{top:50%;transform:translateY(-50%)}.popover-box.left.start .box,.popover-box.right.start .box{top:0}.popover-box.left.start::after,.popover-box.right.start::after{top:12px}.popover-box.left.end .box,.popover-box.right.end .box{bottom:0}.popover-box.left.end::after,.popover-box.right.end::after{bottom:12px}";
4
+ const popoverBoxCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popover-box{position:relative;}.popover-box .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25))}.popover-box .box .heading,.popover-box .box .content{display:block}.popover-box .box .heading{padding:4px 16px;border-bottom:1px solid #D9D9D9;color:var(--bcm-color-grey-9)}.popover-box .box .content{padding:8px 16px;color:var(--bcm-color-grey-8)}.popover-box::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700;pointer-events:none}.popover-box.open .box,.popover-box.open::after{display:block}.popover-box.top .box{bottom:100%;margin-bottom:16px}.popover-box.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popover-box.bottom .box{top:100%;margin-top:16px}.popover-box.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popover-box.left .box{right:100%;margin-right:16px}.popover-box.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popover-box.right .box{left:100%;margin-left:16px}.popover-box.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popover-box.top.center .box,.popover-box.bottom.center .box{left:50%;transform:translateX(-50%)}.popover-box.top.center::after,.popover-box.bottom.center::after{left:50%;transform:translateX(-50%)}.popover-box.top.start .box,.popover-box.bottom.start .box{left:0}.popover-box.top.start::after,.popover-box.bottom.start::after{left:16px}.popover-box.top.end .box,.popover-box.bottom.end .box{right:0}.popover-box.top.end::after,.popover-box.bottom.end::after{right:16px}.popover-box.left.center .box,.popover-box.right.center .box{top:50%;transform:translateY(-50%)}.popover-box.left.center::after,.popover-box.right.center::after{top:50%;transform:translateY(-50%)}.popover-box.left.start .box,.popover-box.right.start .box{top:0}.popover-box.left.start::after,.popover-box.right.start::after{top:12px}.popover-box.left.end .box,.popover-box.right.end .box{bottom:0}.popover-box.left.end::after,.popover-box.right.end::after{bottom:12px}";
5
5
 
6
6
  const BcmPopoverBox = class {
7
7
  constructor(hostRef) {
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-8fe7aea4.js';
2
2
  import { c as classnames } from './index-e58a2d48.js';
3
- import { d as delay } from './utils-b7fba7c4.js';
3
+ import { d as delay } from './utils-de9aee67.js';
4
4
  import { p as popoverPlacement, a as popoverBoxPlacement } from './popover-placement-a4ab1587.js';
5
5
 
6
- const popoverCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popover{position:relative;}.popover .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25))}.popover .box .heading,.popover .box .content{display:block}.popover .box .heading{padding:4px 16px;border-bottom:1px solid #D9D9D9;color:var(--bcm-color-grey-9)}.popover .box .content{padding:8px 16px;color:var(--bcm-color-grey-8)}.popover::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700}.popover.open .box,.popover.open::after{display:block}.popover.top .box{bottom:100%;margin-bottom:16px}.popover.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popover.bottom .box{top:100%;margin-top:16px}.popover.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popover.left .box{right:100%;margin-right:16px}.popover.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popover.right .box{left:100%;margin-left:16px}.popover.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popover.top.center .box,.popover.bottom.center .box{left:50%;transform:translateX(-50%)}.popover.top.center::after,.popover.bottom.center::after{left:50%;transform:translateX(-50%)}.popover.top.start .box,.popover.bottom.start .box{left:0}.popover.top.start::after,.popover.bottom.start::after{left:16px}.popover.top.end .box,.popover.bottom.end .box{right:0}.popover.top.end::after,.popover.bottom.end::after{right:16px}.popover.left.center .box,.popover.right.center .box{top:50%;transform:translateY(-50%)}.popover.left.center::after,.popover.right.center::after{top:50%;transform:translateY(-50%)}.popover.left.start .box,.popover.right.start .box{top:0}.popover.left.start::after,.popover.right.start::after{top:12px}.popover.left.end .box,.popover.right.end .box{bottom:0}.popover.left.end::after,.popover.right.end::after{bottom:12px}";
6
+ const popoverCss = "@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-flex}:host(.hidden){display:none}:host(:focus){outline:none}.popover{position:relative;}.popover .box{position:absolute;display:none;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #FFFFFF;border-radius:2px;z-index:10700;width:230px;filter:drop-shadow(0px 1px 6px rgba(0, 0, 0, 0.25))}.popover .box .heading,.popover .box .content{display:block}.popover .box .heading{padding:4px 16px;border-bottom:1px solid #D9D9D9;color:var(--bcm-color-grey-9)}.popover .box .content{padding:8px 16px;color:var(--bcm-color-grey-8)}.popover::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700;pointer-events:none}.popover.open .box,.popover.open::after{display:block}.popover.top .box{bottom:100%;margin-bottom:16px}.popover.top::after{bottom:100%;margin-bottom:4px;border-color:#FFFFFF transparent transparent transparent}.popover.bottom .box{top:100%;margin-top:16px}.popover.bottom::after{top:100%;margin-top:4px;border-color:transparent transparent #FFFFFF transparent}.popover.left .box{right:100%;margin-right:16px}.popover.left::after{right:100%;margin-right:4px;border-color:transparent transparent transparent #FFFFFF}.popover.right .box{left:100%;margin-left:16px}.popover.right::after{left:100%;margin-left:4px;border-color:transparent #FFFFFF transparent transparent}.popover.top.center .box,.popover.bottom.center .box{left:50%;transform:translateX(-50%)}.popover.top.center::after,.popover.bottom.center::after{left:50%;transform:translateX(-50%)}.popover.top.start .box,.popover.bottom.start .box{left:0}.popover.top.start::after,.popover.bottom.start::after{left:16px}.popover.top.end .box,.popover.bottom.end .box{right:0}.popover.top.end::after,.popover.bottom.end::after{right:16px}.popover.left.center .box,.popover.right.center .box{top:50%;transform:translateY(-50%)}.popover.left.center::after,.popover.right.center::after{top:50%;transform:translateY(-50%)}.popover.left.start .box,.popover.right.start .box{top:0}.popover.left.start::after,.popover.right.start::after{top:12px}.popover.left.end .box,.popover.right.end .box{bottom:0}.popover.left.end::after,.popover.right.end::after{bottom:12px}";
7
7
 
8
8
  const BcmPopover = class {
9
9
  constructor(hostRef) {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-8fe7aea4.js';
2
2
  import { c as classnames } from './index-e58a2d48.js';
3
- import { g as getChilds } from './utils-b7fba7c4.js';
3
+ import { g as getChilds } from './utils-de9aee67.js';
4
4
 
5
5
  const pulldownGroupCss = "@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}@media screen and (min-width: 576px){:host{width:100%}}:host(.hidden){display:none}.pulldown-group{--const-padding-vertical-sub:12px;--const-padding-horizontal-sub:40px;--group-shadow:0px 4px 4px rgba(0, 0, 0, 0.25)}.pulldown-group ::slotted(bcm-pulldown-item){--padding-vertical-sub:var(--const-padding-vertical-sub);--padding-horizontal-sub:var(--const-padding-horizontal-sub);--hover-color:var(--bcm-color-prime-blue-6);--selected-bg-color:var(--bcm-color-prime-blue-6)}.pulldown-group.open .title{color:var(--bcm-color-prime-blue-6)}.pulldown-group.open .inner{display:block}.inner{position:absolute;top:calc(100% + 5px);display:none;transition:height 0.3s ease;background-color:#ffffff;border-radius:2px;box-shadow:var(--group-shadow)}@media screen and (min-width: 576px){.inner{position:relative;box-shadow:none}}.title{display:flex;align-items:center;justify-content:space-between;font-size:14px;line-height:22px;color:var(--bcm-color-grey-7);cursor:pointer;padding:8px 8px;height:100%}.title .text-content{display:flex;align-items:center}.title .collapse-icon{margin-left:8px}.title ::slotted(bcm-icon){margin-right:10px}.title:hover{color:var(--bcm-color-prime-blue-6);background-color:var(--bcm-color-prime-blue-1)}@media screen and (min-width: 576px){.title{padding:var(--const-padding-vertical-sub) var(--const-padding-horizontal-sub)}}.pulldown-group.sub-group .title{padding:var(--const-padding-vertical-sub) var(--const-padding-horizontal-sub);white-space:nowrap}.pulldown-group.sub-group .inner{position:relative;box-shadow:none}.pulldown-group.sub-group.right{position:relative;--nowrap-sub:nowrap}.pulldown-group.sub-group.right .inner{position:absolute;top:0;left:100%;margin-left:2px;box-shadow:var(--group-shadow)}@media screen and (min-width: 576px){.pulldown-group.sub-group.right .inner{position:relative;left:0;box-shadow:none}}";
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-8fe7aea4.js';
2
2
  import { c as classnames } from './index-e58a2d48.js';
3
- import { g as getChilds, i as isTargetComponent } from './utils-b7fba7c4.js';
3
+ import { g as getChilds, i as isTargetComponent } from './utils-de9aee67.js';
4
4
 
5
5
  const pulldownCss = "@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}.pulldown{position:relative;display:flex;align-items:center;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);background-color:#ffffff}@media screen and (min-width: 576px){.pulldown{flex-direction:column;align-items:flex-start}}@media screen and (min-width: 576px){.pulldown>*{width:100%}}::slotted(*){height:100%}";
6
6
 
@@ -0,0 +1,120 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-8fe7aea4.js';
2
+ import { c as classnames } from './index-e58a2d48.js';
3
+
4
+ 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}";
5
+
6
+ const BcmRadioGroup = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.change = createEvent(this, "bcm-change", 7);
10
+ this.childRadios = [];
11
+ this.direction = 'horizontal';
12
+ this.optionType = 'default';
13
+ this.buttonStyle = 'solid';
14
+ this.size = 'medium';
15
+ this.disabled = false;
16
+ this.hidden = false;
17
+ this.label = null;
18
+ this.required = false;
19
+ this.noCaption = false;
20
+ this.captionType = 'default';
21
+ this.radioOptions = [];
22
+ this.usingSlots = true;
23
+ }
24
+ async setData(_data) {
25
+ setTimeout(() => {
26
+ this.options = _data;
27
+ }, 100);
28
+ return Promise.resolve(true);
29
+ }
30
+ async getValue() {
31
+ return this.value;
32
+ }
33
+ async check(value) {
34
+ this.defaultValue = value;
35
+ this.value = value;
36
+ }
37
+ async setClear() {
38
+ this.value = '';
39
+ }
40
+ async resetCaption() {
41
+ this.caption = this.captionCache;
42
+ this.captionType = this.captionTypeCache;
43
+ this.captionError = null;
44
+ }
45
+ parseOptions(newValue) {
46
+ if (newValue) {
47
+ typeof newValue === 'string'
48
+ ? this.radioOptions = JSON.parse(newValue)
49
+ : this.radioOptions = newValue;
50
+ if (this.radioOptions.length > 0)
51
+ this.usingSlots = false;
52
+ }
53
+ }
54
+ // If checked radio changes, emits change event
55
+ handleChange(newValue) {
56
+ this.change.emit(newValue);
57
+ }
58
+ // Controls radios styles and states
59
+ controlRadio(elements) {
60
+ elements.forEach((radio) => {
61
+ radio.checked = this.value ? radio.value === this.value : this.defaultValue ? radio.value === this.defaultValue : null;
62
+ radio.disabled = this.disabled;
63
+ radio.optionType = this.optionType;
64
+ radio.buttonStyle = this.buttonStyle;
65
+ radio.size = this.size;
66
+ radio.addEventListener('bcm-change', (e) => {
67
+ e.stopPropagation();
68
+ if (e.detail.checked) {
69
+ this.value = radio.value;
70
+ }
71
+ }, { once: true });
72
+ });
73
+ }
74
+ connectedCallback() {
75
+ this.captionCache = this.caption;
76
+ this.captionTypeCache = this.captionType;
77
+ }
78
+ componentWillLoad() {
79
+ this.parseOptions(this.options);
80
+ }
81
+ componentDidRender() {
82
+ let elements = [];
83
+ if (this.usingSlots) {
84
+ elements = this.host.shadowRoot.querySelector('slot').assignedElements();
85
+ this.childRadios = [];
86
+ elements.map(el => {
87
+ String(el.tagName).toLowerCase() == 'bcm-radio' && this.childRadios.push(el);
88
+ });
89
+ this.controlRadio(this.childRadios);
90
+ }
91
+ else {
92
+ elements = Array.from(this.host.shadowRoot.querySelectorAll('bcm-radio'));
93
+ this.controlRadio(elements);
94
+ }
95
+ }
96
+ render() {
97
+ const { label, required, noCaption, caption, captionError, captionType } = this;
98
+ const classes = classnames('radio-group', {
99
+ [this.direction]: this.optionType === 'default'
100
+ });
101
+ const hostClasses = classnames(this.hidden ? 'hidden' : null, {
102
+ 'error': captionType == 'error' ? true : false
103
+ });
104
+ const captionClasses = classnames('size-1', 'input-caption', 'caption-' + captionType);
105
+ if (this.radioOptions) {
106
+ return (h(Host, { class: hostClasses }, label && h("div", null, h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required })), h("div", { class: classes }, this.radioOptions && this.radioOptions.map(radio => (h("bcm-radio", { value: radio.value, disabled: radio.disabled, checked: radio.checked }, " ", radio.label, " "))), h("slot", null)), !noCaption && (h("div", { class: "caption-area" }, captionType == "error"
107
+ ? h("span", { class: captionClasses }, " ", captionError, " ")
108
+ : caption && h("span", { class: captionClasses }, " ", caption, " ")))));
109
+ }
110
+ return (h(Host, { class: hostClasses }, h("div", { class: classes }, h("slot", null))));
111
+ }
112
+ get host() { return getElement(this); }
113
+ static get watchers() { return {
114
+ "options": ["parseOptions"],
115
+ "value": ["handleChange"]
116
+ }; }
117
+ };
118
+ BcmRadioGroup.style = groupCss;
119
+
120
+ export { BcmRadioGroup as bcm_radio_group };