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
@@ -0,0 +1,291 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-ce8878ec.js');
6
+ const index$1 = require('./index-2f62bdaf.js');
7
+
8
+ const checkboxCss = "@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}input{display:none}.svg-icon{filter:brightness(0) invert(1);width:12px;height:12px}label{display:flex;align-items:flex-start;font-size:14px;color:var(--bcm-color-grey-8);cursor:pointer}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)}:host(.indeterminate) label span.icon{position:relative}:host(.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}:host(.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}:host(.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)}input:checked+label span.icon{background-color:var(--bcm-color-prime-blue-6);border-color:transparent}input:checked+label .icon-checked{display:block}bcm-icon{filter:brightness(0) invert(1)}input[disabled]+label{cursor:not-allowed}input[disabled]+label span.icon{background-color:var(--bcm-color-grey-3);border-color:var(--bcm-color-grey-5)}input[disabled]+label bcm-icon{filter:brightness(0);opacity:0.3}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)}:host(.error) input:not([disabled])+label span.icon{border-color:var(--bcm-color-red-6)}.caption-area{margin-bottom:8px;min-height:20px;display:block}.input-caption{display:block}.caption-default{color:#8C8C8C}.caption-primary{color:#4293CF}.caption-success{color:#52C41A}.caption-warning{color:#FA8C16}.caption-error{color:#F5222D}.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}.radio-button>span.icon{display:none}.radio-button>span.slot{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;user-select:none}.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}";
9
+
10
+ const BcmCheckboxLite = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ /**
14
+ * Component Properties
15
+ */
16
+ this.value = '';
17
+ this.name = 'checkbox';
18
+ this.checked = false;
19
+ this.indeterminate = false;
20
+ this.disabled = false;
21
+ this.readOnly = false;
22
+ this.hidden = false;
23
+ this.required = false;
24
+ this.noCaption = false;
25
+ this.captionType = 'default';
26
+ }
27
+ connectedCallback() { }
28
+ disconnectedCallback() { }
29
+ componentWillLoad() { }
30
+ componentDidLoad() { }
31
+ componentWillRender() { }
32
+ componentDidRender() { }
33
+ componentWillUpdate() { }
34
+ componentDidUpdate() { }
35
+ render() {
36
+ const { disabled, checked, readOnly, name, required } = this;
37
+ const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null, {
38
+ 'indeterminate': this.indeterminate
39
+ });
40
+ const iconClasses = index$1.classnames('icon');
41
+ return (index.h(index.Host, { class: hostClasses }, index.h("input", { id: name, type: "checkbox", checked: checked, disabled: disabled, required: required, readOnly: readOnly }), index.h("label", { htmlFor: name }, index.h("span", { class: iconClasses }, 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" }))))));
42
+ }
43
+ get el() { return index.getElement(this); }
44
+ };
45
+ BcmCheckboxLite.style = checkboxCss;
46
+
47
+ const dividerCss = "@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:flex;justify-content:center}:host(.hidden){display:none}.divider{background-color:var(--bcm-color-grey-5)}.divider.horizontal{height:1px;margin:4px 0}.divider.vertical{height:100%;width:1px;margin:0 4px}";
48
+
49
+ const BcmBadge = class {
50
+ constructor(hostRef) {
51
+ index.registerInstance(this, hostRef);
52
+ this.direction = 'horizontal';
53
+ this.width = '100';
54
+ this.hidden = false;
55
+ }
56
+ render() {
57
+ const classes = index$1.classnames('divider', this.direction);
58
+ const styles = {
59
+ width: this.width + '%'
60
+ };
61
+ const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
62
+ return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: classes, style: this.direction === 'horizontal' && styles })));
63
+ }
64
+ };
65
+ BcmBadge.style = dividerCss;
66
+
67
+ /**
68
+ * 'image' prop predefined values
69
+ */
70
+ var ImageProps;
71
+ (function (ImageProps) {
72
+ ImageProps["default"] = "default.svg";
73
+ ImageProps["simple"] = "simple.svg";
74
+ })(ImageProps || (ImageProps = {}));
75
+ /**
76
+ * 'size' prop predefined values
77
+ */
78
+ var SizeProps;
79
+ (function (SizeProps) {
80
+ SizeProps["small"] = "small";
81
+ SizeProps["medium"] = "medium";
82
+ SizeProps["big"] = "big";
83
+ })(SizeProps || (SizeProps = {}));
84
+
85
+ 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%}";
86
+
87
+ const BcmEmpty = class {
88
+ constructor(hostRef) {
89
+ index.registerInstance(this, hostRef);
90
+ /**
91
+ * Component Properties
92
+ */
93
+ this._image = ImageProps.default;
94
+ this.size = SizeProps.medium;
95
+ this.hidden = false;
96
+ }
97
+ /**
98
+ * @ComponentMethod
99
+ */
100
+ componentWillLoad() {
101
+ this.parseImage(this._image);
102
+ }
103
+ /**
104
+ * @desc
105
+ * @param newValue
106
+ * @returns {void}
107
+ */
108
+ parseImage(newValue) {
109
+ if (newValue) {
110
+ newValue in ImageProps
111
+ ? this.image = ImageProps[newValue]
112
+ : this.image = ImageProps.default;
113
+ }
114
+ }
115
+ render() {
116
+ const classes = index$1.classnames('empty', {
117
+ [this.size]: this.size
118
+ });
119
+ const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
120
+ return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: classes }, index.h("img", { src: index.getAssetPath(`./static/${this.image}`) }), index.h("div", { class: "content" }, this.text && (index.h("span", { class: "text" }, this.text)), index.h("slot", null)))));
121
+ }
122
+ static get assetsDirs() { return ["static"]; }
123
+ get el() { return index.getElement(this); }
124
+ static get watchers() { return {
125
+ "_image": ["parseImage"]
126
+ }; }
127
+ };
128
+ BcmEmpty.style = emptyCss;
129
+
130
+ 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}";
131
+
132
+ const lowercase = (str) => str.toLowerCase();
133
+ const BcmSearch = class {
134
+ constructor(hostRef) {
135
+ index.registerInstance(this, hostRef);
136
+ this.bcmOnSearch = index.createEvent(this, "bcm-on-search", 7);
137
+ this.bcmOnSearchValue = index.createEvent(this, "bcm-on-search-value", 7);
138
+ this.data = [];
139
+ this.searchFields = ['text', 'value' /*, ...*/];
140
+ this.returnField = 'idx';
141
+ this.searchSub = null;
142
+ this.hidden = false;
143
+ this.onlyChild = false;
144
+ this.clearable = false;
145
+ this.searchValue = '';
146
+ this.searchPlaceholder = 'Search';
147
+ this.disabled = false;
148
+ this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
149
+ this.results = [];
150
+ }
151
+ componentDidLoad() {
152
+ this.el.shadowRoot.querySelector('bcm-input').clearable = this.clearable;
153
+ }
154
+ listenBcmChange(e) {
155
+ e.stopPropagation();
156
+ }
157
+ async setValue(value) {
158
+ const input = this.el.shadowRoot.querySelector('bcm-input');
159
+ await input.setValue(value);
160
+ return value;
161
+ }
162
+ async select() {
163
+ const input = this.el.shadowRoot.querySelector('bcm-input');
164
+ await input.select();
165
+ this.bcmOnSearch.emit(true);
166
+ return true;
167
+ }
168
+ async setClear() {
169
+ const input = this.el.shadowRoot.querySelector('bcm-input');
170
+ await input.setClear();
171
+ this.bcmOnSearch.emit(true);
172
+ return true;
173
+ }
174
+ async searchArray(value, idFields = null) {
175
+ // console.log(this.data)
176
+ let cacheSearchFields = this.searchFields;
177
+ let arrayResult = [];
178
+ if (idFields) {
179
+ this.searchFields = [idFields];
180
+ }
181
+ value.forEach(item => {
182
+ // item = {[idFields]:item}
183
+ this.results = [];
184
+ // console.log(this.data)
185
+ this.nestedSearch(this.data, item, true);
186
+ arrayResult.push(...this.results);
187
+ });
188
+ this.searchFields = cacheSearchFields;
189
+ return arrayResult;
190
+ // const input = this.el.shadowRoot.querySelector("bcm-input");
191
+ // await input.setValue( value )
192
+ // return value
193
+ }
194
+ nestedSearch(items, value, equal = false) {
195
+ var result;
196
+ items && (items.map((item) => {
197
+ this.searchFields.map(searchField => {
198
+ if (searchField in item) {
199
+ // debugger;
200
+ item[searchField] = lowercase(String(item[searchField]));
201
+ if (this.onlyChild) {
202
+ if (item[this.searchSub]) {
203
+ var temp = this.nestedSearch(item[this.searchSub], value, equal);
204
+ if (temp) {
205
+ this.results.push((result = String(item[this.returnField])));
206
+ this.results.push(temp);
207
+ }
208
+ }
209
+ else {
210
+ if (equal) {
211
+ // console.log(value)
212
+ if (item[searchField] == lowercase(String(value))) {
213
+ // if (item == lowercase(value)) {
214
+ this.results.push((result = String(item[this.returnField])));
215
+ // this.results.push (result = String(item))
216
+ }
217
+ }
218
+ else {
219
+ if (item[searchField].indexOf(lowercase(value)) !== -1) {
220
+ this.results.push((result = String(item[this.returnField])));
221
+ }
222
+ }
223
+ }
224
+ }
225
+ else {
226
+ if (item[this.searchSub]) {
227
+ var temp = this.nestedSearch(item[this.searchSub], value, equal);
228
+ if (temp) {
229
+ this.results.push((result = String(item[this.returnField])));
230
+ this.results.push(temp);
231
+ }
232
+ }
233
+ if (equal) {
234
+ // console.log(value)
235
+ if (item[searchField] == lowercase(String(value))) {
236
+ // if (item == lowercase(value)) {
237
+ this.results.push((result = String(item[this.returnField])));
238
+ // this.results.push (result = String(item))
239
+ }
240
+ }
241
+ else {
242
+ if (item[searchField].indexOf(lowercase(value)) !== -1) {
243
+ this.results.push((result = String(item[this.returnField])));
244
+ }
245
+ }
246
+ }
247
+ }
248
+ });
249
+ }));
250
+ return result;
251
+ }
252
+ /**
253
+ * @desc
254
+ * @param value
255
+ */
256
+ inputChange(value) {
257
+ this.results = [];
258
+ // data prop'unda arama yapılacak (searchFields prop'u içerisindeki alanlar ile)
259
+ // arama sonucunda eşleyen itemların 'idx', index
260
+ // değerleri, array şeklinde root component'e
261
+ // event ile gönderilecek
262
+ // Örneğin value == 'to' olduğunda aşağıdaki
263
+ // sonuçlar filtrelenmeli
264
+ // -->
265
+ //{ text: 'Mateusz Eaton', idx: 2 },
266
+ //{ text: 'Tony Vickers', idx: 3 },
267
+ // result array'i eşleşen itemların
268
+ // index numaralarını tutacak
269
+ // results = [2, 3]
270
+ // Örnek arama
271
+ // #
272
+ this.nestedSearch(this.data, value);
273
+ this.results = Array.from(new Set(this.results));
274
+ (value && ((this.results.length > 0 && this.bcmOnSearch.emit(this.results)) || this.bcmOnSearch.emit([-1]))) || this.bcmOnSearch.emit(true);
275
+ this.bcmOnSearchValue.emit(value);
276
+ }
277
+ render() {
278
+ const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
279
+ return (index.h(index.Host, { class: hostClasses }, index.h("bcm-input", { placeholder: this.searchPlaceholder, "no-caption": true, "no-margin": true, "full-width": true, disabled: this.disabled, type: "search", "on-bcm-change": e => this.inputChange(e.detail), value: this.searchValue })));
280
+ }
281
+ get el() { return index.getElement(this); }
282
+ static get watchers() { return {
283
+ "searchValue": ["inputChange"]
284
+ }; }
285
+ };
286
+ BcmSearch.style = searchCss;
287
+
288
+ exports.bcm_checkbox_lite = BcmCheckboxLite;
289
+ exports.bcm_divider = BcmBadge;
290
+ exports.bcm_empty = BcmEmpty;
291
+ exports.bcm_search = BcmSearch;
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-ce8878ec.js');
6
6
  const index$1 = require('./index-2f62bdaf.js');
