bromcom-ui 2.11.1-rc.9-5 → 2.11.1-rc.9-7

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 (203) hide show
  1. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  2. package/dist/bromcom-ui/p-053dc717.entry.js +5 -0
  3. package/dist/bromcom-ui/{p-51ba5764.entry.js → p-070c3309.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-62d2c650.entry.js → p-0b276355.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-beaec5b8.js → p-0bda558d.js} +1 -1
  6. package/dist/bromcom-ui/{p-77ef609e.entry.js → p-1c801d0c.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-a486613b.entry.js → p-1c9314bd.entry.js} +1 -1
  8. package/dist/bromcom-ui/p-228b5376.entry.js +16 -0
  9. package/dist/bromcom-ui/{p-9b2e26f6.entry.js → p-23c24cf7.entry.js} +1 -1
  10. package/dist/bromcom-ui/{p-d59d9687.entry.js → p-2aaeb247.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-788d1fb1.entry.js → p-30875843.entry.js} +1 -1
  12. package/dist/bromcom-ui/p-3238bf36.js +5 -0
  13. package/dist/bromcom-ui/p-33b063f9.entry.js +5 -0
  14. package/dist/bromcom-ui/{p-b0dc804a.entry.js → p-34d17092.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-a0d6d680.js → p-35f2e15a.js} +1 -1
  16. package/dist/bromcom-ui/{p-0745c696.js → p-39c6ede5.js} +1 -1
  17. package/dist/bromcom-ui/{p-0fa6d3a8.entry.js → p-3e7f3bd6.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-eca0acda.js → p-43c578cf.js} +1 -1
  19. package/dist/bromcom-ui/{p-6bea284a.js → p-499d8454.js} +1 -1
  20. package/dist/bromcom-ui/{p-c75b2352.entry.js → p-49c6a987.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-cb56a1d9.entry.js → p-4c57d895.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-dce99e4d.entry.js → p-4cc727ff.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-c77541f4.js → p-4d2bf0e7.js} +2 -2
  24. package/dist/bromcom-ui/{p-5d670fd7.entry.js → p-594a57c3.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-a0f44b56.entry.js → p-5dea2654.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-57678987.entry.js → p-6220fb40.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-a6aa173f.entry.js → p-626b805d.entry.js} +1 -1
  28. package/dist/bromcom-ui/p-64496819.entry.js +5 -0
  29. package/dist/bromcom-ui/{p-5dcc28c3.entry.js → p-64d9f96b.entry.js} +1 -1
  30. package/dist/bromcom-ui/p-64fad38b.js +11 -0
  31. package/dist/bromcom-ui/{p-c49b6287.entry.js → p-69260d36.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-b51e5b06.js → p-6d1bc914.js} +1 -1
  33. package/dist/bromcom-ui/{p-8c018ae0.js → p-6f2e4c9b.js} +1 -1
  34. package/dist/bromcom-ui/{p-7e44e6b5.js → p-6f861fed.js} +1 -1
  35. package/dist/bromcom-ui/{p-e8eaa3bb.entry.js → p-7d18ce0e.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-a2864264.js → p-7f776577.js} +1 -1
  37. package/dist/bromcom-ui/{p-201b04e8.entry.js → p-8153e18d.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-6657830f.js → p-85eedabc.js} +1 -1
  39. package/dist/bromcom-ui/{p-8e972c24.entry.js → p-87f4460b.entry.js} +1 -1
  40. package/dist/bromcom-ui/{p-2cd6cdee.js → p-8e683b32.js} +1 -1
  41. package/dist/bromcom-ui/{p-4b44c0ea.entry.js → p-90ce383c.entry.js} +1 -1
  42. package/dist/bromcom-ui/{p-d3b38aff.entry.js → p-91f04eca.entry.js} +1 -1
  43. package/dist/bromcom-ui/{p-4342cdf8.entry.js → p-9ddea72c.entry.js} +1 -1
  44. package/dist/bromcom-ui/p-9e16b47a.entry.js +5 -0
  45. package/dist/bromcom-ui/{p-aeb4be41.js → p-a2df6c19.js} +1 -1
  46. package/dist/bromcom-ui/{p-160fba10.entry.js → p-a3d0c1f4.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-8bb0fe5d.js → p-aa6ff189.js} +1 -1
  48. package/dist/bromcom-ui/{p-856dac72.entry.js → p-ab37f4bf.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-0e3e8cc2.entry.js → p-b0a85220.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-9586997f.js → p-b25f9130.js} +1 -1
  51. package/dist/bromcom-ui/{p-59f7fa84.entry.js → p-ba9eff2a.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-9b59c689.entry.js → p-bdc78a44.entry.js} +1 -1
  53. package/dist/bromcom-ui/{p-5bd4ba44.entry.js → p-cd0f94a1.entry.js} +1 -1
  54. package/dist/bromcom-ui/{p-32c55505.entry.js → p-d551a51d.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-33f3c5c5.entry.js → p-da1af01e.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-29263575.entry.js → p-e1894ee9.entry.js} +1 -1
  57. package/dist/bromcom-ui/{p-1b558b0f.entry.js → p-ece578ef.entry.js} +1 -1
  58. package/dist/bromcom-ui/{p-2b42d77e.entry.js → p-f0e30624.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-2e9c0070.entry.js → p-fb784bcd.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-2d9b633e.entry.js → p-ffbd4d1e.entry.js} +1 -1
  61. package/dist/cjs/{bcm-accordion_47.cjs.entry.js → bcm-accordion_63.cjs.entry.js} +41891 -20022
  62. package/dist/cjs/bcm-alert.cjs.entry.js +3 -3
  63. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +5 -5
  64. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +5 -5
  65. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  66. package/dist/cjs/bcm-caption.cjs.entry.js +5 -5
  67. package/dist/cjs/bcm-card.cjs.entry.js +4 -4
  68. package/dist/cjs/bcm-chip-group.cjs.entry.js +5 -5
  69. package/dist/cjs/bcm-date-picker.cjs.entry.js +2 -2
  70. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +4 -4
  71. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  72. package/dist/cjs/bcm-form-2.cjs.entry.js +3 -3
  73. package/dist/cjs/bcm-input-2.cjs.entry.js +2 -2
  74. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  75. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +5 -5
  76. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +5 -5
  77. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +5 -5
  78. package/dist/cjs/bcm-modal-2.cjs.entry.js +5 -5
  79. package/dist/cjs/bcm-number-input.cjs.entry.js +5 -5
  80. package/dist/cjs/bcm-popover.cjs.entry.js +5 -5
  81. package/dist/cjs/bcm-range.cjs.entry.js +2 -2
  82. package/dist/cjs/bcm-skeleton.cjs.entry.js +5 -5
  83. package/dist/cjs/bcm-table.cjs.entry.js +5 -5
  84. package/dist/cjs/bcm-tag.cjs.entry.js +3 -3
  85. package/dist/cjs/bcm-time-picker.cjs.entry.js +2 -2
  86. package/dist/cjs/bcm-toast.cjs.entry.js +3 -3
  87. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  88. package/dist/cjs/{generate-e4106db0.js → generate-0e132127.js} +1 -1
  89. package/dist/cjs/{global-c0174398.js → global-da1b03a6.js} +1 -1
  90. package/dist/cjs/loader.cjs.js +3 -3
  91. package/dist/cjs/{number-helper-0846aefe.js → number-helper-1de01e62.js} +1 -1
  92. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +5 -5
  93. package/dist/cjs/old-bcm-popover.cjs.entry.js +2 -2
  94. package/dist/cjs/{package-822a0e3f.js → package-1aa89f41.js} +1 -1
  95. package/dist/cjs/{popover-placement-02e6101b.js → popover-placement-d1aa81f0.js} +1 -1
  96. package/dist/cjs/{slot-template-df7b5b59.js → slot-template-29229e8f.js} +1 -1
  97. package/dist/cjs/{string-helper-9cdfb273.js → string-helper-1ee6dc21.js} +4 -2
  98. package/dist/cjs/{validators-0fadce56.js → validators-b7892533.js} +1 -1
  99. package/dist/collection/components/organism/list/list.js +2 -2
  100. package/dist/collection/components/other_deprecated/select/select.js +1 -1
  101. package/dist/collection/components/other_deprecated/tabs/tab.css +15 -15
  102. package/dist/collection/helper/string-helper.js +4 -2
  103. package/dist/components/bcm-select.js +1 -1
  104. package/dist/components/bcm-tab.js +1 -1
  105. package/dist/components/generate.js +1 -1
  106. package/dist/components/list.js +2 -2
  107. package/dist/components/string-helper.js +4 -2
  108. package/dist/esm/{_commonjsHelpers-82aa9212.js → _commonjsHelpers-7002e5de.js} +1 -1
  109. package/dist/esm/{bcm-accordion_47.entry.js → bcm-accordion_63.entry.js} +41922 -20069
  110. package/dist/esm/bcm-alert.entry.js +6 -6
  111. package/dist/esm/bcm-attendance-actions-comment.entry.js +10 -10
  112. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +11 -11
  113. package/dist/esm/bcm-autocomplete.entry.js +2 -2
  114. package/dist/esm/bcm-breadcrumb.entry.js +5 -5
  115. package/dist/esm/bcm-caption.entry.js +12 -12
  116. package/dist/esm/bcm-card.entry.js +9 -9
  117. package/dist/esm/bcm-chip-group.entry.js +13 -13
  118. package/dist/esm/bcm-colorpicker.entry.js +4 -4
  119. package/dist/esm/bcm-date-picker.entry.js +6 -6
  120. package/dist/esm/bcm-datetime-picker.entry.js +10 -10
  121. package/dist/esm/bcm-default.entry.js +4 -4
  122. package/dist/esm/bcm-error-layout.entry.js +2 -2
  123. package/dist/esm/bcm-form-2.entry.js +5 -5
  124. package/dist/esm/bcm-input-2.entry.js +6 -6
  125. package/dist/esm/bcm-input-custom.entry.js +5 -5
  126. package/dist/esm/bcm-input-dropdown.entry.js +12 -12
  127. package/dist/esm/bcm-message.entry.js +2 -2
  128. package/dist/esm/bcm-modal-2-footer.entry.js +11 -11
  129. package/dist/esm/bcm-modal-2-header.entry.js +10 -10
  130. package/dist/esm/bcm-modal-2.entry.js +11 -11
  131. package/dist/esm/bcm-notification.entry.js +2 -2
  132. package/dist/esm/bcm-number-input.entry.js +12 -12
  133. package/dist/esm/bcm-overlay_2.entry.js +3 -3
  134. package/dist/esm/bcm-popover.entry.js +10 -10
  135. package/dist/esm/bcm-range.entry.js +6 -6
  136. package/dist/esm/bcm-react-number.entry.js +2 -2
  137. package/dist/esm/bcm-result.entry.js +2 -2
  138. package/dist/esm/bcm-select-group.entry.js +2 -2
  139. package/dist/esm/bcm-select-option.entry.js +2 -2
  140. package/dist/esm/bcm-skeleton.entry.js +10 -10
  141. package/dist/esm/bcm-tab-pane.entry.js +2 -2
  142. package/dist/esm/bcm-table.entry.js +11 -11
  143. package/dist/esm/bcm-tabs-content.entry.js +3 -3
  144. package/dist/esm/bcm-tag.entry.js +7 -7
  145. package/dist/esm/bcm-time-picker.entry.js +6 -6
  146. package/dist/esm/bcm-timeline-item.entry.js +2 -2
  147. package/dist/esm/bcm-timeline.entry.js +2 -2
  148. package/dist/esm/bcm-toast.entry.js +7 -7
  149. package/dist/esm/bromcom-ui.js +3 -3
  150. package/dist/esm/{caption-template-d7953d13.js → caption-template-3cd42c3b.js} +1 -1
  151. package/dist/esm/{color-helper-74614f24.js → color-helper-ba15b0d8.js} +2 -2
  152. package/dist/esm/{colors-dd598eea.js → colors-ed4e7579.js} +1 -1
  153. package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-b75266e6.js} +1 -1
  154. package/dist/esm/{generate-dbe68f53.js → generate-7657b903.js} +2 -2
  155. package/dist/esm/{global-0bea93f1.js → global-45ed375c.js} +1 -1
  156. package/dist/esm/{index-f549811f.js → index-00c8a8f7.js} +1 -1
  157. package/dist/esm/{index-036974d7.js → index-0d3a56ec.js} +1 -1
  158. package/dist/esm/{label-template-a26f76c0.js → label-template-ef97aadb.js} +1 -1
  159. package/dist/esm/loader.js +3 -3
  160. package/dist/esm/{number-helper-4a35e676.js → number-helper-6a1c621e.js} +1 -1
  161. package/dist/esm/old-bcm-popover-box.entry.js +10 -10
  162. package/dist/esm/old-bcm-popover.entry.js +5 -5
  163. package/dist/esm/{package-c9093920.js → package-b7d0ee8c.js} +1 -1
  164. package/dist/esm/{popover-placement-d12fec40.js → popover-placement-1b15cc99.js} +1 -1
  165. package/dist/esm/{slot-template-2a19b2db.js → slot-template-0d958dcc.js} +1 -1
  166. package/dist/esm/{string-helper-3592bdc2.js → string-helper-b4602002.js} +5 -3
  167. package/dist/esm/{utils-57652744.js → utils-7727d09e.js} +1 -1
  168. package/dist/esm/{validators-0d9bab98.js → validators-4ce708f9.js} +1 -1
  169. package/package.json +1 -1
  170. package/dist/bromcom-ui/p-1345d51b.entry.js +0 -5
  171. package/dist/bromcom-ui/p-270e1b24.entry.js +0 -5
  172. package/dist/bromcom-ui/p-376a20ed.js +0 -5
  173. package/dist/bromcom-ui/p-4393b33e.entry.js +0 -5
  174. package/dist/bromcom-ui/p-59327403.entry.js +0 -5
  175. package/dist/bromcom-ui/p-5f345ad2.entry.js +0 -5
  176. package/dist/bromcom-ui/p-6ddd9d7e.entry.js +0 -5
  177. package/dist/bromcom-ui/p-77b1dbdd.entry.js +0 -5
  178. package/dist/bromcom-ui/p-8b6d3a37.js +0 -5
  179. package/dist/bromcom-ui/p-93c016f1.entry.js +0 -5
  180. package/dist/bromcom-ui/p-9b8fcf49.entry.js +0 -16
  181. package/dist/bromcom-ui/p-a1d44a10.entry.js +0 -5
  182. package/dist/bromcom-ui/p-c1a992e7.entry.js +0 -5
  183. package/dist/bromcom-ui/p-d6cee6ba.entry.js +0 -5
  184. package/dist/bromcom-ui/p-e0ab7b38.js +0 -11
  185. package/dist/bromcom-ui/p-fc787048.entry.js +0 -5
  186. package/dist/cjs/bcm-checkbox-lite_8.cjs.entry.js +0 -2509
  187. package/dist/cjs/bcm-collapse-group.cjs.entry.js +0 -43
  188. package/dist/cjs/bcm-collapse.cjs.entry.js +0 -62
  189. package/dist/cjs/bcm-old-input.cjs.entry.js +0 -397
  190. package/dist/cjs/bcm-old-tag_2.cjs.entry.js +0 -145
  191. package/dist/cjs/bcm-select.cjs.entry.js +0 -1195
  192. package/dist/cjs/bcm-tab.cjs.entry.js +0 -72
  193. package/dist/cjs/bcm-tabs.cjs.entry.js +0 -370
  194. package/dist/cjs/lodash-917168d7.js +0 -17199
  195. package/dist/esm/bcm-checkbox-lite_8.entry.js +0 -2498
  196. package/dist/esm/bcm-collapse-group.entry.js +0 -39
  197. package/dist/esm/bcm-collapse.entry.js +0 -58
  198. package/dist/esm/bcm-old-input.entry.js +0 -393
  199. package/dist/esm/bcm-old-tag_2.entry.js +0 -140
  200. package/dist/esm/bcm-select.entry.js +0 -1191
  201. package/dist/esm/bcm-tab.entry.js +0 -68
  202. package/dist/esm/bcm-tabs.entry.js +0 -366
  203. package/dist/esm/lodash-4197be99.js +0 -17197