7
- require('./utils-43fda566.js');
8
- const elementDragger = require('./element-dragger-36fcb296.js');
7
+ require('./utils-60414768.js');
8
+ const elementDragger = require('./element-dragger-4a91c708.js');
9
9
 
10
10
  const colorpickerCss = "@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{position:relative;margin:0 0 8px 0}.color-picker{position:relative;width:200px}.color-picker.open .picker{opacity:1;visibility:visible;transform:scale(1) translateY(56px)}.picker{width:300px;position:absolute;top:0;z-index:1;background-color:#ffffff;border:1px solid #F6F6F6;box-shadow:0px 3px 3.6px 0.4px rgba(0, 0, 0, 0.15);opacity:0;visibility:hidden;transition:transform 0.2s ease, opacity 0.3s ease;transform:scale(0.8) translateY(-100px)}.label{display:flex;flex-direction:column;color:var(--bcm-color-grey-9);margin-bottom:4px}.caption-area{min-height:20px}.input-caption{display:block}.input{display:flex;cursor:pointer;border:1px solid var(--bcm-color-grey-5);border-radius:2px}.color{position:relative;width:100%;height:166px;user-select:none}.color img{width:100%;height:100%;user-select:none;pointer-events:none}.color-indicator{position:absolute;top:0;left:0;width:17px;height:17px;border:1px solid rgba(255, 255, 255, 0.82);box-shadow:0px 1px 2px rgba(0, 0, 0, 0.25);transform:translate(0, 0);border-radius:100%;user-select:none;box-sizing:border-box;pointer-events:none}.colors{position:relative;width:100%;height:16px;margin-top:8px}.colors img{width:100%;user-select:none;pointer-events:none}.colors-holder{position:absolute;top:50%;left:0;width:100%;height:8px;overflow:hidden;transform:translateY(-50%);border-radius:8px;user-select:none}.colors-indicator{position:absolute;top:50%;left:0;width:17px;height:17px;border:2px solid rgba(255, 255, 255, 0.82);box-shadow:0px 1px 4px rgba(0, 0, 0, 0.25);transform:translateY(-50%);border-radius:100%;user-select:none;box-sizing:border-box;pointer-events:none}.transparency{position:relative;width:100%;height:16px;margin-top:8px}.transparency-holder{position:absolute;top:50%;left:0;width:100%;height:8px;overflow:hidden;transform:translateY(-50%);border-radius:8px;background:transparent none repeat center center/20px}.transparency-indicator{position:absolute;top:50%;left:0;width:17px;height:17px;border:2px solid rgba(255, 255, 255, 0.82);box-shadow:0px 1px 4px rgba(0, 0, 0, 0.25);transform:translateY(-50%);border-radius:100%;user-select:none;box-sizing:border-box}.colors-transparency{padding:16px}.active-color{display:flex;align-items:center;width:100%;height:30px}.active-color .color-thumb{width:100%;height:100%;background-color:transparent;border-radius:1px 0 0 1px}.active-color .color-text{font-size:14px;color:#656565;margin-left:8px}.icon{display:flex;align-items:center;justify-content:center;cursor:pointer;width:30px;color:var(--bcm-color-grey-6)}.color-input{border:none;width:100%;padding:10px;outline:none;-webkit-tap-highlight-color:transparent}";
11
11
 
@@ -399,7 +399,7 @@ const BcmColorPicker = class {
399
399
  open: this.open
400
400
  });
401
401
  const captionClasses = index$1.classnames('size-1', 'input-caption', 'caption-' + captionType);
402
- return (index.h(index.Host, null, index.h("div", { class: classes, onClick: () => this.handleClick() }, label && index.h("label", { class: "label size-1" }, " ", label, " ", required && ('*'), " "), index.h("div", { class: "input" }, index.h("div", { class: "active-color" }, index.h("div", { class: "color-thumb", style: { backgroundColor: this.value } })), index.h("span", { class: "icon", slot: "suffix" }, index.h("bcm-icon", { icon: "bg-colors" }))), !noCaption && (index.h("div", { class: "caption-area" }, captionType == "error"
402
+ return (index.h(index.Host, null, index.h("div", { class: classes, onClick: () => this.handleClick() }, label && index.h("div", null, index.h("bcm-label", { tooltip: this.tooltip, type: captionType, value: label, required: required })), index.h("div", { class: "input" }, index.h("div", { class: "active-color" }, index.h("div", { class: "color-thumb", style: { backgroundColor: this.value } })), index.h("span", { class: "icon", slot: "suffix" }, index.h("bcm-icon", { icon: "bg-colors" }))), !noCaption && (index.h("div", { class: "caption-area" }, captionType == "error"
403
403
  ? index.h("span", { class: captionClasses }, " ", captionError, " ")
404
404
  : caption && index.h("span", { class: captionClasses }, " ", caption, " "))), index.h("div", { class: "picker" }, index.h("div", { class: "input" }, index.h("input", { type: "text", class: "color-input", maxlength: "7", ref: el => (this.inputElement = el), onKeyUp: (e) => this.handleColorInputKeyUp(e) })), index.h("div", { class: "color", onMouseDown: () => this.mouseState = 'down', style: { backgroundColor: this.hsvtorgb({ h: this.h, s: this.s, v: this.v }).hex }, ref: el => (this.colorElement = el) }, index.h("img", { src: index.getAssetPath('./static/color.svg') }), index.h("div", { class: "color-indicator", ref: el => (this.colorIndicatorElement = el) })), index.h("div", { class: "colors-transparency" }, index.h("div", { class: "colors", onMouseDown: () => this.mouseState = 'down', ref: el => (this.colorsElement = el) }, index.h("div", { class: "colors-holder" }, index.h("img", { src: index.getAssetPath('./static/colors.svg') })), index.h("div", { class: "colors-indicator", ref: el => (this.colorsIndicatorElement = el) })))))));
405
405
  }
@@ -4,9 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-ce8878ec.js');
6
6
  const index$1 = require('./index-2f62bdaf.js');
7
- const utils = require('./utils-43fda566.js');
8
- const elementDragger = require('./element-dragger-36fcb296.js');
9
- const popoverPlacement = require('./popover-placement-ac023521.js');
7
+ require('./utils-60414768.js');
8
+ const elementDragger = require('./element-dragger-4a91c708.js');
10
9
 
11
10
  var Months;
12
11
  (function (Months) {
@@ -171,7 +170,7 @@ const BcmDatetimePicker = class {
171
170
  const errorObject1 = { isValid: false, value: this.valueText };
172
171
  const errorObject2 = { isValid: false, value: this.inputElement.value };
173
172
  if (!newValue) {
174
- this.change.emit(errorObject2);
173
+ this.change.emit();
175
174
  return;
176
175
  }
177
176
  if (this.type !== Types.range && this.error) {
@@ -1231,137 +1230,4 @@ const BcmDatetimePicker = class {
1231
1230
  };
1232
1231
  BcmDatetimePicker.style = datetimePickerCss;
1233
1232
 
1234
- const tooltipCss = "@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}.tooltip{position:relative;}.tooltip .box{position:absolute;display:none;box-sizing:border-box;background-color:#262626;border:1px solid #262626;border-radius:2px;z-index:10700;width:max-content;padding:4px 8px;color:var(--bcm-color-grey-1)}.tooltip::after{content:\"\";position:absolute;display:none;border:6px solid;z-index:10700}.tooltip.open .box,.tooltip.open::after{display:block}.tooltip.top .box{bottom:100%;margin-bottom:8px}.tooltip.top::after{bottom:100%;margin-bottom:-4px;border-color:#262626 transparent transparent transparent}.tooltip.bottom .box{top:100%;margin-top:8px}.tooltip.bottom::after{top:100%;margin-top:-4px;border-color:transparent transparent #262626 transparent}.tooltip.left .box{right:100%;margin-right:8px}.tooltip.left::after{right:100%;margin-right:-4px;border-color:transparent transparent transparent #262626}.tooltip.right .box{left:100%;margin-left:8px}.tooltip.right::after{left:100%;margin-left:-4px;border-color:transparent #262626 transparent transparent}.tooltip.top.center .box,.tooltip.bottom.center .box{left:50%;transform:translateX(-50%)}.tooltip.top.center::after,.tooltip.bottom.center::after{left:50%;transform:translateX(-50%)}.tooltip.top.start .box,.tooltip.bottom.start .box{left:0}.tooltip.top.start::after,.tooltip.bottom.start::after{left:8px}.tooltip.top.end .box,.tooltip.bottom.end .box{right:0}.tooltip.top.end::after,.tooltip.bottom.end::after{right:8px}.tooltip.left.center .box,.tooltip.right.center .box{top:50%;transform:translateY(-50%)}.tooltip.left.center::after,.tooltip.right.center::after{top:50%;transform:translateY(-50%)}.tooltip.left.start .box,.tooltip.right.start .box{top:0}.tooltip.left.start::after,.tooltip.right.start::after{top:4px}.tooltip.left.end .box,.tooltip.right.end .box{bottom:0}.tooltip.left.end::after,.tooltip.right.end::after{bottom:4px}";
1235
-
1236
- const BcmTooltip = class {
1237
- constructor(hostRef) {
1238
- index.registerInstance(this, hostRef);
1239
- this.onShow = index.createEvent(this, "bcm-show", 7);
1240
- this.onHide = index.createEvent(this, "bcm-hide", 7);
1241
- this.placement = 'top';
1242
- this.trigger = 'hover';
1243
- this.hidden = false;
1244
- this._internal_id = (Math.random() * 4).toString(16).replace('.', '');
1245
- }
1246
- async show() {
1247
- // Prevent subsequent calls
1248
- if (this.open) {
1249
- return;
1250
- }
1251
- this.open = true;
1252
- this.onShow.emit();
1253
- }
1254
- async hide() {
1255
- // Prevent subsequent calls
1256
- if (!this.open) {
1257
- return;
1258
- }
1259
- this.open = false;
1260
- this.onHide.emit();
1261
- }
1262
- handleClickOutside(e) {
1263
- if (!this.host.contains(e.target)) {
1264
- if (this.open) {
1265
- this.open = false;
1266
- }
1267
- }
1268
- }
1269
- async handleOpen() {
1270
- await this.createElement();
1271
- var tooltipBox = document.getElementById("box" + this._internal_id).shadowRoot.querySelector(".tooltip-box");
1272
- if (tooltipBox && tooltipBox.querySelector(".box")) {
1273
- var tooltipBoxIn = tooltipBox.querySelector(".box");
1274
- popoverPlacement.popoverPlacement(tooltipBoxIn, this.host, this.placement, (place) => this.placement = place);
1275
- tooltipBox.classList.toggle("open");
1276
- }
1277
- }
1278
- async createElement() {
1279
- var target = this.host.getBoundingClientRect();
1280
- var placementString = String([...this.getPlacement()]).replace(',', ' ');
1281
- var element;
1282
- if (!document.getElementById("box" + this._internal_id)) {
1283
- element = document.createElement("bcm-tooltip-box");
1284
- element.setAttribute("id", "box" + this._internal_id);
1285
- }
1286
- else {
1287
- element = document.getElementById("box" + this._internal_id);
1288
- }
1289
- element.setAttribute("message", this.message);
1290
- // element.setAttribute("placement", placementString)
1291
- element.style.position = "absolute";
1292
- // element.style.top = target.top + "px"
1293
- // element.style.left = (target.left + (target.width / 2)) + "px"
1294
- element.setAttribute("placement", placementString);
1295
- // element.style.zIndex = "999999999"
1296
- document.body.appendChild(element);
1297
- await utils.delay(50);
1298
- var tooltipBox = document.getElementById("box" + this._internal_id).shadowRoot.querySelector(".tooltip-box");
1299
- if (tooltipBox && tooltipBox.querySelector(".box")) {
1300
- var tooltipBoxIn = tooltipBox.querySelector(".box");
1301
- popoverPlacement.popoverPlacement(tooltipBoxIn, this.host, this.placement, (place) => this.placement = place);
1302
- }
1303
- element.style.top = popoverPlacement.popoverBoxPlacement(this.placement, target)[0] + "px";
1304
- element.style.left = popoverPlacement.popoverBoxPlacement(this.placement, target)[1] + "px";
1305
- }
1306
- hasTrigger(trigger) {
1307
- return this.trigger === trigger;
1308
- }
1309
- getPlacement() {
1310
- const placements = this.placement.split('-');
1311
- if (placements.length === 1) {
1312
- placements.push('center');
1313
- }
1314
- return placements;
1315
- }
1316
- /*
1317
- Trigger Functions
1318
- */
1319
- handleMouseOver() {
1320
- if (this.hasTrigger('hover')) {
1321
- this.show();
1322
- }
1323
- }
1324
- handleMouseOut() {
1325
- if (this.hasTrigger('hover')) {
1326
- this.hide();
1327
- }
1328
- }
1329
- handleClick() {
1330
- if (this.hasTrigger('click')) {
1331
- this.open ? this.hide() : this.show();
1332
- }
1333
- }
1334
- handleFocus() {
1335
- if (this.hasTrigger('focus')) {
1336
- this.show();
1337
- }
1338
- }
1339
- handleBlur() {
1340
- if (this.hasTrigger('focus')) {
1341
- this.hide();
1342
- }
1343
- }
1344
- async componentDidRender() {
1345
- await this.createElement();
1346
- var tooltipBox = document.getElementById("box" + this._internal_id).shadowRoot.querySelector(".tooltip-box");
1347
- if (tooltipBox && tooltipBox.querySelector(".box")) {
1348
- var tooltipBoxIn = tooltipBox.querySelector(".box");
1349
- popoverPlacement.popoverPlacement(tooltipBoxIn, this.host, this.placement, (place) => this.placement = place);
1350
- }
1351
- }
1352
- render() {
1353
- const classes = index$1.classnames('tooltip', ...this.getPlacement(), {
1354
- // 'open': this.open
1355
- });
1356
- const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
1357
- return (index.h(index.Host, { class: hostClasses, onClick: () => this.handleClick(), onMouseOver: () => this.handleMouseOver(), onMouseOut: () => this.handleMouseOut(), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur(), tabindex: 0 }, index.h("span", { class: classes }, index.h("span", { class: "box size-2" }, this.message), index.h("slot", null))));
1358
- }
1359
- get host() { return index.getElement(this); }
1360
- static get watchers() { return {
1361
- "open": ["handleOpen"]
1362
- }; }
1363
- };
1364
- BcmTooltip.style = tooltipCss;
1365
-
1366
1233
  exports.bcm_datetime_picker = BcmDatetimePicker;
1367
- exports.bcm_tooltip = BcmTooltip;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-ce8878ec.js');
6
6
  const index$1 = require('./index-2f62bdaf.js');
7
- const utils = require('./utils-43fda566.js');
7
+ const utils = require('./utils-60414768.js');
8
8
 
9
9
  const dropdownCss = "@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;width:fit-content}:host(.hidden){display:none}*{box-sizing:border-box}::-webkit-details-marker{display:none}summary{display:inline-block}.items-container{--group-shadow:0px 4px 4px rgba(0, 0, 0, 0.25)}details{position:relative}.items-container{min-width:150px;transition:height 0.3s ease;position:absolute;left:0;transition:height 0.3s ease;background-color:#ffffff;border-radius:2px;box-shadow:var(--group-shadow);z-index:10000}";
10
10