@@ -1,72 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- 'use strict';
6
-
7
- Object.defineProperty(exports, '__esModule', { value: true });
8
-
9
- const index = require('./index-c591ecec.js');
10
- const types = require('./types-3871235f.js');
11
- const index$1 = require('./index-95ae50d0.js');
12
- require('./_commonjsHelpers-ed84c3ca.js');
13
-
14
- const tabCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}:host{display:block}:host(.hidden){display:none}slot[name=icon-suffix]::slotted(bcm-icon){margin-left:10px}slot[name=icon-prefix]::slotted(bcm-icon){margin-right:10px}.tab{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;padding:var(--bcm-tab-vertical-space) 14px var(--bcm-tab-vertical-space) 14px;color:var(--bcm-new-ds-color-slate-500);font-size:12px;line-height:calc(12px + 8px);cursor:pointer;user-select:none}.tab:hover{color:var(--bcm-new-ds-color-slate-600)}.tab:active{color:var(--bcm-new-ds-color-slate-700)}.tab:focus-visible{color:var(--bcm-new-ds-color-slate-800)}.tab.active{color:var(--bcm-new-ds-color-blue-500)}.tab.active::before{content:\"\";bottom:-2px;left:0;width:100%;height:2px;background-color:var(--bcm-new-ds-color-blue-500);position:absolute;z-index:1}.tab.active:hover{color:var(--bcm-new-ds-color-blue-600)}.tab.active:active{color:var(--bcm-new-ds-color-blue-700)}.tab.active:focus-visible{color:var(--bcm-new-ds-color-blue-800)}.tab:active,.tab:focus{color:var(--bcm-color-prime-blue-7)}.tab[disabled],.tab.disabled{color:var(--bcm-color-grey-6);cursor:not-allowed}.tab.closable:not(.pane){padding-left:0;padding-right:0}.tab.closable .close{margin-left:34px}.tab.pane{border:1px solid transparent;border-bottom:none;border-color:var(--bcm-color-grey-5);background-color:var(--bcm-color-grey-3);border-radius:2px 2px 0 0}.tab.pane.active{background-color:#ffffff}.badge{padding-left:8px;position:relative}.badge.blink:after{content:\"\";position:absolute;top:8px;left:9px;background:black;border-radius:50%;height:7px;width:7px;box-shadow:0 0 0 0 rgba(0, 0, 0, 0);transform:scale(1)}.badge.success:after{animation:pulsesuccess 2s infinite;background-color:#52C41A}.badge.error:after{animation:pulseerror 2s infinite;background-color:#F5222D}.badge.default:after{animation:pulsedefault 2s infinite;background-color:#D9D9D9}.badge.processing:after{animation:pulseprocessing 2s infinite;background-color:#4293CF}.badge.warning:after{animation:pulsewarning 2s infinite;background-color:#FA8C16}@keyframes pulsesuccess{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(82, 196, 26, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}@keyframes pulseerror{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(245, 34, 45, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}@keyframes pulsedefault{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(217, 217, 217, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}@keyframes pulseprocessing{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(66, 147, 207, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}@keyframes pulsewarning{0%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(250, 140, 22, 0.7)}70%{transform:scale(1);box-shadow:0 0 0 10px rgba(0, 0, 0, 0)}100%{transform:scale(0.95);box-shadow:0 0 0 0 rgba(0, 0, 0, 0)}}";
15
-
16
- const BcmTab = class {
17
- constructor(hostRef) {
18
- index.registerInstance(this, hostRef);
19
- this.click = index.createEvent(this, "bcm-click", 7);
20
- this.close = index.createEvent(this, "bcm-close", 7);
21
- this.type = types.TypeProps.normal;
22
- this.active = false;
23
- this.disabled = false;
24
- this.closable = false;
25
- this.tabId = (Math.random() * 4).toString(16).replace('.', '');
26
- this.formControl = null;
27
- this.hidden = false;
28
- this.status = 'default';
29
- this.badge = false;
30
- this.blink = false;
31
- }
32
- /**
33
- * @desc
34
- */
35
- handleClose() {
36
- if (this.disabled)
37
- return;
38
- this.close.emit();
39
- }
40
- /**
41
- * @desc
42
- * @param event
43
- */
44
- handleClick(event) {
45
- if (this.disabled)
46
- return;
47
- const targetElement = event.target;
48
- // Detect close icon clicked
49
- // #
50
- if (String(targetElement.tagName).toLowerCase() == 'bcm-icon' && targetElement.classList.contains('close')) {
51
- this.close.emit(event);
52
- }
53
- else {
54
- this.click.emit(event);
55
- }
56
- }
57
- render() {
58
- const { active, disabled, closable } = this;
59
- const classes = index$1.classnames('tab', [this.type], {
60
- 'active': active,
61
- 'disabled': disabled,
62
- 'closable': closable
63
- });
64
- const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
65
- const badgeClasses = index$1.classnames('badge');
66
- return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: classes, onClick: (event) => this.handleClick(event) }, index.h("slot", { name: "icon-prefix" }), index.h("slot", null), index.h("slot", { name: "icon-suffix" }), this.closable && (index.h("bcm-icon", { class: "close", icon: "far fa-times" })), this.badge && (index.h("bcm-badge", { blink: true, class: badgeClasses, size: "small", status: this.status })))));
67
- }
68
- get el() { return index.getElement(this); }
69
- };
70
- BcmTab.style = tabCss;
71
-
72
- exports.bcm_tab = BcmTab;
@@ -1,370 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- 'use strict';
6
-
7
- Object.defineProperty(exports, '__esModule', { value: true });
8
-
9
- const index = require('./index-c591ecec.js');
10
- const types = require('./types-3871235f.js');
11
- const utils = require('./utils-fc077139.js');
12
- const index$1 = require('./index-95ae50d0.js');
13
- require('./_commonjsHelpers-ed84c3ca.js');
14
-
15
- const tabsCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");.size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}:host{display:block}:host(.hidden){display:none}::slotted(bcm-tab:not(:last-child)){margin-right:32px}.tabs{position:relative;display:flex;flex-wrap:wrap}.tabs.large{--bcm-tab-vertical-space:16px;--bcm-tab-font-size:16px;--bcm-tab-line-height:24px}.tabs.medium{--bcm-tab-vertical-space:11px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.small{--bcm-tab-vertical-space:7px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.pane{--bcm-tab-vertical-space:9px;--bcm-tab-font-size:14px;--bcm-tab-line-height:22px}.tabs.full-width{width:100%;display:flex;align-items:center;justify-content:center}.tabs.full-width ::slotted(bcm-tab){flex:1}.tabs.underline:after{content:\"\";margin-top:0;z-index:0;left:0;width:100%;height:2px;background-color:var(--bcm-color-grey-4)}.tabs.animatable:before{transition:all 0.4s ease}.tabs.pane ::slotted(bcm-tab:not(:last-child)){margin-right:2px}.tabs.pane:before{display:none}.tabs.vertical{flex-direction:column;width:fit-content}.tabs.vertical:before{content:\"\";position:absolute;top:var(--bcm-tabs-line-top);left:var(--bcm-tabs-line-left);right:var(--bcm-tabs-line-right);width:var(--bcm-tabs-line-width);height:var(--bcm-tabs-line-height);background-color:var(--bcm-color-prime-blue-6)}.tabs.vertical ::slotted(bcm-tab){margin-right:0}";
16
-
17
- const BcmTabs = class {
18
- constructor(hostRef) {
19
- index.registerInstance(this, hostRef);
20
- this.click = index.createEvent(this, "bcm-click", 7);
21
- this.change = index.createEvent(this, "bcm-change", 7);
22
- this.bcmTabsActiveItem = index.createEvent(this, "bcm-tabs-active-item", 7);
23
- /**
24
- * Component Private variables
25
- */
26
- this.tabs = [];
27
- this.firstInit = true;
28
- this.count = 0;
29
- this.size = types.SizeProps.large;
30
- this.type = types.TypeProps.normal;
31
- this.direction = types.DirectionProps.horizontal;
32
- this.hidden = false;
33
- this.fullWidth = false;
34
- this.underline = true;
35
- this.activeChild = 1;
36
- this.lineOpts = { top: '0px', left: '0px', right: '0px', width: '0px', height: '0px' };
37
- this.prevButton = null;
38
- this.nextButton = null;
39
- this.completeButton = null;
40
- this.prevButtonState = 'disabled';
41
- this.nextButtonState = 'disabled';
42
- this.completeButtonState = 'disabled';
43
- }
44
- async config(_config) {
45
- if (_config['prevButton']) {
46
- if (_config['prevButton']['id']) {
47
- var prevButtonId = "#" + _config['prevButton']['id'];
48
- this.prevButton = document.querySelector(prevButtonId);
49
- }
50
- if (_config['prevButton']['state']) {
51
- this.prevButtonState = _config['prevButton']['state'];
52
- }
53
- }
54
- if (_config['nextButton']) {
55
- if (_config['nextButton']['id']) {
56
- var nextButtonId = "#" + _config['nextButton']['id'];
57
- this.nextButton = document.querySelector(nextButtonId);
58
- }
59
- if (_config['nextButton']['state']) {
60
- this.nextButtonState = _config['nextButton']['state'];
61
- }
62
- }
63
- if (_config['completeButton']) {
64
- if (_config['completeButton']['id']) {
65
- var completeButtonId = "#" + _config['completeButton']['id'];
66
- this.completeButton = document.querySelector(completeButtonId);
67
- }
68
- if (_config['completeButton']['state']) {
69
- this.completeButtonState = _config['completeButton']['state'];
70
- }
71
- }
72
- this.buttonControl();
73
- return true;
74
- }
75
- async next() {
76
- var getFormId = "#" + this.tabs[this.getActive() - 1]["formControl"];
77
- var getForm = document.querySelector(getFormId);
78
- var formData = null;
79
- if (getForm) {
80
- formData = await getForm.submit();
81
- }
82
- if ((getForm && formData.isValid) || !getForm) {
83
- this.activeChild = this.getActive() + 1;
84
- this.active(this.tabs[this.getActive() - 1]["tabId"]);
85
- }
86
- return formData;
87
- }
88
- async prev() {
89
- this.activeChild = this.getActive() - 1;
90
- this.active(this.tabs[this.getActive() - 1]["tabId"]);
91
- return this.activeChild;
92
- }
93
- async complete() {
94
- const tabStatuses = [];
95
- var isValid = true;
96
- this.tabs.forEach(element => {
97
- if (element['formControl']) {
98
- const getFormId = "#" + element["formControl"];
99
- const getForm = document.querySelector(getFormId);
100
- if (getForm) {
101
- tabStatuses.push(getForm.submit());
102
- }
103
- }
104
- });
105
- const allStatuses = await Promise.all(tabStatuses);
106
- allStatuses.forEach(item => {
107
- if (item.isValid === false) {
108
- isValid = false;
109
- if (item.formName) {
110
- const formId = this.tabs.filter((input) => input['formControl'] == item.formName)[0]['tabId'];
111
- this.active(formId);
112
- }
113
- }
114
- });
115
- return { isValid: isValid, Forms: allStatuses };
116
- }
117
- async active(id) {
118
- var i = 0;
119
- this.activeChild = -1,
120
- await utils.delay(100);
121
- utils.getChilds(this.el, 'bcm-tab').forEach(items => {
122
- i++,
123
- items.tabId == id && (items.disabled = false,
124
- items.active = true,
125
- this.bcmTabsActiveItem.emit(items.tabId),
126
- this.activeChild = i);
127
- items.tabId != id && (items.active = false);
128
- });
129
- }
130
- async getActiveTab() {
131
- return this.tabs[this.getActive() - 1]["tabId"];
132
- }
133
- async getActiveIndex() {
134
- return this.getActive();
135
- }
136
- async error(id, blink = false) {
137
- utils.getChilds(this.el, 'bcm-tab').forEach(items => {
138
- items.tabId == id && (items.badge = true,
139
- items.blink = blink,
140
- items.status = "error");
141
- });
142
- }
143
- async info(id, blink = false) {
144
- utils.getChilds(this.el, 'bcm-tab').forEach(items => {
145
- items.tabId == id && (items.badge = true,
146
- items.blink = blink,
147
- items.status = "processing");
148
- });
149
- }
150
- async warning(id, blink = false) {
151
- utils.getChilds(this.el, 'bcm-tab').forEach(items => {
152
- items.tabId == id && (items.badge = true,
153
- items.blink = blink,
154
- items.status = "warning");
155
- });
156
- }
157
- async success(id, blink = false) {
158
- utils.getChilds(this.el, 'bcm-tab').forEach(items => {
159
- items.tabId == id && (items.badge = true,
160
- items.blink = blink,
161
- items.status = "success");
162
- });
163
- }
164
- async statusReset(id) {
165
- utils.getChilds(this.el, 'bcm-tab').forEach(items => {
166
- items.tabId == id && (items.badge = false,
167
- items.blink = false,
168
- items.status = "default");
169
- });
170
- }
171
- buttonControl() {
172
- if (this.prevButton) {
173
- if (this.activeChild == 1) {
174
- this.prevButton.setAttribute(this.prevButtonState, "true");
175
- }
176
- else {
177
- this.prevButton.removeAttribute(this.prevButtonState);
178
- }
179
- }
180
- if (this.nextButton) {
181
- if (this.getActive() == this.count) {
182
- this.nextButton.setAttribute(this.nextButtonState, "true");
183
- }
184
- else {
185
- this.nextButton.removeAttribute(this.nextButtonState);
186
- }
187
- }
188
- if (this.completeButton) {
189
- if (this.getActive() == this.count) {
190
- this.completeButton.removeAttribute(this.completeButtonState);
191
- }
192
- else {
193
- this.completeButton.setAttribute(this.completeButtonState, "true");
194
- }
195
- }
196
- }
197
- /**
198
- * @ComponentMethod
199
- */
200
- componentDidRender() {
201
- if (!this.firstInit)
202
- return;
203
- let slotElements;
204
- slotElements = this.el.shadowRoot.querySelector('slot').assignedElements();
205
- this.tabs = [];
206
- this.activeChild = this.getActive();
207
- var isActive = false;
208
- var firstId = null;
209
- var i = 0;
210
- // Get only bcm-tab elements from
211
- // slot childs
212
- slotElements.map((element) => {
213
- i++;
214
- this.type == "stepper" && (element.disabled = true);
215
- if (!firstId) {
216
- firstId = element.tabId;
217
- }
218
- if (String(element.tagName).toLowerCase() == 'bcm-tab') {
219
- element.type = this.type;
220
- // Activate default tab
221
- // #
222
- if (this.tabs.push(element) - 1 == this.activeChild) {
223
- this.activateChild(this.activeChild);
224
- isActive = true;
225
- }
226
- }
227
- this.count = i;
228
- });
229
- if (!isActive) {
230
- this.active(firstId);
231
- }
232
- setTimeout(() => {
233
- this.el.shadowRoot.querySelector('.tabs').classList.add('animatable');
234
- }, 500);
235
- }
236
- componentDidLoad() {
237
- utils.getChilds(this.el, 'bcm-tab').forEach(items => {
238
- items.active && (this.bcmTabsActiveItem.emit(items.tabId), items.disabled = false);
239
- });
240
- }
241
- getActive() {
242
- const childs = utils.getChilds(this.el, 'bcm-tab');
243
- const childIndex = childs.findIndex(child => child.active);
244
- return childIndex >= 0 ? childIndex + 1 : 1;
245
- }
246
- /**
247
- * @desc
248
- */
249
- getChildIdx(child) {
250
- let i = 1;
251
- while (child.previousElementSibling) {
252
- child = child.previousElementSibling;
253
- i++;
254
- }
255
- return i;
256
- }
257
- /**
258
- * @desc
259
- * @param idx
260
- */
261
- activateChild(idx) {
262
- idx = idx - 1;
263
- const child = this.tabs[idx];
264
- if (child) {
265
- this.tabs.forEach((tab) => tab.active = false);
266
- child.active = true;
267
- child.disabled = false;
268
- this.transformLine(idx);
269
- this.firstInit && index.forceUpdate(this.el);
270
- this.firstInit = false;
271
- }
272
- }
273
- /**
274
- * @desc
275
- * @param idx
276
- */
277
- transformLine(idx) {
278
- const tab = this.tabs[idx];
279
- const rect = tab.getBoundingClientRect();
280
- const top = (rect.top + window.pageYOffset);
281
- const left = (rect.left + window.pageXOffset);
282
- const width = rect.width;
283
- const height = rect.height;
284
- if (this.direction == 'horizontal') {
285
- // this.lineOpts.top = (tab.offsetTop + tab.offsetHeight) + 'px'
286
- this.lineOpts.top = top + height + 'px';
287
- // this.lineOpts.left = tab.offsetLeft + 'px'
288
- this.lineOpts.left = left + 'px';
289
- // this.lineOpts.width = tab.offsetWidth + 'px'
290
- this.lineOpts.width = width + 'px';
291
- this.lineOpts.right = 'unset';
292
- this.lineOpts.height = '2px';
293
- }
294
- else {
295
- // this.lineOpts.top = tab.offsetTop + 'px'
296
- this.lineOpts.top = top + 'px';
297
- this.lineOpts.left = 'unset';
298
- this.lineOpts.right = '0';
299
- this.lineOpts.width = '2px';
300
- // this.lineOpts.height = tab.offsetHeight + 'px'
301
- this.lineOpts.height = height + 'px';
302
- }
303
- }
304
- /**
305
- * @desc
306
- */
307
- getLineTransform() {
308
- return {
309
- '--bcm-tabs-line-top': this.lineOpts.top,
310
- '--bcm-tabs-line-left': this.lineOpts.left,
311
- '--bcm-tabs-line-width': this.lineOpts.width,
312
- '--bcm-tabs-line-right': this.lineOpts.right,
313
- '--bcm-tabs-line-height': this.lineOpts.height
314
- };
315
- }
316
- /**
317
- * @desc
318
- * @param event
319
- */
320
- handleTabClick(event) {
321
- const targetElement = event.target;
322
- const childIdx = this.getChildIdx(targetElement);
323
- this.activeChild = null;
324
- this.activeChild = childIdx;
325
- }
326
- /**
327
- * @desc
328
- * @param event
329
- */
330
- handleTabClose(event) {
331
- const targetElement = event.target;
332
- const childIdx = this.getChildIdx(targetElement);
333
- // Remove element
334
- // #
335
- targetElement.remove();
336
- this.tabs.splice(childIdx - 1, 1);
337
- if (childIdx === this.activeChild) {
338
- this.activeChild = 1;
339
- this.activateChild(1);
340
- }
341
- }
342
- /**
343
- * @desc
344
- * @param newValue
345
- */
346
- activeChildChange(newValue) {
347
- this.activateChild(newValue);
348
- this.change.emit(newValue);
349
- this.buttonControl();
350
- }
351
- /**
352
- * @desc
353
- */
354
- windowResize() {
355
- this.transformLine(this.activeChild - 1);
356
- index.forceUpdate(this.el);
357
- }
358
- render() {
359
- const classes = index$1.classnames('tabs', [this.direction], [this.size], [this.type], this.fullWidth ? 'full-width' : null, this.underline ? 'underline' : null);
360
- const hostClasses = index$1.classnames(this.hidden ? 'hidden' : null);
361
- return (index.h(index.Host, { class: hostClasses }, index.h("div", { class: classes, style: this.getLineTransform(), "on-bcm-click": (event) => this.handleTabClick(event), "on-bcm-close": (event) => this.handleTabClose(event) }, index.h("slot", null))));
362
- }
363
- get el() { return index.getElement(this); }
364
- static get watchers() { return {
365
- "activeChild": ["activeChildChange"]
366
- }; }
367
- };
368
- BcmTabs.style = tabsCss;
369
-
370
- exports.bcm_tabs = BcmTabs;